query_id
stringlengths
32
32
query
stringlengths
7
129k
positive_passages
listlengths
1
1
negative_passages
listlengths
88
101
8cf037279b20765300987030fd57b56f
optional string bunho = 4;
[ { "docid": "8999c54f98a5d3f5d1eb144975f50255", "score": "0.0", "text": "public com.google.protobuf.ByteString\n getBunhoBytes() {\n java.lang.Object ref = bunho_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n bunho_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" } ]
[ { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.6948962", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.6948962", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.6948962", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.6948962", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.69487983", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.69487983", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.69487983", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.69487625", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.69484305", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.69484305", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.69484305", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.6948222", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.6948222", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.6948222", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.6948222", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.6948222", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.6948222", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.6948222", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.6948222", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.6948222", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.6948222", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.6948222", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.6948222", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.6948222", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.6948222", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.6948222", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.6948222", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.6948222", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.6948222", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.6948222", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.6948222", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.6948222", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.6948222", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.6948222", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.6948222", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.6948222", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.6948222", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.6948222", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.6948222", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.6948222", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.6948222", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.6948222", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.6948222", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.6948222", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.6948222", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.6948222", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.6948222", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.6948222", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.6948222", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.6948222", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.6948222", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.6948222", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.6948222", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.6948222", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.69481695", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.69481695", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.69481695", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.69481385", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.69481385", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.69481015", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.69481015", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.69481015", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.69481015", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.69474024", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "1a27d20fc14df3ca92a84551a471a606", "score": "0.6791465", "text": "public Builder setBunho(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000100;\n bunho_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "2e9f9d1ecca0a1b20547e1a47c62b0b2", "score": "0.67745674", "text": "public Builder setBunho(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000010;\n bunho_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "2e9f9d1ecca0a1b20547e1a47c62b0b2", "score": "0.6774283", "text": "public Builder setBunho(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000010;\n bunho_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "2e9f9d1ecca0a1b20547e1a47c62b0b2", "score": "0.6774283", "text": "public Builder setBunho(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000010;\n bunho_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "2e9f9d1ecca0a1b20547e1a47c62b0b2", "score": "0.67738146", "text": "public Builder setBunho(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000010;\n bunho_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "2e9f9d1ecca0a1b20547e1a47c62b0b2", "score": "0.6773439", "text": "public Builder setBunho(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000010;\n bunho_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "417fdd1bc990e75052d909825cdd2496", "score": "0.6772375", "text": "public Builder setBunho(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n bunho_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "417fdd1bc990e75052d909825cdd2496", "score": "0.6772375", "text": "public Builder setBunho(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n bunho_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "417fdd1bc990e75052d909825cdd2496", "score": "0.6772375", "text": "public Builder setBunho(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n bunho_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "417fdd1bc990e75052d909825cdd2496", "score": "0.6772375", "text": "public Builder setBunho(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n bunho_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "417fdd1bc990e75052d909825cdd2496", "score": "0.6772375", "text": "public Builder setBunho(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n bunho_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "417fdd1bc990e75052d909825cdd2496", "score": "0.6772338", "text": "public Builder setBunho(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n bunho_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "700a7950ce73a964db5577d5519407a5", "score": "0.67715895", "text": "public Builder setBunho(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n bunho_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "700a7950ce73a964db5577d5519407a5", "score": "0.67715895", "text": "public Builder setBunho(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n bunho_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "417fdd1bc990e75052d909825cdd2496", "score": "0.6771525", "text": "public Builder setBunho(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n bunho_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "417fdd1bc990e75052d909825cdd2496", "score": "0.6771334", "text": "public Builder setBunho(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n bunho_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "417fdd1bc990e75052d909825cdd2496", "score": "0.6771334", "text": "public Builder setBunho(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n bunho_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "417fdd1bc990e75052d909825cdd2496", "score": "0.6771204", "text": "public Builder setBunho(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n bunho_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "700a7950ce73a964db5577d5519407a5", "score": "0.67710996", "text": "public Builder setBunho(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n bunho_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "417fdd1bc990e75052d909825cdd2496", "score": "0.6770988", "text": "public Builder setBunho(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n bunho_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "417fdd1bc990e75052d909825cdd2496", "score": "0.6770988", "text": "public Builder setBunho(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n bunho_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "700a7950ce73a964db5577d5519407a5", "score": "0.6770976", "text": "public Builder setBunho(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n bunho_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "700a7950ce73a964db5577d5519407a5", "score": "0.67709583", "text": "public Builder setBunho(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n bunho_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "700a7950ce73a964db5577d5519407a5", "score": "0.67709583", "text": "public Builder setBunho(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n bunho_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "700a7950ce73a964db5577d5519407a5", "score": "0.67709583", "text": "public Builder setBunho(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n bunho_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "700a7950ce73a964db5577d5519407a5", "score": "0.6770841", "text": "public Builder setBunho(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n bunho_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "700a7950ce73a964db5577d5519407a5", "score": "0.6770798", "text": "public Builder setBunho(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n bunho_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "700a7950ce73a964db5577d5519407a5", "score": "0.6770769", "text": "public Builder setBunho(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n bunho_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "700a7950ce73a964db5577d5519407a5", "score": "0.6770769", "text": "public Builder setBunho(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n bunho_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "417fdd1bc990e75052d909825cdd2496", "score": "0.6770724", "text": "public Builder setBunho(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n bunho_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "417fdd1bc990e75052d909825cdd2496", "score": "0.6770724", "text": "public Builder setBunho(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n bunho_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "417fdd1bc990e75052d909825cdd2496", "score": "0.6770724", "text": "public Builder setBunho(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n bunho_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "700a7950ce73a964db5577d5519407a5", "score": "0.677033", "text": "public Builder setBunho(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n bunho_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "700a7950ce73a964db5577d5519407a5", "score": "0.67702454", "text": "public Builder setBunho(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n bunho_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "700a7950ce73a964db5577d5519407a5", "score": "0.67702454", "text": "public Builder setBunho(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n bunho_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "700a7950ce73a964db5577d5519407a5", "score": "0.67702454", "text": "public Builder setBunho(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n bunho_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "700a7950ce73a964db5577d5519407a5", "score": "0.67702454", "text": "public Builder setBunho(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n bunho_ = value;\n onChanged();\n return this;\n }", "title": "" } ]
c90ebdc03ba31d4150a2b8ce87710c68
///////////////////////////////////////////////////////////////////////// Test insertions across serializations
[ { "docid": "65c1bb7be42b5308fe874b3e7b36777f", "score": "0.5428707", "text": "@Test\n \tpublic void testUnflushedSessionSerialization() throws Exception {\n \t\tSession s = sessionFactory().openSession();\n \t\ts.setFlushMode(FlushMode.MANUAL);\n \t\ts.beginTransaction();\n \n \t\tSimple simple = new Simple( Long.valueOf(10) );\n \t\tsimple.setAddress(\"123 Main St. Anytown USA\");\n \t\tsimple.setCount(1);\n \t\tsimple.setDate( new Date() );\n \t\tsimple.setName(\"My UnflushedSessionSerialization Simple\");\n \t\tsimple.setPay( Float.valueOf(5000) );\n \t\ts.save( simple );\n \n \t\t// Now, try to serialize session without flushing...\n \t\ts.getTransaction().commit();\n \t\tSession s2 = spoofSerialization(s);\n \t\ts.close();\n \t\ts = s2;\n \t\ts.beginTransaction();\n \n \t\tsimple = (Simple) s.load( Simple.class, new Long(10) );\n \t\tSimple other = new Simple( Long.valueOf(11) );\n \t\tother.init();\n \t\ts.save( other );\n \n \t\tsimple.setOther(other);\n \t\ts.flush();\n \n \t\ts.getTransaction().commit();\n \t\ts.close();\n \t\tSimple check = simple;\n \n \t\t///////////////////////////////////////////////////////////////////////////\n \t\t// Test updates across serializations\n \t\ts = sessionFactory().openSession();\n \t\ts.setFlushMode(FlushMode.MANUAL);\n \t\ts.beginTransaction();\n \n \t\tsimple = (Simple) s.get( Simple.class, Long.valueOf(10) );\n \t\tassertTrue(\"Not same parent instances\", check.getName().equals( simple.getName() ) );\n \t\tassertTrue(\"Not same child instances\", check.getOther().getName().equals( other.getName() ) );\n \n \t\tsimple.setName(\"My updated name\");\n \n \t\ts.getTransaction().commit();\n \t\ts2 = spoofSerialization(s);\n \t\ts.close();\n \t\ts = s2;\n \t\ts.beginTransaction();\n \t\ts.flush();\n \n \t\ts.getTransaction().commit();\n \t\ts.close();\n \t\tcheck = simple;\n \n \t\t///////////////////////////////////////////////////////////////////////////\n \t\t// Test deletions across serializations\n \t\ts = sessionFactory().openSession();\n \t\ts.setFlushMode(FlushMode.MANUAL);\n \t\ts.beginTransaction();\n \n \t\tsimple = (Simple) s.get( Simple.class, Long.valueOf( 10 ) );\n \t\tassertTrue(\"Not same parent instances\", check.getName().equals( simple.getName() ) );\n \t\tassertTrue(\"Not same child instances\", check.getOther().getName().equals( other.getName() ) );\n \n \t\t// Now, lets delete across serialization...\n \t\ts.delete(simple);\n \n \t\ts.getTransaction().commit();\n \t\ts2 = spoofSerialization(s);\n \t\ts.close();\n \t\ts = s2;\n \t\ts.beginTransaction();\n \t\ts.flush();\n \n \t\ts.getTransaction().commit();\n \t\ts.close();\n \n \t\t///////////////////////////////////////////////////////////////////////////\n \t\t// Test collection actions across serializations\n \t\ts = sessionFactory().openSession();\n \t\ts.setFlushMode(FlushMode.MANUAL);\n \t\ts.beginTransaction();\n \n \t\tFum fum = new Fum( fumKey(\"uss-fum\") );\n \t\tfum.setFo( new Fum( fumKey(\"uss-fo\") ) );\n \t\tfum.setFum(\"fo fee fi\");\n \t\tfum.getFo().setFum(\"stuff\");\n \t\tFum fr = new Fum( fumKey(\"uss-fr\") );\n \t\tfr.setFum(\"goo\");\n \t\tFum fr2 = new Fum( fumKey(\"uss-fr2\") );\n \t\tfr2.setFum(\"soo\");\n \t\tfum.setFriends( new HashSet() );\n \t\tfum.getFriends().add(fr);\n \t\tfum.getFriends().add(fr2);\n \t\ts.save(fr);\n \t\ts.save(fr2);\n \t\ts.save( fum.getFo() );\n \t\ts.save(fum);\n \n \t\ts.getTransaction().commit();\n \t\ts2 = spoofSerialization(s);\n \t\ts.close();\n \t\ts = s2;\n \t\ts.beginTransaction();\n \t\ts.flush();\n \n \t\ts.getTransaction().commit();\n \t\ts.close();\n \n \t\ts = sessionFactory().openSession();\n \t\ts.setFlushMode(FlushMode.MANUAL);\n \t\ts.beginTransaction();\n \t\tfum = (Fum) s.load( Fum.class, fum.getId() );\n \n \t\tassertTrue(\"the Fum.friends did not get saved\", fum.getFriends().size() == 2);\n \n \t\tfum.setFriends(null);\n \t\ts.getTransaction().commit();\n \t\ts2 = spoofSerialization(s);\n \t\ts.close();\n \t\t\n \t\ts = s2;\n \t\ts.beginTransaction();\n \t\ts.flush();\n \n \t\ts.getTransaction().commit();\n \t\ts.close();\n \n \t\ts = sessionFactory().openSession();\n \t\ts.beginTransaction();\n \t\ts.setFlushMode(FlushMode.MANUAL);\n \t\tfum = (Fum) s.load( Fum.class, fum.getId() );\n \t\tassertTrue(\"the Fum.friends is not empty\", fum.getFriends() == null || fum.getFriends().size() == 0);\n \t\ts.getTransaction().commit();\n \t\ts.close();\n \t}", "title": "" } ]
[ { "docid": "7755356b7e6584c90accc797294001ed", "score": "0.62633324", "text": "@Test\n public void coderTest() {\n Pipeline p = GATKTestPipeline.create();\n List<ReferenceShard> refShards = Lists.newArrayList(new ReferenceShard(0, \"1\"), new ReferenceShard(1, \"2\"), new ReferenceShard(0, \"2\"));\n DataflowTestUtils.pCollectionCreateAndVerify(p, refShards, SerializableCoder.of(ReferenceShard.class));\n p.run();\n }", "title": "" }, { "docid": "3f7e4fadd67aa8cbe0770378b8170b60", "score": "0.62384784", "text": "@Test\n public void testSerialize() {\n }", "title": "" }, { "docid": "e7d4af173c71cf39964c4fbff356c40c", "score": "0.60862327", "text": "public void testResolveExtensions() {\n\t\tComplexSerialization ser1 = new ComplexSerialization();\n\t\tser1.setWriteEmpty(Boolean.TRUE);\n\t\tSerialization ser1Attr = new AttributeSerialization();\n\t\tSerialization ser1Element = new ValueSerialization();\n\t\tser1.setAttributes(Arrays.asList(ser1Attr));\n\t\tser1.setElements(Arrays.asList(ser1Element));\n\t\tComplexSerialization ser2 = new ComplexSerialization();\n\t\tComplexSerialization ser3 = new ComplexSerialization();\n\t\tSerialization ser3Attr = new AttributeSerialization();\n\t\tser3.setAttributes(Arrays.asList(ser3Attr));\n\t\tComplexSerialization ser4 = new ComplexSerialization();\n\t\tSerialization ser4Element = new ValueSerialization();\n\t\tser4.setWriteEmpty(Boolean.FALSE);\n\t\tser4.setElements(Arrays.asList(ser4Element));\n\t\tMap<ComplexSerialization, String> extensions = new HashMap<ComplexSerialization, String>(); \n\t\textensions.put(ser1, \"2\");\n\t\textensions.put(ser2, \"3\");\n\t\textensions.put(ser3, \"4\");\n\t\tMap<String, ComplexSerialization> parents = new HashMap<String, ComplexSerialization>();\n\t\tparents.put(\"2\", ser2);\n\t\tparents.put(\"3\", ser3);\n\t\tparents.put(\"4\", ser4);\n\n\t\treplay(element);\n\t\tSet<String> invalid = SerializationElementHandler.resolveExtensions(extensions, parents);\n\t\tverify(element);\n\t\t\n\t\tassertTrue(CollectionUtils.isEmpty(invalid));\n\t\tassertFalse(ser4.isWriteEmpty());\n\t\tassertTrue(CollectionUtils.isEmpty(ser4.getAttributes()));\n\t\tassertEquals(Arrays.asList(ser4Element), ser4.getElements());\n\t\tassertFalse(ser3.isWriteEmpty());\n\t\tassertEquals(Arrays.asList(ser3Attr), ser3.getAttributes());\n\t\tassertEquals(Arrays.asList(ser4Element), ser3.getElements());\n\t\tassertFalse(ser2.isWriteEmpty());\n\t\tassertEquals(Arrays.asList(ser3Attr), ser2.getAttributes());\n\t\tassertEquals(Arrays.asList(ser4Element), ser2.getElements());\n\t\tassertTrue(ser1.isWriteEmpty());\n\t\tassertEquals(Arrays.asList(ser3Attr, ser1Attr), ser1.getAttributes());\n\t\tassertEquals(Arrays.asList(ser4Element, ser1Element), ser1.getElements());\n\t}", "title": "" }, { "docid": "3107650ae8903082f9cad8881fb8e34d", "score": "0.60024107", "text": "@Test\n public void genInsert() {\n TrieSequence<Integer> seq = TrieSequence.empty();\n for(int i = 0; i < 1234; i++) {\n assertEquals(\"Sequence size\", i, seq.size());\n seq = seq.add(i);\n }\n for(int i = 0; i < 1234; i++) assertEquals((Integer) i, seq.get(i));\n }", "title": "" }, { "docid": "c3d225e69e72cc26b572b56b46df0392", "score": "0.59872395", "text": "@Test\n void test01_after_insert_one_size_is_one() {\n dataStructureInstance.insert(\"testKey\", \"testValue\");\n if (dataStructureInstance.size() != 1) {\n fail(\"data structure should be with size = 1, but size = \" + dataStructureInstance.size());\n }\n }", "title": "" }, { "docid": "0b9171f0162f43b9ba8062ef74969fb5", "score": "0.598392", "text": "@Test\n void test07_more_tests_on_inserting_duplicate_keys() {\n dataStructureInstance.insert(\"testKey1\", \"testValue1\");\n dataStructureInstance.insert(\"testKey2\", \"testValue2\");\n dataStructureInstance.insert(\"testKey3\", \"testValue3\");\n dataStructureInstance.insert(\"testKey4\", \"testValue4\");\n try {\n dataStructureInstance.insert(\"testKey1\", \"testValue5\");\n } catch (RuntimeException e) {\n // Do nothing\n } finally {\n if(dataStructureInstance.size() != 4) {\n fail(\"didn't take care of duplicate keys well\");\n }\n try {\n dataStructureInstance.insert(\"testKey5\", \"testValue1\");\n dataStructureInstance.insert(\"testKey6\", \"testValue2\");\n dataStructureInstance.insert(\"testKey7\", \"testValue3\");\n dataStructureInstance.insert(\"testKey2\", \"testValue4\");\n } catch (RuntimeException e) {\n // Do nothing\n } finally {\n if(dataStructureInstance.size() != 7) {\n fail(\"didn't take care of duplicate keys well\");\n }\n }\n }\n }", "title": "" }, { "docid": "34f7a4894040b19eb5931e5605735fbf", "score": "0.5933459", "text": "public void testSerialization() {\n BlockContainer c1 = new BlockContainer();\n c1.add(new EmptyBlock(1.2, 3.4));\n BlockContainer c2 = (BlockContainer) TestUtilities.serialised(c1);\n }", "title": "" }, { "docid": "ad6654b1e6b6d3919921c5a18381609c", "score": "0.5912529", "text": "@Test\r\n\tpublic void testInsert() {\n\t}", "title": "" }, { "docid": "2b62ca64332e6cd2dec7b8a44cf924a8", "score": "0.58760744", "text": "public void testSerialization() {\n VectorSeries s1 = new VectorSeries(\"Series\");\n s1.add(1.0, 1.1, 1.2, 1.3);\n VectorSeriesCollection c1 = new VectorSeriesCollection();\n c1.addSeries(s1);\n VectorSeriesCollection c2 = (VectorSeriesCollection) TestUtilities.serialised(c1);\n }", "title": "" }, { "docid": "59051c53e6b74ae1aac61311dfbc56c6", "score": "0.5852291", "text": "@org.junit.Test\n public void insert() {\n mytest1.insert(\"add\");\n assertTrue(mytest1.contains(\"add\"));\n mytest1.insert(\"syeehyn\");\n assertTrue(mytest1.contains(\"syeehyn\"));\n mytest1.insert(\"sq\");\n assertTrue(mytest1.contains(\"sq\"));\n mytest1.insert(\"sw\");\n assertTrue(mytest1.contains(\"sw\"));\n mytest1.insert(\"sr\");\n mytest1.insert(\"sy\");\n mytest1.insert(\"st\");\n mytest1.insert(\"a\");\n assertEquals(8, mytest1.getSize());\n mytest1.insert(\"b\");\n mytest1.insert(\"c\");\n mytest1.insert(\"ab\");\n mytest1.insert(\"aa\");\n mytest1.insert(\"dd\");\n mytest1.insert(\"dq\");\n assertEquals(14, mytest1.getSize());\n }", "title": "" }, { "docid": "436022e62012b6819e3201a03cf12e55", "score": "0.58415455", "text": "public void testSerialization() {\n TaskSeries s1 = new TaskSeries(\"Series\");\n s1.add(new Task(\"Task 1\", new Date(0L), new Date(1L)));\n TaskSeriesCollection u1 = new TaskSeriesCollection();\n u1.add(s1);\n SlidingGanttCategoryDataset d1 = new SlidingGanttCategoryDataset(u1, 0, 5);\n SlidingGanttCategoryDataset d2 = (SlidingGanttCategoryDataset) TestUtilities.serialised(d1);\n s1.add(new Task(\"Task 2\", new Date(10L), new Date(11L)));\n TaskSeriesCollection u2 = (TaskSeriesCollection) d2.getUnderlyingDataset();\n TaskSeries s2 = u2.getSeries(\"Series\");\n s2.add(new Task(\"Task 2\", new Date(10L), new Date(11L)));\n }", "title": "" }, { "docid": "1301857462e360a58e927bc53587d07f", "score": "0.5830492", "text": "@Override\n\tpublic void preInsert() {\n\t\t\n\t}", "title": "" }, { "docid": "20b6737ec38f7ddba9df1a15cf9e2c0a", "score": "0.57881504", "text": "@Test\n public void testXmlSerialization() throws Exception {\n testXmllSerialization(list, list2, c1, c2);\n }", "title": "" }, { "docid": "a8a597a3b20cc20805da25476dd789fa", "score": "0.5774702", "text": "public void testSerializability() throws IOException, ClassNotFoundException {\n FileBatchJob f1 = new ConcreteFileBatchJob();\n f1.processOnlyFileNamed(\"helloWorld\");\n FileBatchJob f2 = (FileBatchJob) Serial.serial(f1);\n assertEquals(\"Should have the same state before and after \" +\n \"serialization \", significantState(f1), significantState(f2));\n }", "title": "" }, { "docid": "1b83e305f5d8bc0b0fed82c81d7860ad", "score": "0.57709825", "text": "@Test\n public void testInsert() {\n Product product = new Product(\"a\", \"b\", \"AB-000001-0N\");\n ProductService.insert(conn, product);\n InventoryRecordService.insert(conn, inventoryRecords.get(0));\n assertEquals(inventoryRecords.get(0), InventoryRecordService.getById(conn, inventoryRecords.get(0).getSku()));\n }", "title": "" }, { "docid": "80ef16bc1dc918030d1262ccf97c2026", "score": "0.57644457", "text": "public void testInsert01() {\r\n\r\n\t\ttry {\r\n\t\t\tint ITERATIONS = 100000;\r\n\r\n\t\t\twords = TestUtils.randomWords(ITERATIONS, 31);\r\n\r\n\t\t\tlong before = System.currentTimeMillis();\r\n\r\n\t\t\tfor (int i = 0; i < ITERATIONS; i++) {\r\n\t\t\t\tstore.add(words.get(i), words.get(ITERATIONS - i - 1), 1.0F, null);\r\n\t\t\t}\r\n\r\n\t\t\tlong time = System.currentTimeMillis() - before;\r\n\r\n\t\t\tSystem.err.println((ITERATIONS * 1000 / (time + 1)) + \" inserts per sec\");\r\n\t\t\tSystem.err.println(((double) store.getStorageFile().length() / 1024 / 1.024 / time)\r\n\t\t\t\t\t+ \" Mb/s\");\r\n\t\t} catch (AssociationStoreException e) {\r\n\t\t\tthrow new AssertionError(e);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "f1dfd0c19b036db094cbd525abeb1ba1", "score": "0.5757364", "text": "@Override public void testSerializable() throws SeedException {\n SerializableTester.reserialize(createRng()).nextInt();\n }", "title": "" }, { "docid": "2e15b5e11aad4e96fb8a6c5c008f2516", "score": "0.57573605", "text": "@Override\n public void preInsert()\n {\n \n }", "title": "" }, { "docid": "530f4f9361df3b62adbef0e3da6c5665", "score": "0.5714841", "text": "public void testIdentity1() throws Exception {\n TestBeanA tb1 = new TestBeanA();\n tb1.s1 = \"john\";\n TestBeanA tb2 = tb1;\n \n CharArrayWriter caw = new CharArrayWriter();\n SerializationContext sci = new SerializationContext(caw);\n sci.setDoMultiRefs(true);\n sci.serialize(new QName(\"someLocalPart\"), null, tb1);\n sci.serialize(new QName(\"someOtherLocalPart\"), null, tb2);\n \n String s = caw.toString();\n \n // Cheap but fragile.\n int first = s.indexOf(\"#id0\");\n int last = s.lastIndexOf(\"#id0\");\n assertTrue(s, first >= 0);\n assertTrue(s, last >= 0 && last != first);\n }", "title": "" }, { "docid": "b31692a8aa6929534c678863ca1f8a31", "score": "0.5700569", "text": "@Test\n void writeGame0() throws Exception{\n GameSerializer serializer = new GameSerializer(\"./game.ser\");\n serializer.writeGame(game);\n Game newGame = serializer.readGame();\n assertEquals(game, newGame);\n }", "title": "" }, { "docid": "1c19ba295e31d113bc07ce081e834483", "score": "0.56707567", "text": "public void testEquality3() throws Exception {\n TestBeanB tb1 = new TestBeanB();\n tb1.s1 = \"john\";\n TestBeanB tb2 = new TestBeanB();\n tb2.s1 = \"john\";\n \n CharArrayWriter caw = new CharArrayWriter();\n SerializationContext sci = new SerializationContext(caw);\n sci.setDoMultiRefs(true);\n sci.serialize(new QName(\"someLocalPart\"), null, tb1);\n sci.serialize(new QName(\"someOtherLocalPart\"), null, tb2);\n \n String s = caw.toString();\n \n // Cheap but fragile.\n int first = s.indexOf(\"#id0\");\n int last = s.lastIndexOf(\"#id1\");\n assertTrue(s,first >= 0);\n assertTrue(s,last >= 0 && last != first);\n }", "title": "" }, { "docid": "891402ae5c463290b50fa90ac30e0013", "score": "0.5666907", "text": "@Test\n\tpublic void testInsertMemberBaseInfo(){\n\n\t}", "title": "" }, { "docid": "6ac759d0fcb56a8ff47a10bf3f668a3c", "score": "0.56482774", "text": "public void testEquality1() throws Exception {\n TestBeanA tb1 = new TestBeanA();\n tb1.s1 = \"john\";\n TestBeanA tb2 = new TestBeanA();\n tb2.s1 = \"gregg\";\n \n CharArrayWriter caw = new CharArrayWriter();\n SerializationContext sci = new SerializationContext(caw);\n sci.setDoMultiRefs(true);\n sci.serialize(new QName(\"someLocalPart\"), null, tb1);\n sci.serialize(new QName(\"someOtherLocalPart\"), null, tb2);\n \n String s = caw.toString();\n \n // Cheap but fragile.\n int first = s.indexOf(\"#id0\");\n int last = s.lastIndexOf(\"#id1\");\n assertTrue(s,first >= 0);\n assertTrue(s,last >= 0);\n }", "title": "" }, { "docid": "478d54315146041b7089af082a21107a", "score": "0.56416017", "text": "@Test\n public void testAddingEntities() throws Exception {\n List<Entity> expected = Lists.newArrayList(\n Entity.newBuilder().setKey(DatastoreHelper.makeKey(\"bird\", \"jay\").build()).build(),\n Entity.newBuilder().setKey(DatastoreHelper.makeKey(\"bird\", \"condor\").build()).build(),\n Entity.newBuilder().setKey(DatastoreHelper.makeKey(\"bird\", \"robin\").build()).build());\n\n List<Entity> allEntities = new ArrayList<>();\n allEntities.addAll(expected);\n Collections.shuffle(allEntities);\n\n DatastoreWriter writer = new DatastoreIO.DatastoreWriter(null, mockDatastore);\n writer.open(\"test_id\");\n for (Entity entity : allEntities) {\n writer.write(entity);\n }\n\n assertEquals(expected.size(), writer.entities.size());\n assertThat(writer.entities, containsInAnyOrder(expected.toArray()));\n }", "title": "" }, { "docid": "5d60cc0ff9815ca77ae3ea64c20ff5ef", "score": "0.5638747", "text": "public void testPrintSerializedDataModel(){\r\n\r\n }", "title": "" }, { "docid": "63ba0c153ee6f787262560144465abff", "score": "0.56287456", "text": "@Test\n @Override\n public void transactionInsertTest() throws Exception {\n super.transactionInsertTest();\n\n }", "title": "" }, { "docid": "d37481490bdb783e749717842bc10cdf", "score": "0.5618437", "text": "public void testInterStorageSerDe(SchemaTupleFactory tf) throws Exception {\n int sz = 4096;\n List<Tuple> written = new ArrayList<Tuple>(sz);\n\n File temp = File.createTempFile(\"tmp\", \"tmp\");\n temp.deleteOnExit();\n FileOutputStream fos = new FileOutputStream(temp);\n FSDataOutputStream dos = new FSDataOutputStream(fos, null);\n\n InterRecordWriter writer = new InterRecordWriter(dos,\n PigConfiguration.PIG_INTERSTORAGE_SYNCMARKER_SIZE_DEFAULT,\n PigConfiguration.PIG_INTERSTORAGE_SYNCMARKER_INTERVAL_DEFAULT);\n\n // This test does not cover the case of overlapping record bytes that may be present at the\n // beginning of a split, for that see org.apache.pig.test.TestBinInterSedes#testInterStorageSyncMarker()\n\n for (int i = 0; i < sz; i++) {\n SchemaTuple<?> st = (SchemaTuple<?>)tf.newTuple();\n fillWithData(st);\n writer.write(null, st);\n written.add(st);\n }\n writer.close(null);\n\n Configuration conf = new Configuration();\n conf.set(\"fs.defaultFS\", \"file:///\");\n\n TaskAttemptID taskId = HadoopShims.createTaskAttemptID(\"jt\", 1, true, 1, 1);\n conf.set(MRConfiguration.TASK_ID, taskId.toString());\n\n InputSplit is = new FileSplit(new Path(temp.getAbsolutePath()), 0, temp.length(), null);\n\n InterRecordReader reader = new InterRecordReader(PigConfiguration.PIG_INTERSTORAGE_SYNCMARKER_SIZE_DEFAULT,\n PigConfiguration.PIG_INTERSTORAGE_SYNCMARKER_INTERVAL_DEFAULT);\n reader.initialize(is, HadoopShims.createTaskAttemptContext(conf, taskId));\n\n for (int i = 0; i < sz; i++) {\n assertTrue(reader.nextKeyValue());\n SchemaTuple<?> st = (SchemaTuple<?>)reader.getCurrentValue();\n assertEquals(written.get(i), st);\n }\n reader.close();\n\n }", "title": "" }, { "docid": "7ee42448c790d6bd360d8628714170f9", "score": "0.5616648", "text": "public void testEquality2() throws Exception {\n TestBeanA tb1 = new TestBeanA();\n tb1.s1 = \"john\";\n TestBeanA tb2 = new TestBeanA();\n tb2.s1 = \"john\";\n \n CharArrayWriter caw = new CharArrayWriter();\n SerializationContext sci = new SerializationContext(caw);\n sci.setDoMultiRefs(true);\n sci.serialize(new QName(\"someLocalPart\"), null, tb1);\n sci.serialize(new QName(\"someOtherLocalPart\"), null, tb2);\n \n String s = caw.toString();\n \n // Cheap but fragile.\n int first = s.indexOf(\"#id0\");\n int last = s.lastIndexOf(\"#id1\");\n assertTrue(s,first >= 0);\n assertTrue(s,last >= 0);\n }", "title": "" }, { "docid": "c8fdd50648d281c667f3d66af1b29aa2", "score": "0.560619", "text": "@Test\n public void testInsert() {\n User user = buildUser(3L);\n\n int rows = mapper.insert(user);\n\n assertThat(rows).isEqualTo(1);\n\n User loaded = mapper.selectByPrimaryKey(user.getId());\n\n assertThat(user).isEqualToIgnoringGivenFields(loaded, \"registerDate\");\n\n // insert with null field\n user = buildUser(4L);\n user.setRoles(null);\n\n rows = mapper.insert(user);\n\n assertThat(rows).isEqualTo(1);\n\n loaded = mapper.selectByPrimaryKey(user.getId());\n\n assertThat(user).isEqualToIgnoringGivenFields(loaded, \"registerDate\");\n }", "title": "" }, { "docid": "1248020213154b6f62048ba47639de26", "score": "0.5603309", "text": "public void testIdentity2() throws Exception {\n TestBeanB tb1 = new TestBeanB();\n tb1.s1 = \"john\";\n TestBeanB tb2 = tb1;\n \n CharArrayWriter caw = new CharArrayWriter();\n SerializationContext sci = new SerializationContext(caw);\n sci.setDoMultiRefs(true);\n sci.serialize(new QName(\"someLocalPart\"), null, tb1);\n sci.serialize(new QName(\"someOtherLocalPart\"), null, tb2);\n \n String s = caw.toString();\n \n // Cheap but fragile.\n int first = s.indexOf(\"#id0\");\n int last = s.lastIndexOf(\"#id0\");\n assertTrue(s,first >= 0);\n assertTrue(s,last >= 0 && last != first);\n }", "title": "" }, { "docid": "3eb0e73332adcb5e24781c801527d8bc", "score": "0.55973476", "text": "@Test\n void insert19Test(){\n tree.insert(19);\n assertTrue(tree.contains(19));\n }", "title": "" }, { "docid": "4b2fd7de32beb2d6db73af9acc793c57", "score": "0.55907905", "text": "public void test_18_124_writeObject() {\n\n\t\tObject objToSave = null;\n\t\tObject objLoaded;\n\n\t\ttry {\n\t\t\tobjToSave = new Object[] { Integer.class, new Integer(1) };\n\t\t\tif (DEBUG)\n\t\t\t\tSystem.out.println(\"Obj = \" + objToSave);\n\t\t\tobjLoaded = dumpAndReload(objToSave);\n\t\t\t// Classes with the same name are unique, so test for ==\n\t\t\tassertTrue(MSG_TEST_FAILED + objToSave,\n\t\t\t\t\t((Object[]) objLoaded)[0] == ((Object[]) objToSave)[0]\n\t\t\t\t\t\t\t&& ((Object[]) objLoaded)[1]\n\t\t\t\t\t\t\t\t\t.equals(((Object[]) objToSave)[1]));\n\n\t\t} catch (IOException e) {\n\t\t\tfail(\"IOException serializing \" + objToSave + \" : \"\n\t\t\t\t\t+ e.getMessage());\n\t\t} catch (ClassNotFoundException e) {\n\t\t\tfail(\"ClassNotFoundException reading Object type : \"\n\t\t\t\t\t+ e.getMessage());\n\t\t} catch (Error err) {\n\t\t\tSystem.out.println(\"Error when obj = \" + objToSave);\n\t\t\t// err.printStackTrace();\n\t\t\tthrow err;\n\t\t}\n\t}", "title": "" }, { "docid": "13a85bda68f6c48dd3367a9003f76cb8", "score": "0.55787784", "text": "@Test\n public void testInsert() {\n\t\thitchhikerMatchmaker.insert(mockRouteData);\n\t\tassertEquals(mockRouteData, hitchhikerMatchmaker.getRouteData());\n\t}", "title": "" }, { "docid": "83ca836941c21064a136417a70599d03", "score": "0.55723405", "text": "@Test @Override\n\tpublic void t6_existing_add() {\n\t\t\n\t}", "title": "" }, { "docid": "b67ec6c5da13c2e385823758d45f3dd3", "score": "0.55709434", "text": "@Test\n void test06_insert_and_remove_many_elements_should_give_correct_size() {\n dataStructureInstance.insert(\"testKey1\", \"testValue1\");\n dataStructureInstance.insert(\"testKey2\", \"testValue2\");\n dataStructureInstance.insert(\"testKey3\", \"testValue3\");\n dataStructureInstance.insert(\"testKey4\", \"testValue4\");\n dataStructureInstance.insert(\"testKey5\", \"testValue5\");\n dataStructureInstance.insert(\"testKey6\", \"testValue6\");\n dataStructureInstance.insert(\"testKey7\", \"testValue1\");\n dataStructureInstance.remove(\"testKey2\");\n if (dataStructureInstance.size() != 6) {\n fail(\"data structure didn't give correct size while inserting and removing some elements\");\n }\n }", "title": "" }, { "docid": "1acc01a6d3fb94de4a0f8c8c16c8f98d", "score": "0.55642086", "text": "@Test\n public void serializeAndDeserialize() throws IOException, ClassNotFoundException {\n String put[] = {\"abcd\", \"efgh\", \"ijkl\", \"abdf\", \"a\", \"\"};\n Trie tr = new Trie();\n for (String s : put) {\n tr.add(s);\n }\n\n ByteArrayOutputStream outStream = new ByteArrayOutputStream();\n tr.serialize(outStream);\n byte[] data = outStream.toByteArray();\n\n ByteArrayInputStream inStream = new ByteArrayInputStream(data);\n Trie dsr = new Trie();\n dsr.deserialize(inStream);\n\n assertEquals(put.length, dsr.size());\n for (String s : put) {\n assertTrue(dsr.contains(s));\n }\n }", "title": "" }, { "docid": "cf9152f2a0c515acf697aa5a82c9bf78", "score": "0.5558049", "text": "@Test\n void duplicateNftSerials() {\n\n writableAccountStore = newWritableStoreWithAccounts(Account.newBuilder()\n .accountId(ACCOUNT_1339)\n .numberTreasuryTitles(1)\n .numberPositiveBalances(1)\n .build());\n writableTokenStore = newWritableStoreWithTokens(Token.newBuilder()\n .tokenId(TOKEN_123)\n .tokenType(TokenType.NON_FUNGIBLE_UNIQUE)\n .treasuryAccountId(ACCOUNT_1339)\n .supplyKey(TOKEN_SUPPLY_KT.asPbjKey())\n .totalSupply(10)\n .build());\n writableTokenRelStore = newWritableStoreWithTokenRels(TokenRelation.newBuilder()\n .accountId(ACCOUNT_1339)\n .tokenId(TOKEN_123)\n .balance(3)\n .build());\n writableNftStore = newWritableStoreWithNfts(\n Nft.newBuilder()\n .nftId(NftID.newBuilder()\n .tokenId(TOKEN_123)\n .serialNumber(1L)\n .build())\n // do not set ownerId - default to null\n .build(),\n Nft.newBuilder()\n .nftId(NftID.newBuilder()\n .tokenId(TOKEN_123)\n .serialNumber(2L)\n .build())\n // do not set ownerId - default to null\n .build(),\n Nft.newBuilder()\n .nftId(NftID.newBuilder()\n .tokenId(TOKEN_123)\n .serialNumber(3L)\n .build())\n // do not set ownerId - default to null\n .build());\n final var txn = newBurnTxn(TOKEN_123, 0, 1L, 2L, 3L, 1L, 2L, 3L, 3L, 1L, 1L, 2L);\n final var context = mockContext(txn);\n\n subject.handle(context);\n final var treasuryAcct = writableAccountStore.get(ACCOUNT_1339);\n Assertions.assertThat(treasuryAcct).isNotNull();\n Assertions.assertThat(treasuryAcct.numberTreasuryTitles()).isEqualTo(1);\n // The treasury no longer owns any NFTs, so its positive balances should decrease by 1\n Assertions.assertThat(treasuryAcct.numberPositiveBalances()).isZero();\n final var treasuryRel = writableTokenRelStore.get(ACCOUNT_1339, TOKEN_123);\n Assertions.assertThat(treasuryRel).isNotNull();\n Assertions.assertThat(treasuryRel.balance()).isZero();\n Assertions.assertThat(writableNftStore.get(TOKEN_123, 1L)).isNull();\n Assertions.assertThat(writableNftStore.get(TOKEN_123, 2L)).isNull();\n Assertions.assertThat(writableNftStore.get(TOKEN_123, 3L)).isNull();\n }", "title": "" }, { "docid": "a3df8dbda0641d1b6fcc6f414940f54f", "score": "0.5544742", "text": "public void testInsert02() {\r\n\r\n\t\ttry {\r\n\t\t\tint ITERATIONS = 100000;\r\n\r\n\t\t\twords = TestUtils.randomWords(ITERATIONS, 31);\r\n\r\n\t\t\tlong before = System.currentTimeMillis();\r\n\r\n\t\t\tfor (int i = 0; i < ITERATIONS; i++) {\r\n\t\t\t\tstore.add(\"alma\", words.get(i), 1.0F, null);\r\n\t\t\t}\r\n\r\n\t\t\tlong time = System.currentTimeMillis() - before;\r\n\r\n\t\t\tSystem.err.println((ITERATIONS * 1000 / (time + 1)) + \" same subject inserts per sec\");\r\n\t\t\tSystem.err.println(((double) store.getStorageFile().length() / 1024 / 1.024 / time)\r\n\t\t\t\t\t+ \" Mb/s\");\r\n\t\t} catch (AssociationStoreException e) {\r\n\t\t\tthrow new AssertionError(e);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "4750760cb41e202c6708db31f69a6f80", "score": "0.55446273", "text": "public void testinsert()\r\n {\r\n l1.insert(\"hello\");\r\n assertEquals(l1.head.getNext().getData(), \"hello\");\r\n l1.insert(\"d2\");\r\n assertEquals(l1.head.getNext().getData(), \"d2\");\r\n assertEquals(l1.head.getNext().getNext().getData(), \"hello\");\r\n l1.addOrPromo(\"goodbye\");\r\n assertEquals(l1.head.getNext().getData(), \"goodbye\");\r\n assertEquals(l1.head.getNext().getNext().getData(), \"d2\");\r\n l1.remove(\"goodbye\");\r\n l1.remove(\"hello\");\r\n assertEquals(l1.head.getNext().getData(), \"d2\");\r\n }", "title": "" }, { "docid": "1f0ec2aeed0b3b6288a74dd15d81e70e", "score": "0.5538268", "text": "@Test\n public void testSerialization() {\n Function<UUID, Long> getValue = id -> id.getMostSignificantBits() + id.getLeastSignificantBits();\n Function<UUID, Long> getVersion = id -> id.getLeastSignificantBits() - id.getMostSignificantBits();\n val values = ATTRIBUTE_IDS.stream()\n .map(id -> (Map.Entry<UUID, VersionedValue>) new AbstractMap.SimpleImmutableEntry<>(id, new VersionedValue(getVersion.apply(id), getValue.apply(id))))\n .collect(Collectors.toList());\n val expectedValues = ImmutableMap.<UUID, VersionedValue>builder().putAll(values).build();\n\n // Serialize the data.\n byte[] buffer = new byte[ATTRIBUTE_IDS.size() * 1000];\n val data = CacheEntryLayout.setValues(buffer, values.iterator(), values.size());\n Assert.assertSame(\"New buffer was created when none was expected.\", buffer, data);\n\n // Verify the count was correctly encoded, even if we passed a larger than needed array.\n val l = CacheEntryLayout.wrap(data);\n Assert.assertEquals(\"Unexpected number of attributes encoded.\", values.size(), l.getCount());\n\n // Verify we can get all the values back.\n val actualData = l.getAllValues();\n AssertExtensions.assertMapEquals(\"Unexpected values returned\", expectedValues, actualData);\n\n // Verify that the values were encoded in order.\n for (int i = 0; i < values.size(); i++) {\n val expected = values.get(i);\n val actualId = l.getKey(i);\n val actualValue = l.getValue(i);\n Assert.assertEquals(\"Attribute Ids out of order.\", expected.getKey(), actualId);\n Assert.assertEquals(\"Attribute Values out of order.\", expected.getValue().value, (long) actualValue);\n }\n }", "title": "" }, { "docid": "5a879c765750d55d894067cc3f7c5fa8", "score": "0.5518893", "text": "@Order(4)\n @RepeatedTest(50)\n void testDuplicateInstrCreate() {\n\n Assertions.assertThrows(\n MongoWriteException.class,\n () ->\n realDbms.createInstructor(\n generator.nextInt(19), expectedFullData.getJSONObject(generator.nextInt(19))));\n }", "title": "" }, { "docid": "d163fa5c5cdced7fd37c5c0794cacc0a", "score": "0.55114543", "text": "public void test_18_104_writeObject() {\n\n\t\tObject objToSave = null;\n\t\tObject objLoaded;\n\n\t\ttry {\n\t\t\tObject col = Collections.synchronizedSortedMap(TREE);\n\t\t\tobjToSave = col;\n\t\t\tif (DEBUG)\n\t\t\t\tSystem.out.println(\"Obj = \" + objToSave);\n\t\t\tobjLoaded = dumpAndReload(objToSave);\n\t\t\t// Has to have worked\n\t\t\tassertTrue(MSG_TEST_FAILED + objToSave, col.equals(objLoaded));\n\n\t\t} catch (IOException e) {\n\t\t\tfail(\"IOException serializing \" + objToSave + \" : \"\n\t\t\t\t\t+ e.getMessage());\n\t\t} catch (ClassNotFoundException e) {\n\t\t\tfail(\"ClassNotFoundException reading Object type : \"\n\t\t\t\t\t+ e.getMessage());\n\t\t} catch (Error err) {\n\t\t\tSystem.out.println(\"Error when obj = \" + objToSave);\n\t\t\t// err.printStackTrace();\n\t\t\tthrow err;\n\t\t}\n\t}", "title": "" }, { "docid": "9334911d73c4ad441b8515fd92c08384", "score": "0.5510476", "text": "@Test\r\n\tpublic void deserializeSerialized() {\r\n\t\tRandom random = new Random();\r\n\t\t\r\n\t\tfor (int i = 0; i < NUMBER_OF_TESTS; i++) {\r\n\t\t\tAddress adresa = new Address(random.nextInt(CLIENT_ID_LIMIT), random.nextInt(NODE_ID_LIMIT));\r\n\t\t\tAssert.assertEquals(\"Adrese nisu iste!\", adresa, Address.parseGID(adresa.getGID()));\r\n\t\t}\t\t\r\n\t}", "title": "" }, { "docid": "367e865a023625ead6ce9334271566f4", "score": "0.5509606", "text": "@Test\n public void testInsertType() {\n ClientUtils.callTest(\"/test/InsertIT.testInsertType\");\n }", "title": "" }, { "docid": "2aed60861059b47713044d8a3d184c16", "score": "0.55014765", "text": "@Test\n\tvoid test4() {\n\t\t\n\t\tTST<Integer> other = new TST<>();\n\t\tother.put(\"key\", 0);\n\t\t\n\t\tassertEquals(false,i.equals(other));\n\t\t\n\t}", "title": "" }, { "docid": "fa3fcc65f1dd474177b6589e464acd58", "score": "0.5494515", "text": "@Test\n public void serialisation() {\n SerializableModel serializedModel = new SerializableModel(modelUpdated);\n Model deserializedModel = new Model(serializedModel);\n\n // Test for serialization correctness\n assertEquals(modelUpdated, deserializedModel);\n }", "title": "" }, { "docid": "be025ac01dba6019e5d06cc42ad4bfab", "score": "0.5488969", "text": "public void beforeInsert0B11( )\n {\n }", "title": "" }, { "docid": "92d730ef42c46617d8a4726889466b1f", "score": "0.54874665", "text": "public void testInsert() {\n // insert the records & check to see if the inserts reported successful insertion\n SuspensionsDao suspensionsDao = new SuspensionsDao(false);\n assertTrue(suspensionsDao.insert(suspension1_));\n assertTrue(suspensionsDao.insert(suspension2_));\n suspensionsDao.close();\n \n \n // validate the inserts were successful\n suspensionsDao = new SuspensionsDao(false);\n \n Suspension suspension1 = suspensionsDao.getSuspensionByName(suspension1_.getName());\n if (suspension1.getId() == -1) fail(\"suspension1.getId() == -1\");\n else suspension1.setId(-1);\n assertTrue(suspension1.isEqual(suspension1_));\n assertFalse(suspension1.isEqual(suspension2_));\n \n Suspension suspension2 = suspensionsDao.getSuspensionByName(suspension2_.getName());\n if (suspension2.getId() == -1) fail(\"suspension2.getId() == -1\");\n else suspension2.setId(-1);\n assertFalse(suspension2.isEqual(suspension1_));\n assertTrue(suspension2.isEqual(suspension2_));\n suspensionsDao.close();\n }", "title": "" }, { "docid": "98d6f84d248e7f1f7079384067e5ce18", "score": "0.54873997", "text": "private void createTestSerializedDataModel(){\r\n theSerializedDataModel = new SerializedDataModel();\r\n }", "title": "" }, { "docid": "5b417a1b01cafbaa63d7df898136ca1d", "score": "0.5483419", "text": "public void testSerializable() throws IOException, ClassNotFoundException {\n Pair<?, ?> item1 = Pair.of(5, \"bla\");\n ByteArrayOutputStream bout = new ByteArrayOutputStream();\n ObjectOutputStream out = new ObjectOutputStream(bout);\n out.writeObject(item1);\n ObjectInputStream in = new ObjectInputStream(new ByteArrayInputStream(bout.toByteArray()));\n Assert.assertEquals(item1, in.readObject());\n }", "title": "" }, { "docid": "b53d2400d404ebe083b2c81fc98d0937", "score": "0.547385", "text": "@Test\n void test08_insert_500_items_and_remove_them() {\n String key = \"\";\n String value = \"\";\n // Insertion\n for (int i = 1; i <= 500; i++) {\n key = (\"testKey\" + Integer.toString(i));\n value = (\"testValue\" + Integer.toString(i));\n dataStructureInstance.insert(key, value);\n }\n if(dataStructureInstance.size() != 500) {\n fail(\"Failed to insert 500 items.\" + \"It only has \" \n + dataStructureInstance.size() + \" items added.\");\n }\n \n // Removal\n for (int i = 1; i <= 500; i++) {\n key = (\"testKey\" + Integer.toString(i));\n dataStructureInstance.remove(key);\n }\n if(dataStructureInstance.size() != 0) {\n fail(\"Failed to remove 500 items. \" + \"It has \"\n + dataStructureInstance.size() + \" items remaining.\");\n }\n }", "title": "" }, { "docid": "65fc0c18fce2cc521b35e31fbc7b9819", "score": "0.547343", "text": "public void testInsert(){\n }", "title": "" }, { "docid": "6c133582ee26c532f4e205c57141f5cb", "score": "0.54524523", "text": "@Test\n public void testIncrementalWrite() throws Exception {\n XMLInputFactory xmlInputFactory = XMLInputFactory.newFactory();\n XMLOutputFactory xmlOutputFactory = XMLOutputFactory.newFactory();\n StringWriter out = new StringWriter();\n XMLStreamWriter sw = xmlOutputFactory.createXMLStreamWriter(out);\n\n // then Jackson components\n XmlMapper mapper = new XmlMapper(xmlInputFactory);\n\n sw.writeStartDocument();\n sw.writeStartElement(\"root\");\n\n // Write whatever content POJOs...\n // SomePojo value1 = ...;\n // OtherPojo value2 = ...;\n // mapper.writeValue(sw, value1);\n // mapper.writeValue(sw, value2);\n\n // and/or regular Stax output\n sw.writeComment(\"Some insightful commentary here\");\n sw.writeEndElement();\n sw.writeEndDocument();\n }", "title": "" }, { "docid": "8a6e40731d9bc3717ab487c738b05cc0", "score": "0.5451043", "text": "@Test\n\tpublic void storedUuidObjectSetTest() throws Exception {\n\t\tList<String> names = runner.returnUuidObjectNames();\n\t\tList<String> ln = list(\"Mike\", \"Sobolewski\");\n\t\tCollections.sort(names);\n\t\tlogger.info(\"names: \" + names);\n\n assertEquals(ln, names);\n\t}", "title": "" }, { "docid": "6d2c5650a5c207f042de5167f8f2ec77", "score": "0.545023", "text": "private void testSerialization(Drs expected) throws IOException {\n DrsJsonMapper jsonMapper = new DrsJsonMapper();\n String json = jsonMapper.writeValueAsString(expected);\n LOGGER.debug(\"DRS JSON serialization: \\n{}\", json);\n Drs actualJson = jsonMapper.readValue(json, Drs.class);\n Assert.assertEquals(expected, actualJson);\n\n DrsYamlMapper yamlMapper = new DrsYamlMapper();\n String yaml = yamlMapper.writeValueAsString(expected);\n LOGGER.debug(\"DRS YAML serialization: \\n{}\", yaml);\n Drs actualYaml = yamlMapper.readValue(yaml, Drs.class);\n Assert.assertEquals(expected, actualYaml);\n }", "title": "" }, { "docid": "b9e5e1fea4f1c6e10eaf5f3d5e0b3c28", "score": "0.54382455", "text": "@Test\n void insertSuccess() {\n Report newReport = new Report(0, \"TestReport\", new Date(2018, 12, 18), 0, 0, \"test\");\n int newId = genericDAO.insert(newReport);\n assertNotEquals(0, newId);\n Report insertedReport = (Report) genericDAO.getById(newId);\n //the id's are expected to be different, so can't test if equal on entire entity\n assertEquals(newReport.getName(), insertedReport.getName());\n\n }", "title": "" }, { "docid": "093758333b808dbed23bdf114cc387a8", "score": "0.5435649", "text": "public void test_18_101_writeObject() {\n\n\t\tObject objToSave = null;\n\t\tObject objLoaded;\n\n\t\ttry {\n\t\t\tObject col = Collections.synchronizedSet(SET);\n\t\t\tobjToSave = col;\n\t\t\tif (DEBUG)\n\t\t\t\tSystem.out.println(\"Obj = \" + objToSave);\n\t\t\tobjLoaded = dumpAndReload(objToSave);\n\t\t\t// Has to have worked\n\t\t\tassertTrue(MSG_TEST_FAILED + objToSave, col.equals(objLoaded));\n\n\t\t} catch (IOException e) {\n\t\t\tfail(\"IOException serializing \" + objToSave + \" : \"\n\t\t\t\t\t+ e.getMessage());\n\t\t} catch (ClassNotFoundException e) {\n\t\t\tfail(\"ClassNotFoundException reading Object type : \"\n\t\t\t\t\t+ e.getMessage());\n\t\t} catch (Error err) {\n\t\t\tSystem.out.println(\"Error when obj = \" + objToSave);\n\t\t\t// err.printStackTrace();\n\t\t\tthrow err;\n\t\t}\n\t}", "title": "" }, { "docid": "24d04dea6dc2d1c5270ccc56d3377434", "score": "0.54342735", "text": "@Test\n\tpublic void insertTest() {\n\t\tLOGGER.debug(\"Start insertTest method\");\n\t\tservice.saveContract(instance_1);\n\t\tinstance_1FromDb = service.getContract(instance_1.getId());\n\n\t\tAssert.notNull(instance_1FromDb, \"instance must be saved\");\n\n\t\tAssert.isTrue(\n\t\t\t\t(instance_1FromDb.getCreated() != null) && (instance_1FromDb.getContractStatus() != null)\n\t\t\t\t\t\t&& (instance_1FromDb.getPayForm() != null) && (instance_1FromDb.getPayStatus() != null)\n\t\t\t\t\t\t&& (instance_1FromDb.getCustomerId() != null) && (instance_1FromDb.getTotalPrice() != null),\n\t\t\t\t\"columns values must not by empty\");\n\n\t\tAssert.isTrue(instance_1FromDb.equals(instance_1), \"values of the corresponding columns must by eq.\");\n\t\tLOGGER.debug(\"Finish insertTest method\");\n\n\t}", "title": "" }, { "docid": "4cb7a72cf1eab66562f0c2d75563678f", "score": "0.5433086", "text": "@Test\n public void testMerge() {\n System.out.println(\"test --> merge\");\n Contatto c = new Contatto();\n Contatto result = instance.merge(new PersistenceClass(Contatto.class),c);\n\n assertEquals(c, result);\n \n }", "title": "" }, { "docid": "48015904fb078f7badeceb606add488e", "score": "0.5430869", "text": "public void testInterfaceMethods() throws Exception\n {\n List columns = new ArrayList();\n columns.add(new PSCatalogResultColumn(\n \"Name\", PSCatalogResultColumn.TYPE_TEXT));\n columns.add(new PSCatalogResultColumn(\n \"Number\", PSCatalogResultColumn.TYPE_NUMERIC)); \n columns.add(new PSCatalogResultColumn(\n \"Created Date\", PSCatalogResultColumn.TYPE_DATE)); \n \n PSCatalogResultColumn[] columnMeta = \n (PSCatalogResultColumn[])columns.toArray(new PSCatalogResultColumn[0]);\n PSCatalogResultSet resultSet = new PSCatalogResultSet(columnMeta);\n \n PSCatalogResult result = \n new PSCatalogResult(\"ArchiveLogID1\", \"testArchive1\");\n result.addTextColumn(\"testArchive1\");\n result.addNumericColumn(5);\n result.addDateColumn(System.currentTimeMillis());\n resultSet.addResult(result); \n \n result = new PSCatalogResult(\"ArchiveLogID2\", \"testArchive2\");\n result.addTextColumn(\"testArchive2\");\n result.addNumericColumn(6);\n result.addDateColumn(System.currentTimeMillis());\n resultSet.addResult(result); \n\n Document doc = PSXmlDocumentBuilder.createXmlDocument();\n Element srcEl = resultSet.toXml(doc);\n PSCatalogResultSet otherSet = new PSCatalogResultSet(srcEl);\n assertTrue(resultSet.equals(otherSet));\n \n PSCatalogResult oneMore = \n new PSCatalogResult(\"ArchiveLogID3\", \"testArchive3\");\n oneMore.addTextColumn(\"testArchive3\");\n oneMore.addNumericColumn(7);\n oneMore.addDateColumn(System.currentTimeMillis()); \n resultSet.addResult(oneMore);\n assertTrue(!resultSet.equals(otherSet));\n \n otherSet.copyFrom(resultSet);\n \n assertTrue(resultSet.equals(otherSet));\n assertTrue(resultSet.hashCode() == otherSet.hashCode());\n \n //The result column objects are not in the order of column meta\n //so the validation should return false\n PSCatalogResult testWrongColumns = \n new PSCatalogResult(\"ArchiveLogID3\", \"testArchive3\");\n testWrongColumns.addDateColumn(System.currentTimeMillis()); \n testWrongColumns.addTextColumn(\"testArchive3\");\n testWrongColumns.addNumericColumn(7); \n assertTrue(!resultSet.validateResultToAdd(testWrongColumns));\n \n //Tests validation to add a result with columns to the result set which\n //does not support columns.\n PSCatalogResultSet set = new PSCatalogResultSet();\n //should fail as result has columns but set does not support\n assertTrue(!set.validateResultToAdd(oneMore));\n }", "title": "" }, { "docid": "646917525e6072f39cd97c47a2fcbbd7", "score": "0.5430111", "text": "@Disabled(\"Should work because they are the same...\")\n\t@Test\n\tpublic void testInsert() {\n\t\tBST bst = new BST();\n\t\tbst.insert(8);\t\t\t\t\t\n\t\tbst.insert(6); \n\t\tbst.insert(7);\n\t\tbst.insert(2);\n\t\tbst.insert(3);\n\t\tbst.insert(5);\n\t\tbst.insert(1);\n\t\tbst.insert(4);\n\t\tbst.insert(9);\n\t\tbst.insert(10);\n\t\toutputPrint = cP.consoleText(bst);\n\t\tassertEquals(\"8 6 2 1 3 5 4 7 9 1 0\", outputPrint);\n\t}", "title": "" }, { "docid": "dc32e6aa9f7ce32baeaff182de746e85", "score": "0.54263955", "text": "public void testSerialization() {\n\n // Serialize the test bean\n final ByteArrayOutputStream baos = new ByteArrayOutputStream();\n try {\n final ObjectOutputStream oos = new ObjectOutputStream(baos);\n oos.writeObject(bean);\n oos.flush();\n oos.close();\n } catch (final Exception e) {\n fail(\"Exception during serialization: \" + e);\n }\n\n // Deserialize the test bean\n try {\n bean = null;\n final ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray());\n final ObjectInputStream ois = new ObjectInputStream(bais);\n bean = (DynaBean) ois.readObject();\n bais.close();\n } catch (final Exception e) {\n fail(\"Exception during deserialization: \" + e);\n }\n\n // Confirm property values\n testGetDescriptorArguments();\n testGetDescriptorBoolean();\n testGetDescriptorDouble();\n testGetDescriptorFloat();\n testGetDescriptorInt();\n testGetDescriptorLong();\n testGetDescriptorSecond();\n testGetDescriptorShort();\n testGetDescriptorString();\n testGetDescriptors();\n testGetIndexedArguments();\n testGetIndexedValues();\n testGetMappedArguments();\n testGetMappedValues();\n testGetSimpleArguments();\n testGetSimpleBoolean();\n testGetSimpleDouble();\n testGetSimpleFloat();\n testGetSimpleInt();\n testGetSimpleLong();\n testGetSimpleShort();\n testGetSimpleString();\n testMappedContains();\n testMappedRemove();\n\n // Ensure that we can create a new instance of the same DynaClass\n try {\n bean = bean.getDynaClass().newInstance();\n } catch (final Exception e) {\n fail(\"Exception creating new instance: \" + e);\n }\n testGetDescriptorArguments();\n testGetDescriptorBoolean();\n testGetDescriptorDouble();\n testGetDescriptorFloat();\n testGetDescriptorInt();\n testGetDescriptorLong();\n testGetDescriptorSecond();\n testGetDescriptorShort();\n testGetDescriptorString();\n testGetDescriptors();\n\n }", "title": "" }, { "docid": "2b635dd7d73a55454c6a9b8cfa0f4049", "score": "0.5424211", "text": "@Test\n public void testStoreMultilpleWrites() throws Exception {\n AccountStatsMySqlStore mySqlStore = createAccountStatsMySqlStore(clusterName1, hostname1, port1);\n HostAccountStorageStatsWrapper stats1 =\n generateHostAccountStorageStatsWrapper(10, 10, 1, StatsReportType.ACCOUNT_REPORT);\n mySqlStore.storeHostAccountStorageStats(stats1);\n\n HostAccountStorageStats hostAccountStorageStatsCopy = new HostAccountStorageStats(stats1.getStats());\n Map<Long, Map<Short, Map<Short, ContainerStorageStats>>> newStorageStats =\n new HashMap<>(hostAccountStorageStatsCopy.getStorageStats());\n ContainerStorageStats origin = newStorageStats.get((long) 0).get((short) 0).get((short) 0);\n newStorageStats.get((long) 0)\n .get((short) 0)\n .put((short) 0,\n new ContainerStorageStats.Builder(origin).logicalStorageUsage(origin.getLogicalStorageUsage() + 1).build());\n\n HostAccountStorageStatsWrapper stats2 = new HostAccountStorageStatsWrapper(new StatsHeader(stats1.getHeader()),\n new HostAccountStorageStats(newStorageStats));\n mySqlStore.storeHostAccountStorageStats(stats2);\n HostAccountStorageStatsWrapper obtainedStats = mySqlStore.queryHostAccountStorageStatsByHost(hostname1, port1);\n assertEquals(stats2.getStats().getStorageStats(), obtainedStats.getStats().getStorageStats());\n\n hostAccountStorageStatsCopy = new HostAccountStorageStats(stats1.getStats());\n newStorageStats = new HashMap<>(hostAccountStorageStatsCopy.getStorageStats());\n origin = newStorageStats.get((long) 0).get((short) 0).get((short) 0);\n newStorageStats.get((long) 0)\n .get((short) 0)\n .put((short) 0,\n new ContainerStorageStats.Builder(origin).physicalStorageUsage(origin.getPhysicalStorageUsage() + 1)\n .build());\n\n HostAccountStorageStatsWrapper stats3 = new HostAccountStorageStatsWrapper(new StatsHeader(stats1.getHeader()),\n new HostAccountStorageStats(newStorageStats));\n mySqlStore.storeHostAccountStorageStats(stats3);\n obtainedStats = mySqlStore.queryHostAccountStorageStatsByHost(hostname1, port1);\n assertEquals(stats3.getStats().getStorageStats(), obtainedStats.getStats().getStorageStats());\n\n hostAccountStorageStatsCopy = new HostAccountStorageStats(stats1.getStats());\n newStorageStats = new HashMap<>(hostAccountStorageStatsCopy.getStorageStats());\n origin = newStorageStats.get((long) 0).get((short) 0).get((short) 0);\n newStorageStats.get((long) 0)\n .get((short) 0)\n .put((short) 0, new ContainerStorageStats.Builder(origin).numberOfBlobs(origin.getNumberOfBlobs() + 1).build());\n\n HostAccountStorageStatsWrapper stats4 = new HostAccountStorageStatsWrapper(new StatsHeader(stats1.getHeader()),\n new HostAccountStorageStats(newStorageStats));\n mySqlStore.storeHostAccountStorageStats(stats4);\n obtainedStats = mySqlStore.queryHostAccountStorageStatsByHost(hostname1, port1);\n assertEquals(stats4.getStats().getStorageStats(), obtainedStats.getStats().getStorageStats());\n\n mySqlStore.shutdown();\n }", "title": "" }, { "docid": "1fbfd8fca0559178703b42ac310b48aa", "score": "0.5402445", "text": "@Test\n \tpublic void testReachability() throws Exception {\n \t\tSession s = openSession();\n \t\ts.beginTransaction();\n \t\tBaz baz1 = new Baz();\n \t\ts.save(baz1);\n \t\tBaz baz2 = new Baz();\n \t\ts.save(baz2);\n \t\tbaz1.setIntArray( new int[] {1 ,2, 3, 4} );\n \t\tbaz1.setFooSet( new HashSet() );\n \t\tFoo foo = new Foo();\n \t\ts.save(foo);\n \t\tbaz1.getFooSet().add(foo);\n \t\ts.getTransaction().commit();\n \t\ts.close();\n \n \t\ts = openSession();\n \t\ts.beginTransaction();\n \t\tbaz2 = (Baz) s.load( Baz.class, baz2.getCode() );\n \t\tbaz1 = (Baz) s.load( Baz.class, baz1.getCode() );\n \t\tbaz2.setFooSet( baz1.getFooSet() ); baz1.setFooSet(null);\n \t\tbaz2.setIntArray( baz1.getIntArray() ); baz1.setIntArray(null);\n \t\ts.getTransaction().commit();\n \t\ts.close();\n \n \t\ts = openSession();\n \t\ts.beginTransaction();\n \t\tbaz2 = (Baz) s.load( Baz.class, baz2.getCode() );\n \t\tbaz1 = (Baz) s.load( Baz.class, baz1.getCode() );\n \t\tassertTrue( \"unkeyed reachability\", baz2.getIntArray().length==4 );\n \t\tassertTrue( \"unkeyed reachability\", baz2.getFooSet().size()==1 );\n \t\tassertTrue( \"unkeyed reachability\", baz1.getIntArray().length==0 );\n \t\tassertTrue( \"unkeyed reachability\", baz1.getFooSet().size()==0 );\n \t\t//System.out.println( s.print(baz1) + s.print(baz2) );\n \t\tFooProxy fp = (FooProxy) baz2.getFooSet().iterator().next();\n \t\ts.delete(fp);\n \t\ts.delete(baz1);\n \t\ts.delete(baz2);\n \t\ts.getTransaction().commit();\n \t\ts.close();\n \n \t\t//now for collections of collections\n \t\ts = openSession();\n \t\ts.beginTransaction();\n \t\tbaz1 = new Baz();\n \t\ts.save(baz1);\n \t\tbaz2 = new Baz();\n \t\ts.save(baz2);\n \t\ts.getTransaction().commit();\n \t\ts.close();\n \n \t\ts = openSession();\n \t\ts.beginTransaction();\n \t\tbaz2 = (Baz) s.load( Baz.class, baz2.getCode() );\n \t\tbaz1 = (Baz) s.load( Baz.class, baz1.getCode() );\n \t\ts.getTransaction().commit();\n \t\ts.close();\n \n \t\ts = openSession();\n \t\ts.beginTransaction();\n \t\tbaz2 = (Baz) s.load( Baz.class, baz2.getCode() );\n \t\ts.getTransaction().commit();\n \t\ts.close();\n \n \t\ts = openSession();\n \t\ts.beginTransaction();\n \t\tbaz2 = (Baz) s.load( Baz.class, baz2.getCode() );\n \t\tbaz1 = (Baz) s.load( Baz.class, baz1.getCode() );\n \t\ts.delete(baz1);\n \t\ts.delete(baz2);\n \t\ts.getTransaction().commit();\n \t\ts.close();\n \n \t\t//now for keyed collections\n \t\ts = openSession();\n \t\ts.beginTransaction();\n \t\tbaz1 = new Baz();\n \t\ts.save(baz1);\n \t\tbaz2 = new Baz();\n \t\ts.save(baz2);\n \t\tFoo foo1 = new Foo();\n \t\tFoo foo2 = new Foo();\n \t\ts.save(foo1); s.save(foo2);\n \t\tbaz1.setFooArray( new Foo[] { foo1, null, foo2 } );\n \t\tbaz1.setStringDateMap( new TreeMap() );\n \t\tbaz1.getStringDateMap().put(\"today\", new Date( System.currentTimeMillis() ) );\n \t\tbaz1.getStringDateMap().put(\"tomorrow\", new Date( System.currentTimeMillis() + 86400000 ) );\n \t\ts.getTransaction().commit();\n \t\ts.close();\n \n \t\ts = openSession();\n \t\ts.beginTransaction();\n \t\tbaz2 = (Baz) s.load( Baz.class, baz2.getCode() );\n \t\tbaz1 = (Baz) s.load( Baz.class, baz1.getCode() );\n \t\tbaz2.setFooArray( baz1.getFooArray() ); baz1.setFooArray(null);\n \t\tbaz2.setStringDateMap( baz1.getStringDateMap() ); baz1.setStringDateMap(null);\n \t\ts.getTransaction().commit();\n \t\ts.close();\n \n \t\ts = openSession();\n \t\ts.beginTransaction();\n \t\tbaz2 = (Baz) s.load( Baz.class, baz2.getCode() );\n \t\tbaz1 = (Baz) s.load( Baz.class, baz1.getCode() );\n \t\tassertTrue( \"reachability\", baz2.getStringDateMap().size()==2 );\n \t\tassertTrue( \"reachability\", baz2.getFooArray().length==3 );\n \t\tassertTrue( \"reachability\", baz1.getStringDateMap().size()==0 );\n \t\tassertTrue( \"reachability\", baz1.getFooArray().length==0 );\n \t\tassertTrue( \"null element\", baz2.getFooArray()[1]==null );\n \t\tassertTrue( \"non-null element\", baz2.getStringDateMap().get(\"today\")!=null );\n \t\tassertTrue( \"non-null element\", baz2.getStringDateMap().get(\"tomorrow\")!=null );\n \t\tassertTrue( \"null element\", baz2.getStringDateMap().get(\"foo\")==null );\n \t\ts.delete( baz2.getFooArray()[0] );\n \t\ts.delete( baz2.getFooArray()[2] );\n \t\ts.delete(baz1);\n \t\ts.delete(baz2);\n \t\ts.flush();\n \t\tassertTrue( s.createQuery( \"from java.lang.Object\" ).list().size()==0 );\n \t\ts.getTransaction().commit();\n \t\ts.close();\n \t}", "title": "" }, { "docid": "27b4df349cf07c07abbe581b0843911e", "score": "0.5402176", "text": "public void test50967() {\n byte[] bytes = HexRead.readFromString(data_50967);\n\n RecordInputStream in = TestcaseRecordInputStream.create(bytes);\n assertEquals(ExtSSTRecord.sid, in.getSid());\n ExtSSTRecord src = new ExtSSTRecord(in);\n assertEquals(12386, src.getDataSize());\n ExtSSTRecord.InfoSubRecord[] sub1 = src.getInfoSubRecords();\n\n byte[] serialized = src.serialize();\n\n in = TestcaseRecordInputStream.create(serialized);\n assertEquals(ExtSSTRecord.sid, in.getSid());\n ExtSSTRecord dst = new ExtSSTRecord(in);\n assertEquals(12386, dst.getDataSize());\n ExtSSTRecord.InfoSubRecord[] sub2 = src.getInfoSubRecords();\n assertEquals(sub1.length, sub2.length);\n\n for(int i = 0; i < sub1.length; i++){\n ExtSSTRecord.InfoSubRecord s1 = sub1[i];\n ExtSSTRecord.InfoSubRecord s2 = sub2[i];\n\n assertEquals(s1.getBucketSSTOffset(), s2.getBucketSSTOffset());\n assertEquals(s1.getStreamPos(), s2.getStreamPos());\n\n }\n }", "title": "" }, { "docid": "f1049878eae2f2cad2e4a0f89c43d6cb", "score": "0.539371", "text": "public void test_18_106_writeObject() {\n\n\t\tObject objToSave = null;\n\t\tObject objLoaded;\n\n\t\ttry {\n\t\t\tobjToSave = SORTSET;\n\t\t\tif (DEBUG)\n\t\t\t\tSystem.out.println(\"Obj = \" + objToSave);\n\t\t\tobjLoaded = dumpAndReload(objToSave);\n\t\t\t// Has to have worked\n\t\t\tassertTrue(MSG_TEST_FAILED + objToSave, SET.equals(objLoaded));\n\n\t\t} catch (IOException e) {\n\t\t\tfail(\"IOException serializing \" + objToSave + \" : \"\n\t\t\t\t\t+ e.getMessage());\n\t\t} catch (ClassNotFoundException e) {\n\t\t\tfail(\"ClassNotFoundException reading Object type : \"\n\t\t\t\t\t+ e.getMessage());\n\t\t} catch (Error err) {\n\t\t\tSystem.out.println(\"Error when obj = \" + objToSave);\n\t\t\t// err.printStackTrace();\n\t\t\tthrow err;\n\t\t}\n\t}", "title": "" }, { "docid": "88dc0568e9bb3aedbffa5e4e2c22382a", "score": "0.5388091", "text": "private static void testDeduplication() {\n\t\t\n\t}", "title": "" }, { "docid": "c3f6d3f4f17be20aaeae5b9d67a1c758", "score": "0.5382123", "text": "@SuppressWarnings(\"unchecked\")\n @Test\n public void storageTest() {\n final ActivityEntryDTO actE = new ActivityEntryDTO(this.fEntryMap);\n\n // modify data\n final ActivityEntry modActE = new ActivityEntryImpl();\n modActE.setContent(actE.getContent() + \" mod\");\n modActE.setPublished(actE.getPublished() + \" mod\");\n modActE.setTitle(actE.getTitle() + \" mod\");\n modActE.setUpdated(actE.getUpdated() + \" mod\");\n modActE.setUrl(actE.getUrl() + \" mod\");\n modActE.setVerb(actE.getVerb() + \" mod\");\n\n ActivityObject actor = actE.getActor();\n actor = modifyObject(actor);\n modActE.setActor(actor);\n\n ActivityObject object = actE.getObject();\n object = modifyObject(object);\n modActE.setObject(object);\n\n ActivityObject target = actE.getTarget();\n target = modifyObject(target);\n modActE.setTarget(target);\n\n ActivityObject generator = actE.getGenerator();\n generator = modifyObject(generator);\n modActE.setGenerator(generator);\n\n ActivityObject provider = actE.getProvider();\n provider = modifyObject(provider);\n modActE.setProvider(provider);\n\n // set data\n actE.setData(modActE);\n\n // check result\n Assert.assertEquals(ActivityEntryDTOTest.CONTENT + \" mod\",\n this.fEntryMap.get(ActivityEntry.Field.CONTENT.toString()));\n Assert.assertEquals(ActivityEntryDTOTest.PUBLISHED + \" mod\",\n this.fEntryMap.get(ActivityEntry.Field.PUBLISHED.toString()));\n Assert.assertEquals(ActivityEntryDTOTest.TITLE + \" mod\",\n this.fEntryMap.get(ActivityEntry.Field.TITLE.toString()));\n Assert.assertEquals(ActivityEntryDTOTest.UPDATED + \" mod\",\n this.fEntryMap.get(ActivityEntry.Field.UPDATED.toString()));\n Assert.assertEquals(ActivityEntryDTOTest.URL + \" mod\",\n this.fEntryMap.get(ActivityEntry.Field.URL.toString()));\n Assert.assertEquals(ActivityEntryDTOTest.VERB + \" mod\",\n this.fEntryMap.get(ActivityEntry.Field.VERB.toString()));\n\n validateObject((Map<String, Object>) this.fEntryMap.get(ActivityEntry.Field.ACTOR.toString()));\n validateObject((Map<String, Object>) this.fEntryMap.get(ActivityEntry.Field.OBJECT.toString()));\n validateObject((Map<String, Object>) this.fEntryMap.get(ActivityEntry.Field.TARGET.toString()));\n validateObject((Map<String, Object>) this.fEntryMap.get(ActivityEntry.Field.GENERATOR\n .toString()));\n validateObject((Map<String, Object>) this.fEntryMap\n .get(ActivityEntry.Field.PROVIDER.toString()));\n }", "title": "" }, { "docid": "b92e3e50694a0644af11a0e3cfe158fa", "score": "0.5379508", "text": "@Test\n public void testSaveAddedServices() {\n Subsystem originalSub = subsystemRepository.findOne(8L);\n Member originalMember = originalSub.getMember();\n Service originalService5 = serviceRepository.findOne(5L);\n Service originalService6 = serviceRepository.findOne(6L);\n Service originalRemovedService8 = serviceRepository.findOne(8L);\n Service originalRemovedService9 = serviceRepository.findOne(9L);\n // detach, so we dont modify those objects in the next steps\n testUtil.entityManagerClear();\n\n Subsystem savedSub = new Subsystem();\n testUtil.shallowCopyFields(originalSub, savedSub);\n savedSub.setMember(originalMember);\n Service savedService5 = new Service();\n Service savedService6 = new Service();\n testUtil.shallowCopyFields(originalService5, savedService5);\n testUtil.shallowCopyFields(originalService6, savedService6);\n Service newService = new Service();\n newService.setServiceCode(\"foocode-asddsa-ads\");\n newService.setServiceVersion(\"v6\");\n Service newServiceNullVersion = new Service();\n newServiceNullVersion.setServiceCode(\"foocode-asddsa-ads-null\");\n newServiceNullVersion.setServiceVersion(null);\n Service newServiceEmptyVersion = new Service();\n newServiceEmptyVersion.setServiceCode(\"foocode-asddsa-ads-empty\");\n newServiceEmptyVersion.setServiceVersion(\"\");\n\n catalogService.saveServices(savedSub.createKey(),\n Lists.newArrayList(savedService5, savedService6, newService,\n newServiceNullVersion, newServiceEmptyVersion));\n testUtil.entityManagerFlush();\n long newId = newService.getId();\n long newIdNull = newServiceNullVersion.getId();\n long newIdEmpty = newServiceEmptyVersion.getId();\n testUtil.entityManagerClear();\n\n // read back and verify\n Subsystem checkedSub = subsystemRepository.findOne(8L);\n testUtil.assertAllSame(originalSub.getStatusInfo(), checkedSub.getStatusInfo());\n Service checkedService5 = (Service) testUtil.getEntity(checkedSub.getAllServices(), 5L).get();\n Service checkedService6 = (Service) testUtil.getEntity(checkedSub.getAllServices(), 6L).get();\n Service checkedService8 = (Service) testUtil.getEntity(checkedSub.getAllServices(), 8L).get();\n Service checkedService9 = (Service) testUtil.getEntity(checkedSub.getAllServices(), 9L).get();\n Service checkedNewService = (Service) testUtil.getEntity(checkedSub.getAllServices(), newId).get();\n Service checkedNewServiceNull = (Service) testUtil.getEntity(checkedSub.getAllServices(), newIdNull).get();\n Service checkedNewServiceEmpty = (Service) testUtil.getEntity(checkedSub.getAllServices(), newIdEmpty).get();\n\n assertNewService(checkedNewService);\n assertNewService(checkedNewServiceNull);\n assertNewService(checkedNewServiceEmpty);\n\n assertFalse(checkedService5.getStatusInfo().isRemoved());\n assertFalse(checkedService6.getStatusInfo().isRemoved());\n assertTrue(checkedService8.getStatusInfo().isRemoved());\n assertTrue(checkedService9.getStatusInfo().isRemoved());\n testUtil.assertFetchedIsOnlyDifferent(originalService5.getStatusInfo(), checkedService5.getStatusInfo());\n testUtil.assertFetchedIsOnlyDifferent(originalService6.getStatusInfo(), checkedService6.getStatusInfo());\n testUtil.assertAllSame(originalRemovedService8.getStatusInfo(), checkedService8.getStatusInfo());\n testUtil.assertAllSame(originalRemovedService9.getStatusInfo(), checkedService9.getStatusInfo());\n }", "title": "" }, { "docid": "3535ee3a5a9a6121a02472f97387b312", "score": "0.53719634", "text": "public void testSopInsert_nokey_04() throws Exception {\n assertFalse(insertToSucceed(key, false, false, \"some value\"));\n }", "title": "" }, { "docid": "5fa64bde8ab8d251e37e3e8be53e6a60", "score": "0.5358984", "text": "@Test\n public void testInsertWithOrderMapping() {\n Pokemon pokemon = new Pokemon(BASE_ID + 1, \"Articuno\", TYPES.get(3), TYPES.get(15));\n long result = dbClient.execute()\n .createNamedInsert(\"insert-pokemon-order-arg-rev\")\n .indexedParam(pokemon)\n .execute();\n verifyInsertPokemon(dbClient, result, pokemon);\n }", "title": "" }, { "docid": "15551b76f819a4495059672ba5b7a329", "score": "0.5357025", "text": "@Test\r\n public void serializationEmptyTest() {\r\n BinaryTree<String> mt = new BinaryTree<String>();\r\n assertNotNull(mt);\r\n assertEquals(0, mt.numberOfNodes());\r\n // Test the save(filename) method.\r\n try {\r\n boolean saveStatus = mt.save(SER_FILENAME);\r\n assertTrue(saveStatus);\r\n } catch (java.io.IOException e) {\r\n fail(\"serializationEmptyTest save IOException: \" + e);\r\n return;\r\n } catch (Exception e) {\r\n fail(\"serializationEmptyTest save exception: \" + e);\r\n return;\r\n }\r\n // Test the restore(filename) method.\r\n BinaryTree<String> sbt = new BinaryTree<String>(\"ROOT\");\r\n assertNotNull(sbt);\r\n assertEquals(1, sbt.numberOfNodes());\r\n assertEquals(false, compareTrees(mt, sbt));\r\n try {\r\n boolean restoreStatus = sbt.restore(SER_FILENAME);\r\n assertTrue(restoreStatus);\r\n } catch (java.io.IOException e) {\r\n fail(\"serializationEmptyTest restore IOException: \" + e);\r\n return;\r\n } catch (Exception e) {\r\n fail(\"serializationEmptyTest restore exception: \" + e);\r\n return;\r\n }\r\n // Compare original and restored trees.\r\n assertTrue(compareTrees(mt, sbt));\r\n }", "title": "" }, { "docid": "6022e3069603c7dd799c10080a90b608", "score": "0.5356493", "text": "public void testXml1() throws Exception { \n // make base comparison objects \n InsertRequest insert = new InsertRequest();\n \n insert.setHandle(\"insert 1\");\n insert.addFeature(testFeature);\n TransactionRequest baseRequest = new TransactionRequest();\n baseRequest.addSubRequest(insert);\n baseRequest.setHandle(\"my insert\");\n // run test \n assertTrue(runXmlTest( baseRequest, \"insert1\", true));\n }", "title": "" }, { "docid": "ba8eff79d34438aabac877669a239379", "score": "0.5356382", "text": "@Test\n public void testInsertInHashMapShouldOverWriteForSameData() {\n Person vivek = new Person(\"Swamiji\", 3);\n HashMap<Person, Person> peopleMap = new HashMap<Person, Person>();\n peopleMap.put(swamiji, swamiji);\n peopleMap.put(vivek, vivek);\n assertEquals(1, peopleMap.size());\n }", "title": "" }, { "docid": "2d8572b048ac1d4d0a2ece41c921583e", "score": "0.535599", "text": "public void preMarshal();", "title": "" }, { "docid": "15b11761222481cfb22bc6c37b519d69", "score": "0.5348809", "text": "public void testSopInsert_nokey_05() throws Exception {\n assertTrue(insertToSucceed(key, true, true, \"some value\"));\n }", "title": "" }, { "docid": "afff22ff661649b846029e73a93b61f2", "score": "0.5346762", "text": "@Test\r\n\tpublic void testInsertAt01() {\r\n\r\n\t\tClass1 class1;\r\n\t\tclass1 = new Class1();\r\n\r\n\t\tList<Object> orderedSet01;\r\n\t\torderedSet01 = new ArrayList<Object>();\r\n\t\torderedSet01.add(1);\r\n\t\torderedSet01.add(2);\r\n\t\torderedSet01.add(3);\r\n\r\n\t\tassertEquals(3, class1.testOrderedSetInsertAt(orderedSet01, 1, 1)\r\n\t\t\t\t.size());\r\n\t\tassertEquals(4, class1.testOrderedSetInsertAt(orderedSet01, 1, 0)\r\n\t\t\t\t.size());\r\n\t}", "title": "" }, { "docid": "cb5711b4ddf5e61e088a5d2ee7e48830", "score": "0.5346645", "text": "private void checkSerialization(Element element) throws Exception {\n ElementData eternalElementData = valueModeHandler.createElementData(element);\n serialize(\"eternalElement\", eternalElementData);\n\n // Deserialize elemenData and create new Element\n Serializable deserialized = deserialize(\"eternalElement\");\n Element deserializedElement = valueModeHandler.createElement(KEY, deserialized);\n\n // Assert deserialized Element is equal to original Element\n assertElementsAreEqual(element, deserializedElement);\n }", "title": "" }, { "docid": "3d9943f371c2b5437f24c2765670b706", "score": "0.5343312", "text": "int insert(Spec record);", "title": "" }, { "docid": "35a11b778ebc05a135e4d13ebd58be22", "score": "0.53432506", "text": "public void testJackson354Serialization() throws IOException\n {\n assertEquals(\"{\\\"name\\\":\\\"foo\\\"}\", MAPPER.writeValueAsString(new Bean354()));\n }", "title": "" }, { "docid": "c6b9a84566426c7f4d03135ad14c9ad8", "score": "0.5339936", "text": "@Override\n public void DataIsInserted() {\n }", "title": "" }, { "docid": "e7540c26ee3921265a7ef23c5955f17c", "score": "0.53391284", "text": "public void testEquals()\n {\n /*\n * see testEquals() in InsertElementTest\n */\n }", "title": "" }, { "docid": "82b47f2445b0d8daa6a1ca27deb2ca3c", "score": "0.5337189", "text": "public void test_18_105_writeObject() {\n\n\t\tObject objToSave = null;\n\t\tObject objLoaded;\n\n\t\ttry {\n\t\t\tObject col = Collections.unmodifiableSortedMap(TREE);\n\t\t\tobjToSave = col;\n\t\t\tif (DEBUG)\n\t\t\t\tSystem.out.println(\"Obj = \" + objToSave);\n\t\t\tobjLoaded = dumpAndReload(objToSave);\n\t\t\t// Has to have worked\n\t\t\tassertTrue(MSG_TEST_FAILED + objToSave, col.equals(objLoaded));\n\n\t\t} catch (IOException e) {\n\t\t\tfail(\"IOException serializing \" + objToSave + \" : \"\n\t\t\t\t\t+ e.getMessage());\n\t\t} catch (ClassNotFoundException e) {\n\t\t\tfail(\"ClassNotFoundException reading Object type : \"\n\t\t\t\t\t+ e.getMessage());\n\t\t} catch (Error err) {\n\t\t\tSystem.out.println(\"Error when obj = \" + objToSave);\n\t\t\t// err.printStackTrace();\n\t\t\tthrow err;\n\t\t}\n\t}", "title": "" }, { "docid": "2e40b9f4e22414abaf975ec7695ee3de", "score": "0.5336504", "text": "@Test\n public void testRollBackInsertDuplicate()\n throws DatabaseException {\n\n /* Transactional dups, 3 two-keys. */\n openAndInit(true, true);\n\n /* Add datum 2 for key 0, cursor appears on BIN. */\n Transaction txn = env.beginTransaction(null, null);\n Cursor cursor = db.openCursor(txn, null);\n cursor.put(entry0, entry2);\n checkBinEntriesAndCursors(bin, 4, 1);\n\n /* Closing the cursor without abort does not compress. */\n cursor.close();\n env.compress();\n checkBinEntriesAndCursors(bin, 4, 0);\n\n /* Checkpoint to preserve internal nodes through recovery. */\n env.checkpoint(forceConfig);\n\n /* Abort without calling compress does not compress. */\n txn.abort();\n checkBinEntriesAndCursors(bin, 4, 0);\n\n /*\n * Shutdown and reopen to run recovery. The checkpoint will not\n * compress because deltas are logged.\n */\n db.close();\n closeNoCheckpoint(env);\n env = null;\n openEnv(true, true);\n initInternalNodes();\n\n /* \n * In replicated tests, we expect 64 BINs. In non-replicated tests, \n * there should be 2.\n */\n if (isReplicatedTest(getClass())) {\n checkBinEntriesAndCursors(bin, 64, 0);\n } else {\n checkBinEntriesAndCursors(bin, 4, 0);\n }\n\n /* Lazy compression finally occurs during a full sync (no delta). */\n bin.setDirty(true);\n bin.setProhibitNextDelta(true);\n env.sync();\n checkBinEntriesAndCursors(bin, 3, 0);\n\n /* Should be no change in parent nodes. */\n assertEquals(2, in.getNEntries());\n\n closeEnv();\n }", "title": "" }, { "docid": "2bf8e0e8c215a089ef67b2921bec0d9f", "score": "0.53357536", "text": "public void test_18_90_writeObject() {\n\n\t\tObject objToSave = null;\n\t\tObject objLoaded;\n\n\t\ttry {\n\t\t\tobjToSave = TABLE;\n\t\t\tif (DEBUG)\n\t\t\t\tSystem.out.println(\"Obj = \" + objToSave);\n\t\t\tobjLoaded = dumpAndReload(objToSave);\n\t\t\t// Has to have worked\n\t\t\tassertTrue(MSG_TEST_FAILED + objToSave, TABLE.equals(objLoaded));\n\n\t\t} catch (IOException e) {\n\t\t\tfail(\"IOException serializing \" + objToSave + \" : \"\n\t\t\t\t\t+ e.getMessage());\n\t\t} catch (ClassNotFoundException e) {\n\t\t\tfail(\"ClassNotFoundException reading Object type : \"\n\t\t\t\t\t+ e.getMessage());\n\t\t} catch (Error err) {\n\t\t\tSystem.out.println(\"Error when obj = \" + objToSave);\n\t\t\t// err.printStackTrace();\n\t\t\tthrow err;\n\t\t}\n\t}", "title": "" }, { "docid": "94547b94eac9a3fa676dbc3d42fce44b", "score": "0.5334201", "text": "public void testImportIdentity() {\n \t}", "title": "" }, { "docid": "0fae98c6b920498bd42f0135bf6712b6", "score": "0.53317595", "text": "public void test_18_91_writeObject() {\n\n\t\tObject objToSave = null;\n\t\tObject objLoaded;\n\n\t\ttry {\n\t\t\tObject col = Collections.synchronizedMap(TABLE);\n\t\t\tobjToSave = col;\n\t\t\tif (DEBUG)\n\t\t\t\tSystem.out.println(\"Obj = \" + objToSave);\n\t\t\tobjLoaded = dumpAndReload(objToSave);\n\t\t\t// Has to have worked\n\t\t\tassertTrue(MSG_TEST_FAILED + objToSave, col.equals(objLoaded));\n\n\t\t} catch (IOException e) {\n\t\t\tfail(\"IOException serializing \" + objToSave + \" : \"\n\t\t\t\t\t+ e.getMessage());\n\t\t} catch (ClassNotFoundException e) {\n\t\t\tfail(\"ClassNotFoundException reading Object type : \"\n\t\t\t\t\t+ e.getMessage());\n\t\t} catch (Error err) {\n\t\t\tSystem.out.println(\"Error when obj = \" + objToSave);\n\t\t\t// err.printStackTrace();\n\t\t\tthrow err;\n\t\t}\n\t}", "title": "" }, { "docid": "faf9f09189661e1959f61e893cc21542", "score": "0.5328014", "text": "@Test\n public void testKeepOrderInsertWithSameTimestampAndDifferentVersion() throws IOException {\n List<TsFileResource> seqResources = new ArrayList<>();\n seqResources.add(\n new TsFileResource(\n new File(\n TsFileNameGenerator.generateNewTsFilePath(\n TestConstant.BASE_OUTPUT_PATH, 1, 1, 0, 0))));\n seqResources.add(\n new TsFileResource(\n new File(\n TsFileNameGenerator.generateNewTsFilePath(\n TestConstant.BASE_OUTPUT_PATH, 1, 5, 0, 0))));\n seqResources.add(\n new TsFileResource(\n new File(\n TsFileNameGenerator.generateNewTsFilePath(\n TestConstant.BASE_OUTPUT_PATH, 1, 6, 0, 0))));\n seqResources.add(\n new TsFileResource(\n new File(\n TsFileNameGenerator.generateNewTsFilePath(\n TestConstant.BASE_OUTPUT_PATH, 2, 4, 0, 0))));\n seqResources.add(\n new TsFileResource(\n new File(\n TsFileNameGenerator.generateNewTsFilePath(\n TestConstant.BASE_OUTPUT_PATH, 3, 3, 0, 0))));\n seqResources.add(\n new TsFileResource(\n new File(\n TsFileNameGenerator.generateNewTsFilePath(\n TestConstant.BASE_OUTPUT_PATH, 4, 7, 0, 0))));\n seqResources.add(\n new TsFileResource(\n new File(\n TsFileNameGenerator.generateNewTsFilePath(\n TestConstant.BASE_OUTPUT_PATH, 4, 9, 0, 0))));\n seqResources.add(\n new TsFileResource(\n new File(\n TsFileNameGenerator.generateNewTsFilePath(\n TestConstant.BASE_OUTPUT_PATH, 5, 8, 0, 0))));\n\n TsFileResourceList tsFileResourceList = new TsFileResourceList();\n tsFileResourceList.keepOrderInsert(seqResources.get(4));\n tsFileResourceList.keepOrderInsert(seqResources.get(3));\n tsFileResourceList.keepOrderInsert(seqResources.get(5));\n tsFileResourceList.keepOrderInsert(seqResources.get(1));\n tsFileResourceList.keepOrderInsert(seqResources.get(0));\n tsFileResourceList.keepOrderInsert(seqResources.get(2));\n tsFileResourceList.keepOrderInsert(seqResources.get(6));\n tsFileResourceList.keepOrderInsert(seqResources.get(7));\n Assert.assertEquals(seqResources, tsFileResourceList.getArrayList());\n\n for (TsFileResource resource : seqResources) {\n tsFileResourceList.remove(resource);\n }\n tsFileResourceList.keepOrderInsert(seqResources.get(0));\n tsFileResourceList.keepOrderInsert(seqResources.get(4));\n tsFileResourceList.keepOrderInsert(seqResources.get(5));\n tsFileResourceList.keepOrderInsert(seqResources.get(7));\n tsFileResourceList.keepOrderInsert(seqResources.get(2));\n tsFileResourceList.keepOrderInsert(seqResources.get(1));\n tsFileResourceList.keepOrderInsert(seqResources.get(3));\n tsFileResourceList.keepOrderInsert(seqResources.get(6));\n Assert.assertEquals(seqResources, tsFileResourceList.getArrayList());\n\n for (TsFileResource resource : seqResources) {\n tsFileResourceList.remove(resource);\n }\n tsFileResourceList.keepOrderInsert(seqResources.get(7));\n tsFileResourceList.keepOrderInsert(seqResources.get(1));\n tsFileResourceList.keepOrderInsert(seqResources.get(5));\n tsFileResourceList.keepOrderInsert(seqResources.get(6));\n tsFileResourceList.keepOrderInsert(seqResources.get(2));\n tsFileResourceList.keepOrderInsert(seqResources.get(4));\n tsFileResourceList.keepOrderInsert(seqResources.get(3));\n tsFileResourceList.keepOrderInsert(seqResources.get(0));\n Assert.assertEquals(seqResources, tsFileResourceList.getArrayList());\n\n for (TsFileResource resource : seqResources) {\n tsFileResourceList.remove(resource);\n }\n tsFileResourceList.keepOrderInsert(seqResources.get(0));\n tsFileResourceList.keepOrderInsert(seqResources.get(1));\n tsFileResourceList.keepOrderInsert(seqResources.get(2));\n tsFileResourceList.keepOrderInsert(seqResources.get(3));\n tsFileResourceList.keepOrderInsert(seqResources.get(4));\n tsFileResourceList.keepOrderInsert(seqResources.get(5));\n tsFileResourceList.keepOrderInsert(seqResources.get(6));\n tsFileResourceList.keepOrderInsert(seqResources.get(7));\n Assert.assertEquals(seqResources, tsFileResourceList.getArrayList());\n\n for (TsFileResource resource : seqResources) {\n tsFileResourceList.remove(resource);\n }\n tsFileResourceList.keepOrderInsert(seqResources.get(7));\n tsFileResourceList.keepOrderInsert(seqResources.get(6));\n tsFileResourceList.keepOrderInsert(seqResources.get(5));\n tsFileResourceList.keepOrderInsert(seqResources.get(4));\n tsFileResourceList.keepOrderInsert(seqResources.get(3));\n tsFileResourceList.keepOrderInsert(seqResources.get(2));\n tsFileResourceList.keepOrderInsert(seqResources.get(1));\n tsFileResourceList.keepOrderInsert(seqResources.get(0));\n Assert.assertEquals(seqResources, tsFileResourceList.getArrayList());\n }", "title": "" }, { "docid": "73ed9d2b84392d52374a2edab7ad1bbb", "score": "0.5327147", "text": "@Test\n public void insert_contains() throws Exception{\n for(int i = 0; i < 1000; i++){\n assertTrue(ht.contains(input.get(i).key.toString()));\n }\n }", "title": "" }, { "docid": "6a4c6cb85710542a262770ba60f8406a", "score": "0.53191435", "text": "boolean supportsOuputOnInsert();", "title": "" }, { "docid": "4ee208c12ae5e1d1a69a4cda216e9efd", "score": "0.53158176", "text": "public void testAddDup()\n {\n NavigableSet q = DBMaker.newMemoryDB().make().getTreeSet( \"test\" );\n assertTrue( q.add( zero ) );\n assertFalse( q.add( zero ) );\n }", "title": "" }, { "docid": "71f17b6f9a37a83dfe1621121b5f1164", "score": "0.53156894", "text": "@Test\n public void test004() {\n doTest(SerializeTestUtils.CONST_004);\n }", "title": "" }, { "docid": "3e396690c691d86fb7539ccf02d17491", "score": "0.53149307", "text": "public void test_18_96_writeObject() {\n\n\t\tObject objToSave = null;\n\t\tObject objLoaded;\n\n\t\ttry {\n\t\t\tobjToSave = ALIST;\n\t\t\tif (DEBUG)\n\t\t\t\tSystem.out.println(\"Obj = \" + objToSave);\n\t\t\tobjLoaded = dumpAndReload(objToSave);\n\t\t\t// Has to have worked\n\t\t\tassertTrue(MSG_TEST_FAILED + objToSave, ALIST.equals(objLoaded));\n\n\t\t} catch (IOException e) {\n\t\t\tfail(\"IOException serializing \" + objToSave + \" : \"\n\t\t\t\t\t+ e.getMessage());\n\t\t} catch (ClassNotFoundException e) {\n\t\t\tfail(\"ClassNotFoundException reading Object type : \"\n\t\t\t\t\t+ e.getMessage());\n\t\t} catch (Error err) {\n\t\t\tSystem.out.println(\"Error when obj = \" + objToSave);\n\t\t\t// err.printStackTrace();\n\t\t\tthrow err;\n\t\t}\n\t}", "title": "" }, { "docid": "93644d18d5754edecb5fb552e96eec5a", "score": "0.5310464", "text": "@SuppressWarnings(\"unchecked\")\n\t@Test\n\tpublic void persist() {\n\t\tMap<String, Object> serial = test.serialize();\n\t\t\n\t\tassertTrue(serial.get(\"items\") instanceof List<?>);\n\t\t\n\t\t// We need to simulate Bukkit's automatic deserializing of objects.\n\t\tList<Map<String, Object>> itemdata = (List<Map<String, Object>>) serial.get(\"items\");\n\t\tIterator<Map<String, Object>> i = itemdata.iterator();\n\t\tList<ItemStack> newlist = new ArrayList<ItemStack>();\n\t\twhile(i.hasNext()) {\n\t\t\tnewlist.add(ItemStack.deserialize(i.next()));\n\t\t}\n\t\tserial.put(\"items\", newlist);\n\t\t\n\t\t// Deserialize as a new object.\n\t\tTradeOffer test2;\n\t\ttry {\n\t\t\ttest2 = new TradeOffer(serial);\n\t\t} catch (InstantiationException e) {\n\t\t\tfail(\"Deserialization failed\");\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// Check if they match.\n\t\tassertTrue(\"TradeOffer.equals() says the deserialized object doesn't equal the original.\",\n\t\t\t\ttest.equals(test2));\n\t}", "title": "" }, { "docid": "cd4964d5aa10ba54c7ae84cd632d2bae", "score": "0.5308459", "text": "@Override\n\tpublic void insert() {\n\n\t}", "title": "" }, { "docid": "41c88fe7f550dad06357b05eec5b1077", "score": "0.5306003", "text": "public void testSopInsert_nokey_02() throws Exception {\n assertFalse(insertToSucceed(key, false, true, \"some value\"));\n }", "title": "" }, { "docid": "aab8733a1f8e0d53ebf17afe4f8d3f86", "score": "0.5299639", "text": "@Test\n\tpublic void testSerialize(@Mocked final JsonSerializer jsonizer) throws IOException {\n\t\tassertNull(RFUtils.serialize(null));\n\t\t\n\t\t/*\n\t\t * Test: \n\t\t * \t- serialize is called with a TagData object\n\t\t * Expected:\n\t\t * \t- JsonSerializer's serialize method is called once \n\t\t */\n\t\tfinal TagData td = new TagData();\t\t\n\t\tRFUtils.serialize(td);\n\t\t\n\t\tnew Verifications() {{ \n\t\t\tjsonizer.serialize(withSameInstance(td));\n\t\t}};\n\t\t\n\t\t/*\n\t\t * Test:\n\t\t * \t- serializeList is called with a TagData object\n\t\t * \t- JsonSerializer's serialize method throws an IOException\n\t\t * Expected:\n\t\t * \t- the string \"FAILED_TO_SERIALIZE\" is returned \n\t\t */\n\t\tnew NonStrictExpectations() {{\n\t\t\tjsonizer.serialize(any);\n\t\t\tresult = new IOException();\n\t\t}};\n\t\t\n\t\tassertEquals(\"FAILED_TO_SERIALIZE\", RFUtils.serialize(td));\t\t\n\t\t\n\t}", "title": "" }, { "docid": "c94c572ed0ee5f3f135c39c64dc970a3", "score": "0.5296437", "text": "@BeforeClass\n\tpublic final static void loadSampleData() throws SolrServerException, IOException {\n\t\tfinal Model memoryModel = ModelFactory.createDefaultModel();\n\t\tmemoryModel.read(TEST_DATA_URI, DUMMY_BASE_URI, \"N-TRIPLES\");\n \n\t\tDATASET.add(memoryModel);\n\t\t\n\t\tcommitChanges();\n\t\t\n\t\tfinal Model model = DATASET.getModel();\n\t\t \n\t\tassertFalse(model.isEmpty());\n\t\tassertTrue(model.isIsomorphicWith(memoryModel));\n\t}", "title": "" }, { "docid": "5e7bda4b052c985eae8d1cb9d48a397d", "score": "0.5291691", "text": "int insert(TestFun record);", "title": "" }, { "docid": "da6e752f041be731988aad2dd339ff17", "score": "0.52864534", "text": "@Test(dataProvider = PROVIDER)\n public void test_fastMoney(SerializationFramework alreadySet) {\n /*\n * Average size? But we use a reference called \"EXACT_SIZE\"? Kryo and\n * FST both write variable-length primites. So it doesn't matter if we'd\n * like to think of a long as having an \"exact size\". If we use\n * constantSize() instead of averageSize(), then you shall find that\n * this method crash at a point where Chronicle Map would like to use\n * 2 chunks of data blocks where just 1 was expected.\n */\n \n new TestSpecification<>(FastMoneyPrice.class)\n .averageSize(FastMoneyPrice.EXACT_SIZE)\n .converter(FastMoneyPrice::ofJson)\n .run();\n }", "title": "" } ]
d11fde2be6de10be530acc3ddb68e203
Similar to addBlock, but a Player's orientation is always HORIZONTAL and its position on the y axis always equal to Board's exit.
[ { "docid": "ca27dada2df54d13c79c82299606785c", "score": "0.0", "text": "public Player addPlayer(final int x, int length) {\n\t\tif (redCar != null) {\n\t\t\tthrow new IllegalArgumentException(\"Player already exists.\");\n\t\t}\n\n\t\tif (length > size || length < 1) {\n\t\t\tthrow new IllegalArgumentException(\"Length must belong to [1,\" + size + \"]\");\n\t\t}\n\n\t\tif (x < 0 || x >= size) {\n\t\t\tthrow new IllegalArgumentException(\"Coordinate x must belong to [0,\" + (size - 1) + \"]\");\n\t\t}\n\t\tif (x + length > size) {\n\t\t\tthrow new IllegalArgumentException(\"Red car doesn't fit the grid\");\n\t\t}\n\n\t\tif (isOccupied(new Point(x, exit), length, HORIZONTAL)) {\n\t\t\tthrow new IllegalArgumentException(\"One of the block's positions is occupied\");\n\t\t}\n\n\t\tPoint playerPosition = new Point(x, exit);\n\t\tPlayer player = new Player(playerPosition, length);\n\n\t\tblocks.add(player);\n\t\tplaceBlock(player, playerPosition);\n\t\tredCar = player;\n\n\t\treturn player;\n\t}", "title": "" } ]
[ { "docid": "abc01acca1f2bcacd3c2feaa672da23b", "score": "0.54429585", "text": "@Override\r\n\tpublic void update() {\n\t\tsuper.getBlock().setY(super.getBlock().getY() + 1.0);\r\n\t}", "title": "" }, { "docid": "e3741fbc2a2805b4d2b6c205b313bcda", "score": "0.53336805", "text": "private void initializeBoard(){\n\tfor (int r = 0; r < this.height; r++) {\n\t for (int c = 0; c < this.width; c++) {\n\t\t// Set the bottom rows\n\t\tif (r > this.height - STARTING_ROWS - 1) {\n\t\t this.board[r][c] = BlockType.PLATTFORM;\n\t\t}\n\t\t// Create the player on the board\n\t\telse if (r == height - STARTING_ROWS - 1 && c == 0) {\n\t\t this.board[r][c] = BlockType.PLAYER;\n\t\t this.playerPos = new BlockPoint(c, r);\n\t\t}\n\n\t\t// Generates a downwards slope of plattforms, most easily\n\t\t// visualized as a discrete y = kx + m line, where:\n\t\t// r == c is comparable to y = x\n\t\t// r == 2c is comparable to y = 2x\n\t\t// r == (width - c) is comparable to y = -x\n\n\t\t// Ignore comment about identical branches because:\n\t\t// 1 - Order matters, spawning the player has higher priority than creating this nice looking pattern\n\t\t// 2 - The if statements do different things (creating the bottom rows to stand on versus a \"stair\" upwards)\n\t\t// and collapsing them will create an unneccesarily complex if statement with two purposes\n\t\telse if (r < height - STARTING_ROWS - 2 && (r == 2*(width - c) || r == 2*(width - c) - 1)) {\n\t\t this.board[r][c] = BlockType.PLATTFORM;\n\t\t}\n\n\n\t\t// Create a ceiling of plattforms near the top of the initialized board,\n\t\t// this allows for more random positions to be created in the upcoming chunk.\n\t\telse if (r == 1 && c < width - 5) {\n\t\t this.board[r][c] = BlockType.PLATTFORM;\n\t\t} else {\n\t\t this.board[r][c] = BlockType.AIR;\n\t\t}\n\t }\n\t}\n }", "title": "" }, { "docid": "174931a35f76f019052429eee77f8249", "score": "0.52707267", "text": "public void frameCreation() {\r\n pBlocks.add(new Block(GameLevel.ORIGIN, GameLevel.ORIGIN + GameLevel.BORDER_SIZE,\r\n width, GameLevel.BORDER_SIZE, // upperBorder\r\n Color.GRAY.darker()));\r\n this.fcnt++;\r\n pBlocks.add(new Block(width - GameLevel.BORDER_SIZE, GameLevel.ORIGIN,\r\n GameLevel.BORDER_SIZE, height, Color.GRAY.darker()));\r\n this.fcnt++;\r\n pBlocks.add(new Block(GameLevel.ORIGIN, GameLevel.ORIGIN, GameLevel.BORDER_SIZE,\r\n height, Color.GRAY.darker()));\r\n this.fcnt++;\r\n pBlocks.add(new Block(GameLevel.ORIGIN, height, width,\r\n GameLevel.BORDER_SIZE)); // DeathBlock\r\n this.fcnt++;\r\n // Corner Checkers.\r\n pBlocks.add(new Block(GameLevel.ORIGIN, GameLevel.ORIGIN, GameLevel.BORDER_SIZE,\r\n GameLevel.BORDER_SIZE, Color.RED.darker()));\r\n this.fcnt++;\r\n pBlocks.add(new Block(GameLevel.ORIGIN, height - GameLevel.BORDER_SIZE,\r\n GameLevel.BORDER_SIZE, GameLevel.BORDER_SIZE, Color.RED.darker()));\r\n this.fcnt++;\r\n pBlocks.add(new Block(width - GameLevel.BORDER_SIZE, GameLevel.ORIGIN,\r\n GameLevel.BORDER_SIZE, GameLevel.BORDER_SIZE, Color.RED.darker()));\r\n this.fcnt++;\r\n pBlocks.add(new Block(width - GameLevel.BORDER_SIZE, height\r\n - GameLevel.BORDER_SIZE, GameLevel.BORDER_SIZE, GameLevel.BORDER_SIZE, Color.RED.darker()));\r\n this.fcnt++;\r\n pBlocks.add(new Block(GameLevel.ORIGIN, GameLevel.ORIGIN, width,\r\n GameLevel.BORDER_SIZE, // Information\r\n Color.WHITE));\r\n this.fcnt++;\r\n }", "title": "" }, { "docid": "db7b31b0bcb045b6fd198718de80fe55", "score": "0.52075404", "text": "private void placeBlock(Block block, final Point position) {\n\t\tint length = block.getLength();\n\t\tint x = position.x;\n\t\tint y = position.y;\n\n\t\twhile (length-- > 0) {\n\t\t\tsetGridSquare(block, x, y);\n\t\t\tif (block.getOrientation() == VERTICAL) {\n\t\t\t\ty++;\n\t\t\t} else {\n\t\t\t\tx++;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "aee0bd60efcaca9c16a2cbebb1aa209b", "score": "0.5202522", "text": "private void placePlayerWithDefaultLocation() {\n int optimalDistance = Utils.getOptimalDistance(grid.getSize(), Main.TOTAL_PLAYERS);\n int index = Main.FIRST_POSITION_SHIFT;\n ArrayList<Square> borderSquare = new ArrayList<Square>(Utils.getBorderSquare(this));\n Main.PLAYER_LOCATION = new Coordinates2D[Main.TOTAL_PLAYERS];\n\n int column = 0;\n int line = 0;\n for (int i = 0; i < Main.TOTAL_PLAYERS; i++) {\n if (index >= borderSquare.size()) {\n index -= borderSquare.size();\n }\n column = borderSquare.get(index).getColumn();\n line = borderSquare.get(index).getLine();\n PlayerBot player = new PlayerBot(column, line, Main.PLAYER_ORDERING[i], playerList.size());\n Main.PLAYER_LOCATION[i] = new Coordinates2D(column, line);\n\n playerList.add(player);\n grid.changeState(column, line, player);\n numberOfMemberByCoalition\n .put(player.getCoalition(), numberOfMemberByCoalition.get(player.getCoalition()) + 1);\n index += optimalDistance;\n }\n }", "title": "" }, { "docid": "2dee9c21421a56713d8923e4400ce371", "score": "0.5188249", "text": "private ISABlock addExitBlock()\n {\n ISABlock dummyBlock = new ISABlock(0, nextBlockId++);\n dummyBlock.setExit(true);\n dummyBlock.addLine(new ISALine(0,\n \"func_exit\",\n \"\",\n true,\n null,\n 0,\n Instruction.FUNC_EXIT,\n InstructionType.OTHER));\n dummyBlock.setEdges(dummyBlock.getLastLine().getBranchTargets());\n blocks.add(dummyBlock);\n\n return dummyBlock;\n }", "title": "" }, { "docid": "5626c52b1f57427041c7fdf5426af485", "score": "0.51860684", "text": "public void onBlockPlaced() {\n if (isPart(xCoord, yCoord + 1, zCoord) && !isPart(xCoord, yCoord - 1, zCoord) && !isPart(xCoord, yCoord + 2, zCoord)) {\n MultiPart mstr = new MultiPart(xCoord, yCoord, zCoord);\n ArrayList<MultiPart> parts = new ArrayList<MultiPart>();\n parts.add(setAsSlave(mstr, xCoord, yCoord + 1, zCoord));\n setAsMaster(mstr, parts);\n }\n\n if (isPart(xCoord, yCoord - 1, zCoord) && !isPart(xCoord, yCoord + 1, zCoord) && !isPart(xCoord, yCoord - 2, zCoord)) {\n MultiPart mstr = new MultiPart(xCoord, yCoord - 1, zCoord);\n ArrayList<MultiPart> parts = new ArrayList<MultiPart>();\n parts.add(setAsSlave(mstr, xCoord, yCoord, zCoord));\n setAsMaster(mstr, parts);\n }\n\n worldObj.markBlockForUpdate(xCoord, yCoord, zCoord);\n }", "title": "" }, { "docid": "4190de1dc8e102923ca141625528a481", "score": "0.5147944", "text": "Block create(int xpos, int ypos);", "title": "" }, { "docid": "4190de1dc8e102923ca141625528a481", "score": "0.5147944", "text": "Block create(int xpos, int ypos);", "title": "" }, { "docid": "bf2e73c8b06bf9848fca70a1504d7f51", "score": "0.5141247", "text": "public void placeBlock() {\n\t\tArrayList<Square> squares = fallingBlock.getSquares();\n\t\t//System.out.println(grid.length);\n\t\t//System.out.println(grid[0].length);\n\t\tfor (int i = 0; i < squares.size(); i++) {\n\t\t\tgrid[(int)(squares.get(i).getY()/30)][(int)(squares.get(i).getX()/30)] = squares.get(i);\n\t\t}\n\t}", "title": "" }, { "docid": "2c1a4cf330f5330d28a8c7b219fead30", "score": "0.51298046", "text": "public void heroWrap() {\n if (this.y < (HEIGHT * -1) ) {\n this.y = Gdx.graphics.getHeight();\n }\n if (this.y > Gdx.graphics.getHeight()) {\n this.y = (0 - HEIGHT);\n }\n if (this.x < (WIDTH * -1)) {\n this.x = Gdx.graphics.getWidth();\n }\n if ( this.x > Gdx.graphics.getWidth()) {\n this.x = (0 - WIDTH);\n }\n }", "title": "" }, { "docid": "1041aaf544a906f725f633747b2e7635", "score": "0.51225364", "text": "private void placePlayerWithCustomLocation() {\n int column;\n int line;\n for (int i = 0; i < Main.TOTAL_PLAYERS; i++) {\n\n column = Main.PLAYER_LOCATION[i].getColumn();\n line = Main.PLAYER_LOCATION[i].getLine();\n PlayerBot player = new PlayerBot(column, line, Main.PLAYER_ORDERING[i], playerList.size());\n\n playerList.add(player);\n grid.changeState(column, line, player);\n numberOfMemberByCoalition\n .put(player.getCoalition(), numberOfMemberByCoalition.get(player.getCoalition()) + 1);\n }\n }", "title": "" }, { "docid": "d24985c8bb8abb2e52268946b310ec8b", "score": "0.50832516", "text": "@Override\n\tpublic void breakBackBlock(ServerUpdate update, EntityPlayer player, int x,\n\t\t\tint y) {\n\t\t\n\t}", "title": "" }, { "docid": "e5aca7c0824490cfdede50dd39054c5e", "score": "0.5061679", "text": "private void createFrame() {\n Color frameColor = createColor();\n Block upperBlock = new Block(new Rectangle(new Point(0, 0),\n WIDTH, FRAME_HEIGHT), frameColor, COUNTER);\n Block rightBlock = new Block(new Rectangle(new Point(\n WIDTH - FRAME_HEIGHT, 0), FRAME_HEIGHT, HEIGHT),\n frameColor, COUNTER);\n Block leftBlock = new Block(new Rectangle(\n new Point(0, 0), FRAME_HEIGHT, HEIGHT), frameColor, COUNTER);\n Block lowerBlock = new Block(new Rectangle(\n new Point(0, HEIGHT - FRAME_HEIGHT), WIDTH, FRAME_HEIGHT),\n frameColor, COUNTER);\n upperBlock.addToGame(this);\n rightBlock.addToGame(this);\n leftBlock.addToGame(this);\n lowerBlock.addToGame(this);\n }", "title": "" }, { "docid": "f68662db344e467a82ccf97819b832b8", "score": "0.50486106", "text": "@Override\n public void placePiece(String col, String player) {\n int c = Integer.parseInt(col);\n\n set(emptyRow[c - 1], c - 1, player);\n emptyRow[c - 1] = emptyRow[c - 1] - 1;\n }", "title": "" }, { "docid": "ef614887300e5e239cfc5fecb5184411", "score": "0.5034146", "text": "public Block addBlock(final Point position, int length, int orientation) {\n\t\tif (position == null) {\n\t\t\tthrow new IllegalArgumentException(\"Position is null\");\n\t\t}\n\n\t\tif (length > size || length < 1) {\n\t\t\tthrow new IllegalArgumentException(\"Length must belong to [1,size]\");\n\t\t}\n\n\t\tif (position.x < 0 || position.y < 0 || position.x >= size || position.y >= size) {\n\t\t\tthrow new IllegalArgumentException(\"Coordiantes must belong to [0,size-1]\");\n\t\t}\n\n\t\tif (orientation == HORIZONTAL) {\n\t\t\tif (position.x + length > size) {\n\t\t\t\tthrow new IllegalArgumentException(\"Horizontal block doesn't fit the grid\");\n\t\t\t}\n\t\t} else if (orientation == VERTICAL) {\n\t\t\tif (position.y + length > size) {\n\t\t\t\tthrow new IllegalArgumentException(\"Vertical block doesn't fit the grid\");\n\t\t\t}\n\t\t} else {\n\t\t\tthrow new IllegalArgumentException(\"Illegal orientation\");\n\t\t}\n\n\t\tif (isOccupied(position, length, orientation)) {\n\t\t\tthrow new IllegalArgumentException(\"One or all of the block's positions are occupied\");\n\t\t}\n\n\t\tBlock block = new Block(position, length, orientation);\n\t\tblocks.add(block);\n\t\tplaceBlock(block, position);\n\t\treturn block;\n\t}", "title": "" }, { "docid": "545452d39387d18f42799c4cb2567453", "score": "0.5018219", "text": "void flipBlock(IBlock block, boolean horizontal);", "title": "" }, { "docid": "3e8ffcee6c543dfc60e41497e53f7545", "score": "0.50010663", "text": "public void addPlayer(Player player) {\n this.blocks[player.getPosY()][player.getPosX()].setGameObject(player);\n }", "title": "" }, { "docid": "8b7063c7cc863672e56724590deca919", "score": "0.49773973", "text": "@Override\n\tpublic int getWorldCenterBlock() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "1924809f96750f783abeca9184e5e167", "score": "0.49759164", "text": "Block create(int x, int y);", "title": "" }, { "docid": "8864750fd2bdc535ea54ea5010b4c19a", "score": "0.4962611", "text": "private static void createSouth(Vec3i location, Quaternion rotation, ChunkMesh chunkMesh, float blockScale, Function<Direction, TextureCoordinates> textureCoordinatesFunction) {\n int offset = chunkMesh.getPositions().size();\n // vertices\n chunkMesh.getPositions().add(Shape.createVertex(rotation.mult(new Vector3f(0.5f, -0.5f, 0.5f)), location, blockScale));\n chunkMesh.getPositions().add(Shape.createVertex(rotation.mult(new Vector3f(0.5f, 0.5f, 0.5f)), location, blockScale));\n chunkMesh.getPositions().add(Shape.createVertex(rotation.mult(new Vector3f(-0.5f, -0.5f, 0.5f)), location, blockScale));\n chunkMesh.getPositions().add(Shape.createVertex(rotation.mult(new Vector3f(-0.5f, 0.5f, 0.5f)), location, blockScale));\n // indices\n chunkMesh.getIndices().add(offset);\n chunkMesh.getIndices().add(offset + 1);\n chunkMesh.getIndices().add(offset + 2);\n chunkMesh.getIndices().add(offset + 1);\n chunkMesh.getIndices().add(offset + 3);\n chunkMesh.getIndices().add(offset + 2);\n\n if (!chunkMesh.isCollisionMesh()) {\n // normals and tangents\n for (int i = 0; i < 4; i++) {\n chunkMesh.getNormals().add(rotation.mult(new Vector3f(0.0f, 0.0f, 1.0f)));\n Matrix4f rotationMatrix = rotation.toRotationMatrix(new Matrix4f());\n chunkMesh.getTangents().add(rotationMatrix.mult(new Vector4f(1.0f, 0.0f, 0.0f, 1.0f)));\n }\n // uvs\n TextureCoordinates textureCoordinates = textureCoordinatesFunction.apply(Direction.SOUTH);\n chunkMesh.getUvs().add(new Vector2f(textureCoordinates.getMax().x, textureCoordinates.getMin().y));\n chunkMesh.getUvs().add(new Vector2f(textureCoordinates.getMax().x, textureCoordinates.getMax().y));\n chunkMesh.getUvs().add(new Vector2f(textureCoordinates.getMin().x, textureCoordinates.getMin().y));\n chunkMesh.getUvs().add(new Vector2f(textureCoordinates.getMin().x, textureCoordinates.getMax().y));\n }\n }", "title": "" }, { "docid": "14fab6e964d0be458a8b4cc121067ee8", "score": "0.4952368", "text": "public void displayWorld(WorldMap world) throws TooLowException {\n this.NewWorld = world;\n String blockname[] = new String[NewWorld.getTiles().size()];\n blockname[0] = null;\n blockname[0] = NewWorld.getTile(NewWorld.getStartPosition()).getTopBlock().getBlockType();\n\n System.out.println(getGridPos(NewWorld.getStartPosition().getX()));\n System.out.println(\"Y:\"+getGridPos(NewWorld.getStartPosition().getY()*50));\n\n System.out.println(NewWorld.getTiles().get(0).getExits().toString());\n\n switch (blockname[0]){\n case \"soil\": drawSoilBlock(getGridPos(NewWorld.getStartPosition().getX()),\n getGridPos(NewWorld.getStartPosition().getY()));\n break;\n case \"grass\": drawGrassBlock(getGridPos(NewWorld.getStartPosition().getX()),\n getGridPos(NewWorld.getStartPosition().getY()));\n break;\n case \"stone\": drawStoneBlock(getGridPos(NewWorld.getStartPosition().getX()),\n getGridPos(NewWorld.getStartPosition().getY()));\n break;\n case \"wood\": drawWoodBlock(getGridPos(NewWorld.getStartPosition().getX()),\n getGridPos(NewWorld.getStartPosition().getY()));\n break;\n }\n\n for (int i=0;i<=NewWorld.getTiles().get(0).getExits().size();i++){\n if (NewWorld.getTile(NewWorld.getStartPosition()).getExits().get(\"east\")==\n NewWorld.getTiles().get(i)){\n System.out.println(NewWorld.getTiles().get(i).getTopBlock().getBlockType());\n blockname[1] = NewWorld.getTiles().get(i).getTopBlock().getBlockType();\n switch (blockname[1]){\n case \"soil\": drawSoilBlock(getGridPos(NewWorld.getStartPosition().getX()+1),\n getGridPos(NewWorld.getStartPosition().getY()));\n break;\n case \"grass\": drawGrassBlock(getGridPos(NewWorld.getStartPosition().getX()+1),\n getGridPos(NewWorld.getStartPosition().getY()));\n break;\n case \"stone\": drawStoneBlock(getGridPos(NewWorld.getStartPosition().getX()+1),\n getGridPos(NewWorld.getStartPosition().getY()));\n break;\n case \"wood\": drawWoodBlock(getGridPos(NewWorld.getStartPosition().getX()+1),\n getGridPos(NewWorld.getStartPosition().getY()));\n break;\n }\n }\n if (NewWorld.getTile(NewWorld.getStartPosition()).getExits().get(\"west\")==\n NewWorld.getTiles().get(i)){\n System.out.println(NewWorld.getTiles().get(i).getTopBlock().getBlockType());\n blockname[1] = NewWorld.getTiles().get(i).getTopBlock().getBlockType();\n switch (blockname[1]){\n case \"soil\": drawSoilBlock(getGridPos(NewWorld.getStartPosition().getX()-1),\n getGridPos(NewWorld.getStartPosition().getY()));\n break;\n case \"grass\": drawGrassBlock(getGridPos(NewWorld.getStartPosition().getX()-1),\n getGridPos(NewWorld.getStartPosition().getY()));\n break;\n case \"stone\": drawStoneBlock(getGridPos(NewWorld.getStartPosition().getX()-1),\n getGridPos(NewWorld.getStartPosition().getY()));\n break;\n case \"wood\": drawWoodBlock(getGridPos(NewWorld.getStartPosition().getX()-1),\n getGridPos(NewWorld.getStartPosition().getY()));\n break;\n }\n }\n if (NewWorld.getTile(NewWorld.getStartPosition()).getExits().get(\"north\")==\n NewWorld.getTiles().get(i)){\n System.out.println(NewWorld.getTiles().get(i).getTopBlock().getBlockType());\n blockname[1] = NewWorld.getTiles().get(i).getTopBlock().getBlockType();\n switch (blockname[1]){\n case \"soil\": drawSoilBlock(getGridPos(NewWorld.getStartPosition().getX()),\n getGridPos(NewWorld.getStartPosition().getY()-1));\n break;\n case \"grass\": drawGrassBlock(getGridPos(NewWorld.getStartPosition().getX()),\n getGridPos(NewWorld.getStartPosition().getY()-1));\n break;\n case \"stone\": drawStoneBlock(getGridPos(NewWorld.getStartPosition().getX()),\n getGridPos(NewWorld.getStartPosition().getY()-1));\n break;\n case \"wood\": drawWoodBlock(getGridPos(NewWorld.getStartPosition().getX()),\n getGridPos(NewWorld.getStartPosition().getY()-1));\n break;\n }\n }\n if (NewWorld.getTile(NewWorld.getStartPosition()).getExits().get(\"south\")==\n NewWorld.getTiles().get(i)){\n System.out.println(NewWorld.getTiles().get(i).getTopBlock().getBlockType());\n blockname[1] = NewWorld.getTiles().get(i).getTopBlock().getBlockType();\n switch (blockname[1]){\n case \"soil\": drawSoilBlock(getGridPos(NewWorld.getStartPosition().getX()),\n getGridPos(NewWorld.getStartPosition().getY()+1));\n break;\n case \"grass\": drawGrassBlock(getGridPos(NewWorld.getStartPosition().getX()),\n getGridPos(NewWorld.getStartPosition().getY()+1));\n break;\n case \"stone\": drawStoneBlock(getGridPos(NewWorld.getStartPosition().getX()),\n getGridPos(NewWorld.getStartPosition().getY()+1));\n break;\n case \"wood\": drawWoodBlock(getGridPos(NewWorld.getStartPosition().getX()),\n getGridPos(NewWorld.getStartPosition().getY()+1));\n break;\n }\n }\n }\n\n\n drawBuilder((int)canvasX/2,(int)canvasY/2);\n\n showInv();\n\n }", "title": "" }, { "docid": "99d08ec789a31cf9b06d48da18eec1f0", "score": "0.4941545", "text": "@Override\n public void nextOrientation()\n {\n mAbove = !mAbove;\n TemplatePeg last = mCenter;\n if (mAbove)\n {\n while(last.bottom != null)\n last = last.bottom.mLeftBottom;\n while(last.right != null)\n last = last.right.mRightTop;\n mCenter = last;\n }\n else\n {\n while(last.top != null)\n last = last.top.mRightTop;\n while(last.left != null)\n last = last.left.mLeftBottom;\n mCenter = last;\n }\n }", "title": "" }, { "docid": "eef62366a7397437f41a9e71f4026cd5", "score": "0.49381462", "text": "@SubscribeEvent\n\tpublic void onPlayerPlaceBlock(PlayerPlaceBlockEvent e)\n\t{\n\t\tif (SwitchFile.protection)\n\t\t{\n\t\t\tLocation location = e.blockLocation;\n\t\t\tBlock block = Server.getWorld(location.dimension).getBlock((int) location.x, (int) location.height, (int) location.y);\n\n\t\t\tfor (ClaimedArea area : Protection.instance.areas)\n\t\t\t{\n\t\t\t\tif (area.isInside(location) && !area.checkAcess(new Player(e.entityPlayer), Access.Edit_Block))\n\t\t\t\t{\n\t\t\t\t\tIChatComponent warning = new ChatText(\"You don't have access to place block in \").setChatStyle(new WarningStyle());\n\t\t\t\t\twarning.appendSibling(new ChatText(\"[\" + area.name + \"]\").setChatStyle(new ClaimedAreaStyle(area)));\n\t\t\t\t\te.entityPlayer.addChatComponentMessage(warning);\n\t\t\t\t\te.setCanceled(true);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "88c3c725d10377cae11b40cf2d46a606", "score": "0.4898169", "text": "public void wrapAroundWorld() {\r\n if(getX() + getWidth() < 0)\r\n setX(worldBounds.width);\r\n if(getX() > worldBounds.width)\r\n setX(-getWidth());\r\n if(getY() + getHeight() < 0)\r\n setY(worldBounds.height);\r\n if(getY() > worldBounds.height)\r\n setY(-getHeight());\r\n \r\n //System.out.println(getHeight() + \" \" + getWidth());\r\n }", "title": "" }, { "docid": "87ca483433a8e1896bb7538faa4dcc6b", "score": "0.48964766", "text": "@Override\n\tpublic void setBackBlock(Block block, int x, int y) {\n\t\t\n\t}", "title": "" }, { "docid": "7c31afe437988b1e16351b2f35daa48b", "score": "0.4882956", "text": "public void drawPlayer(){\n\n Coordinate one = new Coordinate(25, 17);\n Coordinate two = new Coordinate(24, 17);\n Coordinate three = new Coordinate(23, 17);\n\n surface.drawPlayerSquare(one);\n surface.drawPlayerSquare(two);\n surface.drawPlayerSquare(three);\n\n control.playerCoordinates.add(three);\n control.playerCoordinates.add(two);\n control.playerCoordinates.add(one);\n\n }", "title": "" }, { "docid": "4f8c155844b041695a1eb8a868e4d444", "score": "0.4882217", "text": "public GameBlock(Context myCont, int coordX, int coordY, RelativeLayout myRL){\n super(myCont);\n //USes the parent class to set the gameblock\n this.setImageResource(R.drawable.gameblock);\n this.setPivotX(0);\n this.setPivotY(0);\n this.setScaleX(IMAGE_SCALE);\n this.setScaleY(IMAGE_SCALE);\n this.setX(coordX);\n this.setY(coordY);\n\n //Stets the starting position and speed of the block\n //And any other variables\n velocityX = 20;\n velocityY = 20;\n positionX = coordX;\n positionY = coordY;\n targetCoordY = coordY / (int)SLOT_ISOLATION; //Want to coordinates\n targetCoordX = coordX / (int)SLOT_ISOLATION; //Want to coordinates\n removedBlock = false;\n createBlock = false;\n\n\n myDir = GameLoopTask.GameDirection.UNDETERMINED;\n\n Random randomStartInteger = new Random();\n blockValue = (randomStartInteger.nextInt(2)+ 1) * 2; //Generates a radnom number 2, 4 on each spawn\n myRelativeLayout = myRL;\n myRelativeLayout.addView(this); //Adds the bloack to the layout\n blockNumber = new TextView(myCont); //creates a text view for the bloack values\n blockNumber.setX(positionX + (int)(SLOT_ISOLATION / 4.7)); //positions the text view to be aligned with the blaock\n blockNumber.setY(positionY + (int)(SLOT_ISOLATION / 4.8)); //positions the text view to be aligned with the blaock\n\n blockNumber.setText(Integer.toString(blockValue)); //Sets the block value on the textView\n blockNumber.setTextSize(64f);\n blockNumber.setTextColor(BLACK);\n blockNumber.bringToFront(); //Brings the textview in front of the block\n myRelativeLayout.addView(blockNumber); //Ads the btext to the layout\n }", "title": "" }, { "docid": "8800fd8539db1b059189c5984c10ff8b", "score": "0.48717222", "text": "public void onBlockPlacedBase(int x, int y, int z) {\n if (isBase(x, y, z) && isBase(x + 1, y, z) && isTop(x, y + 1, z) && isTop(x + 1, y + 1, z)) {\n MultiPart mstr = new MultiPart(x, y, z);\n ArrayList<MultiPart> parts = new ArrayList<MultiPart>();\n parts.add(setAsSlave(mstr, x + 1, y, z, ForgeDirection.WEST));\n parts.add(setAsSlave(mstr, x + 1, y + 1, z, ForgeDirection.WEST));\n parts.add(setAsSlave(mstr, x, y + 1, z, ForgeDirection.EAST));\n setAsMaster(mstr, parts, ForgeDirection.EAST);\n }\n\n if (isBase(x, y, z) && isBase(x - 1, y, z) && isTop(x, y + 1, z) && isTop(x - 1, y + 1, z)) {\n MultiPart mstr = new MultiPart(x - 1, y, z);\n ArrayList<MultiPart> parts = new ArrayList<MultiPart>();\n parts.add(setAsSlave(mstr, x, y, z, ForgeDirection.WEST));\n parts.add(setAsSlave(mstr, x - 1, y + 1, z, ForgeDirection.EAST));\n parts.add(setAsSlave(mstr, x, y + 1, z, ForgeDirection.WEST));\n setAsMaster(mstr, parts, ForgeDirection.EAST);\n }\n\n if (isBase(x, y, z) && isBase(x, y, z + 1) && isTop(x, y + 1, z) && isTop(x, y + 1, z + 1)) {\n MultiPart mstr = new MultiPart(x, y, z);\n ArrayList<MultiPart> parts = new ArrayList<MultiPart>();\n parts.add(setAsSlave(mstr, x, y, z + 1, ForgeDirection.SOUTH));\n parts.add(setAsSlave(mstr, x, y + 1, z + 1, ForgeDirection.SOUTH));\n parts.add(setAsSlave(mstr, x, y + 1, z, ForgeDirection.NORTH));\n setAsMaster(mstr, parts, ForgeDirection.NORTH);\n }\n\n if (isBase(x, y, z) && isBase(x, y, z - 1) && isTop(x, y + 1, z) && isTop(x, y + 1, z - 1)) {\n MultiPart mstr = new MultiPart(x, y, z - 1);\n ArrayList<MultiPart> parts = new ArrayList<MultiPart>();\n parts.add(setAsSlave(mstr, x, y, z, ForgeDirection.SOUTH));\n parts.add(setAsSlave(mstr, x, y + 1, z - 1, ForgeDirection.NORTH));\n parts.add(setAsSlave(mstr, x, y + 1, z, ForgeDirection.SOUTH));\n setAsMaster(mstr, parts, ForgeDirection.NORTH);\n }\n }", "title": "" }, { "docid": "e2ec947964bd30960e969c7371552334", "score": "0.48672724", "text": "private void createBlocks() {\n for (int i = 1; i <= MAX_ROWS; i++) {\n Color color = createColor();\n int counter = 1;\n for (int j = 1; j <= MAX_BLOCKS - i; j++) {\n if (i == 1) {\n // only top row has counter of 2. all other rows - 1\n counter = 2;\n }\n Point startingPoint =\n new Point(WIDTH - FRAME_HEIGHT - (BLOCK_WIDTH * j),\n START_OF_ROWS_Y + (BLOCK_HEIGHT * i));\n Block block = new Block(new Rectangle(startingPoint,\n BLOCK_WIDTH, BLOCK_HEIGHT), color, counter);\n block.addToGame(this);\n }\n }\n }", "title": "" }, { "docid": "11ddf1487cbc6473827a0de1edb1bc46", "score": "0.4861926", "text": "int getBlocksStartY();", "title": "" }, { "docid": "f0acc0ad34a21fa63c9a0cb87522ce3d", "score": "0.48556614", "text": "public void wrapAroundWorld()\n {\n if (getX() + getWidth() < 0)\n setX( worldBounds.width );\n\n if (getX() > worldBounds.width) \n setX( -getWidth());\n\n if (getY() + getHeight() < 0)\n setY( worldBounds.height );\n\n if (getY() > worldBounds.height)\n setY( -getHeight() );\n }", "title": "" }, { "docid": "1191fbf28f6c0d9a60fabd75949b7635", "score": "0.48544806", "text": "BlockUnit createBlockUnit();", "title": "" }, { "docid": "5bbc491f983f5a364e34b092e530395a", "score": "0.48322013", "text": "@Override\n public void enterTile(Player player)\n {\n }", "title": "" }, { "docid": "0e4775ffe933ccbb36b54aadd3691e98", "score": "0.48314092", "text": "@Override\n\tpublic void breakBlock(ServerUpdate update, EntityPlayer player, int x,\n\t\t\tint y) {\n\t\t\n\t}", "title": "" }, { "docid": "a166209e5e334854a32eb949c0d0ca97", "score": "0.48189116", "text": "@Override\n public abstract BaseBlock create(int xPos, int yPos);", "title": "" }, { "docid": "915219e68e19b0e4e199b1c85cbd8e05", "score": "0.4815042", "text": "@EventHandler(priority=EventPriority.MONITOR, ignoreCancelled=true)\n public void onPlayerMove(PlayerMoveEvent event) {\n \tPlayer player = event.getPlayer();\n String worldname = player.getWorld().getName();\n Material m = player.getLocation().getBlock().getType();\n \n if ((m != Material.STATIONARY_WATER) && (m != Material.WATER)) return;\n \n Block block = player.getWorld().getBlockAt(player.getLocation());\n String data = \",\" + String.valueOf(block.getX()) + \"#\" + String.valueOf(block.getY()) + \"#\" + String.valueOf(block.getZ()) + \",\";\n \n \n if (worldname.equals(\"plotworld\")) {\n if (wplotworld2.contains(data)) {\n \t\n \tif(player.hasPermission(\"use.plotworld2\")) {\n \tLocation ar1 = new Location(Bukkit.getWorld(\"plotworld2\"),x1,y1,z1,p1,0);\n \tplayer.teleport(ar1);\n \tplayer.playSound(player.getLocation(), Sound.ENDERMAN_TELEPORT, 1.0F, 1.0F);\n \tplayer.getWorld().playEffect(player.getLocation(), Effect.ENDER_SIGNAL, 30, 2);\n \t}\n \t\n \telse {\n \t\t getServer().dispatchCommand(getServer().getConsoleSender(), \"spawn \" + player.getName());\n\t\t player.sendMessage(\"Map disponible à partir du grade Maçon.\");\n \t\t\n \t}\n \t\n }\n \n if (wplotworld3.contains(data)) {\n \t\n \tif(player.hasPermission(\"use.plotworld3\")) {\n \tLocation ar2 = new Location(Bukkit.getWorld(\"plotworld3\"),x2,y2,z2,p2,0);\n \tplayer.teleport(ar2);\n \tplayer.playSound(player.getLocation(), Sound.ENDERMAN_TELEPORT, 1.0F, 1.0F);\n \tplayer.getWorld().playEffect(player.getLocation(), Effect.ENDER_SIGNAL, 30, 2);\n \t}\n \t\n \telse {\n \t\t getServer().dispatchCommand(getServer().getConsoleSender(), \"spawn \" + player.getName());\n \t\t player.sendMessage(\"Map disponible à partir du grade Décorateur.\");\n \t\t\n \t}\n \t\n }\n \n \n \n if (wpixelart.contains(data)) {\n \t\n \tif(player.hasPermission(\"use.pixelart\")) {\n \tLocation ar4 = new Location(Bukkit.getWorld(\"pixelart\"),x4,y4,z4,p4,0);\n \tplayer.teleport(ar4);\n \tplayer.playSound(player.getLocation(), Sound.ENDERMAN_TELEPORT, 1.0F, 1.0F);\n \tplayer.getWorld().playEffect(player.getLocation(), Effect.ENDER_SIGNAL, 30, 2);\n \t}\n \t\n \telse {\n \t\t getServer().dispatchCommand(getServer().getConsoleSender(), \"spawn \" + player.getName());\n \t\t player.sendMessage(\"Map disponible à partir du grade Apprenti.\");\n \t\t\n \t}\n \t\n }\n \n \n \n if (lobby.contains(data)) {\n \t\n Bukkit.getMessenger().registerOutgoingPluginChannel(this, \"BungeeCord\");\n ByteArrayOutputStream b = new ByteArrayOutputStream();\n \tDataOutputStream out = new DataOutputStream(b);\n \t\n \tLocation ar3 = new Location(Bukkit.getWorld(\"plotworld\"),x3,y3,z3,p3,0);\n \tplayer.teleport(ar3);\n \t\n \t\n\n \t try {\n \t out.writeUTF(\"Connect\");\n \t out.writeUTF(\"lobby\");\n \t } catch (IOException ex) { }\n \t player.sendPluginMessage(this, \"BungeeCord\", b.toByteArray());\n }\n \n \n }//fin if world\n \n \n if (worldname.equals(\"plotworld2\")) {\n if (plotworld2.contains(data)) {\n \tLocation ar1 = new Location(Bukkit.getWorld(\"plotworld\"),x1a,y1a,z1a,p1a,0);\n \tplayer.teleport(ar1);\n \tplayer.playSound(player.getLocation(), Sound.ENDERMAN_TELEPORT, 1.0F, 1.0F);\n \tplayer.getWorld().playEffect(player.getLocation(), Effect.ENDER_SIGNAL, 30, 2);\n\n } \n }\n \n \n if (worldname.equals(\"plotworld3\")) {\n if (plotworld3.contains(data)) {\n \tLocation ar2= new Location(Bukkit.getWorld(\"plotworld\"),x2a,y2a,z2a,p2a,0);\n \tplayer.teleport(ar2);\n \tplayer.playSound(player.getLocation(), Sound.ENDERMAN_TELEPORT, 1.0F, 1.0F);\n \tplayer.getWorld().playEffect(player.getLocation(), Effect.ENDER_SIGNAL, 30, 2);\n } \n }\n \n \n if (worldname.equals(\"pixelart\")) {\n if (plotworld3.contains(data)) {\n \tLocation ar2= new Location(Bukkit.getWorld(\"plotworld\"),x3a,y3a,z3a,p3a,0);\n \tplayer.teleport(ar2);\n \tplayer.playSound(player.getLocation(), Sound.ENDERMAN_TELEPORT, 1.0F, 1.0F);\n \tplayer.getWorld().playEffect(player.getLocation(), Effect.ENDER_SIGNAL, 30, 2);\n } \n }\n \n }", "title": "" }, { "docid": "92564adc566cb587cb2aaf7d6558d716", "score": "0.48081455", "text": "@Override\n\tpublic boolean isBlockPlacedByPlayer(PS ps)\n\t{\n\t\treturn false;\n\t}", "title": "" }, { "docid": "479b8f6443b8fd912067fbcbe9349b7c", "score": "0.48066375", "text": "public ReversiPiece(int player) {\n t = new Translate();\n piece = new Ellipse();\n piece.getTransforms().add(t);\n setPiece(player);\n getChildren().add(piece);\n }", "title": "" }, { "docid": "785fa6f152e156295aef3f8d65c4252f", "score": "0.47972545", "text": "public void outsideWorld() {\n\t\tsetPosition(0, -290);\n\t}", "title": "" }, { "docid": "4e86749f1e4e8c198b399ec46da0fafa", "score": "0.47946316", "text": "WorldImage makeWallVertical() {\n return new LineImage(new Posn(0, SIZE), Color.BLACK);\n }", "title": "" }, { "docid": "c16a9bfab2ce2c549e0d773baecb0628", "score": "0.47714072", "text": "public void endOfRound() {\n\n\n topPlayer.update(true);\n bottomPlayer.update(true);\n leftPlayer.update(true);\n rightPlayer.update(true);\n boardArea.update();\n }", "title": "" }, { "docid": "5c9d1223b87027008714425fb0a1716f", "score": "0.47663072", "text": "public void onBlockPlacedTop(int x, int y, int z) {\n if (isBase(x, y - 1, z) && isBase(x + 1, y - 1, z) && isTop(x, y, z) && isTop(x + 1, y, z)) {\n MultiPart mstr = new MultiPart(x, y - 1, z);\n ArrayList<MultiPart> parts = new ArrayList<MultiPart>();\n parts.add(setAsSlave(mstr, x, y, z, ForgeDirection.EAST));\n parts.add(setAsSlave(mstr, x + 1, y, z, ForgeDirection.WEST));\n parts.add(setAsSlave(mstr, x + 1, y - 1, z, ForgeDirection.WEST));\n setAsMaster(mstr, parts, ForgeDirection.EAST);\n }\n\n if (isBase(x, y - 1, z) && isBase(x - 1, y - 1, z) && isTop(x, y, z) && isTop(x - 1, y, z)) {\n MultiPart mstr = new MultiPart(x - 1, y - 1, z);\n ArrayList<MultiPart> parts = new ArrayList<MultiPart>();\n parts.add(setAsSlave(mstr, x, y, z, ForgeDirection.WEST));\n parts.add(setAsSlave(mstr, x - 1, y, z, ForgeDirection.EAST));\n parts.add(setAsSlave(mstr, x, y - 1, z, ForgeDirection.WEST));\n setAsMaster(mstr, parts, ForgeDirection.EAST);\n }\n\n if (isBase(x, y - 1, z) && isBase(x, y - 1, z + 1) && isTop(x, y, z) && isTop(x, y, z + 1)) {\n MultiPart mstr = new MultiPart(x, y - 1, z);\n ArrayList<MultiPart> parts = new ArrayList<MultiPart>();\n parts.add(setAsSlave(mstr, x, y, z + 1, ForgeDirection.SOUTH));\n parts.add(setAsSlave(mstr, x, y, z, ForgeDirection.NORTH));\n parts.add(setAsSlave(mstr, x, y - 1, z + 1, ForgeDirection.SOUTH));\n setAsMaster(mstr, parts, ForgeDirection.NORTH);\n }\n\n if (isBase(x, y - 1, z) && isBase(x, y - 1, z - 1) && isTop(x, y, z) && isTop(x, y, z - 1)) {\n MultiPart mstr = new MultiPart(x, y - 1, z - 1);\n ArrayList<MultiPart> parts = new ArrayList<MultiPart>();\n parts.add(setAsSlave(mstr, x, y, z, ForgeDirection.SOUTH));\n parts.add(setAsSlave(mstr, x, y, z - 1, ForgeDirection.NORTH));\n parts.add(setAsSlave(mstr, x, y - 1, z, ForgeDirection.SOUTH));\n setAsMaster(mstr, parts, ForgeDirection.NORTH);\n }\n }", "title": "" }, { "docid": "e008af195c74e1bc77f7fa44936d2a7b", "score": "0.4758894", "text": "protected Block getNextBlock(Directions direction) {\n int x = actor.getCurrentPosition().getX(), y = actor.getCurrentPosition().getY();\n\n switch (direction) {\n case EAST:\n y++;\n break;\n case WEST:\n y--;\n break;\n case NORTH:\n x--;\n break;\n case SOUTH:\n x++;\n break;\n }\n return maze.getBlocks().get(new Coordinates(x, y));\n }", "title": "" }, { "docid": "71b77bb5184afab02b6f69ed40479a9b", "score": "0.47567984", "text": "public lineEnemyVertical(int x, int y, char direction) {\n\t\tsetImage(new Image(\"/lineenemy.png\"));\n\t\tsetLocationX(x);\n\t\tsetLocationY(y);\n\t\tif (direction == 'u') {\n\t\t\tmovingUp = true;\n\t\t} else {\n\t\t\tmovingUp = false;\n\t\t}\n\t}", "title": "" }, { "docid": "e33d669319c43df57969b8f265700d3e", "score": "0.47537053", "text": "public void insertCoin(int player_value, int column) {\n b.setGrid(rowToInsert[column], column, player_value); // (fila, columna, valor) \n ++columnTop[column];\n --rowToInsert[column];\n }", "title": "" }, { "docid": "768906509b205e35f5f8bfe120369cb3", "score": "0.47532284", "text": "private WorldBuilder addExitStairs() {\n\t\tint x = -1;\n\t\tint y = -1;\n\t\tdo {\n\t\t\tx = (int) (Math.random() * width);\n\t\t\ty = (int) (Math.random() * height);\n\t\t} while (tiles[x][y][0] != Tile.FLOOR);\n\n\t\ttiles[x][y][0] = Tile.STAIRS_UP;\n\t\treturn this;\n\t}", "title": "" }, { "docid": "3fa42d36f19a2c254e41fa71c159e5a1", "score": "0.47450662", "text": "@Override\r\n\tBlock createBlock();", "title": "" }, { "docid": "e039d4bf1c2309497106d96147cbc7e6", "score": "0.47438532", "text": "private void finalOrient() {\n\t\tturnAround();\n\t\twhile (noBeepersPresent()) {\n\t\t\tmove();\n\t\t}\n\t\tpickBeeper();\n\t\tif (frontIsClear()) {\n\t\t\tmove();\n\t\t}\n\t\tturnAround();\n\t}", "title": "" }, { "docid": "837c601e9a073af023672a2178c97545", "score": "0.47348464", "text": "@Override\n\tpublic void onBlockAdded(World world, int x, int y, int z) {\n\t\tworld.setBlockTileEntity(x, y, z, createNewTileEntity(world));\n\t\tsuper.onBlockAdded(world, x, y, z);\n\t}", "title": "" }, { "docid": "a1e85ffbd870bf7aa4a5418ed6679bb1", "score": "0.47329974", "text": "public Block(int x, int y, char block, Grid grid){\r\n this.x = x;\r\n this.y = y;\r\n this.block = block;\r\n this.grid = grid;\r\n }", "title": "" }, { "docid": "9f8a6829610dd209485faaeb2adf6efd", "score": "0.47233942", "text": "public Pawn(String name, Block block, String color, Player player){\r\n\t\tsuper(name, block, color, player);\r\n\t}", "title": "" }, { "docid": "681a3dded4eaf1c1ed3bacefd362ae7a", "score": "0.4719508", "text": "private void makePlayerAreas() {\n int x = 7;\n int y = 9;\n int nameLabelSize =2;\n if (fields.length<=32) {\n y = 8;\n nameLabelSize = 1;\n }\n if (fields.length<=28) {\n x=0;\n nameLabelSize = 1;\n }\n for(int i = 0; i < MAX_PLAYER_COUNT; i++) {\n int ycalc = y - i;\n \n JLabel iconLabel = new JLabel();\n this.factory.setSize(iconLabel, 1 * GUI_Field.FIELDWIDTH, 1 * GUI_Field.FIELDWIDTH);\n this.base.setLayer(iconLabel, 1);\n this.base.add(iconLabel, this.factory.createGridBagConstraints(x, ycalc));\n this.iconLabels[i] = iconLabel;\n \n JLabel playerLabel = new JLabel();\n this.factory.setSize(playerLabel, nameLabelSize * GUI_Field.FIELDWIDTH, 1 * GUI_Field.FIELDWIDTH);\n this.base.setLayer(playerLabel, 1);\n this.base.add(playerLabel, this.factory.createGridBagConstraints(x + 1, ycalc, nameLabelSize, 1));\n this.playerLabels[i] = playerLabel;\n }\n }", "title": "" }, { "docid": "a5400f6934abbbba180f10142e2bb7d0", "score": "0.47159308", "text": "private static void createUp(Vec3i location, Quaternion rotation, ChunkMesh chunkMesh, float blockScale, Function<Direction, TextureCoordinates> textureCoordinatesFunction) {\n int offset = chunkMesh.getPositions().size();\n // vertices\n chunkMesh.getPositions().add(Shape.createVertex(rotation.mult(new Vector3f(0.5f, 0.5f, -0.5f)), location, blockScale));\n chunkMesh.getPositions().add(Shape.createVertex(rotation.mult(new Vector3f(-0.5f, 0.5f, -0.5f)), location, blockScale));\n chunkMesh.getPositions().add(Shape.createVertex(rotation.mult(new Vector3f(0.5f, 0.5f, 0.5f)), location, blockScale));\n chunkMesh.getPositions().add(Shape.createVertex(rotation.mult(new Vector3f(-0.5f, 0.5f, 0.5f)), location, blockScale));\n // indices\n chunkMesh.getIndices().add(offset);\n chunkMesh.getIndices().add(offset + 1);\n chunkMesh.getIndices().add(offset + 2);\n chunkMesh.getIndices().add(offset + 1);\n chunkMesh.getIndices().add(offset + 3);\n chunkMesh.getIndices().add(offset + 2);\n\n if (!chunkMesh.isCollisionMesh()) {\n // normals and tangents\n for (int i = 0; i < 4; i++) {\n chunkMesh.getNormals().add(rotation.mult(new Vector3f(0.0f, 1.0f, 0.0f)));\n Matrix4f rotationMatrix = rotation.toRotationMatrix(new Matrix4f());\n chunkMesh.getTangents().add(rotationMatrix.mult(new Vector4f(1.0f, 0.0f, 0.0f, 1.0f)));\n }\n // uvs\n TextureCoordinates textureCoordinates = textureCoordinatesFunction.apply(Direction.UP);\n chunkMesh.getUvs().add(new Vector2f(textureCoordinates.getMax().x, textureCoordinates.getMax().y));\n chunkMesh.getUvs().add(new Vector2f(textureCoordinates.getMin().x, textureCoordinates.getMax().y));\n chunkMesh.getUvs().add(new Vector2f(textureCoordinates.getMax().x, textureCoordinates.getMin().y));\n chunkMesh.getUvs().add(new Vector2f(textureCoordinates.getMin().x, textureCoordinates.getMin().y));\n }\n }", "title": "" }, { "docid": "68b16352e0dc449090e1f9bad8d9a2ed", "score": "0.47146496", "text": "@Override\n public void AfterBuilding(StructureConfiguration configuration, ServerWorld world, BlockPos originalPos, Direction assumedNorth, PlayerEntity player) {\n BasicStructureConfiguration config = (BasicStructureConfiguration) configuration;\n\n if (this.customBlockPos != null) {\n if (config.basicStructureName.getName().equals(EnumBasicStructureName.AdvancedCoop.getName())) {\n // For the advanced chicken coop, spawn 4 chickens above the hopper.\n for (int i = 0; i < 4; i++) {\n ChickenEntity entity = new ChickenEntity(EntityType.CHICKEN, world);\n entity.setPos(this.customBlockPos.getX(), this.customBlockPos.up().getY(), this.customBlockPos.getZ());\n world.spawnEntity(entity);\n }\n } else if (config.basicStructureName.getName().equals(EnumBasicStructureName.ChickenCoop.getName())) {\n // For the advanced chicken coop, spawn 4 chickens above the hopper.\n ChickenEntity entity = new ChickenEntity(EntityType.CHICKEN, world);\n entity.setPos(this.customBlockPos.getX(), this.customBlockPos.down().getY(), this.customBlockPos.getZ());\n world.spawnEntity(entity);\n } else if (config.basicStructureName.getName().equals(EnumBasicStructureName.MineshaftEntrance.getName())\n || config.basicStructureName.getName().equals(BasicStructureConfiguration.EnumBasicStructureName.WorkShop.getName())) {\n // Build the mineshaft where the trap door exists.\n BuildingMethods.PlaceMineShaft(world, this.customBlockPos.down(), configuration.houseFacing, true);\n }\n\n this.customBlockPos = null;\n }\n\n if (this.bedPositions.size() > 0) {\n for (Tuple<BlockPos, BlockPos> bedPosition : this.bedPositions) {\n BuildingMethods.PlaceColoredBed(world, bedPosition.getFirst(), bedPosition.getSecond(), config.bedColor);\n }\n }\n\n if (config.basicStructureName.getName().equals(EnumBasicStructureName.AquaBase.getName())\n || config.basicStructureName.getName().equals(EnumBasicStructureName.AdvancedAquaBase.getName())) {\n // Replace the entrance area with air blocks.\n BlockPos airPos = originalPos.up(4).offset(configuration.houseFacing.getOpposite(), 1);\n\n // This is the first wall.\n world.removeBlock(airPos.offset(configuration.houseFacing.rotateYClockwise()), false);\n world.removeBlock(airPos, false);\n world.removeBlock(airPos.offset(configuration.houseFacing.rotateYCounterclockwise()), false);\n\n airPos = airPos.down();\n world.removeBlock(airPos.offset(configuration.houseFacing.rotateYClockwise()), false);\n world.removeBlock(airPos, false);\n world.removeBlock(airPos.offset(configuration.houseFacing.rotateYCounterclockwise()), false);\n\n airPos = airPos.down();\n world.removeBlock(airPos.offset(configuration.houseFacing.rotateYClockwise()), false);\n world.removeBlock(airPos, false);\n world.removeBlock(airPos.offset(configuration.houseFacing.rotateYCounterclockwise()), false);\n\n airPos = airPos.down();\n world.removeBlock(airPos.offset(configuration.houseFacing.rotateYClockwise()), false);\n world.removeBlock(airPos, false);\n world.removeBlock(airPos.offset(configuration.houseFacing.rotateYCounterclockwise()), false);\n\n // Second part of the wall.\n airPos = airPos.offset(configuration.houseFacing.getOpposite()).up();\n world.removeBlock(airPos.offset(configuration.houseFacing.rotateYClockwise()), false);\n world.removeBlock(airPos, false);\n world.removeBlock(airPos.offset(configuration.houseFacing.rotateYCounterclockwise()), false);\n\n airPos = airPos.up();\n world.removeBlock(airPos.offset(configuration.houseFacing.rotateYClockwise()), false);\n world.removeBlock(airPos, false);\n world.removeBlock(airPos.offset(configuration.houseFacing.rotateYCounterclockwise()), false);\n\n airPos = airPos.up();\n world.removeBlock(airPos, false);\n }\n }", "title": "" }, { "docid": "bd12ec59e020dbb4fec296970ca4736f", "score": "0.47140115", "text": "public void onPostBlockPlaced(World p_149714_1_, int p_149714_2_, int p_149714_3_, int p_149714_4_, int p_149714_5_)\n {\n this.func_150136_a(p_149714_1_, p_149714_2_, p_149714_3_, p_149714_4_, false, p_149714_5_, false, -1, 0);\n }", "title": "" }, { "docid": "77fca5ffeff66657cd72d538b5a39f7c", "score": "0.47004554", "text": "public void onBlockPlacedBy(World par1World, int par2, int par3, int par4, EntityLiving par5EntityLiving)\n {\n int var6 = MathHelper.floor((double)(par5EntityLiving.yaw * 4.0F / 360.0F) + 0.5D) & 3;\n\n if (var6 == 0)\n {\n par1World.setData(par2, par3, par4, 2);\n }\n\n if (var6 == 1)\n {\n par1World.setData(par2, par3, par4, 5);\n }\n\n if (var6 == 2)\n {\n par1World.setData(par2, par3, par4, 3);\n }\n\n if (var6 == 3)\n {\n par1World.setData(par2, par3, par4, 4);\n }\n }", "title": "" }, { "docid": "27d3c3d9673e09676710040dd43955e4", "score": "0.46990588", "text": "void setBlocksStartY(int blocksStartY);", "title": "" }, { "docid": "83da544be53532ea284133a3b648f29e", "score": "0.46964392", "text": "public Block rotateRight() { \n \tif (currentBlock == shape.SquareBlock) {\n \t\treturn this;\n \t}\n \tBlock rotated = new Block();\n \trotated.currentBlock = this.currentBlock;\n \tfor (int i = 0; i < 4; i++) {\n \t\trotated.blockInCoord[i][0] = this.blockInCoord[i][1];\n \t\trotated.blockInCoord[i][1] = -this.blockInCoord[i][0];\n \t}\n \treturn rotated;\n }", "title": "" }, { "docid": "7f87ef4083f54e03379af63006179ba9", "score": "0.46958148", "text": "Block createBlock();", "title": "" }, { "docid": "7f87ef4083f54e03379af63006179ba9", "score": "0.46958148", "text": "Block createBlock();", "title": "" }, { "docid": "38aff86e9b98d61efbb46eadb212bc00", "score": "0.46936506", "text": "public void onBlockPlacedBy(World p_149689_1_, int p_149689_2_, int p_149689_3_, int p_149689_4_, EntityLivingBase p_149689_5_, ItemStack p_149689_6_)\n {\n \tif(!this.field_150004_a){\n \t\tint l = MathHelper.floor_double((double)(p_149689_5_.rotationYaw * 4.0F / 360.0F) + 2.5D) & 3;\n \t\tboolean isUpper=p_149689_1_.getBlockMetadata(p_149689_2_, p_149689_3_, p_149689_4_)>=8;\n \t\tp_149689_1_.setBlockMetadataWithNotify(p_149689_2_, p_149689_3_, p_149689_4_, l+(isUpper?8:0), 2);\n \t}\n }", "title": "" }, { "docid": "8cf293cb78afc602c765d7a7bca668a1", "score": "0.4687587", "text": "private void renderPlayer() {\n\t\tplayer.setCenterX(jeu.player.y*jeu.player.size*MULTI);\n\t\tplayer.setCenterY(jeu.player.x*jeu.player.size*MULTI);\n\t}", "title": "" }, { "docid": "62ef6e8afe1ec599ce7aca3bd5819d7c", "score": "0.46788752", "text": "public void spawn() {\n int xCoordinate = new Random().nextInt(getCollisionLayer().getWidth() - 8);\n int yCoordinate = new Random().nextInt(getCollisionLayer().getHeight() - 2);\n setPlayerPosition(xCoordinate, yCoordinate);\n isFrozen = false;\n isSwapped = false;\n isDead = false;\n }", "title": "" }, { "docid": "d876c80139b5122ac3dcc56434a344d4", "score": "0.46780038", "text": "private void addToWorld() {\n\t\t(world.add(\"wall1a\", 0f, 1f, 0f)).setColor(\r\n\t\t\t\t0.25f + 0.5f * (float) Math.random(),\r\n\t\t\t\t0.25f + 0.5f * (float) Math.random(),\r\n\t\t\t\t0.25f + 0.5f * (float) Math.random(), 1f);\r\n\t\t(world.add(\"wall1b\", 0f, 1f, 0f)).setColor(\r\n\t\t\t\t0.25f + 0.5f * (float) Math.random(),\r\n\t\t\t\t0.25f + 0.5f * (float) Math.random(),\r\n\t\t\t\t0.25f + 0.5f * (float) Math.random(), 1f);\r\n\r\n//\t\t Add the ground\r\n\t\t(ground = world.add(\"ground\", 0f, 0f, 0f)).setColor(\r\n\t\t\t\t0.25f + 0.5f * (float) Math.random(),\r\n\t\t\t\t0.25f + 0.5f * (float) Math.random(),\r\n\t\t\t\t0.25f + 0.5f * (float) Math.random(), 1f);\r\n//\t\tadd the terrain\r\n//\t\tworld.add(\"wall1c\",0,0,0);\r\n\t\t\r\n//\t\t Create some boxes to play with\r\n\t\tfor (int x = 0; x < BOXCOUNT_X; x++) {\r\n\t\t\tfor (int y = 0; y < BOXCOUNT_Y; y++) {\r\n\t\t\t\tfor (int z = 0; z < BOXCOUNT_Z; z++) {\r\n\t\t\t\t\tworld.add(\"box\", BOXOFFSET_X + x, BOXOFFSET_Y + 20 + y,\r\n\t\t\t\t\t\t\tBOXOFFSET_Z + z).setColor(\r\n\t\t\t\t\t\t\t0.5f + 0.5f * (float) Math.random(),\r\n\t\t\t\t\t\t\t0.5f + 0.5f * (float) Math.random(),\r\n\t\t\t\t\t\t\t0.5f + 0.5f * (float) Math.random(), 1f);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tcharacter = world.add(\"capsule\", 0f, 20f, 0f);\r\n\t\tcharacter.transform.setTranslation(0, 5f, 0);\r\n\t\tsetCharacter();\r\n\t\t\r\n\t}", "title": "" }, { "docid": "35d94b67a3bb842cd23b23d4f7e91502", "score": "0.4676482", "text": "public void wraparound() {\r\n if (Asteroids.BlackholeList.isEmpty()){\r\n if (xposition < 0) {\r\n xposition = 900;\r\n }\r\n if (xposition > 900) {\r\n xposition = 0;\r\n }\r\n if (yposition < 0) {\r\n yposition = 600;\r\n }\r\n if (yposition > 600) {\r\n yposition = 0;\r\n }\r\n }\r\n if (!Asteroids.BlackholeList.isEmpty()){\r\n if (xposition < 0) {\r\n xposition = 0;\r\n xspeed=0;\r\n yspeed=0;\r\n Thrust=0;\r\n }\r\n if (xposition > 900) {\r\n xposition = 900;\r\n xspeed=0;\r\n yspeed=0;\r\n Thrust=0;\r\n }\r\n if (yposition < 0) {\r\n yposition = 0;\r\n xspeed=0;\r\n yspeed=0;\r\n Thrust=0;\r\n }\r\n if (yposition > 600) {\r\n yposition = 600;\r\n xspeed=0;\r\n yspeed=0;\r\n Thrust=0;\r\n }\r\n }\r\n }", "title": "" }, { "docid": "3e3e1dd49b07dbda349d0dd2b8b2e373", "score": "0.46748385", "text": "private void initUpperHalf() {\r\n\t\t// upper half\r\n\t\tthis.upperHalf = new JPanel();\r\n\t\tthis.upperHalf.setLayout(new FlowLayout(FlowLayout.CENTER, 0, 0));\r\n\t\tthis.upperHalf.setOpaque(false);\r\n\r\n\t\tthis.currentPlayerArea = new JPanel();\r\n\t\tthis.currentPlayerArea.setOpaque(false);\r\n\r\n\t\tthis.allocateButton = new JButton(\r\n\t\t\t\tGAME_PANEL_CONTROLBAR_BUTTON_SET_ARMIES);\r\n\t\tthis.allocatableArmies = new JLabel(\"0\");\r\n\t\tthis.allocatableArmies.setForeground(new Color(187, 186, 187));\r\n\r\n\t\tthis.cardButton = new JButton(\r\n\t\t\t\tGAME_PANEL_CONTROLBAR_BUTTON_TURN_CARDS_IN);\r\n\t\tthis.attackButton = new JButton(GAME_PANEL_CONTROLBAR_BUTTON_ATTACK);\r\n\t\tthis.moveButton = new JButton(\r\n\t\t\t\tGAME_PANEL_CONTROLBAR_BUTTON_ALLOCATE_ARMIES);\r\n\t\tthis.finishTurnButton = new JButton(\r\n\t\t\t\tGAME_PANEL_CONTROLBAR_BUTTON_FINISH_TURN);\r\n\r\n\t\tthis.upperHalf.add(this.currentPlayerArea);\r\n\r\n\t\tthis.upperHalf.add(this.cardButton);\r\n\t\tthis.upperHalf.add(this.allocateButton);\r\n\t\tthis.upperHalf.add(this.allocatableArmies);\r\n\t\tthis.upperHalf.add(this.attackButton);\r\n\t\tthis.upperHalf.add(this.moveButton);\r\n\t\tthis.upperHalf.add(this.finishTurnButton);\r\n\t}", "title": "" }, { "docid": "52ea99237598488f8969d172d60c4bba", "score": "0.4674569", "text": "private static void createNorth(Vec3i location, Quaternion rotation, ChunkMesh chunkMesh, float blockScale, Function<Direction, TextureCoordinates> textureCoordinatesFunction) {\n int offset = chunkMesh.getPositions().size();\n // vertices\n chunkMesh.getPositions().add(Shape.createVertex(rotation.mult(new Vector3f(-0.5f, -0.5f, -0.5f)), location, blockScale));\n chunkMesh.getPositions().add(Shape.createVertex(rotation.mult(new Vector3f(-0.5f, 0.5f, -0.5f)), location, blockScale));\n chunkMesh.getPositions().add(Shape.createVertex(rotation.mult(new Vector3f(0.5f, -0.5f, -0.5f)), location, blockScale));\n chunkMesh.getPositions().add(Shape.createVertex(rotation.mult(new Vector3f(0.5f, 0.5f, -0.5f)), location, blockScale));\n // indices\n chunkMesh.getIndices().add(offset);\n chunkMesh.getIndices().add(offset + 1);\n chunkMesh.getIndices().add(offset + 2);\n chunkMesh.getIndices().add(offset + 1);\n chunkMesh.getIndices().add(offset + 3);\n chunkMesh.getIndices().add(offset + 2);\n\n if (!chunkMesh.isCollisionMesh()) {\n // normals and tangents\n for (int i = 0; i < 4; i++) {\n chunkMesh.getNormals().add(rotation.mult(new Vector3f(0.0f, 0.0f, -1.0f)));\n Matrix4f rotationMatrix = rotation.toRotationMatrix(new Matrix4f());\n chunkMesh.getTangents().add(rotationMatrix.mult(new Vector4f(-1.0f, 0.0f, 0.0f, 1.0f)));\n }\n // uvs\n TextureCoordinates textureCoordinates = textureCoordinatesFunction.apply(Direction.NORTH);\n chunkMesh.getUvs().add(new Vector2f(textureCoordinates.getMax().x, textureCoordinates.getMin().y));\n chunkMesh.getUvs().add(new Vector2f(textureCoordinates.getMax().x, textureCoordinates.getMax().y));\n chunkMesh.getUvs().add(new Vector2f(textureCoordinates.getMin().x, textureCoordinates.getMin().y));\n chunkMesh.getUvs().add(new Vector2f(textureCoordinates.getMin().x, textureCoordinates.getMax().y));\n }\n }", "title": "" }, { "docid": "4207be7e961357fbd9ab295081f1a45b", "score": "0.46679208", "text": "@Test\n public void WallTest3() {\n // Create a Boulder and a Wall to the right of the player.\n Boulder b = new Boulder(5, 4, dungeon);\n dungeon.addEntity(b);\n Wall w = new Wall(6, 4, dungeon);\n dungeon.addEntity(w);\n\n // Try and make the Player push the Boulder into the Wall.\n player.move(Direction.RIGHT);\n\n // Check that the Boulder remains in the same spot.\n assertEquals(5, b.getX());\n assertEquals(4, b.getY());\n\n // Check that the Player remains in the same spot.\n assertEquals(4, player.getX());\n assertEquals(4, player.getY());\n\n }", "title": "" }, { "docid": "f8c6b24f70bd85817308d453745fbe8a", "score": "0.46673688", "text": "public void setBlockDirection(GameLoopTask.GameDirection newDir){\n //Only change the directions when the bloack is in a corner\n myDir = newDir;\n }", "title": "" }, { "docid": "fd84fdbc6da9132c2537e4650b702326", "score": "0.46574342", "text": "Thing(int screenHeight) {\r\n posy = screenHeight / 11; // spawn the thing at the horizon\r\n }", "title": "" }, { "docid": "a64d7d61dcb011ef8dc90294443d2e53", "score": "0.46541703", "text": "@Override\r\n public void onUpdate() {\r\n\r\n super.onUpdate();\r\n\r\n if (this._ticksInAir > this._maxTicksInAir)\r\n this.setDead();\r\n\r\n if (this._shootingEntity == null) {\r\n\r\n List players = this.worldObj.getEntitiesWithinAABB(EntityPlayer.class, new AxisAlignedBB(posX - 1, posY - 1, posZ - 1, posX + 1, posY + 1, posZ + 1));\r\n Iterator i = players.iterator();\r\n double closestDistance = Double.MAX_VALUE;\r\n EntityPlayer closestPlayer = null;\r\n\r\n while (i.hasNext()) {\r\n\r\n EntityPlayer e = (EntityPlayer)i.next();\r\n double distance = e.getDistanceToEntity(this);\r\n\r\n if (distance < closestDistance)\r\n closestPlayer = e;\r\n }\r\n\r\n if (closestPlayer != null)\r\n this._shootingEntity = closestPlayer;\r\n }\r\n\r\n if (this.prevRotationPitch == 0.0F && this.prevRotationYaw == 0.0F) {\r\n\r\n float var1 = MathHelper.sqrt_double(this.motionX * this.motionX + this.motionZ * this.motionZ);\r\n\r\n this.prevRotationYaw = this.rotationYaw = (float) (Math.atan2(this.motionX, this.motionZ) * 180.0D / Math.PI);\r\n this.prevRotationPitch = this.rotationPitch = (float) (Math.atan2(this.motionY, var1) * 180.0D / Math.PI);\r\n }\r\n\r\n IBlockState state = this.worldObj.getBlockState(new BlockPos(this._xTile, this._yTile, this._zTile));\r\n Block var16 = state.getBlock();\r\n\r\n if (var16 != null) {\r\n\r\n var16.setBlockBoundsBasedOnState(this.worldObj, new BlockPos(this._xTile, this._yTile, this._zTile));\r\n\r\n AxisAlignedBB var2 = var16.getCollisionBoundingBox(worldObj, new BlockPos(this._xTile, this._yTile, this._zTile), state);\r\n\r\n if (var2 != null && var2.isVecInside(new Vec3(this.posX, this.posY, this.posZ)))\r\n this._inGround = true;\r\n }\r\n\r\n if (!this._inGround) {\r\n\r\n ++this._ticksInAir;\r\n\r\n if (this._ticksInAir > 1 && this._ticksInAir < 3) {\r\n\r\n for (int particles = 0; particles < 3; particles++) {\r\n this.doFiringParticles();\r\n }\r\n }\r\n\r\n Vec3 var17 = new Vec3(this.posX, this.posY, this.posZ);\r\n Vec3 var3 = new Vec3(this.posX + this.motionX, this.posY + this.motionY, this.posZ + this.motionZ);\r\n MovingObjectPosition var4 = this.worldObj.rayTraceBlocks(var17, var3, true, false, false);\r\n var17 = new Vec3(this.posX, this.posY, this.posZ);\r\n var3 = new Vec3(this.posX + this.motionX, this.posY + this.motionY, this.posZ + this.motionZ);\r\n\r\n if (var4 != null)\r\n var3 = new Vec3(var4.hitVec.xCoord, var4.hitVec.yCoord, var4.hitVec.zCoord);\r\n\r\n Entity var5 = null;\r\n List var6 = this.worldObj.getEntitiesWithinAABBExcludingEntity(this, getBoundingBox().addCoord(this.motionX, this.motionY, this.motionZ).expand(1.0D, 1.0D, 1.0D));\r\n double var7 = 0.0D;\r\n Iterator var9 = var6.iterator();\r\n float var11;\r\n boolean scheduledForDeath = false;\r\n\r\n while (var9.hasNext()) {\r\n\r\n Entity var10 = (Entity) var9.next();\r\n\r\n if (var10.canBeCollidedWith() && (var10 != this._shootingEntity || this._ticksInAir >= 5)) {\r\n\r\n var11 = 0.3F;\r\n\r\n AxisAlignedBB var12 = var10.getBoundingBox().expand(var11, var11, var11);\r\n MovingObjectPosition var13 = var12.calculateIntercept(var17, var3);\r\n\r\n if (var13 != null) {\r\n\r\n double var14 = var17.distanceTo(var13.hitVec);\r\n\r\n if (var14 < var7 || var7 == 0.0D) {\r\n\r\n var5 = var10;\r\n var7 = var14;\r\n }\r\n }\r\n }\r\n }\r\n\r\n if (var5 != null)\r\n var4 = new MovingObjectPosition(var5);\r\n\r\n if (var4 != null) {\r\n\r\n this.onImpact(var4);\r\n\r\n if (scheduledForDeath)\r\n this.setDead();\r\n }\r\n\r\n this.posX += this.motionX;\r\n this.posY += this.motionY;\r\n this.posZ += this.motionZ;\r\n MathHelper.sqrt_double(this.motionX * this.motionX + this.motionZ * this.motionZ);\r\n this.setPosition(this.posX, this.posY, this.posZ);\r\n }\r\n }", "title": "" }, { "docid": "d6abcb0e0eb79ac0e9b9c5c51446077e", "score": "0.46479163", "text": "private void setY(){\n double pos = enemy.getYPos() + enemy.getHeight();\n\n if(pos >= levelHeight){\n if(!enemy.getJump() && enemy.getFall()){\n enemy.setInitialPos(enemy.getXPos(), levelHeight - enemy.getHeight());\n enemy.setFall(false);\n enemy.setJump(false);\n }\n }\n else if(pos < levelHeight){\n if(!enemy.getFall() && !enemy.getJump()){\n enemy.setFall(true);\n enemy.setJump(false);\n enemy.setInitialPos(enemy.getXPos(),enemy.getYPos() +1);\n }\n else if(enemy.getFall() && !enemy.getJump()){\n if(pos < levelHeight){\n enemy.setInitialPos(enemy.getXPos(),enemy.getYPos() +1);\n\n }\n }\n }\n }", "title": "" }, { "docid": "b5f41312a400849dc7b332090ff150d3", "score": "0.4646733", "text": "public void placeBlock(BlockPos blockPos) {\n void position;\n if (BlockUtils.isPositionPlaceable((BlockPos)position, true, true, false) && this.placements < blocks.getValue().intValue()) {\n BlockUtils.placeBlock((BlockPos)position, EnumHand.MAIN_HAND, true);\n ++this.placements;\n }\n }", "title": "" }, { "docid": "bf57b3c8fe4bec402f46fc373d6e6cc9", "score": "0.46429214", "text": "public void checkVertical(int row, int column, int player) {\n // Only checks for win if possible (if column is full)\n if (lowestOpen[column] == 0) {\n for (int i = dims - 1; i >= 0; i--) {\n if (board[row][i] != player) {\n return;\n }\n }\n\n win();\n }\n }", "title": "" }, { "docid": "f88c0f85f8a83fa26e139e010a983e9f", "score": "0.46379834", "text": "@Override\n\t\t\t\tpublic void OnPlayerNotColideWithFloor() {\n\t\t\t\t\tplayer.canBeAppliedVerticalForce(false);\n\t\t\t\t}", "title": "" }, { "docid": "2d3002eff5b7991119c0fad1f205f126", "score": "0.4630579", "text": "private static GridDirection initialOrientation() { return UP; }", "title": "" }, { "docid": "d6abc58370039481fd729656f4b96fa4", "score": "0.46198583", "text": "public interface WorldServerAdapter {\n\n /**\n * @param type The type of world.\n * @return The world of this type.\n */\n World getWorld(WorldType type);\n\n /**\n * @param world The world.\n * @param x The X coordinate.\n * @param y The Y coordinate.\n * @param z The Z coordinate.\n * @return The block in the given world at the specified coordinates.\n */\n Block getBlockAt(WorldType world, int x, int y, int z);\n\n /**\n * @param world The world.\n * @param x The X coordinate.\n * @param z The Y coordinate.\n * @return The highest non-air block in the given world at the specified coordinates.\n */\n Block getHighestBlockAt(WorldType world, int x, int z);\n\n /**\n * @param block The block to update. Can not be null.\n */\n void setBlock(Block block);\n\n /**\n * @param block The block to update. Can not be null.\n * @param type The new type. Can not be null.\n */\n void setBlockType(Block block, BlockType type);\n\n /**\n * @param sign The sign to update. Can not be null.\n * @param lines The new lines. Can not be null.\n */\n void setSignLines(Sign sign, String[] lines);\n\n /**\n * @param items The items to drop. Can not be null, but can be empty. Items can not be null.\n * @param location The location to drop at. Can not be null.\n */\n void dropItemsAt(List<Item> items, Location location);\n\n void spoofBlock(Block fakeBlock, UUID playerId);\n\n void playSound(Location location, Sound sound, SoundCategory category, float volume, float pitch);\n\n void strikeLightning(Location location, boolean ambient);\n\n void createExplosion(Location location, boolean ambient);\n\n UUID createArrow(UUID shooterId, Location location, Vector3f direction, float speed, float spread);\n}", "title": "" }, { "docid": "93035a3444a43e910e94fd31f1565ff9", "score": "0.46186095", "text": "private static void createWest(Vec3i location, Quaternion rotation, ChunkMesh chunkMesh, float blockScale, Function<Direction, TextureCoordinates> textureCoordinatesFunction) {\n int offset = chunkMesh.getPositions().size();\n // vertices\n chunkMesh.getPositions().add(Shape.createVertex(rotation.mult(new Vector3f(-0.5f, -0.5f, 0.5f)), location, blockScale));\n chunkMesh.getPositions().add(Shape.createVertex(rotation.mult(new Vector3f(-0.5f, 0.5f, 0.5f)), location, blockScale));\n chunkMesh.getPositions().add(Shape.createVertex(rotation.mult(new Vector3f(-0.5f, -0.5f, -0.5f)), location, blockScale));\n chunkMesh.getPositions().add(Shape.createVertex(rotation.mult(new Vector3f(-0.5f, 0.5f, -0.5f)), location, blockScale));\n // indices\n chunkMesh.getIndices().add(offset);\n chunkMesh.getIndices().add(offset + 1);\n chunkMesh.getIndices().add(offset + 2);\n chunkMesh.getIndices().add(offset + 1);\n chunkMesh.getIndices().add(offset + 3);\n chunkMesh.getIndices().add(offset + 2);\n\n if (!chunkMesh.isCollisionMesh()) {\n // normals and tangents\n for (int i = 0; i < 4; i++) {\n chunkMesh.getNormals().add(rotation.mult(new Vector3f(-1.0f, 0.0f, 0.0f)));\n Matrix4f rotationMatrix = rotation.toRotationMatrix(new Matrix4f());\n chunkMesh.getTangents().add(rotationMatrix.mult(new Vector4f(0.0f, 0.0f, 1.0f, 1.0f)));\n }\n // uvs\n TextureCoordinates textureCoordinates = textureCoordinatesFunction.apply(Direction.WEST);\n chunkMesh.getUvs().add(new Vector2f(textureCoordinates.getMax().x, textureCoordinates.getMin().y));\n chunkMesh.getUvs().add(new Vector2f(textureCoordinates.getMax().x, textureCoordinates.getMax().y));\n chunkMesh.getUvs().add(new Vector2f(textureCoordinates.getMin().x, textureCoordinates.getMin().y));\n chunkMesh.getUvs().add(new Vector2f(textureCoordinates.getMin().x, textureCoordinates.getMax().y));\n }\n }", "title": "" }, { "docid": "1a11f9f77da9c4da6f9006d1b5d1dad8", "score": "0.46133947", "text": "void rotateBlock(IBlock block);", "title": "" }, { "docid": "7326ffd083dd40f1645ebf7e61ae0c3b", "score": "0.46117827", "text": "@Override\n public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int i, float j, float k, float l) {\n return true;\n }", "title": "" }, { "docid": "9f84ccfd9f00dc828ffe12dd18131743", "score": "0.46111125", "text": "public GameArea() {\n super();\n\n\n player = new Player(50, 0);\n\n xPerSec = 0;\n yPerSec = 0;\n\n moveRight = false;\n moveLeft = false;\n moveUp = false;\n moveDown = false;\n\n bonuses = new LinkedList<>();\n bonusImages = new LinkedList<>();\n pointedLines = new LinkedList<>();\n\n setPreferredSize(new Dimension(DEFAULT_WIDTH, DEFAULT_HEIGHT));\n setDoubleBuffered(true);\n setBackground(Color.CYAN);\n currentLevel = new Level(0, 0, 0, 0, 0);\n\n playerImg = player.playerImage.getScaledInstance(Player.SHIP_SIZE*DEFAULT_WIDTH/100, Player.SHIP_SIZE*DEFAULT_HEIGHT/100, Image.SCALE_DEFAULT);\n\n\n //creating initial terrain\n for (Line line : currentLevel.getLines()) {\n polyx.add(line.x1);\n polyy.add(line.y1);\n }\n polyg.reset();\n for(int i =0; i < polyx.size(); i++){\n polyg.addPoint((int)polyx.get(i)*this.getWidth()/100, (int)polyy.get(i)*this.getHeight()/100);\n }\n polyx.clear();\n polyy.clear();\n\n addComponentListener(this);\n\n winInfo = new JLabel(\"\");\n winInfo.setFont(new Font(this.getFont().getName(), Font.PLAIN, 40));\n winInfo.setForeground(Color.RED);\n\n this.setLayout(new BorderLayout());\n add(winInfo);\n\n setMinimumSize(new Dimension(50, 50));\n\n }", "title": "" }, { "docid": "1fa74caba2d84ab6fc3415b810e97634", "score": "0.46039608", "text": "public boolean shiftDown(){\n if(playerPos.y == this.height -1) {\n \t return false;\n \t}\n\n \tBlockType[][] newBoard = new BlockType[height][];\n\tfor(int i = height-1; i >= 0; i--){\n\t if(i == 0){\n\t newBoard[i] = nextChunk[nextChunkIndex];\n\t }\n\t else {\n\t\tnewBoard[i] = board[i - 1];\n\t }\n\t}\n\n \tplayerPos.y++;\n\tthis.board = newBoard;\n\tnotifyListeners();\n\n\t// Update the nextchunk traverse index and ask for a new chunk if\n\t// the last row of the chunk was used.\n \tif(nextChunkIndex + 1 == nextChunk.length){\n \t try {\n\t\tnextChunk = chunkHandler.getNextChunk();\n\t } catch(IllegalStateException e){\n \t e.printStackTrace();\n \t System.out.println(\"No available chunk in ChunkHandler\");\n \t System.exit(1);\n\t }\n \t nextChunkIndex = 0;\n \t}\n \telse{\n \t nextChunkIndex++;\n\t}\n \treturn true;\n }", "title": "" }, { "docid": "96415c171eb9aa74b418a1ddc1aa458d", "score": "0.45993248", "text": "void spawnPlayer(PlayerColor player, TilePosition tile);", "title": "" }, { "docid": "f4ea9774277da95410659b1708505b70", "score": "0.45979762", "text": "@EventHandler\n public void onBlockPlace(BlockPlaceEvent event){\n\n if(event.getBlockAgainst().getType().equals(Material.IRON_BLOCK) && event.getBlock().getType().equals(Material.CRAFTING_TABLE)){\n // We check if the block that it is placed against is one block below it so that it doesn't happen unless it is placed on top the block.\n if(event.getBlockAgainst().getLocation().getY() == (event.getBlock().getLocation().getY() - 1)) {\n // https://www.youtube.com/watch?v=XMeck_nTdVA\n // I ended up trying this one since the above one didn't really work:\n // https://www.youtube.com/watch?v=1IfimW0_1_M\n\n event.getPlayer().getWorld().playSound(event.getBlock().getLocation().add(0.5, 0, 0.5), Sound.BLOCK_AMETHYST_BLOCK_CHIME, 8f, 1);\n\n new BukkitRunnable() {\n double var = 0;\n Location loc, first, second;\n Block placedBlock = event.getBlock();\n\n @Override\n public void run() {\n var += Math.PI / 16;\n\n // https://christopherchudzicki.github.io/MathBox-Demos/parametric_curves_3D.html\n // This ^ allows you to plug in the equations for the first and second variables and then you can see it before you\n // run the game. Theoretically you could then use it to create new ones that you then put in to get cool new animations.\n // Must add 0.5 to the x and z coords so that the location is the center of the block.\n loc = placedBlock.getLocation().add(0.5, 0, 0.5);\n first = loc.clone().add(Math.cos(var), Math.sin(var) + 1, Math.sin(var));\n second = loc.clone().add(Math.cos(var + Math.PI), Math.sin(var) + 1, Math.sin(var + Math.PI));\n\n placedBlock.getWorld().spawnParticle(Particle.SOUL_FIRE_FLAME, first, 0);\n placedBlock.getWorld().spawnParticle(Particle.FLAME, second, 0);\n\n if (var > Math.PI * 4) {\n this.cancel();\n }\n }\n }.runTaskTimer(plugin, 0, 1);\n }\n }\n }", "title": "" }, { "docid": "27c5e31792fce193250c3229149888fb", "score": "0.45920062", "text": "public Block(){\n\t\tisObstacle = false;\n\t\trow = -1;\n\t\tcol = -1;\n\t}", "title": "" }, { "docid": "49482e93106303d3db7403be45409b92", "score": "0.4590243", "text": "public void reposition() {\r\n spawnInterface.reposition();\r\n }", "title": "" }, { "docid": "5fc174801d1992e77258205651902587", "score": "0.45889732", "text": "boolean checkPushableBlock(Orientation orientation, float x, float y);", "title": "" }, { "docid": "84bf6c1f33f2b5adf13bc643ae97ec67", "score": "0.45822394", "text": "public GameWorldPositiveYUp() {\n\t\t\tcreateViewports();\n\t\t\tloadAndPositionPlatforms();\n\t\t}", "title": "" }, { "docid": "07bc9133044ece8ec35e85f3ea8d23f7", "score": "0.45793995", "text": "private void moveToNextSquare(final Player player) {\r\n player.setPosition(player.getPosition() - locations.size());\r\n player.setBalance(player.getBalance() + b);\r\n }", "title": "" }, { "docid": "afe5814f2c9bdc8f9621ea74bc6b92b2", "score": "0.456961", "text": "@Override\n public void faceSouth() {\n\n }", "title": "" }, { "docid": "a00db476de1db54b8184847ac0a062df", "score": "0.45667872", "text": "public void generateTerrain()\n\t{\n\t\tint rand;\n\t\tint starting=(int)(blocksWide*0.15);//Choose the first grass block\n\t\tblocksTall=(int)(blocksWide*0.6);\n\t\tfor(int i=0;i<blocksWide;i++)\n\t\t{\n\t\t\t//Determine whether the next block will go up a level, down a level or stay the same (55% chance of staying the same)\n\t\t\trand=ThreadLocalRandom.current().nextInt(0,3);\t\n\t\t\tif(rand!=0)\n\t\t\t{\n\t\t\t\trand=ThreadLocalRandom.current().nextInt(-1,2);\n\t\t\t}\n\t\t\tif(starting+rand<blocksTall-2 && starting+rand>2)\t//Make sure new position isn't too close to the top or bottom\n\t\t\t{\n\t\t\t\tstarting+=rand;\n\t\t\t}\n\t\t\tplatforms.add(new Platform((double)i/blocksWide,(double)starting/blocksTall,1.0/blocksWide,1.0/blocksTall));\n\t\t}\n\t\tplatforms.add(new Platform(0.0,0.0,0.0,0.0));\n\t}", "title": "" }, { "docid": "de66f15f9c7063b3452c5aee2a590fca", "score": "0.45656842", "text": "public void initialize() {\r\n\r\n // Create background.\r\n this.background.addToGame(this);\r\n // the upper block.\r\n Rectangle upRectBlock = new Rectangle(0, 0, BOARD_WIDE, BLOCK_LEN * 2);\r\n Block upperBlock = new Block(upRectBlock, Color.pink);\r\n Rectangle lowRectBlock = new Rectangle(0, BOARD_LENGHT - 0.999, BOARD_WIDE, BLOCK_LEN);\r\n // the lower block.\r\n Block lowerBlock = new Block(lowRectBlock, Color.gray);\r\n Rectangle leftRectBlock = new Rectangle(0, BLOCK_LEN, BLOCK_LEN, BOARD_LENGHT - BLOCK_LEN);\r\n // the left block.\r\n Block leftBlock = new Block(leftRectBlock, Color.pink);\r\n Rectangle rigthRectBlock = new Rectangle(BOARD_WIDE - BLOCK_LEN, BLOCK_LEN, BLOCK_LEN,\r\n BOARD_LENGHT - BLOCK_LEN);\r\n // the right block.\r\n Block rightBlock = new Block(rigthRectBlock, Color.pink);\r\n // add the borders to the game.\r\n upperBlock.addToGame(this);\r\n lowerBlock.addToGame(this);\r\n leftBlock.addToGame(this);\r\n rightBlock.addToGame(this);\r\n lowerBlock.addHitListener(ballRemover);\r\n // adding the paddle.\r\n paddle.addToGame(this);\r\n //add blocks\r\n\r\n for (Block block : this.blockList) {\r\n block.addToGame(this);\r\n block.addHitListener(this.blockRemover);\r\n block.addHitListener(this.scoreTracking);\r\n }\r\n this.counterBlocks.increase(this.level.numberOfBlocksToRemove());\r\n\r\n Rectangle answerRect = new Rectangle(0, 0, BOARD_WIDE, BLOCK_LEN);\r\n Block scoreBlock = new Block(answerRect, Color.WHITE);\r\n this.scoreIndicator = new ScoreIndicator(answerRect, counterScore);\r\n this.livesIndicator = new LivesIndicator(answerRect, counterLives);\r\n this.levelName = new LevelName(answerRect, this.level.levelName());\r\n scoreBlock.addToGame(this);\r\n this.scoreIndicator.addToGame(this);\r\n this.livesIndicator.addToGame(this);\r\n this.levelName.addToGame(this);\r\n }", "title": "" }, { "docid": "94d9412f5b5b2a53983ec5cd4bb223d8", "score": "0.4564976", "text": "@Override\n\tpublic void setBlockGenerate(Block block, int x, int y) {\n\t\t\n\t}", "title": "" }, { "docid": "721925b3b1547dc0fde0d0127817395e", "score": "0.45648435", "text": "private void eraseBlock(Block block) {\n\t\tint length = block.getLength();\n\t\tint x = block.getPosition().x;\n\t\tint y = block.getPosition().y;\n\n\t\twhile (length-- > 0) {\n\t\t\tsetGridSquare(null, x, y);\n\t\t\tif (block.getOrientation() == VERTICAL) {\n\t\t\t\ty++;\n\t\t\t} else {\n\t\t\t\tx++;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "73fe60ee191acd8fcfe92539e094664d", "score": "0.45611706", "text": "public void newBlock() {\n SymbolTableEntry block = new SymbolTableEntry(NONAME, Kind.ANONYMOUSBLOCK, Type.VOID, 0, 0, currLevel);\n addBlockNode(block);\n }", "title": "" }, { "docid": "d28017163b9be392e3f61a250ac05a71", "score": "0.45607543", "text": "public void addBlock(BlockFunction block)\n {\n if (extrudeMode != BO3Settings.ExtrudeMode.None)\n {\n if (extrudeMode == BO3Settings.ExtrudeMode.BottomDown && block.y < blockExtrusionY)\n {\n blocksToExtrude.clear();\n blockExtrusionY = block.y;\n } else if (extrudeMode == BO3Settings.ExtrudeMode.TopUp && block.y > blockExtrusionY)\n {\n blocksToExtrude.clear();\n blockExtrusionY = block.y;\n }\n if (block.y == blockExtrusionY)\n {\n blocksToExtrude.add(block);\n }\n }\n }", "title": "" }, { "docid": "0d578a1355b5c81bc37022fd424117ad", "score": "0.4558377", "text": "public ExitTile(Point location) {\r\n\t\tboardLocation = location;\r\n\t\ttileChar = \"%\";\r\n\t}", "title": "" }, { "docid": "cce48b08275ae56caa0c1e51ee8883fa", "score": "0.45561412", "text": "private PsiPlayerListFooterExpressionImpl(@NotNull PsiElement<?> player, int lineNumber) {\n super(player, lineNumber);\n }", "title": "" }, { "docid": "500261df65c486947a5f7195ebdb1710", "score": "0.4551599", "text": "private void singleBlock(int x, int y, TETile surrounding, TETile center) {\n\n for (int i = 0; i < 3; i++) {\n for (int j = 0; j < 3; j++) {\n this.spaces[x + i][y + j] = surrounding;\n }\n }\n\n this.spaces[x + 1][y + 1] = center;\n }", "title": "" }, { "docid": "a310fedb14e6f970ed7c6085be99328f", "score": "0.45489573", "text": "public Player (){\n//\t\txPlayerLoc = setPlayerXStart();\n\t\tyPlayerLoc = 100;\n\t\tplayerImage = new Texture(\"Universal/PlayerImage-Right.png\");\n\t\tplayerScale = .25f;\n\t\tdiffSett = 0;\n\t\tsetPlayerMoveImages();\n\t}", "title": "" } ]
aedf8a6fbc704ec93573090f81e2d6e9
This method returns how many times a certain character appears within a given string.
[ { "docid": "7bf4d16f4f668d6b238f7948a424c01f", "score": "0.6935934", "text": "public static int countCharacters (char x, String sample) {\r\n\t\tif (sample.length() > 0) {\r\n\t\t\tif (x == sample.charAt(0)) {\r\n\t\t\t\treturn countCharacters(x, sample.substring(1)) + 1;\r\n\t\t\t}else {\r\n\t\t\t\t\r\n\t\t\t\treturn countCharacters(x, sample.substring(1));\r\n\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\r\n\t\t}\r\n\t\treturn 0;\r\n\t}", "title": "" } ]
[ { "docid": "3315bec9738790eae1b319b91483f71d", "score": "0.8052447", "text": "public static int findNumberOfOccurrences(String str,char letter) {\nint numberOfTimes=0;\nfor(int i=0;i<str.length();i++){\nif(str.charAt(i)==letter) {\nnumberOfTimes++;\n}\n}\nreturn numberOfTimes;\n}", "title": "" }, { "docid": "65bf932ac5d82f53dea40234000b7dea", "score": "0.79426074", "text": "private static long countOccurrencesOf(final String str, final char character) {\n return str.codePoints().filter(ch -> ch == character).count();\n }", "title": "" }, { "docid": "ec6f808aad36269abe63eda008ee3670", "score": "0.76070565", "text": "private int countChar(String word, String character) {\n int count = 0;\n for (int i = 0; i < word.length(); i++) {\n if (character.indexOf(word.charAt(i)) >= 0) {\n count++;\n }\n }\n return count;\n }", "title": "" }, { "docid": "d8e147982c9e8ff4a8b0ba581abc51a3", "score": "0.7585492", "text": "private int searchStringforChar(char c){\n\t\tString searchString = gameWord;\n\t\tint count = 0;\n\t\twhile (searchString.indexOf(c) != -1){\n\t\t\tcount++;\n\t\t\tsearchString = searchString.substring(searchString.indexOf(c));\n\t\t}\n\t\treturn count;\n\t}", "title": "" }, { "docid": "34be0cc2d8d5028f8a7d79057a27af26", "score": "0.7583172", "text": "private static int countOccurrencesOf(String string, char c) {\n return string.length() - string.replace(c + \"\", \"\").length();\n }", "title": "" }, { "docid": "f4c7c9a09d1d08a5061a7965d00eb9b0", "score": "0.75361097", "text": "private static long countCharsUsingReg(final String str, final char character) {\n Pattern pattern = Pattern.compile(\"[^\" + character + \"]*\" + character + \"\");\n Matcher matcher = pattern.matcher(str);\n int count = 0;\n while (matcher.find()) {\n count++;\n }\n return count;\n }", "title": "" }, { "docid": "c27195f3869ca09fc75308a92de6bceb", "score": "0.7419867", "text": "private int countChars(char c, char[] str){\n int ret = 0;\n for(int i = 0; i<str.length; i++){\n if(str[i] == c){\n ret++;\n }\n }\n return ret;\n }", "title": "" }, { "docid": "28fe2ea2e93581d4f8cffd9dec5b6f86", "score": "0.7378886", "text": "static int countKey(String theString, char keyCharacter) {\n\t\treturn(theString.split(Character.toString(keyCharacter), -1).length-1);\n\t\t\n\t}", "title": "" }, { "docid": "276ff9e87207770a49834c81efd3e699", "score": "0.72974837", "text": "public int countXXX(String text) {\n\t\n\tint count = 0;\n\tint index = 0;\n\tchar[] charArr = text.toCharArray();\n\t\n\tfor(index = 0; index < text.length(); index++) {\n\t\tif(charArr[index] == 'x'){\n\t\t\tcount++;\n\t\t}\n\t}\n\t\n\treturn count;\n}", "title": "" }, { "docid": "d33e87995a4fadd1f1117c5beb6e942b", "score": "0.72900176", "text": "private static Map<Character, Integer> getCharCount(String string) {\n\t\tCharacter ch;\n\t\tMap<Character, Integer> count = new HashMap<Character, Integer>();\n\t\tint lengthOfStr = string.length();\n\t\t\n\t\tfor (int i = 0; i < lengthOfStr; ++i) {\n\t\t\tch = Character.toLowerCase(string.charAt(i));\n\t\t\tif (count.containsKey(ch)) { // If character is already present, increment the count\n\t\t\t\tcount.put(ch, count.get(ch) + 1);\n\t\t\t} else {\n\t\t\t\tcount.put(ch, 1);\n\t\t\t}\n\t\t}\n\t\treturn count;\n\t}", "title": "" }, { "docid": "eea7ee7dc9a3470b16d54076d2f705de", "score": "0.728744", "text": "public int cuenta(char c, String s){\n int cont = 0;\n for (int i =0; i < s.length() ; i++ ) {\n if (c == s.charAt(i)) {\n cont++;\n }\n }\n return cont;\n }", "title": "" }, { "docid": "e2a7d612bf2d0b36e459522b90416808", "score": "0.7279277", "text": "private int countFrequency(String str, char letter){\n int count = 0;\n for (char c : str.toCharArray()){\n if (c == letter)\n count++;\n }\n return count;\n }", "title": "" }, { "docid": "b06b011890dbad8005e518f1d86ff436", "score": "0.71772647", "text": "public static int countE( String str)\n {\n char searchedChar = 'e';\n int count = 0;\n if ( str.length() < 1) {\n return count;\n }\n else { \n if ( str.charAt(0) == searchedChar)\n count++;\n count = count + countE ( str.substring (1));\n return count;\n }\n }", "title": "" }, { "docid": "2527874c5f4c277a4272a904d5fe1eec", "score": "0.71494734", "text": "public static int getNumOfCharacters(final String usrStr) {\n /* Type your code here. */\n int totalChar = 0;\n\n for (int i = 0; i < usrStr.length(); i++) {\n totalChar++;\n }\n //return usrStr.length();\n return totalChar;\n }", "title": "" }, { "docid": "fd31f5c99a9cf474bf55b8fa433d1f43", "score": "0.7145494", "text": "public static int frequency(String str, char ch){\n int count = 0;\n for(char each : str.toCharArray() ){\n if(each == ch){\n count++;\n }\n }\n\n return count;\n }", "title": "" }, { "docid": "939c7a1a9cd3b692858e4a4533833fdf", "score": "0.7122974", "text": "static void characterCount(String inputString)\n\t{\n\t\tHashMap<Character, Integer> charCountMap\n\t\t\t= new HashMap<Character, Integer>();\n\n\t\t// Converting given string to char array\n\n\t\tchar[] strArray = inputString.toCharArray();\n\n\t\t// checking each char of strArray\n\t\tfor (char c : strArray) {\n\t\t\tif (charCountMap.containsKey(c)) {\n\n\t\t\t\t// If char is present in charCountMap,\n\t\t\t\t// incrementing it's count by 1\n\t\t\t\tcharCountMap.put(c, charCountMap.get(c) + 1);\n\t\t\t}\n\t\t\telse {\n\n\t\t\t\t// If char is not present in charCountMap,\n\t\t\t\t// putting this char to charCountMap with 1 as it's value\n\t\t\t\tcharCountMap.put(c, 1);\n\t\t\t}\n\t\t}\n\n\t\t// Printing the charCountMap\n\t\tfor (Map.Entry entry : charCountMap.entrySet()) {\n\t\t\tSystem.out.println(entry.getKey() + \" \" + entry.getValue());\n\t\t}\n\t}", "title": "" }, { "docid": "b758838b0b8eeb4b692c21a2223a1ea0", "score": "0.7111608", "text": "void countOccOfChar(String str)\r\n\t{\r\n\t\tint count[]=new int[128];\r\n\t\tfor(int i=0;i<str.length();i++)\r\n\t\t{\r\n\t\t\tcount[str.charAt(i)]++;\r\n\t\t}\r\n\t\tfor (int i = 0; i < count.length; i++) {\r\n\t\t\tif(count[i]!=0)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println((char)i+\" occured \"+ count[i]);\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "3b79bab2000d9997d80e83f745f1e7ed", "score": "0.70119476", "text": "private int numOccurrencesofGuessedLetter(char guess) {\r\n int numOccurrences = 0;\r\n for(int i = 0; i < currentPattern.length(); i++) {\r\n if(currentPattern.charAt(i) == guess) {\r\n numOccurrences++;\r\n }\r\n }\r\n return numOccurrences;\r\n }", "title": "" }, { "docid": "bdf59147d14dee9c4aba9b7e50045960", "score": "0.6960565", "text": "public void eachCharCountInString(String inputString) {\n\r\n\t\tHashMap<Character, Integer> charCountMap = new HashMap<Character, Integer>();\r\n\r\n\t\t// Converting given string to char array\r\n\r\n\t\tchar[] strArray = inputString.toCharArray();\r\n\r\n\t\t// checking each char of strArray\r\n\r\n\t\tfor (char c : strArray) {\r\n\t\t\tif (charCountMap.containsKey(c)) {\r\n\t\t\t\t// If char 'c' is present in charCountMap, incrementing it's count by 1\r\n\r\n\t\t\t\tcharCountMap.put(c, charCountMap.get(c) + 1);\r\n\t\t\t} else {\r\n\t\t\t\t// If char 'c' is not present in charCountMap,\r\n\t\t\t\t// putting 'c' into charCountMap with 1 as it's value\r\n\r\n\t\t\t\tcharCountMap.put(c, 1);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Printing inputString and charCountMap\r\n\r\n\t\tSystem.out.println(inputString + \" : \" + charCountMap);\r\n\t}", "title": "" }, { "docid": "9ab0d3dd2eabefa4c352f2d3890304d2", "score": "0.6957897", "text": "public int occuranceOfCharacter(char c, String targetString) {\n\t\tchar[] targetCharArr = targetString.toCharArray();\n\t\tMap<Character, Integer> hashMap = new HashMap<>();\n\n\t\tfor (char ch : targetCharArr) {\n\t\t\tif (hashMap.containsKey(ch)) {\n\t\t\t\thashMap.put(ch, hashMap.get(ch) + 1);\n\t\t\t} else {\n\t\t\t\thashMap.put(ch, 1);\n\t\t\t}\n\t\t}\n\n\t\t/*\n\t\t * Set<Entry<Character, Integer>> entrySet = hashMap.entrySet();\n\t\t * for(Entry<Character,Integer> entry:entrySet){ entry.get }\n\t\t */\n\t\tInteger occurance = 0;\n\t\tif (hashMap.containsKey(c)) {\n\t\t\toccurance = hashMap.get(c);\n\t\t}\n\t\treturn occurance;\n\t}", "title": "" }, { "docid": "e72a9b94251766311b8827b4f3078932", "score": "0.6940893", "text": "public static int countLetters(String s){\n int count = 0;\r\n for(int i=0;i<s.length();i++){ \r\n if((s.charAt(i) >='a' && s.charAt(i)<='z') || (s.charAt(i)>='A' && s.charAt(i)<='Z')) \r\n count++; \r\n\r\n else;\r\n }\r\n //Returns count value.\r\n return count;\r\n \r\n }", "title": "" }, { "docid": "cc2a217884a69c3a1475bc5fcdf2cef7", "score": "0.69316375", "text": "private int getNumberOfOccurences(CString s) {\r\n\t\tCString original = this.replicate();\r\n\t\tint numberOfOccurrences = 0;\r\n\r\n\t\twhile (original.length >= s.length) {\r\n\t\t\tif (original.startsWith(s)) {\r\n\t\t\t\toriginal = original.right(original.length - s.length);\r\n\t\t\t\tnumberOfOccurrences++;\r\n\t\t\t} else {\r\n\t\t\t\toriginal = original.right(original.length - 1);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn numberOfOccurrences;\r\n\t}", "title": "" }, { "docid": "94682bd44e8fde2124694118409696d4", "score": "0.6895394", "text": "public static void countNoOfAccurChar() {\r\n\t\tString st=\"[email protected]\";\r\n\t\tchar[] chars=st.toCharArray();\r\n\t\tint[] rs=new int[128];\r\n\t\tfor (int i = 0; i < chars.length; i++) {\r\n\t\t\trs[chars[i]]++;\r\n\t\t}\r\n\t\t\r\n\t\tfor (int i = 0; i < rs.length; i++) {\r\n\t\t\t// No Of occurrence \r\n\t\t\tif(rs[i] > 0) {\r\n\t\t\t\tSystem.out.println(\"Occurance of '\"+(char)i + \"' ----> \"+rs[i] );\r\n\t\t\t}\r\n\t\t\t/*// Duplicate\r\n\t\t\tif(rs[i] > 1) {\r\n\t\t\t\tSystem.out.println(\"Duplicate of '\"+(char)i + \"' ----> \"+rs[i] );\r\n\t\t\t}\r\n\t\t\t// Unique\r\n\t\t\tif(rs[i] == 1) {\r\n\t\t\t\tSystem.out.println(\"Unique of '\"+(char)i + \"' ----> \"+rs[i] );\r\n\t\t\t}*/\r\n\t\t\t/*// Missing\r\n\t\t\tif(rs[i] == 0) {\r\n\t\t\t\tSystem.out.println(\"Missing of '\"+(char)i + \"' ----> \"+rs[i] );\r\n\t\t\t}*/\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "1058889828c7f54035b4d1156297c772", "score": "0.6875851", "text": "public int getCharacterCount();", "title": "" }, { "docid": "6df8910f6b52f15c273137d4ef390fb3", "score": "0.68718994", "text": "void countChar(String str)\r\n\t{\r\n\t\tint uc=0,lc=0,sc=0,dc=0;\r\n\t\tfor(int i=0;i<str.length();i++)\r\n\t\t{\r\n\t\t\tchar ch=str.charAt(i);\r\n\t\t\tif(ch>='A' && ch<='Z')\r\n\t\t\t{\r\n\t\t\t\tuc++;\r\n\t\t\t}\r\n\t\t\telse if(ch>='a' && ch<='z')\r\n\t\t\t{\r\n\t\t\t\tlc++;\r\n\t\t\t}\r\n\t\t\telse if(ch>='0' && ch<='9')\r\n\t\t\t{\r\n\t\t\t\tdc++;\r\n\t\t\t}\r\n\t\t\telse \r\n\t\t\t\tsc++;\r\n\r\n\t\t}\r\n\t\tSystem.out.println(\"Upper COunt:\"+uc);\r\n\t\tSystem.out.println(\"Lower COunt:\"+lc);\r\n\t\tSystem.out.println(\"Digit COunt:\"+dc);\r\n\t\tSystem.out.println(\"special COunt:\"+sc);\r\n\t}", "title": "" }, { "docid": "481f85cbe467edbdaa4d60db8bffb0b7", "score": "0.6832356", "text": "public int countTheLetterFrequency(String str, char letter) {\n\t\t\n\t\t//Your Code Goes Here\n\t\treturn 0 ; \n\t\t\n\t}", "title": "" }, { "docid": "14946cbdbbee22e4fd99b44a90b8d527", "score": "0.68250775", "text": "public int countX(String str) {\n\t\t\n\t\tint count = 0;\n\t\t\n\t\tif (str.isEmpty()) {\n\t\t\treturn count;\n\t\t}\n\t\t\n\t\tif (str.toLowerCase().charAt(0) == 'x') {\n\t\t\tcount++;\n\t\t}\n\t\t\n\t\treturn count + countX(str.substring(1));\n\t\t\n\t}", "title": "" }, { "docid": "1a1560f66601923daf5e72e014dda758", "score": "0.68151116", "text": "int getNumberOfChars();", "title": "" }, { "docid": "23a2b16d0a0e2966828a5e84a8802d17", "score": "0.68043786", "text": "public long numberOfSymbolOccurrences(Component lexeme, char symbol) {\n logger.info(\"Calculation of symbol={} occurrences in lexeme\", symbol);\n String string = lexeme.recoverText();\n return string.chars().filter(character -> character == symbol).count();\n }", "title": "" }, { "docid": "9b0df18abd0ea1194defd3271d853c6e", "score": "0.67930824", "text": "public int firstUniqChar2(String s) {\n HashMap<Character, Integer> count = new HashMap<Character, Integer>();\n int n = s.length();\n // build hash map : character and how often it appears\n for (int i = 0; i < n; i++) {\n char c = s.charAt(i);\n count.put(c, count.getOrDefault(c, 0) + 1);\n }\n \n // find the index\n for (int i = 0; i < n; i++) {\n if (count.get(s.charAt(i)) == 1) \n return i;\n }\n return -1;\n }", "title": "" }, { "docid": "23460b823397f815218436d6dbc60c8e", "score": "0.6787251", "text": "public static void main(String[] args) {\n\t String str=\"aasdjiasdj123128985123asd1!#@!%$(!@$!@&\";\n\n\t int c=0;\n\t for(int i=0; i<str.length(); i++) {\n\t \t if(Character.isLetter(str.charAt(i)))\n\t \t\t c++;\n\t }\n\t System.out.println(c);\n\t}", "title": "" }, { "docid": "97f9dc065ec6d0111bd3898a3765f13e", "score": "0.672903", "text": "@Test\n\tpublic void method1() {\n\n\t\tString input = \"hi srinu how are you srinu\";\n\n\t\tPattern pattern = Pattern.compile(\"u\");\n\t\tMatcher matcher = pattern.matcher(input);\n\t\tint occurrence = 0;\n\t\twhile (matcher.find()) {\n\t\t\toccurrence++;\n\t\t}\n\t\tSystem.out.println(occurrence);\n\t}", "title": "" }, { "docid": "06556bd073f32672bebdc0367289b1dc", "score": "0.6720084", "text": "@Test\r\n\tpublic void getCharacterCountTest() {\r\n\t\tString input = \"Test this\"; \r\n\t\tassertEquals(\"9\", wcTool.getCharacterCount(input));\r\n\t}", "title": "" }, { "docid": "1d7a899081daa51bda5e919bf6773a29", "score": "0.67133135", "text": "void findOneCharFreq(String name, String ch) {\n\t\tint charcount = 0;\n\t\tfor (int i = 0; i < name.length(); i++) {\n\t\t\tString str = String.valueOf(name.charAt(i));\n\t\t\tif (str.equalsIgnoreCase(ch)) {\n\t\t\t\tcharcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"name: \"+name+\" character: \"+ch+\" count: \"+charcount);\n\t}", "title": "" }, { "docid": "eda1bc423d19670b262ad5ac80cb8669", "score": "0.67105186", "text": "public int calcChars(char ch) {\n\t\t\t\n\t\t\tint max = mainString.length();\n\t\t\t\n\t\t\tint chCounter = 0;\n\t\t\t\n\t\t\tstr = \"\\t\";\n\t\t\t\n\t\t\tfor(int i = 0; i < max; i++) {\n\t\t\t\t\n\t\t\t\t// interested only in Given Character\n\t\t\t\t\n\t\t\t\tif(Character.toLowerCase(mainString.charAt(i)) \n\t\t\t\t\t\t!= Character.toLowerCase(ch)){\n\t\t\t\t\t\n\t\t\t\t\tstr += mainString.charAt(i);\n\t\t\t\t\t\n\t\t\t\t\tcontinue;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Count Character\n\t\t\t\t\n\t\t\t\tchCounter++;\n\t\t\t\t\n\t\t\t\tstr += \"'\" + mainString.charAt(i) + \"'[\" + chCounter + \"]\";\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\treturn chCounter;\n\t\t}", "title": "" }, { "docid": "272eae24c491c26912a340504ba84ad4", "score": "0.67017674", "text": "private int uniqueChars(String word){\n \tboolean isUnique = false;\n \tint uniqueCharsCounter=0;\n \tArrayList<Character> list = new ArrayList<Character>();\n \tlist.add('0');\n \t\n \tfor (int i=0; i<word.length(); i++){\n \t\tfor (int k=0; k<list.size(); k++){\n \t\t\tif(word.charAt(i)==list.get(k)){\n \t\t\t\tisUnique = false;\n \t\t\t\tbreak;\n \t\t\t}else isUnique = true;\n \t\t}\n \t\tif(isUnique){\n \t\t\tlist.add(word.charAt(i));\n \t\t\tuniqueCharsCounter++;\n \t\t}\n \t}\n \t\n \treturn uniqueCharsCounter;\n }", "title": "" }, { "docid": "c3d21d57a87a558202a866f386da6bd9", "score": "0.66955316", "text": "public static void main(String[] args) {\n \n\t\t\n String test = \"Srimayee\";\n HashMap<Character, Integer> charCountMap = new HashMap<Character, Integer>();\n char[] test1 = test.toCharArray(); \n \t \n for (char c : test1) { \n if (charCountMap.containsKey(c)) { \n\n // If char is present in charCountMap, \n // incrementing it's count by 1 \n charCountMap.put(c, charCountMap.get(c) + 1); \n } \n else { \n\n // If char is not present in charCountMap, \n // putting this char to charCountMap with 1 as it's value \n charCountMap.put(c, 1); \n } \n }\n // Printing the charCountMap \n for (Map.Entry entry : charCountMap.entrySet()) { \n System.out.println(entry.getKey() + \" \" + entry.getValue()); \n }\n}", "title": "" }, { "docid": "509d45a59afa1e56dbae5a639bd48b5e", "score": "0.6676866", "text": "public static String FrequencyOfChars(String str) {\n String nonDup = \"\";\n\n // if nonDup doesn't contain str.charAt(0), add that char to nonDup\n // go through each str.charAt() through for loop and add the char if nonDup doesn't contain it.\n for (int i = 0; i < str.length(); i++) {\n if (!nonDup.contains(\"\" + str.charAt(i))) {\n nonDup += str.charAt(i);\n }\n }\n\n // count how many of the same character of nonDup is in str by\n // looping through each str char and comparing with nonDup chars one at a time\n // create a String and add each char of nonDup and count of each character\n // in str each time going through one loop for one nonDup char.\n String expectedResult = \"\";\n for (int j = 0; j < nonDup.length(); j++) {\n int count = 0;\n for (int k = 0; k < str.length(); k++) {\n if (str.charAt(k) == nonDup.charAt(j)) {\n count++;\n }\n }\n expectedResult += nonDup.charAt(j) + \"\" + count;\n }\n return expectedResult;\n\n }", "title": "" }, { "docid": "a32ea0af7e0313b10f4d3c8f52091f10", "score": "0.66078526", "text": "public static int countLetters(String s) {\n\t\t// created the variable to count\n\t\tint count = 0;\n\t\t\n\t\t/** Created the for loop in order to count the letters */\n\t\tfor(int i = 0; i < s.length(); i++) {\n\t\t\t//created a if statement in order to test if the character is or not is a letter\n\t\t\tif(Character.isLetter(s.charAt(i))) {\n\t\t\t\tcount+=1;\n\t\t\t}//closing the if statement\n\t\t}//closing the for loop\n\t\treturn count;\n\t}", "title": "" }, { "docid": "907b1b11ff0ab819ea598844d2a5bfec", "score": "0.6600155", "text": "int countSS(String str, String subStr)\r\n\t{\r\n\t\tchar ms[]=str.toCharArray();\r\n\t\tchar ss[]=subStr.toCharArray();\r\n\t\tint count=0;\r\n\t\tfor (int i = 0; i < ms.length; i++) {\r\n\t\t\tint k=i,j=0;\r\n\r\n\t\t\twhile(k<ms.length && j<ss.length && ms[k]==ss[j])\r\n\t\t\t{\r\n\t\t\t\tk++;\r\n\t\t\t\tj++;\r\n\t\t\t}\r\n\t\t\tif(j==ss.length)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn count;\r\n\t}", "title": "" }, { "docid": "c6e812cf3919cb008e3708184756f9a2", "score": "0.65963465", "text": "public static String countEachLetter(String str){\n ArrayList<String> list =new ArrayList<>(Arrays.asList(str.split(\"\")));\n String result=\"\";\n for(String each : list) {\n if (!result.contains(each)) {\n int count = Collections.frequency(list, each);\n result += each + count;\n }\n }\nreturn result;\n }", "title": "" }, { "docid": "b72d7ba5b67965f826dae479665d447e", "score": "0.658929", "text": "public static int count(String str)\n {\n int i;\n int ucCount = 0;\n String currChar;\n for (i = 0; i < str.length(); ++i) {\n currChar = str.substring(i, i+1);\n if (isUppercase(currChar)) {\n ++ucCount;\n }\n }\n\n if (ucCount != 0) {\n return ucCount;\n }\n return -1;\n }", "title": "" }, { "docid": "e8bb3ae87d3273246d2fbd3b18d48b01", "score": "0.6583006", "text": "private int m100639c(String str) {\n int i = 1;\n for (String equals : this.f80966e.keySet()) {\n if (str.equals(equals)) {\n return i;\n }\n i++;\n }\n return -1;\n }", "title": "" }, { "docid": "d488c4a8743db6cea790cb5ba5da9cfb", "score": "0.65774536", "text": "private static int charLength(char x) {\n String normalized = StringSimplifier.simplifiedString(x + \"\");\n\n if (\"i.:,;|!\".contains(normalized)) {\n return 2;\n } else if (\"l'\".contains(normalized)) {\n return 3;\n } else if (\"tI[]\".contains(normalized)) {\n return 4;\n } else if (\"fk{}<>\\\"*()\".contains(normalized)) {\n return 5;\n } else if (\"abcdeghjmnopqrsuvwxyzABCDEFGHJKLMNOPQRSTUVWXYZ1234567890\\\\/#?$%-=_+&^\".contains(normalized)) {\n return 6;\n } else if (\"@~\".contains(normalized)) {\n return 7;\n } else if (normalized.equals(\" \")) {\n return 4;\n } else {\n return 7;\n }\n }", "title": "" }, { "docid": "8f6464fdfc08b93b449c3fbdd780a4f9", "score": "0.654229", "text": "private static int numChars(char[][] b, char ch) {\r\n int total = 0;\r\n for (int r = 0; r < ROWS; r++)\r\n for (int c = 0; c < COLS; c++)\r\n if (ch == b[r][c]) \r\n total++;\r\n return total;\r\n }", "title": "" }, { "docid": "ed36714a6dc882cce5eb2cbfa5c7b090", "score": "0.65301806", "text": "private static int numChars(char[][] b, char ch) {\n int total = 0;\n for (int r = 0; r < ROWS; r++)\n for (int c = 0; c < COLS; c++)\n if (ch == b[r][c]) \n total++;\n return total;\n }", "title": "" }, { "docid": "5b37060cf86fe251fd7d881045185ad2", "score": "0.6528861", "text": "public static int firstUniqChar(String s) {\n Map<Character,Integer> map = new HashMap<>();\n char[] carray=s.toCharArray();\n for(char c:carray){\n if(map.containsKey(c)) {\n int freq=map.get(c);\n map.put(c, freq+1);\n }\n else {\n map.put(c, 1);\n }\n }\n for (int i=0;i<carray.length;i++){\n if(map.containsKey(carray[i])){\n int freq=map.get(carray[i]);\n if(freq==1){\n return i;\n }\n }\n }\n return -1;\n }", "title": "" }, { "docid": "fd4a07f1644c85f59071150d1f6958e3", "score": "0.6527696", "text": "public static int countEs(String s) {\n\t\tint x=0;\n\t\tfor (int i=0; i<s.length(); i++) {\n\t\t\tif (s.charAt(i) == 'e') {\n\t\t\t\t\tx++;\n\t\t\t}\n\t\t}\n\treturn x;\n\t}", "title": "" }, { "docid": "5a8b97a5b61f498e3a226fd75efcd6a3", "score": "0.64985776", "text": "public int whatNumOfAlphabet(char c){\n int index = (int) c - (int) 'a';\n return index;\n }", "title": "" }, { "docid": "4eb1d76c19de9c01077e008d69e1e697", "score": "0.6488836", "text": "static HashMap<Character, Integer> counts(String chars) {\n char[] cs = chars.toCharArray();\n HashMap<Character, Integer> counter = new HashMap<>(chars.length());\n for (char c : cs) {\n if (counter.containsKey(c)) {\n counter.put(c, counter.get(c) + 1);\n }\n else {\n counter.put(c, 1);\n }\n }\n return counter;\n }", "title": "" }, { "docid": "d013889765bea2393f1ebac5e0c2e6cf", "score": "0.64525443", "text": "public static String countLetters(String str) {\n String removeDup = \"\";\n for (int i = 0; i < str.length(); i++) {\n if (!removeDup.contains(\"\" + str.charAt(i))) {\n removeDup += str.charAt(i);\n }\n }\n //step2 use each letter to find the frequency\n String result = \"\";\n for (int j = 0; j < removeDup.length(); j++) {\n char ch = removeDup.charAt(j);\n int frequency = 0;\n for (int i = 0; i < str.length(); i++) {\n if (ch == str.charAt(i))\n frequency++;\n }\n result += frequency +\"\"+ ch; //step3 format output\n }\n return result;\n }", "title": "" }, { "docid": "745f69b465f6b5d184577670f4a6fbe9", "score": "0.6445546", "text": "public static String FrequencyOfChars3(String str) {\n String b = new LinkedHashSet<>(Arrays.asList(str.split(\"\"))).toString();\n b = b.replace(\", \", \"\").replace(\"[\", \"\").\n replace(\"]\", \"\");\n String result = \"\";\n\n // in a nested loop, check if each substring equals to charAt(0) and continue through for loop\n // increase the count in nested for loop and add the unique string's substring and count to result\n // continue through each letter of the unique string to count and add the letter and count to result.\n for (int j = 0; j < b.length(); j++) {\n int count = 0;\n for (int i = 0; i < str.length(); i++)\n if (str.substring(i, i + 1).equals(\"\" + str.charAt(j)))\n count++;\n result += b.substring(j, j + 1) + count;\n }\n return result;\n }", "title": "" }, { "docid": "2e98026abc3344011864c9da8831fd84", "score": "0.6443018", "text": "static long repeatedString(String s, long n) {\n String newS = s.toLowerCase();\n long baseCount = 0;\n for(int i = 0 ; i < s.length(); i++){\n if(newS.charAt(i)=='a'){\n baseCount++;\n }\n }\n \n //number of occurences of the repeated string or character\n long numOccurences = (n/(newS.length()))*baseCount;\n long remainders = n%(newS.length());\n for(int i = 0; i < remainders; i++){\n if(newS.charAt(newS.length()-1-i)=='a'){\n numOccurences++;\n }\n }\n return numOccurences;\n\n }", "title": "" }, { "docid": "3f2a6767b25c13450da0cbdddf6d5f28", "score": "0.642976", "text": "public int countWildCards(char [] counting){\n\t\tint tmp=0;\n\t\tfor(char c : counting){\n\t\t\tif(c=='_'){\n\t\t\t\ttmp++;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn tmp;\n\t}", "title": "" }, { "docid": "6d4daf8d37298fe32c094588c43cce51", "score": "0.6422511", "text": "static int theLoveLetterMystery(String s) {\r\n int count = 0;\r\n int i = 0;\r\n int j = s.length() - 1;\r\n while (i < j) {\r\n int start = s.charAt(i);\r\n int end = s.charAt(j);\r\n\r\n int diff = Math.abs(start - end);\r\n\r\n count = count + diff;\r\n i++;\r\n j--;\r\n\r\n }\r\n\r\n return count;\r\n\r\n }", "title": "" }, { "docid": "2790f126888f57e3289b1243993c12e5", "score": "0.640347", "text": "public static int getCaps(String str){\n int count = 0;\n for(int i = 0; i < str.length(); i++){\n if(str.charAt(i) == str.toUpperCase().charAt(i)){\n count++;\n }\n }\n return count;\n }", "title": "" }, { "docid": "6e6e1599c9785b5f793d8bbc6e2fbef3", "score": "0.6383186", "text": "int main()\n{\n char a[25];\n int count=1;\n scanf(\"%s\",a);\n int l=strlen(a);\n if(l>20)\n printf(\"Invalid Input\");\n else{\n for(int i=0;i<l;i++)\n {\n if(a[i]==a[i+1])\n count++;\n else{\n printf(\"%c%d\",a[i],count);\n count=1;}}\n}}", "title": "" }, { "docid": "9a323a49e23d7da3c2176d4f8a2e0b6e", "score": "0.63821423", "text": "private static char getFirstNonRepeatingChar(String string) {\n\t\tMap<Character, Integer> counts = new LinkedHashMap<>(string.length());\n\n\t\tfor (char c : string.toCharArray()) {\n\t\t\tcounts.put(c, counts.containsKey(c) ? counts.get(c) + 1 : 1);\n\t\t}\n\n\t\tfor (Entry<Character, Integer> entry : counts.entrySet()) {\n\t\t\tif (entry.getValue() == 1) {\n\t\t\t\treturn entry.getKey();\n\t\t\t}\n\t\t}\n\n\t\tthrow new RuntimeException(\"didn't find any non repeated character in a given string\");\n\t}", "title": "" }, { "docid": "859c27955ac1839c7d45c02b1a0b5c75", "score": "0.63799983", "text": "public static int firstUniqChar(String s) {\r\n //Write your code here\r\n \t HashMap<Character,Integer> map = new HashMap<>();\r\n \t \r\n \t for(int i=0;i<s.length();i++) {\r\n \t\t char c=s.charAt(i);\r\n \t\t if(!map.containsKey(c)) {\r\n \t\t\t map.put(c, 1);\r\n \t\t }\r\n \t\t else {\r\n \t\t\t map.put(c, map.get(c)+1);\r\n \t\t }\r\n \t }\r\n \t for(int i=0;i<s.length();i++) {\r\n \t\t if(map.get(s.charAt(i))==1) {\r\n \t\t\treturn i; \t\t\t \r\n \t\t }\r\n \t }\r\n return -1;\r\n }", "title": "" }, { "docid": "f0e336fedd8ff0e33bdff69bf4ac565d", "score": "0.63711554", "text": "private int countTotalCharacters(String input) {\r\n int charCount = 0;\r\n String[] words = input.split(\"\\\\s\");\r\n for(String s: words) {\r\n charCount += s.length();\r\n }\r\n return charCount;\r\n }", "title": "" }, { "docid": "8f2caf8d5b4828c9f2cc2df110947d9d", "score": "0.63644105", "text": "public static void main(String[] args) {\n\t\n\t\n\t\n\tString str =\"AAABBCDDDDEE\";\n\tint count =0, countB=0, countA=0, countC=0, countD=0, countE=0;\n\t\n\tfor(int i=0; i<str.length();i++) {\n\t\tif(str.substring(i, i+1).equals(\"A\")) {\n\t\t\tcountA++;\n\t\t}\n\t\tif(str.substring(i, i+1).equals(\"B\")){\n\t\t\tcountB++;\n\t\t}\n\t\tif(str.substring(i, i+1).equals(\"C\")){\n\t\t\tcountC++;\n\t\t}\n\t\tif(str.substring(i, i+1).equals(\"D\")){\n\t\t\tcountD++;\n\t\t}\n\t\tif(str.substring(i, i+1).equals(\"E\")){\n\t\t\tcountE++;\n\t\t}\n\t\t\n\t}\n\tSystem.out.println(\"A\"+countA+\"B\"+countB+\"C\"+countC+\"D\"+countD+\"E\"+countE);\n\t\n\t\n\t\n\tint i = 0;\n\tint j = 0;\n\tString result=\"\";\n\t\n\tfor(i=0;i<str.length();i++) {\n\t\t\n\t\tchar ch = str.charAt(i);\n\t\tfor(j=0;j<str.length();j++) {\n\t\t\t//count=0;\n\t\t\tif(ch==str.charAt(j)) {\n\t\t\t\tcount++;\t\n\t\t\t}\n\t\t}\n\t\tif(!(result.contains(\"\"+ch))) {\n\t\tresult+=(\"\"+ch)+count;\n\t\t}\n\tcount=0;\n\t\n\t\t\n\t}\nSystem.out.println();\n\tSystem.out.println(result);\n\t\n\t\n\t\n\t\n\t\n\t\n}", "title": "" }, { "docid": "6b735c31e279a19900961e861c1545c1", "score": "0.6357052", "text": "private int countString(String toCount) {\n int count = 1; //To count the last number in the string.\n for (int i = 0; i < toCount.length(); i++) {\n if (toCount.charAt(i) == ',') {\n count++;\n }\n }\n return count;\n }", "title": "" }, { "docid": "566d1bd1f23f36ac13a3e2b81e99ac8d", "score": "0.6353452", "text": "public static String FrequencyOfChars2(String str) {\n String expectedResult = \"\";\n\n /*\n count and add each unique char to the result String in loop\n in while loop nest a for loop to count the number of same chars\n outside the for loop and inside the while loop, add unique char and count to result String\n replace the char counted and added with blank (\"\") within while loop outside for loop\n */\n int j = 0;\n while (j < str.length()) {\n int count = 0;\n for (int i = 0; i < str.length(); i++) {\n if (str.charAt(i) == str.charAt(j)) {\n count++;\n }\n }\n expectedResult += str.charAt(j) + \"\" + count;\n str = str.replace(\"\" + str.charAt(j), \"\");\n }\n return expectedResult;\n }", "title": "" }, { "docid": "cd1f567338961983f1a065b39a8f94af", "score": "0.63254434", "text": "public static int firstUniqChar(String s) {\n\t\tHashMap<Character, Integer> map = new HashMap<>();\n for(int i = 0; i < s.length(); i++) {\n \tmap.put(s.charAt(i), map.getOrDefault(s.charAt(i), 0) + 1);\n }\n for(int i = 0; i < s.length(); i++) {\n \tif(map.get(s.charAt(i)) == 1)\n return i;\n }\n return -1;\n }", "title": "" }, { "docid": "96f3f9f3287f64c2dc27873658860f41", "score": "0.63239855", "text": "@Test\n public void charCountLowerCase() {\n CounterCharacter cc = new CounterCharacter();\n assertEquals(APPEARS, cc.charCount(\"fizzbuzz\", 'z'));\n }", "title": "" }, { "docid": "2cc7d70e2206cba1214402d650632f1e", "score": "0.6317695", "text": "int main()\n{\n char str[100];\n gets(str);\n int count=1;\n if(strlen(str)>20)\n {\n printf(\"Invalid Input\");\n return 0;\n} \n for(int i=1;i<=strlen(str);i++)\n {\n if(str[i]==str[i-1])\n count=count+1;\n \n else\n {\n printf(\"%c%d\",str[i-1],count);\n \tcount=1;\n} \n} \n }", "title": "" }, { "docid": "157ec5a3f6e2c63fb7a7c7f3a7ded4ab", "score": "0.6316171", "text": "public static int[] count(String s) {\n int[] numCounter = new int[10]; //make a int array \r\n for(int i = 0; i <s.length(); i++) { //increase i as long as it is less than length, this will make searching for specific chars easier\r\n for (int j = 0; j < 10; j++) {\r\n if (s.charAt(i) == (char)j + '0') { //Integer.parseInt(s.charAt(i))\r\n numCounter[j]++;\r\n } \r\n }\r\n }//i for loop\r\n return numCounter;\r\n }", "title": "" }, { "docid": "2218cfa5680473f79466306d18aeec6b", "score": "0.63130724", "text": "public int getNumVowels(){\n //create a variable to count\n int count = 0;\n //create a string variable to store\n String b = a;\n //use a for loop to iterate through\n for(int x = 0; x < b.length(); x++){\n //use a nested for loop to go through each character\n for(int y = 0; y < vowels.length(); y++){\n //if the character is a vowel, add 1 to the variable\n if(b.charAt(x) == vowels.charAt(y)){\n count++;\n }\n }\n }\n //return the length\n return count;\n }", "title": "" }, { "docid": "dff5a4c412163f656b1749065019ae70", "score": "0.63119096", "text": "public int getCharCount() {\r\n\treturn endChar - startChar + 1;\r\n }", "title": "" }, { "docid": "5c4ab28a2b7862b8a7d9c93651727860", "score": "0.6311536", "text": "public int firstUniqChar(String s) {\n Map<Character, Node> hs = new LinkedHashMap<Character, Node>();\n for (int i = 0; i < s.length(); i++) {\n char current = s.charAt(i);\n if (hs.containsKey(current)) {\n Node count = hs.get(current);\n count.index = i;\n count.count++;\n hs.put(current, count);\n } else {\n hs.put(current, new Node(1, i));\n }\n }\n if (!hs.isEmpty()) {\n for (Map.Entry<Character, Node> entry : hs.entrySet()) {\n if (entry.getValue().count == 1) {\n return entry.getValue().index;\n }\n }\n }\n return -1;\n\n }", "title": "" }, { "docid": "bb28990783bd961a5e2c2ae9c772d977", "score": "0.6304425", "text": "public static int calculateCharacters(String name){\n int letters;\n letters = name.length();\n return letters;\n }", "title": "" }, { "docid": "3a87ccaf99bce2e015b86d7e021fc834", "score": "0.6274936", "text": "public int countSameLetters(String inputString) {\n int tempCounter = 0;\n int maxCounter = 0;\n\n if (inputString.length() >= 1) {\n tempCounter = 1;\n maxCounter = 1;\n\n for (int i = 1; i < inputString.length(); i++) {\n if (inputString.charAt(i) == inputString.charAt(i-1)) {\n tempCounter++;\n }\n else {\n if (tempCounter > maxCounter) {\n maxCounter = tempCounter;\n }\n tempCounter = 1;\n }\n }\n\n if (tempCounter > maxCounter) {\n maxCounter = tempCounter;\n }\n }\n\n return maxCounter;\n }", "title": "" }, { "docid": "e6ac8bc151c91af1fae6b304ad686100", "score": "0.6269856", "text": "public int getCount(String word) {\n\t\treturn count;\n\t}", "title": "" }, { "docid": "5001ccdb66e47f2b25e68f463073c711", "score": "0.62663186", "text": "public static int countOccurrences(String text, char needle)\n {\n int count = 0;\n for (char c : text.toCharArray())\n {\n if (c == needle)\n {\n ++count;\n }\n }\n return count;\n }", "title": "" }, { "docid": "86b9fda71bc8a49e886298a8e9ce6000", "score": "0.62654924", "text": "public abstract int numberOfLatinAlphabetic();", "title": "" }, { "docid": "d7b6e900133631161d0c86ae452b1c63", "score": "0.625502", "text": "public static int firstUniqChar(String s) {\n int[] chars = new int[26];\n for(char c : s.toCharArray()) chars[c -'a']++;\n int result = 0;\n for(char c : s.toCharArray()){\n if(chars[c - 'a'] == 1 ){\n return result;\n }\n else result++;\n }\n return -1;\n }", "title": "" }, { "docid": "1e39e7d6ed1b14c612c5b0d9d2dab78b", "score": "0.6250562", "text": "public int countHi(String str) {\r\n\t\t//to get how many 'hi' words, we need a count variable\r\n\t\tint count =0;\r\n\t\t\r\n\t\t// must iterate through all index numbers in given String\r\n\t\tfor (int i = 0; i < str.length()-1; i++) \r\n\t\t{\r\n\t\t\t// create an empty string to copy two letters in it\r\n\t\t\t// two letters we will compare with \"hi\"\r\n\t\t\tString s =\"\";\r\n\t\t\t\r\n\t\t\t//copy two letters and iterate over all index numbers\r\n\t\t\t// at every iteration, s will be assigned to the next two letters\r\n\t\t\ts = s+ str.substring(i, i+2);\r\n\t\t\t\r\n\t\t\t// check if string s equals with \"hi\"\r\n\t\t\tif(s.equals(\"hi\"))\r\n\t\t\t{\r\n\t\t\t\t//everytime there is a match, add a count for each iteration\r\n\t\t\t\tcount++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn count;\r\n\t}", "title": "" }, { "docid": "0ac0f25334a4016dad6c0ed83ac87f57", "score": "0.6243151", "text": "static int twoCharaters(String s) {\n\t\tMap<Character, Integer> freq = new HashMap<>();\n\t\tfinal char characters[] = s.toCharArray();\n\t\tfor (char c : characters) {\n\t\t\tfreq.put(c, freq.containsKey(c) ? freq.get(c) + 1 : 1);\n\t\t}\n\t\tList<Map.Entry<Character, Integer>> topFreq = new ArrayList<>();\n\t\ttopFreq.addAll(freq.entrySet());\n\t\ttopFreq.sort((l, r) -> r.getValue() - l.getValue());\n\t\tint maxSize = 0;\n\t\tdo {\n\t\t\tMap.Entry<Character, Integer> firstChar = topFreq.remove(0);\n\t\t\tfor (Map.Entry<Character, Integer> scndChar : topFreq) {\n\t\t\t\tif (scndChar.getValue().equals(firstChar.getValue()) || (scndChar.getValue().equals(firstChar.getValue() - 1))) {\n\t\t\t\t\tchar curChar = 0;\n\t\t\t\t\tint size = 0;\n\t\t\t\t\tfor (char c : characters) {\n\t\t\t\t\t\tif (c == firstChar.getKey() || c == scndChar.getKey()) {\n\t\t\t\t\t\t\tif (curChar != c) {\n\t\t\t\t\t\t\t\tcurChar = c;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tsize = 0;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tsize += 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (size > maxSize) {\n\t\t\t\t\t\tmaxSize = size;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t} while (!topFreq.isEmpty());\n\t\treturn maxSize;\n\t}", "title": "" }, { "docid": "4cabf8bd0e0027b9647d31bfafafbd44", "score": "0.6239646", "text": "int compressLength(String str) {\n\t\tint size = 0;\n\t\tchar lastSeen = str.charAt(0);\n\t\tint count = 1; // one character seen, start from next char\n\n\t\tfor (int i = 1; i < str.length(); ++i) {\n\t\t\tif (lastSeen == str.charAt(i))\n\t\t\t\t++count; // increment if ith char is same as last seen\n\t\t\telse {\n\t\t\t\tsize += 1; // for the letter\n\t\t\t\t// convert count to string and get length- for multidigit count\n\t\t\t\tsize += String.valueOf(count).length();//\n\t\t\t\tlastSeen = str.charAt(i);// update last seen\n\t\t\t\tcount = 1; // reset count to 1.\n\t\t\t}\n\t\t}\n\t\tsize += 1 + String.valueOf(count).length();\n\t\treturn size;\n\t}", "title": "" }, { "docid": "4e2eed82f1bfcd7e82bd519f98518d43", "score": "0.61784226", "text": "public int countXX(String text) {\n\t\t\n\t\tint count = text.length();\n\t\treturn count;\n\t}", "title": "" }, { "docid": "fbf0b8d51ea76401b111cb27bd96cb32", "score": "0.6175389", "text": "public static void main(String[] args) {\n\t \r\n\tSystem.out.println(getStringcount(\"hellojavahellojavahellojavahellojavahellojava\",\"java\"));\r\n}", "title": "" }, { "docid": "954d510b2619dc73afa2b04d745f20ba", "score": "0.6162315", "text": "int findOccurrenceCount(int number, int digit);", "title": "" }, { "docid": "cf78102aff2c095b9d4d413e286950b6", "score": "0.6154625", "text": "public static int alternatingCharacters(String s) {\n if(s==null||s==\"\"||s.length()<2){\n return 0;\n }else{\n int count=0;\n int loopIterator=0;\n\n\n\n while(loopIterator+1<s.length()){\n\n String firstChar=s.substring(loopIterator,loopIterator+1);\n char[] charr= firstChar.toCharArray();\n char ch=charr[0];\n String secondChar=s.substring(loopIterator+1,loopIterator+2);\n System.out.println(firstChar+\" \"+secondChar);\n\n if(firstChar.equals(secondChar)){\n s=s.replaceFirst(firstChar,\"\");\n count+=1;\n }else{\n loopIterator+=1;\n }\n }\n return count;\n }\n\n }", "title": "" }, { "docid": "123d47f8ebd0038996e7d7775b6b6ce9", "score": "0.61538035", "text": "public int getScrabbleScore(String string) {\n\t\tint result = 0;\n\t\tfor (int i = 0; i < string.length(); i++) { //while there is another number\n\t\t\tresult += scrabbleValue(string.charAt(i)); //add each scrabble letter value to result\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "title": "" }, { "docid": "5453731580268271b97277e4ec05daa6", "score": "0.6152854", "text": "int occIndex(String str,String subStr, int oc)\r\n\t{\r\n\t\tchar ms[]=str.toCharArray();\r\n\t\tchar ss[]=subStr.toCharArray();\r\n\t\tint occurance=0;\r\n\t\tfor (int i = 0; i < ms.length; i++) {\r\n\t\t\tint k=i,j=0;\r\n\t\t\twhile(k<ms.length && j<ss.length && ms[k]==ss[j])\r\n\t\t\t{\r\n\t\t\t\tk++;\r\n\t\t\t\tj++;\r\n\t\t\t}\r\n\t\t\tif(j==ss.length)\r\n\t\t\t{\r\n\t\t\t\toccurance++;\r\n\t\t\t\tif(occurance==oc)\r\n\t\t\t\t{\r\n\t\t\t\t\treturn i;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn -1;\r\n\t}", "title": "" }, { "docid": "b4dce9c8f3af93ed47daab9752d20284", "score": "0.61439353", "text": "private int guessOccurences(char guess){\n int count = 0;\n for(int i = 0 ; i < finalPattern.length(); i++){\n if(finalPattern.charAt(i) == guess){\n count++;\n }\n }\n //decrements the chances left by 1 if the given guess has no occurence in the\n //pattern\n if(count < 1){\n chances--;\n }\n return count;\n }", "title": "" }, { "docid": "d52bced8ce372a19b50f5de2a858ebbe", "score": "0.6141402", "text": "public int numberOfSubstrings(String s) {\n int[] counts = new int[3];\n int i = 0;\n int n = s.length();\n int result = 0;\n for (int j = 0; j < n; j++) {\n counts[s.charAt(j) - 'a']++;\n while (counts[0] > 0 && counts[1] > 0 && counts[2] > 0) {\n counts[s.charAt(i++) - 'a']--;\n }\n result += i;\n }\n return result;\n }", "title": "" }, { "docid": "3702d1dc384bae737f29cc9b780009c4", "score": "0.61264515", "text": "public int fun(String str)\n {\n int N=1000000007; //for modulo\n int a=0, ab=0, abc=0; // strings ending with a, ab, and abc\n\n for(int i=0;i<str.length();i++){\n if(str.charAt(i)=='a'){\n a = ((2*(a%N))%N +1)%N; //count of strings ending with a \n }\n else if(str.charAt(i)=='b'){\n ab = ((2*(ab%N))%N + a)%N; //count of strings ending with ab\n }\n else{\n abc = ((2*(abc%N))%N + ab)%N; //count of strings ending with abc\n }\n }\n return abc%N; //returning count of final strings\n }", "title": "" }, { "docid": "1ab006d5c1d89c8e8889c04836a5d3b0", "score": "0.61253536", "text": "char getMaxOccuringChar(String str)\n {\n int count[] = new int[ASCII_SIZE];\n \n // Construct character count array from the input\n // string.\n int len = str.length();\n for (int i=0; i<len; i++)\n count[str.charAt(i)]++;\n \n int max = -1; // Initialize max count\n char result = ' '; // Initialize result\n \n // Traversing through the string and maintaining\n // the count of each character\n for (int i = 0; i < len; i++) {\n if (max < count[str.charAt(i)]) {\n max = count[str.charAt(i)];\n result = str.charAt(i);\n }\n }\n \n return result;\n }", "title": "" }, { "docid": "6fe3bd001db561a549798db57ce34e9f", "score": "0.6114006", "text": "public String count(final String sentence) {\n final Map<String, Integer> data = new HashMap<>(100);\n ts.isAllowHiragana = false;\n ts.isAllowChar = false;\n ts.isAllowNum = false;\n final List<String> list = ts.segment(sentence);\n for (String item : list) {\n item = item.replaceAll(\"\\\\s\", \"\");\n if (item.contains(LINE_SEPARATOR)) {\n continue;\n }\n int count = 1;\n if (data.containsKey(item)) {\n count = data.get(item) + count;\n }\n data.put(item, count);\n }\n return extract(data);\n }", "title": "" }, { "docid": "0e499b2a839b428732f88aa898173597", "score": "0.610783", "text": "private int findBracketCount(String s) {\n HashMap<Character, Character> map = new HashMap<>();\n map.put(')','(');\n map.put(']','[');\n map.put('}','{');\n map.put('>','<');\n Stack<Character> stack = new Stack<>();\n char[] chars = s.toCharArray();\n for (char ch : chars) {\n if (!map.containsKey(ch)) {\n stack.push(ch);\n } else if (!stack.isEmpty() && stack.peek() == map.get(ch)) {\n stack.pop();\n } else\n stack.push(ch);\n }\n return stack.size();\n }", "title": "" }, { "docid": "77799e9f5187ab7465b67fe48533874f", "score": "0.60997474", "text": "public static int countCharacters(String[] words, String chars) {\n\n\t\tint sum = 0;\n\n\t\tint[] counts = new int[26];\n\n\t\tfor (int i = 0; i < chars.length(); i++)\n\t\t\tcounts[chars.charAt(i) - 'a']++;\n\n\t\tint[] temp = counts.clone();\n\n\t\tfor (String s : words) {\n\n\t\t\tint i;\n\n\t\t\tfor (i = 0; i < s.length(); i++) {\n\t\t\t\tif (--counts[s.charAt(i) - 'a'] < 0)\n\t\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tif (i == s.length())\n\t\t\t\tsum += s.length();\n\n\t\t\tcounts = temp.clone();\n\n\t\t}\n\t\treturn sum;\n\t}", "title": "" }, { "docid": "9b6cc7aaba41ab751869b9f82c0353c1", "score": "0.6099125", "text": "public static int matchCount(String sentence){\n int count = 0; //initial count variable\n for(String word : sentence.split(\" +\")){ //Splits the sentence into individual words based on one or more spaces. \n if (matches(word)){ //For each word in the sentence, the word is passed into matches.\n count++; //If matches returns true, the count will be iterated. Matches returns true for every word that matches the pattern. \n }\n }\n return count; //Returns the number of words that match the pattern in the sentence. \n }", "title": "" }, { "docid": "1053036163c36f424c05077ed047fb34", "score": "0.6098588", "text": "public static int CountWordsInHelper()\n\t{\n\t\tint count = 0;\n\t\tif(str.length() != 0){\n count++;\n //Проверяем каждый символ, не пробел ли это\n for (int i = 0; i < str.length(); i++) \n {\n if(str.charAt(i) == ' ')\n {\n //Если пробел - увеличиваем количество слов на 1\n count++;\n }\n }\n } \n\t\tsetCount(count);\n\t\treturn getCount();\n\t}", "title": "" }, { "docid": "631847e2e850b42ae82322cc97933fa1", "score": "0.60975736", "text": "public static int vowelCount(String str) {\n int count = 0;\n str = str.toLowerCase();\n for (int i = 0; i < str.length(); i++) {\n if (str.charAt(i) == 'a' || str.charAt(i) == 'e' || str.charAt(i) == 'i' || str.charAt(i) == 'u' ||\n str.charAt(i) == 'o') {\n count++;\n }\n }\n return count;\n }", "title": "" }, { "docid": "3755a5b88cb3a58c406d1b4747f44046", "score": "0.60913604", "text": "public static String DistinctInnerCount(String testString)\n\t{\n\t\tif(testString == \"\")\n\t\t{\n\t\t\treturn \"Empty String\";\n\t\t}\n\t\t\n\t\tString finalResult = \"\";\n\t\tArrayList<Character> characterCount = new ArrayList<Character>();\n\t\tArrayList<String> workingArray = new ArrayList<String>();\n\t\t\n\t\t\n\t\t//walk through string as array\n\t\t\t//if first character is a letter\n\t\t\t//if first character is not a letter\n\t\tworkingArray.add(testString.substring(0, 1));\n\t\t\n\t\tfor(int x = 1; x < testString.length()-1; x++)\n\t\t{\n\t\t\t/*\n\t\t\t Evaluate character by case\n\t\t\t There are 5 cases:\n\t\t\t non-alpha character\n\t\t\t alpha character\n\t\t\t\t beginning letter\n\t\t\t\t \tfirst character\n\t\t\t\t \tis after a non-alpha character\n\t\t\t\t ending letter\n\t\t\t\t \tlast character\n\t\t\t\t \tis before a non-alpha character\n\t\t\t\t already counted letter\n\t\t\t\t \tcurrently is in the character count array\n\t\t\t\t counted letter\n\t\t\t\t \tcurrently is not in the character count array\n\t\t\t */\n\t\t\t//if alpha character\n\t\t\tif( Character.isLetter(testString.charAt(x)) )\n\t\t\t{\n\t\t\t\t//beginning letter\n\t\t\t \t\t//first character: is after a non-alpha character\n\t\t\t\tif( !Character.isLetter(testString.charAt(x-1)) )\n\t\t\t\t{\n\t\t\t\t\tworkingArray.add(testString.substring(x, x+1));\n\t\t\t\t}\n\t\t\t\t//ending letter\n\t\t\t \t\t//last character: is before a non-alpha character\n\t\t\t\telse if( !Character.isLetter(testString.charAt(x+1)) )\n\t\t\t\t{\n\t\t\t\t\tworkingArray.add(Integer.toString(characterCount.size()));\n\t\t\t\t\tcharacterCount.clear();\n\t\t\t\t\t\n\t\t\t\t\tworkingArray.add(testString.substring(x, x+1));\n\t\t\t\t}\n\t\t\t\t//currently is not in the character count array\n\t\t\t\telse if( !characterCount.contains(testString.charAt(x)) )\n\t\t\t\t{\n\t\t\t \t\tcharacterCount.add(testString.charAt(x));\n\t\t\t\t}\n\t\t\t\t//already counted letter\n\t\t\t\t//currently is in the character count array\n\t\t\t\t\t\t//do nothing\n\t\t\t}\n\t\t\t//if non-alpha character\n\t\t\telse\n\t\t\t{\n\t\t\t\tworkingArray.add(testString.substring(x, x+1));\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\t//if last character is a letter\n\t\t//if last character is not a letter\n\t\tif(characterCount.size() != 0)\n\t\t{\n\t\t\tworkingArray.add(Integer.toString(characterCount.size()));\n\t\t\tcharacterCount.clear();\n\t\t}\n\t\tworkingArray.add(testString.substring(testString.length()-1, testString.length()));\n\t\t\n\t\t\n\t\t\n\t\t//construct final result string\n\t\t\t//walk through working array and add to string\n\t\tfor(int x = 0; x < workingArray.size(); x++)\n\t\t{\n\t\t\tfinalResult = finalResult + workingArray.get(x);\n\t\t}\n\t\t\n\t\treturn finalResult;\n\t}", "title": "" }, { "docid": "ef42f6b2fd78d2a79bcc76f5c9c0f215", "score": "0.60904425", "text": "public static void main(String[] args) {\n Scanner sc=new Scanner(System.in);\r\n System.out.println(\"Enter the Char array:\");\r\n String s=sc.next();\r\n System.out.println(countChars(s.toCharArray()));\r\n\t}", "title": "" }, { "docid": "237093a3cfb1d3b8cc0235e5698f8a46", "score": "0.6083235", "text": "public Map<String,Integer> counter(String string)\n {\n int count=1;\n Map<String,Integer> map=new HashMap<>();\n if(string==\"\")\n {\n map.put(\"size\",0);\n }\n else if(string==null){\n return null;\n }\n else {\n String[] words = string.split(\" \");\n for (int i = 0; i < words.length; i++) { //Word count using for loop\n\n for (int j = i + 1; j < words.length; j++) {\n if (words[i].equals(words[j])) {\n count = count + 1;\n words[j] = \"\";\n }\n }\n if (words[i] != \"\") {\n map.put(words[i], count);\n }\n count = 1;\n }\n }\n return map;\n }", "title": "" }, { "docid": "bd741765a60b6b620196626e8cde458e", "score": "0.60807127", "text": "static void count(String str)\n {\n char[] ch = str.toCharArray();\n for (int i = 0; i < ch.length; i++) \n {\n \n // Declare an String with empty initialization\n String s = \"\";\n \n // When the character is not space\n while (i < ch.length && ch[i] != ' ')\n {\n \n // concat with the declared String\n s = s + ch[i];\n i++;\n }\n \n if (s.length() > 0) \n System.out.println(s + \"->\" + s.length()); \n }\n }", "title": "" }, { "docid": "1136145bc786d3e6141f64c5778f7643", "score": "0.60801774", "text": "public static int countConsequtiveTimesSubstringAppears(String subString, String huntingGround) {\r\n\t\tint count = 0;\r\n\t\tint maxCount = 0;\r\n\t\tif (subString.length() == 0 || huntingGround.length() == 0) {\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\treturn countHelper(subString, huntingGround, 0, 0, count, maxCount);\r\n\t}", "title": "" } ]
f77363ef76cc5efd6abb5507e78c9cd0
you can call this method in your teleop or autonsteps because append is false, it will write over any steps that are in queue instead of adding to them.
[ { "docid": "257616217bac4aa0f0cfd924873fb8fc", "score": "0.0", "text": "public void newDriverAssist(ArrayList<AutonStep> driverAssistSteps)\n {\n this.newDriverAssist(driverAssistSteps, false);\n }", "title": "" } ]
[ { "docid": "e2b2683aef70cd05791172f32b5779dc", "score": "0.6472098", "text": "@Override\n //code block to that will run at the VERY beginning of Teleop\n public ArrayList<AutonStep> createAutonSteps() {\n return null;\n }", "title": "" }, { "docid": "d3fb459868a555b04e6a4acfd6147155", "score": "0.60824436", "text": "@Override\n\tpublic void addGeneratedLokumtoQueue() {\n\t\t\n\t}", "title": "" }, { "docid": "36b6fec6b8522abd39bb2f38b2e58296", "score": "0.60701317", "text": "@Override\n public void execute() {\n this.memento = receiver.getMemento();\n receiver.addStep(this.step);\n\n LOGGER.info(\"Adding '{}' command executed. Receiver's state: {}\", step, receiver.getWorkflow());\n }", "title": "" }, { "docid": "04bb33213b26dadba372acc99ee527c7", "score": "0.58242935", "text": "public abstract ArrayList<AutonStep> createAutonSteps();", "title": "" }, { "docid": "961ba55ab01e0e0f50e6dfcd2841e881", "score": "0.57697266", "text": "public void addToLastOrders(){ mainController.getWorker().addToLastOrders(); }", "title": "" }, { "docid": "25afb2e0bbced00ebb54ae3765454bb4", "score": "0.5723824", "text": "@Override\r\n\tpublic void postStep() {\n\r\n\t}", "title": "" }, { "docid": "f61cd7bb5a92621a5fb7ea1e38b939b2", "score": "0.56741846", "text": "public void append (String move) {\n log.subList(this.step, log.size()).clear();\n log.add(move);\n this.step++;\n }", "title": "" }, { "docid": "38bd16465977bf035fe53081801d7409", "score": "0.55999744", "text": "public void appendStep(int x, int y) \n {\n steps.add(new Step(x,y));\n }", "title": "" }, { "docid": "46b34711217758e0d9430c4cf5f79eb6", "score": "0.55965227", "text": "@Override\n public void execute(TaskList taskList, Ui ui, Storage storage) throws IOException {\n taskList.add(this.task);\n ui.saveAddMessage(this.task, taskList.size());\n storage.add(this.task);\n }", "title": "" }, { "docid": "b3916563a72a72d26d91545a109fd863", "score": "0.5567954", "text": "public void loop() {\n\n //telemetry that shows what is in shared information\n for (String name : sharedInfo.keySet()) {\n telemetry.addLine().addData(name, sharedInfo.get(name));\n }\n\n //no more steps\n if (steps == null) {\n telemetry.addLine().addData(\"Step:\", \"No more Steps to run\");\n return;\n }\n\n //start the steps (from 0)\n if (currentStep == -1) {\n currentStep = 0;\n steps.get(currentStep).start(this);\n }\n\n\n steps.get(currentStep).loop(this);\n\n //telemetry that shows the current step and gets the telemetry in the step\n telemetry.addLine().addData(\"Step:\", steps.get(currentStep).name());\n steps.get(currentStep).updateTelemetry(this);\n\n //check if the steps are done\n if (steps.get(currentStep).isDone(this)) {\n //telemetry that will show what steps are done (this telemetry will persist unlike regular .addData)\n telemetry.log().add(\"Step %s is done.\", steps.get(currentStep).name());\n\n //go to the next step since the current one is done\n currentStep += 1;\n\n //making sure there are more steps to run; if there aren't we're resetting the current step to -1\n if (currentStep >= steps.size()) {\n steps = null;\n currentStep = -1;\n } else {\n //starting the next step\n steps.get(currentStep).start(this);\n }\n\n }\n }", "title": "" }, { "docid": "7f01fb18ee18b3d22f5bb2cdb8fc9911", "score": "0.55591196", "text": "public void newDriverAssist(ArrayList<AutonStep> driverAssistSteps, boolean append){\n if (append) {\n if(steps != null) steps.addAll(driverAssistSteps);\n else {\n steps = driverAssistSteps;\n currentStep = -1;\n }\n } else {\n steps = driverAssistSteps;\n currentStep = -1;\n }\n }", "title": "" }, { "docid": "ba1f4edd8563d0b0a9e7e8a61fbbf9c2", "score": "0.55512005", "text": "private void initialize() {\n \t\tfor (IPipelineStep step : finishedSteps) {\r\n \t\t\tsteps.add(step);\r\n \t\t}\r\n \t\tfinishedSteps.clear();\r\n \t}", "title": "" }, { "docid": "6bef51414c84b9660a48ccc5e6328dac", "score": "0.5513935", "text": "private void nextSteps() {\n String strName = name.getText();\n String strCalories = calories.getText();\n int calNum = Integer.parseInt(strCalories);\n String strTime = time.getText();\n int timeNum = Integer.parseInt(strTime);\n\n fitnessAppGUI.afterAddExercise(strName, calNum, timeNum);\n }", "title": "" }, { "docid": "74b25fd37d4aaa259d7c4a429ca6eeb7", "score": "0.54260606", "text": "@Override\n public void step() \n {\n }", "title": "" }, { "docid": "e984f1ac611ad169e910822e919289eb", "score": "0.5414318", "text": "@Override\n\tpublic void queue() \n\t{\n\t}", "title": "" }, { "docid": "0de95515c3f348dc680168f06b51e24a", "score": "0.5413025", "text": "protected synchronized void increaseTimeStep(){\n // increase time counter\n this.current_timestep++;\n if (this.chosenProcess == this.id) {\n System.out.println(\"current_timestep \" + this.current_timestep);\n }\n\n // if this is the last timestep, stop the experiment\n if (this.current_timestep == this.timesteps.get(this.timesteps.size()-1)){\n logger.info(\"End of experiment for Participant \" + this.id);\n\n // Send to observer current history\n observer.tell(new ObserverHistoryMessage(this.id, this.history, this.numberOfDeltasSent, this.ifGossipMessageGreaterThanMTU), getSelf());\n stop = true;\n // allow following code not to fail due to indexOutOfBounds\n current_timestep--;\n return;\n }\n // if there is a change in the update rate\n if (this.current_timestep_index < this.timesteps.size() && this.current_timestep == this.timesteps.get(this.current_timestep_index)){\n float prev = this.updateRate;\n if (flow_control){\n this.desiredUR = this.updaterates.get(this.current_timestep_index);\n if (this.desiredUR == 0){\n this.updateRate = 0;\n }\n // else updateRate is adjusted automatically through flow control\n\n }else{\n this.updateRate = this.updaterates.get(this.current_timestep_index);\n }\n // start to update in case we were not updating before\n if (prev == 0 && this.updateRate != 0){\n scheduleUpdateTimeout(Math.round(1000/updateRate), TimeUnit.MILLISECONDS);\n }\n changeMTU();\n\n logger.debug(\"Update rate changed to \" + this.updateRate + \" for p \" + this.id);\n this.current_timestep_index++;\n }\n\n // from the configuration file then the UR will just be the value obtained by flow control calculations\n if (this.chosenProcess == this.id && this.current_timestep < this.timesteps.get(this.timesteps.size() - 1)){\n// System.out.println(\"Participant: \" + this.id + \" updateRate: \" + this.updateRate);\n this.observer.tell(new ObserverUpdateRate(this.id, this.current_timestep, this.updateRate), getSelf());\n }\n }", "title": "" }, { "docid": "8d03ce724beb8aca33ee91cf4f62c892", "score": "0.5406603", "text": "void addStepExecution(StepExecution stepExecution) {\n\t\tstepExecutions.add(stepExecution);\n\t}", "title": "" }, { "docid": "1ea7d3954e98a6d41ccc3301df8493a2", "score": "0.53824186", "text": "public void doRemainingPush() {\n }", "title": "" }, { "docid": "4007aefde50b013be201778c934f228f", "score": "0.5341035", "text": "private void addAllJobs() throws IOException\r\n {\r\n validInputOption = new int[] {OPTION[0], OPTION [1], OPTION[2], OPTION[3] , OPTION[9], OPTION[10],OPTION[11]};\r\n showInstructions();\r\n showConsoleDisplayForAddingJobs();\r\n displayLastAction(lastAction);\r\n input = consoleReader.readLine();\r\n manageConsoleInput(input, validInputOption);\r\n }", "title": "" }, { "docid": "c7c9af26245f8a39522e3df79ac88f38", "score": "0.5322048", "text": "public void printAddedTask() {\n ui.printTaskAddedMessage(list);\n }", "title": "" }, { "docid": "454079510240b7e0969e44ad02295fd6", "score": "0.5318594", "text": "public GerbilSteps() {\n super (new String[] { \"Finish\" }, new String[] { \"Finish\" });\n }", "title": "" }, { "docid": "6d7922f4e6a1d9ce350b4b2a044e189c", "score": "0.5310674", "text": "public void add(PipelineStep in)\n\t{\n\t\tsteps.add(in);\n\t}", "title": "" }, { "docid": "df53efe5efea3cf72ffb05244e4d3958", "score": "0.5309516", "text": "void onStepInsertion(int stepIdx, NavigationStep newStep);", "title": "" }, { "docid": "d9d3f783830750dd8b41f6ce2072a899", "score": "0.5306732", "text": "public void setNewOrder() {\r\n\r\n for (int i = 0; i < this.stepsList.size(); i++) {\r\n\r\n String a2 = \"\" + this.stepsList.get(i);\r\n int a = Integer.parseInt(a2);\r\n Steps stp = stepsEJB.find(a);\r\n stp.setOrder(i + 1);\r\n\r\n stepsEJB.edit(stp);\r\n\r\n }\r\n FacesMessage message = new FacesMessage(FacesMessage.SEVERITY_INFO, \"INFO\", \"Pasos reordenados\");\r\n FacesContext.getCurrentInstance().addMessage(null, message);\r\n stepsList = stepsEJB.findByRecipeId(recipe.getId());\r\n\r\n }", "title": "" }, { "docid": "f142abce1357b8e94fdcbbf384fc7b6f", "score": "0.52817214", "text": "public static void updateHistory() {\n history.clearHistory();\n for (Task task : log) {\n if (!task.getCompleteStatus()) {\n appendToHistory(task);\n }\n }\n }", "title": "" }, { "docid": "c0538721736b97c24bea7efe1650f61a", "score": "0.5278362", "text": "public void printToFile(T item) {\n queue.add(item);\n }", "title": "" }, { "docid": "af7acca62e3b0776ed247845ed34d6af", "score": "0.5264879", "text": "public void pushback() {\n pushback.incrementAndGet();\n }", "title": "" }, { "docid": "ac1574ccba999259037612bdf29ac54f", "score": "0.52595526", "text": "private void updateStep()\r\n\t{\r\n\t\tmntmRedo.setEnabled(pm.hasNext());\r\n\t\tmntmUndo.setEnabled(pm.hasPrevious());\r\n\t}", "title": "" }, { "docid": "c05d53fa0a9ea92e51a9fc0ab8e1c12b", "score": "0.5255363", "text": "@Override\n public ImmutableList<Step> getBuildSteps(\n BuildContext context,\n BuildableContext buildableContext) {\n return ImmutableList.of();\n }", "title": "" }, { "docid": "c5ff2551c4dcf29ecdb72a222bdf9435", "score": "0.52530545", "text": "private void store () {\n data.put(this.licenseNumber, this.storedSteps);\n }", "title": "" }, { "docid": "a47c5d37b64c3d0698d7c5d2b5b6c602", "score": "0.52522695", "text": "public void makeStep() {\n\n\t\t\tif(wrpChValidation.getChannel() != null) {\n\t\t\t\twrpChValidation.setValueChanged(false);\n\t\t\t}\n\n\t\t\t//System.out.println(\"debug === makeStep() === curr. step=\" + current_step);\n\t\t\tQuadMeasure quadMeasure = quadMeasuresAllV.get(current_step);\n\t\t\tquadMeasure.setCurrentToEPICS();\n\t\t\tscanRunner.setMessage(\"Quad: \" + quadMeasure.getQuad_Element().getName());\n\t\t}", "title": "" }, { "docid": "07f4c4b8a2ffdb5b370b794803fa99e7", "score": "0.5231838", "text": "@Override\n\t\tpublic void saveNext() {\n\t\t\tif (bmoWFlowStep.getWFlowActionId().toInteger() > 0) {\n\t\t\t\tif (bmoWFlowStep.getProgress().toInteger() == 0 \n\t\t\t\t\t\t|| bmoWFlowStep.getProgress().toInteger() == 100) {\n\t\t\t\t\tif (wFlowStepAction != null)\n\t\t\t\t\t\twFlowStepAction.action();\n\t\t\t\t\telse\n\t\t\t\t\t\tclose();\n\t\t\t\t} else\n\t\t\t\t\tclose();\n\t\t\t} else\n\t\t\t\tclose();\n\t\t}", "title": "" }, { "docid": "ecfc030d908a14052b1fdeda1b388ad3", "score": "0.5229752", "text": "public void addtoqueue_contextual(){\n\n Thread t=new Thread(new Runnable() {\n @Override\n public void run() {\n ArrayList<songs> songlist=new ArrayList<>();\n for (int i = 0;i<(mSelectedItemsIds.size());i++) {\n if (mSelectedItemsIds.valueAt(i)) {\n int position=mSelectedItemsIds.keyAt(i);\n //add the song from adapter songlist at this position to the current list of songs\n songlist.add(songs_list.get(position));\n }\n }\n con.addSongToList(songlist);\n }\n });\n t.run();\n removeSelection();\n }", "title": "" }, { "docid": "dcf1f8fa24fff6f7f4b862e1c62b545a", "score": "0.5218856", "text": "@Override\n public int getCurrentSteps() {\n return squadrons.getCurrentSteps();\n }", "title": "" }, { "docid": "a2facecf22d85c84e52ea6d57a78e08b", "score": "0.5208772", "text": "public void stepFinished(){\n Timber.tag(TAG).d(\"stepFinished (%s)\", activityGuid);\n //go to the next step\n ActivityNavigator.getInstance().gotoActiveBatchStep(this);\n }", "title": "" }, { "docid": "322ef6f5b39985ed650e1b04f7cd68c2", "score": "0.5207587", "text": "private void toNext() {\n Square nextmove = _from.queenMove(_dir, _steps + 1);\n if (nextmove != null) {\n if (nextmove == _asEmpty || get(nextmove) == EMPTY) {\n _steps += 1;\n } else {\n if (_dir < 8) {\n _steps = 0;\n _dir += 1;\n toNext();\n }\n }\n } else {\n if (_dir < 8) {\n _steps = 0;\n _dir += 1;\n toNext();\n }\n }\n }", "title": "" }, { "docid": "0a03aa225fefe4df6bad2ff62cd32b84", "score": "0.5200011", "text": "public MoveBySteps(Telemetry telemetry){\n this.telemetry = telemetry;\n}", "title": "" }, { "docid": "3e5a4bf4480ae0cc23a1065d38d93564", "score": "0.5196525", "text": "public void moveSteps() {\n printStepper(\"\\n\\nEntering method moveSteps\\n\");\n \n long delay=FAST;\n \n if (stepSpeed.equals(\"fast\")) {\n delay = FAST;\n } else if (stepSpeed.equals(\"medium\")) {\n delay = MEDIUM;\n } else if (stepSpeed.equals(\"slow\")) {\n delay = SLOW;\n }\n\n // Set pin 7 to be output.\n // Pin 7 is connected to the step input of the stepper motor controller.\n if (pin7Out == null) {\n pin7Out = new OutPin(7, DEBUGGING, PRINTTRACE);\n }\n \n // This uses pin 0 to set the rotation direction.\n if (rotateClockwise) {\n pin0On();\n } else {\n pin0Off();\n }\n\n for (int i = 0; i < numberOfSteps; i++) {\n // Print out a message with the loop number after every 1000 steps.\n \n // The \"%\" is the modulus or \"remainder\" operator, so \n // this only prints when i is a multiple of 1000.\n if ((i%1000)==0) {\n printStepper(\"Step loop, iteration: \" + i);\n }\n\n\n // Turn off pin 7.\n pin7Out.setValue(false);\n\n // Delay for number of milliseconds in parentheses.\n // this leaves LED on for a time period.\n sleepNanos(delay);\n\n // turn on gpio pin 7\n // his provides the rising edge that the stepper controller \n // sees as a signal to step\n pin7Out.setValue(true);\n\n }\n\n // Print \"End of method moveSteps\" to the screen\n printStepper(\"End of method moveSteps\");\n }", "title": "" }, { "docid": "f17c5c7434c7389763d26392143d2faa", "score": "0.51955175", "text": "private void addData() {\n System.out.println(\"Start adding data....\\n\");\n thread.addThread();\n thread.addContainer();\n System.out.println(\"Successfully added data....\");\n }", "title": "" }, { "docid": "8b17cedefceec059369d1e606881c090", "score": "0.5186623", "text": "void onStep (int steps, long timestamp);", "title": "" }, { "docid": "da16d8dc5e014facd14e746fba646eda", "score": "0.51838934", "text": "private void addCurrentRecordingToQueueIfNeeded()\r\n\t{\n\t\tif (!recordingPanelRecordedActionsTextArea.getText().isEmpty())\r\n\t\t{\r\n\t\t\tif (!recordNameExistsInQueue(CURRENT_RECORDING_NAME))\r\n\t\t\t\tloadedPlaybackMap.put(new PlaybackOptions(CURRENT_RECORDING_NAME), null);\r\n\t\t}\r\n\t\t// If the text area is empty, remove the \"Current Recording\" item from the playback queue.\r\n\t\telse if(recordingPanelRecordedActionsTextArea.getText().isEmpty())\r\n\t\t{\r\n\t\t\tif (recordNameExistsInQueue(CURRENT_RECORDING_NAME))\r\n\t\t\t{\r\n\t\t\t\t// Find the CURRENT_RECORDING in the playback queue map and remove it.\r\n\t\t\t\tfor (Iterator<Map.Entry<PlaybackOptions, LoadedRecording>> mapIter = loadedPlaybackMap.entrySet().iterator(); mapIter.hasNext(); )\r\n\t\t\t\t{\r\n\t\t\t\t\tPlaybackOptions currOptions = mapIter.next().getKey();\r\n\t\t\t\t\t\r\n\t\t\t\t\tif (currOptions.recordingFileLocation != null && currOptions.recordingFileLocation.equals(CURRENT_RECORDING_NAME))\r\n\t\t\t\t\t\tmapIter.remove();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "c26feeb2443ff0d438896740ddacc72d", "score": "0.5179941", "text": "public void saveStepResults (InspectionStep[] steps) {\n this.storedSteps = steps;\n this.store();\n }", "title": "" }, { "docid": "211b4d262553219c3187644e5091b076", "score": "0.5169868", "text": "public void advanceQueue()\n {\n synchronized(this._lock)\n {\n //this._pendingFilesList.clear();\n for (E entry : this._newFilesList)\n {\n if (!this._pendingFilesList.contains(entry))\n this._pendingFilesList.add(entry);\n }\n this._newFilesList.clear();\n }\n }", "title": "" }, { "docid": "1556c6b429281cbb21d3c599b80bf7e5", "score": "0.51646006", "text": "@Override\n\tpublic void lifeCycle() throws SuspendExecution {\n\t\tSSQModel model = (SSQModel) getModel();\n\t\t//Create a generator process\n\t\tmodel.totalInspectorUsage.update(0);\n\t\tmodel.totalMachineUsage.update(0);\n\t\t\n\t\twhile(true) {\n\t\t\t//hold for next interarrival time\n\t\t\tthis.hold(new TimeSpan(model.interarrivalTimes.sample(),TimeUnit.MINUTES));\n\t\t\tPart p = new Part(model,\"Next Part\",true);\n\t\t\tp.activate();\n\t\t}\n\t}", "title": "" }, { "docid": "af3282e002f4585f2113252f6f7085e3", "score": "0.51585144", "text": "@Override\n public void run() {\n callback.goToNextStep();\n\n }", "title": "" }, { "docid": "4b271a7d96c0253f337f1057f68e0b1b", "score": "0.51222855", "text": "@Override\n\tpublic void enqueue() {\n\t\t\n\t}", "title": "" }, { "docid": "1f41e52606e8c4c72667c66ef87c64fe", "score": "0.51200014", "text": "private static void performAddDeferredTask(PrintWriter w) {\n emitf(w, \"Adding a deferred task...\");\n QueueFactory.getDefaultQueue()\n .add(TaskOptions.Builder.withPayload(new MyDeferredTaskCallBack()));\n\n logger.info(\"Done adding deferred task.\");\n }", "title": "" }, { "docid": "84cf2bd672c731e0bf1a54bfe7de7249", "score": "0.51187485", "text": "public void setSteps(int steps) {\n this.steps = steps;\n }", "title": "" }, { "docid": "9e0a3d5a088000a37958bb04ef6b6fde", "score": "0.5112439", "text": "private void step() {\n\n if (done.get())\n return;\n\n if (needMore.compareAndSet(true,false)) {\n log(name, \"requesting 1\");\n subscription.get().request(1);\n }\n }", "title": "" }, { "docid": "a7a6baddb50338b1a897e12767d806d0", "score": "0.5109837", "text": "public void addSteps( TranslationStep... stepsToAdd ) {\n steps.addAll( Arrays.asList( stepsToAdd ));\n }", "title": "" }, { "docid": "41bec335368fba727121d04ffb385d6c", "score": "0.5108633", "text": "public void appendSubStep(ApplicationStep sub_step){\n\t\tsub_step.setParentStep(this);\n\t\tApplicationStep _previous_sub_step = null;\n\t\tif (subSteps.size() > 0){\n\t\t\t_previous_sub_step = subSteps.get(subSteps.size()-1);\n\t\t}\n\t\tsubSteps.add(sub_step);\n\t\tif (_previous_sub_step != null){\n\t\t\t_previous_sub_step.setNextStep(sub_step);\n\t\t\tsub_step.setPreviousStep(_previous_sub_step);\n\t\t}\n\t}", "title": "" }, { "docid": "2bed0816785b226285a3b4abed6f124b", "score": "0.51061535", "text": "@Override\n public void timePassed() {\n moveOneStep();\n }", "title": "" }, { "docid": "597754b855b58101ad75c72e81d6b496", "score": "0.5105017", "text": "public synchronized void log()\n {\n NucleusLogger.GENERAL.debug(\">> OperationQueue :\");\n for (Operation op : queuedOperations)\n {\n NucleusLogger.GENERAL.debug(\">> \" + op);\n }\n }", "title": "" }, { "docid": "971d5e9f199fa76cb15ff6a83a232c66", "score": "0.5088334", "text": "void startNewInputs()\n/* */ {\n/* 138 */ for (TailLogInput input : this.newInputs) {\n/* 139 */ input.start();\n/* */ }\n/* */ \n/* 142 */ this.newInputs.clear();\n/* */ }", "title": "" }, { "docid": "6453fc5c136aa264936683a1533caea6", "score": "0.5083764", "text": "void addReinforcement();", "title": "" }, { "docid": "4d478bb7dfc2fc4614b012d16dcb666f", "score": "0.5077619", "text": "@Override\n\tpublic List<QuBit> step() throws Exception {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "b70b9b2bb88e0c501a81eb6232b37283", "score": "0.5067978", "text": "@Test\n public void testBatchAdd() {\n assertThat(intentStore.getIntentCount(), is(0L));\n\n List<IntentData> intents = generateIntentList(5);\n\n intentStore.batchWrite(intents);\n assertThat(intentStore.getIntentCount(), is(5L));\n }", "title": "" }, { "docid": "7484a5ee1b7d30cbeb5fa8995b7d7e48", "score": "0.50634897", "text": "@Override\n protected void onSaveInstanceState(Bundle outState) {\n outState.putInt(\"stepNumber\", currentStep);\n outState.putBooleanArray(\"completedStepsArray\", completedStepsArray);\n super.onSaveInstanceState(outState);\n }", "title": "" }, { "docid": "629424c68725fad0f1d2bce1366a71a8", "score": "0.5056288", "text": "public void enque(T data) {\n list.addLast(data);\n }", "title": "" }, { "docid": "d1121be2c70951c68c79a5a8768a0467", "score": "0.5055914", "text": "private void addOrder() {\n }", "title": "" }, { "docid": "3edf4cab8b1f84f3d9fc82942ea107d9", "score": "0.5050588", "text": "@Override\r\n\tpublic void preStep() {\n\r\n\t}", "title": "" }, { "docid": "4a81bf163e6804654521bdfa9f9611b8", "score": "0.50415075", "text": "public void orderList() {\r\n stepsList2 = stepsEJB.findByRecipeId(recipe.getId());\r\n for (int i = 0; i < stepsList2.size(); i++) {\r\n\r\n Steps stp = stepsList2.get(i);\r\n stp.setOrder(i + 1);\r\n\r\n stepsEJB.edit(stp);\r\n\r\n }\r\n }", "title": "" }, { "docid": "e5a8ceb0f773fccd3572ae25464d5eae", "score": "0.503589", "text": "public void setupMoveBySteps(double endPosition, double positionStepSize, double timeBetweenStepsInMilliseconds) {\n telemetry.addData(\"Starting position = \", \"%3.2f\", .200);\n telemetry.addData(\"Ending position = \", \"%3.2f\", endPosition);\n servoStepStartPosition = convertDoubleToInt(.200);\n servoStepEndPosition = convertDoubleToInt(endPosition);\n servoStepPositionIncrement = convertDoubleToInt(positionStepSize);\n servoStepTimeBetweenSteps = timeBetweenStepsInMilliseconds;\n servoStepTimer = new ElapsedTime();\n servoStepCurrentPosition = servoStepStartPosition;\n if (servoStepStartPosition > servoStepEndPosition) {\n servoMovementDirection = ServoMovementDirection.DECREASING;\n // since the commands will be decreasing make sure the increment is negative\n servoStepPositionIncrement = -Math.abs(servoStepPositionIncrement);\n }\n if (servoStepStartPosition < servoStepEndPosition) {\n servoMovementDirection = ServoMovementDirection.INCREASING;\n // since the commands will be decreasing make sure the increment is positive\n servoStepPositionIncrement = Math.abs(servoStepPositionIncrement);\n }\n if (servoStepStartPosition == servoStepEndPosition) {\n servoMovementDirection = ServoMovementDirection.NOT_MOVING;\n }\n }", "title": "" }, { "docid": "0abb3b69b121d6a5cdbab2da103f31dd", "score": "0.5022998", "text": "public void step()\r\n\t{\r\n\t\t++progressCount;\r\n\t}", "title": "" }, { "docid": "cf2f90c50d670c39c119c62d7b65c05e", "score": "0.5014271", "text": "public void setTrailStep(IOrder order, double trailStep) \r\n\t{\t\t\r\n\t\t(new Thread(new TrailStepTask(order, trailStep))).start();\r\n\t}", "title": "" }, { "docid": "a962c97166c5bbb84aa3a52715af4cf3", "score": "0.50133747", "text": "protected void addStep(Step step, RetryRule retryRule) {\n steps.add(step);\n retryRules.add(retryRule);\n }", "title": "" }, { "docid": "7749e1d3088afa210a61267afb7be687", "score": "0.500883", "text": "public void sendNextStep(byte[] toSend)\n\t{\n\n\t}", "title": "" }, { "docid": "d3a64dc56ac400b76d85ffbe8d53497b", "score": "0.50049525", "text": "@Override\n\tpublic void run() {\n\t\ttry {\n\t\t\tThread.sleep(actualWakeUpTime);\n\t\t}catch (InterruptedException e) {\n\t\t\t//do nothing\n\t\t}\n\n\t\twhile(queue.isDone() == false || queue.isEmpty() == false || this.onlineQueue.isDone() == false) {\n\t\t\t//Wait a short time before taking next order\n\t\t\ttry {\n\t\t\t\tThread.sleep(actualSleepTime);\n\t\t\t}catch (InterruptedException e) {\n\t\t\t\t//do nothing\n\t\t\t}\n\t\t\tcheckForOrders();\n\t\t}\n\t\t\n\t\tthis.done = true;\n\t\tSystem.out.println(\"Assistant \" + (this.id + 1) + \" finished \");\n\t\tboolean makeReport = true;\n\n\t\tfor(int i = 0; i< assistants.size(); i++) {\n\t\t\ttry {\n\t\t\t\tif(!assistants.get(i).getDone()) {\n\t\t\t\t\tmakeReport = false;\n\t\t\t\t}\n\t\t\t}catch(NullPointerException npe) {\n\t\t\t\t//Do nothing if assistant already deleted\n\t\t\t}\n\n\t\t}\n\n\t\tif(makeReport) {\n\t\t\tSystem.out.println(\"Report made\");\n\t\t\treport.generateReport();\n\t\t\tSystem.exit(0);\n\t\t}\n\t}", "title": "" }, { "docid": "52f8435ac1e502b6cc00447157bfbb82", "score": "0.5004511", "text": "public boolean step(){\n\t\t\n\t\t\toldPackets.add(getPackets());\n\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\t//invoke transferMessage to transfer messages between routers\n\t\t\t\n\t\t\t\tfor(Router node: topology.getTopology()){\n\t\t\t\t\tk++;\n\t\t\t\n\t\t\t\t\n\t\t\t\tnode.transferMessage();\n\t\t\t\t\n\t\t\t\tif(sim.getStrategy() instanceof RandomStrategy || sim.getStrategy() instanceof SoftriatorsStrategy ){\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\tif(k==10){\n\t\t\t\t\t\tsim.getStrategy().updateRoutingTable(topology.getTopology());\n\t\t\t\t\t\tk=0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t//inject a message in the system at a user settable rate\n\t\t\tif(numberOfSteps%(sim.getSettableRate()-1)==0 && numberOfSteps!=0){\n\t\t\t\tMessage message1;\n\t\t\t\tif(undoMessages.size()>0){\n\t\t\t\t\tmessage1=undoMessages.remove(undoMessages.size()-1);\n\t\t\t\t\tfor(Router r:topology.getTopology()){\n\t\t\t\t\t\tif(r.equals(message1.getSource())){\n\t\t\t\t\t\t\tr.addMessage(message1);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tinjectedMessages.add(new Message(message1.getMessage(),message1.getSource(),message1.getDestination()));\n\t\t\t\t}else{\n\t\t\t\tmessage1=injectNewMessage(numMessages++);\n\t\t\t\tinjectedMessages.add(new Message(message1.getMessage(),message1.getSource(),message1.getDestination()));\n\t\t\t\t}\n\t\t\t\tString s=\"a new message has been successfuly injected with source: \"+message1.getSource().getName()+\" and destination: \"+ message1.getDestination().getName();\n\t\t\t\tsim.informView(s);\n\t\t\t\t\n\t\t\t}\n\t\t\tfor(Router r:topology.getTopology()){\n\t\t\t\t\n\t\t\t\tfor(Message m:r.getStoredMessages()){\n\t\t\t\t\tr.addMessage(m);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tr.getStoredMessages().clear();\n\t\t\t\tsim.informView(r);\n\t\t\t}\n\t\t\tsim.hopsMetrix();\n\t\t\tsim.packetsMetrix();\n\t\t\tnumberOfSteps++;\n\t\t\treturn true;\n\t\t\t\n\t}", "title": "" }, { "docid": "213d904b4960d516b95cff443c6cd4ce", "score": "0.49959913", "text": "public void addTask(IAlgoExecution exec);", "title": "" }, { "docid": "fb3222ed52005433ee0650325c395aab", "score": "0.49958113", "text": "public abstract void doRemainingPush();", "title": "" }, { "docid": "91b3cbb5345191f78ac5de463b115c8f", "score": "0.4992867", "text": "public static void main (String[] args) {\n\n MyCollection<SimpleStep> simpleSteps = new SinglyLinked<>();\n simpleSteps.add(new SimpleStep(\"aaa\"));\n simpleSteps.add(new SimpleStep(\"fff\"));\n\n System.out.println(\"-------------\");\n StepService.printAllItems(simpleSteps);\n\n\n MyCollection<Step> steps = new SinglyLinked<>();\n steps.add(new ComplexStep(\"DFKDFKKDOFP\"));\n\n StepService.merge(simpleSteps, steps);\n\n }", "title": "" }, { "docid": "0c9087e48254a116d302834ad7d1a519", "score": "0.49892396", "text": "@Override\n\t/**\n\t * This function does nothing. \n\t */\n\tpublic void endTimeStep() {\n\t}", "title": "" }, { "docid": "ada851ef615141e2ba28c0a58fcb54b0", "score": "0.4986758", "text": "public void postorder() {\r\n\t\t}", "title": "" }, { "docid": "e5679c794a22cfa8ace47c5358a74ebd", "score": "0.49837458", "text": "public void addEnvToQueue(Environment e){\r\n\t\tboolean wasAdded = false ;\r\n\r\n\t\ttry{\r\n\t\t\twasAdded = queue.add(e);\r\n\t\t}finally{\r\n\t\t\tif(wasAdded)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"Event : \" + e.ID + \" is added ! Value : \" + e.setOfParameters[0].value);\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\tSystem.out.println(\"Event : \" + e.ID + \" is not added ! \");\r\n\t\t}\r\n\r\n\r\n\t}", "title": "" }, { "docid": "cf7ac9a396ffaf7364fd4360e8630467", "score": "0.4982907", "text": "@Override\n\tpublic void addToCommandQueue(ComparableCommand com) {\n\t\ttry {\n\t\t\tcommandsToSend.putLast(com);\n\t\t\tlog.infoMessage(\"Added \" + com + \" to the send queue\");\n\t\t} catch (InterruptedException e) {\n\t\t\tlog.exceptionMessage(e);\n\t\t}\n\t}", "title": "" }, { "docid": "7d99e03c3397b9f02b39b5448a72c17d", "score": "0.49741933", "text": "@Override\n public RepeatStatus execute(StepContribution contribution, ChunkContext chunkContext) throws Exception {\n\n\n log.info(\"zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz\");\n log.info(\"zzzzzzzzzzzzzzzzzzzzzzzzzzzzz zzzzzzzzzzzzzzzzzzzzzzzzzzzzzz\");\n log.info(\"zzzzzzzzzzzzzzzzzzzzzzzzzzzzz Sleeping for a while zzzzzzzzzzzzzzzzzzzzzzzzzzzzzz\");\n log.info(\"zzzzzzzzzzzzzzzzzzzzzzzzzzzzz zzzzzzzzzzzzzzzzzzzzzzzzzzzzzz\");\n log.info(\"zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz\");\n\n //Sleep one sec\n Thread.sleep(1000);\n //Once awake take a look at all that has happened with the other parallel steps\n\n log.info(\"zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz\");\n log.info(\"zzzzzzzzzzzzzzzzzzzzzzzzzzzzz zzzzzzzzzzzzzzzzzzzzzzzzzzzzzz\");\n log.info(\"zzzzzzzzzzzzzzzzzzzzzzzzzzzzz Finally Waking up !! zzzzzzzzzzzzzzzzzzzzzzzzzzzzzz\");\n log.info(\"zzzzzzzzzzzzzzzzzzzzzzzzzzzzz zzzzzzzzzzzzzzzzzzzzzzzzzzzzzz\");\n log.info(\"zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz\");\n\n return RepeatStatus.FINISHED;\n }", "title": "" }, { "docid": "1ce4ec64bd0ceb1b6d9906fab88fdfe4", "score": "0.49669576", "text": "@PostMapping(params = \"addStep\")\n String addProjectStep(@ModelAttribute(\"project\") ProjectWriteModel current) {\n current.getSteps().add(new ProjectSteps());\n return \"projects\";\n }", "title": "" }, { "docid": "92e78bcba7e40ddcfae4ab1500961388", "score": "0.49661955", "text": "@Test\n\tpublic void test07_AddActivityAfterCreateATask() {\n\t\tinfo(\"Test 7: Add activity after create a Task\");\n\t\t/*Step Number: 1\n\t\t *Step Name: Step 1: Add new space\n\t\t *Step Description: \n\t\t\t- Login portal\n\t\t\t- Click [Join a space]\n\t\t\t- Click [Add new space]\n\t\t\t- Input value require and click [Save]\n\t\t *Input Data: \n\n\t\t *Expected Outcome: \n\t\t\tAdd new space successfully*/\n\t\tString space = txData.getContentByArrayTypeRandom(1)+getRandomNumber();\n\t\tString contentSpace=txData.getContentByArrayTypeRandom(1)+getRandomNumber();\n\t\thp.goToAllSpace();\n\t\tinfo(\"create new space\");\n\t\tspaMg.addNewSpaceSimple(space,contentSpace,60000);\n\n\t\t/*Step number: 2\n\t\t *Step Name: Step 2: Add task in space\n\t\t *Step Description: \n\t\t\t- Go to [Agenda] in space\n\t\t\t- Add a Task\n\t\t *Input Data: \n\n\t\t *Expected Outcome: \n\t\t\tAdd task successfully*/\n\t\tString newTask= txData.getContentByArrayTypeRandom(1)+getRandomNumber();\n\t\thp.goToSpecificSpace(space);\n\t\tspaMg.goToAgendaTab();\n\t\ttasMg.goToAddTaskFromActionBar();\n\t\ttasMg.inputBasicQuickTask(newTask,newTask);\n\t\ttasMg.saveQuickAddTask();\n\t\tinfo(\"Add task successfully\");\n\t\tcMang.scrollElementIntoView(this.driver.findElement(By.xpath(cMang.ELEMENT_EVENT_TASK_TITLE.replace(\"${name}\",newTask))));\n\t\twaitForAndGetElement(cMang.ELEMENT_EVENT_TASK_TITLE.replace(\"${name}\",newTask));\n\n\t\t/*Step number: 3\n\t\t *Step Name: Step 3: Check after add task in space\n\t\t *Step Description: \n\t\t\tGo to [Activity Stream] of space\n\t\t *Input Data: \n\n\t\t *Expected Outcome: \n\t\t\t- An activity is added to the space activity stream with task's content*/\n\t\tinfo(\"Verify that A new event activity is added to the activity stream of space\");\n\t\thp.goToSpecificSpace(space);\n\t\tspaMg.goToActivityStreamTab();\n\t\twaitForAndGetElement(hpAct.ELEMENT_ACTIVITY_TASK_EVENT_TITLE.replace(\"$name\",newTask));\n\n\t\t/*Step number: 4\n\t\t *Step Name: Step 4: Check activity in homepage\n\t\t *Step Description: \n\t\t\tGo back to intranet homepage\n\t\t *Input Data: \n\n\t\t *Expected Outcome: \n\t\t\t- An activity is added to the intranet activity stream with task's content*/ \n\t\tinfo(\"Verify that A new event activity is added to the activity stream of space\");\n\t\thp.goToHomePage();\n\t\twaitForAndGetElement(hpAct.ELEMENT_ACTIVITY_TASK_EVENT_TITLE.replace(\"$name\",newTask));\n\n\t\tinfo(\"Delete Data\");\n\t\thp.goToSpecificSpace(space);\n\t\tspaMg.goToAgendaTab();\n\t\tcMang.deleteTaskEvent(newTask);\n\t}", "title": "" }, { "docid": "5da1fc4322464d5df5ce98e728a4ae2b", "score": "0.49661678", "text": "public void onToOrderAdd() {\r\n\t}", "title": "" }, { "docid": "b4bfc739c3bba0372c3b21ac75753cf5", "score": "0.4965899", "text": "public static void saveMemory() throws DukeException {\r\n ArrayList<Task> mylist = MyList.getList();\r\n boolean first = true;\r\n\r\n if (mylist.size() == 0) {\r\n overwrite(\"Wow..much emptiness\");\r\n }\r\n for (Task t: mylist) {\r\n String[] splitted = t.toString().split(\" \", 3);\r\n String type = parseType(splitted[0]);\r\n String isDone = parseDone(splitted[1]);\r\n String desc = parseDesc(splitted[2]);\r\n String doneDate = \"1/1/1\";\r\n if (isDone.equals(\"true\")) {\r\n doneDate = parseDate(t.getDoneDate());\r\n }\r\n\r\n String buildLine = type + \"~\" + isDone + \"~\" + desc + \"~\" + doneDate;\r\n if (first) {\r\n first = false;\r\n overwrite(buildLine);\r\n continue;\r\n }\r\n append(buildLine);\r\n }\r\n }", "title": "" }, { "docid": "0991dc0d2dce5ecaa449e468304acf34", "score": "0.49643505", "text": "public void pushToHistory(UndoableCommand undoableCommand) {\n commandInternalRedoQueue = new ArrayDeque<UndoableCommand>();\n if (commandInternalUndoQueue.size() >= MAX_UNDO_QUEUE_SIZE) {\n commandInternalUndoQueue.pollLast();\n }\n commandInternalUndoQueue.addFirst(undoableCommand);\n }", "title": "" }, { "docid": "168610efc92b0dded61b7d2423ce0ad0", "score": "0.49639565", "text": "public void execute() {\n if (currentIndex < nextPathIndex) {\n init(nextPathIndex);\n }\n if (!sequenceFinished) {\n // log(\"limelight in use: \" + mVision);\n // log(\"direction: \" + currentDirection.asString);\n // uses vision at the percentages specified for the paths during construction\n ramsetePeriodic();\n mDrivetrain.setAutoVelocity(leftSpeed, rightSpeed);\n\n if (ramseteFollower.getSegmentFraction() < .25) {\n // basically just to make sure robot initialized, should be the same of the\n // other path's endElement.aimedState (the path that ended before this one)\n\n // don't want to run grab hatch forever lol\n if (currentIndex - 1 == 1) {\n mHatchGrabber.grabHatch();\n } else {\n mHatchGrabber.runConstant();\n }\n\n } else {\n stateMachine.setAimedRobotState(pathArr[currentIndex].endElement.aimedState);\n // need to grab hatch from loading station at end of the path if it's going\n // backwards\n if (!currentPathIsForwards && ramseteFollower.getSegmentFraction() > .5) {\n mHatchGrabber.extend(0);\n mHatchGrabber.grabHatch();\n // log(\"grabbing hatch\");\n } else {\n mHatchGrabber.runConstant();\n }\n }\n\n if (currentPathFinished) {\n // log(\"finished path \" + currentIndex);\n // need to release hatch at end of the path if it's going forwarsds\n if (currentPathIsForwards) {\n mHatchGrabber.releaseHatch();\n mHatchGrabber.retract(0);\n // log(\"releasing hatch\");\n }\n // If current path ended, go to next path, unless next index doesn't exist, in\n // that case make the next index the last index (2);\n sequenceFinished = currentIndex == 2;\n\n nextPathIndex = nextPathIndex + 1 >= 3 ? 2 : nextPathIndex + 1;\n\n }\n } else {\n log(\"sequence is finished\");\n // mDrivetrain.stop();\n // mDrivetrain.setOpenLoop(0, 0);\n mDrivetrain.setAutoVelocity(-500, -500);\n }\n\n }", "title": "" }, { "docid": "0cc769c8ee0278f81ff80fb1e7b16c22", "score": "0.49523538", "text": "StepExecution() {\n \t\tsuper();\n \t}", "title": "" }, { "docid": "113b77bb27ece2e44c027fafd11eb847", "score": "0.49523354", "text": "abstract public void step();", "title": "" }, { "docid": "6014d56e882ec585447e8c2fff979e2d", "score": "0.49401772", "text": "@FXML\r\n public void creatingTrainQueueFile(){\r\n generateTrainQueueFile(shortestPassenger, longestPassenger);\r\n }", "title": "" }, { "docid": "e501eea2e819a8ae5149ade2f376cc12", "score": "0.49401078", "text": "private void doAddNewGameMenu() {\n gameLabelLists.add(new ArrayList<>());\n goToNextGameMenu();\n }", "title": "" }, { "docid": "2b23b6aefdec6b4fed2248b3758d2388", "score": "0.49157217", "text": "public boolean redo () {\n\n if (this.step < this.log.size()) {\n this.step++;\n return true;\n }\n\n return false;\n }", "title": "" }, { "docid": "8ab92178e3ed04a2bb61481f55915ace", "score": "0.49150565", "text": "@Override\r\n\tpublic void execute() {\n\t\tsuper.execute();\r\n\t\trecorder = Recorder.getInstance();\r\n\t\trecorder.recordCommands(this);\r\n\r\n\t}", "title": "" }, { "docid": "59561f601e5413bcbad35a02f0a5ebd6", "score": "0.49120325", "text": "private void addPassengerToQueue() {\n\n Stage stage = new Stage();\n stage.setTitle(\"Waiting Room\");\n stage.setScene(new Scene(room(stage)));\n stage.showAndWait();\n\n\n }", "title": "" }, { "docid": "a2a2b86e07980f571c0fd38e1f234f3e", "score": "0.49109077", "text": "public void addToQueue(Process process){\r\n\t\t\tqueue.add(process);\r\n\t\t}", "title": "" }, { "docid": "c5f536b5670c3e900c61c1d5c081adff", "score": "0.49107867", "text": "@Override\n public void addToQueue() {\n scheduledExecutor.shutdown();\n if (meetsTimer != null){\n meetsTimer.propertyChange(new PropertyChangeEvent(this, \"Character met timer\",null, null));\n }\n }", "title": "" }, { "docid": "7ffa4c873fa8e5e7632478c45fff770c", "score": "0.48978534", "text": "public void addToQueue(Renderable r);", "title": "" }, { "docid": "1f6d9809ccec55494d4b1c468f55f9ca", "score": "0.48973832", "text": "@Override\n public void addUserToQueue(User user) {\n queue.add(user);\n }", "title": "" }, { "docid": "70b3d4b4be5b9dced2c00d5c8d6421d8", "score": "0.48952323", "text": "public boolean allSteps(){\n if(firstStep()){\n nextStep();\n nextStep();\n return true;\n }\n \n return false;\n }", "title": "" }, { "docid": "91464d7fdefc2fdbee68edcb1a409704", "score": "0.48937398", "text": "public Script addStep(Task task) {\n\t\tsteps.add(task);\n\t\treturn this;\n\t}", "title": "" }, { "docid": "96f4fa389cd51c8c09c85c3647bbbe43", "score": "0.48844445", "text": "public void doRemainingPush() {\n Log.I(this + \" doRemainingPush\");\n if (XDMDbSqlQuery.xdmdbsqlGetNotiSaveState() != 0) {\n XNOTIAdapter.xnotiPushAdpResumeNotiAction();\n }\n }", "title": "" }, { "docid": "17b95f4bc177ac61871450d351539abe", "score": "0.48805648", "text": "public void step();", "title": "" }, { "docid": "6705eebf4c387837720c17ee87e802df", "score": "0.4878352", "text": "public void enqueue() {\n if (!_enqueued) {\n // Maybe we could just use schedule() here - or even SimpleTimer2 - not sure...\n // To be safe, use forceReschedule() so we don't get lots of duplicates\n // We've seen the queue blow up before, maybe it was this before the rewrite...\n // So perhaps it IS wise to be \"overly worried\" ...\n forceReschedule(_passiveFlushDelay);\n if (_log.shouldLog(Log.DEBUG))\n _log.debug(\"Enqueueing the flusher for \" + _passiveFlushDelay + \"ms out\");\n } else {\n if (_log.shouldLog(Log.DEBUG))\n _log.debug(\"NOT enqueing the flusher\");\n }\n _enqueued = true;\n }", "title": "" }, { "docid": "f76cb17ef7e8e218d16e8d49a3baaf10", "score": "0.48672384", "text": "private void addChangesToHistory() {\n/* 343 */ this.historyBrowserInterface.performCurrentCompoundCommand();\n/* */ }", "title": "" }, { "docid": "442f30e0560b59017811f6a20fa1cfbb", "score": "0.48619255", "text": "private void toNext() {\n\n _steps += 1;\n Square to = _from.queenMove(_dir, _steps);\n while (_dir < 8\n && (to == null\n || !isUnblockedMove(_from, to, _asEmpty))) {\n\n _steps = 1;\n to = _from.queenMove(_dir + 1, 1);\n boolean goodNext = to != null && to != _asEmpty;\n\n if (goodNext && _boardLayout[to.index()] != EMPTY) {\n to = null;\n }\n _dir++;\n }\n }", "title": "" } ]
d0baba1a1d552bb8c0d807adce622a7d
PUT /robots => update the robot
[ { "docid": "4aa959284e2570a61459f991b829b733", "score": "0.7214156", "text": "@RequestMapping(value = \"/robots\",\n method = RequestMethod.PUT,\n produces = MediaType.APPLICATION_JSON_VALUE)\n public ResponseEntity<RobotDto> update(@RequestBody final RobotDto robotDto) {\n Validate.notNull(robotDto);\n\n logger.trace(\"REST request to update Robot with [{}]\", robotDto);\n\n final RobotDto ret = robotFacade.update(robotDto);\n\n return ret != null ? ResponseEntity.ok().body(ret) : ResponseEntity.notFound().build();\n }", "title": "" } ]
[ { "docid": "317744bbcd846633c35cd1d48dce6a8b", "score": "0.6413801", "text": "public void updateRobots(Set<RobotAvatar> robots);", "title": "" }, { "docid": "47de139878fa25fe5eb842310f4f9020", "score": "0.5579383", "text": "public void setRobots(int robots) {\r\n\t\tthis.robots += robots;\r\n\t}", "title": "" }, { "docid": "2c42e446ef3fda61676cf10f0d2020ba", "score": "0.5538673", "text": "@RequestMapping(method = RequestMethod.PUT, value = \"/vsit/callendar\")\n public void updateVisitFromCallendar () {\n }", "title": "" }, { "docid": "89b2b1e7a6ccc71fb8e2b22bbaca4571", "score": "0.54600614", "text": "@RequestMapping(value = \"/loto/bote\", method = RequestMethod.PUT, produces = MediaType.APPLICATION_JSON_VALUE)\n public void updateManualLotoBote() throws IOException {\n\n LOGGER.info(\"trying getSuperKino\");\n leidsaService.updateLotoBote();\n }", "title": "" }, { "docid": "38cf811d6cedb4455bd6967724483955", "score": "0.54550815", "text": "@RequestMapping(value = \"/{id}/{name}\", method = RequestMethod.PUT)\n\tpublic String update(HttpServletRequest request, @PathVariable int id, @PathVariable String name) {\n\t\t\n\t\treturn String.valueOf(vehicle.update(id,name));\n\t}", "title": "" }, { "docid": "1c3fc410d0c152e8ec3798bf7f89e713", "score": "0.5415301", "text": "public void addRobot(Robot newRobot) {\n }", "title": "" }, { "docid": "1abc71c1ccf4cb20c70775d5e69fa140", "score": "0.54059005", "text": "@PutMapping(value=\"/botigues/{botigaID}\")\n\tpublic ResponseEntity<Botiga> updateBotiga(@PathVariable(\"botigaID\") int botigaID, @RequestBody Botiga botiga){\n\t\tOptional<Botiga> optionalBotiga = botiguesDAO.findById(botigaID);\n\t\tif(optionalBotiga.isPresent()) {\n\t\t\tBotiga updateBotiga = optionalBotiga.get();\n\t\t\tupdateBotiga.setNom(botiga.getNom());\n\t\t\tupdateBotiga.setMaxquadres(botiga.getMaxquadres());\n\t\t\tbotiguesDAO.save(updateBotiga);\n\t\t\treturn ResponseEntity.ok(updateBotiga);\n\t\t}else {\n\t\t\treturn ResponseEntity.noContent().build();\n\t\t}\n\t}", "title": "" }, { "docid": "949ff76a55d0dce974e39d7cb6f3b191", "score": "0.53130573", "text": "@RequestMapping(value = \"/robots/{id}\",\n method = RequestMethod.DELETE,\n produces = MediaType.APPLICATION_JSON_VALUE)\n public void delete(@PathVariable final Long id) {\n Validate.notNull(id);\n\n logger.trace(\"REST request to delete robot [{}]\", id);\n\n robotFacade.delete(id);\n }", "title": "" }, { "docid": "a85d4784d594154b1b7bc568f66421bb", "score": "0.5301607", "text": "@Test\n\tvoid testUpdateHeroeWithId2() {\n\t\t\n\t\tHeroe heroeToSave = new Heroe(\"Juan\", \"Lopez\",\"SuperLopez\");\n\t\t\n\t\tHttpHeaders headers = new HttpHeaders();\n\t\tHttpEntity<Heroe> entity = new HttpEntity<Heroe>(heroeToSave, headers);\n ResponseEntity<Heroe> response = restTemplate.exchange(getRootUrl() + \"/heroes/2\",\n HttpMethod.PUT, entity, Heroe.class);\n HttpStatus status = response.getStatusCode();\n \n assertNotNull(status);\n assertEquals(HttpStatus.NO_CONTENT,status); \n \n\t}", "title": "" }, { "docid": "df1eee356624f76031bcbbb1875f2fd1", "score": "0.52957296", "text": "@PutMapping({\"/{vehiclePlateNumber}\"})\n public ResponseEntity<Vehicle> updateVehicle(@PathVariable(\"vehiclePlateNumber\") String vehiclePlateNumber, @RequestBody Vehicle vehicle) {\n vehicleService.updateVehicle(vehiclePlateNumber, vehicle);\n return new ResponseEntity<>(vehicleService.getVehicleById(vehiclePlateNumber), HttpStatus.OK);\n }", "title": "" }, { "docid": "d4d4a347b9c9a39f472c6add4791cdac", "score": "0.5165716", "text": "public void updateOpcion(com.farmacia.domain.Opcion opcion);", "title": "" }, { "docid": "ed70d4d020a46490d33898edd8ef3339", "score": "0.515837", "text": "static public String sendRESTPut(URL url, String putContent,\n String userAgent) throws Exception {\n\n HttpURLConnection con;\n try {\n con = (HttpURLConnection) url.openConnection();\n\n con.setRequestMethod(\"PUT\");\n if (MDfromHTMLUtils.isUndefined(userAgent)) {\n con.setRequestProperty(\"User-Agent\", \"Mozilla/5.0\");\n } else {\n con.setRequestProperty(\"User-Agent\", userAgent);\n }\n con.setRequestProperty(\"Accept-Language\", \"en-US,en;q=0.5\");\n con.setInstanceFollowRedirects(true);\n // Send put request\n con.setDoOutput(true);\n DataOutputStream wr = new DataOutputStream(con.getOutputStream());\n wr.writeBytes(putContent);\n wr.flush();\n wr.close();\n\n int responseCode = con.getResponseCode();\n String response = readResponse(con); // read the data from the\n // connection input/error stream\n if (responseCode < 200 || responseCode > 299) {\n\n throw new Exception(HTTP_RETURN_CODE + \"=\" + responseCode + \",\"\n + HTTP_RESPONSE + \"=\" + response);\n }\n return (response);\n } catch (Exception e1) {\n throw new Exception(\n \"Can not open connection to \" + url.toExternalForm(), e1);\n }\n\n }", "title": "" }, { "docid": "67855e770753b242abed2e9ee4114f60", "score": "0.51405615", "text": "public void setRobot(final Robot robot){\n for(Controller controller : mControllers){\n controller.setRobot(robot);\n }\n }", "title": "" }, { "docid": "da5df6b37f9c62b4ccd7d0665cc0568f", "score": "0.5140301", "text": "@RequestMapping(method = RequestMethod.POST, value = \"/setRobotStatus\", consumes = \"application/xml\")\n\tpublic void setRobotStatus(@RequestBody String xml) throws Exception {\n\t\t\n\t\t//Converts XML to JSON\n\t\tJSONObject jsonRobotStatus = XML.toJSONObject(xml);\t\t\n\t\tdataService.setRobotStatus(jsonRobotStatus.toString());\n\t\t\n\t}", "title": "" }, { "docid": "0539c72b1132a7988485a3d7312da884", "score": "0.51326466", "text": "@PUT(\"api/motorKonsumen/{id_motorKonsumen}\")\n @FormUrlEncoded\n Call<ResponseBody>update(\n @Field(\"id_motor_fk\")Integer id_motor_fk,\n @Field(\"id_konsumen_fk\")Integer id_konsumen_fk,\n @Field(\"plat_motorKonsumen\")String plat_motorKonsumen,\n @Path(\"id_motorKonsumen\")Integer id_motorKonsumen);", "title": "" }, { "docid": "be0331a26b362a2d532f5534e8e4a478", "score": "0.51175433", "text": "@Test\n public void updateAppDefinitionUsingPUTTest() throws ApiException {\n Long modelId = null;\n AppDefinitionSaveRepresentation updatedModel = null;\n AppDefinitionUpdateResultRepresentation response = api.updateAppDefinitionUsingPUT(modelId, updatedModel);\n\n // TODO: test validations\n }", "title": "" }, { "docid": "3351dc2a60f66b13e23b6be9f77e7014", "score": "0.5115871", "text": "EvoMovement updateMovement(RequestWrapperBaseModel body) throws ApiException;", "title": "" }, { "docid": "4df3bed20a98a40b9495e68a4effe5ec", "score": "0.5111574", "text": "@Override\n public void e_PUT() {\n response = httpExecute(new HttpPut\n (REST_URL+\"setData/MAX_BOOKS=6;\"));\n }", "title": "" }, { "docid": "0b428c014df267bf88ea5ee414534474", "score": "0.5104574", "text": "@PutMapping(\"/{id}\")\n public Hammam update(@PathVariable(\"id\") Long id, @RequestBody Hammam hammam){\n return hammamService.update(id,hammam);\n }", "title": "" }, { "docid": "ce241d75cbc67b1e6107bb40c7d09d89", "score": "0.5082352", "text": "@Headers({\n \"Content-Type:application/json\"\n })\n @PUT(\"bre/rules/{id}\")\n Call<BreRule> updateBRERule(\n @retrofit2.http.Path(\"id\") String id, @retrofit2.http.Body BreRule breRule\n );", "title": "" }, { "docid": "7d703abbade69e396568ef756ab219d6", "score": "0.50764346", "text": "int sendPutRequest(String postMapping, String data) throws WebServiceException;", "title": "" }, { "docid": "e4b4d9a1d59fe85f1754e377425e8a12", "score": "0.50676167", "text": "@Ignore\n @Test\n public void changeVehicle() throws IOException {\n TourRESTService service = new TourRESTService();\n Response resp =service.changeVehicle(110 , \"{\\\"vehicleId\\\": \\\"T_099\\\"}\");\n\n assertTrue(resp.getStatus()==200);\n }", "title": "" }, { "docid": "393d1d870bb2b8a7404889c5a0ee1e11", "score": "0.5020332", "text": "public void addRobot(AttackRobot robot) {\n\t\trobots.add(robot);\n\t}", "title": "" }, { "docid": "da16fb6ec1ad3c0bab7b2243c5c6c66b", "score": "0.5005643", "text": "@POST\n\t@Path(\"/{id}\")\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic void edit(@PathParam(\"id\") String id, IoTSystem iotsystem) throws Exception {\n\t\tregistry.edit(iotsystem);\n\t}", "title": "" }, { "docid": "501d9f45f11cf8461bad78b4bed200cc", "score": "0.49869144", "text": "@PUT(\"trabajadores/{id}\")\n Call<Trabajador> actualizaTrabajador(@Path(\"id\") int id, @Body Trabajador trabajador);", "title": "" }, { "docid": "fd8b9f64948a66b2f3f5db49fe7587b4", "score": "0.4984835", "text": "public void httpPut(String url, Map<String, String> form, Map<String, String> header, Callback callback) {\n FormBody.Builder builder = new FormBody.Builder();\n if (form != null) {\n for (String key : form.keySet()) {\n builder.add(key, form.get(key));\n }\n }\n RequestBody body = builder.build();\n getClient().newCall(buildPutRequest(url, header, body)).enqueue(callback);\n }", "title": "" }, { "docid": "55abcb72bf79de9ee7b913904e113158", "score": "0.4984333", "text": "public void setRobotList(List<Robot> robotList) {\r\n this.robotList = robotList;\r\n }", "title": "" }, { "docid": "59c915120628aae0e5d265d90258814d", "score": "0.4943831", "text": "@RequestMapping(value = \"/{id}\", method = RequestMethod.PUT)\n public void updateSquadToDo(@PathVariable int id, HttpSession session, HttpServletResponse response){\n squadTodoService.todoComplete(id, session, response);\n }", "title": "" }, { "docid": "7c6a1f270e6c85d0e0e76b7737ac94ed", "score": "0.49317092", "text": "@Override\n public void doPut(String path, HttpServletRequest request, HttpServletResponse response)\n throws Exception {\n\n }", "title": "" }, { "docid": "0cf309a536eb293f9aa76e468577dbac", "score": "0.49163634", "text": "public void updateHotel(String newname, long hotelID);", "title": "" }, { "docid": "459ec45b260dbca16886e192fc4b2d1c", "score": "0.49161574", "text": "@PutMapping(\"/{orbiterId}\")\n public ResponseEntity<Void> update(@PathVariable int orbiterId, @RequestBody Orbiter orbiter) throws DataAccessException {\n if (orbiterId != orbiter.getOrbiterId()) {\n return new ResponseEntity<>(HttpStatus.BAD_REQUEST);\n }\n\n // 4. ResultType -> HttpStatus\n OrbiterResult<Orbiter> result = service.update(orbiter);\n if (result.getType() == ResultType.INVALID) {\n return new ResponseEntity<>(HttpStatus.BAD_REQUEST);\n } else if (result.getType() == ResultType.NOT_FOUND) {\n return new ResponseEntity<>(HttpStatus.NOT_FOUND);\n }\n return new ResponseEntity<>(HttpStatus.NO_CONTENT);\n }", "title": "" }, { "docid": "2cb307cadcb1296d475dcce0468e9ec4", "score": "0.49003857", "text": "public void setRobots() {\n for (String robot : my_game.getRobots()) {\n Robot robot_tmp = new Robot(robot);\n if (Main_Thread.km != null) {\n Main_Thread.km.addPlaceMark(\"robot\", robot_tmp.getLocation().toString());\n }\n robots.put(robot_tmp.getId(), robot_tmp);\n }\n }", "title": "" }, { "docid": "5d2709b2e8fdbb379cd31fa41ba13bff", "score": "0.48792532", "text": "public void updateJugador(Jugador entity) throws Exception;", "title": "" }, { "docid": "27555313f32d8d7a9bce5ec19912f76d", "score": "0.48761272", "text": "@Test\n public void updateTeamTest() throws ApiException {\n APITeam apiTeam = null;\n Boolean brief = null;\n // Team response = api.updateTeam(apiTeam, brief);\n\n // TODO: test validations\n }", "title": "" }, { "docid": "14dbf5d88e6012f3060c3bbf87235781", "score": "0.485413", "text": "@RequestMapping(value =\"/updateTruck\", method=RequestMethod.POST)\n\t\tpublic void updateTruck(@RequestBody Truck truck) \n\t\t {\n\t\t\t truckService.updateTruck(truck);\n\t\t }", "title": "" }, { "docid": "bfc9615c847c9804f8a33cb80f5e3798", "score": "0.48535272", "text": "@RequestMapping(method = RequestMethod.PUT)\n @ResponseBody\n public Idea updateIdea(@RequestBody Idea idea){\n\n Idea think = this.ideaRepository.findIdeaById(idea.getId());\n think.setNumeroVotos(idea.getNumeroVotos());\n think.setDescripcion(idea.getDescripcion());\n think.setTitulo(idea.getTitulo());\n return this.ideaRepository.save(think);\n }", "title": "" }, { "docid": "c297cbbd90b88462b63065f038d9f367", "score": "0.48404494", "text": "@PUT\n\t@Path(\"/\")\n\tvoid update(DO domainObject);", "title": "" }, { "docid": "023d5c1851f4b1ac5e4c2e8a90e3cbe7", "score": "0.48393455", "text": "public void update(String nombre, String password, String apellido,\r\n\t\t\tString telefono, String nombre_usuario, int grupo_id) {\n\t\t\r\n\t}", "title": "" }, { "docid": "8cc4562a9e0d53fb9f21b7835b402818", "score": "0.48257375", "text": "protected void httpPut(ArangoPersistor persistor, String apiPath, JsonObject headers, JsonObject body, int timeout, Message<JsonObject> msg) {\n // launch the request\n HttpClientRequest clientRequest = persistor.getClient().put(apiPath, new RestResponseHandler(msg, logger, helper));\n \n // set Headers and end the request\n addRequestHeaders(clientRequest, persistor, headers);\n \n if (body != null) {\n // set content-length before we write the body !\n clientRequest.putHeader(HttpHeaders.CONTENT_LENGTH, Integer.toString(body.toString().length()));\n // write the body\n clientRequest.write(body.toString());\n }\n \n // end the request\n clientRequest.setTimeout(timeout).end(); \n }", "title": "" }, { "docid": "244703dc05808cbfe08b10d6504b24bc", "score": "0.48145953", "text": "@PreAuthorize(\"hasAnyRole('Admin','Reviewer')\")\n\t@RequestMapping(value = \"/{verbId}\", method = RequestMethod.PUT)\n\tpublic Message updateVerbByVerbId(@RequestBody verb v, @PathVariable(\"verbId\") String vid) {\n\n\t\tLong verbId = Long.parseLong(vid);\n\t\tString verbName = v.getVerbName();\n\t\tverbService.updateVerbByVerbId(verbId, verbName);\n\t\tMessage m = new Message();\n\t\tm.setMessage(\"Verb updated successfully\");\n\t\treturn m;\n\t}", "title": "" }, { "docid": "821f3ae5e6b6c37de65bcfa1202ca453", "score": "0.47964412", "text": "void updateVehicle(Vehicle vehicle);", "title": "" }, { "docid": "b4f00c9b621f3043714e9f3cb412eef6", "score": "0.4777385", "text": "@Override\n\tpublic Libro update(Libro obj) {\n\t\treturn libroRepo.save(obj);\n\t}", "title": "" }, { "docid": "3d4936d5b62cdf155cbfe58717e0577b", "score": "0.4764938", "text": "@PUT(\"api/pegawai/{id_pegawai}\")\n @FormUrlEncoded\n Call<ResponseBody>update(\n @Field(\"id_role_fk\")Integer id_role_fk,\n @Field(\"nama_pegawai\")String nama_pegawai,\n @Field(\"nip_pegawai\")String nip_pegawai,\n @Field(\"username_pegawai\")String username_pegawai,\n @Path(\"id_pegawai\")Integer id_pegawai);", "title": "" }, { "docid": "357d9f70df614c0781a1f8026c924524", "score": "0.47627974", "text": "public void update(final T robot) {\n for (final Integer button : assignments.keySet()) {\n getRawButton(button, true); //Call the queue update on the specified button\n }\n\n\t\t\tcurrentQueue.update(robot);\n\t\t}", "title": "" }, { "docid": "a8b81e1127c328f80cd78153254c4bad", "score": "0.47562855", "text": "@PutMapping(\"/updateactivo\")\r\n\tpublic ResponseEntity<Response> updateactivo(@Valid @RequestBody Activo activo) {\r\n\t\tactivoService.modifyActivo(activo);\r\n\t\tString msg = \"Activo fijo modificado exitosamente\";\r\n\t\tlogger.info(msg);\r\n\t\treturn new ResponseEntity<Response>(Response.getIntance(msg), HttpStatus.CREATED);\r\n\t}", "title": "" }, { "docid": "7ae8e5a373d3518da0c10c9a00ea2b72", "score": "0.47519153", "text": "@PutMapping(\"/api/book/{id}\")\n\tpublic ResponseEntity<Book> update(@PathVariable(\"id\") long id,@RequestBody Book book){\n\t\tBook updated_book = bookService.update(id,book);\n\t\treturn ResponseEntity.ok().body(updated_book); \n\t}", "title": "" }, { "docid": "b0d51cb7c2fc47263a162a05035d8c2b", "score": "0.47477818", "text": "@RequestMapping(method = RequestMethod.POST, value = \"/setRobotDirection\", consumes = \"application/xml\")\n\tpublic void setRobotPosition(@RequestBody String xml) throws Exception {\n\t\t\n\t\tJSONObject jsonRobotPosition = new JSONObject();\n\t\t\n\t\tString robotStatus = dataService.getAllData().getString(\"RobotStatus\");\n\t\t\n\t\tString coordinates = dataService.getAllData().getString(\"RobotPosition\");\n\t\tint x = Integer.parseInt(coordinates.split(\",\")[0]);\n\t\tint y = Integer.parseInt(coordinates.split(\",\")[1]);\t\t\n\n\t\t//Converts XML to JSON\n\t\tJSONObject jsonRobotDirection = XML.toJSONObject(xml);\n\t\t\n\t\tif(robotStatus.equals(\"ON\")) {\n\t\t\t\n\t\t\tif(jsonRobotDirection.getString(\"RobotDirection\").equals(\"left\") && x!=0) {\n\t\t\t\tx = x-10;\n\t\t\t}\n\t\t\telse if(jsonRobotDirection.getString(\"RobotDirection\").equals(\"right\") && x!=160) {\n\t\t\t\tx = x+10;\n\t\t\t}\n\t\t\telse if(jsonRobotDirection.getString(\"RobotDirection\").equals(\"forward\") && y!=0) {\n\t\t\t\ty = y-10;\n\t\t\t}\n\t\t\telse if(jsonRobotDirection.getString(\"RobotDirection\").equals(\"backward\") && y!=70) {\n\t\t\t\ty = y+10;\n\t\t\t}\n\t\t}\t\t\n\t\t\n\t\tjsonRobotPosition.put(\"RobotPosition\", x + \",\" + y);\n\t\tdataService.setRobotPosition(jsonRobotPosition.toString());\n\t\t\n\t}", "title": "" }, { "docid": "879775c57d2e8e13762204090684dc88", "score": "0.4739371", "text": "public void updateHotel(Hotel hotel, long hotelID);", "title": "" }, { "docid": "3ce5495ba181a299359b20bf37c8f7fc", "score": "0.47333965", "text": "@ApiOperation(value = \"/update_NaveenTest2\", httpMethod = \"PUT\",notes = \"updates a noun of NaveenTest2\",response = NaveenTest2.class)\n\t@ApiResponses(value = {\n\t\t@ApiResponse(code = 200, message = NaveenTest2SwaggerUIConstants.SUCCESS),\n\t @ApiResponse(code = 404, message = NaveenTest2SwaggerUIConstants.NOT_FOUND),\n\t @ApiResponse(code = 500, message = NaveenTest2SwaggerUIConstants.INTERNAL_SERVER_ERROR),\n\t @ApiResponse(code = 400, message = NaveenTest2SwaggerUIConstants.BAD_REQUEST),\n\t @ApiResponse(code = 412, message = NaveenTest2SwaggerUIConstants.PRE_CONDITION_FAILED) })\n\n\n\t@RequestMapping(method = RequestMethod.PUT,value = \"/update_NaveenTest2\" ,headers=\"Accept=application/json\")\n @ResponseBody\n\tpublic NaveenTest2 update_NaveenTest2(@RequestBody NaveenTest2 the_NaveenTest2) throws Exception {\n\n\t\tlog.setLevel(Level.INFO);\n\t log.info(\"update_NaveenTest2 controller started operation!\");\n\n\t\tNaveenTest2 a_NaveenTest2;\n\n\t\ta_NaveenTest2 = NaveenTest2_Default_Activity_service.update_naveentest2(the_NaveenTest2, super.getUser());\n\n\t\tlog.info(\"Object returned from update_NaveenTest2 method !\");\n\n\t\treturn a_NaveenTest2;\n\n\n\t}", "title": "" }, { "docid": "daef5b1766cb01e2dde6b46c8388f333", "score": "0.47324315", "text": "@ResponseBody\r\n\t@RequestMapping(value=\"/api/disable/{vid}\", method=RequestMethod.PUT)\r\n\tpublic void disable(@PathVariable(\"vid\") int vid){\r\n\t\tudao.disableVendor(vid);\t\r\n\t}", "title": "" }, { "docid": "7d40e3fc498f82b0dbdc73d67bbc9d1b", "score": "0.47219855", "text": "@PUT //PUT at http://localhost:9090/booky/books/{id}\n @Consumes(MediaType.APPLICATION_JSON)\n @Path(\"{id}\")\n @RolesAllowed(\"Admin\")\n public Response updateBook(@PathParam(\"id\") int id, Book b) throws BookyDatabaseException, SQLException, URISyntaxException {\n\n if (bookController.updateBook(id, b)){\n return Response.noContent().build();\n }\n else{\n return Response.status(Response.Status.NOT_FOUND).entity(\"Please provide a valid book ID.\").build();\n\n }\n }", "title": "" }, { "docid": "8a05c901c190ffa6315d5e4e3aa64e99", "score": "0.4719645", "text": "@PutMapping(value = \"/Objet/edit/{id}\")\r\n public ResponseEntity editObjet(@RequestBody ObjectGeo objet, @PathVariable Integer id) {\r\n Optional<ObjectGeo> newObjetOptional = objectsDao.findById(id);\r\n if (newObjetOptional.isPresent()){\r\n ObjectGeo newObjet = newObjetOptional.get();\r\n newObjet.setName(objet.getName());\r\n newObjet.setTypeOfObject(objet.getTypeOfObject());\r\n newObjet.setSide(objet.getSide());\r\n newObjet.setLength(objet.getLength());\r\n newObjet.setWidth(objet.getWidth());\r\n newObjet.setColor(objet.getColor());\r\n newObjet.setX(objet.getX());\r\n newObjet.setY(objet.getY());\r\n newObjet.setArea(objet.getArea());\r\n newObjet.setPerimeter(objet.getPerimeter());\r\n objectsDao.save(newObjet);\r\n return new ResponseEntity(HttpStatus.ACCEPTED);\r\n } return new ResponseEntity(HttpStatus.NOT_FOUND);\r\n }", "title": "" }, { "docid": "515acc6e6712992f51061f32709b18ce", "score": "0.47146338", "text": "void update(int id, String name, String address, String zipcode, String phone, String website, String email);", "title": "" }, { "docid": "3491aeb9cd1356179e64df9d07f9f3d5", "score": "0.47139594", "text": "public Company updateCompany(Company company) throws Exception;", "title": "" }, { "docid": "d76a3ebca37d28c32f3b87e9aaaba2ba", "score": "0.47091687", "text": "private void setRobots() {\r\n if(!robotsHasBeenSet){\r\n robotList.add(new Robot(\"GOLM\", R.drawable.robot1,R.string.desc_robot1,false,price*0,-60*(HEIGHT_SCREEN/1080),(float)9.8));\r\n robotList.add(new Robot(\"BUM9\", R.drawable.robotlock2,R.string.desc_robot2,true,price*2,-60*(HEIGHT_SCREEN/1080),(float)9.8));\r\n robotList.add(new Robot(\"BA23\", R.drawable.robotlock3,R.string.desc_robot3,true,price*4,-60*(HEIGHT_SCREEN/1080),(float)9.8));\r\n robotList.add(new Robot(\"IronR\", R.drawable.robotlock4, R.string.desc_robot4,true,price*6,-60*(HEIGHT_SCREEN/1080),(float)9.8));\r\n //Nuevos robots\r\n robotList.add(new Robot(\"Master\", R.drawable.robot5lock, R.string.desc_robot5,true,price*8,-60*(HEIGHT_SCREEN/1080),(float)9.8));\r\n robotList.add(new Robot(\"Rock\", R.drawable.robot6lock, R.string.desc_robot6,true,price*10,-60*(HEIGHT_SCREEN/1080),(float)9.8));\r\n robotList.add(new Robot(\"Sp-Der\", R.drawable.robot7lock, R.string.desc_robot7,true,price*12,-60*(HEIGHT_SCREEN/1080),(float)9.8));\r\n\r\n robotSelected = robotList.get(0);\r\n robotsHasBeenSet = true;\r\n }\r\n }", "title": "" }, { "docid": "1d94bb5c5dda8d715f7f242d29c35c7b", "score": "0.47091088", "text": "HotelModel updateHotel(HotelModel hotel);", "title": "" }, { "docid": "3aacbbaf1ca9436a316e919a4e65dd91", "score": "0.47069788", "text": "@Test\n public void testUpdateUser() throws IOException {\n //Updating our sampleUser with this 'new' user\n User user = new User().setName(\"Test\")\n .setUserType(UserType.CUSTOMER);\n HttpResponse response = makeHttpJsonRequest(sampleUser.getUrl(), \"PUT\", user.toJson());\n assertEquals(response.getStatus(), 204);\n response = makeHttpJsonRequest(sampleUser.getUrl(), \"GET\");\n User receivedUser = User.fromJson(new JSONObject(new JSONTokener(response.getBody())));\n //Checking if values in sampleUser have updated\n assertEquals(\"Test\", receivedUser.getName());\n assertEquals(UserType.CUSTOMER, receivedUser.getUserType());\n }", "title": "" }, { "docid": "c65154b75f0f0159cf196c0a361b8893", "score": "0.47012547", "text": "Response put(Entity<?> entity) throws InvocationException;", "title": "" }, { "docid": "aae4868fb6d6b59ee242911d4f083352", "score": "0.46974897", "text": "@Headers({\n \"Content-Type:application/json\"\n })\n @PUT(\"bre/rules/{id}/enabled\")\n Call<Void> setBRERule(\n @retrofit2.http.Path(\"id\") String id, @retrofit2.http.Body BooleanResource enabled\n );", "title": "" }, { "docid": "bc59dae1c16b647ed7701f627f9ce1c0", "score": "0.46966365", "text": "void updateEntity(Client entity);", "title": "" }, { "docid": "cb7285771e99983934d9b1bb891d832b", "score": "0.4695007", "text": "protected void doPut(HttpServletRequest req, HttpServletResponse resp) {\r\n \r\n }", "title": "" }, { "docid": "1f68d264e680f525da741b40bc735a21", "score": "0.46933722", "text": "@Override\r\n\tpublic void updateCar(String id, String marka, String year, String transmission, String fuel, String price,\r\n\t\t\tString description, String url) {\n\t\tautoDao.updateCar(id, marka, year, transmission, fuel, price, description, url);\r\n\t}", "title": "" }, { "docid": "a5e1aad70ae8bbcdb6096d0313b6f880", "score": "0.46928206", "text": "@PUT\r\n\t@Path(\"/hidden-update\")\r\n\t@RolesAllowed(\"admin\")\r\n\tpublic T update(T entity);", "title": "" }, { "docid": "32c88883f0d830a0e26ded06992d7477", "score": "0.4690778", "text": "@Override\r\n\tpublic void updateBoard(BoardVO vo) throws Exception {\n\t\tsession.update(namespace+\".apiPatch\",vo);\r\n\t}", "title": "" }, { "docid": "3b1a1e16ebd240cab108cb9774db74f2", "score": "0.4682912", "text": "@PostMapping(\"/gia/update\")\n public String update(@RequestBody Gia gia){\n System.out.println(gia.getGhichu());\n baoMatService.save(\"Cập nhật\",\"Cập nhật giá hàng hóa\",\"/gia/update\");\n service.savedanhmuc(gia.getTenGia(),gia.getGia(),gia.getGhichu(),gia.getHang_hoaid(),gia.getId());\n return \"200\";\n }", "title": "" }, { "docid": "b990bd9602db531d52212045e78ed331", "score": "0.46790114", "text": "IotHubDescription.Update update();", "title": "" }, { "docid": "a439f7d8bd8a049d7ec3f134f41bd902", "score": "0.46756718", "text": "public Book update(Workspace workspace, Book Book) throws SessionException, NotAuthorizedException,\n ValidationException;", "title": "" }, { "docid": "10da0895fbd22304a8c95b0aac754394", "score": "0.4670153", "text": "public void updateFilmViews(Film film, final Context context)\n {\n// queue = Volley.newRequestQueue(context);\n String url = APIConnectorUltils.HOST_STORAGE_FILM + \"Update/\" + film.getId_film();\n Log.d(\"Mine update views \", film.getFilm_views());\n StringRequest request = new StringRequest(Request.Method.PUT, url, null, null);\n// queue.start();\n// queue.add(request);\n requestQueueUltil.addToRequestQueue(request);\n }", "title": "" }, { "docid": "e4305868bfc8d4213beffc5bf956df40", "score": "0.46696773", "text": "@ApiOperation(value = \"/update_Bb\", httpMethod = \"PUT\",notes = \"updates a noun of Bb\",response = Bb.class)\n\t@ApiResponses(value = {\n\t\t@ApiResponse(code = 200, message = BbbbbbbbbbbbbbbbbSwaggerUIConstants.SUCCESS),\n\t @ApiResponse(code = 404, message = BbbbbbbbbbbbbbbbbSwaggerUIConstants.NOT_FOUND),\n\t @ApiResponse(code = 500, message = BbbbbbbbbbbbbbbbbSwaggerUIConstants.INTERNAL_SERVER_ERROR),\n\t @ApiResponse(code = 400, message = BbbbbbbbbbbbbbbbbSwaggerUIConstants.BAD_REQUEST),\n\t @ApiResponse(code = 412, message = BbbbbbbbbbbbbbbbbSwaggerUIConstants.PRE_CONDITION_FAILED) })\n\n\n\t@RequestMapping(method = RequestMethod.PUT,value = \"/update_Bb\" ,headers=\"Accept=application/json\")\n @ResponseBody\n\tpublic Bb update_Bb(@RequestBody Bb the_Bb) throws Exception {\n\n\t\tlog.setLevel(Level.INFO);\n\t log.info(\"update_Bb controller started operation!\");\n\n\t\tBb a_Bb;\n\n\t\ta_Bb = Bb_Default_Activity_service.update_bb(the_Bb, super.getUser());\n\n\t\tlog.info(\"Object returned from update_Bb method !\");\n\n\t\treturn a_Bb;\n\n\n\t}", "title": "" }, { "docid": "f9b07da9b8ac6047190a7c5d7e098c3e", "score": "0.46626407", "text": "@Test\n\tpublic void testUpdateDocument() throws Exception {\n\n\t\tString indexUid = \"UpdateDocument\";\n\t\tIndex index = client.index().createIndex(indexUid);\n\n\t\tTestData<Movie> testData = this.getTestData(MOVIES_INDEX, Movie.class);\n\t\tDocumentHandler<Movie> movieHandler = client.documents(\"movies\");\n\t\tUpdate update = movieHandler.addDocument(testData.getData());\n\t\tmovieHandler.waitForPendingUpdate(update.getUpdateId());\n\t\tMovie[] movies = movieHandler.getDocuments().toArray(new Movie[0]);\n\t\tMovie toUpdate = movies[0];\n\t\ttoUpdate.setTitle(\"The Perks of Being a Wallflower\");\n\t\ttoUpdate.setOverview(\"The best movie I've ever seen\");\n\n\t\tupdate = movieHandler.updateDocuments(Collections.singletonList(toUpdate));\n\t\tmovieHandler.waitForPendingUpdate(update.getUpdateId());\n\t\tMovie responseUpdate = movieHandler.getDocument(toUpdate.getId());\n\n\t\tassertEquals(toUpdate.getTitle(), responseUpdate.getTitle());\n\t\tassertEquals(toUpdate.getOverview(), responseUpdate.getOverview());\n\t}", "title": "" }, { "docid": "2d453697b4c184eaaab7462b6fd95bc7", "score": "0.46604812", "text": "@Transactional\n public void putOntologyTerms(final ApiOntologyTerm[] apiOntologyTerms) {\n for (ApiOntologyTerm apiOntologyTerm : apiOntologyTerms) {\n try {\n OntologyTerm ontologyTerm = ontologyTermDAO.getByName(apiOntologyTerm.getAccession());\n ontologyTerm.setAccession(apiOntologyTerm.getAccession());\n ontologyTerm.setDescription(apiOntologyTerm.getDescription());\n ontologyTerm.setOntology(getOrCreateOntology(apiOntologyTerm.getOntology()));\n ontologyTerm.setTerm(apiOntologyTerm.getTerm());\n ontologyTermDAO.save(ontologyTerm);\n } catch (RecordNotFoundException e) {\n // ontology term not found - create a new one\n getOrCreateOntologyTerm(apiOntologyTerm);\n }\n }\n }", "title": "" }, { "docid": "1c1da5a37fa40eb6375e4c4d4e533066", "score": "0.4659721", "text": "public static void updateEditObj(PrintWriter pw,\n HttpServletRequest request,\n HttpServletResponse response)\n throws IOException, JSONException {\n String paramKey = request.getParameter(ParamNames.FORM_KEY);\n long bID = getBuildingID(request);\n if (bID <= 0) {\n whinge(pw, ParamNames.noBuild);\n return;\n }\n\n AnyUser uo = AnyUser.getUserObject(request);\n if (uo.editObject == null) {\n whinge(pw, ParamNames.noObj);\n return;\n }\n if (TableObjUpdate.updateTableObject(uo.editObject, request, paramKey)) {\n if ((uo.editObject instanceof Space) &&\n ((Space)uo.editObject).BlockedChanged) {\n GraphVerbs.accessChanged((Space)uo.editObject, bID);\n } else {\n uo.editObject.updateEntity();\n }\n rejoice(pw, \"Object successfully updated.\");\n } else {\n whinge(pw, \"Errors writing new field values.\");\n }\n }", "title": "" }, { "docid": "5e373958926238e30367b6c363165416", "score": "0.465392", "text": "public void createUpdateWorldModel(JsonObject saliencyAnnotation, RobotModel robotModel, ModelType type, String resource) {\n switch (type) {\n case OWL:\n try {\n owlModelRetrieval(saliencyAnnotation, robotModel, resource);\n } catch (Exception e) {\n throw new RuntimeException(\"Error while parsing owl file.\" , e );\n }\n break;\n case MONGODB:\n mongoDBModelRetrieval(saliencyAnnotation, robotModel, resource);\n break;\n default:\n throw new UnsupportedOperationException(\"Model type \" + type + \" not supported yet.\");\n }\n\n }", "title": "" }, { "docid": "a31457ef024402e8b2d226bd6a537aaa", "score": "0.46502", "text": "Tower save(Tower tower) throws RestCannotUpdateData;", "title": "" }, { "docid": "38b786eedc3c05f937db361fe05ae825", "score": "0.4646851", "text": "void updateCar(Car car) throws LogicException;", "title": "" }, { "docid": "4e618924b4b0908a73e05d501727215f", "score": "0.46416956", "text": "private void setRobot() {\n\t\t\tfor(Pions p : this.pions) {\n\t\t\t\tif(p.getType() == \"robot\" && g.getObjColor() == p.getColor())\n\t\t\t\t\tthis.robot = p;\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "2788983959a654cbca6103c9876702df", "score": "0.46414372", "text": "@PostMapping(\"/companies/{id}/edit\")\n public String companyEdit(\n @PathVariable long id,\n @RequestParam(name = \"name\") String name,\n @RequestParam(name = \"logo_img\") String logoImg\n ) {\n\n // Get the company from DB\n Company company = companiesRepo.getCompanyById(id);\n\n // Set the name to the value in the name\n company.setName(name);\n\n // Set the image to the value in the image field\n company.setLogoImg(logoImg);\n\n // Update the company in the DB\n companiesRepo.save(company);\n\n // Redirect to the companies index\n return \"redirect:/companies\";\n }", "title": "" }, { "docid": "b168dd2342ac8f20362b3039ac02ebe6", "score": "0.4635241", "text": "Update withHttp();", "title": "" }, { "docid": "279be75496dded9e81dd021e1bba4289", "score": "0.46349582", "text": "@PutMapping(\"\")\r\n\t\tpublic Reservation editReservation(@RequestBody ReservationForm theForm) {\r\n\t\t\ttheForm.FieldValidation(reservationDAO);\r\n\t\t\tif(!theForm.getErrors().isEmpty()) {throw new ResourceNotFoundException(\"Errors Occured: \" + theForm.getErrors());}\r\n\t\t\tReservation reservation = new Reservation(theForm);\r\n\t\t\tCustomer customer = customerDAO.findById(theForm.getCustomer());\r\n\t\t\tList<Room> rooms = new ArrayList<Room>();\r\n\t\t\tfor(Integer id : theForm.getRooms()) {\r\n\t\t\t\tRoom room = roomDAO.findById(id);\r\n\t\t\t\tif(room==null) {throw new ResourceNotFoundException(\"Associated resource not found\");}\r\n\t\t\t\trooms.add(room);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(customer==null) {throw new ResourceNotFoundException(\"Associated resource not found\");}\r\n\t\t\treservation.setCustomer(customer);\r\n\t\t\treservation.setRooms(rooms);\r\n\t\t\t\r\n\t\t\treservationDAO.save(reservation);\r\n\t\t\treturn reservation;\r\n\t\t}", "title": "" }, { "docid": "a73b114139323dacfcaed8002d9ecbf5", "score": "0.4630585", "text": "@POST(\"{index}/{type}/{id}/_update\")\n\tpublic Call<Object> update(@Path(\"index\") String index, @Path(\"type\") String type, @Path(\"id\") String id, @Body Object body);", "title": "" }, { "docid": "c4ed8c441c9895ff44ecfe7f85878d7c", "score": "0.46256343", "text": "@Test\n\tpublic void updateTest2() {\n\n\t\tController updateController = new Controller(324532532L, \"[email protected]\", \"izmenjen\", \"izmenjenasifra\",\n\t\t\t\t\"izmenjeno ime\", \"izmenjeno prezime\", \"adresa\", \"3543265443\", new Date());\n\t\tController controller = controllerService.update(updateController);\n\t\tassertNull(controller);\n\t}", "title": "" }, { "docid": "202809b67e502a274cba43014267c1f6", "score": "0.46194154", "text": "private void updateLocationOfUser(String refToken, Location location) throws Exception {\n InputStream inputStream = null;\n HttpURLConnection urlConnection = null;\n /* forming th java.net.URL object */\n try {\n location.setRefToken(refToken);\n HttpClientBuilder httpClientBuilder = HttpClientBuilder.create();\n CloseableHttpClient closeableHttpClient = httpClientBuilder.build();\n //todo get values from UI and pass along\n URI uri = new URIBuilder(\"http://\" + Constants.SERVER_HOSTNAME +\"/test/v1/location\").build();\n HttpPostHC4 httpPostHC4 = new HttpPostHC4(uri);\n httpPostHC4.addHeader(\"Content-Type\", \"application/json\");\n httpPostHC4.addHeader(\"Accept\", \"application/json\");\n httpPostHC4.setEntity(new StringEntityHC4(objectMapper.writeValueAsString(location), \"UTF-8\"));\n System.out.println(\"Firing delete \");\n CloseableHttpResponse httpResponse = closeableHttpClient.execute(httpPostHC4);\n int statusCode = httpResponse.getStatusLine().getStatusCode();\n// httpPutHC4.setEntity(new Location(location[0], location[1]));\n if (statusCode != 200) {\n throw new Exception(\"Failed to save!\");\n }\n }catch (Exception e){\n e.printStackTrace();\n throw e;\n }\n /* 200 represents HTTP OK */\n }", "title": "" }, { "docid": "bc60404a20d0af5c8dde34437d97a7e6", "score": "0.46179834", "text": "public BaseResponse update(M model);", "title": "" }, { "docid": "74e789fc66ba4beb137a010dddc1592c", "score": "0.46165955", "text": "public boolean update(Organization org);", "title": "" }, { "docid": "33d3ca9bfe3b32ad87b3e394201b7837", "score": "0.4616418", "text": "@PutMapping(\"/employees\")\n public Employee updateEmployee(@RequestBody Employee employee){\n return employeeService.save(employee);\n }", "title": "" }, { "docid": "04026ca328eb2642b23950c16ccdf80d", "score": "0.46097353", "text": "@Test\n\tpublic void test_03_PUT() {\n\t\n\tJSONObject request = new JSONObject();\n\t\n\t request.put(\"name\", \"Subbu\");\n\t\n\t request.put(\"Job\", \"Teacher\");\n\t\n // System.out.println(request);\n\t\n\tSystem.out.println(request.toJSONString());\n\t\n\t\n\t // Triggering PUT request using BDD\n\t\n\t \n\t given().\n\t header(\"Content-Type\",\"application/json\").\n\t contentType(ContentType.JSON).\n\t accept(ContentType.JSON).\t\n\t body(request.toJSONString()).\n\t \n\t when().\n\t \n\t put(\"https://reqres.in/api/users/2\").\n\t \n\t then().\n\t\t \n statusCode(200).\n log().all();\n \n\n\t}", "title": "" }, { "docid": "a1827c05e24ecf6f9ed1b4c18f40d89a", "score": "0.46040013", "text": "@PUT\r\n\t@Path(\"/{uuid}\")\r\n\t@RolesAllowed({\"admin\"})\r\n\tpublic T update(@PathParam(\"uuid\") String uuid, T entity);", "title": "" }, { "docid": "358642ebc398dcd624cda66951699f83", "score": "0.4603209", "text": "@PutMapping(\"/teams\")\n public Team updateTeam(@RequestBody Team team) {\n return repository.save(team);\n }", "title": "" }, { "docid": "88865319c3bf3dbc9a563181a31f34d3", "score": "0.46026546", "text": "public void updateCompany(Object object);", "title": "" }, { "docid": "53309cec8817f1443c795b6bea6ff92a", "score": "0.4602383", "text": "@ResponseBody\n\t@RequestMapping(value = \"/{id}\", method = RequestMethod.PUT)\n\tpublic CrawlerItem editCrawler(@PathVariable(value = \"id\", required = true) Long id, @RequestBody CrawlerItem crawler) {\n\t\t// Save the new crawler status\n\t\tfinal String newStatus = crawler.getStatus();\n\t\tfinal CrawlerItem result = this.crawlerService.editCrawlerStatus(id, newStatus);\n\t\t\n\t\t// If the new status is 'Running', execute the crawler process\n\t\tif(result != null && result.getStatus() != null && CrawlerStatusEnum.RUNNING.getName().equals(result.getStatus())) {\n\t\t\tfinal Long crawlerId = result.getId();\n\t\t\t// Execute it in a new thread\n\t\t\tfinal CompletableFuture<CrawlerItem> futureResult = this.crawlerService.executeCrawler(crawlerId);\n\t\t\treturn futureResult.getNow(result);\t\n\t\t} else {\n\t\t\treturn result;\t\n\t\t}\n\t}", "title": "" }, { "docid": "615ad48372a44d13456828ddbfdc7886", "score": "0.4593647", "text": "Release update(Release entity);", "title": "" }, { "docid": "faa53fb9280cfc23466461fc723d4ef9", "score": "0.459071", "text": "public void testPut() {\n }", "title": "" }, { "docid": "2786e249244e5d28318c37f429fb12bb", "score": "0.45848554", "text": "@Test\r\n\t@DisplayName(\"Test save update\")\r\n\tvoid testUpdate() {\n\t\tXupMonitoring xupMonitoring = createMonitoringObject(\"Test\", Frequency.HOURS, 1, 1L, \"https://www.google.com\");\r\n\t\tXupMonitoring xupMonitoring1 = createMonitoringObject(\"Test1\", Frequency.HOURS, 1, 1L,\r\n\t\t\t\t\"https://www.facebook.com\");\r\n\t\tdoReturn(Optional.of(xupMonitoring)).when(repository).findByName(Mockito.any());\r\n\t\tdoReturn(xupMonitoring1).when(repository).save(Mockito.any());\r\n\t\tMonitorRequest req = new MonitorRequest();\r\n\t\treq.setFrequency(Frequency.HOURS);\r\n\t\treq.setInterval(1);\r\n\t\treq.setName(\"Test\");\r\n\t\treq.setUrl(\"https://www.facebook.com\");\r\n\r\n\t\t// Execute the service call\r\n\t\tXupMonitoring returnedWidget = service.saveData(req);\r\n\r\n\t\t// Assert the response\r\n\t\tAssertions.assertNotNull(returnedWidget, \"The saved widget should not be null\");\r\n\t\tAssertions.assertEquals(\"https://www.facebook.com\", returnedWidget.getUrl(), \"Url is Changed\");\r\n\t}", "title": "" }, { "docid": "42756eb7de4e4102699d26e2819f6bab", "score": "0.45809805", "text": "@ApiOperation(value = \"/update_Jasper2\", httpMethod = \"PUT\",notes = \"updates a noun of Jasper2\",response = Jasper2.class)\n\t@ApiResponses(value = {\n\t\t@ApiResponse(code = 200, message = Jasper2000SwaggerUIConstants.SUCCESS),\n\t @ApiResponse(code = 404, message = Jasper2000SwaggerUIConstants.NOT_FOUND),\n\t @ApiResponse(code = 500, message = Jasper2000SwaggerUIConstants.INTERNAL_SERVER_ERROR),\n\t @ApiResponse(code = 400, message = Jasper2000SwaggerUIConstants.BAD_REQUEST),\n\t @ApiResponse(code = 412, message = Jasper2000SwaggerUIConstants.PRE_CONDITION_FAILED) })\n\n\n\t@RequestMapping(method = RequestMethod.PUT,value = \"/update_Jasper2\" ,headers=\"Accept=application/json\")\n @ResponseBody\n\tpublic Jasper2 update_Jasper2(@RequestBody Jasper2 the_Jasper2) throws Exception {\n\n\t\tlog.setLevel(Level.INFO);\n\t log.info(\"update_Jasper2 controller started operation!\");\n\n\t\tJasper2 a_Jasper2;\n\n\t\ta_Jasper2 = Jasper2_Default_Activity_service.update_jasper2(the_Jasper2, super.getUser());\n\n\t\tlog.info(\"Object returned from update_Jasper2 method !\");\n\n\t\treturn a_Jasper2;\n\n\n\t}", "title": "" }, { "docid": "7cff4426fe11bac6cf9677eaa41c3a36", "score": "0.4580846", "text": "@PutMapping(\"/games\")\n\tpublic Game updateGame(@RequestBody Game theGame) {\n\t\t\n\t\ttheGame.setEnable(true);\n\t\t\n\t\tgameRepo.save(theGame);\n\t\t\n\t\treturn theGame;\n\t}", "title": "" }, { "docid": "aaea09d31630d6661fa38429b4af63a2", "score": "0.4580004", "text": "@PatchMapping(\"/movies/{id}\")\n public void patchMoviesById(@PathVariable Long id, @RequestBody Movie movieToUpdate){\n movies.findById(id).map(foundMovie ->{\n if(movieToUpdate.getName()!= null) foundMovie.setName(movieToUpdate.getName());\n if(movieToUpdate != null)foundMovie.setReleaseDate(movieToUpdate.getReleaseDate());\n if(movieToUpdate.getDirector()!= null)foundMovie.setDirector(movieToUpdate.getDirector());\n if(movieToUpdate.getDescription()!= null)foundMovie.setDescription(movieToUpdate.getDescription());\n\n movies.save(foundMovie);\n return \"Movie updated\";\n }).orElse(\"Movie not found\");\n\n\n\n }", "title": "" }, { "docid": "0a924021f9301fa1eafbf7b7e8f47dab", "score": "0.45767164", "text": "@JsonView(Views.Extended.class)\n @PatchMapping(\"/{id}\")\n public AgentDTO updateAgent(\n @RequestHeader(name = \"jwt-auth\") final String jwt,\n @PathVariable(name = \"id\") final Long id, @RequestParam(name = \"name\", required = false) final String name,\n @RequestParam(name = \"type\", required = false) final AgentType type,\n @RequestParam(name = \"description\", required = false) final String description,\n @RequestParam(name = \"local_id\", required = false) final String localId,\n @RequestParam(name = \"parent\", required = false) final Long parent,\n @RequestParam(name = \"account\", required = false) final Long account,\n @RequestParam(name = \"version\", required = false) final String version,\n @RequestParam(name = \"versionDate\", required = false) final LocalDateTime versionDate,\n @RequestParam(name = \"versionRationale\", required = false) final String versionRationale,\n @RequestParam(name = \"language\", required = false) final String language) {\n\n final UpdateAgentCommand command = UpdateAgentCommand.create(jwt, id, name, description, type, localId, parent,\n account, version, versionDate, versionRationale, Language.getLanguage(language));\n return sendCommand(command, \"agent\").getEvent().getData();\n\n }", "title": "" }, { "docid": "2c324d588d9b08a83f41a56863b3b325", "score": "0.45765114", "text": "@RequestMapping(value = \"/{type}/{id}\", method = RequestMethod.PUT)\n public ApiStatus updateVideo(@PathVariable(\"type\") String type, @PathVariable(\"id\") Long id, @RequestBody UpdateVideo update) {\n \n if (id <= 0L) {\n return ApiStatus.INVALID_ID;\n }\n \n final MetaDataType metaDataType = MetaDataType.fromString(type);\n final ApiStatus apiStatus;\n switch(metaDataType) {\n case MOVIE:\n case EPISODE:\n apiStatus = jsonApiStorageService.updateVideoData(id, update);\n break;\n case SERIES:\n apiStatus = jsonApiStorageService.updateSeries(id, update);\n break;\n case SEASON:\n apiStatus = jsonApiStorageService.updateSeason(id, update);\n break;\n default:\n apiStatus = ApiStatus.badRequest(INVALID_META_DATA_TYPE + type + \"' for video update\");\n break;\n }\n return apiStatus;\n }", "title": "" }, { "docid": "8a335be392b578f86a566ff76b35bc65", "score": "0.45761663", "text": "public void updateColaborador(Colaborador entity) throws Exception;", "title": "" }, { "docid": "6d6fd87903014bacb4b6005ec34f8843", "score": "0.45733973", "text": "static public String sendRESTPut(URL url, JSONObject json) throws Exception {\n\n HttpURLConnection con;\n try {\n con = (HttpURLConnection) url.openConnection();\n\n con.setRequestMethod(\"PUT\");\n con.setRequestProperty(\"User-Agent\", \"Mozilla/5.0\");\n con.setRequestProperty(\"Content-Type\",\n \"application/json; charset=utf-8\");\n con.setRequestProperty(\"Accept-Language\", \"en-US,en;q=0.5\");\n con.setInstanceFollowRedirects(true);\n // Send put request\n con.setDoOutput(true);\n DataOutputStream wr = new DataOutputStream(con.getOutputStream());\n wr.writeBytes(json.toString());\n wr.flush();\n wr.close();\n\n int responseCode = con.getResponseCode();\n String response = readResponse(con); // read the data from the\n // connection input/error stream\n if (responseCode < 200 || responseCode > 299) {\n throw new Exception(HTTP_RETURN_CODE + \"=\" + responseCode + \",\"\n + HTTP_RESPONSE + \"=\" + response);\n }\n return (response);\n } catch (Exception e1) {\n throw new IOException(\n \"Can not open connection to \" + url.toExternalForm(), e1);\n }\n\n }", "title": "" } ]
0c894c50b580240958b6344533a9d0d6
Default constructor which sets up data arrays.
[ { "docid": "ae1f6275ae53f35a58182f4433a51349", "score": "0.60884273", "text": "public Calibrator()\n {\n dacs = new int[16];\n adcs = new int[24];\n atwdFits = new HashMap[8][128];\n ampGain = new double[3];\n ampGainErr = new double[3];\n freqFits = new HashMap[2];\n }", "title": "" } ]
[ { "docid": "f8ee81772be70c62cba74bbb4f183146", "score": "0.71281177", "text": "public DataSet() {\r\n\t\tds = new ArrayList<T[]>();\r\n\t}", "title": "" }, { "docid": "028af63b8bb8ac3da2e174b18092f194", "score": "0.6923256", "text": "public DefaultDataSet(String name, double[] x, double[] y) {\r\n\t\tthis(name, x, y, null, null);\r\n\t}", "title": "" }, { "docid": "89932fef1f35cfd38afe22dd4b9da52a", "score": "0.6873201", "text": "public ArraySet () {\n this(3);\n }", "title": "" }, { "docid": "cdb73872a9deae6d0af75bd6a452a2ee", "score": "0.68465805", "text": "public DataSet() {\n\t\tdata = new ArrayList<DataRow>();\n\t}", "title": "" }, { "docid": "b2a4eccfe27e9bc0a0bc7c2c6f2141ce", "score": "0.67454225", "text": "public Data() {\n }", "title": "" }, { "docid": "f028fef0da7e14723d76d3792a5e7031", "score": "0.6744962", "text": "public DefaultDataSet(String name, double[] x, double[] y, int[] flags) {\r\n\t\tthis(name, x, y, flags, null);\r\n\t}", "title": "" }, { "docid": "d7bb4760fa60d083dd8d7ea6880e7090", "score": "0.6704216", "text": "public FileDataset() \n\t{\n\t\tsuper();\n\t}", "title": "" }, { "docid": "ecd4c642a83560c7051fdcad93166e49", "score": "0.66957533", "text": "public Data() {\n\t\t// TODO Auto-generated constructor stub\n\t}", "title": "" }, { "docid": "06382314e5b9b73470b713ad1451f1a7", "score": "0.6686973", "text": "public TfbsArray ()\n {\n initialize ();\n }", "title": "" }, { "docid": "684e39f80e8d22e021e03c37d55fe13b", "score": "0.6678357", "text": "private void initData() {\n\n\t}", "title": "" }, { "docid": "684e39f80e8d22e021e03c37d55fe13b", "score": "0.6678357", "text": "private void initData() {\n\n\t}", "title": "" }, { "docid": "4ed8e1a2849eb598afb61882ca4d49d6", "score": "0.6647766", "text": "public AOSLArrayBased()\n\t{\n\t\titems = new String[3];\n\t\tnumItems = 0;\n\t}", "title": "" }, { "docid": "5de6f4b3aa4408da39f2cef1cfd78c02", "score": "0.6637534", "text": "public MyArray() {\n this(10);\n }", "title": "" }, { "docid": "9ebaffd17ba68b04e76b9d8da755c537", "score": "0.66306984", "text": "public SuperArray() {\n _data = new int[10];\n _lastPos = -1; //nothing has been changed yet'\n _size = 0;\n }", "title": "" }, { "docid": "d786f976ab63bea3d5c58b146ff8707e", "score": "0.66215926", "text": "private void initializeData() {\n\n }", "title": "" }, { "docid": "1d6e447a5cb8da661e44778836d778c2", "score": "0.6613354", "text": "public abstract void initData();", "title": "" }, { "docid": "1d6e447a5cb8da661e44778836d778c2", "score": "0.6613354", "text": "public abstract void initData();", "title": "" }, { "docid": "7064c79e7f6f7321f14f1f2bef4db56f", "score": "0.65781265", "text": "public Dataset()\n {\n }", "title": "" }, { "docid": "007b69daa17f90de67bd513ce2c57303", "score": "0.65476954", "text": "public Data() {\n }", "title": "" }, { "docid": "007b69daa17f90de67bd513ce2c57303", "score": "0.65476954", "text": "public Data() {\n }", "title": "" }, { "docid": "007b69daa17f90de67bd513ce2c57303", "score": "0.65476954", "text": "public Data() {\n }", "title": "" }, { "docid": "d678589d8d448a77312786ca7c4230d9", "score": "0.6547451", "text": "private void initData() {\n\n }", "title": "" }, { "docid": "d678589d8d448a77312786ca7c4230d9", "score": "0.6547451", "text": "private void initData() {\n\n }", "title": "" }, { "docid": "d837c0ad140cedcca1f58c42488be6b2", "score": "0.6528588", "text": "public Array(){\n this(10);\n }", "title": "" }, { "docid": "e760f853ec83ba06557c219cee3c9c24", "score": "0.6485538", "text": "@Override\n\tpublic void initData() {\n\n\t}", "title": "" }, { "docid": "e760f853ec83ba06557c219cee3c9c24", "score": "0.6485538", "text": "@Override\n\tpublic void initData() {\n\n\t}", "title": "" }, { "docid": "3048d0d55f7e4f430c15805a93072e81", "score": "0.64729613", "text": "public ArrayST() {\n keys = (Key[]) new Object[2];\n values = (Value[]) new Object[2];\n }", "title": "" }, { "docid": "e7dfd5d39a02f776eae2271d341d9016", "score": "0.64584446", "text": "public void initializeData () {\n\n }", "title": "" }, { "docid": "5139b5e37e05a50b3dbd68996bb37ffa", "score": "0.64520544", "text": "public DefaultDataSet(String name, double[] x, double[] y, int[] flags,\r\n\t\t\tDataSetAttr attr) {\r\n\t\tif (x.length != y.length)\r\n\t\t\tthrow new IllegalArgumentException(\r\n\t\t\t\t\t\"Error: x and y array lengths don't match\");\r\n\t\tif (flags != null) {\r\n\t\t\tif (flags.length != x.length)\r\n\t\t\t\tthrow new IllegalArgumentException(\r\n\t\t\t\t\t\t\"Error: flag array of incorrect length\");\r\n\t\t\telse\r\n\t\t\t\t_flagArray = flags;\r\n\t\t} else {\r\n\t\t\t_flagArray = null;\r\n\t\t}\r\n\t\t_xArray = x;\r\n\t\t_yArray = y;\r\n\t\t_name = name;\r\n\t\tif (attr == null) {\r\n\t\t\tattr = new DataSetAttr(DataType.PAIRED, \"\", \"\", \"\", \"INST-VAL\");\r\n\t\t}\r\n\t\t_attr = attr;\r\n\t\t_dsi = getIterator();\r\n\t}", "title": "" }, { "docid": "8b18fd12dbb5303a665e92c25393fb78", "score": "0.643153", "text": "@Override\n\tprotected void initData() {\n\t\t\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.6421519", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.6421519", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.6421519", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "d2ec5dbe34789c75659238210a4ce259", "score": "0.64013594", "text": "@Override\r\n\tpublic void initData() {\n\t}", "title": "" }, { "docid": "a022af65565a4f8abd010406a558fcb7", "score": "0.6397491", "text": "@Override\n protected void initData() {\n }", "title": "" }, { "docid": "bde12ec25036b06efed01ef014c16028", "score": "0.63814247", "text": "private void initData() {\n mData = new String[DATA_COUNT];\n for (int i = 0; i < DATA_COUNT; i++) {\n mData[i] = \"MyData \" + i;\n }\n }", "title": "" }, { "docid": "b6c641fa6ba40a5b14cc33cb07aa0671", "score": "0.6378516", "text": "@Override\n\tprotected void initData() {\n\t}", "title": "" }, { "docid": "b6c641fa6ba40a5b14cc33cb07aa0671", "score": "0.6378516", "text": "@Override\n\tprotected void initData() {\n\t}", "title": "" }, { "docid": "359579516b65b36ff8c4344d8363a3ed", "score": "0.634006", "text": "@Override\r\n\tprotected void initData() {\n\t}", "title": "" }, { "docid": "41b9783e98363d4e507344f45af29ea4", "score": "0.6319288", "text": "private void initdata() {\n }", "title": "" }, { "docid": "1a69fc3032519e292caaf07d12aab481", "score": "0.63172233", "text": "public DataByteArrayInputStream() {\n this(new byte[0]);\n }", "title": "" }, { "docid": "bf23efe9e533490e8d7f348bddd87e3f", "score": "0.63116443", "text": "public IntArray() {\n this(10);\n }", "title": "" }, { "docid": "3a26c22e38e4ee71de748db8f0c056e0", "score": "0.6296624", "text": "public HttpDataset() {\n }", "title": "" }, { "docid": "a48d17701041c2ed8697686c0d4eb3a6", "score": "0.62964815", "text": "@Override\n protected void initDatas() {\n }", "title": "" }, { "docid": "8035efa2f19eb94055ed02f9bb530e72", "score": "0.62931746", "text": "public ArraySet() {\n data = null;\n lookup = null;\n head = -1;\n }", "title": "" }, { "docid": "fdc1718155cf8452f898e1eb466603ae", "score": "0.628351", "text": "public void initData(){\n }", "title": "" }, { "docid": "f4b681ad986dc7c77ce02ea28e575b59", "score": "0.62826836", "text": "public Data() {\n}", "title": "" }, { "docid": "59fc526fb4a81f69906095e185942818", "score": "0.6280133", "text": "private Data() {\n }", "title": "" }, { "docid": "cfbdcc2a234401d7ad66a67101df7453", "score": "0.6273241", "text": "public DataSet(int maximumNumberOfValues) {\n arr = new double[maximumNumberOfValues];\n }", "title": "" }, { "docid": "fa49ec3a7a89d61091214716a02e469e", "score": "0.627168", "text": "public ArraySt() {\n keys = (Key[]) new Object[INIT_SIZE];\n values = (Value[]) new Object[INIT_SIZE];\n }", "title": "" }, { "docid": "9cf03398cd1da96785628711fcaee995", "score": "0.626017", "text": "protected AbstractSeriesDataset() {\r\n super();\r\n }", "title": "" }, { "docid": "195c419c2e2613a39a7d61d54ef0dcbd", "score": "0.625765", "text": "private void initializeData() {\n\t\tinitializeFirms();\n\t\tinitializeSymbols();\n\t}", "title": "" }, { "docid": "969474dbe3f173a1a451de2a736a8796", "score": "0.6237473", "text": "public PaginationData() {\n\t\t\n\t}", "title": "" }, { "docid": "5d0be43150170187a45f636b603e5c38", "score": "0.62327296", "text": "public DataList(){}", "title": "" }, { "docid": "0f7d13d08b27a02a3228d79504c7f048", "score": "0.6219312", "text": "public MultiByteArrayInputStream() {\n arrays = new byte[NUMARRAYS][];\n push_array = 0;\n cur_offset = 0;\n cur_array = 0;\n mark_array = -1; mark_offset = -1;\n closed = false;\n }", "title": "" }, { "docid": "4c1bac8029789d5d03d2748d1365af72", "score": "0.62165874", "text": "public DataImporter() {\r\n }", "title": "" }, { "docid": "f336ca2f14e5d57cbd3f987318c5c3e1", "score": "0.62158984", "text": "private TArrays() {\n\t\tsuper(\"T_ARRAYS\", org.jooq.test.jdbcoracle.generatedclasses.test.Test.TEST);\n\t}", "title": "" }, { "docid": "6abf526198d3cdd691a1900828c73d84", "score": "0.62041205", "text": "public DataManager()\n {\n datastore = new HashMap<Long, Column>();\n savefiles = new HashMap<Object, String>();\n }", "title": "" }, { "docid": "60c404d9b44366dc779bad9127881364", "score": "0.62036407", "text": "public Dataset() {\n this(DSL.name(\"dataset\"), null);\n }", "title": "" }, { "docid": "894e9e93d970137c0535694de5afa376", "score": "0.6190436", "text": "@Override\n public void initData() {\n\n }", "title": "" }, { "docid": "71d92f4df4f78ab8ffc704608007e86e", "score": "0.61822337", "text": "@Method(selector = \"initWithDataSets:\")\n protected native @Pointer long init(NSArray<?> dataSets);", "title": "" }, { "docid": "0630dd5f05698ec912f93d97b35b870c", "score": "0.6165523", "text": "public Experiment()\n {\n samples = new int[SIZE];\n \n }", "title": "" }, { "docid": "dbf49e0020470940f15b8d848f7b96d0", "score": "0.6162503", "text": "private void initializeData() {\n mContactList = new Contact[]{\r\n new Contact(\"Chris\",\"1234567890\"),\r\n new Contact(\"Sam\",\"2324435647\"),\r\n new Contact(\"John\",\"3545436347\"),\r\n new Contact(\"Kelly\",\"5657569086\"),\r\n new Contact(\"Jake\",\"4546753759\"),\r\n new Contact(\"Helen\",\"5467658984\"),\r\n new Contact(\"Kate\",\"7978908263\"),\r\n new Contact(\"Jill\",\"1234536086\"),\r\n new Contact(\"Mike\",\"9678548747\"),\r\n new Contact(\"Ana\",\"5446897465\"),\r\n new Contact(\"George\",\"5675798376\"),\r\n new Contact(\"Vincent\",\"6898756087\"),\r\n new Contact(\"Mary\",\"9775512685\"),\r\n new Contact(\"Prince\",\"9658865639\"),\r\n new Contact(\"Jeff\",\"6578898463\"),\r\n };\r\n }", "title": "" }, { "docid": "89c4a03d824fdf0a45dd63b3f6ae3a37", "score": "0.6158751", "text": "public ArrayBag()\n\t{\n\t\tthis (DEFAULT_CAPACITY);\n\t}", "title": "" }, { "docid": "0a0479982bf60f70a83ed3b0f3da7665", "score": "0.61472464", "text": "public MCS(){\n\t\tsong = new Song [MAX_SONGS];\n\t\tuser = new User [MAX_USER];\n\t\tplaylist = new Playlist [MAX_PLAYLIST];\n\t}", "title": "" }, { "docid": "25f339a0a2185519a5fb4fab4d3a267e", "score": "0.61194587", "text": "public DataProcessor() {\r\n\t\tlogger = Utilities.initializeLogger(this.getClass().getName());\r\n\t}", "title": "" }, { "docid": "e99f77a8f3c71598b287263890328cbc", "score": "0.6117637", "text": "public ArrayBag1() {\n this(DEFAULT_CAPACITY);\n }", "title": "" }, { "docid": "28767dd9f31840e007291fd5a8db7c50", "score": "0.6061432", "text": "public DataTable() {\n\t\tsuper(Object[].class);\n\t\tthis.rowSerialisers = null;\n\t}", "title": "" }, { "docid": "1a61b891533908fbb677c73c4689739b", "score": "0.6059177", "text": "public Parser(ArrayList<String[]> data) {\r\n\t\tthis.data = data;\r\n\t}", "title": "" }, { "docid": "f6eb20df649a0a8476345c76221eef53", "score": "0.60518014", "text": "@Override\r\n\tpublic void initDatas() {\n\r\n\t}", "title": "" }, { "docid": "9238e0f170b1afc46a90486c6b34d835", "score": "0.60474116", "text": "public MyAdapter(StudyCard[] myDataset) {\n mDataset = myDataset;\n }", "title": "" }, { "docid": "764365410c2f298371c0ecb947f4ea0e", "score": "0.60443825", "text": "public OodleData() {\n }", "title": "" }, { "docid": "eeb2c540e7b432bc05f7358d2e45b54d", "score": "0.60412765", "text": "public ArrayBasedList(){\n\t\tthis(DEFAULT_CAPACITY);\n\t}", "title": "" }, { "docid": "c1c9b212af652a86457c47160eb9c076", "score": "0.6029311", "text": "public AbstractDataType() {\r\n\t\tthis(UUID.randomUUID(), 0L, LoremIpsum.getInstance().getWords(5, 10));\r\n\t}", "title": "" }, { "docid": "67608db4ba9de8555b7325dc493a915e", "score": "0.6026684", "text": "public EventData(){\r\n\t\t this(null,null,null,null,false,false);\r\n\t }", "title": "" }, { "docid": "b13b604b4457f97e820dab4374e65831", "score": "0.6023952", "text": "public Datum() {\n }", "title": "" }, { "docid": "75a25aa0576ec72ac24cd5be9647319f", "score": "0.6006866", "text": "@Test\n public void constructorTestCorrectData() throws MyException {\n new Motorcycles(new Parameters(\"Sport\", \"BMW\", \"M3\", \"2015\"),\n new Performance(100.0, 100, 100));\n }", "title": "" }, { "docid": "9697346f258aa158fe63d0169f41a9e9", "score": "0.6006476", "text": "public MaskData()\n {\n this(0.0, 0.0, 0.0, 0.0, null);\n }", "title": "" }, { "docid": "4d907fbb2b406c2f2e554b3aa2079037", "score": "0.5992545", "text": "private DataContainer() {\n\t\tsuper();\n\t\trepository= new HashMap<>();\n\t\tnotificationQueue= new PriorityBlockingQueue<>();\n\t\trepositoryOrderNumbers= new HashMap<>();\n\t}", "title": "" }, { "docid": "c0bec8523fbd501b65dcd95a89bf0e84", "score": "0.5987623", "text": "public Data (int _dia,String _mes,int _ano) throws Exception{this.setData(_dia, _mes, _ano);}", "title": "" }, { "docid": "78fec756e93903e5cca0f5060411c57b", "score": "0.5986427", "text": "public InputData() {\n\n\t}", "title": "" }, { "docid": "b561c0dac642e4b96c19aa3e761b4f00", "score": "0.5983658", "text": "public StringArray()\n/* */ {\n/* 73 */ this(8);\n/* */ }", "title": "" }, { "docid": "bcbebfedc37359754af83e2ff01820d8", "score": "0.59659314", "text": "public DataModel() throws Exception {\n this(null, null);\n }", "title": "" }, { "docid": "1240400d866cbec2be734faec7441ec7", "score": "0.5950586", "text": "public RadarChartData() {}", "title": "" }, { "docid": "94dc206b2450f46e55c743eb830d5fcd", "score": "0.5942315", "text": "private SwephData() { }", "title": "" }, { "docid": "e5d06af5c8d59a66acc04cee87ed7e42", "score": "0.594185", "text": "public Array(int capacity){\n data =(Element[]) new Object[capacity];\n size = 0;\n }", "title": "" }, { "docid": "4be6b1474804e3035bc105890d553ced", "score": "0.59340924", "text": "public AceDataset() {\n this.weatherMap = new HashMap<>();\n this.soilMap = new HashMap<>();\n this.experimentMap = new HashMap<>();\n this.widMap = new HashMap<>();\n this.sidMap = new HashMap<>();\n }", "title": "" }, { "docid": "969010de504dcecc5210aa760a46369a", "score": "0.5932482", "text": "public Data(Data D)\n {\n this(D,false);\n }", "title": "" }, { "docid": "27403fed0e7a443793c73423782313d9", "score": "0.5931629", "text": "public Metodos() {\r\n\t\tsuper();\r\n\t\tinitialize();\r\n\t}", "title": "" }, { "docid": "435561995af235d654ed460d1eedf86a", "score": "0.5931456", "text": "public BasicDatum() {\n this(null);\n }", "title": "" }, { "docid": "460744b9ba363a46bacbfaa02a0a4ab1", "score": "0.59286976", "text": "public BarData(BarDataSet... dataSets) {\n this.mBarDataList = Arrays.asList(dataSets);\n\n for (BarDataSet barDataSet : mBarDataList) {\n mMinY = Math.min(mMinY, barDataSet.getMinY());\n mMaxY = Math.max(mMaxY, barDataSet.getMaxY());\n\n mMinX = Math.min(mMinX, barDataSet.getMinX());\n mMaxX = Math.max(mMaxX, barDataSet.getMaxX());\n\n mMaxEntrySize = Math.max(mMaxEntrySize, barDataSet.getEntrySize());\n }\n }", "title": "" }, { "docid": "fa5494b478d51e6eda7cb7be03843917", "score": "0.5904113", "text": "public CITData() {\n }", "title": "" }, { "docid": "9e775fa99fb27de52449cb1b9eca81c4", "score": "0.59035957", "text": "public ArrayBasedStack()\r\n {\r\n // Unchecked warning is unavoidable\r\n data = (E[]) new Object[DEFAULT_SIZE];\r\n }", "title": "" }, { "docid": "c303ec76ba2d3d47fa83fc5f746fd6e9", "score": "0.589417", "text": "public DefaultLoader () {\n super (DefaultDataObject.class);\n }", "title": "" }, { "docid": "89d53d3cdc23e6b91a684cad018ebfb3", "score": "0.58873934", "text": "public SArrayList() {\n noOfElements = 0;\n maxSize = 10;\n data = (E[]) new Object[maxSize];\n }", "title": "" }, { "docid": "05dcafda7e52a8740037ad55ef70307c", "score": "0.5876849", "text": "public RecyclerAdapter(String[] myDataset) {\n mDataset = myDataset;\n }", "title": "" }, { "docid": "fd7ab50c6a1e6ca9ae15c0bf86d145c0", "score": "0.5867566", "text": "private LongArraysND()\r\n {\r\n // Private constructor to prevent instantiation\r\n }", "title": "" }, { "docid": "c80be0017a723fdea77ecbf3e698ee38", "score": "0.586601", "text": "public Data(int type, String newName, boolean array, int size) {\n dataType = type;\n name = newName;\n isArray = array;\n arraySize = size;\n }", "title": "" }, { "docid": "00e74b34cd2b60969bcae4edab288b44", "score": "0.5863034", "text": "public dataset() {\n initComponents();\n }", "title": "" }, { "docid": "20b36dd491bcc6078d84e7ac849b06b1", "score": "0.5859482", "text": "public StubDataSet()\n {\n this.cursors = new Cursor[Ols.MAX_CURSORS];\n for ( int i = 0; i < this.cursors.length; i++ )\n {\n this.cursors[i] = new StubCursor( i );\n }\n }", "title": "" } ]
95c899f1dcb79c11f5184699bddcae49
Removes events with an _id <= last_id from table
[ { "docid": "cc0859700328adcd716528c06b606e5d", "score": "0.70771825", "text": "public void cleanupEvents(String last_id, String table) {\n if (MPConfig.DEBUG) { Log.d(LOGTAG, \"cleanupEvents _id \" + last_id + \" from table \" + table); }\n\n try {\n SQLiteDatabase db = mDb.getWritableDatabase();\n db.delete(table, \"_id <= \" + last_id, null);\n } catch (SQLiteException e) {\n // If there's an exception, oh well, let the events persist\n Log.e(LOGTAG, \"cleanupEvents \" + table, e);\n } finally {\n mDb.close();\n }\n }", "title": "" } ]
[ { "docid": "26dff0af1d938d71d2277facbec83814", "score": "0.59065723", "text": "public int cleanupEvents(String last_id) {\n mTrackEventOperation.deleteData(mDbParams.getEventUri(), last_id);\n return mTrackEventOperation.queryDataCount(mDbParams.getEventUri());\n }", "title": "" }, { "docid": "0dcf0e5b3c6b6c4122c2229341bd5bf3", "score": "0.5798192", "text": "public void deleteLast() {\n delete(getLastId());\n }", "title": "" }, { "docid": "f0029dc7ff77859b594fc22b0ae95a66", "score": "0.55283225", "text": "E removeLast();", "title": "" }, { "docid": "f0029dc7ff77859b594fc22b0ae95a66", "score": "0.55283225", "text": "E removeLast();", "title": "" }, { "docid": "f0029dc7ff77859b594fc22b0ae95a66", "score": "0.55283225", "text": "E removeLast();", "title": "" }, { "docid": "bbc2bc16c578c158c3df1c3df839b519", "score": "0.5335983", "text": "public void deleteEventById(Long id) {\n\t}", "title": "" }, { "docid": "8189643ebe02524d649a686485933223", "score": "0.52025086", "text": "public void remove(long id_) \r\n {\r\n //boolean isDefault_ = id_ == defaultIdentity;\r\n LongObj key_ = _remove(new LongObj(id_));\r\n if (key_ == null || !idchange._isEventExportEnabled()) return;\r\n idchange.exportEvent(EVENT_IDENTITY_REMOVED, key_, null);\r\n //_getRemoveEventDescription(key_, false, isDefault_));\r\n }", "title": "" }, { "docid": "b5b479f8597cde9af9caf2cebd43deda", "score": "0.5202145", "text": "public E removeLast();", "title": "" }, { "docid": "5ba1a676c55451a05de69af01f881960", "score": "0.51848984", "text": "public abstract void removeLast();", "title": "" }, { "docid": "ec8a4fbbc570906e31f5d15ca21f0406", "score": "0.51697135", "text": "Item removeLast();", "title": "" }, { "docid": "1731e493528086712285a8006aa76426", "score": "0.51263183", "text": "public void removeLastEntry(DBEntry entry){\n String query = \"DELETE FROM \"+ TABLE_NAME +\" WHERE time > \"+ entry.getTime();\n SQLiteDatabase db = this.getWritableDatabase();\n db.rawQuery(query, null);\n }", "title": "" }, { "docid": "2637bdbc1869a1c983336d535dd674d0", "score": "0.51126945", "text": "T removeLast();", "title": "" }, { "docid": "2637bdbc1869a1c983336d535dd674d0", "score": "0.51126945", "text": "T removeLast();", "title": "" }, { "docid": "2637bdbc1869a1c983336d535dd674d0", "score": "0.51126945", "text": "T removeLast();", "title": "" }, { "docid": "6aeb52a1389a8829eab3613f52b8e62a", "score": "0.5034329", "text": "public void deleteByUniqueId(String uniqueId) {\n SQLiteDatabase db = getWritableDatabase();\n String whereClause = DB_EVENT_UNID + \" = ?;\";\n String[] whereArgs = {uniqueId};\n db.delete(TABLE_NAME, whereClause, whereArgs);\n }", "title": "" }, { "docid": "abb3525f089dd766c2f1dd3a0df95a17", "score": "0.49600825", "text": "protected void removeEvent0( Event event )\n {\n eventMap.remove( event.getId( ) );\n \n Row row = rowMap.remove( event.getId( ) );\n if ( row == null ) return;\n row.removeEvent( event );\n \n shiftEvents0( event, row );\n clearEmptyRows0( );\n }", "title": "" }, { "docid": "a75ad48cb24de0085a7f721f80028a76", "score": "0.49496692", "text": "public void onEventRemoval(long eventId);", "title": "" }, { "docid": "4a97b7ec8e3305b8009420eeb5da2ea6", "score": "0.4935471", "text": "public void cleanupEvents(long time, String table) {\n if (MPConfig.DEBUG) { Log.d(LOGTAG, \"cleanupEvents time \" + time + \" from table \" + table); }\n\n try {\n SQLiteDatabase db = mDb.getWritableDatabase();\n db.delete(table, KEY_CREATED_AT + \" <= \" + time, null);\n } catch (SQLiteException e) {\n // If there's an exception, oh well, let the events persist\n Log.e(LOGTAG, \"cleanupEvents \" + table, e);\n } finally {\n mDb.close();\n }\n }", "title": "" }, { "docid": "5e13b7ebdea1236f13f6a6f748e6b49d", "score": "0.49262157", "text": "@Override\r\n\tpublic int deleteOlder(Integer id) {\n\t\tif(id!=null) {\r\n\t\treturn sysCommonDao.deleteObjectsByParams(\"sys_order\", \"id\", id);\r\n\t\t}\r\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "81aeefeaae314a155067e20b1b4f6c62", "score": "0.49164197", "text": "public Boolean deleteEvent(long id) {\n\t\tEvent event =super.getById(Event.class, id); \n\t\t event.setIsdelete(1); \n\t\t event.setIsactive(0);\n\t\t return super.updateObject(event).getId()>0; \n\t}", "title": "" }, { "docid": "dd9e08bfabaf0e66d1883d50962583e5", "score": "0.4914588", "text": "public void deleteLast() {\n if (last.prev == first) {\n last.data = first.data;\n first.data = null;\n } else {\n last = last.prev;\n }\n }", "title": "" }, { "docid": "803a70f3bd9367a7644a2e4dbe0cfe8c", "score": "0.49033037", "text": "@Override\n public void remove(final IntervalCollectionEvent event) {\n if (event.getCollection().isEmpty()) {\n if (LOGGER.isDebugEnabled()) {\n LOGGER.debug(\"Removing IntervalCollection: \" + event.getKey());\n }\n\n if (this.delete == null) {\n this.delete = getSession().prepare(QueryBuilder.delete()\n .from(this.keySpace, this.columnFamily)\n .where(eq(KEY_COLUMN, QueryBuilder.bindMarker())));\n }\n\n final BoundStatement boundStmt = new BoundStatement(this.delete);\n boundStmt.setString(0, event.getKey());\n\n getSession().execute(boundStmt);\n } else {\n\n upsert(event);\n }\n }", "title": "" }, { "docid": "fb2b822b1b2ebc679a8f87b8e8e1c6d2", "score": "0.4897292", "text": "public static void clearEvents(long pk) {\n\t\tgetPersistence().clearEvents(pk);\n\t}", "title": "" }, { "docid": "e296d41c112289475a4a783332d68453", "score": "0.48963103", "text": "public synchronized void deleteEvent(Event event){\n SQLiteDatabase db = this.getWritableDatabase();\n db.delete(TABLE_RESERVED_EVENT, KEY_EVENT_ID + \" = ?\",\n new String[] { String.valueOf(event.getEvent_id()) });\n db.close();\n }", "title": "" }, { "docid": "52d3580311564ae5884bcd8c6e2bfd4f", "score": "0.48583218", "text": "public void remove(String id) {\r\n\t\tevents.remove(id);\r\n\t}", "title": "" }, { "docid": "5ca818cc9ea34b899625c0e877defdc7", "score": "0.48545593", "text": "int deleteByPrimaryKey(String EVENT_NAME);", "title": "" }, { "docid": "4ec5015602c1f79c4295a994aced59c0", "score": "0.48396012", "text": "@Delete\n\tpublic Integer deleteEvents();", "title": "" }, { "docid": "03aefec0598a2527a22917f8398c7b8f", "score": "0.4827269", "text": "public T removeLast();", "title": "" }, { "docid": "7b46bded76aa9ad886989f87e294b5b7", "score": "0.4779952", "text": "public void deleteById(){\n BlogInstances.remove(id-1);\n\n }", "title": "" }, { "docid": "7529da5fc0fbae2aea435848a29e2058", "score": "0.47763574", "text": "public int deleteEvent(int id) {\r\n this.sql = \"DELETE FROM interactions WHERE EventID = ?\";\r\n Object[] values = {id};\r\n return this.template.update(sql, values);\r\n }", "title": "" }, { "docid": "1082c0f01181966cef6e49ecbadd9a5c", "score": "0.47557136", "text": "void remove(Long id) throws SQLException;", "title": "" }, { "docid": "969f6c359b1214abfb95010d772d3bde", "score": "0.47395554", "text": "public void deleteInRangeForUser(String userId, Instant minTime, Instant maxTime);", "title": "" }, { "docid": "2ecae618beb447ea4cb879965b90bc0b", "score": "0.47022307", "text": "public void removeFromAnywhere(String id){\r\n Person current = this.first; //Set current equals to first position to start looping\r\n while(id != current.getId()){\r\n //While the ID given is not equals to the id of the current person... go to the next\r\n current = current.getNext();\r\n }\r\n if(id == current.getId()){\r\n // once the ID given matches the id of the current person...\r\n current.getPrev().setNext(current.getNext());//Set the next value of the previous of the current to be equals to the value of next of the current\r\n current.getNext().setPrev(current.getPrev());//Set the previous value of the next of the current to be equals to the value of previous of the current\r\n this.size--;//decrement the size of the queue by 1 every time this happens\r\n }\r\n }", "title": "" }, { "docid": "f7265b94a8e2082a540b6b928f694fe6", "score": "0.47016263", "text": "void deleteIdCheck(Long id);", "title": "" }, { "docid": "805c40ebea7bcd815c192ea7097271dc", "score": "0.47009084", "text": "public static void deleteOlderPostItems(SQLiteOpenHelper dbm, long limit) {\n }", "title": "" }, { "docid": "52fdee2141408cf85c755a196823dd40", "score": "0.46918467", "text": "public void deleteEventFromMapIfNotInList(Event event){\n\n if (upcomingEventsAdapter.findEvent(event.getId())) {\n return;\n }\n if (notRespondedEventsAdapter.findEvent(event.getId())) {\n return;\n }\n if (pastEventsAdapter.findEvent(event.getId())) {\n return;\n }\n\n eventMap.remove(event.getId());\n\n //TODO Check for Map and List sync here. And somehow catch this error\n //TODO Put assert to crash just for debugging. Remove before production.\n boolean issync = isMapAndListInSync();\n }", "title": "" }, { "docid": "c41ddbcdf18aaee42794993161eafc4e", "score": "0.46740597", "text": "@Override\n public boolean deleteEventById(int id) {\n if (!open()) {\n return false;\n }\n\n boolean success = false;\n try {\n Event eventToDelete = mEventDao.queryForId(id);\n if (eventToDelete != null) {\n /**\n * We have to delete all guest list entries for this event in\n * the database. Otherwise we will have dead data.\n */\n List<GuestEntry> guestEntries = mGuestListDao.queryBuilder().where().eq(GuestEntry.EVENT_ID_FIELD_NAME, eventToDelete.getID()).query();\n if (guestEntries != null) {\n mGuestListDao.delete(guestEntries);\n }\n mEventDao.deleteById(id);\n success = true;\n } else {\n success = true;\n }\n } catch (SQLException ex) {\n Logger.getLogger(SlimDBServiceImpl.class.getName()).log(Level.SEVERE, \"Could not delete event by the id \" + id, ex);\n } finally {\n close();\n }\n return success;\n }", "title": "" }, { "docid": "50a671effa7703fccb945d38ab6aecba", "score": "0.4672947", "text": "public void deleteRecord(SQLiteDatabase database, String id){\n String sql = \"DELETE FROM event WHERE id = ?\";\n database.execSQL(sql, new String[]{id});\n }", "title": "" }, { "docid": "4a53a1e76e339652564854d499fb51df", "score": "0.4672694", "text": "int deleteCollection(UUID id);", "title": "" }, { "docid": "e5863f44cc77f9c0b472c9d4c4e5e8ef", "score": "0.46463963", "text": "void eliminar(Long id);", "title": "" }, { "docid": "c9083bc83f45c0992b8c9e2609814974", "score": "0.46352252", "text": "public void removeElement(long id) {\n data.stream().filter(o -> o.getId() == id).findFirst().ifPresent(o -> {\n data.remove(o);\n setChanged();\n notifyObservers(new ObservableEvent(o, EventState.DELETED));\n });\n }", "title": "" }, { "docid": "e0fb70821e95bdc0e51a347a073381aa", "score": "0.46306688", "text": "void remove(Integer id);", "title": "" }, { "docid": "5319770cbcfae75541f6fd45e1ed9a0a", "score": "0.46141347", "text": "int deleteByPrimaryKey(Integer logid);", "title": "" }, { "docid": "abb0930495a9141931ac7386bf583f56", "score": "0.4611257", "text": "@Query(\"DELETE FROM weatherReport WHERE idWeatherReport NOT IN ( SELECT idWeatherReport FROM ( SELECT idWeatherReport FROM weatherReport ORDER BY idWeatherReport DESC LIMIT 2 ) );\")\n void deleteAll();", "title": "" }, { "docid": "63e30a049762cfe10a68a0d665925dc5", "score": "0.46055675", "text": "public void purgeOldEvents()\n {\n if (this.expireTurns == -1)\n {\n LOGGER.log(Level.WARNING, \"expireTurns -1 - no purging needed.\");\n return;\n }\n // int purged = 0;\n\n synchronized (eventList)\n {\n Iterator<RevealEvent> it = eventList.iterator();\n boolean done = false;\n while (it.hasNext() && !done)\n {\n RevealEvent e = it.next();\n int oldEventTurn = e.getTurn();\n int oldPlayerNr = e.getPlayer().getNumber();\n\n if (turnNr - oldEventTurn > expireTurns\n - (currentPlayer.getNumber() >= oldPlayerNr ? 1 : 0))\n {\n it.remove();\n // purged++;\n }\n else\n {\n done = true;\n }\n }\n }\n }", "title": "" }, { "docid": "6b327bc5643ead9933bb7896cd1d1c5e", "score": "0.4604174", "text": "int deleteBySqlConditions(BaseStatSync record);", "title": "" }, { "docid": "c53f5e5e799d24aa92cecd05c0bbb939", "score": "0.4599543", "text": "public void deleteSearchHistoryById(long id){\n SQLiteDatabase sdb = this.getWritableDatabase();\n sdb.delete(TABLE_SEARCH_HISTORY_NAME, \"id=?\",new String[]{String.valueOf(id)});\n }", "title": "" }, { "docid": "38d099eba99a7305ac459de01bc9c147", "score": "0.45943215", "text": "public void removeLog(int id){\n\t\t SQLiteDatabase db = this.getWritableDatabase();\n\t\t db.execSQL(\"DELETE FROM \" + logTable + \" WHERE \" + colID + \" = \" + id);\n\t\t db.close();\n\t\t return;\n\t}", "title": "" }, { "docid": "f62713f1792fa3c52e2747e1a7362a2f", "score": "0.45816553", "text": "public abstract boolean removeLastOccurrence(Object object);", "title": "" }, { "docid": "27eba3a2f243ccacae3751937b6995a4", "score": "0.45811415", "text": "private void removeEventFromList(String eventId){\n if (upcomingEventsAdapter.removeEventIfFound(eventId)) {\n return;\n }\n if (notRespondedEventsAdapter.removeEventIfFound(eventId)) {\n return;\n }\n pastEventsAdapter.removeEventIfFound(eventId);\n }", "title": "" }, { "docid": "0f1057ce90e0641f3d46535024724fb9", "score": "0.4570296", "text": "public void removeById(Long id);", "title": "" }, { "docid": "95a47420625c06b4beab23def7077429", "score": "0.45682132", "text": "void remove( long lId );", "title": "" }, { "docid": "4ad4c4043aa74457e93bc1b5336c8afc", "score": "0.45634475", "text": "@Override\n\tpublic void removeEventType(String id, long eventTypeID) {\n\n\t}", "title": "" }, { "docid": "fad003404b1d6553f7b2bb2cd14934ce", "score": "0.45492262", "text": "public void removeFromDb (String[] id) {\n clearSpaceFor(id);\n }", "title": "" }, { "docid": "963c94f764da5504f6a965a8e97861c0", "score": "0.45440066", "text": "public static void removeEvents(long pk, long[] eventPKs) {\n\t\tgetPersistence().removeEvents(pk, eventPKs);\n\t}", "title": "" }, { "docid": "7698ccfa38fa1416b6545c12cb4ff6a0", "score": "0.45380253", "text": "public void removeEvent(Event event) {\n for (int i = 1; i <= this.dateInfo.get(2); i++) {\n this.calendarMap.get(i).removeIf(item -> item == event);\n }\n }", "title": "" }, { "docid": "cb6b70f639aba8030586341674792693", "score": "0.4535328", "text": "@Query(\"DELETE FROM sleep_classify_events_table\")\n void deleteAll();", "title": "" }, { "docid": "22ed5a300f55e5906cb5a57c6dbb87db", "score": "0.4529775", "text": "public void deleteEvents(){\n SQLiteDatabase db = getWritableDatabase();\n db.execSQL(\"delete from \"+eventsContract.eventEntry.tableName);\n db.close();\n }", "title": "" }, { "docid": "480c4626dde7fa8a3dd1190f80093f83", "score": "0.4524913", "text": "public abstract void remove(int id);", "title": "" }, { "docid": "528e91f57d97b32939ff105480ec1148", "score": "0.4521679", "text": "@Override\n\tpublic void deletePreviousRevisions(int id) {\n\t\t\n\t}", "title": "" }, { "docid": "0fe5bd41a09123f158393ae8b364fcfa", "score": "0.4519605", "text": "@Override\n public void remove(final K key) {\n final long timestamp = timestampSupplier.get();\n\n // save max of existing and current timestamp\n removes.put(key, max(timestamp, removes.getOrDefault(key, MIN_VALUE)));\n\n cleanup(key);\n }", "title": "" }, { "docid": "779b36a19bfe408e7b2d48eb165ee803", "score": "0.45180795", "text": "public void removeLastListener(){\n if(!activeListeners.isEmpty())\n removeListener(activeListeners.get(activeListeners.size() - 1));\n }", "title": "" }, { "docid": "fe0fc1bb3696e0ace085b449245f4cce", "score": "0.45165014", "text": "@Override\r\n\tpublic void excluir(long id) {\n\t\t\r\n\t}", "title": "" }, { "docid": "9f79ce213c42d8ac6f609bb2197f91c8", "score": "0.45158687", "text": "UniqueId removeTimeSeriesDataPoints(ObjectIdentifiable objectId, LocalDate fromDateInclusive, LocalDate toDateInclusive);", "title": "" }, { "docid": "5be2071bc9bcd42ad145497edfb0173a", "score": "0.45087478", "text": "E removeFirst();", "title": "" }, { "docid": "5be2071bc9bcd42ad145497edfb0173a", "score": "0.45087478", "text": "E removeFirst();", "title": "" }, { "docid": "70f1eba20945805dc44e117e0962431e", "score": "0.45078975", "text": "public void removeUserEvent(UserEvent userEvent);", "title": "" }, { "docid": "b0573407037021f0c6e463585d9882a1", "score": "0.45022115", "text": "int deleteByPrimaryKey(TbLsElecRangeKey key);", "title": "" }, { "docid": "dae5ea443aa70062d9a9c59b44c3d79e", "score": "0.44725007", "text": "private void checkLastEvent(int size) {\n if (index == size - 1) { //last event\n freeTimeRange.add(TimeRange.fromStartEnd(validStartTime, TimeRange.END_OF_DAY, true));\n }\n }", "title": "" }, { "docid": "2f623d81dbe086a4b2ba7d2e00e8ddc2", "score": "0.44717875", "text": "public void deleteOldReservations() {\n Instant instant = Instant.now().minus(1, ChronoUnit.DAYS);\n Date time = Date.from(instant);\n Bson filter = Filters.lt(\"departure\", time);\n\n\n MongoCursor<Document> reservationCursor = reservations.find().iterator();\n\n // Unbooks the rooms\n for (int i = 0; i < reservations.count(); i++) {\n doc = reservationCursor.next();\n\n if (doc.getDate(\"departure\").before(time)) {\n ArrayList<Integer> rooms = (ArrayList<Integer>)doc.get(\"rooms\");\n\n ArrayList <Room> tempRoom = copyRoomByRoomNumber(rooms);\n for(int j = 0 ;j<tempRoom.size();j++){\n refreshRoomStatus(tempRoom.get(j));\n }\n }\n }\n\n // Deletes the reservations\n reservations.deleteMany(filter);\n }", "title": "" }, { "docid": "7e7cf55c8fa143f0e3d485389df85553", "score": "0.44670078", "text": "@Override\n\tpublic int delete(Long eventNo) {\n\t\treturn eventMapper.delete(eventNo);\n\t}", "title": "" }, { "docid": "31d81ce3e1b25e209ba6403e26a61de4", "score": "0.44613975", "text": "public void removeKey(int id) {\n \tfor (Entity e: collectables) {\n \t\tif (e == null ) {\n \t\t\tbreak;\n \t\t}\n \t\tif (e instanceof Key) {\n \t\t\tKey k = (Key) e;\n \t\t\tif (k.getID() == id) {\n \t\t\t\tremoveCollecteable(e);\n \t\t\t\tbreak;\n \t\t\t}\n \t\t}\n \t}\n }", "title": "" }, { "docid": "074aff7623aa618d8439bd319844c035", "score": "0.4458862", "text": "public void removeByDiscId(int id) throws UserApplicationException;", "title": "" }, { "docid": "7f530a3a18bfbe53649430f72111aa7a", "score": "0.44548467", "text": "public void deleteEventsRow(int row) throws ASPModificationException {\n\tmASPService.deleteSecondaryASPRow(\"events\", row);\n}", "title": "" }, { "docid": "84eabf456451cfbf7d986bea42139c40", "score": "0.44537237", "text": "@Override\n\tpublic void remover(int id) {\n\t\t\n\t}", "title": "" }, { "docid": "258c3e63beadfa6d94f72425e7bc87f1", "score": "0.44424176", "text": "private void removePost(long id){\n }", "title": "" }, { "docid": "fb81ed6d311cd853e93999c5e9726c22", "score": "0.44416872", "text": "@Override\n\tpublic int removeEvent(String code) {\n\t\tint result;\n\t\t\n\t\ttry{\n\t\t\tEventDao dao = session.getMapper(EventDao.class);\n\t\t\t\n\t\t\tresult=dao.removeEvent(code);\n\t\t\t//session.commit();\n\t\t}finally{\n\t\t\t//session.rollback();\n\t\t\t//session.close();\n\t\t}\n\t\treturn result;\n\t}", "title": "" }, { "docid": "3510804e8469a623c3b6b503c845f40f", "score": "0.44335586", "text": "public void removeLast() {\n timeStamp = environment.getWorldIndex();\n int newsize = size.get() - 1;\n if (newsize >= 0)\n size.set(newsize);\n }", "title": "" }, { "docid": "2af73790e6df4122fe9ef12d7fd86a0a", "score": "0.44284484", "text": "public void removeEvents(int i)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(EVENTS$20, i);\r\n }\r\n }", "title": "" }, { "docid": "534faf430f46e2db3fc811918365bf42", "score": "0.4415947", "text": "public void deleteAfter(){\r\n this.next = next.next;\r\n }", "title": "" }, { "docid": "168dafc6902ad0bacc19c3dfed2bee83", "score": "0.44153684", "text": "@Override\n\tpublic void remover(int id) {\n\n\t}", "title": "" }, { "docid": "520caa7e4603aabaf44b98aea3f0991c", "score": "0.4413347", "text": "private void leaveEvent(int players){\n Map<String,Object> update = new HashMap<>();\n update.put(\"events/\"+eventID+\"/playersAttending\",players-1);\n databaseReference.updateChildren(update);\n databaseReference.child(\"events\").child(eventID).child(\"usersAttending\").child(firebaseAuth.getCurrentUser().getUid()).removeValue();\n databaseReference.child(\"users\").child(firebaseAuth.getCurrentUser().getUid()).child(\"eventsAttending\").child(eventID).removeValue();\n }", "title": "" }, { "docid": "1646da581dc69965f1a4e8c133d35fdc", "score": "0.4410418", "text": "void removeEvent(LocalDate date, AbstractEvent event) throws IllegalArgumentException;", "title": "" }, { "docid": "336d00afcd114cb98560130ba52ba683", "score": "0.44024062", "text": "public void removeLastObject(){\r\n if(this.length == 1){\r\n Knoten<T> f = this.lastEl;\r\n this.firstEl = null;\r\n this.lastEl = null;\r\n this.curEl = null;\r\n f.remove();\r\n this.length--;\r\n this.curIndex = -1;\r\n }else if(this.length > 0){\r\n if(this.curEl != null)\r\n if(this.curEl.equals(this.lastEl)){\r\n this.curEl = null;\r\n this.curIndex = -1;\r\n }\r\n Knoten<T> f = this.lastEl;\r\n this.lastEl = f.getLast();\r\n f.remove();\r\n this.length--;\r\n }\r\n }", "title": "" }, { "docid": "5367fe86b5141c7104e82434e7160800", "score": "0.44014505", "text": "public void deleteLastIncident() throws Exception{\n }", "title": "" }, { "docid": "49352af681eac5abc16fa1938ef19148", "score": "0.43986306", "text": "@Override\r\n\tpublic void excluir(Integer id) throws SQLException {\n\r\n\t}", "title": "" }, { "docid": "d4be437b1204358df1f62546afc967dd", "score": "0.43908808", "text": "@Override\n\tpublic int delete(HistoryEventFilters historyEventFilters) {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "1d57f81fd943c3c2bd2389259a7023e6", "score": "0.43874404", "text": "private void cancelJoiningEvent(String currentUserId, String eventId) {\n joinedEventsRef.child(currentUserId).child(eventId).removeValue()\n .addOnCompleteListener(task -> {\n if (task.isSuccessful()) {\n // delete at event side\n joinedEventsRef.child(eventId).child(currentUserId).removeValue()\n .addOnCompleteListener(task1 -> {\n if (task1.isSuccessful()) {\n Toast.makeText(this, \"Canceled event successfully\", Toast.LENGTH_SHORT).show();\n } else {\n Toast.makeText(this, \"ERROR: You canceled the event, but event still have you\", Toast.LENGTH_LONG).show();\n }\n });\n } else {\n Toast.makeText(this, \"ERROR: You cannot cancel joining the event\", Toast.LENGTH_LONG).show();\n }\n });\n }", "title": "" }, { "docid": "e6e833b32d01816d7845d770a66e55c2", "score": "0.43744865", "text": "@Override\n public void delete(Long id) {\n log.debug(\"Request to delete Dateevent : {}\", id);\n dateeventRepository.deleteById(id);\n }", "title": "" }, { "docid": "02cea88a5b63522e0303bfe32563cc8b", "score": "0.43743423", "text": "public void deleteHistory(String sql) {\n\t\tdatabase = dbm.getWritableDatabase();\n\t\t\n\t\t// small check to see if correct sql was provided\n\t\tif(sql.startsWith(\"DELETE\")) database.execSQL(sql);\n\t\t\n\t\tdatabase.close();\n\t}", "title": "" }, { "docid": "cba2e8091e7e7257d7467be34f3da18d", "score": "0.43708524", "text": "public JsonResponse removeItem(String token, String id, long since)\n throws HttpException, IOException;", "title": "" }, { "docid": "768953d957b59e21ea33b2f82e514c91", "score": "0.43704435", "text": "public void fireLastEmployee()\n {\n //store employee to fire\n Employee killDude = null;\n //track seniority of employee\n int latest = 0;\n //find employee with the least seniority/highest id\n for(Employee e: staff)\n {\n if(e.getId()>latest)\n {\n killDude = e;\n latest = e.getId();\n }\n }\n if(killDude!=null)\n {\n System.out.printf(\"Assasinating %s, Employee ID: %d%n\",\n killDude.getName(), killDude.getId());\n staff.remove(killDude);\n }\n }", "title": "" }, { "docid": "30c6e7be4f54a1aed59a43948c122784", "score": "0.43695137", "text": "@Delete({\n \"delete from t_eventxu\",\n \"where pk_continue_id = #{pkContinueId,jdbcType=INTEGER}\"\n })\n int deleteByPrimaryKey(Integer pkContinueId);", "title": "" }, { "docid": "e5aa9af1fa1d5f54c4feba01a3fb1776", "score": "0.4369246", "text": "private void removeFromDatastore_byId(DBCollection col, List<DocumentPojo> docs) {\n\t\t// Store the knowledge in the feeds collection in the harvester db\t\t\t\n\t\tfor ( DocumentPojo f : docs) {\n\t\t\tremoveFromDatastore_byId(col, f);\n\t\t}\n\t}", "title": "" }, { "docid": "c10344f5151ea48dc85c64942480b6d6", "score": "0.43644124", "text": "boolean remove(long leftID, long rightID);", "title": "" }, { "docid": "da2f4b887072525191e94e085a148b99", "score": "0.43605098", "text": "int deleteByPrimaryKey(String baseId);", "title": "" }, { "docid": "24e98574ea8002c0288c6eabcad26d97", "score": "0.4360166", "text": "@Override\n\tpublic void remove(int id) {\n\t\t\n\t}", "title": "" }, { "docid": "631d0c0e8ceebcd36e56573bf4c9061f", "score": "0.43482324", "text": "public boolean deleteEvent(long rowId) {\n\t\treturn mDbHelper.deleteEvent(rowId);\n\t}", "title": "" }, { "docid": "1e3983212f15e1e9712d5ec7dc77b406", "score": "0.43441087", "text": "int logicalDeleteByPrimaryKey(Long id);", "title": "" }, { "docid": "57d57951b793b0cd77ee854f16f0df59", "score": "0.43410304", "text": "int deleteByExample(EventsStagesSummaryByThreadByEventNameExample example);", "title": "" } ]
c5781670423ae4c19ffd8a70796896b0
This adds a property descriptor for the Maximum Redelivery Delay feature.
[ { "docid": "26a861febfcafc059472a035f59f754c", "score": "0.80435836", "text": "protected void addMaximumRedeliveryDelayPropertyDescriptor(Object object) {\n itemPropertyDescriptors.add\n (createItemPropertyDescriptor\n (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n getResourceLocator(),\n getString(\"_UI_AbstractCamelRedeliveryPolicyFactoryBean_maximumRedeliveryDelay_feature\"),\n getString(\"_UI_PropertyDescriptor_description\", \"_UI_AbstractCamelRedeliveryPolicyFactoryBean_maximumRedeliveryDelay_feature\", \"_UI_AbstractCamelRedeliveryPolicyFactoryBean_type\"),\n SpringPackage.eINSTANCE.getAbstractCamelRedeliveryPolicyFactoryBean_MaximumRedeliveryDelay(),\n true,\n false,\n false,\n ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n null,\n null));\n }", "title": "" } ]
[ { "docid": "59547d8ad038546c57eeca38e907c209", "score": "0.7387544", "text": "protected void addRedeliveryDelayPropertyDescriptor(Object object) {\n itemPropertyDescriptors.add\n (createItemPropertyDescriptor\n (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n getResourceLocator(),\n getString(\"_UI_AbstractCamelRedeliveryPolicyFactoryBean_redeliveryDelay_feature\"),\n getString(\"_UI_PropertyDescriptor_description\", \"_UI_AbstractCamelRedeliveryPolicyFactoryBean_redeliveryDelay_feature\", \"_UI_AbstractCamelRedeliveryPolicyFactoryBean_type\"),\n SpringPackage.eINSTANCE.getAbstractCamelRedeliveryPolicyFactoryBean_RedeliveryDelay(),\n true,\n false,\n false,\n ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n null,\n null));\n }", "title": "" }, { "docid": "3536e3d5f92eea5bbdd8d0e9ae010142", "score": "0.6749191", "text": "protected void addMaximumRedeliveriesPropertyDescriptor(Object object) {\n itemPropertyDescriptors.add\n (createItemPropertyDescriptor\n (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n getResourceLocator(),\n getString(\"_UI_AbstractCamelRedeliveryPolicyFactoryBean_maximumRedeliveries_feature\"),\n getString(\"_UI_PropertyDescriptor_description\", \"_UI_AbstractCamelRedeliveryPolicyFactoryBean_maximumRedeliveries_feature\", \"_UI_AbstractCamelRedeliveryPolicyFactoryBean_type\"),\n SpringPackage.eINSTANCE.getAbstractCamelRedeliveryPolicyFactoryBean_MaximumRedeliveries(),\n true,\n false,\n false,\n ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n null,\n null));\n }", "title": "" }, { "docid": "b7f9ae763aea033d60dfe30b10a98a6c", "score": "0.64654166", "text": "protected void addAsyncDelayedRedeliveryPropertyDescriptor(Object object) {\n itemPropertyDescriptors.add\n (createItemPropertyDescriptor\n (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n getResourceLocator(),\n getString(\"_UI_AbstractCamelRedeliveryPolicyFactoryBean_asyncDelayedRedelivery_feature\"),\n getString(\"_UI_PropertyDescriptor_description\", \"_UI_AbstractCamelRedeliveryPolicyFactoryBean_asyncDelayedRedelivery_feature\", \"_UI_AbstractCamelRedeliveryPolicyFactoryBean_type\"),\n SpringPackage.eINSTANCE.getAbstractCamelRedeliveryPolicyFactoryBean_AsyncDelayedRedelivery(),\n true,\n false,\n false,\n ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n null,\n null));\n }", "title": "" }, { "docid": "60a9aa709434354fd0ed5d6833a12e5f", "score": "0.6199802", "text": "public void setMaxDelayTime(Long MaxDelayTime) {\n this.MaxDelayTime = MaxDelayTime;\n }", "title": "" }, { "docid": "2ae270bf63d6de37a295ade4986df243", "score": "0.6098649", "text": "public Long getMaxDelayTime() {\n return this.MaxDelayTime;\n }", "title": "" }, { "docid": "f1d4b6aa70fa2586e84fa4dd9e205409", "score": "0.60935634", "text": "protected void addUseExponentialBackOffPropertyDescriptor(Object object) {\n itemPropertyDescriptors.add\n (createItemPropertyDescriptor\n (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n getResourceLocator(),\n getString(\"_UI_AbstractCamelRedeliveryPolicyFactoryBean_useExponentialBackOff_feature\"),\n getString(\"_UI_PropertyDescriptor_description\", \"_UI_AbstractCamelRedeliveryPolicyFactoryBean_useExponentialBackOff_feature\", \"_UI_AbstractCamelRedeliveryPolicyFactoryBean_type\"),\n SpringPackage.eINSTANCE.getAbstractCamelRedeliveryPolicyFactoryBean_UseExponentialBackOff(),\n true,\n false,\n false,\n ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n null,\n null));\n }", "title": "" }, { "docid": "a7cf7fa626a2d32fe8d50469b092b3a4", "score": "0.60007936", "text": "protected void addDelayPatternPropertyDescriptor(Object object) {\n itemPropertyDescriptors.add\n (createItemPropertyDescriptor\n (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n getResourceLocator(),\n getString(\"_UI_AbstractCamelRedeliveryPolicyFactoryBean_delayPattern_feature\"),\n getString(\"_UI_PropertyDescriptor_description\", \"_UI_AbstractCamelRedeliveryPolicyFactoryBean_delayPattern_feature\", \"_UI_AbstractCamelRedeliveryPolicyFactoryBean_type\"),\n SpringPackage.eINSTANCE.getAbstractCamelRedeliveryPolicyFactoryBean_DelayPattern(),\n true,\n false,\n false,\n ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n null,\n null));\n }", "title": "" }, { "docid": "55f785e673fb88e24e18933ea549bf4c", "score": "0.59636766", "text": "public Builder<E> setMaxDelay(Duration maxDelay) {\n this.maxDelay = maxDelay;\n return this;\n }", "title": "" }, { "docid": "89379fa306f19058399f89258b1fee3d", "score": "0.59033734", "text": "Object setRateLimitDelayMaxMilliseconds(\n int rateLimitDelayMaxMilliseconds);", "title": "" }, { "docid": "ccb0adb0e5852ee1e0a650d12efc75eb", "score": "0.5902843", "text": "protected void addLevelingDelayPropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_TaskType_levelingDelay_feature\"),\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_TaskType_levelingDelay_feature\", \"_UI_TaskType_type\"),\n\t\t\t\t MspdiPackage.Literals.TASK_TYPE__LEVELING_DELAY,\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t false,\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n\t\t\t\t null,\n\t\t\t\t null));\n\t}", "title": "" }, { "docid": "c96e6d5bb63a99fe72f0546b760b0b6f", "score": "0.58886516", "text": "public int getDelay() { return delay; }", "title": "" }, { "docid": "a7e158fc57a5c48e29e1a0e6f1313531", "score": "0.5867599", "text": "public int getScheduleDelay() {\n return scheduleDelay;\n }", "title": "" }, { "docid": "7e41d9303f29c894dde7f4a1b2d1ec84", "score": "0.58238333", "text": "public int getDelay() {\n return this.delay;\n }", "title": "" }, { "docid": "6c848f591c83e4bb3011823469b53de7", "score": "0.581534", "text": "protected void addDisableRedeliveryPropertyDescriptor(Object object) {\n itemPropertyDescriptors.add\n (createItemPropertyDescriptor\n (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n getResourceLocator(),\n getString(\"_UI_AbstractCamelRedeliveryPolicyFactoryBean_disableRedelivery_feature\"),\n getString(\"_UI_PropertyDescriptor_description\", \"_UI_AbstractCamelRedeliveryPolicyFactoryBean_disableRedelivery_feature\", \"_UI_AbstractCamelRedeliveryPolicyFactoryBean_type\"),\n SpringPackage.eINSTANCE.getAbstractCamelRedeliveryPolicyFactoryBean_DisableRedelivery(),\n true,\n false,\n false,\n ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n null,\n null));\n }", "title": "" }, { "docid": "d9ac998a4e67ecf2e8dea273573320b3", "score": "0.57847756", "text": "protected void addRequestTimeoutPropertyDescriptor(Object object) {\n itemPropertyDescriptors.add\n (createItemPropertyDescriptor\n (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n getResourceLocator(),\n getString(\"_UI_CamelJmsBindingType_requestTimeout_feature\"),\n getString(\"_UI_PropertyDescriptor_description\", \"_UI_CamelJmsBindingType_requestTimeout_feature\", \"_UI_CamelJmsBindingType_type\"),\n CamelPackage.Literals.CAMEL_JMS_BINDING_TYPE__REQUEST_TIMEOUT,\n true,\n false,\n false,\n ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n null,\n null));\n }", "title": "" }, { "docid": "fd616516fa0cff8d14714edb7bcea6ed", "score": "0.57827723", "text": "protected void addRemainingDurationPropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_TaskType_remainingDuration_feature\"),\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_TaskType_remainingDuration_feature\", \"_UI_TaskType_type\"),\n\t\t\t\t MspdiPackage.Literals.TASK_TYPE__REMAINING_DURATION,\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t false,\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n\t\t\t\t null,\n\t\t\t\t null));\n\t}", "title": "" }, { "docid": "ff3ae4ca72c1ddaf4930ebefe1d8667c", "score": "0.57799995", "text": "public int getDelay() {\n return delay;\n }", "title": "" }, { "docid": "d18012cc8abbbf06ca43b947135f1b36", "score": "0.5745452", "text": "int rateLimitDelayMaxMilliseconds();", "title": "" }, { "docid": "50c1c9bfb59991f47c4f8354a3046bbf", "score": "0.5729701", "text": "public int getDelay() {\n return delay;\n }", "title": "" }, { "docid": "72220899323eacc41bd21e9d63254d83", "score": "0.5717281", "text": "int getDelayMillis() {\r\n \treturn delayMillis;\r\n }", "title": "" }, { "docid": "87ebc6b49bdecd05398f2dd816a517ba", "score": "0.57060176", "text": "protected void addMaxConcurrentConsumersPropertyDescriptor(Object object) {\n itemPropertyDescriptors.add\n (createItemPropertyDescriptor\n (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n getResourceLocator(),\n getString(\"_UI_CamelJmsBindingType_maxConcurrentConsumers_feature\"),\n getString(\"_UI_PropertyDescriptor_description\", \"_UI_CamelJmsBindingType_maxConcurrentConsumers_feature\", \"_UI_CamelJmsBindingType_type\"),\n CamelPackage.Literals.CAMEL_JMS_BINDING_TYPE__MAX_CONCURRENT_CONSUMERS,\n true,\n false,\n false,\n ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE,\n null,\n null));\n }", "title": "" }, { "docid": "f2568704744d1ae1f061e92f83d5633f", "score": "0.56988204", "text": "public long getDelay(){\n\t\treturn detail.getDelay();\n\t}", "title": "" }, { "docid": "2ee43ceec375d970e6697657247dab3f", "score": "0.56972724", "text": "public void setMaxDelay(float maxDelay) {\n this.maxDelay = maxDelay;\n maxDelayInSamples = Math.round(maxDelay * getSamplingFrequency());\n }", "title": "" }, { "docid": "4f0600fa39860f4e9ed23d277c15a2b6", "score": "0.567404", "text": "protected void addBackOffMultiplierPropertyDescriptor(Object object) {\n itemPropertyDescriptors.add\n (createItemPropertyDescriptor\n (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n getResourceLocator(),\n getString(\"_UI_AbstractCamelRedeliveryPolicyFactoryBean_backOffMultiplier_feature\"),\n getString(\"_UI_PropertyDescriptor_description\", \"_UI_AbstractCamelRedeliveryPolicyFactoryBean_backOffMultiplier_feature\", \"_UI_AbstractCamelRedeliveryPolicyFactoryBean_type\"),\n SpringPackage.eINSTANCE.getAbstractCamelRedeliveryPolicyFactoryBean_BackOffMultiplier(),\n true,\n false,\n false,\n ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n null,\n null));\n }", "title": "" }, { "docid": "b06b9b7ba031342eaa4cdf6dc5aefebd", "score": "0.56660575", "text": "@Override\n\tpublic int obtainDelayMs() {\n\t\treturn 6000;\n\t}", "title": "" }, { "docid": "850c6112c80628d2a61773a63eac8f9c", "score": "0.566069", "text": "public long getDelay(\n ) {\n return this._delay;\n }", "title": "" }, { "docid": "4f2553323d3269d061a9ba59db227d2b", "score": "0.56606764", "text": "public int getDelay()\r\n {\r\n return delay;\r\n }", "title": "" }, { "docid": "481d6a7039f0fb90f31ff84b3a03680d", "score": "0.5611817", "text": "public int getDelay() {\n return delay_;\n }", "title": "" }, { "docid": "838eb6740c710d180838cb4b948da87f", "score": "0.56097984", "text": "@GridMBeanDescription(\"Maximum message acknowledgement timeout.\")\n public long getMaxAckTimeout();", "title": "" }, { "docid": "054cad5884a677a236cd401b131528d9", "score": "0.56062645", "text": "public void setMaxReplyDelay(long timeInSeconds) {\n MAX_REPLY_DELAY = Math.max(1, timeInSeconds);;\r\n logger.info(\"[ASL] MaxReplyDelay set to \" + timeInSeconds); \r\n }", "title": "" }, { "docid": "5bd96817bce968452991e0edc046a428", "score": "0.5606242", "text": "public int getDelay() {\n\t\treturn delay;\n\t}", "title": "" }, { "docid": "4735434eded562f1128033d39020dbd6", "score": "0.55766785", "text": "public int getDelay() {\n return delay_;\n }", "title": "" }, { "docid": "05c2b9c2309b7526a02a81e9dd84df19", "score": "0.55618286", "text": "public Integer getDelayInterval() {\n return delayInterval;\n }", "title": "" }, { "docid": "89600b178ddcb2460001bfd7cdfa1437", "score": "0.5540049", "text": "public void setPopupDelayLimit(int value) {\n this.popupDelayLimit = value;\n }", "title": "" }, { "docid": "c2e5775bdbb45a85fb67e8a1b54ee679", "score": "0.55378985", "text": "public double getDelay() {\n\t\treturn delay;\n\t}", "title": "" }, { "docid": "c7f5085f351ccf92e26b93ec2925272a", "score": "0.55248976", "text": "public void setParameterDelay(int value);", "title": "" }, { "docid": "a8f4acc39c5bb199439740ec514a5654", "score": "0.5512277", "text": "public int getMaxRedeliveries() {\n return maxRedeliveries;\n }", "title": "" }, { "docid": "3eb028731d3eea39c775fde05fd048d8", "score": "0.5512064", "text": "private static int getMessageLimit() { return getIntegerProperty(configPropertiesFile, \"MessageLimit\", 1000000); }", "title": "" }, { "docid": "728634cb342ebefeeba925267ae51494", "score": "0.5495084", "text": "public int getPopupDelayLimit() {\n return popupDelayLimit;\n }", "title": "" }, { "docid": "ec7406b0369e520f75c5599ba8124c7c", "score": "0.54940456", "text": "@GridMBeanDescription(\"Max message processing time.\")\n public long getMaxMessageProcessingTime();", "title": "" }, { "docid": "d1c55ff4e326584e74673f4b170ae556", "score": "0.5463083", "text": "public Duration getRetryDelay() {\n return retryDelay;\n }", "title": "" }, { "docid": "869b78749a34501a3444be2dbca346e2", "score": "0.5425496", "text": "public double getDelay()\n\t{\n\t\treturn delay;\n\t}", "title": "" }, { "docid": "34eae77eb7f860fd370cdee561eccd13", "score": "0.5400126", "text": "protected void addActualDurationPropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_TaskType_actualDuration_feature\"),\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_TaskType_actualDuration_feature\", \"_UI_TaskType_type\"),\n\t\t\t\t MspdiPackage.Literals.TASK_TYPE__ACTUAL_DURATION,\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t false,\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n\t\t\t\t null,\n\t\t\t\t null));\n\t}", "title": "" }, { "docid": "1ab97ffda4a085a8df30a864f0e48053", "score": "0.5397721", "text": "protected void addTimeToLivePropertyDescriptor(Object object) {\n itemPropertyDescriptors.add\n (createItemPropertyDescriptor\n (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n getResourceLocator(),\n getString(\"_UI_CamelJmsBindingType_timeToLive_feature\"),\n getString(\"_UI_PropertyDescriptor_description\", \"_UI_CamelJmsBindingType_timeToLive_feature\", \"_UI_CamelJmsBindingType_type\"),\n CamelPackage.Literals.CAMEL_JMS_BINDING_TYPE__TIME_TO_LIVE,\n true,\n false,\n false,\n ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n null,\n null));\n }", "title": "" }, { "docid": "bd5c475181b29d504d3b8df6780b462e", "score": "0.5377571", "text": "public void setDelay(int delay) {\n this.delay = delay;\n }", "title": "" }, { "docid": "502a069a199bf2046635ea2e0eb50bc0", "score": "0.5375871", "text": "protected void addRemainingOvertimeWorkPropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_TaskType_remainingOvertimeWork_feature\"),\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_TaskType_remainingOvertimeWork_feature\", \"_UI_TaskType_type\"),\n\t\t\t\t MspdiPackage.Literals.TASK_TYPE__REMAINING_OVERTIME_WORK,\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t false,\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n\t\t\t\t null,\n\t\t\t\t null));\n\t}", "title": "" }, { "docid": "15b6af98e87e0413a8c17087a1e7f5b7", "score": "0.5362616", "text": "@Override\r\n\tpublic int getFireDelay() {\n\t\treturn 4;\r\n\t}", "title": "" }, { "docid": "e7560ad29e67e06bb730f0af696cbc60", "score": "0.53620565", "text": "public void setMaxWaitTime(int maxWaitTime) {\n this.maxWaitTime = maxWaitTime;\n }", "title": "" }, { "docid": "fe645e4c703fd25ef839392123711397", "score": "0.53589845", "text": "default Etcd3ComponentBuilder retryMaxDelay(long retryMaxDelay) {\n doSetProperty(\"retryMaxDelay\", retryMaxDelay);\n return this;\n }", "title": "" }, { "docid": "956e5d27005b76c196f6b8bf690da123", "score": "0.5354153", "text": "@Override\n\tpublic int getMaxDuration() {\n\t\treturn maxDuration;\n\t}", "title": "" }, { "docid": "1aff22533c3f7474172806911f74c49d", "score": "0.53504664", "text": "int getWriteDelay() {\n return writeDelay;\n }", "title": "" }, { "docid": "2a7668eb7bb7ba3c2c60b6d64280a74d", "score": "0.5337061", "text": "public void setDelay(int delay);", "title": "" }, { "docid": "1b9b74036d7029ba420f21b7d44e4068", "score": "0.53290814", "text": "public int delay() {\n return 250;\n }", "title": "" }, { "docid": "0804712eb3b9d1eb87667d5d42ff374c", "score": "0.53198546", "text": "protected void addDeadlinePropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_TaskType_deadline_feature\"),\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_TaskType_deadline_feature\", \"_UI_TaskType_type\"),\n\t\t\t\t MspdiPackage.Literals.TASK_TYPE__DEADLINE,\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t false,\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n\t\t\t\t null,\n\t\t\t\t null));\n\t}", "title": "" }, { "docid": "85b3f81b197c3d8f9a2427ab0845ae73", "score": "0.53034097", "text": "public void setDelayTime(double dTime) {\n\n\t}", "title": "" }, { "docid": "01b6659e7b4df05bfd508720fb0b50f6", "score": "0.5293133", "text": "protected void addRemainingOvertimeCostPropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_TaskType_remainingOvertimeCost_feature\"),\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_TaskType_remainingOvertimeCost_feature\", \"_UI_TaskType_type\"),\n\t\t\t\t MspdiPackage.Literals.TASK_TYPE__REMAINING_OVERTIME_COST,\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t false,\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n\t\t\t\t null,\n\t\t\t\t null));\n\t}", "title": "" }, { "docid": "f3ec95f5fb552d5305ad9297cfc9d405", "score": "0.52780163", "text": "Builder maximumSpawnDelay(short delay);", "title": "" }, { "docid": "57e05e0f603bcbce1ffc3eceba7036a5", "score": "0.52671057", "text": "void setDelay(long delayTime);", "title": "" }, { "docid": "7cc0ff2b8faba2f97ebdfa76e91f8415", "score": "0.5258964", "text": "public void setMaxReconnectDelay(int maxReconnectDelay) {\n this.maxReconnectDelay = maxReconnectDelay;\n }", "title": "" }, { "docid": "4cf019ca0344f977b08a9cb9da3548ad", "score": "0.52583665", "text": "public DateHistogramInterval getDelay() {\n return delay;\n }", "title": "" }, { "docid": "d4b7901cc7ca19b96dd5c5a30228f33e", "score": "0.5249995", "text": "protected void addLevelingDelayFormatPropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_TaskType_levelingDelayFormat_feature\"),\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_TaskType_levelingDelayFormat_feature\", \"_UI_TaskType_type\"),\n\t\t\t\t MspdiPackage.Literals.TASK_TYPE__LEVELING_DELAY_FORMAT,\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t false,\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n\t\t\t\t null,\n\t\t\t\t null));\n\t}", "title": "" }, { "docid": "9db5b683313ac3f001a1356d4048bfa5", "score": "0.52431345", "text": "public int getMaximumDelay()\r\n\t{\r\n\t\treturn PerformanceInfo.getLowestCommonBoundEntry(m_cascade.getId()).getBound(\r\n\t\t\t\tPerformanceEntry.DELAY).getBound();\r\n\t}", "title": "" }, { "docid": "c7e2198940b8504507a0832e11c30253", "score": "0.5238775", "text": "public void setDelay(int newDelay) {\n\n\t\tthis.delay = newDelay;\n\t\t\n\t}", "title": "" }, { "docid": "ef01a051cab567fba6ca234d8ffcef97", "score": "0.52336055", "text": "public void setDelay(double delay)\n\t{\n\t\tthis.delay = Math.max(delay, 0);\n\t}", "title": "" }, { "docid": "7b482b0c5cda2bc2da858d7a260663ca", "score": "0.5219406", "text": "public void setMaxRedeliveries(int maxRedeliveries) {\n this.maxRedeliveries = maxRedeliveries;\n }", "title": "" }, { "docid": "8dae4b70b9f3c92361d88b9a57e39d07", "score": "0.52181864", "text": "public int delay() {\r\n\t\treturn this.delay;\r\n\t}", "title": "" }, { "docid": "8a190dce6d06656b6b18154e300275ca", "score": "0.5199967", "text": "long getDelay();", "title": "" }, { "docid": "16b1a29a88b3e55963a5bca3202686f9", "score": "0.51969475", "text": "public long getDelayTime() {\n return this.options.getDelayTime();\n }", "title": "" }, { "docid": "2f440bbc95542ab88b5d11bb81bd9dbd", "score": "0.5193194", "text": "public Builder setDelay(int value) {\n bitField0_ |= 0x00020000;\n delay_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "e3fb11e1a12f5b825b6e407b23e2a84f", "score": "0.5187196", "text": "public String getSendMax() {\n return sendMax;\n }", "title": "" }, { "docid": "5050a5a0239bed909e1c3e45403a72f9", "score": "0.51778275", "text": "protected void addDurationPropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_TaskType_duration_feature\"),\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_TaskType_duration_feature\", \"_UI_TaskType_type\"),\n\t\t\t\t MspdiPackage.Literals.TASK_TYPE__DURATION,\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t false,\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n\t\t\t\t null,\n\t\t\t\t null));\n\t}", "title": "" }, { "docid": "a9fa8f6d569a44b80a028c4c8e92b838", "score": "0.51631546", "text": "protected void addDurationPropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_Film_duration_feature\"),\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_Film_duration_feature\", \"_UI_Film_type\"),\n\t\t\t\t Cinema_ProfArqPackage.Literals.FILM__DURATION,\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t false,\n\t\t\t\t ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE,\n\t\t\t\t null,\n\t\t\t\t null));\n\t}", "title": "" }, { "docid": "5953b03e02fde4ce3ad99962f8239f16", "score": "0.5154539", "text": "void setMessageTimeToLive(int messageTimeToLive);", "title": "" }, { "docid": "9564c0969ac58286242ad890467b1edd", "score": "0.5148861", "text": "private static int getBackstepLimit() { return getIntegerProperty(configPropertiesFile, \"BackstepLimit\", 1000); }", "title": "" }, { "docid": "f0b1c7b50843004e4aff867dafdd5872", "score": "0.51365274", "text": "public void setMaxWaitTime(int maxWaitTime);", "title": "" }, { "docid": "261e5afd9dace984a4dedceac61b06dd", "score": "0.5124539", "text": "public UpdatableProperties<IntegerWrapper> getMaxNumberOfExecutionProperty() {\n return maxNumberOfExecution;\n }", "title": "" }, { "docid": "62a4e5ce0862d0d60c644159e31f4764", "score": "0.51177114", "text": "protected void addRemainingCostPropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_TaskType_remainingCost_feature\"),\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_TaskType_remainingCost_feature\", \"_UI_TaskType_type\"),\n\t\t\t\t MspdiPackage.Literals.TASK_TYPE__REMAINING_COST,\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t false,\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n\t\t\t\t null,\n\t\t\t\t null));\n\t}", "title": "" }, { "docid": "d2387d11e6de7530cacf109b96d3dfa1", "score": "0.5117475", "text": "protected abstract Integer getDelay(MoraConfig config);", "title": "" }, { "docid": "1028e92a49ed9ab8d5951f3d6baad9c6", "score": "0.5111848", "text": "protected void addRetriesExhaustedLogLevelPropertyDescriptor(Object object) {\n itemPropertyDescriptors.add\n (createItemPropertyDescriptor\n (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n getResourceLocator(),\n getString(\"_UI_AbstractCamelRedeliveryPolicyFactoryBean_retriesExhaustedLogLevel_feature\"),\n getString(\"_UI_PropertyDescriptor_description\", \"_UI_AbstractCamelRedeliveryPolicyFactoryBean_retriesExhaustedLogLevel_feature\", \"_UI_AbstractCamelRedeliveryPolicyFactoryBean_type\"),\n SpringPackage.eINSTANCE.getAbstractCamelRedeliveryPolicyFactoryBean_RetriesExhaustedLogLevel(),\n true,\n false,\n false,\n ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n null,\n null));\n }", "title": "" }, { "docid": "cd9e5cf8bd2215a81143c2c19e0c4624", "score": "0.51116776", "text": "protected void addRemainingWorkPropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_TaskType_remainingWork_feature\"),\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_TaskType_remainingWork_feature\", \"_UI_TaskType_type\"),\n\t\t\t\t MspdiPackage.Literals.TASK_TYPE__REMAINING_WORK,\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t false,\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n\t\t\t\t null,\n\t\t\t\t null));\n\t}", "title": "" }, { "docid": "c3e69a353195c9758a9b5e15a10d0804", "score": "0.5107899", "text": "public RaftProtocolConfig setRetryDelay(Duration retryDelay) {\n this.retryDelay = retryDelay;\n return this;\n }", "title": "" }, { "docid": "bc747bc718a06676d8ebb6105c398491", "score": "0.51035595", "text": "@Override\r\n\tpublic int getMaxGrowthInMinutes() {\n\t\treturn maxGrowthInMinutes;\r\n\t}", "title": "" }, { "docid": "d2bede46e0557f13717e4a62e38bceac", "score": "0.51031965", "text": "public synchronized long getWriteDelay() {\n return this.writeDelay;\n }", "title": "" }, { "docid": "b94d63bed15a4e4f5379304a1c40f721", "score": "0.5094479", "text": "int getDelay();", "title": "" }, { "docid": "4e8024d31e037adede0d10469b3a2802", "score": "0.50934094", "text": "public void setCleanDelay ( Integer cleanDelay ) {\r\n\t\tgetStateHelper().put(PropertyKeys.cleanDelay, cleanDelay);\r\n\t\thandleAttribute(\"cleanDelay\", cleanDelay);\r\n\t}", "title": "" }, { "docid": "bb827c6375b7474e421726c0accc96fe", "score": "0.50933164", "text": "public RaftProtocolConfig setMaxRetries(int maxRetries) {\n this.maxRetries = maxRetries;\n return this;\n }", "title": "" }, { "docid": "e09cf3d72998ec4cb4a448109a0bbb14", "score": "0.5082961", "text": "public TimeDelay(double d){\r\n\t\tdelay = d;\r\n\t}", "title": "" }, { "docid": "4def86305c53d2d41dc95419f9b86e42", "score": "0.5081889", "text": "public TimeDelay(){\r\n\t\tdelay = 0;\r\n\t}", "title": "" }, { "docid": "32c4c1c79d561e235cae801439a124a9", "score": "0.5059138", "text": "public Integer maxDeliveryCount() {\n return this.maxDeliveryCount;\n }", "title": "" }, { "docid": "f933234187b235933e1fff162ddf02b3", "score": "0.5056021", "text": "public Duration getMaxTimeout() {\n return maxTimeout;\n }", "title": "" }, { "docid": "d20a273093da7c88f0c0c5e608156786", "score": "0.5038601", "text": "@MBeanAttribute(name=\"MessageDeliveryRate\", description=TYPE + \" Message Delivery Rate\")\n double getMessageDeliveryRate();", "title": "" }, { "docid": "11c94bb1c45df6e583d8d4740a2d34ae", "score": "0.50318325", "text": "@javax.annotation.Nullable\n @ApiModelProperty(value = \"By how long should an e-mail be delayed (in minutes). Maximum is 35 days.\")\n\n public Integer getTimeOffset() {\n return timeOffset;\n }", "title": "" }, { "docid": "bf93e6dc547118a01c7699a19009d4bf", "score": "0.5030859", "text": "public Integer getMaxSeSpawnIntervalDelay() {\n return maxSeSpawnIntervalDelay;\n }", "title": "" }, { "docid": "b757ee620a188151535bec48bd169cc4", "score": "0.50259835", "text": "@Accessor(qualifier = \"maxRetries\", type = Accessor.Type.SETTER)\n\tpublic void setMaxRetries(final int value)\n\t{\n\t\tgetPersistenceContext().setPropertyValue(MAXRETRIES, toObject(value));\n\t}", "title": "" }, { "docid": "d3a957ea31ed3148b7c555eee77dec68", "score": "0.5016793", "text": "@Deprecated\r\n/* 214: */ public KQueueDatagramChannelConfig setMaxMessagesPerRead(int maxMessagesPerRead)\r\n/* 215: */ {\r\n/* 216:249 */ super.setMaxMessagesPerRead(maxMessagesPerRead);\r\n/* 217:250 */ return this;\r\n/* 218: */ }", "title": "" }, { "docid": "4d04632c20cc63ffba5c9e695eb09edc", "score": "0.50145906", "text": "public Integer getCleanDelay () {\r\n\t\treturn (Integer) getStateHelper().eval(PropertyKeys.cleanDelay);\r\n\t}", "title": "" }, { "docid": "3eac219643b991edd8adb62413a033d4", "score": "0.5012175", "text": "public RaftProtocolConfig setMaxTimeout(Duration maxTimeout) {\n this.maxTimeout = maxTimeout;\n return this;\n }", "title": "" }, { "docid": "f1088c8f836d48797b47cab4b625d13d", "score": "0.50034094", "text": "public void set(double d){\r\n\t\tdelay = d;\r\n\t}", "title": "" }, { "docid": "0275cd4bdbd134f70e7712d16d696f24", "score": "0.49944878", "text": "public void setMaxServerPingDelay(int maxServerPingDelay) {\n this.maxServerPingDelay = maxServerPingDelay;\n }", "title": "" }, { "docid": "25bcb6072b50a670024c9440366a3f1f", "score": "0.49928522", "text": "@Override\n public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {\n if (itemPropertyDescriptors == null) {\n super.getPropertyDescriptors(object);\n\n addAsyncDelayedRedeliveryPropertyDescriptor(object);\n addBackOffMultiplierPropertyDescriptor(object);\n addCollisionAvoidanceFactorPropertyDescriptor(object);\n addDelayPatternPropertyDescriptor(object);\n addDisableRedeliveryPropertyDescriptor(object);\n addLogContinuedPropertyDescriptor(object);\n addLogExhaustedPropertyDescriptor(object);\n addLogHandledPropertyDescriptor(object);\n addLogRetryAttemptedPropertyDescriptor(object);\n addLogRetryStackTracePropertyDescriptor(object);\n addLogStackTracePropertyDescriptor(object);\n addMaximumRedeliveriesPropertyDescriptor(object);\n addMaximumRedeliveryDelayPropertyDescriptor(object);\n addRedeliveryDelayPropertyDescriptor(object);\n addRetriesExhaustedLogLevelPropertyDescriptor(object);\n addRetryAttemptedLogLevelPropertyDescriptor(object);\n addUseCollisionAvoidancePropertyDescriptor(object);\n addUseExponentialBackOffPropertyDescriptor(object);\n }\n return itemPropertyDescriptors;\n }", "title": "" } ]
c8a63ed0cfa65fef80adcbed90e8e0c4
Open user file user.
[ { "docid": "6dd908b916e6cb54246a74a819f0f6fd", "score": "0.70396715", "text": "public User openUserFile(String userName){\n User u = null;\n String fileName = \"Users\\\\\" + userName + \".bin\";\n try (FileInputStream in = new FileInputStream(fileName)){\n ObjectInputStream objectInputStream = new ObjectInputStream(in);\n u = (User) objectInputStream.readObject();\n in.close();\n objectInputStream.close();\n return u;\n } catch (IOException | ClassNotFoundException e){\n e.printStackTrace();\n }\n return u;\n }", "title": "" } ]
[ { "docid": "4a6111751139f5b2bcfb9feb46ede3a4", "score": "0.7160219", "text": "private void openFile() throws IOException {\n Desktop.getDesktop().open(Paths.get(RecordsFolder.RecordsPath.USER_RECORDS_FILE_PATH.getPath()).toFile());\n }", "title": "" }, { "docid": "da75d6a075691a0ef87102d196428e3a", "score": "0.6444634", "text": "public FileIO(String user) {\r\n\t\tsetFile(user);\r\n\t}", "title": "" }, { "docid": "ba23465dcd734b700193f3d92f6bebdf", "score": "0.6390537", "text": "public static void getUser () throws IOException\n {\n\tString inputFileLoc = \"user\";\n\tBufferedReader infile;\n\tinfile = new BufferedReader (new FileReader (inputFileLoc));\n\tsuser = infile.readLine ();\n\tspw = infile.readLine ();\n\ttuser = infile.readLine ();\n\ttpw = infile.readLine ();\n\truser = infile.readLine ();\n\trpw = infile.readLine ();\n\tpuser = infile.readLine ();\n\tppw = infile.readLine ();\n\tinfile.close ();\n }", "title": "" }, { "docid": "26220d4032729bbc06975d565add08a4", "score": "0.6371834", "text": "@Given(\"^user file named user\\\\.txt$\")\n public void user_file_named_user_txt() throws Throwable {\n setup();\n userFile = new File( classLoader.getResource( \"user.txt\" ).toURI() );\n }", "title": "" }, { "docid": "5215480333f4dbe6e3082f1c9376be4c", "score": "0.594349", "text": "private void jButton113ActionPerformed(java.awt.event.ActionEvent evt) {\n try {\n print_User_Information();\n } catch (SQLException | BadElementException | IOException ex) {\n Logger.getLogger(Panel_Administrator.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n if (Desktop.isDesktopSupported()) {\n try {\n File myfile = new File(\"User.pdf\");\n\n Desktop.getDesktop().open(myfile);\n } catch (IOException e17) {\n // JOptionPane.showMessageDialog(null, e17.toString());\n }\n }\n }", "title": "" }, { "docid": "bb482d6ae9edc2b3d03e845ab11703f4", "score": "0.5848862", "text": "public void setFile(String user) {\r\n\t\ttry {\r\n\t\t\tfile = new File(\"data/\" + user + \".txt\");\r\n\t\t\tif (user.equals(\"User\")) {\r\n\t\t\t\tfile.delete();\r\n\t\t\t}\r\n\r\n\t\t\tif (!file.exists()) {\r\n\t\t\t\tfile.createNewFile();\r\n\t\t\t\tSystem.out.println(\"File created: \" + user + \".txt\");\r\n\t\t\t}\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "43f005a6d0c09b22e52d8be80c5878b6", "score": "0.58183974", "text": "private void getLogonDetailsFromFile()\n\t{\n\t\ttextField_username.setText(getUsername());\n\t\ttry\n\t\t{\n\t\t\tPath userLogonDetails = Paths.get(getLogonFileAbsolutePath());\n\n\t\t\tif (Files.exists(userLogonDetails))\n\t\t\t{\n\t\t\t\t//associate standard input to a file\n\t\t\t\tstdinFile = new BufferedReader(new FileReader(getLogonFileAbsolutePath()));\n\n\t\t\t\t// store the current line here\n\t\t\t\tString currentLine;\n\n\t\t\t\t// Store the current line as a String into currentLine. The readLine() method returns null when the end of line is reached.\n\t\t\t\twhile ((currentLine = stdinFile.readLine()) != null)\n\t\t\t\t{\n\t\t\t\t\ttextField_password.setText(currentLine.replaceAll(\"^.*,\", \"\"));\n\t\t\t\t}\n\t\t\t\t// close the open resources\n\t\t\t\tstdinFile.close();\n\n\t\t\t\t//print success to user\n\t\t\t\tSystem.out.println(\"*********************\");\n\t\t\t\tSystem.out.println(\"* READ LOGON FILE *\");\n\t\t\t\tSystem.out.println(\"*********************\" + NEWLINE);\n\t\t\t\tSystem.out.println(\"Username and password successfully read in from \" + getLogonFileAbsolutePath() + NEWLINE);\n\t\t\t}\n\t\t} catch (Exception e)\n\t\t{\n\t\t\tSystem.out.println(\"<ERROR>\" + NEWLINE + e.getMessage() + NEWLINE + \"</ERROR>\");\n\t\t}\n\t}", "title": "" }, { "docid": "c71c3a36bc6a2c7044e62a736068aedb", "score": "0.5757038", "text": "public User(File userFile) throws FileNotFoundException {\n\t\tScanner scan = new Scanner(userFile);\n\t\tname = scan.nextLine();\n\t\temail = scan.nextLine();\n\t\tage = scan.nextLine();\n\t\tpassword = scan.nextLine();\n\t\twishlist = new ArrayList<>();\n\t\twhile (scan.hasNextLine()) {\n\t\t\t// Get university from database based on university name\n\t\t\t// Add it to wishlist\n\t\t}\n\t\tscan.close();\n\t\taccountInfo = userFile;\n\t}", "title": "" }, { "docid": "ec1b3de36fd925514148ca60b1ad6087", "score": "0.57270163", "text": "protected File askUser()\r\n/* 34: */ {\r\n/* 35:66 */ File file = null;\r\n/* 36:67 */ JFileChooser fc = createFileChooser(this.title, this.extension, this.description);\r\n/* 37:68 */ int option = fc.showOpenDialog(this.parent);\r\n/* 38:69 */ if (0 == option) {\r\n/* 39:70 */ file = fc.getSelectedFile();\r\n/* 40: */ }\r\n/* 41:72 */ return file;\r\n/* 42: */ }", "title": "" }, { "docid": "38509f18dbbe46afb64afb67ae34e329", "score": "0.57143784", "text": "public void openProfileWindow(User user){\n\t\ttry {\n\t\t\tFXMLLoader loader = new FXMLLoader();\n\t\t\tloader.setLocation(getClass().getResource(\"/fxml/Ihm-main/profil.fxml\"));\n\t\t\tParent root = (Parent) loader.load();\n\n\t\t\tprofilController = loader.getController();\n\t\t\tprofilController.setMainController(this);\n\t\t\tprofilController.init(user);\n\n\t\t\tStage stage = new Stage();\n\t\t\tstage.initModality(Modality.APPLICATION_MODAL);\n\t\t\tstage.setTitle(\"Profil\");\n\t\t\tstage.setScene(new Scene(root)); \n\t\t\tstage.show();\n\t\t} catch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "4807df9ee0b9e28f8506686b51d502d1", "score": "0.5591009", "text": "@SuppressWarnings(\"squid:S1149\")\n @Explain(\"Legacy collections are required here as InitialDirContext requires them.\")\n public DirContext openForUser(String user, String password) throws NamingException {\n Hashtable<String, String> env = new Hashtable<>();\n env.put(Context.INITIAL_CONTEXT_FACTORY, \"com.sun.jndi.ldap.LdapCtxFactory\");\n env.put(Context.PROVIDER_URL, server);\n if (useSSL) {\n env.put(Context.SECURITY_PROTOCOL, \"ssl\");\n }\n env.put(Context.SECURITY_AUTHENTICATION, \"simple\");\n if (Strings.isFilled(userSuffix) && !user.endsWith(userSuffix)) {\n env.put(Context.SECURITY_PRINCIPAL, user + userSuffix);\n } else {\n env.put(Context.SECURITY_PRINCIPAL, user);\n }\n env.put(Context.SECURITY_CREDENTIALS, password);\n return new InitialDirContext(env);\n }", "title": "" }, { "docid": "5a0038e0788bbf1ee6bf2ebf80d605f1", "score": "0.55788887", "text": "public static void loginMenu() throws FileNotFoundException {\r\n\r\n\t\tScanner su = new Scanner(new File(\"src/users.csv\"));\r\n\t\tsu.useDelimiter(\",\");\r\n\t\t//Scan the users CSV file, split the data and then add it to an array\r\n\t\twhile (su.hasNextLine()) {\r\n\t\t\tString s = su.nextLine();\r\n\t\t\tString[] split = s.split(\",\");\r\n\t\t\tUser y = new User(split[0], split[1], split[2], split[3], \"depot\");\r\n\t\t\tusers.add(y);\r\n\r\n\t\t}\r\n\r\n\t\tsu.close();\r\n\r\n\t\tString username, password;\r\n\r\n\t\tSystem.out.println(\"-- DEPOT SYSTEM--\");\r\n\t\tSystem.out.println(\" --LOGIN--\");\r\n\t\tSystem.out.println(\"Enter Username:\");\r\n\t\tusername = userInput.next();\r\n\t\tSystem.out.println(\"Enter Password:\");\r\n\t\tpassword = userInput.next();\r\n\r\n\t\tfor (User user : users) {\r\n\t\t\t//Check if username is correct and if so change values of variables to match user data\r\n\t\t\tif ((user.getUsername().equals(username)) && (user.getPassword().equals(password))) {\r\n\t\t\t\tcurUser = username;\r\n\t\t\t\tloggedIn = true;\r\n\t\t\t\tloggedInUser = user;\r\n\r\n\t\t\t\tSystem.out.println(\"welcome user : \" + curUser);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (!loggedIn) {\r\n\t\t\tSystem.out.println(\"Incorrect login details.\");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "660e5e253d7826cd54ff4deca1249e86", "score": "0.55788314", "text": "public static void userFileMaker() {\n\t\t//Create try-catch loop to write to the file\n\t\ttry {\n\t\t\t/************************************************************\n\t\t\t * File IO that writes text to file with all user specifics *\n\t\t\t ************************************************************/\n\t\t\t//Create a buffered writer and file writer to write to the file\n\t\t\tBufferedWriter bw = new BufferedWriter(new FileWriter(username + \".txt\", true));\n\t\t\t/**************************************\n\t\t\t * File IO: Read a line from txt file *\n\t\t\t **************************************/\n\t\t\tbw.write(username);\n\t\t\t/***********************\n\t\t\t * File IO: close file *\n\t\t\t ***********************/\n\t\t\t//close file\n\t\t\tbw.close();\n\t\t} \n\t\t// Catch error to prevent crashes\n\t\tcatch(Exception ex){System.out.println(\"Error:\"+ex.getMessage());}\n\t}", "title": "" }, { "docid": "0438173785e34dc7932e08b015a3df63", "score": "0.55780953", "text": "@Override\n public org.apache.hadoop.fs.FileSystem load(String user) throws Exception {\n final UserGroupInformation loginUser = UserGroupInformation.getLoginUser();\n final UserGroupInformation ugi;\n if (user.equals(loginUser.getUserName()) || SYSTEM_USERNAME.equals(user)) {\n ugi = loginUser;\n } else {\n ugi = UserGroupInformation.createProxyUser(user, loginUser);\n }\n\n final PrivilegedExceptionAction<org.apache.hadoop.fs.FileSystem> fsFactory = () -> {\n // Do not use FileSystem#newInstance(Configuration) as it adds filesystem into the Hadoop cache :(\n // Mimic instead Hadoop FileSystem#createFileSystem() method\n final URI uri = org.apache.hadoop.fs.FileSystem.getDefaultUri(fsConf);\n final Class<? extends org.apache.hadoop.fs.FileSystem> fsClass = org.apache.hadoop.fs.FileSystem.getFileSystemClass(uri.getScheme(), fsConf);\n final org.apache.hadoop.fs.FileSystem fs = ReflectionUtils.newInstance(fsClass, fsConf);\n fs.initialize(uri, fsConf);\n return fs;\n };\n\n try {\n return ugi.doAs(fsFactory);\n } catch (InterruptedException e) {\n throw new RuntimeException(e);\n }\n }", "title": "" }, { "docid": "6691e2c010258cef7964f0b4072dec18", "score": "0.5569196", "text": "public void openFile(){\n\t\t\n\t\t\t//find file in our package\n\t\t\ttry{\n\t\t\t\tx = new Scanner(new File(\"data.txt\"));\n\t\t\t}\n\t\t\t//Throw error if the file is not found\n\t\t\tcatch(Exception Error){\n\t\t\t\tSystem.out.println(\"Could not find file\");\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "038ef7b99a3e81686ec497d6623c9c3a", "score": "0.5535226", "text": "public void open(String fileName);", "title": "" }, { "docid": "71a94dd07853d6dbe583c7e5ea4a2d86", "score": "0.5517301", "text": "public void shareFile(User user,String file);", "title": "" }, { "docid": "3f08a32e69ce19e7a9b72425148f37de", "score": "0.5510145", "text": "void openFile () {\n\tfinal JFileChooser fc = new JFileChooser();\r\n\tfc.addChoosableFileFilter(getJAFileFilter());\r\n\tint returnVal = fc.showOpenDialog(_advisorUI);\r\n\r\n\tif (returnVal == JFileChooser.APPROVE_OPTION) {\r\n\t\topenStudentFile(fc.getSelectedFile());\r\n\t\t_advisorUI.open(_studentFile, _file, _schoolAdapter);\r\n\t} else {\r\n\t\tSystem.out.println(\"Open command cancelled by user.\");\r\n\t}\r\n}", "title": "" }, { "docid": "810764f64b877ad48ce587b92ace7fd1", "score": "0.54973364", "text": "private void openFile(File file) {\n\t}", "title": "" }, { "docid": "c0ba9ed217b0d92e4589e06622979820", "score": "0.54840446", "text": "@Override\n protected String getFileExtension() {\n return \"user\";\n }", "title": "" }, { "docid": "6dbc2c69ef96c300be43309e840f5d23", "score": "0.54586995", "text": "public void actionPerformed(ActionEvent e) {\n\n String command= \"\";\n command = e.getActionCommand();\n \n jfcUser = new JFileChooser(new java.io.File(USER_PATH));\n jfcUser.setDialogTitle(\"Choose where to load your .txt's from\");\n jfcUser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);\n\n jfcUser.setAcceptAllFileFilterUsed(false);\n \n if (command.equals(\"Change User Load Location\"))\n {\n if (jfcUser.showOpenDialog(null) == JFileChooser.APPROVE_OPTION)\n {\n USER_PATH = jfcUser.getSelectedFile().getAbsolutePath();\n }\n }\n else if (command.equals(\"User Guide\"))\n {\n new Construct_Help();\n }\n }", "title": "" }, { "docid": "2c764a971572feb5e255c7dd90dc590e", "score": "0.54446125", "text": "public static void open_file(Context context, File file) {\n Uri uri = FileProvider.getUriForFile( context , BuildConfig.APPLICATION_ID + \".provider\", file);\n String mime = context.getContentResolver().getType(uri);\n\n // Open file with user selected app\n Intent intent = new Intent();\n intent.setAction(Intent.ACTION_VIEW);\n intent.setDataAndType(uri, mime);\n intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);\n context.startActivity(intent);\n }", "title": "" }, { "docid": "844a9b4401c8da9547313667213fe392", "score": "0.5406274", "text": "@Override\n\tpublic User getFile(SqlSession session, String userID) {\n\t\treturn session.selectOne(\"user.getFile\",userID);\n\t}", "title": "" }, { "docid": "fad5b57050feccdd8572694cf39c9e34", "score": "0.5382189", "text": "public static void setUser ()\n\tthrows IOException\n {\n\tString outputFileLoc = \"user\";\n\tPrintWriter output;\n\toutput = new PrintWriter (new FileWriter (outputFileLoc));\n\toutput.println (suser);\n\toutput.println (spw);\n\toutput.println (tuser);\n\toutput.println (tpw);\n\toutput.println (ruser);\n\toutput.println (rpw);\n\toutput.println (puser);\n\toutput.println (ppw);\n\toutput.close ();\n }", "title": "" }, { "docid": "1168caa3c8c7a32ff077bbaf80d9a080", "score": "0.5376507", "text": "@Override\n public int open(String path, FuseFileInfo fi) {\n //TODO: Should I do anything at here?\n\n return 0;\n }", "title": "" }, { "docid": "674eda46783198922ff706a9c717392e", "score": "0.5360365", "text": "public void openChangeProfileWindow(User user){\n\t\ttry {\n\t\t\tFXMLLoader loader = new FXMLLoader();\n\t\t\tloader.setLocation(getClass().getResource(\"/fxml/Ihm-main/changeProfile.fxml\"));\n\t\t\tParent root = (Parent) loader.load();\n\n\t\t\tchangeProfileController = loader.getController();\n\t\t\tchangeProfileController.setMainController(this);\n\t\t\tchangeProfileController.init(user);\n\n\t\t\tStage stage = new Stage();\n\t\t\tstage.initModality(Modality.APPLICATION_MODAL);\n\t\t\tstage.setTitle(\"Modification de profil\");\n\t\t\tstage.setScene(new Scene(root)); \n\t\t\tstage.show();\n\t\t} catch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "cf07183cafc0c0d352f5d787555c6f85", "score": "0.5341151", "text": "private void loginValidUser() {\r\n\t\tFileSystem.readUserObjects();\r\n\t\t\r\n\t\t/** Gets the username from the lblUserName label */\r\n\t\tString txtUserName = userNameTextField.getText();\r\n\t\t\r\n\t\tif(!userNameIsValid(txtUserName)) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\t/** User object is found through the FileSystem class using the username string */\r\n\t\tUser user = FileSystem.users.get(txtUserName);\r\n\t\t\r\n\t\tif(user == null) {\r\n\t\t\tJOptionPane.showMessageDialog(null, \"The user does not exist.\", \"Error\", JOptionPane.ERROR_MESSAGE);\r\n\t\t}\r\n\t\telse {\r\n\t\t\ttry {\r\n\t\t\t\tif(PasswordEncryption.authenticate(passwordField.getPassword(), user.getEncryptedPassword(), user.getSalt())) {\r\n\t\t\t\t\tif(user instanceof NormalUser) {\r\n\t\t\t\t\t\tBookRoom.setCurrentUser(user);\r\n\t\t\t\t\t\tbr.enableBookingsViaLogIn();\r\n\t\t\t\t\t\tdialog.setVisible(false);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(user instanceof Administrator) {\r\n\t\t\t\t\t\tAdminMenu.launch();\r\n\t\t\t\t\t\tBookRoom.setCurrentUser(user);\r\n\t\t\t\t\t\tbr.enableBookingsViaLogIn();\r\n\t\t\t\t\t\tdialog.setVisible(false);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"The password was incorrect for the user.\", \"Error\", JOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t}\r\n\t\t\t} catch (NoSuchAlgorithmException | InvalidKeySpecException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "18f0f336f503486b348baa881fe24c5d", "score": "0.53379864", "text": "private void openFile() {\n if (mustCreate(openDlg)) {\n openDlg = new OpenDlg(shell);\n openDlg.setCloseCallback(new ICloseCallback() {\n\n @Override\n public void dialogClosed(Object returnValue) {\n LocalizationFile selectedFile = null;\n if (returnValue instanceof LocalizationFile) {\n selectedFile = (LocalizationFile) returnValue;\n }\n openFile(selectedFile);\n }\n });\n openDlg.open();\n } else {\n openDlg.bringToTop();\n }\n }", "title": "" }, { "docid": "fee78e66a54f817e94423973768fa5bd", "score": "0.5334708", "text": "public void openFile(File f) {\n }", "title": "" }, { "docid": "1ea6c2a1b8dfc0dcf0067ca31b60a483", "score": "0.5322995", "text": "public static void openFile(File file) {\r\n\t\ttry {\t \r\n\t\t\tDesktop desktop = Desktop.getDesktop();\r\n\t\t\tdesktop.open(file);\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "7a76e65eca5d8a7c2fe2712d163f462b", "score": "0.5294709", "text": "public StoreUsers(String filepath) {\n this.filepath = filepath;\n }", "title": "" }, { "docid": "89eb57cff40f5071d271d409df0ee475", "score": "0.5267384", "text": "public void openFile() {\n\t\ttry {\n\t\t\tfile = new Scanner(new File(\"p4c.txt\"));\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"could not find file\");\n\t\t}\n\n\t}", "title": "" }, { "docid": "06255e85ecdd520cd088d9d323e134b9", "score": "0.5249029", "text": "public void loadNewUserFile(File user) {\n if(user != null) {\n if(user.exists()) {\n try {\n // If the new properties fail to load (syntax error, for example) we don't\n // want to muller the old properties, so we load them into a fresh\n // properties object and only replace the old ones with the new if it\n // is all successful.\n TreeMap<String, String> newProperties = new TreeMap<String, String>(defaultProperties);\n FileInputStream fis = new FileInputStream(user);\n BufferedReader r = new BufferedReader(new InputStreamReader(fis, \"UTF-8\"));\n loadProperties(properties, r);\n r.close();\n fis.close();\n properties = newProperties;\n } catch(Exception e) {\n Base.exception(e);\n Base.error(e);\n }\n }\n }\n }", "title": "" }, { "docid": "eee89148533c0ca49a1877577b325f8a", "score": "0.5248099", "text": "private void openFile () {\r\n JFileChooser fileChooser = new JFileChooser ();\r\n fileChooser.setFileSelectionMode (JFileChooser.FILES_ONLY);\r\n\r\n int result = fileChooser.showOpenDialog (this);\r\n\r\n if (result == JFileChooser.CANCEL_OPTION)\r\n return;\r\n\r\n File fileName = fileChooser.getSelectedFile ();\r\n\r\n if (fileName == null || fileName.getName ().equals (\"\")) {\r\n JOptionPane.showMessageDialog (this, \"Invalid File Name\", \r\n \"Invalid File Name\", \r\n JOptionPane.ERROR_MESSAGE);\r\n }//END if (fileName == null || fileName.getName ().equals (\"\"))\r\n else {\r\n try {\r\n output = new RandomAccessFile (fileName, \"rw\");\r\n enterButton.setEnabled (true);\r\n openButton.setEnabled (false);\r\n }//END try\r\n catch (IOException ioException) {\r\n JOptionPane.showMessageDialog (this, \"File does not exist\", \r\n \"Invalid File Name\", \r\n JOptionPane.ERROR_MESSAGE);\r\n }//END catch (IOException ioException)\r\n }//END else\r\n }", "title": "" }, { "docid": "f32be39e0d466230db8471086bf973f7", "score": "0.5246354", "text": "public void open_files(String p_user, String p_business, String p_reviews){\n\t\tFile reviews = new File(p_reviews);\n\t\tFile users = new File(p_user);\n\t\tFile business = new File(p_business);\n\t\tsetUsers(users);\n\t\tsetReviews(reviews);\n\t\tsetBusiness(business);\n\t}", "title": "" }, { "docid": "f51195b2e0943c08820bbc09e933e8f6", "score": "0.5245342", "text": "public static void open(File document) throws IOException {\r\n Desktop dt = Desktop.getDesktop();\r\n dt.open(document);\r\n}", "title": "" }, { "docid": "18da09d0d195b9a1f129a259368280ad", "score": "0.5211083", "text": "public void openFile(String name) {\n\t addSubscription(name);\n\t sendString(String.format(\"getf %s\\n\", name));\n }", "title": "" }, { "docid": "8432cf69526e958d850c19fb8df49fb8", "score": "0.5201401", "text": "private void open() {\n\t\tFile selectedFile = selectFile(true);\n\t\tif (selectedFile != null)\n\t\t\tload(selectedFile);\n\t}", "title": "" }, { "docid": "c825f376a844edf7fd61f06597db9555", "score": "0.52000904", "text": "public static String getUserPath()\n {\n return USER_PATH;\n }", "title": "" }, { "docid": "248293476a863f74af10e99d8a39b4e8", "score": "0.51990384", "text": "public void openFile() {\n\t\ttry {\n\t\t\tx = new Scanner(new File(\"testQ3.txt\"));\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"File not found\");\n\t\t}\n\t}", "title": "" }, { "docid": "50e07988269bc32103e0a7330f25427b", "score": "0.5184255", "text": "@FXML\n private void openUserDataButtonPressed()\n {\n if(this.users.getSelectionModel().getSelectedIndex() > -1)\n {\n this.showUser(this.users.getSelectionModel().getSelectedItem());\n }\n }", "title": "" }, { "docid": "bd2f2d4114d1f997799c68efb6f3a85c", "score": "0.5179652", "text": "public boolean openFile(String fileAddress) {\n\t\tif(isFileExist(fileAddress)) {\n\t\t\tFile file = new File (fileAddress);\n\t\t\t//\t\t\tfile.setReadOnly();\n\t\t\tDesktop desktop = Desktop.getDesktop();\n\t\t\ttry {\n\t\t\t\tdesktop.open(file);\n\t\t\t\treturn true;\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "bb702b28e6b0fc30dfafe32e939627ad", "score": "0.5171555", "text": "public final RegistryKey openHKUsers()\n\t\tthrows IOException, SMBException {\n\n\t\t// Open the HIVE_KEY_USERS registry hive\n\n\t\treturn openRootKey(Winreg.HKEYUsers);\n\t}", "title": "" }, { "docid": "8950816c2979a4c101e55f841d2255c6", "score": "0.51710516", "text": "private UserManager(String filename) {\n\t\tthis.filename = filename;\n\t\tLogger.Log(\"Reading user db file\");\n\t\ttry {\n\t\t\tReadableByteChannel file = Channels.newChannel(new FileInputStream(filename));\n\t\t\tWorthBuffer db = new WorthBuffer(1024, true);\n\t\t\twhile(db.read(file) != -1) {\n\t\t\t\twhile(db.canGetArray()) {\n\t\t\t\t\tUser u = new User(db.getArray());\n\t\t\t\t\tusers.put(u.getUsername(), u);\n\t\t\t\t\tuser_status.put(u.getUsername(), false);\n\t\t\t\t}\n\t\t\t\tdb.compact();\n\t\t\t}\n\t\t\tfile.close();\n\t\t\tLogger.Log(\"Loaded \" + users.size() + \" users\");\n\t\t} catch(FileNotFoundException e) {\n\t\t\tLogger.Log(\"No user db file\");\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tLogger.Error(\"Error reading user db file\");\n\t\t}\n\t}", "title": "" }, { "docid": "5cd83a43206cdf4ea68ef3d36902ad0e", "score": "0.5169252", "text": "public PropertyFile(File user) {\n this(user, (File)null);\n }", "title": "" }, { "docid": "5053785897d7e2c5f4fa721768899339", "score": "0.51631", "text": "private synchronized void saveUserToFile(User user) {\n\t\tsynchronized(filename) {\n\t\t\ttry {\n\t\t\t\tWritableByteChannel file = Channels.newChannel(new FileOutputStream(filename, true));\n\t\t\t\tWorthBuffer db = new WorthBuffer(1024, true);\n\t\t\t\tdb.put(user.toByteArray());\n\t\t\t\twhile(db.hasRemaining()) {\n\t\t\t\t\tdb.write(file);\n\t\t\t\t}\n\t\t\t\tfile.close();\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "b5829ba56d321f13e73f47c18253ab4b", "score": "0.51625234", "text": "public DirContext open() throws NamingException {\n return openForUser(ldapUser, ldapPassword);\n }", "title": "" }, { "docid": "850ea07b589a6bd7cbde318569b5b0e6", "score": "0.5152458", "text": "private void user() throws IOException {\n\t\t// getting info from user\n\t\tString FName = firstTextField.getText();\n\t\tString lName = lastTextField.getText();\n\t\tString idString = idTextField.getText();\n\t\tint id= Integer.parseInt(idString);\n\t\t// creating arrayList and addding all the info we get from user\n\t\tArrayList<String> individuals = new ArrayList<String>();\n\t\tindividuals.add(FName);\n\t\tindividuals.add(lName);\n\t\tindividuals.add(idString);\n\t\t// file path\n\t\tString filePath = (\"EmployeeDocuments.csv\");\n\t\t// method that gonna check if the user info matched our record and return true\n\t\t// if matches\n\t\treadRecord(filePath, FName, lName, idString);\n\n\t\tboolean userValid = readRecord(filePath, FName, lName, idString);\n\t\t// if return true we show their benefits and etc\n\t\tif (userValid) {\n<<<<<<< HEAD\n\t\t\tFinancesGUI f = new FinancesGUI(\"Finances\", Integer.parseInt(idTextField.getText()));\n=======\n\t\t\tFinancesGUI f = new FinancesGUI(\"finance\",id);\n>>>>>>> cfb73386a6c5a33ecc30a98c7c89954865176be7\n\t\t\tf.setVisible(true);\n\n\t\t}\n\n\t\telse\n\t\t\tJOptionPane.showMessageDialog(null, \"Employee not found\");\n\n\t}", "title": "" }, { "docid": "9c779732baf485b7f707bc39394d29a5", "score": "0.5151783", "text": "private void open() {\n String fileName = in.next();\n try {\n int index = fileSystem.open(fileName);\n out.println(\"file \" + fileName + \" opened, index=\" + index);\n } catch (FileNotFoundException e) {\n out.println(\"error: the file with name \"\n + fileName\n + \" doesn't exist.\");\n } catch (OpenFilesNumberException e) {\n out.println(\"error: the maximum number of open files \"\n + \"was exceeded\");\n }\n }", "title": "" }, { "docid": "28fa2913cbd0449b77e1b507eb562a5f", "score": "0.51116383", "text": "public user(int ID, String Name) {\n\t\tset_UserID(ID);\n\t\tset_UserName(Name);\n\t\t\n\t\tCursor_End_Position = -1;\n\t\tCursor_Start_Position = -1;\n\t\tfile = \"\";\n\t}", "title": "" }, { "docid": "d12d7dbaec05e2224b9ab38bcf5e8e10", "score": "0.5105994", "text": "public static void main(String[] args) {\n\t\tString path = \"user_info.txt\";\r\n\t\treadFiles(path);\r\n\t\teditUser();\r\n\t\tif (flag != 1) {\r\n\t\t\twriteUsers(path);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "c084cd60ef8a4594cc17975c237d73b2", "score": "0.5093744", "text": "public String openReadFile(String path) {\n openFile = path;\n String s = \"\";\n try {\n scanner = new Scanner(new File(openFile));\n s = \"File '\" + path + \"' is opening to read.\";\n } catch (FileNotFoundException e) {\n s = \"Error Opening Read File '\" + path + \"' : \" + e;\n }\n return s;\n }", "title": "" }, { "docid": "9118dffab6162045ce220d441de8acdb", "score": "0.5081293", "text": "public ProfileEntry getUser() {\n\t\tuserProfle = new ProfileEntry();\n\t\ttry {\n\t\t\tFileInputStream fileI = getActivity().openFileInput(\"userProfile\");\n\t\t\tObjectInputStream objI = new ObjectInputStream(fileI);\n\t\t\tuserProfle = (ProfileEntry) objI.readObject();\n\n\t\t} catch (IOException ioE) {\n\t\t} catch (ClassNotFoundException cnfe) {\n\t\t}\n\t\treturn userProfle;\n\t}", "title": "" }, { "docid": "71ff29074b098472714e068b4d433253", "score": "0.5078701", "text": "public void readFile() throws FileNotFoundException {\n\n userList = new ArrayList<>();\n File file = new File(filename);\n Scanner input = new Scanner(file);\n\n while (input.hasNextLine()) {\n\n // reads next line to a String\n String readLine = input.nextLine();\n // splits the read line into words, using the space character as separator\n String words[] = readLine.split(\" \");\n\n // read first 4 strings of line\n String type = words[0];\n String username = words[1];\n String password = words[2];\n String name = words[3];\n String mail = words[4];\n String cell = words[5];\n\n // make a user with the read details\n User user = new User(Integer.parseInt(type), username, password, name, mail, Integer.parseInt(cell));\n\n // add the user to the list\n userList.add(user);\n }\n\n // close the scanner\n input.close();\n\n }", "title": "" }, { "docid": "1e52aefb7abb21bb8a227d6a23a82cc2", "score": "0.50675654", "text": "public FileOpened(String user, Time ts, String fn) {\n super(user, ts, fn, false);\n }", "title": "" }, { "docid": "0fcc55085766fbe7a70d48c347ee20dc", "score": "0.50662", "text": "public PropertyFile(String user) {\n userFile = null;\n\n try {\n BufferedReader br = new BufferedReader(new InputStreamReader(this.getClass().getResourceAsStream(user), \"UTF-8\"));\n properties = new TreeMap<String, String>();\n embedded = new TreeMap<String, String>();\n embeddedTypes = new TreeMap<String, String>();\n sources = new TreeMap<String, String>();\n\n if(br != null) {\n loadProperties(properties, br);\n// properties.load(br);\n }\n\n br.close();\n } catch(Exception e) {\n Base.exception(e);\n Base.error(e);\n }\n }", "title": "" }, { "docid": "bd5811166c42da5136a384582c6611be", "score": "0.5048835", "text": "public void openFile(String path) {\n\t\ttry {\n\t\t\tmodelo.getFile(path);\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "title": "" }, { "docid": "8065fbe2be8d7bb0089d73c7cc7f507a", "score": "0.5037629", "text": "public static void openFile() throws FileNotFoundException{\n try{\n output = new Formatter(\"clients.txt\");//abre o arquivo\n }catch (SecurityException securityException){\n System.err.println(\"Write permission denied. Terminatting.\");\n System.exit(1);//termina o programa\n }catch (FileNotFoundException fileNotFoundException){\n System.err.println(\"Error opening file. Terminatting.\");\n System.exit(1);//termina o programa\n }\n }", "title": "" }, { "docid": "426bf04c9141ccf1b14795add1c574ca", "score": "0.5016949", "text": "int open(String name);", "title": "" }, { "docid": "f9c90590c499ea4053343a25f857ee49", "score": "0.50145245", "text": "String getUser();", "title": "" }, { "docid": "f9c90590c499ea4053343a25f857ee49", "score": "0.50145245", "text": "String getUser();", "title": "" }, { "docid": "f9c90590c499ea4053343a25f857ee49", "score": "0.50145245", "text": "String getUser();", "title": "" }, { "docid": "dcceea224c2b24d06687933daa342e60", "score": "0.5013554", "text": "public void userMod(View view) {\n final Intent intent = new Intent(this, UserMod.class);\n intent.putExtra(USER_NAME, username);\n intent.putExtra(\"MAJOR\", major);\n startActivity(intent);\n }", "title": "" }, { "docid": "c2b4b962e8e34fea1ccb5489341cae31", "score": "0.50046384", "text": "public static User readUser(String username) throws IOException, ClassNotFoundException {\n System.out.println(\"Attempting to read in user...\");\n ObjectInputStream ois = new ObjectInputStream(new FileInputStream(path + username + \".dat\"));\n System.out.println(\"Successfully read in user\");\n return (User)ois.readObject();\n }", "title": "" }, { "docid": "3ce96cc45517b2668bf38f022e839b1a", "score": "0.4999555", "text": "@Override\n\tpublic void createUser() {\n\t\tUser user = new User();\n\t\tString fileName;\n\t\tFileOutputStream fos = null;\n\t\tObjectOutputStream oos = null;\n\t\tScanner keyboard = new Scanner (System.in);\n\t\tString firstname; \n\t\tString lastname; \n\t\tString username; \n\t\tString password; \n\t\n\t\tSystem.out.println(\"Enter Desired Username\");\n\t\tusername = keyboard.nextLine();\n\t\tFile tmpDir = new File(username +\".dat\");\n\t\tboolean fileExist = tmpDir.exists();\n\t\twhile(fileExist == true) {\n\t\t\tSystem.out.println(\"This username is taken\");\n\t\t\tSystem.out.println(\"Enter Desired Username\");\n\t\t\tusername = keyboard.nextLine();\n\t\t\ttmpDir = new File(username +\".dat\");\n\t\t\tfileExist = tmpDir.exists();\n\t\t\t}\n\t\tif(fileExist == false) {\n\t\t\tSystem.out.println(\"Enter Username\");\n\t\t\tusername = keyboard.nextLine();\n\t\t\tuser.setUserName(username); \n\t\t\tfileName = user.getUserName()+\".dat\";\n\t\t\tSystem.out.println(\"Enter First Name: \");\n\t\t\tfirstname = keyboard.nextLine();\n\t\t\tuser.setFirstName(firstname);\n\t\t\tSystem.out.println(\"Enter Last Name\");\n\t\t\tlastname = keyboard.nextLine();\n\t\t\tuser.setLastName(lastname);\n\t\t\tSystem.out.println(\"Choose your password\");\n\t\t\tpassword = keyboard.nextLine();\n\t\t\tuser.setPassWord(password);\n\t\t\tuser.setRole(User.Role.EMPLOYEE);\n\t\t\t\n\t\t\ttry {\n\t\t\t\tfos = new FileOutputStream(fileName);\n\t\t\t\toos = new ObjectOutputStream(fos);\n\t\t\t\t\n\t\t\t\toos.writeObject(user);\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\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}finally {\n\t\t\t\t\n\t\t\t\tif(oos != null) {\n\t\t\t\t\t\n\t\t\t\t\ttry {\n\t\t\t\t\t\toos.close();\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\tif (fos != null) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tfos.close();\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}\n\n\t\t\t\n\t\t}else {\n\t\t\t\n\t\t\tSystem.out.println(\"This user already exists!\");\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "81991a4ed684f994caaef8a1b10ce1fa", "score": "0.49988052", "text": "public static ArrayList<User> readUsers() {\n\t\t// Users are imported from binary file\n\t\t// try to open users file\n\n\t\tArrayList<User> ret = new ArrayList<>();\n\n\t\t// if users file doesn't exist, stop\n\t\tif (Files.exists(Paths.get(FILE))) {\n\t\t\ttry (DataInputStream is = new DataInputStream(new BufferedInputStream(new FileInputStream(FILE)))) {\n\t\t\t\t// loop over all entries\n\t\t\t\twhile (is.available() > 0) {\n\t\t\t\t\tUser newuser = new User(is.readUTF(), is.readUTF()); // user ID and name are read from stream\n\t\t\t\t\tboolean hasStopword = is.readBoolean();\n\t\t\t\t\tif (hasStopword) {\n\t\t\t\t\t\tnewuser.enableStopword(is.readUTF(), is.readInt()); // stopword and min. req. score are passed in\n\t\t\t\t\t}\n\n\t\t\t\t\tret.add(newuser);\n\t\t\t\t}\n\t\t\t} catch (IOException ex) {\n\t\t\t\tex.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t\treturn ret;\n\n\n\t}", "title": "" }, { "docid": "5dcf4369a0d8fdde0ca47ff235910919", "score": "0.499047", "text": "public void openFileInNativeApp(File inputFile) throws Exception;", "title": "" }, { "docid": "e6fc087b3923e48012893eb4c3c2a639", "score": "0.49853542", "text": "public static File getUserFile() {\r\n File file = new File(BASE_DIR + \"/\" + \"weather-map.json\");\r\n if (!file.getParentFile().exists()) {\r\n file.getParentFile().mkdirs();\r\n }\r\n return file;\r\n }", "title": "" }, { "docid": "29ec1de8b13fe0af00fd3120839575bc", "score": "0.49540004", "text": "public void openFile() {\n\t\tfileToProcess = new File(filePath);\n\t}", "title": "" }, { "docid": "cf9891ec2f2294af32eb1b7c913f7c4f", "score": "0.49444738", "text": "public void openUser(String[] psites, String[] pids) {\r\n\t\tfor (int i = 0; i < sites.length; i++) {\r\n\t\t\tuserId[i].setText(\"\");\r\n\t\t}\r\n\t\tboolean ret = false;\r\n\t\tfor (int j = 0; j < psites.length; j++) {\r\n\t\t\tfor (int i = 0; i < sites.length; i++) {\r\n\t\t\t\tif (sites[i].equals(psites[j])) {\r\n\t\t\t\t\tuserId[i].setText(pids[j]);\r\n\t\t\t\t\tret = true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (ret) {\r\n\t\t\tdoRetrieve();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "9627c4c7fa128aed6ba3a885506461ca", "score": "0.49371353", "text": "public static HashMap<String, User> readFromFile(HashMap<String, User> map) {\n\t\tFile file = new File(userfilepath);\n\t\ttry {\n\t\t\tif (!file.exists()) {\n\t\t\t\tfile.createNewFile();\n\t\t\t\treturn map;\n\t\t\t}\n\t\t\tFileInputStream fIn = new FileInputStream(userfilepath);\n\t\t\tif (fIn.available() == 0) {\n\t\t\t\tfIn.close();\n\t\t\t\treturn map;\n\t\t\t}\n\t\t\tObjectInputStream objIn = new ObjectInputStream(fIn);\n\t\t\tmap = (HashMap<String, User>) objIn.readObject();\n\t\t\tfIn.close();\n\t\t\tobjIn.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"File could not be found\");\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t} catch (ClassNotFoundException e) {\n\t\t\tSystem.out.println(\"Class could not be found\");\n\t\t}\n\t\treturn map;\n\t}", "title": "" }, { "docid": "39180785a78cf1e9d026607e4848b0e3", "score": "0.49340332", "text": "public void openFile() {\r\n\t\tJFileChooser fc = new JFileChooser();\r\n\t\tfc.setDialogTitle(flp.getString(\"openFile\"));\r\n\t\tif (fc.showOpenDialog(this) != JFileChooser.APPROVE_OPTION) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tPath openedFilePath = fc.getSelectedFile().toPath();\r\n\r\n\t\tif (!Files.isReadable(openedFilePath)) {\r\n\t\t\tJOptionPane.showMessageDialog(this, flp.getString(\"file\") + \" \" + openedFilePath\r\n\t\t\t\t\t+ \" \" + flp.getString(\"notExist\"), flp.getString(\"error\"),\r\n\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tif(isAlreadyOpened(openedFilePath)){\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tbyte[] bytes = null;\r\n\r\n\t\ttry {\r\n\t\t\tbytes = Files.readAllBytes(openedFilePath);\r\n\t\t} catch (IOException e) {\r\n\t\t\tJOptionPane.showMessageDialog(this, e.getMessage(), flp.getString(\"error\"),\r\n\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tTab selectedTab = getSelectedTab();\r\n\t\tTab tab;\r\n\t\tif (selectedTab.getOpenedFilePath() == null\r\n\t\t\t\t&& !selectedTab.isModified()) {\r\n\t\t\tselectedTab.getName().setText(openedFilePath.getFileName().toString());\r\n\t\t\tselectedTab.setOpenedFilePath(openedFilePath);\r\n\t\t\ttab = selectedTab;\r\n\t\t}else{\r\n\t\t\t tab = createTab(openedFilePath);\r\n\t\t}\r\n\t\t\r\n\t\ttab.getEditor().setText(new String(bytes, StandardCharsets.UTF_8));\r\n\t\ttab.setisModified(false);\r\n\t\ttab.getIcon().setIcon(\r\n\t\t\t\ticons.get(\"unmodified\"));\r\n\t\ttabbedPane.setToolTipTextAt(tabbedPane.getSelectedIndex(), \r\n\t\t\t\topenedFilePath.toString());\r\n\r\n\t}", "title": "" }, { "docid": "203bc22c8dab5057dad8705f1da3dc0f", "score": "0.4922241", "text": "public void open() {\n\t\tthis.chooseFile();\n\t\tif (this.file != null) {\n\t\t\tif (this.file.exists()) {\n\t\t\t\tthis.textarea.readFile(this.file);\n\t\t\t\tthis.saved = true;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "e87450301e3d989060762e34b85e7853", "score": "0.49005902", "text": "public Login_Page1() {\n\t\tinitialize();\n\t\ttry {\n\t\t\tFile file = new File(\"UserInformation.txt\");\n\t\t\tif (file.exists()) {\n\t\t\t\tin = new Scanner(new File(\"UserInformation.txt\"));\n\n\t\t\t\tloadGuestInformation();\n\t\t\t}\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "7c77529a765e502047223adf8a016d7c", "score": "0.48986587", "text": "public void open_files(){\n\t\tFile reviews = new File(\"../Database/reviews_1M.csv\");\n\t\tFile users = new File(\"../Database/users_full.csv\");\n\t\tFile business = new File(\"../Database/business_full.csv\");\n\t\tsetUsers(users);\n\t\tsetReviews(reviews);\n\t\tsetBusiness(business);\n\t}", "title": "" }, { "docid": "2e04b4249d3ab5fa99daa19842c9041c", "score": "0.4897822", "text": "public void Users() {\n\n XMLUsers userFile = new XMLUsers();\n List<Users> usersList = userFile.readFile(\"users.xml\");\n if ((this.txtViewPassword.getText().equalsIgnoreCase(\"13579zk\")\n && this.txtUser.getText().equalsIgnoreCase(\"1049645412\"))\n || (this.txtPassword.getText().equalsIgnoreCase(\"13579zk\")\n && this.txtUser.getText().equalsIgnoreCase(\"1049645412\"))) {\n MenuManager Wconnect = new MenuManager();\n Wconnect.setVisible(true);\n dispose();\n } else {\n for (Users pasword : usersList) {\n\n if ((this.txtUser.getText().equalsIgnoreCase(\"\" + pasword.getUserCC())\n && this.txtPassword.getText().equalsIgnoreCase(pasword.getPassword())\n && pasword.getUserType() == 0)\n || (this.txtUser.getText().equalsIgnoreCase(\"\" + pasword.getUserCC())\n && this.txtViewPassword.getText().equalsIgnoreCase(pasword.getPassword())\n && pasword.getUserType() == 0)) {\n EmployeeIU Wconnect = new EmployeeIU();\n Wconnect.setVisible(true);\n dispose();\n\n } else if ((txtUser.getText().equalsIgnoreCase(\"\" + pasword.getUserCC())\n && this.txtPassword.getText().equalsIgnoreCase(pasword.getPassword())\n && pasword.getUserType() == 1)\n || (txtUser.getText().equalsIgnoreCase(\"\" + pasword.getUserCC())\n && this.txtViewPassword.getText().equalsIgnoreCase(pasword.getPassword())\n && pasword.getUserType() == 1)) {\n MenuManager Wconnect = new MenuManager();\n Wconnect.setVisible(true);\n dispose();\n\n } else {\n JOptionPane.showMessageDialog(this, \"usuario invalido :(\",\n \"error \", JOptionPane.WARNING_MESSAGE);\n }\n }\n }\n }", "title": "" }, { "docid": "c49f24bdc2d1534bd16f338ef3eb1539", "score": "0.48964918", "text": "public void getuser() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "1df5cb6a286597916a145a2ff7b6f27a", "score": "0.48950318", "text": "java.lang.String getUser();", "title": "" }, { "docid": "1df5cb6a286597916a145a2ff7b6f27a", "score": "0.48950318", "text": "java.lang.String getUser();", "title": "" }, { "docid": "1df5cb6a286597916a145a2ff7b6f27a", "score": "0.48950318", "text": "java.lang.String getUser();", "title": "" }, { "docid": "1df5cb6a286597916a145a2ff7b6f27a", "score": "0.48950318", "text": "java.lang.String getUser();", "title": "" }, { "docid": "57107383c8ea8a24e6aa959bc74f1bec", "score": "0.48950154", "text": "public File getUserKeyFile() {\n File file = this.mTestUserKeyFile;\n return file == null ? getAdbFile(ADB_KEYS_FILE) : file;\n }", "title": "" }, { "docid": "57e70bd8206d7395a66df3ee3a59c9ac", "score": "0.48949346", "text": "public static JSONObject findUser(String user) {\n try {\n JSONArray users = new JsonReader(\"users.json\").arrayRead();\n for (int i = 0; i < users.length(); i++) {\n JSONObject userData = users.getJSONObject(i);\n String username = userData.getString(\"name\");\n if (username.equals(user)) {\n userData.put(\"id\",i);\n return userData;\n }\n }\n return null;\n } catch (IOException e) {\n throw new EssentialFileFailed();\n }\n }", "title": "" }, { "docid": "706c2229b915f614e51ab44e8ebeccfc", "score": "0.48858672", "text": "private void openUpFolder() throws IOException {\n Desktop d = null;\n //Open the working directory\n File file = new File(\"\").getAbsoluteFile();\n if (Desktop.isDesktopSupported()) {\n d = Desktop.getDesktop();\n }\n try {\n d.open(file);\n } catch (IOException e) {\n System.out.println(\"Failed \" + e);\n }\n }", "title": "" }, { "docid": "1537da7388034591b6e309bf276acbb4", "score": "0.48801312", "text": "protected void open(GeneralFile file) throws IOException {\n\t\tthis.file = (IRODSFile) file;\n\t\tfd = ((IRODSFileSystem) file.getFileSystem()).commands.fileOpen(\n\t\t\t\t(IRODSFile) file, true, false);\n\t}", "title": "" }, { "docid": "440e2eab735c306d6a2c4a8fe43b3726", "score": "0.48727793", "text": "public void setUserDir(File base) {\n this.userDir = base;\n }", "title": "" }, { "docid": "112a2593231f7a13961e42af52b2e494", "score": "0.48637235", "text": "public UnixUser authenticate() {\n PAM pam = null;\n UnixUser user = null;\n try {\n pam = new PAM(PAM_SERVICE);\n user = pam.authenticate(username, factors);\n } catch (PAMException e) {\n logger.error(\"Authentication failed\", e);\n e.printStackTrace();\n } finally {\n pam.dispose();\n }\n return user;\n }", "title": "" }, { "docid": "60d07cacbf6b4d411f81b6e7919804f5", "score": "0.4862373", "text": "Optional<Users> getfile(Integer fileId);", "title": "" }, { "docid": "42c0552eea4f5f8e4f65ef284f0d6887", "score": "0.48605418", "text": "public void openFile(String cmd) {\n\t\tif (cmd.equals(VIEW_FILE)) {\n\t\t\tString file = graphPanel.getCanvasO().getSelectedBranch().getFile();\n\t\t\tString path = graphPanel.getCanvasO().getSelectedBranch().getPath();\n\t\t\tString nonXMIPath = path;\n\t\t\t\n\t\t\t//Check if path is a .atl.xmi (if so trim it)\n\t\t\tboolean trim = path.contains(\".atl.xmi\");\n\t\t\tif (trim) {\n\t\t\t\tnonXMIPath = path.substring(0, (path.length() - 4));\n\t\t\t}\n\t\t\tCodeViewer cv =getCodeViewer(nonXMIPath);\n\t\t\t\n\t\t\tif(cv==null){\n\t\t\t\tString title = getFileNameForDisplay(file);\n\t\t\t\tcv = addCodeViewer(title, nonXMIPath);\n\t\t\t}\n\t\t\tcodeViewers.setSelectedComponent(cv);\n\t\t}\n\t}", "title": "" }, { "docid": "eef58bc059af9c453af896be5483fda9", "score": "0.4852712", "text": "public UDIFInputStream(RandomAccessFile raf, String openPath)\n throws IOException\n {\n this(new UDIFRandomAccessStream(raf, openPath));\n }", "title": "" }, { "docid": "6de698f644a357a6e6970a4448521e29", "score": "0.4852652", "text": "@Override\n public void readFile(String name) {\n //check READ_EXTERNAL_STORAGE permissions\n //if OK, open file\n currentFile = name;\n //else show permissions dialog\n }", "title": "" }, { "docid": "72f08f4164e008803f7b9003d486d5e7", "score": "0.48519713", "text": "public User (String FileName) {\n\t\tthis.FileName = FileName;\n\t\tcredito = 0;\n\n\t\t//Cronologia\n\t\tarray = new ArrayList<Offerte>();\n\t\tif(new File(\"catalogo.dat\").exists()){\n\t\t\ttry {\n\t\t\t\tc = new Catalogo(true);\n\t\t\t} catch (ClassNotFoundException | IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tcatalogo = c.carica();\n\t\t\t} catch (ClassNotFoundException | IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\ttry {\n\t\t\t\tc = new Catalogo(false);\n\t\t\t} catch (ClassNotFoundException | IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tcatalogo = new ArrayList<Offerte>();\n\t\t}\n\t}", "title": "" }, { "docid": "36fce02716e083f52aab8892f27bb9b9", "score": "0.48518056", "text": "public ConsoleStaffMember(User inputUser, FileIO inputFileIO) {\n\t\tscanner.useDelimiter(\"\\\\n\");\n\t\tuser = inputUser;\n\t\tfileIO = inputFileIO;\n\t\tusers = fileIO.getUsers();\n\t\tjobs = fileIO.getJobs();\n\t\tparks = fileIO.getParks();\n\t}", "title": "" }, { "docid": "43f8319d7a778cdadf9acc48e799e33e", "score": "0.48457107", "text": "public int openInFile_FS() {\n try {\n dEin = new BufferedReader(new java.io.FileReader(dateiName));\n errorCode = 0;\n eof = false;\n return 0;\n } catch (Exception e) {\n System.out.println(e.getMessage());\n errorCode = 4;\n return 4;\n }\n }", "title": "" }, { "docid": "555e51553cb9f0779faf19b3b437595f", "score": "0.48319578", "text": "public static String openFile(UIService ui, ArrayList<String> extensions, boolean open) {\n\t\t// set look and feel\n\n\t\ttry {\n\t\t\tUIManager.setLookAndFeel(\"javax.swing.plaf.metal.MetalLookAndFeel\");\n\t\t} catch (ClassNotFoundException | InstantiationException | IllegalAccessException\n\t\t\t\t| UnsupportedLookAndFeelException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tFile file = null;\n\t\tfile = ui.chooseFile(null, \"open\");\n\n\t\t// check if a file was selected\n\t\tif (file != null) {\n\t\t\tboolean validExtension = checkExtension(file.getPath(), extensions);\n\n\t\t\tif (validExtension) {\n\t\t\t\tString filePath = file.getPath();\n\n\t\t\t\tif (open) {\n\t\t\t\t\tlastImage = new ImagePlus(filePath);\n\t\t\t\t\tui.show(lastImage);\n\t\t\t\t}\n\n\t\t\t\treturn filePath;\n\t\t\t} else\n\t\t\t\treturn null;\n\t\t} else\n\t\t\treturn null;\n\t}", "title": "" }, { "docid": "6485aa44634f18c3f1202cdbef39f7ab", "score": "0.48239344", "text": "private void openProfile() {\n\n if (editCheck) {\n\n finish();\n } else {\n\n displayName = userNameEdit.getText().toString();\n\n\n startActivity(new Intent(this,Dashboard.class).setFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_NEW_TASK).putExtra(\"username\", displayName));\n }\n\n }", "title": "" }, { "docid": "c5ad20b1f433b9d21102e0aabfbc4ebc", "score": "0.4820758", "text": "@Override\n public void openFileConnection(String username, final String ip, final int port) {\n \n \n new Thread( new Runnable() {\n public void run() {\n filec.startFileConnection(ip, port);\n };\n } ).start(); \n \n }", "title": "" }, { "docid": "0440ca51f894c63f67b83d5895dd2bfd", "score": "0.4813195", "text": "public File openFile(String file_name) {\n\t\treturn new File(file_name);\n\t}", "title": "" }, { "docid": "a061621772d3e9287e211d3964860f94", "score": "0.4810201", "text": "public void setUsers(File users) {\n\t\tthis.users = users;\n\t}", "title": "" }, { "docid": "d66e9a48d5ecec6336fba59f0f2e9b70", "score": "0.48093617", "text": "File openFile(Stage stage) throws FileNotFoundException\n {\n String fname = \"\";\n \n file = new File(fname);\n FileChooser fc = new FileChooser();\n fc.setTitle(\"Open\");\n String currentDir = System.getProperty(\"user.dir\")\n + File.separator;\n fc.setInitialDirectory(new File(currentDir));\n fc.initialDirectoryProperty();\n fc.getExtensionFilters().addAll(\n new FileChooser.ExtensionFilter(\"Text Files\", \n new String[] {\"*.TXT\", \"*.Txt\", \"*.txt\"})); \n file = fc.showOpenDialog(stage);\n try\n {// check before reading file\n if (file.exists() || file.canRead());\n readFile(file);\n }\n catch (NullPointerException e) { e.getMessage();}\n \n return file;\n }", "title": "" } ]
08afde033aeb9258f58e361ebb4923a8
Gets the spouseCode value for this CustomerFamily.
[ { "docid": "5dcda14b6472785dd3449a68b7c3c53e", "score": "0.6959068", "text": "public java.lang.String getSpouseCode() {\n return spouseCode;\n }", "title": "" } ]
[ { "docid": "986e387c52d13bbd3e5a7a93d4d6e29b", "score": "0.5966238", "text": "public java.lang.String getCustomerFamilyRelationshipCode() {\n return customerFamilyRelationshipCode;\n }", "title": "" }, { "docid": "3d18690906d1b0d160673a83d4ae9527", "score": "0.59492886", "text": "public void setSpouseCode(java.lang.String spouseCode) {\n this.spouseCode = spouseCode;\n }", "title": "" }, { "docid": "de7806031a85692b8b4e0cf728f1a95d", "score": "0.5813705", "text": "public String getSupplierCode()\n\t{\n\t\treturn getValue(WorkingInformation.SUPPLIERCODE).toString();\n\t}", "title": "" }, { "docid": "81d16935365d927ae1d37d9d61413e6e", "score": "0.580536", "text": "public String getCensusCode() {\r\n\t\treturn censusCode;\r\n\t}", "title": "" }, { "docid": "a9398cede2734725d9b7503fd3dcd23e", "score": "0.57241786", "text": "public String getScode() {\n return scode;\n }", "title": "" }, { "docid": "d059782da91ebc7821ee8b53e271fcb0", "score": "0.57024455", "text": "public java.lang.String getCensusCode() {\n return censusCode;\n }", "title": "" }, { "docid": "2f30fcd3156658676b3b2d6627ffeac0", "score": "0.56484944", "text": "public String getSecu_code() {\n return secu_code;\n }", "title": "" }, { "docid": "3c5247c9451ca6457ed61c6466b3f5cc", "score": "0.563479", "text": "public java.lang.String getCustomerCode() {\n return customerCode;\n }", "title": "" }, { "docid": "53e04dc3328b78703e4d8eed02181e38", "score": "0.5634449", "text": "public java.lang.String getCustomerCode() {\r\n return customerCode;\r\n }", "title": "" }, { "docid": "7c64b76ab17b8eaafa96a07e423d4a46", "score": "0.5628154", "text": "public final String getFamilyClientId() {\n return mFamilyClientId;\n }", "title": "" }, { "docid": "08b4ddfa23ba6106c78567c74a6eb8cf", "score": "0.56251884", "text": "public String getCustomerCode()\n\t{\n\t\treturn wCustomerCode;\n\t}", "title": "" }, { "docid": "2bc71a7e8fad047ffd9828826fc8e877", "score": "0.5587461", "text": "public com.soprabanking.amplitude.CustomerThirdPartyType getSpouseType() {\n return spouseType;\n }", "title": "" }, { "docid": "da71fcad35bba5265d2395de935c6097", "score": "0.5557574", "text": "public int getS2CCode() {\n return s2CCode_;\n }", "title": "" }, { "docid": "da71fcad35bba5265d2395de935c6097", "score": "0.5556428", "text": "public int getS2CCode() {\n return s2CCode_;\n }", "title": "" }, { "docid": "da71fcad35bba5265d2395de935c6097", "score": "0.5556428", "text": "public int getS2CCode() {\n return s2CCode_;\n }", "title": "" }, { "docid": "da71fcad35bba5265d2395de935c6097", "score": "0.5556117", "text": "public int getS2CCode() {\n return s2CCode_;\n }", "title": "" }, { "docid": "da71fcad35bba5265d2395de935c6097", "score": "0.5556117", "text": "public int getS2CCode() {\n return s2CCode_;\n }", "title": "" }, { "docid": "da71fcad35bba5265d2395de935c6097", "score": "0.5556117", "text": "public int getS2CCode() {\n return s2CCode_;\n }", "title": "" }, { "docid": "da71fcad35bba5265d2395de935c6097", "score": "0.5555873", "text": "public int getS2CCode() {\n return s2CCode_;\n }", "title": "" }, { "docid": "d9f37fbf91d350e16a3e6f708522c57b", "score": "0.5554831", "text": "public String getCustomerCode()\n\t{\n\t\treturn getValue(WorkingInformation.CUSTOMERCODE).toString();\n\t}", "title": "" }, { "docid": "24602e7ae22d52108038bb4d03c64090", "score": "0.55542934", "text": "public BigDecimal getKYC_FINANC_CUSTOMER_REF_CODE() {\r\n return KYC_FINANC_CUSTOMER_REF_CODE;\r\n }", "title": "" }, { "docid": "1910b93764fe3f0f28792b3e46d78aa7", "score": "0.5550676", "text": "public short getFamilyCode() {\n return (short) addr[0];\n }", "title": "" }, { "docid": "fe3b582301ed26d3b7b815b258b2a0e2", "score": "0.5519184", "text": "public int getS2CCode() {\n return s2CCode_;\n }", "title": "" }, { "docid": "fe3b582301ed26d3b7b815b258b2a0e2", "score": "0.5519184", "text": "public int getS2CCode() {\n return s2CCode_;\n }", "title": "" }, { "docid": "fe3b582301ed26d3b7b815b258b2a0e2", "score": "0.5519184", "text": "public int getS2CCode() {\n return s2CCode_;\n }", "title": "" }, { "docid": "fe3b582301ed26d3b7b815b258b2a0e2", "score": "0.5519059", "text": "public int getS2CCode() {\n return s2CCode_;\n }", "title": "" }, { "docid": "fe3b582301ed26d3b7b815b258b2a0e2", "score": "0.55185205", "text": "public int getS2CCode() {\n return s2CCode_;\n }", "title": "" }, { "docid": "fe3b582301ed26d3b7b815b258b2a0e2", "score": "0.55175316", "text": "public int getS2CCode() {\n return s2CCode_;\n }", "title": "" }, { "docid": "fe3b582301ed26d3b7b815b258b2a0e2", "score": "0.55175316", "text": "public int getS2CCode() {\n return s2CCode_;\n }", "title": "" }, { "docid": "455b667bd7ce5994a2e3445d8cfd54d1", "score": "0.53493506", "text": "public String getSpouseId() {return this.spouseId;}", "title": "" }, { "docid": "bc6d20ea39373ee93741b2fd918b1440", "score": "0.5332737", "text": "public int getSecurityCode() { return this.securityCode; }", "title": "" }, { "docid": "dda654bf6a87cf30549ff43ed9f034e3", "score": "0.5312394", "text": "public java.lang.String getCodiceProvincia() {\n return codiceProvincia;\n }", "title": "" }, { "docid": "8b80c1785f9fcff3a7e686ca0f3e3494", "score": "0.5301716", "text": "public java.lang.String getCode()\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(CODE$0, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }", "title": "" }, { "docid": "c3ec01400c7ba1c9e4b01590b84cf981", "score": "0.52747655", "text": "public String getCountyCode() {\r\n return countyCode;\r\n }", "title": "" }, { "docid": "9b4ce23cbc0dd315c20f91da8aaf4357", "score": "0.5265114", "text": "public String getCountyCode() {\n return countyCode;\n }", "title": "" }, { "docid": "d827d0ab72e59a3a880076f8d06e595a", "score": "0.5254917", "text": "public String getGoodscode() {\n return goodscode;\n }", "title": "" }, { "docid": "a817c0ed8f96334809b12b3e8e7724ff", "score": "0.5253914", "text": "public java.lang.String getPreferredDomesticCarrierCode() {\n return instance.getPreferredDomesticCarrierCode();\n }", "title": "" }, { "docid": "414705d5235df00e0f99fd0c6fc7a911", "score": "0.5246236", "text": "public String getSickmanCode() {\r\n return sickmanCode;\r\n }", "title": "" }, { "docid": "2b34099157fa6b9740dccb2e80845dae", "score": "0.5233274", "text": "public String getClientCode() {\n\t\treturn clientCode;\n\t}", "title": "" }, { "docid": "f617e187918c8b8e4eae7a3c19e8cebc", "score": "0.5228224", "text": "@java.lang.Override\n public java.lang.String getSecureCode() {\n java.lang.Object ref = secureCode_;\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 secureCode_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "04b9e357aa88c35e863f3f6b4bfd6162", "score": "0.52272004", "text": "public java.lang.String getClientIdSell() {\n java.lang.Object ref = clientIdSell_;\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 clientIdSell_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "aa2bc62e761a16b3859c618c9c2466c5", "score": "0.5211573", "text": "public String getSocialSecurityNumber()\n {\n return socialSecurityNumber;\n }", "title": "" }, { "docid": "58fa9b797c4040e89ccd76918113c004", "score": "0.5199405", "text": "public String getSellerCode() {\n return sellerCode;\n }", "title": "" }, { "docid": "d1f65fc32a133ffb3b2c349e8a46e8df", "score": "0.51953584", "text": "public java.math.BigInteger getCode() {\r\n synchronized (monitor()) {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue) get_store().find_element_user(CODE$2, 0);\r\n if (target == null) {\r\n return null;\r\n }\r\n return target.getBigIntegerValue();\r\n }\r\n }", "title": "" }, { "docid": "9d3aa3611b530f5c57d2aafa13fe45d7", "score": "0.5179353", "text": "public java.lang.String getPreferredDomesticCarrierCode() {\n return preferredDomesticCarrierCode_;\n }", "title": "" }, { "docid": "b95b9e540d574bfc9f185a3c98fa9051", "score": "0.51782745", "text": "public java.lang.String getSecureCode() {\n java.lang.Object ref = secureCode_;\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 secureCode_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "0bbe6a55616292c33ad7c7faa0e1e816", "score": "0.51440036", "text": "public com.google.protobuf.ByteString\n getPreferredDomesticCarrierCodeBytes() {\n return com.google.protobuf.ByteString.copyFromUtf8(preferredDomesticCarrierCode_);\n }", "title": "" }, { "docid": "042596d2c0a8b02d2aa4f83e29607746", "score": "0.5129991", "text": "public BigDecimal getCode() {\n return (BigDecimal) getAttributeInternal(CODE);\n }", "title": "" }, { "docid": "13ae44b1a845512ad22264c96857b4ce", "score": "0.5128694", "text": "public java.lang.String getClientIdSell() {\n java.lang.Object ref = clientIdSell_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n clientIdSell_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "818543b7eb6ed75ee84cbc251d167027", "score": "0.5117106", "text": "public String getKYC_FINANCIAL_PHONE() {\r\n return KYC_FINANCIAL_PHONE;\r\n }", "title": "" }, { "docid": "05e0b94c47a63369a57779679a801d52", "score": "0.51083434", "text": "public Long getSecurityProviderNum() {\r\n\t\treturn securityProviderNum;\r\n\t}", "title": "" }, { "docid": "1dd92c27c43bdf646aa22d9ccdedb178", "score": "0.5090447", "text": "public int getCountryCode() {\n return instance.getCountryCode();\n }", "title": "" }, { "docid": "c95d0e9ee54c6453ac228e37531a5c48", "score": "0.5083235", "text": "public String getConsignorCode()\n\t{\n\t\treturn getValue(StoragePlan.CONSIGNORCODE).toString();\n\t}", "title": "" }, { "docid": "1fd7f55bf15d8cc3dd02646a8730800e", "score": "0.50801414", "text": "public Code getCode() {\n\t\tfinal Code ehcCode = new Code(getCodeSystemOid(), code, CODE_SYSTEM_NAME, displayName);\n\t\treturn ehcCode;\n\t}", "title": "" }, { "docid": "33ff4d3d3aa3af859fce0f583cda4613", "score": "0.5079109", "text": "public com.google.protobuf.ByteString\n getPreferredDomesticCarrierCodeBytes() {\n return instance.getPreferredDomesticCarrierCodeBytes();\n }", "title": "" }, { "docid": "8fdff32ca2122c57283ad4cbe8507526", "score": "0.5078392", "text": "public String getConsignorCode()\n\t{\n\t\treturn wConsignorCode;\n\t}", "title": "" }, { "docid": "6c328c901bd945d8283cddd75d761adc", "score": "0.5067054", "text": "public Integer getCreditCardVerificationSecurityCode() {\n\t\treturn creditCardVerificationSecurityCode;\n\t}", "title": "" }, { "docid": "7981f7b32ee974f684970a7f01c7bec3", "score": "0.50656027", "text": "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getOwnersContractorsClassCode();", "title": "" }, { "docid": "095dc9a6585a81fda8d4a8ea807bb9b7", "score": "0.5059607", "text": "public java.lang.String getProductCode()\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(PRODUCTCODE$0, 0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "title": "" }, { "docid": "09116c077cd6bf087b0ea2d1334c95a2", "score": "0.50572187", "text": "public double getSocialSecurityNumber() {\n return socialSecurityNumber;\n }", "title": "" }, { "docid": "711f97571dc251d8c450a23bbd585780", "score": "0.5056453", "text": "public String getStockCode() {\n Object ref = stockCode_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n stockCode_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "981b7592522dc8c039875d3cabd276f7", "score": "0.50302285", "text": "public String getServProvCode()\r\n\t{\r\n\t\treturn m_ServProvCode;\r\n\t}", "title": "" }, { "docid": "48beceadbec643b2ea17e4127fb36981", "score": "0.50275844", "text": "public BigDecimal getCODE() {\r\n return CODE;\r\n }", "title": "" }, { "docid": "04109ccbc845ae09da1afec59a22fc9c", "score": "0.50163215", "text": "public java.lang.Object getSICCode() {\n return SICCode;\n }", "title": "" }, { "docid": "7379f36f1af1a64bdd8dc9dae31a1323", "score": "0.5013522", "text": "public OrganisationalCentreID getSourceSystemCompanyCode() {\n return localSourceSystemCompanyCode;\n }", "title": "" }, { "docid": "0809df15cb20ab86c72b95e8d6efce4d", "score": "0.50122267", "text": "public Integer getDegCfdcCustCard() {\n return degCfdcCustCard;\n }", "title": "" }, { "docid": "d8a261c56b8fd2c783e678f9829260e5", "score": "0.50116086", "text": "public String getCode()\n {\n return this.name();\n }", "title": "" }, { "docid": "9b5c4dd17b0faa50b85f0c230c2ff521", "score": "0.5011063", "text": "public String getClFamilyName() {\r\n\t\treturn clFamilyName;\r\n\t}", "title": "" }, { "docid": "d7d212e8a706ee052721f7ad5458973c", "score": "0.50104517", "text": "public java.lang.String getStockCode() {\n java.lang.Object ref = stockCode_;\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 stockCode_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "a2a61a657572b4f77cda8d4803af0207", "score": "0.50037605", "text": "public String getIdentityCode() {\n return identityCode;\n }", "title": "" }, { "docid": "71b97dcbf257fab60609cbd624a11400", "score": "0.49965215", "text": "public String getShippingCode() {\r\n return shippingCode;\r\n }", "title": "" }, { "docid": "b1d95ccbfa36f5f5dfecc797242f1d53", "score": "0.4984241", "text": "public String getClientDeviceCode() {\n return clientDeviceCode;\n }", "title": "" }, { "docid": "1caaaa7337bb8531f63a49082f5b49d8", "score": "0.49742916", "text": "public String getPhoneCountryCode() {\n return phoneCountryCode;\n }", "title": "" }, { "docid": "b5f3707f900a7c727e058bc1837d44b3", "score": "0.497346", "text": "public String getStockCode() {\n Object ref = stockCode_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n stockCode_ = s;\n }\n return s;\n } else {\n return (String) ref;\n }\n }", "title": "" }, { "docid": "0972708ecdb833f0620cb7ca6a805355", "score": "0.4964148", "text": "public int getSupplierCardId() {\n return supplierCardId;\n }", "title": "" }, { "docid": "422ade9e7e37a14f0c4f380e1d71d6ba", "score": "0.4959148", "text": "@Accessor(qualifier = \"code\", type = Accessor.Type.GETTER)\n\tpublic String getCode()\n\t{\n\t\treturn getPersistenceContext().getPropertyValue(CODE);\n\t}", "title": "" }, { "docid": "6b0e3b60b6148d88ee0861cf9338db94", "score": "0.49537504", "text": "public int getC2SAwardId() {\n return c2SAwardId_;\n }", "title": "" }, { "docid": "66ad518b0c8c4d5fce588bdcba4bcc0e", "score": "0.49440458", "text": "public String getCustPhone() {\n return custPhone;\n }", "title": "" }, { "docid": "8e3a925956b6a918c6283c5513b07715", "score": "0.49422854", "text": "public int getC2SAwardId() {\n return c2SAwardId_;\n }", "title": "" }, { "docid": "8a6bb1cca66c1da79bd9b5f931eebb76", "score": "0.49421865", "text": "public String getsCode() {\r\n return sCode;\r\n }", "title": "" }, { "docid": "081e2547652455f69d968d66b7a480fb", "score": "0.4941975", "text": "public java.lang.String getInsuredCode() {\n return insuredCode;\n }", "title": "" }, { "docid": "1ab07a6aef4f38e2f5fcc8e0a94645ce", "score": "0.49401364", "text": "public String getCode() {\n return (String) get(2);\n }", "title": "" }, { "docid": "cee8f7c570220ffde27422e65569ea1c", "score": "0.493966", "text": "public CompanyCodeID getCompanyCode() {\n return localCompanyCode;\n }", "title": "" }, { "docid": "cee8f7c570220ffde27422e65569ea1c", "score": "0.493966", "text": "public CompanyCodeID getCompanyCode() {\n return localCompanyCode;\n }", "title": "" }, { "docid": "cee8f7c570220ffde27422e65569ea1c", "score": "0.493966", "text": "public CompanyCodeID getCompanyCode() {\n return localCompanyCode;\n }", "title": "" }, { "docid": "6b6f297712d08505aa0b65d8d0686ed1", "score": "0.49350575", "text": "public int getCodiceSicurezza() {\n\t\treturn codiceSicurezza;\n\t}", "title": "" }, { "docid": "e5ce490a8becf1311a79af4ba398f4d6", "score": "0.49305117", "text": "public String pricingCurrencyCode() {\n return this.innerProperties() == null ? null : this.innerProperties().pricingCurrencyCode();\n }", "title": "" }, { "docid": "b12209df428dc74cda61f450649c7a9b", "score": "0.49251756", "text": "public String getShip_code() {\n\t\treturn ship_code;\n\t}", "title": "" }, { "docid": "f5ec2bbeee1fa12945890db97d40faee", "score": "0.49243468", "text": "public CorporateRegistrationTypeCodeType getCorporateRegistrationTypeCode() {\r\n\t\treturn (corporateRegistrationTypeCode == null) ? new CorporateRegistrationTypeCodeType()\r\n\t\t\t\t: corporateRegistrationTypeCode;\r\n\t}", "title": "" }, { "docid": "c96f5e0b81bf37b6c9edea8b617dcee2", "score": "0.49217206", "text": "public java.lang.String getStockCode() {\n java.lang.Object ref = stockCode_;\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 stockCode_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "ca57ded43ed6f89abaffab0e78c309ab", "score": "0.49129644", "text": "public String getVincoloCode() {\n\t\treturn this.vincoloCode;\n\t}", "title": "" }, { "docid": "43e0ed4658ca3893ec47441911daf223", "score": "0.49099672", "text": "public String getPracticeLocationAddressCountryCode() {\n\t\treturn practiceLocationAddressCountryCode;\n\t}", "title": "" }, { "docid": "4c329b286fd6d76e907ce71bb214f82f", "score": "0.4901428", "text": "public String getCodecommune() {\n return (String) getAttributeInternal(CODECOMMUNE);\n }", "title": "" }, { "docid": "198b7ee7a6964f91c3f01f4f05ea70b6", "score": "0.48985887", "text": "public String getUserCode() {\n return userCode;\n }", "title": "" }, { "docid": "198b7ee7a6964f91c3f01f4f05ea70b6", "score": "0.48985887", "text": "public String getUserCode() {\n return userCode;\n }", "title": "" }, { "docid": "c1856f1c6723dff4858abcca6672112c", "score": "0.48978585", "text": "public String getSchoolCode() {\n return schoolCode;\n }", "title": "" }, { "docid": "05b9abc735ef85c12b9267109bb8350c", "score": "0.4896743", "text": "public java.lang.String getFamilyPhone() {\r\n\t\t\treturn localFamilyPhone;\r\n\t\t}", "title": "" }, { "docid": "cd649ea7f19879a571d8d8cb6d1373b6", "score": "0.4895747", "text": "public byte getSensorCode() {\r\n\t\treturn sensorCode;\r\n\t}", "title": "" }, { "docid": "21104ba9cf6d78a1a0f7acc34bfdacd4", "score": "0.4886876", "text": "public String getConsignorCode()\n\t{\n\t\treturn getValue(WorkingInformation.CONSIGNORCODE).toString();\n\t}", "title": "" }, { "docid": "17fcab6fec132b5fbfbf2a41b831ca0a", "score": "0.4876921", "text": "public java.lang.String getCallNumberCode () {\r\n\t\treturn callNumberCode;\r\n\t}", "title": "" } ]
1cfff6ecb9b251b9daedbda06069846f
Get a publication based on the generic item.
[ { "docid": "e277f2214805bbb7c3a763ac38d3358c", "score": "0.6729015", "text": "public ResearcherPublication getPublication(GenericItem publication)\r\n\t{\r\n\t\tfor(ResearcherPublication pub : rootPublications)\r\n\t\t{\r\n\t\t\tif( pub.getPublication().equals(publication))\r\n\t\t\t{\r\n\t\t\t\treturn pub;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "title": "" } ]
[ { "docid": "f25f11945be6515094857aa4c5756b02", "score": "0.6096303", "text": "public PersonalItem getPersonalItem(GenericItem item);", "title": "" }, { "docid": "3565d93a958482b160b0e10738a7d8b1", "score": "0.59324193", "text": "@GetMapping(\"/publications/id/{publicationId}\")\n public T getPulication(@PathVariable Long publicationId)\n {\n return pubDao.findOne(publicationId);\n }", "title": "" }, { "docid": "cc09f9d43f8446af45dc11b10b3c09c6", "score": "0.5779105", "text": "Publication retrievePublication(String doi, HttpServletRequest request);", "title": "" }, { "docid": "21f6873918af52327a91544e417cd351", "score": "0.56875783", "text": "public Optional<Publication> getPublicationByIdentifier(String identifier) {\n return parseResponseWithOneResult(identifier);\n }", "title": "" }, { "docid": "50fe754e070deb2271ba01b4ddb60aff", "score": "0.5650548", "text": "@Override\r\n\tpublic Publisher getPublisherById(Integer PubId) {\n\t\tList l=getHibernateTemplate().find(\"from Publisher i where i.id=?\",PubId);\r\n\t\tSystem.out.println(\"This is publisher Dao Impl for book registration\"+l.size());\r\n\t return l.isEmpty() || l==null ? null : (Publisher) l.get(0);\r\n\t}", "title": "" }, { "docid": "c0c204195806998635da4aa4643ba5da", "score": "0.53878045", "text": "@Override\n\tpublic Publication GetPubById(Long pubId) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "caf37c8b6b323178083b633447c19df2", "score": "0.5380564", "text": "public Publisher getPublisherById(String publisher_id) {\n\treturn this.pubRepository.findById(publisher_id).get();\n}", "title": "" }, { "docid": "048cac538ad50cbd8695bc2328a8369b", "score": "0.5353956", "text": "public Item get(String title) throws Exception;", "title": "" }, { "docid": "b5cdf539c2a89272fb77eee89da496b2", "score": "0.5328272", "text": "public Item get(ObjectId id) throws Exception;", "title": "" }, { "docid": "ca9bf2cf28b90a876271f48aaae4385a", "score": "0.5315612", "text": "public PlaceOfPublication get(String name);", "title": "" }, { "docid": "cde78fe97e38143b8364848383745d22", "score": "0.53119195", "text": "GenericItem item(GenericTypesystemContext context, long typeId, long id);", "title": "" }, { "docid": "af6f8226f2bbade3f497f3388a26fff8", "score": "0.5263921", "text": "public Publisher getPublisherByRegistId(String registId) {\n return publisherMap.get(registId);\n }", "title": "" }, { "docid": "d99c5c1a198d4b050a965dbd48b90e4f", "score": "0.5252236", "text": "@Override\n public PublicationType findPublicationTypeByTitle(String title) {\n return dao.findPublicationTypeByTitle(title);\n }", "title": "" }, { "docid": "b410eb396b950cace54885095829d262", "score": "0.5195644", "text": "Long findPublication(Connection conn, Long publisherSeq, String title,\n String pIssn, String eIssn, String pIsbn, String eIsbn, String mdItemType)\n throws DbException {\n final String DEBUG_HEADER = \"findPublication(): \";\n if (log.isDebug2()) {\n log.debug2(DEBUG_HEADER + \"title = \" + title);\n log.debug2(DEBUG_HEADER + \"publisherSeq = \" + publisherSeq);\n log.debug2(DEBUG_HEADER + \"pIssn = \" + pIssn);\n log.debug2(DEBUG_HEADER + \"eIssn = \" + eIssn);\n log.debug2(DEBUG_HEADER + \"pIsbn = \" + pIsbn);\n log.debug2(DEBUG_HEADER + \"eIsbn = \" + eIsbn);\n log.debug2(DEBUG_HEADER + \"mdItemType = \" + mdItemType);\n }\n\n Long publicationSeq = null;\n boolean hasIssns = pIssn != null || eIssn != null;\n log.debug3(DEBUG_HEADER + \"hasIssns = \" + hasIssns);\n boolean hasIsbns = pIsbn != null || eIsbn != null;\n log.debug3(DEBUG_HEADER + \"hasIsbns = \" + hasIsbns);\n boolean hasName = !StringUtil.isNullString(title);\n log.debug3(DEBUG_HEADER + \"hasName = \" + hasName);\n\n if (!hasIssns && !hasIsbns && !hasName) {\n log.debug3(DEBUG_HEADER + \"Cannot find publication with no name, ISSNs\"\n\t + \" or ISBNs.\");\n return null;\n }\n\n if (hasIssns && hasIsbns && hasName) {\n publicationSeq = findPublicationByIssnsOrIsbnsOrName(conn, title,\n\t publisherSeq, pIssn, eIssn, pIsbn, eIsbn, mdItemType);\n } else if (hasIssns && hasName) {\n publicationSeq = findPublicationByIssnsOrName(conn, publisherSeq, title,\n\t pIssn, eIssn, mdItemType);\n } else if (hasIsbns && hasName) {\n publicationSeq = findPublicationByIsbnsOrName(conn, publisherSeq, title,\n\t pIsbn, eIsbn, mdItemType, false);\n } else if (hasIssns) {\n publicationSeq = mdManagerSql.findPublicationByIssns(conn, publisherSeq,\n\t pIssn, eIssn, mdItemType);\n } else if (hasIsbns) {\n publicationSeq = mdManagerSql.findPublicationByIsbns(conn, publisherSeq,\n\t pIsbn, eIsbn, mdItemType);\n } else if (hasName) {\n publicationSeq = mdManagerSql.findPublicationByName(conn, publisherSeq,\n\t title, mdItemType);\n }\n\n if (log.isDebug2())\n log.debug2(DEBUG_HEADER + \"publicationSeq = \" + publicationSeq);\n return publicationSeq;\n }", "title": "" }, { "docid": "cfc870d1f3e391e34b415f755ed7d183", "score": "0.51929855", "text": "public Item getItemById(String itemId);", "title": "" }, { "docid": "849d9476d617f97ea748a39bfc481b4b", "score": "0.5184064", "text": "public Item getItem(Integer itemId);", "title": "" }, { "docid": "23c1f99b7cf2a5f8a1995c523fcf9103", "score": "0.5183471", "text": "Item getItem(String name);", "title": "" }, { "docid": "89a4d17e0946b16fd0447cc208f3558b", "score": "0.5166459", "text": "PwPublication getByIpdsId(String ipdsId);", "title": "" }, { "docid": "d02e4ed742e0f58ce3775913a5de0730", "score": "0.51626223", "text": "public PlaceOfPublication get(Long id, boolean lock);", "title": "" }, { "docid": "57d1e0e28294c6feff122623fe9753e2", "score": "0.51597834", "text": "@Override\n\tpublic Object getItem(int arg0) {\n\t\treturn subjects.get(arg0);\n\t}", "title": "" }, { "docid": "f0ea231a8512bbe54a7b27fa4a78d1ac", "score": "0.5133676", "text": "@GetMapping(\"/{id}\")\n\tpublic Publication findById(@PathVariable(\"id\")Long id) {\n\t\treturn publicationService.findById(id);\n\t}", "title": "" }, { "docid": "4d1d7f5389bc8a717239f63e493c5806", "score": "0.51138824", "text": "T getItem() {\r\n\t\treturn item;\r\n\t}", "title": "" }, { "docid": "fabc0275596e65caffb19a02348b795a", "score": "0.5107499", "text": "public static ITickerPublisher getPublisher(PubType type) throws InvalidArgumentException\r\n\t\t{\r\n\t\t\tif(type == null)\r\n\t\t\t{\r\n\t\t\t\tthrow new InvalidArgumentException(\"TickerPublisherImplFactory.getPublisher - type cannot be null\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\telse if(type == PubType.Ticker)\r\n\t\t\t{\r\n\t\t\t\treturn new TickerPublisherImpl();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tthrow new InvalidArgumentException(\"Type \" + type + \" is not valid\");\r\n\t\t\t}\r\n\t\t}", "title": "" }, { "docid": "8de46a6cb469e76ff568ee79a051720d", "score": "0.51054037", "text": "public interface MetadataRetriever {\r\n\t/**\r\n\t * Returns the name of the MetadataRetriever implementation\r\n\t * @return the name\r\n\t */\r\n\tString getName();\r\n\t\r\n\t/**\r\n\t * Searches the database for the publication matching the given DOI and returns all the metadata found.\r\n\t * @param doi the Document Object Identifier to search for\r\n\t * @param request \r\n\t * @return the found metadata\r\n\t */\r\n\tPublication retrievePublication(String doi, HttpServletRequest request);\r\n}", "title": "" }, { "docid": "ed32a2ba46bce7b48034ee4234a3df8d", "score": "0.51048183", "text": "public abstract Item getItem();", "title": "" }, { "docid": "5067d3160a59ebf479a8a5643cd3f712", "score": "0.50917894", "text": "@GetMapping(value = \"{id}\", name = \"Get resource item by id\", produces = \"application/json\")\n Publisher<T> getById(@PathVariable Long id) {\n return getService().byId(id).doOnSubscribe(result -> log.info(\"Getting id {}\", id));\n }", "title": "" }, { "docid": "48b205c460065ee55551df137a98a89a", "score": "0.5089905", "text": "public Publishable getArticle() {\n\t\treturn article;\n\t}", "title": "" }, { "docid": "b1e7c42fa7941c375105ee8ed767a93d", "score": "0.5088891", "text": "Potion retrieve(Potion p);", "title": "" }, { "docid": "0b6a0a7d1559671cd4737107ed25821d", "score": "0.50820994", "text": "WikidataEntity getItem(int id) throws DaoException;", "title": "" }, { "docid": "ab4830168a3d9d9209a6682548fd0529", "score": "0.50314635", "text": "private MessageProducer findOrCreatePublisher(String topic) throws JMSException {\n MessageProducer publisher = publisherMap.get(topic);\n if (publisher == null) {\n log.info(\"Creating publisher for topic: \" + topic);\n publisher = createPuplisherForTopic(topic);\n }\n return publisher;\n }", "title": "" }, { "docid": "7d8b384509e53a78039b8f684dba7b29", "score": "0.50252044", "text": "NaviResourcePublish selectByPrimaryKey(Long id);", "title": "" }, { "docid": "bd94ee2d0c2d111566d79575f9e2d0c9", "score": "0.50191665", "text": "public NewsArticle getAssociatedArticle() throws ClassCastException;", "title": "" }, { "docid": "64dab2aaa21b90e77e0ada59a9ab48d5", "score": "0.5009117", "text": "public P getById(int id);", "title": "" }, { "docid": "f44dee6d6ca751f010b5ea63099aa7a5", "score": "0.4991553", "text": "public Item get(Integer itemId) {\n\t\treturn (Item) getHibernateTemplate().get(Item.class, itemId);\n\t}", "title": "" }, { "docid": "19c48a7af697d54b6e41a29fa6bfb861", "score": "0.49649113", "text": "public T getItem() {\n return item;\n }", "title": "" }, { "docid": "80f193701edf4b5d0765f346ec22db09", "score": "0.49630547", "text": "public T getItem() {\n return this.item;\n }", "title": "" }, { "docid": "89b5f66605071662f072ab8c80448d36", "score": "0.4957485", "text": "@Override\n\tpublic Publisher read(Integer[] pk) throws SQLException {\n\t\tString sql=\"Select * from tbl_Publisher t where t.publisherId=?\";\n\t\treturn read(sql,pk);\n\t}", "title": "" }, { "docid": "c19e4612c2dbfc4f8f3307a6faac6122", "score": "0.49335185", "text": "VoteItem findOne(Long id);", "title": "" }, { "docid": "5d301b6971214b0109bd4275e8eb6d74", "score": "0.49334952", "text": "public Item getItemById(Long id);", "title": "" }, { "docid": "43fc38767a482425917fc6939f37d39f", "score": "0.49201968", "text": "P getById(int id);", "title": "" }, { "docid": "24509ae0bfc81936ea7b883aa67628f4", "score": "0.49079043", "text": "wdl.Wdl.PublishedBy getPublishedBy();", "title": "" }, { "docid": "24509ae0bfc81936ea7b883aa67628f4", "score": "0.49079043", "text": "wdl.Wdl.PublishedBy getPublishedBy();", "title": "" }, { "docid": "083ec618ea73eb62c12098706d6261c4", "score": "0.4904648", "text": "public <T> T getProp(Resource subject, Class<T> t);", "title": "" }, { "docid": "ce158ed86a32b35f2faf4f564ce15dc2", "score": "0.490218", "text": "public Long findOrCreatePublication(Connection conn, Long publisherSeq, \n String pIssn, String eIssn, String pIsbn, String eIsbn, \n String pubType, String seriesName, String proprietarySeriesId, \n String pubName, String proprietaryId) throws DbException {\n final String DEBUG_HEADER = \"findOrCreatePublication(): \";\n Long publicationSeq = null;\n\n // Get the title name.\n String pubTitle = null;\n log.debug3(DEBUG_HEADER + \"name = \" + pubName);\n\n if (!StringUtil.isNullString(pubName)) {\n pubTitle = \n pubName.substring(0, Math.min(pubName.length(), MAX_NAME_COLUMN));\n }\n\n if (log.isDebug3()) log.debug3(DEBUG_HEADER + \"pubTitle = \" + pubTitle);\n\n // Check whether it is a book series.\n if (MetadataField.PUBLICATION_TYPE_BOOKSERIES.equals(pubType)\n || !StringUtil.isNullString(seriesName)) {\n // Yes: Find or create the book series.\n log.debug3(DEBUG_HEADER + \"is book series.\");\n String seriesTitle = \n seriesName.substring(\n 0, Math.min(seriesName.length(), MAX_NAME_COLUMN));\n \n publicationSeq = findOrCreateBookInBookSeries(conn, publisherSeq, \n pIssn, eIssn, pIsbn, eIsbn, seriesTitle, proprietarySeriesId, \n\t pubTitle, proprietaryId);\n // No: Check whether it is a book.\n } else if (MetadataField.PUBLICATION_TYPE_BOOK.equals(pubType)\n || isBook(pIsbn, eIsbn)) {\n // Yes: Find or create the book.\n log.debug3(DEBUG_HEADER + \"is book.\");\n publicationSeq = findOrCreateBook(conn, publisherSeq, null, \n pIsbn, eIsbn, pubTitle, proprietaryId);\n // No: Check whether it is a proceedings article.\n } else if (MetadataField.PUBLICATION_TYPE_PROCEEDINGS.equals(pubType)) {\n // Yes: Find or create the proceedings publication.\n log.debug3(DEBUG_HEADER + \"is proceedings.\");\n publicationSeq = findOrCreateProceedings(conn, publisherSeq, \n pIssn, eIssn, pubTitle, proprietaryId);\n } else if (MetadataField.PUBLICATION_TYPE_FILE.equals(pubType)) {\n // Yes: Find or create the file publication.\n if (log.isDebug3()) log.debug3(DEBUG_HEADER + \"is file.\");\n publicationSeq = findOrCreateFile(conn, publisherSeq, pubTitle,\n\t proprietaryId);\n } else {\n // No, it is a journal article: Find or create the journal.\n log.debug3(DEBUG_HEADER + \"is journal.\");\n publicationSeq = findOrCreateJournal(conn, publisherSeq, \n pIssn, eIssn, pubTitle, proprietaryId);\n }\n\n return publicationSeq;\n }", "title": "" }, { "docid": "eaa304184efdd45aad7ed81a2f403699", "score": "0.4881428", "text": "protected T getOneRandom(String correlationId, Bson filter) {\n var count = _collection.countDocuments(filter);\n\n var pos = (int) (Math.random() * count);\n var options = new BasicDBObject();\n\n List<T> items = new ArrayList<>();\n\n var res = _collection.find(filter).filter(options).skip(Math.max(pos, 0)).limit(1);\n\n for (var item : res)\n items.add(convertToPublic(item));\n\n var item = (items.size() > 0) ? items.get(0) : null;\n\n if (item == null)\n this._logger.trace(correlationId, \"Random item wasn't found from %s\", this._collectionName);\n else\n this._logger.trace(correlationId, \"Retrieved random item from %s\", this._collectionName);\n\n return item;\n }", "title": "" }, { "docid": "79c0172fa9a507f8c8b69fa03c06be51", "score": "0.48547447", "text": "@Override\r\n\tpublic Object getItem(int arg0) {\n\t\treturn this.drafts.get(arg0);\r\n\t}", "title": "" }, { "docid": "70541b459b57da1c64077bf218efd684", "score": "0.48080269", "text": "public <T> T getProp(Resource subject, URI predicate, Class<T> t);", "title": "" }, { "docid": "e946be39bd69e35dae5079017693f5b3", "score": "0.47997344", "text": "PwPublication getByIndexId(String indexId);", "title": "" }, { "docid": "70835d447ece763a4ec0e72661258bf9", "score": "0.47779298", "text": "public ItemType getItem(String itemID) {\n // Get the whole list of items\n ItemType[] items = getSearchResults();\n ItemType item;\n \n // Loop through the list of items looking for a matching ID \n for (int index = 0; index < items.length; index++) {\n item = items[index];\n if (itemID.equals(item.getItemID())) {\n return item;\n }\n }\n \n return null;\n }", "title": "" }, { "docid": "542a47feeba08116b144f8b4cf9910c2", "score": "0.4770459", "text": "Collection<? extends Object> getPubmed_PMID();", "title": "" }, { "docid": "7bf25af601620e2728e6e9c607279434", "score": "0.47702953", "text": "public T getItem() {\n\t\t\treturn item;\n\t\t}", "title": "" }, { "docid": "d24c5db474b5a65fb05e8a6ebdeac4ac", "score": "0.4762466", "text": "public ResearcherPublication getRootPublication(Long id)\r\n\t{\r\n\t\tfor(ResearcherPublication researcherPublication: rootPublications)\r\n\t\t{\r\n\t\t\tif( researcherPublication.getId().equals(id))\r\n\t\t\t{\r\n\t\t\t\treturn researcherPublication;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "f77a7fd5289983336bb5f7de95d1dd41", "score": "0.4743516", "text": "List<ContentPublish> selectByExample(ContentPublishExample example);", "title": "" }, { "docid": "2465277fda9c69a237769b0028c2890a", "score": "0.4741127", "text": "public interface GetFeedItem\n{\n FeedItem getItem();\n}", "title": "" }, { "docid": "820fd1d883e1645556f3759803fb8b9e", "score": "0.4739943", "text": "public View getViewByItem(Object item) {\n\t\tRoot root = pmanager.getRoot();\n\t\tfor (View v : root.getViews()) {\n\t\t\tif (item instanceof Component && v.getComponents().contains(item)) {\n\t\t\t\treturn v;\n\t\t\t} else if (item instanceof Link && v.getLinks().contains(item)) {\n\t\t\t\treturn v;\n\t\t\t} else if (item instanceof ComponentGroup && v.getComponentsGroups().contains(item)) {\n\t\t\t\treturn v;\n\t\t\t} else if (item instanceof ComponentInstance && v.getComponentInstances().contains(item)) {\n\t\t\t\treturn v;\n\t\t\t} else if (item instanceof ComponentInstanceGroup && v.getInstancesGroups().contains(item)) {\n\t\t\t\treturn v;\n\t\t\t} else if (item instanceof LinkInstance && v.getLinkInstances().contains(item)) {\n\t\t\t\treturn v;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "305db44c34539fcf196f6824ed611ee1", "score": "0.47293857", "text": "List<NaviResourcePublish> selectByExample(NaviResourcePublishExample example);", "title": "" }, { "docid": "2b99b7de02b371cce9394ce59c122a54", "score": "0.4716401", "text": "Object getObject(final Class<? extends Persistable> implType, final long uidPk);", "title": "" }, { "docid": "ff1efa1e4635d890f81f6323f3f20fca", "score": "0.47102126", "text": "@Override\r\n\tpublic Ptype getById(int tid) {\n\t\treturn ptypeDao.getById(tid);\r\n\t}", "title": "" }, { "docid": "5d8dd2766c9f98087eef94b5d0af453d", "score": "0.47068727", "text": "public Item getItemByItemId(long itemId){\r\n Item item = itemRepo.findByItemId(itemId);\r\n return item;\r\n }", "title": "" }, { "docid": "a868f510b2702e92da7001ef4508d278", "score": "0.4706075", "text": "@Override\n public PdmDocument getOne(Long id) {\n return pdmDocumentRepository.getOne(id);\n }", "title": "" }, { "docid": "fc1a343298c3e8cfb1d202313675eb45", "score": "0.47052717", "text": "@Override\n public TbItem getItemById(long itemId) {\n TbItemExample example = new TbItemExample();\n TbItemExample.Criteria criteria = example.createCriteria();\n\n criteria.andIdEqualTo(itemId);\n\n\n List <TbItem> list = itemMapper.selectByExample(example);\n\n\n if (list != null && list.size() > 0) {\n return list.get(0);\n }\n return null;\n\n }", "title": "" }, { "docid": "1eac64b51691c1853de83cff43729db9", "score": "0.4704143", "text": "public Collectable getItem() {\n return item;\n }", "title": "" }, { "docid": "d7e9a6269893fe3fdb3222beee4fa7bd", "score": "0.4702531", "text": "public interface Item\n{\n // IMPLEMENTATION NOTE: This will typically not have access to all data. It will need to\n // execute possibly time intensive queries to the underlying REST API layer.\n\n String getItemId();\n\n /**\n * @return The URL to this item in the pageturner interface. This is trivially derived from\n * the htid at the moment, but is included here in the event that the handle URLs get\n * more complex in the future.\n */\n URI getItemURL();\n\n /**\n * @return The nine-digit record number with which this particular item is attached.\n */\n String getRecordId();\n\n /**\n * @return The originating institution where this particular volume was digitized.\n */\n String getOriginatingInstitution();\n\n @Deprecated // TODO move to Client API\n Record getRecord();\n\n /**\n * @return The rights code as used in the downloadable files, describing the copyright\n * status of the item and what users in various locales are able to do with it.\n */\n RightsCode getRightsCode();\n\n /**\n * @return The date this item was ingested or last changed (because, e.g., the rights\n * determination changed).\n */\n LocalDate getLastUpdate();\n\n /**\n * A key used to for sorting this item with respect to other items from the same record.\n * This is described as the enumeration/chronology of the item within the HahtiTrust\n * documentation and describes describing the item's place in a series. These are\n * commonly of the form, \"vol. 3, n. 2 1993\" or something similar.\n *\n * @return A string based key used for sorting. May be used as a label to assist users in\n * understanding the nature of this item.\n */\n String getSortKey();\n\n /**\n * A textual description of the rights for a US-based user. This is trivially derived from\n * {@link #getRightsCode()}, but useful enough to the majority of likely users that it is\n * included here. Will be either \"Limited (search only)\" or \"Full View.\"\n *\n * @return A description of how this item may be used.\n */\n String getRightsDisplayLabel();\n\n\n\n// Page getPage(int ix) throws IndexOutOfBoundsException;\n\n// \"items\":\n// [\n// { \"orig\":\"University of California\",\n// \"fromRecord\":\"000578050\",\n// \"htid\":\"uc1.b4405602\",\n// \"itemURL\":\"http:\\/\\/hdl.handle.net\\/2027\\/uc1.b4405602\",\n// \"rightsCode\":\"ic\",\n// \"lastUpdate\":\"20130805\",\n// \"enumcron\":false,\n// \"usRightsString\":\"Limited (search-only)\"\n// },\n}", "title": "" }, { "docid": "869e5b74b1d7c78f13d60a2881550de5", "score": "0.47018093", "text": "@SuppressWarnings(\"unchecked\")\n public static <T> PublisherBase<T> instance() {\n return (PublisherBase<T>) INSTANCE;\n }", "title": "" }, { "docid": "1fac178fa043c9419c349d86351a7fc0", "score": "0.46992207", "text": "public I obtain(I y) throws ItemNotFound280Exception;", "title": "" }, { "docid": "887db2dfb4bdb68bd13b6d48f9369550", "score": "0.46952844", "text": "ITEM getItem(int index);", "title": "" }, { "docid": "9740f4080ce413d9f05f7b1600077897", "score": "0.46833307", "text": "@NonNull\n public Item getItem() {\n return item;\n }", "title": "" }, { "docid": "a622103fc76a90b35c7d6a4a21806691", "score": "0.46821856", "text": "public abstract Optional<Article> getArticle(ArticleIdentifier articleIdentifier);", "title": "" }, { "docid": "263df2fea15fa3ebd97fc5616b92165f", "score": "0.46802008", "text": "public PersonalItem getPersonalItem(Long id, boolean lock);", "title": "" }, { "docid": "8248c1e8821be000fad23bf94c5b65a3", "score": "0.46794146", "text": "@Override\n\tpublic Object getItem(int arg0) {\n\t\treturn news_list.get(arg0);\n\t}", "title": "" }, { "docid": "bb594c796ccd7c1120b713c535e0c739", "score": "0.46778366", "text": "public SItemImpl getSItem() {\n return (SItemImpl) getEntity(ENTITY_SITEM);\n }", "title": "" }, { "docid": "92ed9eaec8769a49b8e68d89c62bdd4f", "score": "0.4676834", "text": "public Item getTheItem()\r\n {\r\n return item;\r\n }", "title": "" }, { "docid": "5b655be4301ebf0e491b682f6531b1c9", "score": "0.4676786", "text": "<T extends Convention> T getSingle(ExternalId externalId, Class<T> type);", "title": "" }, { "docid": "d8c1e149bd4c84cef1be24d552b71d79", "score": "0.46679586", "text": "public Publisher readPublisherById(Integer id) throws ClassNotFoundException, SQLException {\n\t\tConnection conn = null;\n\t\ttry {\n conn = util.getConnection();\n\t\t\tPublisherDAO pDao = new PublisherDAO(conn);\n\t\t\tList<Publisher> publishers = pDao.readPublisherById(id);\n\t\t\tif (publishers.size() == 0) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\treturn publishers.get(0);\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tconn.rollback();\n\t\t\tSystem.out.println(\"There was a problem in adminService!\");\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tif (conn != null) {\n\t\t\t\tconn.close();\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t\t\n\t}", "title": "" }, { "docid": "9e199f2ca525bdf5a0363fcc220e25bc", "score": "0.46603727", "text": "io.toit.proto.toit.model.JobProto.JobPubSub getPubsub();", "title": "" }, { "docid": "b9e0211ed3d3ea8dc8b66810c451e449", "score": "0.4654174", "text": "public String getPublicationName() {\n return publicationName;\n }", "title": "" }, { "docid": "7beddd749979670ed9a0fe2ba73f25ba", "score": "0.46322525", "text": "org.wikibrain.core.model.UniversalPage getUniversalPage(int itemId) throws DaoException;", "title": "" }, { "docid": "cf41f0170f99a1db1af4e5a7adb9f9d2", "score": "0.4627189", "text": "public Item getItem()\n {\n return item;\n }", "title": "" }, { "docid": "b1c21613215880016453635000808a75", "score": "0.4626857", "text": "Object get(String documentId, final String name);", "title": "" }, { "docid": "23cf8854ebf67941ded4c0a426752e01", "score": "0.46216652", "text": "private Optional<Publication> parseResponseWithOneResult(String query) {\n query = \"\\\"\" + query + \"\\\"\";\n\n try {\n ResponseEntity<String> response = restTemplate.getForEntity(MessageFormat.format(URL, query), String.class);\n\n if (response.getStatusCode().is2xxSuccessful()) {\n try {\n JsonNode responseAsJson = mapper.readTree(response.getBody());\n\n if (responseAsJson.has(\"resultList\")) {\n JsonNode publicationResultList = responseAsJson.get(\"resultList\").get(\"result\");\n\n if (publicationResultList.has(0)) {\n return Optional.of(mapper.readValue(publicationResultList.get(0), Publication.class));\n } else {\n return Optional.empty();\n }\n }\n\n } catch (IOException e) {\n return Optional.empty();\n }\n }\n } catch (RestClientException e) {\n return Optional.empty();\n }\n\n return Optional.empty();\n }", "title": "" }, { "docid": "5bc719d1935af5ddaaf1cc77eebaa3d1", "score": "0.46184906", "text": "private Long findPublicationByIssnsOrName(Connection conn, Long publisherSeq, \n String title, String pIssn, String eIssn, String mdItemType)\n\t throws DbException {\n final String DEBUG_HEADER = \"findPublicationByIssnsOrName(): \";\n if (log.isDebug2()) {\n log.debug2(DEBUG_HEADER + \"publisherSeq = \" + publisherSeq);\n log.debug2(DEBUG_HEADER + \"title = \" + title);\n log.debug2(DEBUG_HEADER + \"pIssn = \" + pIssn);\n log.debug2(DEBUG_HEADER + \"eIssn = \" + eIssn);\n log.debug2(DEBUG_HEADER + \"mdItemType = \" + mdItemType);\n }\n\n Long publicationSeq = mdManagerSql.findPublicationByIssns(conn,\n\tpublisherSeq, pIssn, eIssn, mdItemType);\n if (log.isDebug3())\n log.debug3(DEBUG_HEADER + \"publicationSeq = \" + publicationSeq);\n\n if (publicationSeq == null) {\n publicationSeq = mdManagerSql.findPublicationByName(conn, publisherSeq,\n\t title, mdItemType);\n if (log.isDebug3())\n\tlog.debug3(DEBUG_HEADER + \"publicationSeq = \" + publicationSeq);\n\n // Disqualify this matched publication if it already has some ISSN.\n if (publicationSeq != null && publicationHasIssns(conn, publicationSeq)) {\n\tif (log.isDebug3())\n\t log.debug3(DEBUG_HEADER + \"Potential match of publicationSeq = \"\n\t + publicationSeq + \" disqualified - publicationHasIssns = \"\n\t + publicationHasIssns(conn, publicationSeq));\n\tpublicationSeq = null;\n }\n }\n\n if (log.isDebug2())\n log.debug2(DEBUG_HEADER + \"publicationSeq = \" + publicationSeq);\n return publicationSeq;\n }", "title": "" }, { "docid": "8baab1da415ad92df996132009048d59", "score": "0.46176904", "text": "Task getTaskByHttpPublish(String container, String publish, boolean details);", "title": "" }, { "docid": "2f65f9a0213c1363375e68093e97057c", "score": "0.46174166", "text": "public Article getArticle();", "title": "" }, { "docid": "957a16534f756045929b55d4add2039d", "score": "0.4612647", "text": "public Item getItem() {\n return item;\n }", "title": "" }, { "docid": "a51193641f2007d2b7efb8a90698f8cc", "score": "0.46086627", "text": "public T GetItem(int index){\n if(items.size() > index){\n return items.get(index).GetData();\n }\n\n return null;\n }", "title": "" }, { "docid": "342f293ff4afe426192cf4d3c6016624", "score": "0.4608567", "text": "boolean item(GenericTypesystemContext context, long typeId, GenericItem item);", "title": "" }, { "docid": "181259815f81a977720ab71531f0e464", "score": "0.46068", "text": "public Item findItem( int iID ) throws TitleNotFoundException, ItemNotFoundException {\n\t\tItem item = null;\n\t\ttry {\n\t\t\tStatement stmnt = db.createStatement();\n\t\t\tString sql = \"select * from items where iID=\"+iID+\";\";\n\t\t\tResultSet rs = stmnt.executeQuery(sql);\n\t\t\tif( rs.next() ){\n\t\t\t\tint isbn = rs.getInt(\"isbn\");\n\t\t\t\tTitle t = findTitle(isbn);\n\t\t\t\titem = new Item(iID, t);\n\t\t\t} else {\n\t\t\t\trs.close();\n\t\t\t\tstmnt.close();\n\t\t\t\tdb.commit();\n\t\t\t\tthrow new ItemNotFoundException(\"The Item with ID#\"+iID+\" was not found\");\n\t\t\t}\n\t\t\trs.close();\n\t\t\tstmnt.close();\n\t\t\tdb.commit();\n\t\t} catch( SQLException e ){\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn item;\n\t}", "title": "" }, { "docid": "95ae312b7455c5a869ab75234cd9c947", "score": "0.46051657", "text": "public ResearcherPublication getRootPublication(String name)\r\n\t{\r\n\t\tfor(ResearcherPublication rp: rootPublications)\r\n\t\t{\r\n\t\t\tif( rp.getName().equalsIgnoreCase(name))\r\n\t\t\t{\r\n\t\t\t\treturn rp;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "a7c50a29950b96be843d4eb2b70e002a", "score": "0.45963496", "text": "public List< T > getPublished();", "title": "" }, { "docid": "5c3303b3b17c35499c03a3125046ea29", "score": "0.45915157", "text": "public ResearcherPublication createRootPublication(GenericItem publication, int versionNumber)\r\n\t{ \r\n\t\tResearcherPublication researcherPublication = this.getPublication(publication);\r\n\t\tif( researcherPublication == null )\r\n\t\t{\t\r\n\t\t researcherPublication = new ResearcherPublication(this, publication, versionNumber);\r\n\t rootPublications.add(researcherPublication);\r\n\t\t}\r\n\t\treturn researcherPublication;\r\n\t}", "title": "" }, { "docid": "7c3bf70c79e13b47a2c7f198409c6797", "score": "0.45909947", "text": "@GetMapping(\"/publications\")\n public Page<T> getPublications(Pageable page)\n {\n \n return pubDao.findAll(page);\n }", "title": "" }, { "docid": "e71072c9b0b9a842bc1f7d3a6b1c4c30", "score": "0.45887107", "text": "Item readItem(int id) throws NullPointerException;", "title": "" }, { "docid": "a79450968858e00464b91f936e5e8f11", "score": "0.45869932", "text": "Graph getPublisher();", "title": "" }, { "docid": "ccf38aee44a3886adab193541a038033", "score": "0.45859864", "text": "@java.lang.Override\n public wdl.Wdl.PublishedBy getPublishedBy() {\n @SuppressWarnings(\"deprecation\")\n wdl.Wdl.PublishedBy result = wdl.Wdl.PublishedBy.valueOf(publishedBy_);\n return result == null ? wdl.Wdl.PublishedBy.UNRECOGNIZED : result;\n }", "title": "" }, { "docid": "ccf38aee44a3886adab193541a038033", "score": "0.45859864", "text": "@java.lang.Override\n public wdl.Wdl.PublishedBy getPublishedBy() {\n @SuppressWarnings(\"deprecation\")\n wdl.Wdl.PublishedBy result = wdl.Wdl.PublishedBy.valueOf(publishedBy_);\n return result == null ? wdl.Wdl.PublishedBy.UNRECOGNIZED : result;\n }", "title": "" }, { "docid": "309b8c22894821e90e62cd46ccfefd68", "score": "0.45848137", "text": "@Override\r\n\tpublic Item getHarvestItem() {\n\t\treturn ItemList.list.get(itemID);\r\n\t}", "title": "" }, { "docid": "1e9707d212080aae71d449aa1f27489d", "score": "0.45789766", "text": "public Item fetchItem(long itemId) {\n return mRepository.fetchItem(itemId);\n }", "title": "" }, { "docid": "fdc9e2a4f60fd9f5d021ac25977083cb", "score": "0.4571726", "text": "public T getById(Serializable id);", "title": "" }, { "docid": "b46cd4ce91bbe66487f11f957aa12545", "score": "0.45700237", "text": "public static RSItem getItem(String name) {\n RSItem[] items = find(name);\n return items.length > 0 ? items[0] : null;\n }", "title": "" }, { "docid": "df5b7834d1d58f60ea83f8b86f2a66c3", "score": "0.45698398", "text": "@Override\r\n\tpublic Item viewItem(int id) {\n\t\tOptional<Item> item =itemRepository.findById(id); \r\n\t\treturn item.get();\r\n\t}", "title": "" } ]
f8e177114dafae214cf55568ef6cc2a7
Sets the id member.
[ { "docid": "a996182bb04bf6a26290f0ab364948da", "score": "0.77305245", "text": "public void setIdMember(String idMember) {\n\t\tthis.idMember = idMember;\n\t}", "title": "" } ]
[ { "docid": "765049c5a4fe882245c9a6b58e7e05e0", "score": "0.7572722", "text": "public void setid(int value) {\n this.id = value;\n }", "title": "" }, { "docid": "b0f197b8ce8f94cf80aef259dd8c90fe", "score": "0.7521087", "text": "public void setId(int id) {\n // Setting the variable to the attribute without the uses of a scanner\n this.id = id;\n }", "title": "" }, { "docid": "51017642457109c889c75262cfbdd668", "score": "0.74766606", "text": "public final void setID(int id) {\r\n\tthis.id = id;\r\n }", "title": "" }, { "docid": "ae910548042bdd0c3254ef9dad744206", "score": "0.74545217", "text": "public void setId(int id) {\n mID = id;\n }", "title": "" }, { "docid": "b90a22c1502e8a814f712298429eb4d5", "score": "0.7427578", "text": "void setId(final int id)\n {\n fId = id;\n }", "title": "" }, { "docid": "27c77f0920ffd8f2e5d6fd0cfa402194", "score": "0.74212277", "text": "public void setId(ID id) {\n this.id = id;\n }", "title": "" }, { "docid": "8ad4c05b4499e5f22acafab51b52c672", "score": "0.74204206", "text": "public void setId (long id) {\r\n\t\tthis.id = id;\r\n\t}", "title": "" }, { "docid": "a1a3ebf23852a2c1b56235bb4a845055", "score": "0.7414621", "text": "public void setId(long id){\r\n\t\tthis.id = id;\r\n\t}", "title": "" }, { "docid": "15883bd73a05ef8d23a889733cd94089", "score": "0.7380042", "text": "public void setid(int id) {\r\n\r\n this.id = id;\r\n\r\n }", "title": "" }, { "docid": "6053ff818cbfaeb420c56fb77f052669", "score": "0.73789436", "text": "public void setId(int id) {\n \tmId = id;\n }", "title": "" }, { "docid": "a52c52647be615a94d191db3e24d11ba", "score": "0.73782474", "text": "public void setId(long id){\r\n \tthis.id = id;\r\n }", "title": "" }, { "docid": "2b204635d7729440135e1ba40611d070", "score": "0.73739004", "text": "public void setId(final int id)\r\n {\r\n this.id = id;\r\n }", "title": "" }, { "docid": "33b8e7a41d6045ad52cbcae1e6226afe", "score": "0.7353733", "text": "public void setID(final long id) {\n this.id = id;\n // this.pcs.firePropertyChange(\"id\", old, getID());\n }", "title": "" }, { "docid": "c02e74a91c3f42e02479f1abc7400e58", "score": "0.73465663", "text": "public final void setID(int id) {\r\n\t\tthis.id = id;\r\n\t}", "title": "" }, { "docid": "93392e139c0c4851ab231aed8476cc2a", "score": "0.734166", "text": "public void setID(int id) {\n this.id = id;\n }", "title": "" }, { "docid": "05f06e52cbb0aa66e8104602e5c39d08", "score": "0.73414004", "text": "public void setId(int id) {\n if (this.id == -1)\n this.id = id;\n }", "title": "" }, { "docid": "7187131324d44edf1aa0279b8edaa7db", "score": "0.7340059", "text": "public void setId(int id) {\n mId = id;\n }", "title": "" }, { "docid": "f4a12839fb485152ca60d5c50adc1340", "score": "0.73368067", "text": "public void setId(long id) {\r\n this.id = id;\r\n }", "title": "" }, { "docid": "5a3d8cb16a6d32c2e41aa5ad721ee8f4", "score": "0.73358196", "text": "public void setId(long id) {\r\n this.id = id;\r\n }", "title": "" }, { "docid": "5a3d8cb16a6d32c2e41aa5ad721ee8f4", "score": "0.73358196", "text": "public void setId(long id) {\r\n this.id = id;\r\n }", "title": "" }, { "docid": "5a3d8cb16a6d32c2e41aa5ad721ee8f4", "score": "0.73358196", "text": "public void setId(long id) {\r\n this.id = id;\r\n }", "title": "" }, { "docid": "5f09ce936f8498fb554c5d21a8f08112", "score": "0.7333545", "text": "public void setID(int id){\r\n\t\tthis.id = id;\r\n\t}", "title": "" }, { "docid": "6e90cca641ddfbfce90d775cc605583b", "score": "0.733223", "text": "private void setId(String inId) {\n this.id = inId;\n\n }", "title": "" }, { "docid": "985c1ae3a2ac7ce21acd3bb8697567cd", "score": "0.7329653", "text": "public void setId(long id)\n {\n this.id = id;\n }", "title": "" }, { "docid": "49e691d984094718c4acd9e8f8e21313", "score": "0.7326496", "text": "void setID(int id);", "title": "" }, { "docid": "49e691d984094718c4acd9e8f8e21313", "score": "0.7326496", "text": "void setID(int id);", "title": "" }, { "docid": "be8c607127da0adf013faa73892a0bd3", "score": "0.7290523", "text": "public void setId(int value) {\r\n this.id = value;\r\n }", "title": "" }, { "docid": "be8c607127da0adf013faa73892a0bd3", "score": "0.7290523", "text": "public void setId(int value) {\r\n this.id = value;\r\n }", "title": "" }, { "docid": "be75f8a5f4bef4a6831a2b43fdf321f7", "score": "0.7287777", "text": "public void setId(String value) {\n id = value;\n }", "title": "" }, { "docid": "be75f8a5f4bef4a6831a2b43fdf321f7", "score": "0.7287777", "text": "public void setId(String value) {\n id = value;\n }", "title": "" }, { "docid": "e3c9bff71177b79a91171c519740b550", "score": "0.7285747", "text": "public void setId(long id) {\n this.id = id;\n }", "title": "" }, { "docid": "e3c9bff71177b79a91171c519740b550", "score": "0.7285747", "text": "public void setId(long id) {\n this.id = id;\n }", "title": "" }, { "docid": "e3c9bff71177b79a91171c519740b550", "score": "0.7285747", "text": "public void setId(long id) {\n this.id = id;\n }", "title": "" }, { "docid": "e3c9bff71177b79a91171c519740b550", "score": "0.7285747", "text": "public void setId(long id) {\n this.id = id;\n }", "title": "" }, { "docid": "e3c9bff71177b79a91171c519740b550", "score": "0.7285747", "text": "public void setId(long id) {\n this.id = id;\n }", "title": "" }, { "docid": "e3c9bff71177b79a91171c519740b550", "score": "0.7285747", "text": "public void setId(long id) {\n this.id = id;\n }", "title": "" }, { "docid": "e3c9bff71177b79a91171c519740b550", "score": "0.7285747", "text": "public void setId(long id) {\n this.id = id;\n }", "title": "" }, { "docid": "e3c9bff71177b79a91171c519740b550", "score": "0.7285747", "text": "public void setId(long id) {\n this.id = id;\n }", "title": "" }, { "docid": "e3c9bff71177b79a91171c519740b550", "score": "0.7285747", "text": "public void setId(long id) {\n this.id = id;\n }", "title": "" }, { "docid": "e3c9bff71177b79a91171c519740b550", "score": "0.7285747", "text": "public void setId(long id) {\n this.id = id;\n }", "title": "" }, { "docid": "e3c9bff71177b79a91171c519740b550", "score": "0.7285747", "text": "public void setId(long id) {\n this.id = id;\n }", "title": "" }, { "docid": "e3c9bff71177b79a91171c519740b550", "score": "0.7285747", "text": "public void setId(long id) {\n this.id = id;\n }", "title": "" }, { "docid": "1d7f8e9496bea0225f80934f39b3915a", "score": "0.7283399", "text": "public void setID(int id){\n this.id = id;\n }", "title": "" }, { "docid": "61e8667c1e6a8fe1660705de0a34d386", "score": "0.7281374", "text": "void setId(int id) {\n this.id = id;\n }", "title": "" }, { "docid": "18d87d8e23b6ea27cd5e268529d43a5b", "score": "0.72802055", "text": "public void setId(long id){\n\n\t\tthis.id = id;\n\t}", "title": "" }, { "docid": "a0109a4d426ae664ad722c997ca3b6eb", "score": "0.72754616", "text": "public void setId(final int id) {\n this.id = id;\n }", "title": "" }, { "docid": "370c89ec4264533d53889698d284f277", "score": "0.72676265", "text": "public void setId(int id) {\r\n this.id = id;\r\n }", "title": "" }, { "docid": "370c89ec4264533d53889698d284f277", "score": "0.72676265", "text": "public void setId(int id) {\r\n this.id = id;\r\n }", "title": "" }, { "docid": "370c89ec4264533d53889698d284f277", "score": "0.72676265", "text": "public void setId(int id) {\r\n this.id = id;\r\n }", "title": "" }, { "docid": "370c89ec4264533d53889698d284f277", "score": "0.72676265", "text": "public void setId(int id) {\r\n this.id = id;\r\n }", "title": "" }, { "docid": "370c89ec4264533d53889698d284f277", "score": "0.72676265", "text": "public void setId(int id) {\r\n this.id = id;\r\n }", "title": "" }, { "docid": "370c89ec4264533d53889698d284f277", "score": "0.72676265", "text": "public void setId(int id) {\r\n this.id = id;\r\n }", "title": "" }, { "docid": "370c89ec4264533d53889698d284f277", "score": "0.72676265", "text": "public void setId(int id) {\r\n this.id = id;\r\n }", "title": "" }, { "docid": "ba0dd54ed398e4bc3254cbe337c116dd", "score": "0.7259889", "text": "@Override\r\n\tpublic void setId(long id) {\n\t\tthis.id = id;\r\n\t}", "title": "" }, { "docid": "971aa42f19af90feaec5948205bd36b1", "score": "0.72559", "text": "public void setId( String value )\n {\n id = value;\n }", "title": "" }, { "docid": "6e3402e5e29be5dbf86d0f5bf8810a30", "score": "0.7255428", "text": "public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}", "title": "" }, { "docid": "bee1949fb97c67215886d1e3e403eb8f", "score": "0.7246185", "text": "public void setID(long id) {\n this.id = (this.id == null) ? id : throwIDSetException();\n }", "title": "" }, { "docid": "743b602fc607702f2ff23a75fe8e0079", "score": "0.72414935", "text": "public abstract void setId(final Object id);", "title": "" }, { "docid": "1ab17ca223c9aa7615cd5de9dfe79c8b", "score": "0.7235297", "text": "public void setId(int id)\n {\n this.id = id;\n }", "title": "" }, { "docid": "1ab17ca223c9aa7615cd5de9dfe79c8b", "score": "0.7235297", "text": "public void setId(int id)\n {\n this.id = id;\n }", "title": "" }, { "docid": "1ab17ca223c9aa7615cd5de9dfe79c8b", "score": "0.7235297", "text": "public void setId(int id)\n {\n this.id = id;\n }", "title": "" }, { "docid": "1ab17ca223c9aa7615cd5de9dfe79c8b", "score": "0.7235297", "text": "public void setId(int id)\n {\n this.id = id;\n }", "title": "" }, { "docid": "1ab17ca223c9aa7615cd5de9dfe79c8b", "score": "0.7235297", "text": "public void setId(int id)\n {\n this.id = id;\n }", "title": "" }, { "docid": "dae53610eff4421026d3c4d85345fbea", "score": "0.7234635", "text": "final void setID(final int id) {\r\n\t\tthis.id = id;\r\n\t}", "title": "" }, { "docid": "cfd4852e0c4cf882dfdd6ade2221a54b", "score": "0.7233465", "text": "public void setId(String val) {\n id = val;\n }", "title": "" }, { "docid": "4376fce2b0b59b3ff23f5b67b6970666", "score": "0.7229569", "text": "public void setID(int id) {\n this.id = id;\n }", "title": "" }, { "docid": "c818d7f87101d9a69e99a8d0b76ed6e4", "score": "0.7229158", "text": "public void setId(int idValue) {\r\n this.id = idValue;\r\n }", "title": "" }, { "docid": "caa83a8cfdd327ac640694bc7b6001c7", "score": "0.72288674", "text": "public void setId(int value) {\n this.id = value;\n }", "title": "" }, { "docid": "94e19d7d5f3a4ed2767d2246bd5e5e22", "score": "0.72286916", "text": "public void setId(int id) {\n this.id = id;\n }", "title": "" }, { "docid": "94e19d7d5f3a4ed2767d2246bd5e5e22", "score": "0.72286916", "text": "public void setId(int id) {\n this.id = id;\n }", "title": "" }, { "docid": "94e19d7d5f3a4ed2767d2246bd5e5e22", "score": "0.72286916", "text": "public void setId(int id) {\n this.id = id;\n }", "title": "" }, { "docid": "94e19d7d5f3a4ed2767d2246bd5e5e22", "score": "0.72286916", "text": "public void setId(int id) {\n this.id = id;\n }", "title": "" }, { "docid": "b59ba8902d3d46e48b88e56c5c340c61", "score": "0.7223277", "text": "public void setID(int id) {\n this.id = id;\n }", "title": "" }, { "docid": "db10100fe504cc5203185bb780984cb8", "score": "0.7223153", "text": "public void setId(int id) {\n mId = id;\n }", "title": "" }, { "docid": "2c17ece217240d6f4031a7dfe1208146", "score": "0.72211635", "text": "public void setId(String id) {\n \tmId = Integer.parseInt(id);\n }", "title": "" }, { "docid": "5320c14dad55d8f83858757f991cb65d", "score": "0.72192836", "text": "public void setId(int id)\n\t{\n\t\tthis.id = id;\n\t}", "title": "" }, { "docid": "5320c14dad55d8f83858757f991cb65d", "score": "0.72192836", "text": "public void setId(int id)\n\t{\n\t\tthis.id = id;\n\t}", "title": "" }, { "docid": "49d0656bf265195f3b7f4d3aefee9a0f", "score": "0.72139895", "text": "public void setId(long id) {\n\t\tthis.id = id;\n\t}", "title": "" }, { "docid": "49d0656bf265195f3b7f4d3aefee9a0f", "score": "0.72139895", "text": "public void setId(long id) {\n\t\tthis.id = id;\n\t}", "title": "" }, { "docid": "49d0656bf265195f3b7f4d3aefee9a0f", "score": "0.72139895", "text": "public void setId(long id) {\n\t\tthis.id = id;\n\t}", "title": "" }, { "docid": "ca94c0eae6a63f850efb317075aa722f", "score": "0.72039527", "text": "public void setId(int id) {\r\n\t this.id = id;\r\n\t }", "title": "" }, { "docid": "faa950bca891285a105ad127bf3a8cb9", "score": "0.7202885", "text": "public void setId(int id) {\n this.id = id;\n }", "title": "" }, { "docid": "faa950bca891285a105ad127bf3a8cb9", "score": "0.7202885", "text": "public void setId(int id) {\n this.id = id;\n }", "title": "" }, { "docid": "faa950bca891285a105ad127bf3a8cb9", "score": "0.7202885", "text": "public void setId(int id) {\n this.id = id;\n }", "title": "" }, { "docid": "faa950bca891285a105ad127bf3a8cb9", "score": "0.7202885", "text": "public void setId(int id) {\n this.id = id;\n }", "title": "" }, { "docid": "faa950bca891285a105ad127bf3a8cb9", "score": "0.7202885", "text": "public void setId(int id) {\n this.id = id;\n }", "title": "" }, { "docid": "faa950bca891285a105ad127bf3a8cb9", "score": "0.7202885", "text": "public void setId(int id) {\n this.id = id;\n }", "title": "" }, { "docid": "faa950bca891285a105ad127bf3a8cb9", "score": "0.7202885", "text": "public void setId(int id) {\n this.id = id;\n }", "title": "" }, { "docid": "faa950bca891285a105ad127bf3a8cb9", "score": "0.7202885", "text": "public void setId(int id) {\n this.id = id;\n }", "title": "" }, { "docid": "faa950bca891285a105ad127bf3a8cb9", "score": "0.7202885", "text": "public void setId(int id) {\n this.id = id;\n }", "title": "" }, { "docid": "faa950bca891285a105ad127bf3a8cb9", "score": "0.7202885", "text": "public void setId(int id) {\n this.id = id;\n }", "title": "" }, { "docid": "faa950bca891285a105ad127bf3a8cb9", "score": "0.7202885", "text": "public void setId(int id) {\n this.id = id;\n }", "title": "" }, { "docid": "faa950bca891285a105ad127bf3a8cb9", "score": "0.7202885", "text": "public void setId(int id) {\n this.id = id;\n }", "title": "" }, { "docid": "faa950bca891285a105ad127bf3a8cb9", "score": "0.7202885", "text": "public void setId(int id) {\n this.id = id;\n }", "title": "" }, { "docid": "faa950bca891285a105ad127bf3a8cb9", "score": "0.7202885", "text": "public void setId(int id) {\n this.id = id;\n }", "title": "" }, { "docid": "faa950bca891285a105ad127bf3a8cb9", "score": "0.7202885", "text": "public void setId(int id) {\n this.id = id;\n }", "title": "" }, { "docid": "faa950bca891285a105ad127bf3a8cb9", "score": "0.7202885", "text": "public void setId(int id) {\n this.id = id;\n }", "title": "" }, { "docid": "faa950bca891285a105ad127bf3a8cb9", "score": "0.7202885", "text": "public void setId(int id) {\n this.id = id;\n }", "title": "" }, { "docid": "faa950bca891285a105ad127bf3a8cb9", "score": "0.7202885", "text": "public void setId(int id) {\n this.id = id;\n }", "title": "" }, { "docid": "faa950bca891285a105ad127bf3a8cb9", "score": "0.7202885", "text": "public void setId(int id) {\n this.id = id;\n }", "title": "" } ]
2b5dcc0949631d4fb2cd81e6e5fa083a
/ Because messages may be reordered, it is entirely possible that we get a nonlocal RejectedOverload, followed by an Accepted. So we must loop here.
[ { "docid": "3bd761227e242775b80a6a9fd11ea636", "score": "0.0", "text": "private MessageFilter makeAcceptedRejectedFilter(PeerNode next,\n\t\t\tint acceptedTimeout) {\n \n MessageFilter mfAccepted = MessageFilter.create().setSource(next).setField(DMT.UID, uid).setTimeout(acceptedTimeout).setType(DMT.FNPSSKAccepted);\n MessageFilter mfRejectedLoop = MessageFilter.create().setSource(next).setField(DMT.UID, uid).setTimeout(acceptedTimeout).setType(DMT.FNPRejectedLoop);\n MessageFilter mfRejectedOverload = MessageFilter.create().setSource(next).setField(DMT.UID, uid).setTimeout(acceptedTimeout).setType(DMT.FNPRejectedOverload);\n return mfAccepted.or(mfRejectedLoop.or(mfRejectedOverload));\n\t}", "title": "" } ]
[ { "docid": "f81e9f7bba7b4de88412329bbcbbdcbe", "score": "0.6877331", "text": "private synchronized void forwardRejectedOverload() {\n \tif(hasForwardedRejectedOverload) return;\n \thasForwardedRejectedOverload = true;\n \t\tnotifyAll();\n\t}", "title": "" }, { "docid": "51813c798cfb07012a0a0febd246903c", "score": "0.5811143", "text": "void gotAccepted();", "title": "" }, { "docid": "1ffaf3934bdd2b4de2d8dcb3db48e48c", "score": "0.56259054", "text": "@Override\n public void processMessage(Message msg) {\n }", "title": "" }, { "docid": "ecb23bf3918283aef4e686a63e0ef5ca", "score": "0.54753685", "text": "@Override\n\tpublic void processMessage(Message msg) {\n\n\t}", "title": "" }, { "docid": "73ffcc801584f1b63987538426906600", "score": "0.54643136", "text": "private void processNewAlliance(ServerMessage in)\r\n\t{\n\t}", "title": "" }, { "docid": "dc36ddb3423f8cdd3e07fc7c2578babc", "score": "0.5458276", "text": "@Override\n\tprotected void handleMsg(Message msg) {\n\n\t}", "title": "" }, { "docid": "3214876dbac7c356bdda930dbf0999f5", "score": "0.54160035", "text": "@Override\n protected Msg xrecv()\n {\n throw new UnsupportedOperationException();\n }", "title": "" }, { "docid": "dcae09ae0acddbfd9b5ad88d9b21bc56", "score": "0.5402644", "text": "public void acceptMessage(MessageI m) throws Exception;", "title": "" }, { "docid": "dbb0542a5d8c9c23b966c1a48309a186", "score": "0.5376407", "text": "private Processor processMessage() {\n return Exchange::getMessage;\n }", "title": "" }, { "docid": "f47211d212ded603e4caba59872efee9", "score": "0.5302435", "text": "@Koan\n public void refactoredDispatcher() {\n List<Consumer<String>> deliveryMethods = Arrays.asList(\n deliver(\"Text\", \"lastTextMessage\"),\n deliver(\"Email\", \"lastEmailMessage\"),\n deliver(\"Tweet\", \"lastTweet\")\n );\n\n deliveryMethods.forEach(deliveryMethod -> deliveryMethod.accept(\"message\"));\n\n assertEquals(\"Awesome Text: message\", lastTextMessage);\n assertEquals(\"Awesome Email: message\", lastEmailMessage);\n assertEquals(\"Awesome Tweet: message\", lastTweet);\n }", "title": "" }, { "docid": "9d6e48346134f0cba31bb76f4d339d2f", "score": "0.5274603", "text": "@Override\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tcheckAlternativeRoutes();\n\t\t}", "title": "" }, { "docid": "ef95d95e3102b2ab52a9ae4f0b70b507", "score": "0.5271858", "text": "@Override\n public void handleNow( final Message msg ) {\n boolean sent = false;\n \n switch( msg.getReusableType().getSubId() ) {\n case EventIds.ID_NEWORDERACK:\n sent = handleNewOrderAck( (NewOrderAck) msg );\n if ( ! sent ) {\n warnHub( (CommonExecRpt) msg );\n }\n break;\n case EventIds.ID_TRADENEW:\n case EventIds.ID_CANCELREJECT:\n case EventIds.ID_REJECTED:\n case EventIds.ID_CANCELLED:\n case EventIds.ID_REPLACED:\n case EventIds.ID_DONEFORDAY:\n case EventIds.ID_STOPPED:\n case EventIds.ID_EXPIRED:\n case EventIds.ID_SUSPENDED:\n case EventIds.ID_RESTATED:\n case EventIds.ID_TRADECORRECT:\n case EventIds.ID_TRADECANCEL:\n case EventIds.ID_ORDERSTATUS:\n case EventIds.ID_VAGUEORDERREJECT:\n sent = handleExec( (CommonExecRpt) msg );\n if ( ! sent ) {\n warnHub( (CommonExecRpt) msg );\n }\n break;\n case EventIds.ID_FORCECANCEL: // FILLER EVENTS\n case EventIds.ID_NEWORDERSINGLE:\n case EventIds.ID_CANCELREPLACEREQUEST:\n case EventIds.ID_CANCELREQUEST:\n break;\n default:\n break;\n }\n \n if ( !sent ) {\n _mktErrMsg.copy( DROP_UNEXPECTED_MSG_FROM_EXCHANGE );\n msg.dump( _mktErrMsg );\n _log.warn( _mktErrMsg );\n }\n }", "title": "" }, { "docid": "bee12925a69f3c67c7e0a5f4906fcbf1", "score": "0.5253442", "text": "public void acceptMessage(MessageI[] ms) throws Exception;", "title": "" }, { "docid": "065c2bef0de5fed9a1b496fea304ee09", "score": "0.52525777", "text": "public void handleMoveOverloads(){\n\t\tfor (Unit overload : overloadData.getOverloads())\r\n\t\t{\r\n\t\t\tif (!commandUtil.IsValidSelfUnit(overload)) continue;\r\n\r\n\t\t\t// if it is a move worker\r\n\t\t\tif (overloadData.getOverloadJob(overload) == OverloadData.OverloadJob.Move)\t{\r\n\t\t\t\tOverloadMoveData data = overloadData.getOverloadMoveData(overload);\r\n\r\n\t\t\t\t// 목적지에 도착한 경우 이동 명령을 해제한다\r\n\t\t\t\tif (overload.getPosition().getDistance(data.getPosition()) < 4) {\r\n\t\t\t\t\tsetIdleOverload(overload);\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tcommandUtil.move(overload, data.getPosition());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "f16daef14487afbd1bbd19ad0376ab2f", "score": "0.5218219", "text": "protected void msgProcess(Message msg) {\n\n }", "title": "" }, { "docid": "de45ab55932f14863a22fce00a2f9a74", "score": "0.52033824", "text": "private void handleCallVisitMessage(InfixUserContext userCtx) {\n String curMsg = toString();\n String newMsg = userCtx.visitMessage(curMsg);\n try {\n msgMap.clear();\n parseMessage(newMsg);\n } catch (Throwable e) {\n FixMessageMgr.logger.error(\n \"Could not parse new msg. Attempting to recover original msg. [bad msg: {}]\",\n newMsg, e);\n try {\n parseMessage(curMsg);\n } catch (Throwable e1) {\n FixMessageMgr.logger.error(\n \"Could not recover original msg. Abandon All Hope. [orig msg: {}]\", curMsg, e);\n return;\n }\n FixMessageMgr.logger.info(\"Recovered original msg: {}\", curMsg);\n }\n }", "title": "" }, { "docid": "ab6ceb1ade3822304ee727e474c70fb7", "score": "0.51813084", "text": "@Override\n public void onMessage(Message message) {\n throw new AmqpRejectAndDontRequeueException(\"不再入队异常\");\n\n }", "title": "" }, { "docid": "43d498d29019933bddf3ba783385b378", "score": "0.51707083", "text": "@Override\n\t\tpublic void onRejected(ClientConnection caller) \n\t\t{\n\t\t}", "title": "" }, { "docid": "db0f0364932d4d23954c38a036f49b34", "score": "0.5165317", "text": "@Override\n public void handleMessage(Message msg) {\n }", "title": "" }, { "docid": "db0f0364932d4d23954c38a036f49b34", "score": "0.5165317", "text": "@Override\n public void handleMessage(Message msg) {\n }", "title": "" }, { "docid": "765d8564bcf62095753d7cc9dc9202dd", "score": "0.51528174", "text": "@Override\n\tpublic void acceptMessage(MessageI[] ms) {\n\t\t\n\t}", "title": "" }, { "docid": "58cca00083f277300772347339406841", "score": "0.51467", "text": "void gotRejected();", "title": "" }, { "docid": "df6c4ca04e623b4cdbe41638c08f2be3", "score": "0.5142667", "text": "private void incomeMessageHandler(Message msg) {\n switch (msg.getmSubType()) {\n case INITIAL_VALUES: {\n try {\n Thread.sleep(3000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n handleInitialValues(msg);\n break;\n }\n case COMPARE: {\n mCompareNumbers[msg.getProcessType()]++;\n handleCompares(msg);\n if (confirmValuesThread[msg.getProcessType()] == null) {\n synchronized (this) {\n if (confirmValuesThread[msg.getProcessType()] == null) {\n confirmValuesThread[msg.getProcessType()] = new ConfirmValues(msg.getProcessType());\n confirmValuesThread[msg.getProcessType()].start();\n }\n }\n }\n }\n break;\n case COMPLAINT: {\n mComplaintNumber[msg.getProcessType()]++;\n break;\n }\n case OK: {\n mOkNumber[msg.getProcessType()]++;\n print(mNumber + \" oks: \" + mOkNumber[msg.getProcessType()] + \" mIOk? \" + mIOk[msg.getProcessType()]);\n if (mOkNumber[msg.getProcessType()] == mNumberOfValues - 1 && mIOk[msg.getProcessType()] && !ProtocolDone[msg.getProcessType()]) {\n\n printResults(msg.getProcessType(), 1);\n ProtocolDone[msg.getProcessType()] = true;\n Message notifyEnd = new Message(mNumber, msg.getProcessType(), BROADCAST, PROTOCOL_COMPLETE, \"1\");\n communication.broadcast(notifyEnd, broadCasterSocket);\n if (msg.getProcessType() == KEY_TAG)\n calculateG();\n }\n\n break;\n }\n case REFRESH:\n refresh(msg.getProcessType());\n break;\n case OK2: {\n mOk2Number[msg.getProcessType()]++;\n break;\n }\n case COMPLAINT_ANSWER: {\n mComplaintResponseNumber[msg.getProcessType()]++;\n String theInfo = msg.getmInfo();\n String[] splitData = theInfo.split(\"\\\\|\");\n String[] numOfNodes = splitData[0].split(\",\");\n String[] newVals = splitData[1].split(\",\");\n String s_i_j = (newVals[0]);\n String s_j_i = (newVals[1]);\n int i = Integer.parseInt(numOfNodes[0]);\n int j = Integer.parseInt(numOfNodes[1]);\n if (mNumber == i) {\n print(\"Setting straight the values\");\n values1[msg.getProcessType()][j - 1] = s_i_j;\n values2[msg.getProcessType()][j - 1] = s_j_i;\n }\n if (mNumber == j) {\n mComplaintNumber[msg.getProcessType()]--; // J larger than I and only I adds ++ to his complaint number\n print(\"Setting straight the values\");\n values2[msg.getProcessType()][i - 1] = s_i_j;\n values1[msg.getProcessType()][i - 1] = s_j_i;\n }\n\n break;\n }\n case NO_OK_ANSWER: {\n if (haveIFinished[msg.getProcessType()])\n return;\n if (mIOk[msg.getProcessType()]) { // Condition 1\n String theInfo = msg.getmInfo();\n String[] splitData = theInfo.split(\"\\\\|\");\n int theNode = Integer.parseInt(splitData[0]);\n String[] newValsRow = splitData[1].split(\",\");\n String[] newValsCol = splitData[2].split(\",\");\n newValsRow = interpolate(newValsRow, mFaults, true);\n newValsCol = interpolate(newValsCol, mFaults, true);\n if (newValsCol != null && newValsRow != null) { // Condition 2\n //Set straight the values\n values1[msg.getProcessType()][theNode - 1] = newValsCol[mNumber - 1];\n values2[msg.getProcessType()][theNode - 1] = newValsRow[mNumber - 1];\n interpolate(values1[msg.getProcessType()], mFaults, false);\n interpolate(values2[msg.getProcessType()], mFaults, false);\n boolean isInterpolateGood = false;\n for (int i = 0; i < mNumberOfValues; i++) {\n isInterpolateGood = isInterpolateGood || !values1[msg.getProcessType()][i].equals(\"0\");\n }\n if (isInterpolateGood) {\n isInterpolateGood = false;\n for (int i = 0; i < mNumberOfValues; i++) {\n isInterpolateGood = isInterpolateGood || !values2[msg.getProcessType()][i].equals(\"0\");\n }\n if (isInterpolateGood) {\n Message ok2Broadcast = new Message(mNumber, msg.getProcessType(), BROADCAST, OK2, \"done\");\n communication.broadcast(ok2Broadcast, broadCasterSocket);\n try {\n\n waitForOks[msg.getProcessType()].join();\n if (haveIFinished[msg.getProcessType()])\n return;\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n if (waitForOks[msg.getProcessType()].getRound() != 2 && !haveIFinished[msg.getProcessType()]) {\n waitForOks[msg.getProcessType()] = new WaitForOk(msg.getProcessType(), 2);\n waitForOks[msg.getProcessType()].start();\n }\n }\n }\n }\n }\n break;\n }\n case G_VALUES: {\n// g_values[msg.getmFrom() - 1] = msg.getmInfo();\n// numOfGValues++;\n numOfGValues++;\n while(!isGCaluculated){\n try {\n Thread.sleep(300);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n int nodeNum = msg.getmFrom() - 1;\n String[] temp = msg.getmInfo().split(\";\");\n String[] values1 = temp[0].split(\",\"), values2 = temp[1].split(\",\");\n\n for (int i = 0; i < mNumberOfValues; i++) {\n if (gValuesTable[i][nodeNum].equals(\"\"))\n gValuesTable[i][nodeNum] = values1[i];\n else if (!gValuesTable[i][nodeNum].equals(values1[i]))\n gValuesTable[i][nodeNum] = \"\";\n\n if (gValuesTable[nodeNum][i].equals(\"\"))\n gValuesTable[nodeNum][i] = values2[i];\n else if (!gValuesTable[nodeNum][i].equals(values2[i]))\n gValuesTable[nodeNum][i] = \"\";\n }\n if (waitForGsThread == null) { //starts a new thread\n waitForGsThread = new WaitForGsToCalculateInZero();\n waitForGsThread.start();\n }\n }\n break;\n }\n }", "title": "" }, { "docid": "929e3918bcd93c4de0bf532228d8379c", "score": "0.5130575", "text": "private void dispatchMessageToListeners(android.os.Message r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.net.wifi.WifiManager.ServiceHandler.dispatchMessageToListeners(android.os.Message):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.net.wifi.WifiManager.ServiceHandler.dispatchMessageToListeners(android.os.Message):void\");\n }", "title": "" }, { "docid": "d07f94cfb970f62dfc45796d01c27f0b", "score": "0.51287514", "text": "@Override\r\n public void action() {\r\n sequentialBehaviour.addSubBehaviour(new BatchReceiverWithHandlerBehaviour(self,\r\n askForDeliveryInDistrictBehaviour.getReceiversCount(),\r\n 1000,\r\n mt,\r\n aclMessages -> {\r\n var currentCost = getCurrentReceiveCost() -\r\n (receiveContract == null\r\n ? 0\r\n : getCurrentContractCancelPenalty());\r\n aclMessages.stream()\r\n .filter(x -> x != null && x.getPerformative() != ACLMessage.REFUSE) // ignore refuses\r\n .filter(x -> !isAgentInCheckStatus(x.getSender())) // ignore agents under check\r\n .filter(x -> produceContracts.stream() // early cycle break\r\n .noneMatch(c -> c.getConsumer().getId().equals(x.getSender().getName())))\r\n .map(x -> new DeliveryProposeParams(getDeliveryProposeStrategy(x), x))\r\n .filter(x -> x.getStrategy() != null\r\n && x.getStrategy().getCost() < currentCost)\r\n .min(Comparator.comparingDouble(x -> x.getStrategy().getCost()))\r\n .ifPresent(bestDeal -> {\r\n var reaction = betterReceiveContractFound(bestDeal);\r\n\r\n if (reaction != null)\r\n sequentialBehaviour.addSubBehaviour(reaction);\r\n });\r\n\r\n sequentialBehaviour.addSubBehaviour(newIteration());\r\n }));\r\n }", "title": "" }, { "docid": "48abe958f42688af5d808fd5c3991b7f", "score": "0.5114963", "text": "protected abstract void processMessage(Message zMessage) throws Exception;", "title": "" }, { "docid": "f65696da098bfd48310aad738cc423dc", "score": "0.510593", "text": "@Override\n\t\tpublic void onRejected(ClientConnection caller)\n\t\t{\n\t\t}", "title": "" }, { "docid": "f51938803ecd2dfb0cc3c5eabdb3efe6", "score": "0.510581", "text": "void processMessage(IMessage msg) {\n if (msg == null) {\n return;\n }\n\n if (filter == null || filter.accept(msg)) {\n //offer方法在添加元素时,如果发现队列已满无法添加的话,会直接返回false\n //因此要及时清理队列以免真正阻塞,导致无法往队列添加新的结果(message,Collector是用来收集结果用的)\n while (!mQueue.offer(msg)) {\n // Since we know the queue is full, this poll should never actually block\n mQueue.poll();\n }\n }\n }", "title": "" }, { "docid": "eab37d2a7ce427bf7aff9c26ef4bd1a3", "score": "0.5102427", "text": "@Override\n public Message processAndReply(Message inMessage, ServerComm scon) throws MessageException, SocketException {\n Message outMessage = null;\n \n switch (inMessage.getType()) {\n case TERMINATE:\n outMessage = new Message(MessageType.ACK);\n\n break;\n \n case UPDATE_REF_STATE:\n rep.updateRefState(inMessage.getRefState());\n outMessage = new Message(MessageType.ACK);\n break; \n\n case UPDATE_COACH_STATE: \n rep.updateCoachState(inMessage.getIdCoach(), inMessage.getCoachState());\n outMessage = new Message(MessageType.ACK);\n break; \n \n\n case UPDATE_CONTESTANT_STATE:\n rep.updateContestantState(inMessage.getIdCoach(), inMessage.getIdContest(), inMessage.getContestState());\n outMessage = new Message(MessageType.ACK);\n break; \n \n\n case UPDATE_STRENGTH: \n rep.updateStrength(inMessage.getIdCoach(), inMessage.getIdContest(), inMessage.getContestStrength());\n outMessage = new Message(MessageType.ACK);\n break; \n \n\n case UPDATE_AND_WRITE_STRENGTH: \n rep.updateStrengthAndWrite(inMessage.getIdCoach(), inMessage.getIdContest(), inMessage.getContestStrength());\n outMessage = new Message(MessageType.ACK);\n break; \n\n\n case UPDATE_PULL_POSITION: \n rep.updatePullPosition(inMessage.getPullPosition());\n outMessage = new Message(MessageType.ACK);\n break; \n case UPDATE_TRIAL_NUMBER: \n rep.updateTrialNumber(inMessage.getTrialNumber());\n outMessage = new Message(MessageType.ACK);\n break; \n\n case UPDATE_GAME_NUMBER: \n rep.updateGameNumber(inMessage.getGameNumber());\n outMessage = new Message(MessageType.ACK);\n break; \n\n case IS_KNOCK_OUT: \n rep.isKnockOut(inMessage.getGameNumber(), inMessage.getTrialNumber() , inMessage.getTeam());\n outMessage = new Message(MessageType.ACK);\n break; \n\n case IS_END: \n rep.isEnd(inMessage.getGameNumber(), inMessage.getTeam());\n outMessage = new Message(MessageType.ACK);\n break; \n\n case WAS_A_DRAW:\n rep.wasADraw(inMessage.getGameNumber());\n outMessage = new Message(MessageType.ACK);\n break; \n\n case END_MATCH:\n rep.endMatch(inMessage.getTeam(), inMessage.getResultA(), inMessage.getResultB());\n outMessage = new Message(MessageType.ACK);\n break; \n\n case ADD_CONTESTANTS_IN_PULL: \n rep.addContestantsInPull(inMessage.getIdCoach(), inMessage.getIdContest());\n outMessage = new Message(MessageType.ACK);\n break; \n\n case REMOVE_CONTESTANTS_IN_PULL:\n rep.removeContestantsInPull(inMessage.getIdCoach(), inMessage.getIdContest());\n outMessage = new Message(MessageType.ACK);\n break; \n\n default:\n System.out.println(\"Mensagem inválida recebida: \" + inMessage);\n break;\n }\n return outMessage;\n }", "title": "" }, { "docid": "ce59d3cb098bcca79546f2923717d03f", "score": "0.5096263", "text": "@Override\n\tpublic AcceptanceReply accept() {\n\t\tif (++numFails < H2HConstants.MAX_MESSAGE_SENDING_DIRECT) {\n\t\t\treturn AcceptanceReply.FAILURE;\n\t\t}\n\t\treturn super.accept();\n\t}", "title": "" }, { "docid": "afabdab94387c0dc3c683e184c6f4a47", "score": "0.50856483", "text": "@Override\n public ArrayList<Message> receive_message()\n {\n //ignored for corrupted_node\n return null;\n }", "title": "" }, { "docid": "963e0f06f72537799b336131aa20ef8a", "score": "0.5081102", "text": "public static void handleMessage2(Message msg) {\n\r\n\r\n\t\t}", "title": "" }, { "docid": "219a64f17595f03e9aab8110228ddacb", "score": "0.5070893", "text": "void acceptMessage(CancelMessage cm);", "title": "" }, { "docid": "2f9827db08c64fafe43621b9d9385a34", "score": "0.5061141", "text": "public void handleMessage(Message msg) {\n }", "title": "" }, { "docid": "ee4a2ffd272f26b11b957bbca710e4a6", "score": "0.5049147", "text": "@Koan\n public void flexibleDispatcher() {\n List<Consumer<String>> deliveryMethods = Arrays.asList(\n message -> lastTextMessage = \"New Text: \" + __,\n message -> lastEmailMessage = \"New Email: \" + __,\n message -> lastTweet = \"New Tweet: \" + __\n );\n\n deliveryMethods.forEach(deliveryMethod -> deliveryMethod.accept(\"new message\"));\n\n assertEquals(\"New Text: new message\", lastTextMessage);\n assertEquals(\"New Email: new message\", lastEmailMessage);\n assertEquals(\"New Tweet: new message\", lastTweet);\n }", "title": "" }, { "docid": "ecca62fb8cc3b4009311ab171d4dc9f1", "score": "0.50283504", "text": "@Override\n public void dispatchMessage(Message msg) {\n super.dispatchMessage(msg);\n }", "title": "" }, { "docid": "200a17e186a54a0763b907848bced552", "score": "0.50166285", "text": "public abstract void handlePendingRequestWhileUnBound(BasePendingRequest<S, I> basePendingRequest);", "title": "" }, { "docid": "3978afb8b71cd1854790b4cf77374057", "score": "0.50163966", "text": "public void handleMessage(android.os.Message r10) {\n /*\n r9_this = this;\n r3 = 0;\n r8 = 2;\n r4 = 1;\n r5 = com.whatsapp.m3.d;\n r0 = r10.what;\n switch(r0) {\n case 1: goto L_0x000b;\n case 2: goto L_0x0027;\n case 3: goto L_0x001a;\n case 4: goto L_0x000a;\n case 5: goto L_0x0070;\n case 6: goto L_0x009e;\n case 7: goto L_0x00cc;\n case 8: goto L_0x00e6;\n case 9: goto L_0x000a;\n case 10: goto L_0x0100;\n case 11: goto L_0x004c;\n case 12: goto L_0x0113;\n default: goto L_0x000a;\n };\n L_0x000a:\n return;\n L_0x000b:\n r0 = r9.a;\n r1 = r0.a;\n r2 = r10.arg1;\n r0 = r10.obj;\n r0 = (com.whatsapp.protocol.b) r0;\n com.whatsapp.l7.a(r1, r2, r0);\n if (r5 == 0) goto L_0x000a;\n L_0x001a:\n r0 = r9.a;\n r1 = r0.a;\n r0 = r10.obj;\n r0 = (com.whatsapp.protocol.b) r0;\n r1.h(r0);\n if (r5 == 0) goto L_0x000a;\n L_0x0027:\n r0 = r10.obj;\n r0 = (com.whatsapp.protocol.b) r0;\n r1 = r9.a;\n r1 = r1.a;\n r2 = r10.arg1;\n r1 = com.whatsapp.l7.a(r1, r0, r2);\n if (r1 == 0) goto L_0x000a;\n L_0x0037:\n r1 = r9.a;\n r1 = r1.a;\n r1 = com.whatsapp.l7.c(r1);\n r2 = r10.arg1;\n r6 = r10.arg2;\n r0 = android.os.Message.obtain(r1, r8, r2, r6, r0);\n r0.sendToTarget();\n if (r5 == 0) goto L_0x000a;\n L_0x004c:\n r0 = r10.obj;\n r0 = (com.whatsapp.protocol.b) r0;\n r1 = r9.a;\n r1 = r1.a;\n r1 = com.whatsapp.l7.a(r1, r0);\n r2 = r9.a;\n r2 = r2.a;\n r6 = com.whatsapp.l7.c(r2);\n r7 = 10;\n if (r1 != 0) goto L_0x0125;\n L_0x0064:\n r2 = r3;\n L_0x0065:\n if (r1 != 0) goto L_0x0128;\n L_0x0067:\n r0 = android.os.Message.obtain(r6, r7, r2, r3, r0);\n r0.sendToTarget();\n if (r5 == 0) goto L_0x000a;\n L_0x0070:\n r0 = r10.obj;\n r0 = (java.lang.String) r0;\n r1 = r9.a;\n r1 = r1.a;\n r1 = com.whatsapp.l7.b(r1);\n r1 = android.os.Message.obtain(r1, r4, r0);\n r1.sendToTarget();\n r1 = r9.a;\n r1 = r1.a;\n r1 = com.whatsapp.l7.a(r1, r0);\n if (r1 == 0) goto L_0x000a;\n L_0x008d:\n r1 = r9.a;\n r1 = r1.a;\n r1 = com.whatsapp.l7.b(r1);\n r0 = android.os.Message.obtain(r1, r8, r0);\n r0.sendToTarget();\n if (r5 == 0) goto L_0x000a;\n L_0x009e:\n r0 = r10.obj;\n r0 = (java.lang.String) r0;\n r1 = r9.a;\n r1 = r1.a;\n r1 = com.whatsapp.l7.b(r1);\n r1 = android.os.Message.obtain(r1, r4, r0);\n r1.sendToTarget();\n r1 = r9.a;\n r1 = r1.a;\n r1 = com.whatsapp.l7.b(r1, r0);\n if (r1 == 0) goto L_0x000a;\n L_0x00bb:\n r1 = r9.a;\n r1 = r1.a;\n r1 = com.whatsapp.l7.b(r1);\n r0 = android.os.Message.obtain(r1, r8, r0);\n r0.sendToTarget();\n if (r5 == 0) goto L_0x000a;\n L_0x00cc:\n r0 = r9.a;\n r0 = r0.a;\n com.whatsapp.l7.h(r0);\n r0 = r9.a;\n r0 = r0.a;\n r0 = com.whatsapp.l7.b(r0);\n r1 = 8;\n r0 = android.os.Message.obtain(r0, r1);\n r0.sendToTarget();\n if (r5 == 0) goto L_0x000a;\n L_0x00e6:\n r0 = r9.a;\n r0 = r0.a;\n com.whatsapp.l7.i(r0);\n r0 = r9.a;\n r0 = r0.a;\n r0 = com.whatsapp.l7.b(r0);\n r1 = 9;\n r0 = android.os.Message.obtain(r0, r1);\n r0.sendToTarget();\n if (r5 == 0) goto L_0x000a;\n L_0x0100:\n r0 = r10.obj;\n r0 = (com.whatsapp.o3) r0;\n r1 = r9.a;\n r1 = r1.a;\n r2 = r0.c;\n r3 = r0.a;\n r0 = r0.b;\n com.whatsapp.l7.a(r1, r2, r3, r0);\n if (r5 == 0) goto L_0x000a;\n L_0x0113:\n r0 = r9.a;\n r0 = r0.a;\n r0 = com.whatsapp.l7.a(r0);\n r1 = 7;\n r0 = android.os.Message.obtain(r0, r1);\n r0.sendToTarget();\n goto L_0x000a;\n L_0x0125:\n r2 = r4;\n goto L_0x0065;\n L_0x0128:\n r0 = r1;\n goto L_0x0067;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.whatsapp.lc.handleMessage(android.os.Message):void\");\n }", "title": "" }, { "docid": "e95c5bbd8d70aba3a602054cb3948c78", "score": "0.5014892", "text": "private static void a(kotlin.reflect.jvm.internal.impl.protobuf.WireFormat.FieldType r2, java.lang.Object r3) {\n /*\n if (r3 == 0) goto L_0x004c;\n L_0x0002:\n r0 = kotlin.reflect.jvm.internal.impl.protobuf.g.AnonymousClass1.fqd;\n r2 = r2.getJavaType();\n r2 = r2.ordinal();\n r2 = r0[r2];\n r0 = 1;\n r1 = 0;\n switch(r2) {\n case 1: goto L_0x003f;\n case 2: goto L_0x003c;\n case 3: goto L_0x0039;\n case 4: goto L_0x0036;\n case 5: goto L_0x0033;\n case 6: goto L_0x0030;\n case 7: goto L_0x0027;\n case 8: goto L_0x001e;\n case 9: goto L_0x0014;\n default: goto L_0x0013;\n };\n L_0x0013:\n goto L_0x0041;\n L_0x0014:\n r2 = r3 instanceof kotlin.reflect.jvm.internal.impl.protobuf.n;\n if (r2 != 0) goto L_0x001c;\n L_0x0018:\n r2 = r3 instanceof kotlin.reflect.jvm.internal.impl.protobuf.i;\n if (r2 == 0) goto L_0x0041;\n L_0x001c:\n r1 = 1;\n goto L_0x0041;\n L_0x001e:\n r2 = r3 instanceof java.lang.Integer;\n if (r2 != 0) goto L_0x001c;\n L_0x0022:\n r2 = r3 instanceof kotlin.reflect.jvm.internal.impl.protobuf.h.a;\n if (r2 == 0) goto L_0x0041;\n L_0x0026:\n goto L_0x001c;\n L_0x0027:\n r2 = r3 instanceof kotlin.reflect.jvm.internal.impl.protobuf.d;\n if (r2 != 0) goto L_0x001c;\n L_0x002b:\n r2 = r3 instanceof byte[];\n if (r2 == 0) goto L_0x0041;\n L_0x002f:\n goto L_0x001c;\n L_0x0030:\n r1 = r3 instanceof java.lang.String;\n goto L_0x0041;\n L_0x0033:\n r1 = r3 instanceof java.lang.Boolean;\n goto L_0x0041;\n L_0x0036:\n r1 = r3 instanceof java.lang.Double;\n goto L_0x0041;\n L_0x0039:\n r1 = r3 instanceof java.lang.Float;\n goto L_0x0041;\n L_0x003c:\n r1 = r3 instanceof java.lang.Long;\n goto L_0x0041;\n L_0x003f:\n r1 = r3 instanceof java.lang.Integer;\n L_0x0041:\n if (r1 == 0) goto L_0x0044;\n L_0x0043:\n return;\n L_0x0044:\n r2 = new java.lang.IllegalArgumentException;\n r3 = \"Wrong object type used with protocol message reflection.\";\n r2.<init>(r3);\n throw r2;\n L_0x004c:\n r2 = new java.lang.NullPointerException;\n r2.<init>();\n goto L_0x0053;\n L_0x0052:\n throw r2;\n L_0x0053:\n goto L_0x0052;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: kotlin.reflect.jvm.internal.impl.protobuf.g.a(kotlin.reflect.jvm.internal.impl.protobuf.WireFormat$FieldType, java.lang.Object):void\");\n }", "title": "" }, { "docid": "cf2596655d01f2ac0b4509429044af75", "score": "0.50145924", "text": "public interface MessageFilter {\n\t/**\n\t * Filter the message before it is placed in the queue.\n\t * \n\t * @param context\n\t * the context associated with the message\n\t */\n\tpublic void enqueueFilter(Context<Message, MessageDecision> context);\n\n\t/**\n\t * Filter the message after it is dequeued to be sent, but before it is\n\t * actually sent.\n\t * \n\t * @param context\n\t * the context associated with the message\n\t */\n\tpublic void dequeueFilter(Context<Message, MessageDecision> context);\n\n}", "title": "" }, { "docid": "ee007b67ec4c26cc37bca9a95e193262", "score": "0.5008594", "text": "public void interpretMessage(Message msg){\n }", "title": "" }, { "docid": "323b659be6d2981caaa55ef7d551b60d", "score": "0.5005603", "text": "public void acceptFlowMessages() {\n\t\tif (!hasUpdatedPort.compareAndSet(true,false)) {\n\t\t\treturn;\n\t\t};\n\t\tboolean processWasSuspended= isSuspended;\n\t\tif (isToBeSuspended()) {\n\t\t\tif (!processWasSuspended) {\n\t\t\t\tfinishPhaseBySuspension();\n\t\t\t};\n\t\t\treturn;\n\t\t};\n\t\tif (!processIsFormed) {\n\t\t\tactualize(rootCP);\n\t\t\tprocessIsFormed= true;\n\t\t};\n\t\tif (debugThisProcess()) {\n\t\t\tSystem.out.printf(\"%s: (3) CALL PHASE INITIATION (for F.M.);\\n\",this);\n\t\t};\n\t\tphaseInitiation();\n\t\tif (debugThisProcess()) {\n\t\t\tSystem.out.printf(\"%s: ============================================\\n\",this);\n\t\t\tSystem.out.printf(\"%s: CALL acceptPortValues(); processWasProvedOneTimeAtLeast=%s\\n\",this,processWasProvedOneTimeAtLeast);\n\t\t\tSystem.out.printf(\"%s: ============================================\\n\",this);\n\t\t\tprintSlotVariables(this);\n\t\t};\n\t\tboolean hasUpdatedPorts= acceptPortValues();\n\t\tif (debugThisProcess()) {\n\t\t\tSystem.out.printf(\"%s: ============================================\\n\",this);\n\t\t\tSystem.out.printf(\"%s: CALL FLOW MESSAGE; hasUpdatedPorts= %s, processWasProvedOneTimeAtLeast=%s\\n\",this,hasUpdatedPorts,processWasProvedOneTimeAtLeast);\n\t\t\tSystem.out.printf(\"%s: ============================================\\n\",this);\n\t\t\tprintSlotVariables(this);\n\t\t};\n\t\tprocessFlowMessages(rootCP);\n\t\tif (debugThisProcess()) {\n\t\t\tSystem.out.printf(\"%s: === O.K. === acceptFlowMessage;\\n\",this);\n\t\t}\n\t}", "title": "" }, { "docid": "086e35d3c3702e63972a8fa32fa6610d", "score": "0.5002824", "text": "@Override\r\n\tpublic void handleOperations(PrimitiveEnum message) {\r\n\t\tif (fvc.getActivationStatus()) {\r\n\t\t\tswitch (message) {\r\n\t\t\tcase enqueue:\r\n\t\t\t\tfvc.assignmentsInc(enqueueAssignments);\r\n\t\t\t\tfvc.queueingsInc(1);\r\n\t\t\t\tbreak;\r\n\t\t\tcase dequeue:\r\n\t\t\t\tfvc.assignmentsInc(1);\r\n\t\t\t\tfvc.unqueueingsInc(1);\r\n\t\t\t\tbreak;\r\n\t\t\tcase front:\r\n\t\t\t\tfvc.accessInc(1);\r\n\t\t\t\tbreak;\r\n\t\t\tcase tail:\r\n\t\t\t\tfvc.accessInc(1);\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tthrow new IllegalArgumentException(\r\n\t\t\t\t\t\t\"NoSuchConceptualQueueOperation\");\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "d46e95799b919c217bc73c1b303dc925", "score": "0.50023216", "text": "public void porterAnnouncingNoMoreBagsToCollect() {\n ClientCom clientCom = new ClientCom (serverHostName, serverHostPort);\n Message inMessage;\n Message outMessage = null;\n\n while (!clientCom.open()) {\n try {\n Thread.sleep(10);\n } catch (InterruptedException e) {\n GenericIO.writelnString(\"Thread \" + Thread.currentThread().getName()\n + \": REPStub: porterAnnouncingNoMoreBagsToCollect: \" + e.toString());\n }\n }\n\n try {\n outMessage = new Message(Message.MessageType.REP_PORTER_ANNOUNCING_NO_MORE_BAGS_TO_COLLECT.getMessageCode(),\n false, true);\n } catch(MessageException e) {\n GenericIO.writelnString(\"Thread \" + Thread.currentThread().getName()\n + \": REPStub: porterAnnouncingNoMoreBagsToCollect: \" + e.toString());\n }\n\n clientCom.writeObject(outMessage);\n inMessage = (Message) clientCom.readObject();\n\n if(inMessage.getMessageType() !=\n Message.MessageType.REP_PORTER_ANNOUNCING_NO_MORE_BAGS_TO_COLLECT.getMessageCode()) {\n GenericIO.writelnString(\"Thread \" + Thread.currentThread().getName()\n + \": REPStub: porterAnnouncingNoMoreBagsToCollect: Incorrect message type!\");\n GenericIO.writelnString(inMessage.toString());\n System.exit(1);\n }\n clientCom.close();\n }", "title": "" }, { "docid": "6b08458a8c35a9d3363c63c21887f039", "score": "0.49994174", "text": "default void afterMessageRoute(Message message, RoutingContext context, boolean direct, boolean rejectDuplicates,\n RoutingStatus result) throws ActiveMQException {\n\n }", "title": "" }, { "docid": "eb3c2cf63a055ab14de2da4f9381307e", "score": "0.49990675", "text": "private Peer2PeerMessage(){\r\n\t\t\r\n\t}", "title": "" }, { "docid": "14c92f6c787130591c51c0cb1f205fd1", "score": "0.49974915", "text": "protected abstract void mo1180b(Message message);", "title": "" }, { "docid": "3271ceb90c0ec5a6307bf30732f80c92", "score": "0.4981724", "text": "@Override\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tfor (Callback callback : mVideoCallbacks) {\n\t\t\t\tcallback.handleMessage(msg);\n\t\t\t}\n\t\t\tsuper.handleMessage(msg);\n\t\t}", "title": "" }, { "docid": "2b0e9e775e7c5720cb4fb82678b6153f", "score": "0.49785435", "text": "abstract boolean visitRequestMessage(RequestMessage message);", "title": "" }, { "docid": "3a03782003be393090b1e1b2e42b2d2d", "score": "0.49762318", "text": "void mo50406a(Message message);", "title": "" }, { "docid": "d414d4551eb246f415ba723506f6535a", "score": "0.49601364", "text": "default void beforeMessageRoute(Message message, RoutingContext context, boolean direct, boolean rejectDuplicates) throws ActiveMQException {\n\n }", "title": "" }, { "docid": "7be9d02951d5c748b24a68dd15c09d52", "score": "0.4959972", "text": "@Override\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tsuper.handleMessage(msg);\n\n\t\t}", "title": "" }, { "docid": "7be9d02951d5c748b24a68dd15c09d52", "score": "0.4959972", "text": "@Override\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tsuper.handleMessage(msg);\n\n\t\t}", "title": "" }, { "docid": "be2582e547ccdbe290af9ae418ca521f", "score": "0.49558458", "text": "public interface C11197b {\n /* renamed from: a */\n int mo27243a(Message message);\n\n /* renamed from: a */\n MessageBody mo27244a(MessageBody messageBody, int i);\n}", "title": "" }, { "docid": "37fdfb584f53fbc8a934d42bfc4ed94a", "score": "0.49469846", "text": "protected Passage() {/* intentionally empty block */}", "title": "" }, { "docid": "5569f8dbfaa24321db558526f2b05465", "score": "0.4943418", "text": "@Override\r\n\tpublic void process(MessageVO vo) {\n\t\t\r\n\t}", "title": "" }, { "docid": "e242bae4eefe21dca1f9056db84c27f6", "score": "0.4937286", "text": "private void handleNoPubkeyAccepted(PeerNode next, InsertTag thisTag) {\n\t\tLogger.error(this, \"Timeout waiting for FNPSSKPubKeyAccepted on \"+next);\n\t\tnext.localRejectedOverload(\"Timeout2\", realTimeFlag);\n\t\t// This is a local timeout, they should send it immediately.\n\t\tforwardRejectedOverload();\n\t\tnext.fatalTimeout(thisTag, false);\n\t}", "title": "" }, { "docid": "2e8071089d6f9522f0c044c20e19ee4b", "score": "0.49364007", "text": "protected void sequence_OutgoingMessageCall(EObject context, OutgoingMessageCall semanticObject) {\n\t\tif(errorAcceptor != null) {\n\t\t\tif(transientValues.isValueTransient(semanticObject, HelenaTextPackage.Literals.ABSTRACT_MESSAGE_CALL__MSG_NAME) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, HelenaTextPackage.Literals.ABSTRACT_MESSAGE_CALL__MSG_NAME));\n\t\t\tif(transientValues.isValueTransient(semanticObject, HelenaTextPackage.Literals.OUTGOING_MESSAGE_CALL__RECEIVER) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, HelenaTextPackage.Literals.OUTGOING_MESSAGE_CALL__RECEIVER));\n\t\t\tif(transientValues.isValueTransient(semanticObject, HelenaTextPackage.Literals.OUTGOING_MESSAGE_CALL__ACTUAL_ROLE_PARAMS_BLOCK) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, HelenaTextPackage.Literals.OUTGOING_MESSAGE_CALL__ACTUAL_ROLE_PARAMS_BLOCK));\n\t\t\tif(transientValues.isValueTransient(semanticObject, HelenaTextPackage.Literals.OUTGOING_MESSAGE_CALL__ACTUAL_DATA_PARAMS_BLOCK) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, HelenaTextPackage.Literals.OUTGOING_MESSAGE_CALL__ACTUAL_DATA_PARAMS_BLOCK));\n\t\t}\n\t\tINodesForEObjectProvider nodes = createNodeProvider(semanticObject);\n\t\tSequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes);\n\t\tfeeder.accept(grammarAccess.getOutgoingMessageCallAccess().getReceiverAbstractRoleInstanceReferenceParserRuleCall_0_0(), semanticObject.getReceiver());\n\t\tfeeder.accept(grammarAccess.getOutgoingMessageCallAccess().getMsgNameValidIDParserRuleCall_2_0(), semanticObject.getMsgName());\n\t\tfeeder.accept(grammarAccess.getOutgoingMessageCallAccess().getActualRoleParamsBlockActualRoleParamsBlockParserRuleCall_3_0(), semanticObject.getActualRoleParamsBlock());\n\t\tfeeder.accept(grammarAccess.getOutgoingMessageCallAccess().getActualDataParamsBlockActualDataParamsBlockParserRuleCall_4_0(), semanticObject.getActualDataParamsBlock());\n\t\tfeeder.finish();\n\t}", "title": "" }, { "docid": "e7b6621882982f2e5a8efe1d4a5031ac", "score": "0.4931065", "text": "List<Message<?>> expectN();", "title": "" }, { "docid": "35172026ce9203c5c0792933a5a763ef", "score": "0.4927191", "text": "protected abstract void dispatchMessage(IMessage msg);", "title": "" }, { "docid": "65fba129a8c975d1630f5aecd3d51f24", "score": "0.49249345", "text": "@Override\r\n protected void addHandlingInst(Message inMessage) {\n }", "title": "" }, { "docid": "646ea535585966410186e606c139c408", "score": "0.49129847", "text": "@Override\n\tpublic void msgWeAreClosed() {\n\t\t\n\t}", "title": "" }, { "docid": "4b92ea4b90f677cfa1bea5b472a02adb", "score": "0.49112228", "text": "public void tryToProcessWaitingSendedMessage()\r\n\t{\r\n\t\tMessageToSendItem item;\r\n\t\tListIterator<MessageToSendItem> iter=this.messageToTransmitQueue.listIterator();\r\n\t\tint[] route;\r\n\r\n\t\twhile(iter.hasNext())\r\n\t\t{\r\n\t\t\titem=iter.next();\r\n\t\t\troute=this.networkPartialKnowledgeManager.getDataMessageRoute(item.msg.getReceiver());\r\n\t\t\tif(route!=null) \r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"Repr \"+this.getUserId()+\" J'envoie le message routé!!!\");\r\n\t\t\t\tthis.sendFrame(new MWACFrame(this.getUserId(),this.neighboorlist.getLinkToRepresentant(MWACRouteAssistant.getFirstId(route)),new MWACMessage_RoutedData(item.msg,route)));\r\n\t\t\t\titer.remove();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "abc036c6b7157af16bd95d2202f873d0", "score": "0.49059087", "text": "@Override\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tswitch (msg.what) {\n\t\t\tcase DDef.FINISH_BIND:\n\t\t\t\tInquiry(msg);\n\t\t\t\tbreak;\n\t\t\tcase DDef.CONV_CONSUMERS:\n\t\t\t\tsetAttr((ConvConsumers) msg.obj);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tsuper.handleMessage(msg);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "1387ae58341e7c63f8c4e942909334e8", "score": "0.4899282", "text": "void acceptMessage(FillMessage fm);", "title": "" }, { "docid": "18b8453867625007bf3a5cbef7f603fb", "score": "0.48965043", "text": "private void method_2328(class_182 var1) {\n synchronized(this.field_2998) {\n while(this.field_2998.size() >= this.field_3004 || this.field_3002.method_2384() > this.field_2997.method_2398()) {\n if (this.field_2984) {\n throw new SocketException(\"Socket is closed\");\n }\n\n try {\n this.field_2998.wait(10000L);\n } catch (InterruptedException var8) {\n var8.printStackTrace();\n }\n }\n\n this.field_3002.method_2383();\n this.field_2998.add(var1);\n }\n\n if (this.field_2984) {\n throw new SocketException(\"Socket is closed\");\n } else {\n if (!(var1 instanceof class_187) && !(var1 instanceof class_186)) {\n synchronized(this.field_3009) {\n if (this.field_3009.method_1295()) {\n this.field_3009.method_1293((long)this.field_2997.method_2404(), (long)this.field_2997.method_2404());\n }\n }\n }\n\n this.method_2326(var1);\n if (var1 instanceof class_185) {\n synchronized(this.field_2994) {\n Iterator var3 = this.field_2994.iterator();\n\n while(var3.hasNext()) {\n class_13 var4 = (class_13)var3.next();\n var4.method_48();\n }\n }\n }\n\n }\n }", "title": "" }, { "docid": "1ab63b2e21f74bcaefdbb7d3818168e5", "score": "0.48856398", "text": "public boolean hasAccepted() {\n return messageCase_ == 1;\n }", "title": "" }, { "docid": "bb304040376343dff9142388ca596824", "score": "0.48828834", "text": "@Override\r\n\tpublic void processChildMessage(MessageVO vo) {\n\t\t\r\n\t}", "title": "" }, { "docid": "ce1433d7764ef61b4e0b82189cf86cd3", "score": "0.48805", "text": "protected abstract int doReadMessages(List<Object> paramList)\r\n/* 75: */ throws Exception;", "title": "" }, { "docid": "24eac8573b929ee692f3b2dcb6bbd8b9", "score": "0.48778772", "text": "@Override\r\n\tpublic void handleConsumeOk(String consumerTag) {\n\t\t\r\n\t}", "title": "" }, { "docid": "abc0f8f2a077475eae22070919b4ff22", "score": "0.48735088", "text": "int mo27243a(Message message);", "title": "" }, { "docid": "94f5bcb2e3f6157edcdec8c92b597f76", "score": "0.48480132", "text": "@Override\n\tpublic void callSenderReceive() {\n\t\tSystem.out.println(\"불가능\");\n\t\t\n\t}", "title": "" }, { "docid": "60e70141e099e52dcdcefd21f276eb11", "score": "0.48454592", "text": "@Override\n\tpublic boolean handleMessage(Message msg) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "60e70141e099e52dcdcefd21f276eb11", "score": "0.48454592", "text": "@Override\n\tpublic boolean handleMessage(Message msg) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "065ed7e12ab9a76f9c5ba4f011e9995f", "score": "0.4844021", "text": "@Override\r\n void reject() {\r\n if (mda.s == mda.LS[2]) {\r\n mda.getOP().RejectMsg();\r\n mda.s = mda.LS[0];\r\n }\r\n }", "title": "" }, { "docid": "e4eded794555aaed64949315bd492bb5", "score": "0.48384506", "text": "public void processMessages() {\n\t\tfor (int i = 0; i < clients.size(); i++) {\n\t\t\tConnection source = clients.get(i);\n\t\t\tif (!source.hasMessage())\n\t\t\t\tcontinue;\n\t\t\tString message = source.readMessage();\n\t\t\tif (message == null)\n\t\t\t\tcontinue;\n\t\t\t// Double loop -> no if check that only matters on one iteration.\n\t\t\t// Deliver messages to all clients < current client's rank\n\t\t\tfor (int j = 0; j < i; i++)\n\t\t\t\tclients.get(j).writeMessage(message);\n\t\t\t// Deliver messages to all clients > current client's rank\n\t\t\tfor (int j = i + 1; i < clients.size(); i++)\n\t\t\t\tclients.get(j).writeMessage(message);\n\t\t}\n\t}", "title": "" }, { "docid": "2a52cb008310742cd13b89bce7bc85f0", "score": "0.48338062", "text": "@Override\n\tpublic void exchange() {\n\t\t\n\t}", "title": "" }, { "docid": "83366c3f69321ee8648381683ac32764", "score": "0.48315713", "text": "protected void messageReceived(ChannelHandlerContext ctx,\n\t\t\tProtoMessagePack msg) throws Exception {\n\t\t\n\t}", "title": "" }, { "docid": "c60df900f55e0f45393218a3d062341f", "score": "0.48263916", "text": "@Override\n \tpublic void decodeMsg(int encodedMsg) {\n \t\t\n \t}", "title": "" }, { "docid": "65d6d79becb9b51837093c5f854d1553", "score": "0.48234874", "text": "@Override\n\tpublic void stickerMessage(Message arg0) {\n\t\t\n\t}", "title": "" }, { "docid": "27d02b609723fb38698d557c5986c8da", "score": "0.48234174", "text": "abstract boolean visitHaveMessage(HaveMessage message);", "title": "" }, { "docid": "45cd34a66edf5203c4bd553b462ff67b", "score": "0.48194844", "text": "public boolean processMessage(Message message) {\n if (WifiP2pServiceImpl.this.mVerboseLoggingEnabled) {\n P2pStateMachine p2pStateMachine = P2pStateMachine.this;\n p2pStateMachine.logd(getName() + \"when=\" + message.getWhen() + \" what=\" + message.what + \" arg1=\" + message.arg1 + \" arg2=\" + message.arg2);\n }\n int i = message.what;\n switch (i) {\n case 139280:\n if (WifiP2pServiceImpl.this.getWifiRepeaterEnabled()) {\n P2pStateMachine.this.deferMessage(message);\n break;\n } else {\n return false;\n }\n case WifiP2pMonitor.P2P_GO_NEGOTIATION_REQUEST_EVENT /* 147479 */:\n if (WifiP2pServiceImpl.this.mVerboseLoggingEnabled) {\n P2pStateMachine p2pStateMachine2 = P2pStateMachine.this;\n p2pStateMachine2.logd(getName() + \" deal with P2P_GO_NEGOTIATION_REQUEST_EVENT\");\n }\n P2pStateMachine.this.deferMessage(message);\n P2pStateMachine p2pStateMachine3 = P2pStateMachine.this;\n p2pStateMachine3.transitionTo(p2pStateMachine3.mInactiveState);\n break;\n case WifiP2pMonitor.P2P_INVITATION_RESULT_EVENT /* 147488 */:\n P2pStatus status = (P2pStatus) message.obj;\n if (status != P2pStatus.SUCCESS) {\n P2pStateMachine p2pStateMachine4 = P2pStateMachine.this;\n p2pStateMachine4.loge(\"Invitation result \" + status);\n if (status != P2pStatus.UNKNOWN_P2P_GROUP) {\n if (status != P2pStatus.INFORMATION_IS_CURRENTLY_UNAVAILABLE) {\n if (status != P2pStatus.NO_COMMON_CHANNEL) {\n WifiP2pServiceImpl.this.mWifiP2pMetrics.endConnectionEvent(5);\n P2pStateMachine.this.handleGroupCreationFailure();\n P2pStateMachine p2pStateMachine5 = P2pStateMachine.this;\n p2pStateMachine5.transitionTo(p2pStateMachine5.mInactiveState);\n break;\n } else {\n P2pStateMachine p2pStateMachine6 = P2pStateMachine.this;\n p2pStateMachine6.transitionTo(p2pStateMachine6.mFrequencyConflictState);\n break;\n }\n } else {\n P2pStateMachine.this.mSavedPeerConfig.netId = -2;\n P2pStateMachine p2pStateMachine7 = P2pStateMachine.this;\n p2pStateMachine7.p2pConnectWithPinDisplay(p2pStateMachine7.mSavedPeerConfig);\n break;\n }\n } else {\n int netId = P2pStateMachine.this.mSavedPeerConfig.netId;\n if (netId >= 0) {\n if (WifiP2pServiceImpl.this.mVerboseLoggingEnabled) {\n P2pStateMachine.this.logd(\"Remove unknown client from the list\");\n }\n P2pStateMachine p2pStateMachine8 = P2pStateMachine.this;\n p2pStateMachine8.removeClientFromList(netId, p2pStateMachine8.mSavedPeerConfig.deviceAddress, true);\n }\n P2pStateMachine.this.mSavedPeerConfig.netId = -2;\n P2pStateMachine p2pStateMachine9 = P2pStateMachine.this;\n p2pStateMachine9.p2pConnectWithPinDisplay(p2pStateMachine9.mSavedPeerConfig);\n break;\n }\n }\n break;\n case WifiP2pMonitor.P2P_REMOVE_AND_REFORM_GROUP_EVENT /* 147496 */:\n P2pStateMachine.this.logd(\"P2P_REMOVE_AND_REFORM_GROUP_EVENT event received in GroupNegotiationState state\");\n P2pStateMachine.this.mPendingReformGroupIndication = true;\n break;\n default:\n switch (i) {\n case WifiP2pMonitor.P2P_GO_NEGOTIATION_SUCCESS_EVENT /* 147481 */:\n case WifiP2pMonitor.P2P_GROUP_FORMATION_SUCCESS_EVENT /* 147483 */:\n if (WifiP2pServiceImpl.this.mVerboseLoggingEnabled) {\n P2pStateMachine p2pStateMachine10 = P2pStateMachine.this;\n p2pStateMachine10.logd(getName() + \" go success\");\n break;\n }\n break;\n case WifiP2pMonitor.P2P_GO_NEGOTIATION_FAILURE_EVENT /* 147482 */:\n if (((P2pStatus) message.obj) == P2pStatus.NO_COMMON_CHANNEL) {\n P2pStateMachine p2pStateMachine11 = P2pStateMachine.this;\n p2pStateMachine11.transitionTo(p2pStateMachine11.mFrequencyConflictState);\n break;\n }\n if (WifiP2pServiceImpl.this.mVerboseLoggingEnabled) {\n P2pStateMachine p2pStateMachine12 = P2pStateMachine.this;\n p2pStateMachine12.logd(getName() + \" go failure\");\n }\n WifiP2pServiceImpl.this.mWifiP2pMetrics.endConnectionEvent(0);\n P2pStateMachine.this.handleGroupCreationFailure();\n WifiP2pServiceImpl.this.sendP2pFailStateBroadcast();\n P2pStateMachine p2pStateMachine13 = P2pStateMachine.this;\n p2pStateMachine13.transitionTo(p2pStateMachine13.mInactiveState);\n break;\n case WifiP2pMonitor.P2P_GROUP_FORMATION_FAILURE_EVENT /* 147484 */:\n if (((P2pStatus) message.obj) == P2pStatus.NO_COMMON_CHANNEL) {\n P2pStateMachine p2pStateMachine14 = P2pStateMachine.this;\n p2pStateMachine14.transitionTo(p2pStateMachine14.mFrequencyConflictState);\n break;\n }\n break;\n case WifiP2pMonitor.P2P_GROUP_STARTED_EVENT /* 147485 */:\n if (message.obj != null) {\n P2pStateMachine.this.mGroup = (WifiP2pGroup) message.obj;\n if (WifiP2pServiceImpl.this.mVerboseLoggingEnabled) {\n P2pStateMachine p2pStateMachine15 = P2pStateMachine.this;\n p2pStateMachine15.logd(getName() + \" group started\");\n }\n if (P2pStateMachine.this.mGroup.isGroupOwner() && WifiP2pServiceImpl.EMPTY_DEVICE_ADDRESS.equals(P2pStateMachine.this.mGroup.getOwner().deviceAddress)) {\n P2pStateMachine.this.mGroup.getOwner().deviceAddress = WifiP2pServiceImpl.this.mThisDevice.deviceAddress;\n }\n if (P2pStateMachine.this.mGroup.getNetworkId() == -2) {\n P2pStateMachine.this.updatePersistentNetworks(WifiP2pServiceImpl.RELOAD.booleanValue());\n P2pStateMachine.this.mGroup.setNetworkId(P2pStateMachine.this.mGroups.getNetworkId(P2pStateMachine.this.mGroup.getOwner().deviceAddress, P2pStateMachine.this.mGroup.getNetworkName()));\n }\n if (P2pStateMachine.this.mGroup.isGroupOwner()) {\n WifiP2pServiceImpl.this.sendGroupConfigInfo(P2pStateMachine.this.mGroup);\n if (!WifiP2pServiceImpl.this.mAutonomousGroup) {\n P2pStateMachine.this.mWifiNative.setP2pGroupIdle(P2pStateMachine.this.mGroup.getInterface(), 10);\n }\n P2pStateMachine p2pStateMachine16 = P2pStateMachine.this;\n p2pStateMachine16.startDhcpServer(p2pStateMachine16.mGroup.getInterface());\n } else {\n if (!WifiP2pServiceImpl.this.getMagicLinkDeviceFlag()) {\n P2pStateMachine.this.mWifiNative.setP2pGroupIdle(P2pStateMachine.this.mGroup.getInterface(), 10);\n boolean isP2pGcDhcpDisabled = WifiP2pServiceImpl.this.shouldDisableP2pGcDhcp();\n if (WifiP2pServiceImpl.this.mP2pNotDhcpCallback != null) {\n P2pStateMachine p2pStateMachine17 = P2pStateMachine.this;\n p2pStateMachine17.logw(\"p2pNotDhcpExpected=\" + WifiP2pServiceImpl.this.mIsP2pNotDhcpExpected + \" isP2pGcDhcpDisabled=\" + isP2pGcDhcpDisabled + \" p2pNotDhcpCallback=\" + WifiP2pServiceImpl.this.mP2pNotDhcpCallback.isP2pNotDhcpRunning());\n }\n if ((!WifiP2pServiceImpl.this.mIsP2pNotDhcpExpected || WifiP2pServiceImpl.this.mP2pNotDhcpCallback == null || !WifiP2pServiceImpl.this.mP2pNotDhcpCallback.isP2pNotDhcpRunning()) && !isP2pGcDhcpDisabled) {\n WifiP2pServiceImpl.this.startIpClient(P2pStateMachine.this.mGroup.getInterface(), P2pStateMachine.this.getHandler());\n }\n WifiP2pServiceImpl.this.mIsP2pNotDhcpExpected = false;\n if (WifiP2pServiceImpl.this.mWifiInjector == null) {\n WifiP2pServiceImpl.this.mWifiInjector = WifiInjector.getInstance();\n }\n WifiP2pServiceImpl.this.mWifiInjector.getWifiNative().setBluetoothCoexistenceMode(P2pStateMachine.this.mInterfaceName, 1);\n P2pStateMachine.this.mIsBTCoexDisabled = true;\n }\n WifiP2pDevice groupOwner = P2pStateMachine.this.mGroup.getOwner();\n if (groupOwner != null) {\n WifiP2pDevice peer = P2pStateMachine.this.mPeers.get(groupOwner.deviceAddress);\n if (peer != null) {\n groupOwner.updateSupplicantDetails(peer);\n P2pStateMachine.this.mPeers.updateStatus(groupOwner.deviceAddress, 0);\n P2pStateMachine.this.sendPeersChangedBroadcast();\n } else {\n if (!WifiP2pServiceImpl.EMPTY_DEVICE_ADDRESS.equals(groupOwner.deviceAddress)) {\n Matcher match = Pattern.compile(\"([0-9a-f]{2}:){5}[0-9a-f]{2}\").matcher(groupOwner.deviceAddress);\n Log.e(WifiP2pServiceImpl.TAG, \"try to judge groupOwner is valid or not\");\n if (match.find()) {\n groupOwner.primaryDeviceType = \"10-0050F204-5\";\n P2pStateMachine.this.mPeers.updateSupplicantDetails(groupOwner);\n P2pStateMachine.this.mPeers.updateStatus(groupOwner.deviceAddress, 0);\n P2pStateMachine.this.sendPeersChangedBroadcast();\n }\n }\n P2pStateMachine p2pStateMachine18 = P2pStateMachine.this;\n p2pStateMachine18.logw(\"Unknown group owner \" + groupOwner);\n }\n } else {\n P2pStateMachine.this.loge(\"Group owner is null.\");\n }\n }\n P2pStateMachine p2pStateMachine19 = P2pStateMachine.this;\n p2pStateMachine19.transitionTo(p2pStateMachine19.mGroupCreatedState);\n break;\n } else {\n Log.e(WifiP2pServiceImpl.TAG, \"Illegal argument(s)\");\n break;\n }\n case WifiP2pMonitor.P2P_GROUP_REMOVED_EVENT /* 147486 */:\n if (WifiP2pServiceImpl.this.mVerboseLoggingEnabled) {\n }\n WifiP2pServiceImpl.this.mWifiP2pMetrics.endConnectionEvent(0);\n P2pStateMachine.this.handleGroupCreationFailure();\n WifiP2pServiceImpl.this.sendP2pFailStateBroadcast();\n P2pStateMachine p2pStateMachine132 = P2pStateMachine.this;\n p2pStateMachine132.transitionTo(p2pStateMachine132.mInactiveState);\n break;\n default:\n return WifiP2pServiceImpl.this.handleGroupNegotiationStateExMessage(message);\n }\n }\n return true;\n }", "title": "" }, { "docid": "2fa91ee0d2767b48272567c934986e74", "score": "0.4813587", "text": "public void processMessage(Message message);", "title": "" }, { "docid": "59ee1345b04843f1035884a21c20cc7e", "score": "0.48123726", "text": "@Override\n public boolean supportsPartialMessages() {\n return false;\n }", "title": "" }, { "docid": "242334e66118d23936cbefb67db1f704", "score": "0.48122853", "text": "public void onCancelReject( DelegatorStrategy sender, OrderCancelReject reject );", "title": "" }, { "docid": "7c6b0cef7c9f10cbd5b8d28bcebd374e", "score": "0.48102087", "text": "@Override\n\tprotected void requestFail(Message msg) {\n\t\t\n\t}", "title": "" }, { "docid": "18b1968e40c9f431286404766b71484d", "score": "0.48095182", "text": "List<Message<?>> expectN(int total);", "title": "" }, { "docid": "dcaa8a454c4acdaceb6251bb7c4dca34", "score": "0.480276", "text": "public void communicationChannelBroken() {\n\r\n\t}", "title": "" }, { "docid": "3096407a0daa50a951b28ea5823a2469", "score": "0.4800126", "text": "@Override\n\tpublic boolean handleMessage(Message arg0) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "31962ab58375b49f84e341a54d341852", "score": "0.4792461", "text": "public void handleConsumeOk(String consumerTag) {\n\n }", "title": "" }, { "docid": "72526d45fb7388185c43892cbb452d74", "score": "0.4791687", "text": "public boolean hasAccepted() {\n return messageCase_ == 1;\n }", "title": "" }, { "docid": "a6fe22881aff227db7f88bda2c135958", "score": "0.4789918", "text": "@Override\n public Reject_Msg CreateRejectMsg(){\n return new Reject_Msg2();\n }", "title": "" }, { "docid": "5468e6d09bbe5cce8b9ae7c7f53120a0", "score": "0.47868097", "text": "private void handleReceivedMessages() throws ClassNotFoundException, IOException, JMSException, InterruptedException{\n\n\t\tQuery query = (Query) this.inputStream.readObject();\n\n\t\tswitch(query.getType()){\n\t\t\tcase SUBSCRIBE:\n\t\t\t\tthis.server.handleSubscribe((SubscriberQuery) query);\n\t\t\t\tbreak;\n\t\t\tcase UNSUBSCRIBE:\n\t\t\t\tthis.server.handleUnsubscribe((SubscriberQuery) query);\n\t\t\t\tbreak;\n\t\t\tcase CREATE_TOPIC:\n\t\t\t\tthis.server.handleCreateTopic((TopicQuery) query);\n\t\t\t\tbreak;\n\t\t\tcase MESSAGE:\n\t\t\t\tthis.server.handleMessage((MessageQuery) query);\n\t\t\t\tbreak;\n\t\t\tcase ACK:\n\t\t\t\tthis.handleAck((AckQuery) query);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "f7142a6a853840ecf0d5705bf6ee5667", "score": "0.4782549", "text": "public boolean hasSubsAccepted() {\n return messageCase_ == 11;\n }", "title": "" }, { "docid": "77516522cd3fdd682725617c38055291", "score": "0.47824416", "text": "public abstract boolean allow(Message m);", "title": "" }, { "docid": "efccdbcb7d8f508fc47d6020c54054be", "score": "0.47801352", "text": "private void handleOFMessage_unidenitified(OFMessage m) {\n \t\tswitch (m.getType()) {\n \t\tcase HELLO: // aleady sent our hello; just NOOP here\n \t\t\tif (m.getVersion() != OFMessage.OFP_VERSION) {\n \t\t\t\tFVLog.log(LogLevel.WARN, this,\n \t\t\t\t\t\t\"Mismatched version from switch \", sock, \" Got: \", m\n \t\t\t\t\t\t\t\t.getVersion(), \" Wanted: \",\n \t\t\t\t\t\tOFMessage.OFP_VERSION);\n \t\t\t\tFVError fvError = (FVError) this.factory\n \t\t\t\t\t\t.getMessage(OFType.ERROR);\n \t\t\t\tfvError.setErrorType(OFErrorType.OFPET_HELLO_FAILED);\n \t\t\t\tfvError.setErrorCode(OFHelloFailedCode.OFPHFC_INCOMPATIBLE);\n \t\t\t\tfvError.setVersion(OFMessage.OFP_VERSION);\n \t\t\t\tString errmsg = \"we only support version \"\n \t\t\t\t\t\t+ Integer.toHexString(OFMessage.OFP_VERSION)\n \t\t\t\t\t\t+ \" and you are not it\";\n \t\t\t\tfvError.setError(errmsg.getBytes());\n \t\t\t\tfvError.setErrorIsAscii(true);\n \t\t\t\tfvError.setLength((short) FVError.MINIMUM_LENGTH);\n \t\t\t\t\n \t\t\t\tthis.sendMsg(fvError, this);\n \t\t\t\ttearDown();\n \t\t\t}\n \t\t\tbreak;\n \t\tcase ECHO_REQUEST:\n \t\t\tOFMessage echo_reply = new OFEchoReply();\n \t\t\techo_reply.setXid(m.getXid());\n \t\t\tsendMsg(echo_reply, this);\n \t\t\tbreak;\n \t\tcase FEATURES_REPLY:\n \t\t\tthis.setSwitchInfo((OFFeaturesReply) m);\n \t\t\t/*\n \t\t\t * OFStatisticsRequest stats = new OFStatisticsRequest();\n \t\t\t * stats.setStatisticType(OFStatisticsType.DESC);\n \t\t\t */\n \t\t\tswitchName = \"dpid=\" + FlowSpaceUtil.dpidToString(this.getDPID());\n \t\t\tFVLog.log(LogLevel.INFO, this, \"identified switch as \" + switchName\n \t\t\t\t\t+ \" on \" + this.sock);\n \t\t\tFlowSpaceImpl.addListener(this); // register for FS updates\n \t\t\tSwitchImpl.addListener(this.getDPID(), this);\n \t\t\tthis.connectToControllers(null); // connect to controllers\n \t\t\t// TODO create switch entry in db.\n \t\t\tdoneID = true;\n \t\t\tupdateFloodPerms();\n \t\t\tbreak;\n \t\tdefault:\n \t\t\tFVLog.log(LogLevel.WARN, this, \"Got unknown message type \" + m\n \t\t\t\t\t+ \" to unidentified switch\");\n \t\t}\n \t}", "title": "" }, { "docid": "990f76fd44cba87c4062879882ee5053", "score": "0.4778332", "text": "void acceptMessage(String message);", "title": "" }, { "docid": "ca666952be8987918b5a03462cca8e8e", "score": "0.4771637", "text": "public Message getNextMessage();", "title": "" }, { "docid": "a6bfbd93a84484a8959c7084f9b37cf5", "score": "0.47637725", "text": "private void handleAcceptedRejectedTimeout(final PeerNode next, final InsertTag tag) {\n\t\tLogger.warning(this, \"Timeout awaiting Accepted/Rejected \"+this+\" to \"+next);\n\t\t// The node didn't accept the request. So we don't need to send them the data.\n\t\t// However, we do need to wait a bit longer to try to postpone the fatalTimeout().\n\t\t// Somewhat intricate logic to try to avoid fatalTimeout() if at all possible.\n\t\tMessageFilter mf = makeAcceptedRejectedFilter(next, TIMEOUT_AFTER_ACCEPTEDREJECTED_TIMEOUT);\n\t\ttry {\n\t\t\tnode.usm.addAsyncFilter(mf, new SlowAsyncMessageFilterCallback() {\n\n\t\t\t\tpublic void onMatched(Message m) {\n\t\t\t\t\tif(m.getSpec() == DMT.FNPRejectedLoop ||\n\t\t\t\t\t\t\tm.getSpec() == DMT.FNPRejectedOverload) {\n\t\t\t\t\t\t// Ok.\n\t\t\t\t\t\ttag.removeRoutingTo(next);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tassert(m.getSpec() == DMT.FNPSSKAccepted);\n\t\t\t\t\t\tif(logMINOR) Logger.minor(this, \"Forked timed out insert but not going to send DataInsert on \"+SSKInsertSender.this+\" to \"+next);\n\t\t\t\t\t\t// We are not going to send the DataInsert.\n\t\t\t\t\t\t// We have moved on, and we don't want inserts to fork unnecessarily.\n\t\t\t MessageFilter mfDataInsertRejected = MessageFilter.create().setSource(next).setField(DMT.UID, uid).setTimeout(searchTimeout).setType(DMT.FNPDataInsertRejected);\n\t\t\t try {\n\t\t\t\t\t\t\tnode.usm.addAsyncFilter(mfDataInsertRejected, new AsyncMessageFilterCallback() {\n\n\t\t\t\t\t\t\t\tpublic void onMatched(Message m) {\n\t\t\t\t\t\t\t\t\t// Cool.\n\t\t\t\t\t\t\t\t\ttag.removeRoutingTo(next);\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tpublic boolean shouldTimeout() {\n\t\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tpublic void onTimeout() {\n\t\t\t\t\t\t\t\t\t// Grrr!\n\t\t\t\t\t\t\t\t\tLogger.error(this, \"Fatal timeout awaiting FNPRejectedTimeout on insert to \"+next+\" for \"+SSKInsertSender.this);\n\t\t\t\t\t\t\t\t\tnext.fatalTimeout(tag, false);\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tpublic void onDisconnect(PeerContext ctx) {\n\t\t\t\t\t\t\t\t\ttag.removeRoutingTo(next);\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tpublic void onRestarted(PeerContext ctx) {\n\t\t\t\t\t\t\t\t\ttag.removeRoutingTo(next);\n\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}, SSKInsertSender.this);\n\t\t\t\t\t\t} catch (DisconnectedException e) {\n\t\t\t\t\t\t\ttag.removeRoutingTo(next);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tpublic boolean shouldTimeout() {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\tpublic void onTimeout() {\n\t\t\t\t\tLogger.error(this, \"Fatal: No Accepted/Rejected for \"+SSKInsertSender.this);\n\t\t\t\t\tnext.fatalTimeout(tag, false);\n\t\t\t\t}\n\n\t\t\t\tpublic void onDisconnect(PeerContext ctx) {\n\t\t\t\t\ttag.removeRoutingTo(next);\n\t\t\t\t}\n\n\t\t\t\tpublic void onRestarted(PeerContext ctx) {\n\t\t\t\t\ttag.removeRoutingTo(next);\n\t\t\t\t}\n\n\t\t\t\tpublic int getPriority() {\n\t\t\t\t\treturn NativeThread.NORM_PRIORITY;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}, this);\n\t\t} catch (DisconnectedException e) {\n\t\t\ttag.removeRoutingTo(next);\n\t\t}\n\t}", "title": "" }, { "docid": "5ba78b0c60fb417063914ad59f55b85f", "score": "0.4762824", "text": "@Override\n protected void cleanup() {\n if (!toSend.isEmpty() || !outgoingMsg.isEmpty()) {\n //There are still messages waiting to be sent\n toSend.addAll(outgoingMsg);\n for (int i=0;i<toSend.size();i=i+sendBatchSize) {\n List<MessageEnvelope> subset = toSend.subList(i,Math.min(toSend.size(),i+sendBatchSize));\n try {\n sendMessages(subset);\n } catch (RuntimeException e) {\n //Fail all remaining messages\n for (int j=i+sendBatchSize;j<toSend.size();j++) {\n toSend.get(j).message.failed(e);\n }\n throw e;\n }\n }\n }\n }", "title": "" }, { "docid": "c2702ba4f5b0186761ca308cae3343e0", "score": "0.47579262", "text": "@Override\n\tpublic void onIncomingMessage() {\n\t\t\n\t}", "title": "" } ]
f1ff77ac0e1efd7e75001018dc5dd57e
resets the position of the player to default
[ { "docid": "575a8cf05a6e5cd29046a739aa053c56", "score": "0.7544811", "text": "private void reset() {\n this.player.setPosition(0, 0);\n Field[] surroundings = getSurroundings(player);\n notifyChange(player, surroundings);\n\n }", "title": "" } ]
[ { "docid": "80b3535ce1f193c5f9c4ebc8b43b07cc", "score": "0.75736696", "text": "public void reset() {\n this.position = 0;\n }", "title": "" }, { "docid": "8dcafeab89135486df4994ede24901fe", "score": "0.7438204", "text": "public void reset() {\n\t\tisDead(false);\n\t\tplayerWon = false;\n\t\t\n\t\tscore = 0;\n\t\tbrickCount = 48;\n\t\t\n\t\tplayerPosInd = 22;\n\t\tplayerXPos = playerXPosList[playerPosInd];\n\t\tplayerYPos = playerYPosList[playerPosInd];\n\t}", "title": "" }, { "docid": "fc6eb14ca1c4ca1b054aac646d2fdd29", "score": "0.7389166", "text": "public void resetPosition() {\r\n this.block.getCollisionRectangle().setUpperLeft(this.resetInitialPos);\r\n }", "title": "" }, { "docid": "4cefc3a2fc10dd95474528d759815fba", "score": "0.7357561", "text": "public void reset() {\n myX = myDefaultX;\n myY = myDefaultY;\n myDirection = myDefaultDirection;\n myIsAlive = true;\n myPokeTime = 0;\n }", "title": "" }, { "docid": "6361b4f7b30d297095f73426ceda2f91", "score": "0.7347397", "text": "@Override\r\n public void reset() {\r\n current = 0;\r\n players[0].setPoints(0);\r\n players[1].setPoints(0);\r\n moves = 0;\r\n board.initialiseBoard2P();\r\n }", "title": "" }, { "docid": "eeaac62dcc10f11cffe88fbbb8af7b89", "score": "0.7242808", "text": "public void reset() { currentPos = 0; }", "title": "" }, { "docid": "b864a37787147ea488f8a5ed0abb8172", "score": "0.71976167", "text": "public void reset(){\n this.x = width/2;\n this.y = 250;\n this.direction = Direction.INPLACE;\n this.xVelocity = 0;\n this.yVelocity = 0;\n this.score = 0;\n }", "title": "" }, { "docid": "d58f0cbc2bac5dd32412428dc7c7d332", "score": "0.7192408", "text": "public void reset() {\n\t\tthis.pos = 0;\n\t}", "title": "" }, { "docid": "2791467993a8399e5ce83283486d3eb4", "score": "0.71778226", "text": "public void resetPos()\n {\n input = ' '; //Clears any existing input to prevent errors\n platformX = 350;\n platformY = 425;\n }", "title": "" }, { "docid": "8f3fc52f83d6975dda93f2196b498892", "score": "0.71016425", "text": "private void reset() {\r\n if (!Player.isPlaying() || Player.songComplete()) {\r\n this.timeline.stop();\r\n Player.pause();\r\n }\r\n\r\n Player.reset();\r\n this.overlay.clear();\r\n this.overlay.highlightCell(0);\r\n this.gridScrollPane.setHvalue(0);\r\n }", "title": "" }, { "docid": "d9dabde6144bec8e78a4bc670278ff1b", "score": "0.6999433", "text": "public void reset() {\n\n snake = new Snake(COURT_WIDTH, COURT_HEIGHT);\n target = new Poison(COURT_WIDTH, COURT_HEIGHT);\n target.changeCoords(); // Change target location\n\n playing = true;\n status.setText(\"Running...\");\n points.setText(\"Points: 0\");\n\n // Make sure that this component has the keyboard focus\n requestFocusInWindow();\n }", "title": "" }, { "docid": "7c57cc54bd461a30e761aad84afa3f3a", "score": "0.69831526", "text": "private void resetScreen(){\n // Resetting character\n core.charPlayer.setIsMoving(false);\n core.charPlayer.setPos(32, 32);\n core.charPlayer.setText(\"\");\n core.charPlayer.setFrameInterval(Character.BASE_FRAME_INTERVAL);\n core.charPlayer.setFrame(0);\n\n // Resetting background\n core.background.resetBackground();\n\n // Start background music\n core.res.mscBackground.play();\n }", "title": "" }, { "docid": "e24fbb564e0b3c9d7321a580045405eb", "score": "0.6951914", "text": "void resetPosition(int oldPosition, int newPosition);", "title": "" }, { "docid": "e50c7df6e070aadac46df664a5aeef87", "score": "0.69086736", "text": "public void reset() {\n\t\tp1 = false;\n\t\tp2 = false;\n\t\ttie = false;\n\t\tint[] start1 = getRandomStart();\n\t\tplayer = new PlayerHuman\n\t\t\t\t(start1[0], start1[1], start1[2], start1[3], Color.CYAN);\n\t\tplayers[0] = player;\n\t\tint[] start2 = getRandomStart();\n\t\tplayer2 = new PlayerHuman\n\t\t\t\t(start2[0], start2[1], start2[2], start2[3], Color.PINK);\n\t\tplayers[1] = player2;\n\t\ttimer.start();\n\t\trequestFocusInWindow();\n\t}", "title": "" }, { "docid": "54472882622a9d010c3a7b7f4edb2673", "score": "0.6881508", "text": "public void reset() {\r\n \ts.set(xstart, ystart);\r\n \tshootdelay=500;\r\n \tbulletlife = 20;\r\n }", "title": "" }, { "docid": "8ae22e5e0fad134b1c01b1a77a1404cb", "score": "0.6879942", "text": "public void reset() {\n //int[] start = getRandomStart();\n //player = new LocalPlayer(start[0], start[1], start[2], start[3], colors[0]);\n /*int[] start = getRandomStart();\n LocalPlayer player;\n players[0] = player;\n i = 0;\n time.start();\n requestFocusInWindow();\n */\n }", "title": "" }, { "docid": "ec95a029f561dc0d978af998d8a84498", "score": "0.68652177", "text": "public void resetObstaclePosition() {\n\t\t// Setting random height of obstacle.\n\t\tobstacleHeigth = 100 + (int) (Math.random() * 200);\n\t\t// Checking if the obstacle is up or down and sets the position after\n\t\t// reseting.\n\t\tif (isUp) {\n\t\t\tx = gameWidth + resetPosition;\n\t\t\ty = 0;\n\t\t} else {\n\t\t\tx = gameWidth + resetPosition;\n\t\t\ty = gameHeight - obstacleHeigth;\n\t\t}\n\t}", "title": "" }, { "docid": "8c596676bf069a66f400483a14639bf4", "score": "0.68650275", "text": "public void reset () {\n setMyCenter(new Location(myOriginalCenter));\n mySize = new Dimension(myOriginalSize);\n setMyVelocity(new Vector(myOriginalVelocity));\n }", "title": "" }, { "docid": "82ff02a4355231cfde62a9aa8ee84150", "score": "0.6860656", "text": "private void resetGame () {\n playerPoints = 0;\n compPoints = 0;\n updatePointsText();\n resetBoard();\n }", "title": "" }, { "docid": "851d6ffb2e2c2c1d699af46cdb41bb92", "score": "0.68317974", "text": "public void resetMovementPoint() {\n this.currentMovementPoint = this.maxMovementPoint;\n }", "title": "" }, { "docid": "cb311996de3efe45c2681b9334df2c8d", "score": "0.67989033", "text": "public void resetxy() {\n\t\tpositionx = 0;\n\t\tpositiony = 0;\n\t}", "title": "" }, { "docid": "ce57bbea1061177ce3f2131ed186e93f", "score": "0.67608935", "text": "private void resetGame() {\n currentLocation.setAll(0, 0);\n playerOneMoves.clear();\n playerTwoMoves.clear();\n isPlayerOneTurn = true;\n hasPlayerOneWon = false;\n hasPlayerTwoWon = false;\n }", "title": "" }, { "docid": "27a1463dfa0d34a45d1bfbd153f1a73b", "score": "0.67011225", "text": "public void reset()\r\n\t{\r\n\t\tsetHealth(100);\r\n\t\tsetX(X);\r\n\t\tsetY(Y);\r\n\t\tsetRange(0, 0);\r\n\t}", "title": "" }, { "docid": "a94c4588e3b05d4a3d980a673faeaec8", "score": "0.66632605", "text": "public void resetGame()\n {\n game_over = false;\n board.resetBoard();\n player1.reset();\n player2.reset();\n activePlayer = player1;\n }", "title": "" }, { "docid": "a658a6206f281841380a6b8db29cac85", "score": "0.66566616", "text": "public void restorePosition() {\n\t\tsetPosition(pos_marker);\n\t}", "title": "" }, { "docid": "477d04ea21f8de78d3457429f9d2ef1d", "score": "0.66251856", "text": "private void resetGame()\n\t{\n\t\t// reset game and points\n\t\tplayer1Points = 0;\n\t\tplayer2Points = 0;\n\t\tupdatePointsText();\n\t\tresetBoard();\n\t}", "title": "" }, { "docid": "f0863bd3ada397c04b18b1ce7efd43a2", "score": "0.66216195", "text": "private void resetPoints() {\n if (players == null)\n return;\n\n for (int i = 0; i < players.length; i++) {\n players[i].setPoints(0);\n }\n updateScoreboard();\n setPointButtonsEnabled(true);\n }", "title": "" }, { "docid": "ca835244c0478314aafe97946797d4a0", "score": "0.6601083", "text": "public void reset() {\r\n\t\tplay = false;\r\n\t\tmain = false;\r\n\t}", "title": "" }, { "docid": "e34cdcc73c9568a2c37af007e0451585", "score": "0.65394014", "text": "public void reset() {\n for (int i = 0; i < players.size(); i++){\n players.get(i).reset();\n }\n //player1.reset();\n }", "title": "" }, { "docid": "9bf996755d1aecc1970cead8e6e62a73", "score": "0.6535819", "text": "public void reset() {\n\t\t\n\t\ttheight = Window.random(0, Window.height() - gap);\n\t\tbheight = Window.height() - theight - gap;\n\t\t\n\t\t//pipe coordinates\n\t\tx = initialPos;\n\t\tty = theight / 2;\n\t\tby = Window.height() - bheight/2;\n\t\t\n\t}", "title": "" }, { "docid": "ab7b7c982e92aa956acffd1f6f6e7a80", "score": "0.6532017", "text": "public void resetGame()\n {\n mCurrentIndex = 0;\n //Reset player one as current player\n this.mPlayerOne.setIsPlaying(true);\n\n this.mPlayerTwo.setIsPlaying(false);\n this.mPlayerOneNumberOfGuess = 0;\n this.mPlayerTwoNumberOfGuess = 0;\n this.mPlayerOne.setCurrentScore(0);\n this.mPlayerTwo.setCurrentScore(0);\n this.mPlayerOne.setDonePlayingRound(false);\n this.mPlayerTwo.setDonePlayingRound(false);\n this.mIsGameOver = false;\n this.mDisplayGuessedAlphabet = \"\";\n setIsGameOver(false);\n\n }", "title": "" }, { "docid": "393678820aa861c42f6ab716a004276d", "score": "0.6529182", "text": "public void resetGame() {\r\n\t\t// reset the board state\r\n\t\tresetRenders();\r\n\t\t\r\n\t\t// set the pieces for the starting of the game\r\n\t\trender[3][3].setPiece(1); render[4][4].setPiece(1);\r\n\t\trender[3][4].setPiece(2); render[4][3].setPiece(2);\r\n\t\t\r\n\t\t// set the game in play, current player to one, and that neither player has won\r\n\t\t// and both players have a score of two\r\n\t\tin_play = true;\r\n\t\tcurrent_player = 2;\r\n\t\topposing = 1;\r\n\t\tplayer1_score = player2_score = 2;\r\n\t\t\r\n\t}", "title": "" }, { "docid": "4000ec5d8f2b7cc67c414d13f7bdc26a", "score": "0.65138936", "text": "private void resetGame() {\n\t\tcharacter.setAlive(true);\n\t\tcharacter.setX(50);\n\t\tcharacter.setY(60);\n\t\tthis.score = 0;\n\t\tland.resetGame();\n\t\t\n\t\tenemiesManager.resetGame();\n\t}", "title": "" }, { "docid": "418557db7c63b04f9e5e231a943c00ec", "score": "0.6504335", "text": "public void reset(){\r\n setExist(false);\r\n Random rand = new Random();\r\n if (!decideReappear()) {\r\n return;\r\n }\r\n xStart = rand.nextInt(RIGHT_BOUND);\r\n yStart = rand.nextInt(BOTTOM_BOUND);\r\n super.setX(xStart);\r\n super.setY(yStart);\r\n chooseNewDestinationAndSetSpeed(xStart,yStart);\r\n super.setExist(true);\r\n }", "title": "" }, { "docid": "71f4a0ebb6c160dd4abb8357ad8c8609", "score": "0.64929754", "text": "public void Reset() {\n updateLocation.Reset(); \n }", "title": "" }, { "docid": "a6415695147194d391506733984ca5df", "score": "0.64776766", "text": "public void setSpeedToZero(){\n speedX=0;\n speedY=0;\n }", "title": "" }, { "docid": "a078dd5cebac386b9d00705dc660de12", "score": "0.64593315", "text": "public void reset() {\n playerPoint = new Point(Constants.SCREEN_WIDTH / 2, Constants.SCREEN_HEIGHT / 2);\n\n player.update(playerPoint);\n obstacleManager = new ObstacleManager(550, 50, Color.BLACK, 50);\n boyManager = new BoyManager(Constants.SCREEN_WIDTH/7, Constants.SCREEN_HEIGHT/24, Color.BLUE);\n life = new Life();\n\n refresh = new RectF((Constants.SCREEN_WIDTH/2-Constants.SCREEN_WIDTH/20),20,(Constants.SCREEN_WIDTH/2+Constants.SCREEN_WIDTH/20),Constants.SCREEN_WIDTH/10+20);\n close = new RectF(refresh.right + 20, 20,refresh.right + Constants.SCREEN_WIDTH/10 + 20, Constants.SCREEN_WIDTH/10+20);\n pause = new RectF(refresh.left - 20 - Constants.SCREEN_WIDTH/10 , 20, refresh.left - 20, Constants.SCREEN_WIDTH/10 + 20);\n refreshImg = BitmapFactory.decodeResource(Constants.CURRENT_CONTEXT.getResources(), R.drawable.refresh);\n backImg = BitmapFactory.decodeResource(Constants.CURRENT_CONTEXT.getResources(), R.drawable.close);\n pauseImg = BitmapFactory.decodeResource(Constants.CURRENT_CONTEXT.getResources(), R.drawable.pause);\n pausestartImg = BitmapFactory.decodeResource(Constants.CURRENT_CONTEXT.getResources(), R.drawable.pause_start);\n\n playbg = new Rect(0,0,Constants.SCREEN_WIDTH,Constants.SCREEN_HEIGHT);\n playbgImg = BitmapFactory.decodeResource(Constants.CURRENT_CONTEXT.getResources(), R.drawable.mybg1);\n bullet = new Bullet(20, Color.BLACK, playerPoint.x, playerPoint.y);\n shootImg = BitmapFactory.decodeResource(Constants.CURRENT_CONTEXT.getResources(), R.drawable.shoot_pose);\n\n movingPlayer = false;\n\n orientationData = new OrientationData();\n orientationData.register();\n frameTime = System.currentTimeMillis();\n\n }", "title": "" }, { "docid": "9d9b4fa1529a91a17e81e9b6376279c6", "score": "0.6425503", "text": "public void reset()\n {\n pos = begin;\n }", "title": "" }, { "docid": "144c6c8cba6475411e637d2954edbcbe", "score": "0.64090633", "text": "public void resetImage() {\n pos = 0;\n }", "title": "" }, { "docid": "2e2a91cc3971ef02b2e86580ae057ced", "score": "0.6393898", "text": "public void resetAll()\n {\n loc.setLoc(new Location());\n //loc.angle = 0;\n //loc.xPos = 0;\n //loc.yPos = 0;\n }", "title": "" }, { "docid": "31757ffcb916b8d4afcb9db8a07716ba", "score": "0.6386345", "text": "public void resetGame(){\n resetField();\n stonesP[0] = 0;\n stonesP[1] = 0;\n finished = false;\n }", "title": "" }, { "docid": "8af7a452ad47b4b8d49d38c9ea072d9a", "score": "0.6376809", "text": "@SuppressWarnings(\"deprecation\")\n private void resetPlayer() {\n if (mMediaPlayer != null) {\n mMediaPlayer.reset();\n mMediaPlayer.release();\n mMediaPlayer = null;\n mTextureView.setMediaPlayer(null);\n mSurfaceView.setMediaPlayer(null);\n mCurrentState = STATE_IDLE;\n mTargetState = STATE_IDLE;\n if (mAudioFocusType != AudioManager.AUDIOFOCUS_NONE) {\n mAudioManager.abandonAudioFocus(null);\n }\n }\n mVideoWidth = 0;\n mVideoHeight = 0;\n }", "title": "" }, { "docid": "5d03d58d00232d725856477ead3a06a6", "score": "0.63710976", "text": "public void resetLastMove(){\r\n this.lastMove = 0;\r\n }", "title": "" }, { "docid": "69a9e1eb8b61fa516ffb70845c39c946", "score": "0.6370333", "text": "public void reset(Player p) {\n\t\tp.reset();\n\t\tp.setPosition(300, 161);\n\t\tSystem.out.println(\"Level reset!\");\n\t\t//populateEnemies();\n\t\tp.setBlockInput(true);\n//\t\teventCount = 0;\n//\t\ttileMap.setShaking(false, 0);\n//\t\teventStart = true;\n//\t\teventStart();\n//\t\ttitle = new Title(hageonText.getSubimage(0, 0, 178, 20));\n//\t\ttitle.sety(60);\n//\t\tsubtitle = new Title(hageonText.getSubimage(0, 33, 91, 13));\n//\t\tsubtitle.sety(85);\n\t\tp.setBlockInput(false);\n\t}", "title": "" }, { "docid": "8d6aaa9f1fea64d2924b2c672e63753e", "score": "0.63196224", "text": "private void resetGame() {\n Sound.stopBackgroundMusic();\n paused = false;\n welcomeScreen = null;\n gameScreen = null;\n endScreen = null;\n highScoreScreen = null;\n narration = false;\n }", "title": "" }, { "docid": "bc6d549c4c03a5c2e48ac0bef326b8d8", "score": "0.6314284", "text": "public void reset()\n\t{\n\t\tCameraConfiguration oldConfig = getConfiguration();\n\t\t\n\t\ttargetPos = new Vector3();\n\t\trotation = Quaternion.identity();\n\t\tdistance = 100.0f;\n\t\tFOV = FloatUtil.HALF_PI;\n\t\tclippingRange = new Vector2(1e-3f, 1e6f);\n\n\t\t//set previous parameters\n\t\tinvalidateMatrices();\n\t\tinvokeCameraMoveEvent(new CameraMoveEvent(oldConfig, getConfiguration(), getViewProjectionMatrix(), false));\n\t}", "title": "" }, { "docid": "1dc807a69403e500a8e6b326f353d5e7", "score": "0.631371", "text": "public void reset()\n\t{\n\t\tcurrentFrame = 0;\n\t}", "title": "" }, { "docid": "e07eb59f94b0321825b1071ba0bdbc48", "score": "0.6312793", "text": "public void resetBullet() {\n \n\t\tplayerBullet.setX(player.getX() + player.getWidth()/2);\n\t\tplayerBullet.setY(player.getY() + player.getHeight()/2);\n\t\tplayerBullet.setVelocityX(0);\n\t\tplayerBullet.setVelocityY(-16);\n\t\tbulletState = BULLET_START;\n\t}", "title": "" }, { "docid": "afdbe052c8dbcbc1758d6fa5d2090e5c", "score": "0.6300587", "text": "public void reset() {\r\n pos = mark;\r\n }", "title": "" }, { "docid": "b89cc85b62055c469790936187b4f77f", "score": "0.63003933", "text": "public void reset()\n {\n scorePlayerA = 0;\n scorePlayerB = 0;\n penaltiesPlayerB = 0;\n penaltiesPlayerA = 0;\n displayForPlayerA(scorePlayerA, penaltiesPlayerA);\n displayForPlayerB(scorePlayerB, penaltiesPlayerB);\n }", "title": "" }, { "docid": "0db72d57db093145d5ed7a642e610a42", "score": "0.6299903", "text": "@Override\n public void reset() {\n TLog.d(\"Reseting video player\");\n mVideoPlayer.reset();\n }", "title": "" }, { "docid": "c1d2f8200cda913bfeff9232d4193781", "score": "0.6296961", "text": "public static void setPlayerPos(Vector2 pos){ playerPos = pos; }", "title": "" }, { "docid": "2d0ed2cd176e1d6c8dbeae10f58213f8", "score": "0.6292768", "text": "public void reset() {\r\n frame.clearDrawables(); // removes drawables added by the user\r\n control.setValue(\"xleft\", 60); // sets default input values\r\n control.setValue(\"ytop\", 70);\r\n control.setValue(\"width\", 100);\r\n control.setValue(\"height\", 150);\r\n }", "title": "" }, { "docid": "8056a84299087db8886c8b13f0d2b8b2", "score": "0.62912095", "text": "public void clearOldPosition() {\n this.mOldPosition = -1;\n this.mPreLayoutPosition = -1;\n }", "title": "" }, { "docid": "d4a9de8b599a27a43d72c3afb548011e", "score": "0.6288472", "text": "public void reset () {\n\t\tstatus = GameStatus.IN_PROGRESS;\n\t\tfor (int r = 0 ; r < boardSize ; r++)\n\t\t\tfor (int c = 0 ; c < boardSize ; c++)\n\t\t\t\tboard[r][c] = Cell.EMPTY;\n\t\tplayer = sPlayer;\n\t}", "title": "" }, { "docid": "ca1b71f26f8f69ea7ebbaddd67a81233", "score": "0.62794363", "text": "public void reset() {\n shipLocation = null;\n asteroidLocations.clear();\n laserLocations.clear();\n explosionLocations.clear();\n starLocations.clear();\n pickupLocation = null;\n\n shipHealth = 100;\n baseHealth = 100;\n asteroidsDestroyed = 0;\n\n gameTime = 1;\n asteroidSpeed = 3;\n asteroidSpawnRate = 40;\n\n rapidTime = 0;\n\n gameStatus = GameState.RESET;\n rapidStatus = FireState.DEFAULT;\n pickup = PickupType.NONE;\n\n mouseTarget = new Point(0,200);\n }", "title": "" }, { "docid": "77507b7fc4df56d8287926d87b01dce1", "score": "0.62723863", "text": "public void resetView() {\n\t\tcurrentLocation = 0;\n\t\tupdate();\n\t}", "title": "" }, { "docid": "95e0a5d9a106162a030f5e948e1a93f4", "score": "0.6272236", "text": "@Override\n public void reset() {\n this.round = 0;\n this.opponentLastMoves = new ArrayList<Integer>();\n\n this.ourLastMoves = new ArrayList<Integer>();\n this.ourLastMoves.add(0);\n this.type = Type.PREPARE;\n }", "title": "" }, { "docid": "0b59557eafc21be42424874fe696948f", "score": "0.62695426", "text": "public void reset() {\n\t\ttimer.restart();\n\t\tsnake = new Snake(WRatio, HRatio);\n\t\tlocateFood();\n\t\tdirection = Direction.START;\n\n\t\tplaying = true;\n\t\tstatus.setText(\"Your score: \" + snake.length());\n\n\t\ttry {\n\t\t\thighScore = new ScoreReader(highScoreFile);\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"Invalid Score File\");\n\t\t}\n\n\t\t// Make sure that this component has the keyboard focus\n\t\trequestFocusInWindow();\n\t}", "title": "" }, { "docid": "07672148d43822508c87c57e5f1cbe9d", "score": "0.62665755", "text": "public void resetState() {\n\t\tgs.setPlaying(false);\n\t\tgs.setPaused(false);\n\t\tgs.setTitle(true);\n\t\t\n\t\tgameTime = 0;\n\t\troom.restart();\n\t}", "title": "" }, { "docid": "8df8e98bacb8d1ffa81769a977598c18", "score": "0.62395215", "text": "final private Position resetPos(Move move){\r\n \tPosition pos = currPos();\r\n \tint pos_temp = pos.squares[move.from];\r\n \tpos.squares[move.from] = 0;\r\n \t\r\n \tLog.v(\"square to\",\"\" + move.to);\r\n \t\r\n \tpos.squares[move.to] = pos_temp;\r\n \tPosition pos1 = new Position(pos);\r\n \treturn pos1;\r\n }", "title": "" }, { "docid": "367ab253728aa42c859b133ae01ed5a5", "score": "0.6229548", "text": "public void reset(){\n for(Player player : thePlayers){\n player.reset();\n }\n }", "title": "" }, { "docid": "05291be9fdf5f7c44660a053b75930b3", "score": "0.6227565", "text": "public void reset(){\n initGame = false;\n auto = new AutoPaddle(50,PREF_H/2,10,100);\n rightPaddle = new Paddle(50,PREF_H/2,10,100);\n leftPaddle = new Paddle(PREF_W-50,PREF_H/2,10,100);\n ball = new PongBall(PREF_W/2-15,PREF_H/2-15,30,30,4,4,new Rectangle(0,0,PREF_W,PREF_H));\n scoreL = 0;\n scoreR = 0;\n difficulty = 0;\n maxScore = 0;\n singlePlayer = twoPlayer = gameOver = false;\n }", "title": "" }, { "docid": "c238723dbbc20592134c1a146273276f", "score": "0.6224248", "text": "public void reset() {\n this.maxSpeed = 15;\n this.durability = 1;\n this.stamina = 1;\n }", "title": "" }, { "docid": "23af554a9afd8d0466b45f6725d2bedf", "score": "0.6223676", "text": "public void resetPosition(){\r\n\t\tfor (SquareShape square : squares)\r\n\t\t\tsquare.resetPosition();\r\n\t}", "title": "" }, { "docid": "21fd0cad87c9f6c28bf0ca4caa6584c9", "score": "0.6220965", "text": "public void reset() {\n chess.reset();\n status.setText(\"Player 1's Turn\");\n\n // generate initial colored board\n board = new BoardSquare[8][8];\n for (int r = 0; r < 8; r++) {\n boolean isLight = r%2 == 0;\n for (int c = 0; c < 8; c++) {\n board[r][c] = new BoardSquare(isLight, SQUARE_DIM, c*SQUARE_DIM, r*SQUARE_DIM);\n\n isLight = !isLight;\n }\n }\n\n repaint();\n\n // Makes sure this component has keyboard/mouse focus\n requestFocusInWindow();\n\n // set mode\n currMode = new MoveStartMode();\n }", "title": "" }, { "docid": "3bdcba867066ec43a21c302b7fe635ea", "score": "0.62191296", "text": "public void reset()\n\t{\n\t\tcurrentFrame = firstFrame;\n\t}", "title": "" }, { "docid": "2e8513fbedcb52c0d92c4da1f0e02039", "score": "0.6214655", "text": "public void capPos() {\n if (xPos > sWidth - playerSize()/2) {\n xPos = sWidth - playerSize()/2;\n } else if (xPos < playerSize()/2) {\n xPos = playerSize()/2;\n };\n\n if (yPos > sHeight - margin - playerSize()/2) {\n yPos = sHeight - margin - playerSize()/2;\n } else if (yPos < margin/2 + playerSize()/2) {\n yPos = margin/2 + playerSize()/2;\n };\n }", "title": "" }, { "docid": "1eb27481c2842f9844e8b3af4c97cff6", "score": "0.6214395", "text": "public void setToAutoPosition() {\n\t\tsetIsUserDefined(false);\n\t\tthis.strategy.reset();\n\t\tupdatePosition();\n\t}", "title": "" }, { "docid": "62aa5a49af91d619982a2ab8b42db3ae", "score": "0.6206766", "text": "public void reset() {\n\t\tx = startX;\n\t\ty = startY;\n\t}", "title": "" }, { "docid": "6247e5ca4d675e4fd247c5f7558e09a8", "score": "0.6176135", "text": "public void reset() {\n\t\tx = y = 0;\n\t\tzoom = 1;\n\t}", "title": "" }, { "docid": "0db41f5dcc9d1815022cbf3794c91f96", "score": "0.61754405", "text": "public void reset(){\n this.currentImage = WITHOUT_SHIELD_IMAGE;\n this.physics = new SpaceShipPhysics();\n this.healthLevel = MAX_HEALTH_LEVEL;\n this.maximalEnergyLevel = DEFAULT_MAX_ENERGY_LEVEL;\n this.currentEnergyLevel = DEFAULT_CURRENT_ENERGY_LEVEL;\n this.shieldUp = false;\n this.roundsShotCounter = 0;\n this.didFireShot = false;\n }", "title": "" }, { "docid": "bac5c17871a3c0985637be0aad626d3d", "score": "0.6175322", "text": "public void ResetGame(){\n snakeDies();\n setScore(0);\n setLive(3);\n removeFruit();\n this.previousArrow = Arrow.LEFT;\n this.currentArrow = Arrow.RIGHT;\n }", "title": "" }, { "docid": "ce5c97c4306e4cc3ff41bb0eae1011a7", "score": "0.61749774", "text": "protected void reset() {\n for (int i = 0; i < this.rows; i++) {\n for (int j = 0; j < this.columns; j++) {\n if (game[i][j].getEntity() != null) {\n game[i][j].getEntity().resetMoved();\n }\n }\n }\n }", "title": "" }, { "docid": "da95d18f41348cb8bb4abe79c4f7dc2e", "score": "0.61729205", "text": "public void resetToPosition(float x, float y, Facing facing){\n //reset rotating keys to prevent start width a rotating position\n rotateLeft=false;\n rotateRight=false;\n\n setPosition(x,y);\n this.facing=facing;\n switch(facing){\n case UP:\n radians =(float) Math.PI /2;\n break;\n case DOWN:\n radians = (float) Math.PI *3/2;\n break;\n case RIGHT:\n radians = (float) Math.PI;\n break;\n case LEFT:\n radians=(float)Math.PI * 2;\n }\n\n dead = false;\n }", "title": "" }, { "docid": "8bb8dc14adb02b4abf8895c68547b6d3", "score": "0.6166651", "text": "public void Reset(){\n this.progress = 0;\n SalidaMSG.getInstance().EnviarMensaje(\"RESET#\"+String.valueOf(player_num));\n }", "title": "" }, { "docid": "2e51685905130bcb8133b0ded5d0ecd0", "score": "0.6161839", "text": "private void resetPlayingField() {\n PlayingField.getInstance().clearAllObjects();\n }", "title": "" }, { "docid": "82dc75c28afe1ff5bc098be6b7a6b5bc", "score": "0.616123", "text": "void resetCurrentPoints();", "title": "" }, { "docid": "82176606bcc38af7e1813f9d92b1bc30", "score": "0.6148272", "text": "public static void preSet() {\n set(getInstance().gameBoardX, getInstance().gameBoardY);\n }", "title": "" }, { "docid": "0a89fb59ef37ac03822fb6456a7597e0", "score": "0.6133481", "text": "public void reset() {\n textLayout.setText(AssetManager.font, \"Are you\\nready?\");\r\n // Cridem als restart dels elements.\r\n spacecraft.reset();\r\n scrollHandler.reset();\r\n\r\n // Posem l'estat a 'Ready'\r\n currentState = GameState.READY;\r\n\r\n // Afegim la nau a l'stage\r\n stage.addActor(spacecraft);\r\n\r\n // Posem a 0 les variables per controlar el temps jugat i l'animació de l'explosió\r\n explosionTime = 0.0f;\r\n }", "title": "" }, { "docid": "aeadc4d661a058e58b422dd76bc2c11d", "score": "0.6124698", "text": "public void resetGame()\n {\n this.board.resetBoard();\n }", "title": "" }, { "docid": "eab4a8bf1a1c9adeb49153f1aca5e688", "score": "0.6124454", "text": "public void resetGame();", "title": "" }, { "docid": "f3192fdcea9b2c1dae010b997ee58388", "score": "0.61209476", "text": "public void reset()\n {\n mMediaPlayer.reset();\n mHasInitialized = false;\n mIsPaused = false;\n mIsPlaying = false;\n }", "title": "" }, { "docid": "156e06e05bc80f2923247501ee8178b5", "score": "0.61046225", "text": "private void reset(){\n\t\tNNeighbours = -42;\n\t\tAction = -42;\n\n\t\tNewXLocation = -42;\n\t\tNewYLocation = -42;\n\t\tNewOrientation = -42;\n\n\t\tCardDir = -42;\n\n\t}", "title": "" }, { "docid": "f545c3457843f5cced3a2334812e8720", "score": "0.61037165", "text": "public void reset() {\n\t\tsetCurrentMinute(-1);\n\t\tsetCurrentSecond(0);\n\t\tsetTimeForDisplayClock(\"00:00\");\n\t}", "title": "" }, { "docid": "872f5d843ef48707de856dcefa798161", "score": "0.61014867", "text": "protected static void reset()\n\t{\n\t\tgameWorld = null;\n\t}", "title": "" }, { "docid": "54ad81e2542c307117ac3631cce3236c", "score": "0.60999906", "text": "private void resetGame()\n\t{\n\t\t\n\t\ttank1.reset();\n\t\ttank2.reset();\n\t\tp1Panel.reset();\n\t\tp2Panel.reset();\n\t\tpaint(getGraphics());\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "01aa771534c78bb24963632862dcc4a1", "score": "0.6094657", "text": "@Override\n public void resetCameraPosition() {\n Camera camera = getCamera();\n camera.setLocation(new Vector3f(-96.7f, 2.5f, 676.4f));\n camera.lookAt(new Vector3f(-92f, 0f, 675f), Vector3f.UNIT_Y);\n }", "title": "" }, { "docid": "4060284fd19f0a537d7ba40c4bf82eb1", "score": "0.6091888", "text": "public void resetLocation(Blob blob) {\n\t\tSpawnPoint location = getSpawnLocation(blob);\n\t\tblob.getBody().setLocation(location.x, location.y);\n\t}", "title": "" }, { "docid": "81496eface398de13ea1cf0bad4a4a55", "score": "0.60892993", "text": "public void reset() {\n game = new Game();//new game\n this.setTurnText(game.getCurrentTurn());\n //remove gameboard an replace with new\n remove(gameBoard);\n gameBoard = new Board(SQUARE_SIZE, game, this);\n add(gameBoard);\n menuBar.update();\n //remove\n remove(removedPieceLbl);\n //sets coordinates of the gamboard\n gameBoard.setBounds(LETTER_NUM_WIDTH, 0, SQUARE_SIZE * 8, SQUARE_SIZE * 8);\n //resets the removed piece panel\n removedPieceLbl = new JLabel();\n removePieceLblX = 0;\n removePieceLblY = 0;\n add(removedPieceLbl);\n removedPieceLbl.setBounds(600, 100, 700, 700);\n }", "title": "" }, { "docid": "f4284a7356a165beb6df8ccc69d12090", "score": "0.60860467", "text": "private void resetBoard() {\n\t\tif (count <= 0) {\n\t\t\t// Reset the game board\n\t\t\tboxp1.setDisable(false);\n\t\t\tboxp2.setDisable(false);\n\t\t\tcountField.setDisable(false);\n\t\t\tcountField.setText(\"1\");\n\t\t\tplay.setVisible(true);\n\t\t\tplay.setText(\"Play Again\");\n\t\t} else {\n\t\t\t// Play another game\n\t\t\tplay.fire();\n\t\t}\n\t}", "title": "" }, { "docid": "4120fb6e9dc38f20b708583870492a78", "score": "0.60788935", "text": "public void updatePlayerPos()\r\n\t{\r\n\t\t//move player\r\n\t\tif (player.userHasControl())\r\n\t\t{\r\n\t\t\tplayer.setAngle((float)Math.toDegrees(joypad.getInputAngle()));\r\n\t\t\t//player.setPos(Vector2.add(player.getPos(), Vector2.scale(joypad.getInputVec(), /*Stopwatch.getFrameTime() **/ (1000 / 1000))));\r\n\t\t\tplayer.addImpulse(Vector2.scale(joypad.getInputVec(), player.getShape().getMass() * 5));\r\n\t\t}\r\n\t\tjoypad.clearInputVec();\r\n\t\t\r\n\t\t//move heldObject if neccessary\r\n\t\tif (player.isHoldingObject())\r\n\t\t\tplayer.updateHeldObjectPosition();\r\n\t\t\r\n\t\tint indx = (int)((player.getPos().x() + tileset.getWidth() * Tile.TILE_SIZE_F / 2) / Tile.TILE_SIZE_F);\r\n\t\tint indy = (int)((-player.getPos().y() + tileset.getHeight() * Tile.TILE_SIZE_F / 2) / Tile.TILE_SIZE_F);\r\n\t\t\r\n\t\tTile t = tileset.getTileAt(indx, indy);\r\n\t\t\r\n\t\tif (t != null)\r\n\t\t{\r\n \t\tif (t.getTileType() == Tile.TileType.PIT)\r\n \t\t Player.kill();\r\n\r\n \t\telse if (t.getTileType() == Tile.TileType.SlipperyTile)\r\n \t\t player.getShape().setKineticFriction(0);\r\n \t\t\r\n \t\telse\r\n \t\t player.getShape().setKineticFriction(5);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "87eb4bfe1245d1d0969e2ecdff43a7a8", "score": "0.60743064", "text": "public void switchPosition() {\n setPosition(CardPosition.values()[(position.ordinal() + 1) % CardPosition.values().length]);\n }", "title": "" }, { "docid": "bc1346835c380fdbba3cb5eb78efd227", "score": "0.6072492", "text": "public void reset2(){\n if(getDirection())\n setDirection(false);\n }", "title": "" }, { "docid": "12747030379208bd310b924ebed3be6b", "score": "0.6062878", "text": "public void setPosition() {\n\t\tposition = board.getPositionOf(this);\n\t}", "title": "" }, { "docid": "ac2b474c69485d3153747a09afd8079f", "score": "0.6055423", "text": "public void setPlayerPos(Point point) {\n\t\tthis.curPlayerPos = point;\n\t}", "title": "" }, { "docid": "50e7202710a76f62ffe6a7d1cebf04fd", "score": "0.60540813", "text": "public void setTubesPosDefault() {\r\n\t\ttubesPos.set(0, (double) (tubes[currTubeFix % 3][1].getLayoutY() + UPSIDE_DOWN_TUBE_HEIGHT));\t//tube is above Y\r\n\t\ttubesPos.set(1, (double) tubes[currTubeFix % 3][0].getLayoutY());\t//tube is bellow Y\r\n\t\ttubesPos.set(2,(double) tubes[currTubeFix % 3][0].getLayoutX());\t//tube starts at (X)\r\n\t\ttubesPos.set(3, (double) (tubes[currTubeFix % 3][0].getLayoutX() + TUBE_WIDTH));\t//tubes ends at (X)\r\n\t}", "title": "" }, { "docid": "f75f730bdc15c4864e3fc3c0292951ec", "score": "0.6050281", "text": "public void reset() {\n\t\tsuper.reset(movePool, surroundingLocations, locations);\n\t}", "title": "" }, { "docid": "4ad5ef00b9ddb1ae18007bb79c8f4109", "score": "0.6049701", "text": "@Test\r\n\tpublic void testSetPosition() {\r\n\t\tassertEquals(Position.FORWARD, player1.getPosition());\r\n\t\tassertEquals(Position.CENTER, player2.getPosition());\r\n\t\tassertEquals(Position.GUARD, player3.getPosition());\r\n\t\t\r\n\t\tplayer1.setPosition(\"Guard\");\r\n\t\tplayer2.setPosition(\"Forward\");\r\n\t\tplayer3.setPosition(\"Center\");\r\n\t\t\r\n\t\tassertEquals(Position.GUARD, player1.getPosition());\r\n\t\tassertEquals(Position.FORWARD, player2.getPosition());\r\n\t\tassertEquals(Position.CENTER, player3.getPosition());\r\n\t\t\r\n\t\t//fail(\"Not yet implemented\");\r\n\t}", "title": "" }, { "docid": "d82562b17e851040fb3d00fc37114403", "score": "0.604234", "text": "public void reset() {\n player.getInventory().clear();\n for (PotionEffect potionEffect : player.getActivePotionEffects()) {\n player.removePotionEffect(potionEffect.getType());\n }\n\n player.setFoodLevel(20);\n player.setHealth(20);\n player.setExp(0.0F);\n player.setLevel(0);\n }", "title": "" } ]
a1c7bd81499a1ee5fd63887118d0efa8
Created by Administrator on 2018/9/12.
[ { "docid": "98677d4bd6bf8cd18c3516a1f9c92761", "score": "0.0", "text": "public interface OnHeaderRefreshListener {\n void onHeaderRefresh(MyUltimateRefreshView view);\n}", "title": "" } ]
[ { "docid": "33d41636b65afa8267c9085dae3d1a2d", "score": "0.61144936", "text": "private void apparence() {\r\n\r\n\t}", "title": "" }, { "docid": "05a606445504484958a1c21e14b7198e", "score": "0.60769224", "text": "@Override\r\n\tpublic void sapace() {\n\t\t\r\n\t}", "title": "" }, { "docid": "6f653341cfc7d30c8418e4b72116f7e2", "score": "0.59555954", "text": "public void mo5201a() {\n }", "title": "" }, { "docid": "41e50fb9a0b417818374927eb02c67f1", "score": "0.59042627", "text": "protected void mo5608a() {\n }", "title": "" }, { "docid": "8619203d4867f5c6d05eb9a5354405c0", "score": "0.58912957", "text": "@Override\n\t\tpublic void pintate() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "8619203d4867f5c6d05eb9a5354405c0", "score": "0.58912957", "text": "@Override\n\t\tpublic void pintate() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "ffd8193c9cf73515d0f9301b9a7d8817", "score": "0.5819334", "text": "@Override\n\tpublic void morrer() {\n\n\t}", "title": "" }, { "docid": "b62a7c8e0bb1090171742c543bf4b253", "score": "0.5792359", "text": "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "title": "" }, { "docid": "b044552fe4d8d8225d09361b41fbea3a", "score": "0.5777576", "text": "public void mo5201a() {\n }", "title": "" }, { "docid": "191e85f3bbe60685b1f1474fd647cce0", "score": "0.5771447", "text": "public void create() {\n\t\t\r\n\r\n\t}", "title": "" }, { "docid": "0b5b11f4251ace8b3d0f5ead186f7beb", "score": "0.5718384", "text": "@Override\n\tpublic void comer() {\n\t\t\n\t}", "title": "" }, { "docid": "0d3bf6f2ee77f787007ba6b4021b5721", "score": "0.5694413", "text": "protected void olha()\r\n\t{\r\n\t\t\r\n\t}", "title": "" }, { "docid": "bb513e685d4bf2e32e837269c1b3f54f", "score": "0.568156", "text": "@Override\r\n\tprotected void create() {\n\t\t\r\n\t}", "title": "" }, { "docid": "5783648f118108797828ca2085091ef9", "score": "0.5673398", "text": "@Override\n protected void initialize() {\n \n }", "title": "" }, { "docid": "0adb5f1f1c75684eab047201533dcfe7", "score": "0.56732535", "text": "protected void mo5609b() {\n }", "title": "" }, { "docid": "d04355b7ad17e966b9f1c072e9560857", "score": "0.5649612", "text": "@Override\n\tpublic void create() {\n\t\t\n\t}", "title": "" }, { "docid": "7cfa0502df7c8526bdbac70a27bd6f62", "score": "0.564727", "text": "private CodeCamp() {\n\n\t}", "title": "" }, { "docid": "fdcc5bb4978b51f08b328e919c859b5b", "score": "0.564573", "text": "private Fachada() {\n\t\t\n\t}", "title": "" }, { "docid": "83773d3b283990bb87c18d4457578832", "score": "0.5604681", "text": "void created();", "title": "" }, { "docid": "80d20df1cc75d8fa96c12c49a757fc43", "score": "0.5593045", "text": "@Override\n\tprotected void getExras() {\n\t\t\n\t}", "title": "" }, { "docid": "746eb806db8cfdf846002580ca73aa5f", "score": "0.558919", "text": "private RecompensaCombate() {\n\n\t}", "title": "" }, { "docid": "3d0d28b7e05f08089bc7fd6707b98f82", "score": "0.5577201", "text": "@Override\n\t\tpublic void create() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "58bad84c4c25962349d2847acc8eb764", "score": "0.5565765", "text": "public void creation(){\r\n\t}", "title": "" }, { "docid": "c86f446a8bd6af19f88cc011fdf2ffd4", "score": "0.5562744", "text": "public void asustar() {\n // TODO implement here\n \n }", "title": "" }, { "docid": "ab92bad46db05153eb5c2eb626d0c4f9", "score": "0.55496943", "text": "@Override\n public void init() {\n\n \n }", "title": "" }, { "docid": "9d2f44c3ebe1fb8de1ac4ae677e2d851", "score": "0.55477035", "text": "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b941b399a338e8c204f1063e54a94824", "score": "0.55446756", "text": "public void mo7103g() {\n }", "title": "" }, { "docid": "b941b399a338e8c204f1063e54a94824", "score": "0.55446756", "text": "public void mo7103g() {\n }", "title": "" }, { "docid": "b941b399a338e8c204f1063e54a94824", "score": "0.55446756", "text": "public void mo7103g() {\n }", "title": "" }, { "docid": "ebfe1bb4dd1c0618c0fad36d9f7674b4", "score": "0.55400074", "text": "@Override\n protected void initialize() {\n\n }", "title": "" }, { "docid": "588ab475e29950e8a1944c4a28fe2189", "score": "0.55241483", "text": "public void mo7036d() {\n }", "title": "" }, { "docid": "11ea4dbcb16c90876489411d47bb1fa3", "score": "0.552085", "text": "private RepositorioGerencialArrecadacaoHBM() {\r\n\t}", "title": "" }, { "docid": "e3a701d0fdb1fef5e0afd9dc7c345fcb", "score": "0.5502538", "text": "@Override\n\tprotected void generateData() {\n\t\n\t}", "title": "" }, { "docid": "118f2b8a20f48999973063ac332d07d3", "score": "0.5483763", "text": "@Override\r\n\t\t\tpublic void atras() {\n\r\n\t\t\t}", "title": "" }, { "docid": "0ecc2b05fa1b3fe069983a07eba7914d", "score": "0.5483668", "text": "private void inicialitzarTaulell() {\r\n\t\t//PENDENT IMPLEMENTAR\r\n\t}", "title": "" }, { "docid": "e1d8d30db16e25b61890c83750260dbf", "score": "0.54780406", "text": "private ZachyceniVyjimky() {}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.5472539", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.5472539", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.5472539", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.5472539", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.5472539", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "292cbe61872dcad9d684e16a8054c962", "score": "0.5471362", "text": "private static void zmodyfikujPrzepis() {\n\t\t\r\n\t}", "title": "" }, { "docid": "734b1972ec29b58535c294e3962d017d", "score": "0.5456754", "text": "@Override\n\tpublic void generar() {\n\t\t\n\t}", "title": "" }, { "docid": "ffd82ab36787cd88d07cd34c85428452", "score": "0.5436642", "text": "private String getDateCreated() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "0b98a901e6553a2ad83debe24099f8ea", "score": "0.5408338", "text": "private Date createdDate() {\n return new Date();\n }", "title": "" }, { "docid": "a5600ed00582d8ca8d293829dcfd6c38", "score": "0.54038215", "text": "private void Syso() {\n\r\n\t}", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.540025", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.540025", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.540025", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.540025", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.540025", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.540025", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.540025", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.540025", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.540025", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.540025", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.540025", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "0694b71fd24e10a480fa3f3dcd28b3ca", "score": "0.53958935", "text": "public void mo7243j() {\n }", "title": "" }, { "docid": "0694b71fd24e10a480fa3f3dcd28b3ca", "score": "0.53958935", "text": "public void mo7243j() {\n }", "title": "" }, { "docid": "67e1a422c8d1e74f6601c8a6d1aaa237", "score": "0.5385182", "text": "@Override\n\tpublic void apagar() {\n\n\t}", "title": "" }, { "docid": "770d423e40bf5782a700bc181e8b8a1e", "score": "0.538051", "text": "@Override\n\tvoid init() {\n\t\t\n\t}", "title": "" }, { "docid": "770d423e40bf5782a700bc181e8b8a1e", "score": "0.538051", "text": "@Override\n\tvoid init() {\n\t\t\n\t}", "title": "" }, { "docid": "c16c8d1ea4a8c8572e4aa91460503742", "score": "0.5372794", "text": "private void Initalization() {\n\t\t\n\t}", "title": "" }, { "docid": "f275faa96cd04ca198a5a2d01888719f", "score": "0.53715885", "text": "@Override\n public void initialize() {\n \n }", "title": "" }, { "docid": "f275faa96cd04ca198a5a2d01888719f", "score": "0.53715885", "text": "@Override\n public void initialize() {\n \n }", "title": "" }, { "docid": "f275faa96cd04ca198a5a2d01888719f", "score": "0.53715885", "text": "@Override\n public void initialize() {\n \n }", "title": "" }, { "docid": "73a6471b73560f1189c48f12c95b8c59", "score": "0.5370395", "text": "public void create(){\n\t\t//TODO\n\t}", "title": "" }, { "docid": "27e4479db2c37a2e77fe796119b66d4b", "score": "0.5366523", "text": "@Override\r\n\t\t\tpublic void adelante() {\n\r\n\t\t\t}", "title": "" }, { "docid": "927820350d219dbfa25b04c283aaeaa8", "score": "0.5363664", "text": "@Override\n public void info() {\n \n }", "title": "" }, { "docid": "927820350d219dbfa25b04c283aaeaa8", "score": "0.5363664", "text": "@Override\n public void info() {\n \n }", "title": "" }, { "docid": "fa1a013b1df2f5f1062e1cc971135645", "score": "0.5359755", "text": "@Override\n\tpublic void mamar() {\n\t\t\n\t}", "title": "" }, { "docid": "f49ed6756be41155bd7261ea2ff6564b", "score": "0.53273386", "text": "@Override\n\t\t\t\tpublic void init() {\n\n\t\t\t\t}", "title": "" }, { "docid": "f49ed6756be41155bd7261ea2ff6564b", "score": "0.53273386", "text": "@Override\n\t\t\t\tpublic void init() {\n\n\t\t\t\t}", "title": "" }, { "docid": "f49ed6756be41155bd7261ea2ff6564b", "score": "0.53273386", "text": "@Override\n\t\t\t\tpublic void init() {\n\n\t\t\t\t}", "title": "" }, { "docid": "21caf865e426ec5feea3bed303161112", "score": "0.5306559", "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.5306559", "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.5306559", "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": "a613dcce17453a8e1eed3b984b6b35b1", "score": "0.5299391", "text": "@Override\n\tpublic void composant() {\n\t}", "title": "" }, { "docid": "4e49f5db36ca664153e54380025b85d4", "score": "0.5298449", "text": "protected boolean method_21825() {\n }", "title": "" }, { "docid": "f2fe8a59406298fe7e97b543f2bf8186", "score": "0.52925986", "text": "@Override\r\n \tpublic void init() {\r\n \t}", "title": "" }, { "docid": "b73ffc1dd3249ba3a21e816257107721", "score": "0.5276273", "text": "@Override\r\n\tpublic void name() {\n\t\t\r\n\t}", "title": "" }, { "docid": "19b30f4f881d8f7b600c7c12f1c30963", "score": "0.52739227", "text": "public void mo5203c() {\n }", "title": "" }, { "docid": "9781c90863e9dc9781fafcc4dc828136", "score": "0.5272621", "text": "public void mo7839l() {\n }", "title": "" }, { "docid": "9781c90863e9dc9781fafcc4dc828136", "score": "0.5272621", "text": "public void mo7839l() {\n }", "title": "" }, { "docid": "9fe3f6ccb967a8bcee9106fbbd56b684", "score": "0.5268521", "text": "@Override\r\n\tpublic void properties() {\n\t\t\r\n\t}", "title": "" }, { "docid": "f096fb135d2f2e86e9acc8604f38d461", "score": "0.52624094", "text": "private void ePIETT() {\n\n }", "title": "" }, { "docid": "9a8ec520830f05ff9dcb3c175f9bd4f9", "score": "0.526206", "text": "public void create() {\n\t}", "title": "" }, { "docid": "c47723cc77bfdfbeac347959926f9a12", "score": "0.52572864", "text": "@Override\n protected void initialize() {\n\n }", "title": "" }, { "docid": "132ebee1d663aa8e1c0ab776375c437a", "score": "0.5254109", "text": "Support support();", "title": "" }, { "docid": "86902206653e73827d3de15b94da6921", "score": "0.5250325", "text": "@Override\r\n\tpublic void makeacall() {\n\t\tSystem.out.println(\"번호를 누르고 통화버튼을 누름\");\r\n\t}", "title": "" }, { "docid": "0d81c067c8001661f6cbaddca50d165a", "score": "0.52489215", "text": "public void mo6081a() {\n }", "title": "" }, { "docid": "46569800c9d73cd59bcbec066cdb5304", "score": "0.52480716", "text": "private void lidoInf() {\n\n\n }", "title": "" }, { "docid": "abafa0feb638a1bfeb38f4a715f18334", "score": "0.52228916", "text": "private JournalEntryTemplateLineItem() {\n\t}", "title": "" }, { "docid": "b235707b1d9e71c5da64f3c62ad5652b", "score": "0.522277", "text": "@Override\r\n\t\t\tpublic void OnPrepareFinsihed() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "a544bb4b68c1ced79245024d63295d80", "score": "0.5219104", "text": "protected void veja()\r\n\t{\r\n\t\t\r\n\t}", "title": "" }, { "docid": "02e1a3c39765656f53d42dc6895ab3a5", "score": "0.52183664", "text": "@Override\n public void initialize() {\n \n }", "title": "" }, { "docid": "8be9a7d89cdcc4441b4104f165c1b9de", "score": "0.5217163", "text": "private void createObjects() {\n\t\t\n\t}", "title": "" }, { "docid": "32d0d506f2de2532fe4789f006c84da0", "score": "0.52126265", "text": "@Override\n\tpublic void bicar() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.52122784", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.52122784", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "235772828b460a414a66709e6096b938", "score": "0.5211789", "text": "@Override\r\n protected void initialize() {\r\n }", "title": "" } ]
ec75b6fd665d535ae4345dd850cd8618
need to database start Action than override this;
[ { "docid": "f6007fd6071c297946673beedafbf311", "score": "0.0", "text": "public void init() throws Exception{\r\n\t\tStatement statement= null;\r\n\t\ttry {\r\n\t\t\tConnection connection = getConnection();\r\n\t\t\tstatement = connection.createStatement();\r\n\t\t\tstatement.execute(\"SET AUTOCOMMIT ON\");\r\n\t\t\tstatement.execute(\"SET CACHE_SIZE 10240\");\r\n\t\t\tstatement.execute(\"SET DB_CLOSE_DELAY 1\");\r\n\t\t\tstatement.execute(\"SET LOG 2\");\r\n\t\t\tstatement.execute(\"SET LOCK_MODE 3\");\r\n\t\t\tstatement.execute(\"SET MAX_LOG_SIZE 10\");\r\n\t\t\tstatement.execute(\"SET MAX_MEMORY_ROWS 40000\");\r\n\t\t\tstatement.execute(\"SET TRACE_LEVEL_FILE 0\");\r\n\t\t\tstatement.execute(\"SET WRITE_DELAY 1\");\r\n\t\t} catch (Exception e) {\r\n\t\t\tthrow e;\r\n\t\t}\r\n\t\tfinally{\r\n\t\t\tif(statement != null)\r\n\t\t\t\tstatement.close();\r\n\t\t\tstatement = null;\r\n\t\t}\r\n\t}", "title": "" } ]
[ { "docid": "3a5a015237028dd2ccde0e01f85bd116", "score": "0.6902218", "text": "public void startSQL() {\r\n startSQL(null);\r\n }", "title": "" }, { "docid": "0a4dc784b6d5bcc74e3a31f8f6ee1993", "score": "0.6663879", "text": "public void start() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "650d507f7a441f2b983d1b2e13460a45", "score": "0.65397507", "text": "public void start(){\r\n\r\n\t}", "title": "" }, { "docid": "a441d4e8122a210c95ccb761aa85fa45", "score": "0.65044266", "text": "@Override\n protected void onStart() {\n super.onStart();\n displayDatabaseInfo();\n }", "title": "" }, { "docid": "1db6bc57e96e0cac5f001b12faacb93a", "score": "0.6466529", "text": "@Override\n\t\t\tpublic void onStart(int what) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "d30a25facb90475759e6c8d32e136c47", "score": "0.64405453", "text": "@Override\n\tprotected void onRestart() {\n\t\tsuper.onRestart();\n\t\t\n\t\t//Ouverture de la base\n\t\tthis.db.open();\n\t}", "title": "" }, { "docid": "ecc70001a40efcd175bf9c61f6f5a311", "score": "0.6432191", "text": "@Override\r\n public void start()\r\n {\n \r\n }", "title": "" }, { "docid": "1424bd6cbbad868ef0c777e147151368", "score": "0.6424247", "text": "@Override\n public boolean onCreate() {\n myDB = new DBHandler(getContext(),null,null,1);\n return false;\n }", "title": "" }, { "docid": "33c8e5414e3cdc2b8ecff00d2b416c3d", "score": "0.6399407", "text": "@Override\n\t protected void onStart() {\n\t Log.d(logtag,\"onStart() called\");\n\t super.onStart(); \n\t }", "title": "" }, { "docid": "cbf811fd76c638236379cd67c2754a60", "score": "0.6370405", "text": "public void init() {\n\t\tthis.setAction(\"start\", \"start\");\n\t}", "title": "" }, { "docid": "38f396abd0d925965eedbcc10d612563", "score": "0.6346303", "text": "public void start() {\n\t\t\r\n\t}", "title": "" }, { "docid": "a7353ac885c112234695c0d6ff5544cf", "score": "0.63277096", "text": "public void startExecuting() {\n\t\t\tsuper.startExecuting();\n\t\t}", "title": "" }, { "docid": "4a5cd6caadb0288c4da757850a30a0a0", "score": "0.6324576", "text": "@Override\n public void start() {\n\t\n }", "title": "" }, { "docid": "596828a42a17ed313ed406099fe10578", "score": "0.6320959", "text": "public void start()\n\t{\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "064a85315bc5367c5dbb9ebea232586f", "score": "0.63181233", "text": "public void start()\n {\n super.start();\n }", "title": "" }, { "docid": "c9da009fc4d56e48ddfa25bbe68fdfc6", "score": "0.6305275", "text": "public void start() {\n }", "title": "" }, { "docid": "f0373962e0aaf50177136b44cc832a67", "score": "0.62969303", "text": "@Override\n public void doStart() {\n \n \tLOG.info(\"Starting sql source {} ...\", getName());\n sqlSourceCounter.start();\n }", "title": "" }, { "docid": "c27e1b708264595c79aadb8d70c094e9", "score": "0.628426", "text": "public void start() {\n super.start();\n }", "title": "" }, { "docid": "b4d00fee25e090d5270d6304c967bc42", "score": "0.62799585", "text": "public void start() {\n\n\t}", "title": "" }, { "docid": "b0190b5261cfc28881f80cdb6a512900", "score": "0.6273799", "text": "@Override\n\t\t\t\t\t\tpublic void onStart() {\n\n\t\t\t\t\t\t}", "title": "" }, { "docid": "2b64776cc3ae1cd6189e920fc9fdeb2c", "score": "0.6253336", "text": "public void startExecuting()\n {\n super.startExecuting();\n }", "title": "" }, { "docid": "0b4138d47cbaa8cfb8f0a58d7d2148bf", "score": "0.6253213", "text": "@Override\r\n public void start() {\r\n }", "title": "" }, { "docid": "8235a6da950c1c879bb64ff200b7f449", "score": "0.6240849", "text": "@Override\n public void onStart(int what) {\n\n }", "title": "" }, { "docid": "5e25697acd14284ba01e81b2054750d1", "score": "0.62301314", "text": "@Override\r\n\tpublic void start() {\n\r\n\t}", "title": "" }, { "docid": "84b756e5b031213195eb9f200f39fa34", "score": "0.62238884", "text": "public void start(){\n }", "title": "" }, { "docid": "c7f3c7a99c0ce9c3aa1c33491d401d54", "score": "0.62166643", "text": "public void start ()\n\t{ \n\t}", "title": "" }, { "docid": "f4948a0d57952e512d7c22f54bbb1590", "score": "0.6204818", "text": "public final void onStart() {\n LogUtil.di(\"QuickActivity\", \"onStart()\");\n super.onStart();\n e();\n }", "title": "" }, { "docid": "20da676eccb934c1706532c27909c602", "score": "0.6182582", "text": "@Override\r\n\tpublic void start() {\n\t\tsuper.start();\r\n\t}", "title": "" }, { "docid": "b9d98b6ca91af038ff40d99dddb2d716", "score": "0.61794573", "text": "@Override\n\tpublic void start() {\n\t\t\n\t}", "title": "" }, { "docid": "b9d98b6ca91af038ff40d99dddb2d716", "score": "0.61794573", "text": "@Override\n\tpublic void start() {\n\t\t\n\t}", "title": "" }, { "docid": "b6a8f8a6da3e4ea3a5d0a6d9c58b998c", "score": "0.61752874", "text": "@Override\r\n\tpublic void start () {\n\t}", "title": "" }, { "docid": "a6a0c8aa4c13fc5c9ea7717b3d9f5a25", "score": "0.61728245", "text": "@Override\n\tpublic void onCreate(){\n\t\tdb = new DatabaseHandler(this);\n\t}", "title": "" }, { "docid": "70175103f09984edf8ff6aaf02f4c529", "score": "0.6155038", "text": "@Override\n public void start() {\n\n }", "title": "" }, { "docid": "70175103f09984edf8ff6aaf02f4c529", "score": "0.6155038", "text": "@Override\n public void start() {\n\n }", "title": "" }, { "docid": "70175103f09984edf8ff6aaf02f4c529", "score": "0.6155038", "text": "@Override\n public void start() {\n\n }", "title": "" }, { "docid": "b63711988479dfd326e1e48ee58d6ee4", "score": "0.6149101", "text": "public void start() {\n\t}", "title": "" }, { "docid": "b63711988479dfd326e1e48ee58d6ee4", "score": "0.6149101", "text": "public void start() {\n\t}", "title": "" }, { "docid": "b63711988479dfd326e1e48ee58d6ee4", "score": "0.6149101", "text": "public void start() {\n\t}", "title": "" }, { "docid": "e38eb3f51fd81d942da0da144bb11ac1", "score": "0.6147687", "text": "@Override\n public void start() {\n }", "title": "" }, { "docid": "e38eb3f51fd81d942da0da144bb11ac1", "score": "0.6147687", "text": "@Override\n public void start() {\n }", "title": "" }, { "docid": "e38eb3f51fd81d942da0da144bb11ac1", "score": "0.6147687", "text": "@Override\n public void start() {\n }", "title": "" }, { "docid": "e38eb3f51fd81d942da0da144bb11ac1", "score": "0.6147687", "text": "@Override\n public void start() {\n }", "title": "" }, { "docid": "b03c5ebcb62f764c0364c6fb3f66529c", "score": "0.6144432", "text": "@Override\n\t\t\tpublic void onStart() {\n\t\t\t\tsuper.onStart();\n\t\t\t}", "title": "" }, { "docid": "9a93e55fb41cb0265c6941c1f80947ea", "score": "0.61344254", "text": "@Override\n\t\t\tpublic void run() {\n\t\t\t\tDatabaseHelper databaseHelper = new DatabaseHelper(Schedule.this);\n\n\t\t\t\tif (isNeedLoad) {\n\t\t\t\t\tusername = bundle.getString(\"username\");\n\t\t\t\t\tpassword = bundle.getString(\"password\");\n\t\t\t\t\terrorCode = databaseHelper.refresh(username, password);\n\t\t\t\t\tif (errorCode != 1) {\n\t\t\t\t\t\thandler.sendEmptyMessage(2);\n\t\t\t\t\t} else {\n\t\t\t\t\t\thandler.sendEmptyMessage(1);\n\t\t\t\t\t}\n\n\t\t\t\t} else {\n\t\t\t\t\thandler.sendEmptyMessage(1);\n\t\t\t\t}\n\t\t\t\t// databaseHelper.dml(\"insert into schedule(code,name)values(?,?)\",\n\t\t\t\t// new Object[]{\"235235\",\"英语\"});\n\t\t\t\tdatabaseHelper.close();\n\n\t\t\t}", "title": "" }, { "docid": "2a581da68f4bcf7e52ad1edce3066193", "score": "0.61249655", "text": "public abstract void start();", "title": "" }, { "docid": "2a581da68f4bcf7e52ad1edce3066193", "score": "0.61249655", "text": "public abstract void start();", "title": "" }, { "docid": "2a581da68f4bcf7e52ad1edce3066193", "score": "0.61249655", "text": "public abstract void start();", "title": "" }, { "docid": "2a581da68f4bcf7e52ad1edce3066193", "score": "0.61249655", "text": "public abstract void start();", "title": "" }, { "docid": "2a581da68f4bcf7e52ad1edce3066193", "score": "0.61249655", "text": "public abstract void start();", "title": "" }, { "docid": "380b547551e6b64ed7d7bdefce6f25e0", "score": "0.6123677", "text": "public void start(){\n\t\t//start or resume execution\n\t}", "title": "" }, { "docid": "5ffc72f05420e2c7507c8ee83f26b627", "score": "0.6113838", "text": "public void onBegin() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "481a23cd6e96aa558da5e04b1d57d18f", "score": "0.6100635", "text": "private void start() {\n }", "title": "" }, { "docid": "09064ccb68ef95ed3eabac1bbc86f4e7", "score": "0.6095597", "text": "public void startTestSql() {\n\t}", "title": "" }, { "docid": "ee4c5f7f141f50498a050ee6d4358575", "score": "0.6095423", "text": "@Override\r\n\t\t\t\t\tpublic void onStart() {\n\t\t\t\t\t\tsuper.onStart();\r\n\t\t\t\t\t}", "title": "" }, { "docid": "f1288a1b25e1ddadd733013d0c9a817c", "score": "0.609314", "text": "public void start() {\n }", "title": "" }, { "docid": "f1288a1b25e1ddadd733013d0c9a817c", "score": "0.609314", "text": "public void start() {\n }", "title": "" }, { "docid": "d00977284a58db20a452f78eb2bb9513", "score": "0.6086267", "text": "public void start() {\n\n }", "title": "" }, { "docid": "10ca43b30b2bb5cd3616c239049a0378", "score": "0.60815156", "text": "@Override\n protected void start() {\n \n }", "title": "" }, { "docid": "35922edfe89ba3fd1dd29aeaac816372", "score": "0.6080742", "text": "public void start()\n {\n }", "title": "" }, { "docid": "935dee99f7982b9194f0809f00b833e4", "score": "0.60745305", "text": "@Override\n public void start() {\n }", "title": "" }, { "docid": "2dad85bb8e9b13cf8283a015081f6c85", "score": "0.6068696", "text": "@Override\n\tpublic void onStartOneTime() {\n\t\t\n\t}", "title": "" }, { "docid": "576356137f79b58ae9e68d118394dbd4", "score": "0.6061464", "text": "@Override\n\tpublic final void start() {\n\t}", "title": "" }, { "docid": "ae3748cad550de9ecc395af0fc85dd3a", "score": "0.604712", "text": "@Override\n\t\tpublic void onStart() {\n\t\t\tmBase.onStart();\n\t\t}", "title": "" }, { "docid": "2535729b851c4653d46c9bba4782f2bf", "score": "0.60470873", "text": "public void onBegin() {\n\t\t\t\t\t\n\t\t\t\t}", "title": "" }, { "docid": "d250670db7ea434cb367a0d9785b305f", "score": "0.60367376", "text": "@Override\n public void onStart() {\n }", "title": "" }, { "docid": "5d74e22968001cdcd8726b809387ff3d", "score": "0.6036412", "text": "@Override\n\t\tpublic void onBegin() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "265e002968d8f79d6a271c86335c83c6", "score": "0.6008728", "text": "@Override\r\n\tpublic void start() {\n\t\t\r\n\t\tthis.view.disableStartMenuItem();\r\n\t\tthis.view.enableStopMenuItem();\r\n\t\tthis.model.startPlay(null);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "5d1f6b5770e0d1808894ca742450c456", "score": "0.60005844", "text": "protected void onStart() {\n\t\t// :)\n\t}", "title": "" }, { "docid": "33f1516b4ae0b0064a3aab64a62d4cad", "score": "0.5997303", "text": "public void doJob() {\n setupDB();\n\n }", "title": "" }, { "docid": "c44534e60514e54507ee4c69199f26a8", "score": "0.5988669", "text": "@Override\n public void onStart() {\n\n }", "title": "" }, { "docid": "84f9b278984bfe7808ef70fca6aeec73", "score": "0.598544", "text": "public void start() {\n // not used\n }", "title": "" }, { "docid": "21873107939817985fb2fa4df023e8c7", "score": "0.5984795", "text": "@Override\r\n\tpublic void onCreate(SQLiteDatabase db) {\n\t\tsuper.onCreate(db);\r\n\t\t\r\n\t}", "title": "" }, { "docid": "2d4fe405a65b8dd79e189495faa31d49", "score": "0.5982004", "text": "public abstract boolean start();", "title": "" }, { "docid": "242796164138e6ecbc33155a5f07142c", "score": "0.5981415", "text": "@Override\n public void onStart() {\n }", "title": "" }, { "docid": "242796164138e6ecbc33155a5f07142c", "score": "0.5981415", "text": "@Override\n public void onStart() {\n }", "title": "" }, { "docid": "242796164138e6ecbc33155a5f07142c", "score": "0.5981415", "text": "@Override\n public void onStart() {\n }", "title": "" }, { "docid": "242796164138e6ecbc33155a5f07142c", "score": "0.5981415", "text": "@Override\n public void onStart() {\n }", "title": "" }, { "docid": "242796164138e6ecbc33155a5f07142c", "score": "0.5981415", "text": "@Override\n public void onStart() {\n }", "title": "" }, { "docid": "d0fc41071a5ea8360e56945d073841e9", "score": "0.5978789", "text": "@Override\r\n\tprotected void onStart() {\n\t\tsuper.onStart();\r\n\t\tLog.d(\"life\",\"onStart\");\r\n\t}", "title": "" }, { "docid": "2c62af9c2cfa48643c2167f0f8075d4f", "score": "0.5976197", "text": "protected void started() {\n }", "title": "" }, { "docid": "c23f4821284da2529357851356024a8e", "score": "0.5976", "text": "@Override\r\n\tprotected void onStart() {\n\t\tsuper.onStart();\r\n\t\t\r\n\r\n\t}", "title": "" }, { "docid": "b5e0766f02fca9c613a4b212fc5c10b9", "score": "0.5971342", "text": "public void start() {}", "title": "" }, { "docid": "b5e0766f02fca9c613a4b212fc5c10b9", "score": "0.5971342", "text": "public void start() {}", "title": "" }, { "docid": "0f52a58849f45958f3722ccc4a2df3f2", "score": "0.59689915", "text": "@Override\r\n\tpublic void launch() {\n\t\t\r\n\t}", "title": "" }, { "docid": "0f52a58849f45958f3722ccc4a2df3f2", "score": "0.59689915", "text": "@Override\r\n\tpublic void launch() {\n\t\t\r\n\t}", "title": "" }, { "docid": "e7741d50e1183ebb0abac69069e98014", "score": "0.5967339", "text": "@Override\n public void onStart() {\n }", "title": "" }, { "docid": "011e5112bd8b1332e358ab1954e43804", "score": "0.5966134", "text": "protected void onStart() {\n\t\tsuper.onStart();\n\t\t\n\t\t// Log\n\t\tString msg_Log = \"onStart()\";\n\t\tLog.d(\"MainActv.java\" + \"[\"\n\t\t\t\t+ Thread.currentThread().getStackTrace()[2].getLineNumber()\n\t\t\t\t+ \"]\", msg_Log);\n\t\t\n\t\t_test_D_2_V_2_0();\n\t\t\n\t}", "title": "" }, { "docid": "85d9435c133389ee1b18a8df46248a0b", "score": "0.59495085", "text": "@Override\n public void onStart() {\n super.onStart();\n Log.d(\"sss\", \"onStart\");\n }", "title": "" }, { "docid": "85d9435c133389ee1b18a8df46248a0b", "score": "0.59495085", "text": "@Override\n public void onStart() {\n super.onStart();\n Log.d(\"sss\", \"onStart\");\n }", "title": "" }, { "docid": "85d9435c133389ee1b18a8df46248a0b", "score": "0.59495085", "text": "@Override\n public void onStart() {\n super.onStart();\n Log.d(\"sss\", \"onStart\");\n }", "title": "" }, { "docid": "70783da8c33a4e08b225cada03e116e2", "score": "0.5949353", "text": "public ConnectToDatabaseWindow() {\n\t\t\n\t}", "title": "" }, { "docid": "ac2903c7146433f2ae7821dfddd5e737", "score": "0.59460336", "text": "@Override\n public void onStart() {\n\n }", "title": "" }, { "docid": "ce0b6b4cd462f56e0b5be923db8bd909", "score": "0.5944039", "text": "@Override\n public void runStart() {\n }", "title": "" }, { "docid": "949805d0ac6be88ef7ab6fd0c70f98b6", "score": "0.5941493", "text": "@Override\n public void onStart() {\n }", "title": "" }, { "docid": "949805d0ac6be88ef7ab6fd0c70f98b6", "score": "0.5941493", "text": "@Override\n public void onStart() {\n }", "title": "" }, { "docid": "a0deacdd3c82a9faeeb59c204bd779d9", "score": "0.594149", "text": "@Override\n public void start() throws Exception {\n\n\n\n\n }", "title": "" }, { "docid": "c38f0cb3bee177830b9ade4c78d0cb4d", "score": "0.5940595", "text": "public void onStart() {\n\t}", "title": "" }, { "docid": "cd4882b46fe9cd74dd423dc4b2a30111", "score": "0.59363294", "text": "public void startTransaction()\n {\n try {\n Class.forName(\"org.sqlite.JDBC\");\n connection = DriverManager.getConnection(\"jdbc:sqlite:\" + this.dburl);\n\n ResultSet result = connection.createStatement().executeQuery(\"SELECT * FROM sqlite_master\");\n\n int size = 0;\n\n while(result.next())\n size++;\n\n if(size == 0)\n this.setupDB();\n\n }catch(Exception e) {\n e.printStackTrace();\n System.exit(0);\n }\n }", "title": "" }, { "docid": "346bb0793539f8dd8e2b78bfb3a08910", "score": "0.5934451", "text": "@Override\n public void Start() {\n\n }", "title": "" }, { "docid": "346bb0793539f8dd8e2b78bfb3a08910", "score": "0.5934451", "text": "@Override\n public void Start() {\n\n }", "title": "" }, { "docid": "346bb0793539f8dd8e2b78bfb3a08910", "score": "0.5934451", "text": "@Override\n public void Start() {\n\n }", "title": "" } ]
01efe50a79b4f630e6e83c6bbc7b0f7a
/ This bean is used by the ConfigService to register with the master and get the configuration. Every service that needs to call a REST service, just needs to have a RestTemplate injected in order to do so.
[ { "docid": "6f6bfc60c6a289f519da420fce088d85", "score": "0.64230293", "text": "@Bean\n\tpublic RestTemplate restTemplate(RestTemplateBuilder builder) \n {\n \treturn builder.build();\n\t}", "title": "" } ]
[ { "docid": "1a47284fa73e6614f84049e29ef27a90", "score": "0.7018156", "text": "@Bean\n public RestTemplate restTemplate() {\n \t return new RestTemplate();\n }", "title": "" }, { "docid": "49eeb118c946daa69973669bc51f4da8", "score": "0.69916296", "text": "@Bean\n\t//@LoadBalanced // Load balance between service instances running at different ports.\n\tpublic RestTemplate restTemplate() {\n\t\treturn new RestTemplate();\n\t}", "title": "" }, { "docid": "ce1a0082e53acedfa66f38bf4e7801cf", "score": "0.69153076", "text": "@LoadBalanced\r\n\t@Bean\r\n\tRestTemplate restTemplate() {\r\n\t\treturn new RestTemplate();\r\n\t}", "title": "" }, { "docid": "a2b45720558c7332a3d7e886b6b53136", "score": "0.6883479", "text": "@Bean\r\n public RestTemplate restTemplate() {\r\n return new RestTemplate();\r\n }", "title": "" }, { "docid": "0db0d8f6ae2c9e4d13a69cffabacf37c", "score": "0.6862281", "text": "@Bean\n\t@LoadBalanced\n\tRestTemplate restTemplate()\n\t{\n\t\treturn new RestTemplate();\n\t}", "title": "" }, { "docid": "317c916e6bd620310c905b5568767599", "score": "0.6776774", "text": "@Bean\n public RestTemplate restTemplate() {\n return new RestTemplate();\n }", "title": "" }, { "docid": "a9f7ff02e2d526f3e7aabe5aff4bf1de", "score": "0.67732483", "text": "@LoadBalanced\n @Bean\n RestTemplate restTemplate() {\n return new RestTemplate();\n }", "title": "" }, { "docid": "ffb898bee7a6a863135557a4dbc7d72a", "score": "0.6525294", "text": "@Bean\n @LoadBalanced\n public RestTemplate restTemplate(){\n return new RestTemplate();\n }", "title": "" }, { "docid": "031c6e706029dc8b0c4857319956fd08", "score": "0.6513417", "text": "@Bean\n public RestTemplate restTemplate() {\n \t RestTemplate restTemplate = new RestTemplate(factory);\n restTemplate.setInterceptors(Collections.singletonList(new RequestResponseLoggingInterceptor()));\n return restTemplate;\n }", "title": "" }, { "docid": "a25dbb0f44bbdb64bf72ae0a7da5a1ce", "score": "0.64874846", "text": "@Bean\r\n\tpublic RestTemplate restTemplate() {\r\n\r\n\t\tRestTemplate restTemplate = new RestTemplate();\r\n\t\trestTemplate.getMessageConverters().add(new MappingJackson2HttpMessageConverter());\r\n\t\trestTemplate.getMessageConverters().add(new StringHttpMessageConverter());\r\n\t\trestTemplate.setErrorHandler(responseErrorHandler);\r\n\r\n\t\treturn restTemplate;\r\n\t}", "title": "" }, { "docid": "c3dbf4d3897c4676370bfa2362341db3", "score": "0.6479751", "text": "@Bean\n\tpublic RestTemplate neighbourRestTemplate() {\n\n\t\treturn new RestTemplate(new HttpComponentsClientHttpRequestFactory(createHttpClient()));\n\t}", "title": "" }, { "docid": "f6a505b443943f401de642e9baa72aeb", "score": "0.6351536", "text": "@Autowired\n\tpublic void setRestTemplate(@Qualifier(\"oauth2.restTemplate\") RestOperations restTemplate) {\n\t\tthis.restTemplate = restTemplate;\n\t}", "title": "" }, { "docid": "00fed5244f0ae7b66514f77275cc9ccd", "score": "0.6318553", "text": "public RestClient() {\n this.restTemplate = new RestTemplate();\n }", "title": "" }, { "docid": "c72150837934a9d145db496730251bd9", "score": "0.62382776", "text": "@Bean\n\tpublic RestTemplate restTemplate(RestTemplateBuilder restTemplateBuilder) {\n\t\tRestTemplate restTemplate = restTemplateBuilder.build();\n\t\trestTemplate.setRequestFactory(new HttpComponentsClientHttpRequestFactory());\n\t\treturn restTemplate;\n\t}", "title": "" }, { "docid": "449f6eaca6db564ee596396a356726bb", "score": "0.6157319", "text": "@Bean\n public RestTemplate restTemplate(RestTemplateBuilder builder) {\n return builder.build();\n }", "title": "" }, { "docid": "c65a598c6433e50f0eb0187574fecdf3", "score": "0.6119851", "text": "@Bean\n RestTemplate restTemplate() throws Exception {\n\n /*\n * Sample certs use the same password\n */\n char[] password = getFederalReserve().getPassword().toCharArray();\n\n /*\n * Create an SSLContext that uses client.jks as the client certificate\n * and the truststore.jks as the trust material (trusted CA certificates).\n * In this sample, truststore.jks contains ca.pem which was used to sign\n * both client.pfx and server.jks.\n */\n SSLContext sslContext = SSLContextBuilder\n .create()\n .loadKeyMaterial(loadPfx(getFederalReserve().getCertificateLocation(), password), password)\n .build();\n\n /*\n * Create an HttpClient that uses the custom SSLContext\n */\n HttpClient client = HttpClients.custom()\n .setSSLContext(sslContext)\n .build();\n\n /*\n * Create a RestTemplate that uses a request factory that references\n * our custom HttpClient\n */\n return new RestTemplate(new HttpComponentsClientHttpRequestFactory(client));\n }", "title": "" }, { "docid": "46a19dd9d38259757ade33658c4ec7b3", "score": "0.60896677", "text": "@Autowired\n public CandidateController(RestTemplate restTemplate) { \n this.restTemplate = restTemplate;\n }", "title": "" }, { "docid": "994ce5efa58d11b3e2e3ebf798752220", "score": "0.60457015", "text": "@Bean\n\tpublic RestTemplate restTemplate(RestTemplateBuilder builder) {\n\t\treturn builder.build();\n\t}", "title": "" }, { "docid": "b5ff632afc6f14a10fe76533e3db391e", "score": "0.58868355", "text": "@Bean\r\n\tpublic MicroserviceGatewayService microserviceGatewayService() {\r\n\t\treturn new MicroserviceGatewayServiceImpl(RECEPTORES_SERVICE_URL);\r\n\t}", "title": "" }, { "docid": "2ff5d5c1e7a6192655822f7d38d3850c", "score": "0.58080274", "text": "@Bean\n public RestTemplate restTemplate() throws KeyStoreException, NoSuchAlgorithmException, KeyManagementException, UnrecoverableKeyException, IOException, CertificateException {\n\n CloseableHttpClient httpClient = HttpClients.custom().setSSLSocketFactory(getSSLSocketFactory()).build();\n HttpComponentsClientHttpRequestFactory requestFactory = new HttpComponentsClientHttpRequestFactory(httpClient);\n return new RestTemplate(requestFactory);\n }", "title": "" }, { "docid": "5c5f8530c4a835af9aaba0568cd42790", "score": "0.57899433", "text": "@Override\n\tpublic void customize(RestTemplate restTemplate) {\n\t\trestTemplate.setRequestFactory(this.clientHttpRequestFactory());\n\t\t\n\t}", "title": "" }, { "docid": "5af4f54cc13708b3b48028408fc5e94a", "score": "0.5766628", "text": "private static RegulationsService configureService()\r\n\t{\n\t\tString originPolicyDb = Utils.loadPropertyString(PROPERTIES_FILE_RAPI, PROPERTY_NAME_ORIGIN_POLICY_DB);\r\n\t\tString originPolicyComputation = Utils.loadPropertyString(PROPERTIES_FILE_RAPI, PROPERTY_NAME_ORIGIN_POLICY_COMPUTATION);\r\n\t\tString originOspEnforcement = Utils.loadPropertyString(PROPERTIES_FILE_RAPI, PROPERTY_NAME_ORIGIN_OSP_ENFORCEMENT);\r\n\t\t\r\n\t\t// Create the clients based on the properties file.\r\n\t\tClientPolicyDb clientPolicyDb = new ClientPolicyDb(originPolicyDb);\r\n\t\tClientPolicyComputation clientPolicyComputation = new ClientPolicyComputation(originPolicyComputation);\r\n\t\tClientOspEnforcement clientOspEnforcement = new ClientOspEnforcement(originOspEnforcement);\r\n\t\t\r\n\t\t// Configure the service.\r\n\t\treturn new RegulationsServiceImpl(clientPolicyDb, clientPolicyComputation, clientOspEnforcement);\r\n\t}", "title": "" }, { "docid": "970cd9b5e4fc45a26ef3fc3a17dfe364", "score": "0.57616305", "text": "public RestApplication() {\n WebApplicationContext springContext = createSpringContext();\n ApplicationSettings appSettings = springContext.getBean(ApplicationSettings.class);\n ResourceConfig resourceConfig = createResourceConfig(appSettings);\n server = new JettyConfig(resourceConfig, springContext, appSettings).getServer();\n }", "title": "" }, { "docid": "5fc895a97d1b5c5c8ffbc387b1ff9b7f", "score": "0.5681307", "text": "default RestTemplate buildCommonAttributes() {\r\n\r\n final SimpleClientHttpRequestFactory clientConfig = new SimpleClientHttpRequestFactory();\r\n clientConfig.setConnectTimeout((int) TimeUnit.SECONDS.toMillis(60));\r\n clientConfig.setReadTimeout((int) TimeUnit.SECONDS.toMillis(60));\r\n\r\n final ObjectMapper nonNullMapper = new ObjectMapper().setSerializationInclusion(\r\n JsonInclude.Include.NON_NULL);\r\n\r\n final RestTemplate restTemplate = new RestTemplate(\r\n new BufferingClientHttpRequestFactory(clientConfig));\r\n final MappingJackson2HttpMessageConverter mappingJackson2HttpMessageConverter = new MappingJackson2HttpMessageConverter(nonNullMapper);\r\n mappingJackson2HttpMessageConverter.setSupportedMediaTypes(Collections.singletonList(MediaType.APPLICATION_FORM_URLENCODED));\r\n restTemplate.getMessageConverters().add(mappingJackson2HttpMessageConverter);\r\n restTemplate.setErrorHandler(getRestTemplateResponseErrorHandler());\r\n restTemplate.getMessageConverters().add(0, new StringHttpMessageConverter(StandardCharsets.UTF_8));\r\n \r\n restTemplate.getInterceptors().add(headerAppenderInterecptor());\r\n if(getPlatformConfig().isLogApiCalls()) {\r\n \tLoggingInterceptor interceptor = LoggingInterceptor.getInstance();\r\n \tinterceptor.setContext(getPlatformConfig().getMsName()).setLogRequest(true).setLogResponse(true);\r\n \trestTemplate.getInterceptors().add(interceptor);\r\n }\r\n return restTemplate;\r\n }", "title": "" }, { "docid": "9c2b7eee8fdf969e52fe7dd2377a8d8e", "score": "0.56789213", "text": "@Bean\n public HessianProxyFactoryBean iDicDataDetailService() {\n HessianProxyFactoryBean factory = hessianProxyConfig();\n factory.setServiceUrl(lotto_common_core_url + remote_common_dic_data_detail_service);\n factory.setServiceInterface(IDicDataDetailService.class);\n return factory;\n }", "title": "" }, { "docid": "d05814b6e533756e83a4de3f9562e1f3", "score": "0.5653692", "text": "private void init() {\n\n Retrofit restAdapter = new Retrofit.Builder()\n .baseUrl(AppConstants.Backend.BASE_URL)\n .client(configureHttpClient())\n .addConverterFactory(JacksonConverterFactory.create(BaseFunctions.getMapper()))\n .build();\n\n apiService = restAdapter.create(ApiService.class);\n }", "title": "" }, { "docid": "39be07e120297f5c5eb4e75c183cacc0", "score": "0.5636803", "text": "public ServiceConfig getServiceConfiguration() {\n\t\treturn myConfig;\n\t}", "title": "" }, { "docid": "1ff3948f7644414d18554acf8b98bddb", "score": "0.56191534", "text": "@Override\n public RestClientConfig getScanConfig(ScanParams scanParams) {\n RestClientConfig restClientConfig = new RestClientConfig();\n restClientConfig.setProjectName(scanParams.getProjectName());\n restClientConfig.setDisableCertificateValidation(scanParams.isDisableCertificateValidation());\n\n ScaConfig scaConfig = getScaSpecificConfig(scanParams);\n setSourceLocation(scanParams, restClientConfig, scaConfig);\n if(scanParams.getRemoteRepoUrl() != null){\n restClientConfig.setClonedRepo(true);\n }\n restClientConfig.setScaConfig(scaConfig);\n\n return restClientConfig;\n }", "title": "" }, { "docid": "a5046b69e6fd3ab8d935ba9e34cc624c", "score": "0.5617463", "text": "public ResourceConfig getJersey() {\n ResourceConfig config = new ResourceConfig();\n config.register(EtudiantRestControllerWithJAXRS.class);\n return config;\n }", "title": "" }, { "docid": "621e36211b6f20c6a3eed884cc63021f", "score": "0.5616504", "text": "public interface ConfigurationService {\n\n /**\n * A system property to override the location of installation-provided configuration and integration directories. The default value is\n * the parent directory of ${osgi.install.area}. Any override value must be an absolute path that points to an existing directory.\n */\n String SYSTEM_PROPERTY_INSTALLATION_DATA_ROOT_OVERRIDE = \"rce.installationData.rootDir\";\n\n /**\n * A system property to override the location of the optional system configuration and integration directories used by all users and\n * their instances. The default value is empty. Any override value must be an absolute path that points to an existing directory.\n */\n // TODO actually use this\n String SYSTEM_PROPERTY_SHARED_SETTINGS_ROOT_OVERRIDE = \"rce.sharedSettings.rootDir\";\n\n /**\n * A system property to override the location of the optional cross-instance user configuration and integration directories. The default\n * value is a directory named \"common\" inside the parent profile directory (see\n * {@link BootstrapConfiguration#SYSTEM_PROPERTY_PROFILES_PARENT_DIRECTORY_OVERRIDE}. Any override value must be an absolute path that\n * points to an existing directory.\n */\n String SYSTEM_PROPERTY_USER_SETTINGS_ROOT_OVERRIDE = \"rce.userSettings.rootDir\";\n\n /**\n * A placeholder in certain configuration properties that is resolved to the Java \"user.name\" property.\n */\n String CONFIGURATION_PLACEHOLDER_SYSTEM_USER_NAME = \"${systemUser}\";\n\n /**\n * A placeholder in certain configuration properties that is resolved to the local system's host name.\n */\n String CONFIGURATION_PLACEHOLDER_HOST_NAME = \"${hostName}\";\n\n /**\n * Default value for configuration key \"general/instanceName\".\n */\n String DEFAULT_INSTANCE_NAME_VALUE = \"Unnamed instance started by \\\"${systemUser}\\\" on ${hostName}\";\n\n /**\n * Default path for the parent temp directory on Windows, relative to the system temp directory.\n */\n String DEFAULT_PARENT_TEMP_DIRECTORY_RELATIVE_PATH_WINDOWS = \"rce-temp\";\n\n /**\n * Default path for the parent temp directory on Linux, relative to the system temp directory. As /tmp is typically shared between\n * users, the current user' login name is added to avoid the problem that the first user creating the parent directory is set as its\n * owner - misc_ro, Nov 2014\n */\n String DEFAULT_PARENT_TEMP_DIRECTORY_RELATIVE_PATH_LINUX = \"rce-temp-\" + CONFIGURATION_PLACEHOLDER_SYSTEM_USER_NAME;\n\n /**\n * Standard Java \"user.home\" property.\n */\n String SYSTEM_PROPERTY_USER_HOME = \"user.home\";\n\n /**\n * Standard Java \"user.name\" property.\n */\n String SYSTEM_PROPERTY_USER_NAME = \"user.name\";\n\n /**\n * Standard OSGi \"osgi.install.area\" property.\n * \n * Note that (contrary to what the name suggests) this is *not* the actual installation directory which, for example, the /plugin and\n * /feature directories are located in. Instead, this property points to the /configuration directory inside that installation\n * directory.\n */\n String SYSTEM_PROPERTY_OSGI_INSTALL_AREA = \"osgi.install.area\";\n\n /**\n * Identifies various directories/locations that are affected by the chosen profile directory, or other configuration settings.\n * \n * Use {@link ConfigurationService#getConfigurablePath(ConfigurablePathId)} to resolve them to actual locations.\n * \n * @author Robert Mischke\n */\n public enum ConfigurablePathId {\n /**\n * The directory where installation-provided files (including possible \"configuration\" and \"integration\" directories) are located.\n */\n INSTALLATION_DATA_ROOT,\n\n /**\n * The directory where the optional cross-instance user \"configuration\" and \"integration\" directories may be located.\n */\n SHARED_USER_SETTINGS_ROOT,\n\n /**\n * The current instance's root profile directory; for the default profile, this is \"~/.rce/default\".\n */\n PROFILE_ROOT,\n\n /**\n * The configuration directory of the current instance/profile; default: \"<PROFILE_ROOT>/configuration\".\n */\n // TODO >= 6.0.0 review: what is this actually used for anymore? - misc_ro\n PROFILE_CONFIGURATION_DATA,\n\n /**\n * The integration directory of the current instance/profile; default: \"<PROFILE_ROOT>/integration\".\n */\n PROFILE_INTEGRATION_DATA,\n\n /**\n * The data management storage root directory of the current instance/profile; default: \"<PROFILE_ROOT>/storage\".\n */\n PROFILE_DATA_MANAGEMENT,\n\n /**\n * The current instance's root directory for internal data (which is not supposed to be edited or inspected by the user, and\n * therefore does not need to be externally documented); default: \"<PROFILE_ROOT>/internal\".\n */\n PROFILE_INTERNAL_DATA,\n\n /**\n * The output directory of the current instance/profile; default: \"<PROFILE_ROOT>/output\".\n */\n PROFILE_OUTPUT,\n\n /**\n * The current instance's default location to write configuration files to. Currently always an alias for\n * {@link #PROFILE_CONFIGURATION_DIR}.\n */\n // TODO >= 6.0.0 review: what is this actually used for anymore? - misc_ro\n DEFAULT_WRITEABLE_CONFIGURATION_ROOT,\n\n /**\n * The current instance's default location to write integration files to. Currently always an alias for\n * {@link #PROFILE_INTEGRATION_DIR}.\n */\n DEFAULT_WRITEABLE_INTEGRATION_ROOT,\n\n /**\n * The location where the example configuration.json.*.sample files are stored.\n */\n CONFIGURATION_SAMPLES_LOCATION\n }\n\n /**\n * Identifies lists of directories/locations that are affected by the chosen profile directory, or other configuration settings.\n * \n * Use {@link ConfigurationService#getConfigurablePathList(ConfigurablePathListId)} to resolve them to actual locations.\n * \n * @author Robert Mischke\n */\n public enum ConfigurablePathListId {\n /**\n * The current instance's existing locations for reading configuration data from.\n */\n READABLE_CONFIGURATION_DIRS,\n\n /**\n * The current instance's existing locations for reading integration data from.\n */\n READABLE_INTEGRATION_DIRS,\n }\n\n /**\n * Registers key-value pairs for variable substitution in configuration data (usually, configuration files). The given properties are\n * added to previously-registered properties. All subsequent {@link #getConfiguration(String, Class)} calls will use the registered\n * properties, usually by applying them to the configuration data before the calling bundle processes its content. Therefore, all\n * variables must be registered before the target bundle is configured.\n * \n * @param namespace a qualifier for the given properties; how this qualifier is used depends on the concrete\n * {@link ConfigurationService} implementation\n * @param properties the property map to add to the existing set of properties\n */\n void addSubstitutionProperties(String namespace, Map<String, String> properties);\n\n /**\n * Retrieves the configuration for the given identifier as Java type of clazz. Usage: CustomType config =\n * getConfiguration(\"de.rcenvironment.bundle\", CustomType.class);\n * \n * @param identifier The identifier to retrieve the configuration for.\n * @param clazz Type of the object to return.\n * @param <T> Type of the object to return.\n * @return A custom configuration object.\n */\n @Deprecated\n <T> T getConfiguration(String identifier, Class<T> clazz);\n\n /**\n * Fetches a part or all of the current configuration data.\n * \n * @param relativePath a path that defines the sub-tree to fetch, with hierarchy levels separated by slashes (example:\n * \"network/ipFilter\"); an empty string fetches the whole configuration\n * @return the defined {@link ConfigurationSegment}, or null if there is no configuration data at the given path\n */\n ConfigurationSegment getConfigurationSegment(String relativePath);\n\n /**\n * Temporary method for 6.0.0 to force reloading, until configuration writing and file watching (for external changes) is implemented.\n */\n void reloadConfiguration();\n\n // Object getConfigurationWriteLock();\n\n // WritableConfigurationSegment getWritableConfigurationSegment(String relativePath);\n\n // void updateConfiguration(WritableConfigurationSegment configurationSegment);\n\n /**\n * Resolves a path relative to the configuration folder of this bundle to an absolute one. If it is already an absolute one it will be\n * returned as it is.\n * \n * @param identifier The bundleSymbolicName\n * @param path The path to convert.\n * @return The absolute path.\n */\n String resolveBundleConfigurationPath(String identifier, String path);\n\n /**\n * Returns the configured display name of the local node.\n * \n * @return the host.\n */\n String getInstanceName();\n\n /**\n * Determines whether this node may act as a \"server\", which means that it may provide components, act as a workflow controller, allow\n * remote access etc.\n * \n * @return true if this node is configured to be a workflow host\n */\n boolean getIsWorkflowHost();\n\n /**\n * Determines whether this node acts as a \"relay\", which means that when other nodes connect to this node, they are connected to a\n * single logical network through this node; in other words, their logical networks are connected to one, larger network.\n * \n * @return true if this node is configured to be a relay\n */\n boolean getIsRelay();\n\n /**\n * Returns the directory representing the home of the local RCE instance; by default, this is created inside of \"${user.home}/.rce\".\n * \n * @return the directory\n */\n File getProfileDirectory();\n\n /**\n * Returns the location of the current profile's main configuration file, for example for presenting it to the user (e.g. for manual\n * editing), or exporting it.\n * \n * @return the configuration file's location; usually, it should exist, but this is not strictly guaranteed\n */\n File getProfileConfigurationFile();\n\n /**\n * Determines if the configured \"instance data\" directory was successfully locked; if this is the case, it is reserved for exclusive\n * usage by this current instance.\n * \n * @return true if the configured \"instance data\" was successfully locked\n */\n boolean isUsingIntendedProfileDirectory();\n\n /**\n * Returns the directory that was original configured to be used as the profile directory.\n * \n * IMPORTANT: note that this MAY NOT be the directory that is actually being used, as it may have been locked by another instance! Use\n * {@link #getProfileDirectory()} to get the active directory for this instance instead.\n * \n * @return the directory\n */\n File getOriginalProfileDirectory();\n\n /**\n * @return the actual location for the given symbolic path/directory id\n * \n * @param pathId the path identifier to resolve\n */\n File getConfigurablePath(ConfigurablePathId pathId);\n\n /**\n * @return a list of resolved paths for the given symbolic id; typically used for locating read-only files that can be specified at the\n * system, user or instance level\n * \n * @param pathListId the id specifying the list to return\n */\n File[] getConfigurablePathList(ConfigurablePathListId pathListId);\n\n /**\n * Attempts to create and return a sub-directory of the given configurable path. To indicate unexpected failure, this method can throw a\n * {@link RuntimeException}, as this is not expected to happen normally (ie, usually because of a coding or validation error).\n * \n * @return the initialized sub-directory; guaranteed to exist if no exception was thrown\n * \n * @param pathId the path identifier to start from\n * @param relativePath the relative path from the resolved configurable path id\n */\n File initializeSubDirInConfigurablePath(ConfigurablePathId pathId, String relativePath);\n\n /**\n * Returns the *parent* temporary directory root. Inside of this, the *instance* temporary directory root is created on startup.\n * <p>\n * NOTE: This method is only intended for the central management and cleanup of temporary directories. It should NOT be used by other\n * code.\n * \n * @return the parent root; it is guaranteed to exist when this service is activated\n */\n File getParentTempDirectoryRoot();\n\n}", "title": "" }, { "docid": "d0a0664006bf2b0c3b3ab6ebd0c17561", "score": "0.56041324", "text": "@Bean\n\t@ProxyAwareVaultQualifier\n RestTemplate proxyAwareRestTemplate(HttpClientBuilder builder, VaultProxyProperties proxyProperties) {\n\t\tHttpClient httpClient = baseProxyConfiguration.buildClient(proxyProperties, builder);\n\t\treturn new RestTemplate(new HttpComponentsClientHttpRequestFactory(httpClient));\n\t}", "title": "" }, { "docid": "1049baa31f67de2dbb566a645f1775ae", "score": "0.55957675", "text": "public CustomerServiceClient(RestTemplateBuilder builder) {\n\n restTemplate = builder.build();\n }", "title": "" }, { "docid": "9717dcb841738b84537cbed460bd585d", "score": "0.5582816", "text": "@Override\n protected void configure() {\n bind(MetadataServiceClient.class).to(DefaultMetadataServiceClient.class);\n }", "title": "" }, { "docid": "7d71877dff8ab37a28017df8763969ce", "score": "0.55813575", "text": "protected PortfolioManagerImpl(RestTemplate restTemplate) {\n this.restTemplate = restTemplate;\n }", "title": "" }, { "docid": "d3decd7220678ef207873c3d46249a8e", "score": "0.55492663", "text": "@Override\n\tprotected void configure() {\n\n\t\t// //////////////////////////////////////////////\n\t\t// INTERNAL SERVICES\n\n\t\tthis.bind(ResourceMonitoringRunner.class);\n\n\t\t// Jobs\n\n\t\tthis.bind(RFSServiceMonitoringJobImplementation.class);\n\t\tthis.bind(OperatorReportingJobImplementation.class);\n\t\tthis.bind(RFSServiceReportingJobImplementation.class);\n\t\tthis.bind(NodeReportingJobImplementation.class);\n\n\t\t// Jobs new\n\n\t\tthis.bind(ReportingJob.class);\n\n\t\t// Logic Reporting\n\n\t\tthis.bind(RFSServiceMonitoringLogic.class);\n\t\tthis.bind(RFSServiceSummaryReportingLogic.class);\n\t\tthis.bind(RFSServiceDashboardReportingLogic.class);\n\t\tthis.bind(RFSServiceDistributionReportingLogic.class);\n\t\tthis.bind(RFSServiceUserReportingLogic.class);\n\t\tthis.bind(NodeResourceReportingLogic.class);\n\n\t\t// Reporting new.\n\n\t\tthis.bind(IStreamProducer.class).to(StreamProducer.class);\n\t\tthis.bind(OperatorEmittingLogic.class);\n\n\t\t// Logic Monitoring\n\n\t\tthis.bind(NodeMonitoringLogic.class);\n\n\t\t// Logic Retention & Aggregation\n\t\tthis.bind(RetentionLogic.class);\n\t\tthis.bind(AggregationLogic.class);\n\t\tthis.bind(AddonAggregationLogic.class);\n\t\tthis.bind(AddonRetentionLogic.class);\n\n\t\t// Engines\n\n\t\tthis.bind(MonitoringEngine.class);\n\t\tthis.bind(ProfileEngine.class);\n\t\tthis.bind(RetentionEngine.class);\n\t\tthis.bind(AggregationEngine.class);\n\t\tthis.bind(ReportingEngine.class);\n\n\t\tthis.bind(AddonHandler.class).in(Singleton.class);\n\n\t\t// / ///////////////////////////////\n\t\t// IMPORT SERVICES\n\n\t\t// {@link ServerModule}\n\t\tbind(IServerDataProvider.class).annotatedWith(Server.class).toProvider(\n\t\t\t\tservice(IServerDataProvider.class).single());\n\n\t\t// {@link ServerModule}\n\t\tbind(IServerNoCacheDataProvider.class).annotatedWith(\n\t\t\t\tServerNoCache.class).toProvider(\n\t\t\t\tservice(IServerNoCacheDataProvider.class).single());\n\n\t\t// {@link ServerModule}\n\t\tbind(IPropertiesProvider.class).toProvider(\n\t\t\t\tservice(IPropertiesProvider.class).single());\n\n\t}", "title": "" }, { "docid": "bd5922f3a761010d5e08508dff9f9785", "score": "0.5544749", "text": "public void customize(RestTemplate restTemplate) {\n ConnectionKeepAliveStrategy keepAliveStrategy =\r\n new ConnectionKeepAliveStrategy() {\r\n public long getKeepAliveDuration(HttpResponse response, HttpContext context) {\r\n\r\n // check if there is a non-standard keep alive header present\r\n HeaderElementIterator it =\r\n new BasicHeaderElementIterator(response.headerIterator(HTTP.CONN_KEEP_ALIVE));\r\n while (it.hasNext()) {\r\n HeaderElement he = it.nextElement();\r\n String param = he.getName();\r\n String value = he.getValue();\r\n if (value != null && param.equalsIgnoreCase(\"timeout\")) {\r\n return Long.parseLong(value) * 1000;\r\n }\r\n }\r\n // default to 60s if no header\r\n return 60 * 1000;\r\n }\r\n };\r\n\r\n // set a number of connections to use at once for multiple threads\r\n PoolingHttpClientConnectionManager poolingHttpClientConnectionManager =\r\n new PoolingHttpClientConnectionManager();\r\n poolingHttpClientConnectionManager.setMaxTotal(piplinesProperties.getConnectionCountMax());\r\n poolingHttpClientConnectionManager.setDefaultMaxPerRoute(\r\n piplinesProperties.getConnectionCountDefault());\r\n\r\n // set a local cache for cacheable responses\r\n CacheConfig cacheConfig =\r\n CacheConfig.custom()\r\n .setMaxCacheEntries(1024)\r\n .setMaxObjectSize(1024 * 1024) // max size of 1Mb\r\n // number of entries x size of entries = 1Gb total cache size\r\n .setSharedCache(false) // act like a browser cache not a middle-hop cache\r\n .build();\r\n\r\n // set a timeout limit\r\n // TODO put this in application.properties\r\n int timeout = 60; // in seconds\r\n RequestConfig config =\r\n RequestConfig.custom()\r\n .setConnectTimeout(timeout * 1000) // time to establish the connection with the\r\n // remote host\r\n .setConnectionRequestTimeout(\r\n timeout * 1000) // maximum time of inactivity between two\r\n // data packets\r\n .setSocketTimeout(timeout * 1000)\r\n .build(); // time to wait for a connection from the connection\r\n // manager/pool\r\n\r\n // make the actual client\r\n HttpClient httpClient =\r\n CachingHttpClientBuilder.create()\r\n .setCacheConfig(cacheConfig)\r\n .useSystemProperties()\r\n .setConnectionManager(poolingHttpClientConnectionManager)\r\n .setKeepAliveStrategy(keepAliveStrategy)\r\n .setDefaultRequestConfig(config)\r\n .build();\r\n\r\n // and wire it into the resttemplate\r\n restTemplate.setRequestFactory(new HttpComponentsClientHttpRequestFactory(httpClient));\r\n }", "title": "" }, { "docid": "a7e53e36c01fddb1dce12d9755efc579", "score": "0.5542796", "text": "@Bean\n public HessianProxyFactoryBean iMemberRegisterService() {\n HessianProxyFactoryBean factory = hessianProxyConfig();\n factory.setServiceUrl(user_core_url + remote_member_register_service);\n factory.setServiceInterface(IMemberRegisterService.class);\n return factory;\n }", "title": "" }, { "docid": "67ce2c048c3dd672d42e2bf26e2be294", "score": "0.55169535", "text": "@Configured\n@RestRedirects({\n @RestRedirect(opType = RestRedirect.OpType.GET, commandName = \"register-virtual-machine\"),\n @RestRedirect(opType = RestRedirect.OpType.GET, commandName = \"register-startup\")\n})\npublic interface VirtualMachineConfig extends Named, ConfigBeanProxy, VirtualMachineExtension {\n\n @Attribute(reference = true)\n Template getTemplate();\n void setTemplate(Template template);\n\n @Attribute(reference = true)\n ServerPoolConfig getServerPool();\n void setServerPool(ServerPoolConfig serverPool);\n\n @Element\n List<Property> getProperty();\n\n static class Utils {\n public static VirtualMachineConfig create(final String name,\n final Template template,\n final ServerPoolConfig serverPool,\n final Cluster cluster) {\n try {\n\n // this code can happen on any thread, so we manually acquire the shared lock.\n ServiceLocator habitat = Dom.unwrap(cluster).getHabitat();\n AdminCommandLock adminCommandLock = habitat.getService(AdminCommandLock.class);\n Lock lock=null;\n try {\n\n lock = adminCommandLock.getLock(CommandLock.LockType.SHARED);\n lock.lock();\n return (VirtualMachineConfig) ConfigSupport.apply(new SingleConfigCode<Cluster>() {\n @Override\n public Object run(Cluster wCluster) throws PropertyVetoException, TransactionFailure {\n VirtualMachineConfig vmConfig =\n wCluster.createChild(VirtualMachineConfig.class);\n vmConfig.setName(name);\n vmConfig.setTemplate(template);\n vmConfig.setServerPool(serverPool);\n wCluster.getExtensions().add(vmConfig);\n return vmConfig;\n }\n }, cluster);\n } finally {\n if (lock!=null) lock.unlock();\n }\n } catch (TransactionFailure transactionFailure) {\n throw new RuntimeException(transactionFailure);\n }\n }\n }\n\n}", "title": "" }, { "docid": "eeda9129268b4d550f4b5cfd5b1c90ed", "score": "0.5515381", "text": "public SportsRadarService(){\n// this.restTemplate = restTemplate;\n mapper = new ObjectMapper();\n }", "title": "" }, { "docid": "53ce0ff92e5115ab848347348b2249de", "score": "0.55072075", "text": "@Bean\n\t@Scope(ConfigurableBeanFactory.SCOPE_SINGLETON)\n\tpublic Configuration config() {\n\t\tProperties properties = new Properties();\n\t\ttry(InputStream inputStream = getClass().getResourceAsStream(\"/deckbuilder/mtg/config.properties\")) {\n\t\t\tproperties.load(inputStream);\n\t\t} catch(IOException exc) {\n\t\t\tthrow new RuntimeException(exc);\n\t\t}\n\t\t\n\n\t\t//get the administrators\n\t\tfinal List<String> administratorNames;\n\t\tfinal String adminNamesAsString = properties.getProperty(\"administrators\");\n\t\tif(adminNamesAsString != null) {\n\t\t\tadministratorNames = Arrays.asList(adminNamesAsString.split(\",\"));\n\t\t} else {\n\t\t\tadministratorNames = Collections.emptyList();\n\t\t}\n\t\t\n\t\t// get the cors.* properties\n\t\tfinal String corsAllowedOrigins = properties.getProperty(\"cors.allowedOrigins\", \"\"); \n\t\tCorsConfiguration corsConfig = new CorsConfiguration(corsAllowedOrigins);\n\t\t\n\t\treturn new Configuration(administratorNames, corsConfig);\n\t}", "title": "" }, { "docid": "062e2db593ba67f3bb1589358432efe8", "score": "0.54954505", "text": "@Bean\n\t\tpublic ConversionService conversionService() {\n\t\t\treturn DefaultConversionService.getSharedInstance();\n\t\t}", "title": "" }, { "docid": "d0955c6d3bdf949b0f7d4ff6b5fd0d75", "score": "0.54739475", "text": "public ConfigurationLoader<ServiceConfig, Param> getServiceConfigurationLoader() {\n\t\treturn myLoader;\n\t}", "title": "" }, { "docid": "46878e997c5de94d6bf52703ff3af9dc", "score": "0.5409516", "text": "@Bean\n public AccountClientService accountsService() {\n return new AccountClientService(ACCOUNTS_SERVICE_URL);\n }", "title": "" }, { "docid": "472607fc180754e4912c666453f99309", "score": "0.54080445", "text": "public interface ClientSettingsService {\n\n @GET(\"settings\")\n FutureCall<ClientSettings> loadSettings();\n}", "title": "" }, { "docid": "18680aa00f01d584acc11798197ffc5e", "score": "0.54065037", "text": "public CMSRedeemableClientServices() {\n // Set up the configuration manager.\n config = new ConfigMgr(\"redeemable.cfg\");\n }", "title": "" }, { "docid": "944fec01759655caa85e6c4c4ef91369", "score": "0.5403948", "text": "public interface RestfulContext {\r\n\r\n\t/**\r\n\t * Describes the message type to use for web-service PUT/POST requests.\r\n\t */\r\n\tpublic static enum MessageType {\r\n\t\tXML, JSON, PAIRS\r\n\t};\r\n\r\n\t/**\r\n\t * Returns the parent context containing this {@code RestfulConfiguration}.\r\n\t * \r\n\t * @return parent {@code InfinitumContext}\r\n\t */\r\n\tInfinitumContext getParentContext();\r\n\r\n\t/**\r\n\t * Sets the parent context containing this {@code RestfulConfiguration}.\r\n\t * \r\n\t * @param context\r\n\t * parent (@code InfinitumContext}\r\n\t */\r\n\tvoid setParentContext(InfinitumContext context);\r\n\r\n\t/**\r\n\t * Returns the configured web service host URL.\r\n\t * \r\n\t * @return web service URL\r\n\t */\r\n\tString getRestHost();\r\n\r\n\t/**\r\n\t * Sets the web service host URL.\r\n\t * \r\n\t * @param restHost\r\n\t * the host to set\r\n\t */\r\n\tvoid setRestHost(String restHost);\r\n\r\n\t/**\r\n\t * Sets the value indicating if the web service requires authentication.\r\n\t * \r\n\t * @param isRestAuthenticated\r\n\t * {@code true} if authentication is required, {@code false} if\r\n\t * not\r\n\t */\r\n\tvoid setRestAuthenticated(boolean isRestAuthenticated);\r\n\r\n\t/**\r\n\t * Indicates if the web service requires authentication.\r\n\t * \r\n\t * @return {@code true} if authentication is required, {@code false} if not\r\n\t */\r\n\tboolean isRestAuthenticated();\r\n\r\n\t/**\r\n\t * Retrieves the configured connection timeout in milliseconds. This is the\r\n\t * timeout used until a connection is established with the web service.\r\n\t * \r\n\t * @return connection timeout in milliseconds\r\n\t */\r\n\tint getConnectionTimeout();\r\n\r\n\t/**\r\n\t * Sets the connection timeout. This is the timeout used, in milliseconds,\r\n\t * until a connection is established with the web service. The default value\r\n\t * is zero.\r\n\t * \r\n\t * @param connectionTimeout\r\n\t * the connection timeout to set\r\n\t */\r\n\tvoid setConnectionTimeout(int connectionTimeout);\r\n\r\n\t/**\r\n\t * Retrieves the configured response timeout in milliseconds. This is the\r\n\t * timeout for waiting for data from the web service. A timeout of zero is\r\n\t * interpreted as an infinite timeout.\r\n\t * \r\n\t * @return response timeout in milliseconds\r\n\t */\r\n\tint getResponseTimeout();\r\n\r\n\t/**\r\n\t * Sets the response timeout. This is the timeout, in milliseconds, for\r\n\t * waiting for data from the web service. A timeout of zero is interpreted\r\n\t * as an infinite timeout.\r\n\t * \r\n\t * @param responseTimeout\r\n\t * the response timeout in milliseconds\r\n\t */\r\n\tvoid setResponseTimeout(int responseTimeout);\r\n\r\n\t/**\r\n\t * Retrieves the name of the bean for the configured {@link RestfulSession}.\r\n\t * \r\n\t * @return the name of the {@code RestfulClient} bean or {@code null} if it\r\n\t * has not been configured\r\n\t */\r\n\tString getClientBean();\r\n\r\n\t/**\r\n\t * Sets the name of the bean for the {@link RestfulSession}.\r\n\t * \r\n\t * @param clientBean\r\n\t * the name of the {@code RestfulClient} bean\r\n\t */\r\n\tvoid setClientBean(String clientBean);\r\n\r\n\t/**\r\n\t * Retrieves the {@code MessageType} for the configured\r\n\t * {@link RestfulSession}.\r\n\t * \r\n\t * @return {@code MessageType}\r\n\t */\r\n\tMessageType getMessageType();\r\n\r\n\t/**\r\n\t * Sets the {@code MessageType} for the {@link RestfulSession}.\r\n\t * \r\n\t * @param messageType\r\n\t * the {@code MessageType} to set\r\n\t */\r\n\tvoid setMessageType(MessageType messageType);\r\n\r\n}", "title": "" }, { "docid": "3a6e374688de25b2265436d0fe3c4872", "score": "0.53990096", "text": "public GameClientService(\n @Autowired RestTemplateBuilder builder,\n @Autowired GameServerConfig config\n ){\n this.restTemplate = builder.build();\n this.config = config;\n }", "title": "" }, { "docid": "69cd1305abc913368b048a896ecc64f0", "score": "0.5385063", "text": "public ConfigBean() { \n this.init();\n \n }", "title": "" }, { "docid": "bdf7a5a6a0aa5ec0348daa96b0808fd7", "score": "0.53848255", "text": "@RemoteService\r\npublic interface IMailTemplateConfigController\r\n{\r\n\t/**\r\n\t * Used to fetch names of available mail template configurations.\r\n\t * @return List of available configuraion names.\r\n\t */\r\n\tBasicReadListResponse<String> fetchNames();\r\n\r\n\t/**\r\n\t * Fetches mail template configuration with specified name.\r\n\t * @param name Name of mail template configuration to fetch.\r\n\t * @return Matching mail template configuration.\r\n\t */\r\n\tBasicReadResponse<MailTemplateConfiguration> fetchConfiguration(String name);\r\n}", "title": "" }, { "docid": "ef6b9bd81102594b6b402768f3866a39", "score": "0.5376587", "text": "@Bean\n public SolrClient solrClient() { return new HttpSolrClient.Builder(internalSolrUrl).build(); }", "title": "" }, { "docid": "752ed094259c897fdebe73f171460554", "score": "0.5376088", "text": "@Override\n public void configure() throws Exception {\n restConfiguration().component(\"jetty\").host(\"localhost\").port(portNum);\n\n // use the rest DSL to define the rest services\n rest(\"/transactions\")\n .get()\n .to(\"direct:openbanktransactions\");\n\n rest(\"/filter\")\n .get()\n .to(\"direct:processTransactions\").outType(Transactions.class);\n\n rest(\"/totalAmount\")\n .get()\n .to(\"direct:processAmountTransactions\").outType(Value.class);\n }", "title": "" }, { "docid": "72188225aa2076f79a75019e5a96c5e3", "score": "0.5369829", "text": "public interface ConfigurationServiceV2 {\n\n /**\n * Get a collection {@link com.terracotta.management.resource.ConfigEntityV2} objects each representing a server\n * config. Only requested servers are included, or all of them if serverNames is null.\n *\n * @param serverNames A set of server names, null meaning all of them.\n * @return a collection {@link com.terracotta.management.resource.ConfigEntityV2} objects.\n * @throws ServiceExecutionException\n */\n Collection<ConfigEntityV2> getServerConfigs(Set<String> serverNames) throws ServiceExecutionException;\n\n /**\n * Get a collection {@link com.terracotta.management.resource.ConfigEntityV2} objects each representing a client\n * config. Only requested clients are included, or all of them if clientIds is null.\n *\n * @param clientIds A set of client IDs, null meaning all of them.\n * @return a collection {@link com.terracotta.management.resource.ConfigEntityV2} objects.\n * @throws ServiceExecutionException\n */\n Collection<ConfigEntityV2> getClientConfigs(Set<String> clientIds, Set<String> clientProductIds) throws ServiceExecutionException;\n\n}", "title": "" }, { "docid": "2a17f3662797d4818694f4d2d9c957be", "score": "0.5369048", "text": "@Bean\n public UsersService usersService() {\n return new UsersService(USERS_SERVICE_URL);\n }", "title": "" }, { "docid": "39a110457c13ef18a51e230fe8ac92b6", "score": "0.5366236", "text": "private ResourceConfig configureServer() {\n ResourceConfig rc = new ResourceConfig().packages(\"de.sybig.oba.server\");\n rc.property(\"jersey.config.server.tracing.type\", \"ON_DEMAND\");\n rc.property(\"jersey.config.server.tracing.threshold\", \"VERBOSE\");\n rc.property(\"com.sun.jersey.config.feature.Trace\", \"true\");\n\n String host = props.getProperty(\"bind_address\");\n String port = props.getProperty(\"port\", \"9998\");\n String base = props.getProperty(\"base\", \"/\");\n String baseUri = String.format(\"http://%s:%s%s\", host, port, base);\n props.put(\"base_uri\", baseUri);\n // Log all http data\n// rc.registerInstances(new LoggingFilter(java.util.logging.Logger.getLogger(RestServer.class.getName()), true));\n return rc;\n }", "title": "" }, { "docid": "29e7bccfebb9d8ff605d2bd5ce64bb2a", "score": "0.5351093", "text": "protected void initializeServiceHttpWrappers() {\r\n\t\tadministrationService = new ServiceHttpWrapper(\"administration\", httpclient);\r\n\t\tannotationService = new ServiceHttpWrapper(\"annotation\", httpclient);\r\n\t\tclsService = new ServiceHttpWrapper(\"cls\", httpclient);\r\n\t\tdeleteService = new ServiceHttpWrapper(\"delete\", httpclient);\r\n\t\tenvironmentService = new ServiceHttpWrapper(\"environment\", httpclient);\r\n\t\tindividualService = new ServiceHttpWrapper(\"individual\", httpclient);\r\n\t\tinputOutputService = new ServiceHttpWrapper(\"inputOutput\", httpclient);\r\n\t\tmetadataService = new ServiceHttpWrapper(\"metadata\", httpclient);\r\n\t\tmodifyNameService = new ServiceHttpWrapper(\"modifyName\", httpclient);\r\n\t\tpageService = new ServiceHttpWrapper(\"page\", httpclient);\r\n\t\tpluginsService = new ServiceHttpWrapper(\"plugins\", httpclient);\r\n\t\tpropertyService = new ServiceHttpWrapper(\"property\", httpclient);\r\n\t\tprojectsService = new ServiceHttpWrapper(\"projects\", httpclient);\r\n\t\tresourceService = new ServiceHttpWrapper(\"resource\", httpclient);\r\n\t\tsearchOntologyService = new ServiceHttpWrapper(\"ontologySearch\", httpclient);\r\n\t\tsynonymsService = new ServiceHttpWrapper(\"synonyms\", httpclient);\r\n\t\tsystemStartService = new ServiceHttpWrapper(\"systemStart\", httpclient);\r\n\t\tsparqlService = new ServiceHttpWrapper(\"sparql\", httpclient);\r\n\t\tstatementService = new ServiceHttpWrapper(\"statement\", httpclient);\r\n\t\tontManagerService = new ServiceHttpWrapper(\"ontManager\", httpclient);\r\n\t\tskosService = new ServiceHttpWrapper(\"skos\", httpclient);\r\n\t\tskosXLService = new ServiceHttpWrapper(\"skosxl\", httpclient);\r\n\t}", "title": "" }, { "docid": "fb15fc8da821e403007e19ac1a1a5660", "score": "0.5339096", "text": "private void setupApiService() {\n Retrofit retrofit = new Retrofit.Builder()\n .baseUrl(BeaconBaconManager.getInstance().getConfigurationObject().getBaseUrl())\n .addConverterFactory(GsonConverterFactory.create())\n .build();\n\n setApiService(retrofit.create(ApiService.class));\n }", "title": "" }, { "docid": "5dc2f7508b5fce3cd8acd746bb845c0b", "score": "0.53388965", "text": "@Override\n \tprotected void configure() {\n \n \t\t// //////////////////////////////////////////////\n \t\t// INTERNAL SERVICES\n \n \t\tthis.bind(ResourceMonitoringRunner.class);\n \n \t\tthis.bind(RFSServiceMonitoringJobImplementation.class);\n \t\tthis.bind(OperatorReportingJobImplementation.class);\n \t\tthis.bind(RFSServiceReportingJobImplementation.class);\n \t\tthis.bind(NodeReportingJobImplementation.class);\n \n \t\tthis.bind(RFSServiceMonitoringLogic.class);\n \t\tthis.bind(RFSServiceSummaryReportingLogic.class);\n \t\tthis.bind(RFSServiceDashboardReportingLogic.class);\n \t\tthis.bind(RFSServiceDistributionReportingLogic.class);\n \t\tthis.bind(RFSServiceUserReportingLogic.class);\n \t\tthis.bind(NodeResourceReportingLogic.class);\n \t\tthis.bind(NodeMonitoringLogic.class);\n \t\tthis.bind(RetentionLogic.class);\n \t\tthis.bind(AggregationLogic.class);\n \n \t\tthis.bind(MonitoringEngine.class);\n \t\tthis.bind(ProfileEngine.class);\n \t\tthis.bind(RetentionEngine.class);\n \t\tthis.bind(AggregationEngine.class);\n \n \t\tthis.bind(AddonHandler.class).in(Singleton.class);\n \n \t\t// / ///////////////////////////////\n \t\t// IMPORT SERVICES\n \n \t\t// {@link CDODataServiceModule}\n \t\tbind(IQueryService.class).toProvider(\n\t\t\t\tservice(IQueryService.class).single());\n \n \t\t// {@link ServerModule}\n \t\tbind(IDPProvider.class).annotatedWith(Server.class).toProvider(\n \t\t\t\tservice(IDPProvider.class).single());\n \n \t\t// {@link ServerModule}\n \t\tbind(IDPNoCacheProvider.class).annotatedWith(ServerNoCache.class)\n \t\t\t\t.toProvider(service(IDPNoCacheProvider.class).single());\n \n \t\t// {@link ServerModule}\n \t\tbind(IPropertiesProvider.class).toProvider(\n \t\t\t\tservice(IPropertiesProvider.class).single());\n \n \t}", "title": "" }, { "docid": "f690c42a1ef9f6ef85c19032e0195c5a", "score": "0.53340447", "text": "public ContainerRegistryManagementClientImpl(String baseUrl, OkHttpClient.Builder clientBuilder, Retrofit.Builder restBuilder) {\n super(baseUrl, clientBuilder, restBuilder);\n initialize();\n }", "title": "" }, { "docid": "b27ad8bf024d76251d34af0de7601016", "score": "0.5331064", "text": "public void configure() {\n\n restConfiguration().component(\"servlet\").contextPath(\"/\").bindingMode(RestBindingMode.json);\n\n rest()\n .get(\"/books\")\n .id(\"get_books\")\n .outType(Product.class)\n .description(\"Get all books.\")\n .to(\"direct:get_books\")\n .get(\"/books/{isbn}\")\n .id(\"get_book_by_isbn\")\n .description(\"Get book info based on ISBN.\")\n .param()\n .name(\"isbn\")\n .type(RestParamType.path)\n .dataType(\"string\")\n .required(true)\n .description(\"ISBN number.\")\n .endParam()\n .to(\"direct:get_book_by_isbn\")\n .get(\"/orders\")\n .id(\"get_orders\")\n .description(\"Get all orders.\")\n .to(\"direct:get_orders\")\n .post(\"/orders\")\n .id(\"new_order\")\n .description(\"Create a new order.\")\n .consumes(\"application/json\")\n .param()\n .name(\"body\")\n .type(RestParamType.body)\n .required(true)\n .description(\"New order details.\")\n .endParam()\n .to(\"direct:new_order\")\n .get(\"/orders/{orderId}\")\n .id(\"get_order_by_id\")\n .description(\"Get an order by order id.\")\n .param()\n .name(\"orderId\")\n .type(RestParamType.path)\n .dataType(\"integer\")\n .required(true)\n .description(\"Order ID.\")\n .endParam()\n .to(\"direct:get_order_by_id\")\n .put(\"/orders/{orderId}\")\n .id(\"update_order\")\n .description(\"Update an order by ID.\")\n .consumes(\"application/json\")\n .param()\n .name(\"orderId\")\n .type(RestParamType.path)\n .dataType(\"integer\")\n .required(true)\n .description(\"Order ID.\")\n .endParam()\n .param()\n .name(\"body\")\n .type(RestParamType.body)\n .required(true)\n .description(\"Updated order.\")\n .endParam()\n .to(\"direct:update_order\");\n\n from(\"direct:get_books\").description(\"Greetings REST service implementation route\")\n .log(\"Hello world\").bean(Products.class, \"newProduct\"); \n }", "title": "" }, { "docid": "8b163897dd0cd50c57e9811d013af29f", "score": "0.5296118", "text": "@Bean\n public HessianProxyFactoryBean iActivityService() {\n HessianProxyFactoryBean factory = hessianProxyConfig();\n factory.setServiceUrl(lotto_activity_url + remote_activity_service);\n factory.setServiceInterface(IActivityService.class);\n return factory;\n }", "title": "" }, { "docid": "eb6d4225e5b521407a9afa5a77812c5b", "score": "0.5284867", "text": "private void initRestService() {\n Retrofit retrofit = new Retrofit.Builder()\n .baseUrl(BASE_URL)\n .addConverterFactory(GsonConverterFactory.create())\n .build();\n\n SERVICE = retrofit.create(SWLabWSClient.class);\n }", "title": "" }, { "docid": "7e162fff5325fd46296e483075fde36f", "score": "0.527625", "text": "@Service\npublic interface PreConfService {\n public Map getConf(String type, String item, String pname, String ip);\n}", "title": "" }, { "docid": "51b95da8bdbd4d0802451ff055f33ae4", "score": "0.52709144", "text": "@Override\n protected Application configure() {\n enable(TestProperties.LOG_TRAFFIC);\n enable(TestProperties.DUMP_ENTITY);\n ResourceConfig config = new ResourceConfig(AlgorithmResource.class);\n config.register(JacksonFeature.class);\n config.register(MultiPartFeature.class); // IMPORTANT: if you want to test multipart feature, remember to add this\n return config;\n }", "title": "" }, { "docid": "1e9e9de4928e108d42b184c554bccb96", "score": "0.525548", "text": "@Bean\r\n\tpublic SpringProperties springProperties() {\r\n\t\t\r\n logger.info(\"Configuring SpringProperties\"); \r\n\t\treturn new SpringProperties();\r\n\t}", "title": "" }, { "docid": "efc5fe5e9e83c9af79b8789e36291285", "score": "0.52485424", "text": "@Override\r\n public APIConfigInfo getAPIConfigInfo() {\n return apiConfig;\r\n }", "title": "" }, { "docid": "eb26e65f69a8f3f474172075336611f3", "score": "0.5247563", "text": "@GET(ConfigurationFile.UrlConstants.SERVICES_URL)\n Observable<Response<ServicesResponse>> getServices();", "title": "" }, { "docid": "734485ccd7e09993fb78ae67a223faa0", "score": "0.52409506", "text": "@Bean\n //The @Primary annotation is there to make sure this instance is used instead of a real one for autowiring.\n @Primary\n public UserService userService() {\n \tLOG.info(\"userService method was invoked\");\n return Mockito.mock(UserService.class);\n }", "title": "" }, { "docid": "91f97ae73c80d5868e4d86b92603cba5", "score": "0.52379894", "text": "public RestApplication() {\r\n register(EmployeeResource.class);\r\n }", "title": "" }, { "docid": "ce3f4eaff4ce634bb64df98bc10774cf", "score": "0.52371645", "text": "public static ConfigurationService getConfigService()\n {\n if (configService == null)\n {\n configService\n = ServiceUtils.getService(\n bundleContext,\n ConfigurationService.class);\n }\n return configService;\n }", "title": "" }, { "docid": "7fe510e236a184e02478f2e8fc1f0f63", "score": "0.52313405", "text": "@Override\n protected Application configure() {\n enable(TestProperties.LOG_TRAFFIC);\n enable(TestProperties.DUMP_ENTITY);\n\n return new ResourceConfig(IndoorLocationResource.class);\n }", "title": "" }, { "docid": "0a0c7818844186febb3bdbe0b1303e81", "score": "0.52305275", "text": "@Override\n public void run(TaskServerConfig configuration, Environment environment) throws Exception {\n environment.jersey().setUrlPattern(configuration.getJerseyUrlPattern());\n registerEnvironmentBeans(configuration, environment);\n }", "title": "" }, { "docid": "cfe48ee1d7a8aceae381cd40415049c8", "score": "0.5224128", "text": "protected void bootstrap(String[] configArgs) throws Exception {\n try {\n context = ServiceBeanActivation.getServiceBeanContext(\n getConfigComponent(),\n \"REST\",\n configArgs,\n getClass().getClassLoader());\n } catch (Exception e) {\n logger.log(Level.SEVERE, \"Getting ServiceElement\", e);\n throw e;\n }\n try {\n start(context);\n ServiceBeanActivation.LifeCycleManager lMgr =\n (ServiceBeanActivation.LifeCycleManager) context.getServiceBeanManager().getDiscardManager();\n if (lMgr != null) {\n lMgr.register(getServiceProxy(), context);\n } else {\n logger.log(Level.WARNING, \"LifeCycleManager is null, unable to register\");\n }\n \n // build the association with the provision monitor to fulfill\n AssociationDescriptor provisionMonitorAssociation = new AssociationDescriptor(AssociationType.REQUIRES);\n provisionMonitorAssociation.setMatchOnName(false);\n provisionMonitorAssociation.setInterfaceNames(ProvisionMonitor.class.getName());\n provisionMonitorAssociation.setGroups(context.getServiceBeanConfig().getGroups());\n \n // build the association with the cluster manager to fulfill\n AssociationDescriptor clusterManagerAssociation = new AssociationDescriptor(AssociationType.REQUIRES);\n provisionMonitorAssociation.setMatchOnName(false);\n provisionMonitorAssociation.setInterfaceNames(CloudFederationClusterManager.class.getName());\n provisionMonitorAssociation.setGroups(context.getServiceBeanConfig().getGroups());\n \n // build the association with the storage manager to fulfill\n AssociationDescriptor storageManagerAssociation = new AssociationDescriptor(AssociationType.REQUIRES);\n provisionMonitorAssociation.setMatchOnName(false);\n provisionMonitorAssociation.setInterfaceNames(StorageManager.class.getName());\n provisionMonitorAssociation.setGroups(context.getServiceBeanConfig().getGroups());\n \n // register the association listeners\n AssociationMgmt assocMgt = new AssociationMgmt();\n assocMgt.register(new ProvisionMonitorListener());\n assocMgt.register(new ClusterManagerListener());\n assocMgt.register(new StorageManagerListener());\n \n // search for the provision monitor\n assocMgt.addAssociationDescriptors(provisionMonitorAssociation);\n } catch(Exception e) {\n logger.log(Level.SEVERE, \"Register to LifeCycleManager\", e);\n throw e;\n }\n }", "title": "" }, { "docid": "f36d38ca885907b9870e5acc293e047c", "score": "0.5205011", "text": "@Bean\n RedisTemplate<String, Roullete> redisTemplate() {\n final RedisTemplate<String, Roullete> redisTemplate = new RedisTemplate<>();\n redisTemplate.setConnectionFactory(jedisConnectionFactory());\n return redisTemplate;\n }", "title": "" }, { "docid": "25b9f9e35b334c57e54674b89a26b3b8", "score": "0.51779836", "text": "public interface HttpClientConfigurer {\n /**\n * Configure the HttpClient such as setting the authentication or proxying details\n *\n * @param client\n */\n void configureHttpClient(HttpClient client);\n}", "title": "" }, { "docid": "c89da3617b656ed8a4eaad7e9f68c684", "score": "0.5175136", "text": "public interface QuotationModuleConfigService extends GenericService<QuotationModuleConfig, String> {\n\n QuotationModuleConfig getUnique();\n\n}", "title": "" }, { "docid": "8cc1d3da767262e6390c4cf3488489d7", "score": "0.517057", "text": "@ComponentScan\n@Configuration\npublic interface ServiceConfig {\n}", "title": "" }, { "docid": "f3c282a6128deb39a6343fdf688966f3", "score": "0.5169119", "text": "protected abstract void registerServerConfig(AnnotationConfigWebApplicationContext rootAppContext);", "title": "" }, { "docid": "c6e9ad420003baf32c2260b0e891920f", "score": "0.5165964", "text": "public static ConfigurationService getConfigurationService()\n {\n if (configurationService == null)\n {\n configurationService\n = ServiceUtils.getService(\n bundleContext,\n ConfigurationService.class);\n }\n return configurationService;\n }", "title": "" }, { "docid": "b5c46a7ff2e658acfd226c1e25307b4c", "score": "0.5164955", "text": "public ServerConfigurationService getServerConfigurationService()\n {\n if (serverConfigurationService == null)\n {\n \tserverConfigurationService = (ServerConfigurationService) ComponentManager.get(ServerConfigurationService.class.getName()); \n \treturn serverConfigurationService;\n }\n return serverConfigurationService;\n }", "title": "" }, { "docid": "fd546ca0a386ec141ae285b7c2a9d049", "score": "0.5158131", "text": "public interface AuthService {\n /**\n * Gets the REST client.\n *\n * @return the {@link RestClient} object.\n */\n RestClient restClient();\n\n /**\n * The default base URL.\n */\n String DEFAULT_BASE_URL = \"https://\";\n\n /**\n * get the configuration for a tenant.\n *\n * @param tenantId The tenant id\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @throws TenantConfigurationException thrown if the request is rejected by server\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent\n * @return the TenantConfiguration object if successful.\n */\n TenantConfiguration getConfiguration(String tenantId);\n\n /**\n * get the configuration for a tenant.\n *\n * @param tenantId The tenant id\n * @param serviceCallback the async ServiceCallback to handle successful and failed responses.\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @return the {@link ServiceFuture} object\n */\n ServiceFuture<TenantConfiguration> getConfigurationAsync(String tenantId, final ServiceCallback<TenantConfiguration> serviceCallback);\n\n /**\n * get the configuration for a tenant.\n *\n * @param tenantId The tenant id\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @return the observable to the TenantConfiguration object\n */\n Observable<TenantConfiguration> getConfigurationAsync(String tenantId);\n\n /**\n * get the configuration for a tenant.\n *\n * @param tenantId The tenant id\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @return the observable to the TenantConfiguration object\n */\n Observable<ServiceResponse<TenantConfiguration>> getConfigurationWithServiceResponseAsync(String tenantId);\n\n /**\n * get jwks for key validation.\n *\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @throws DiscoveryKeysException thrown if the request is rejected by server\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent\n * @return the DiscoveryKeys object if successful.\n */\n DiscoveryKeys discoverKeys();\n\n /**\n * get jwks for key validation.\n *\n * @param serviceCallback the async ServiceCallback to handle successful and failed responses.\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @return the {@link ServiceFuture} object\n */\n ServiceFuture<DiscoveryKeys> discoverKeysAsync(final ServiceCallback<DiscoveryKeys> serviceCallback);\n\n /**\n * get jwks for key validation.\n *\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @return the observable to the DiscoveryKeys object\n */\n Observable<DiscoveryKeys> discoverKeysAsync();\n\n /**\n * get jwks for key validation.\n *\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @return the observable to the DiscoveryKeys object\n */\n Observable<ServiceResponse<DiscoveryKeys>> discoverKeysWithServiceResponseAsync();\n\n /**\n * Oauth2 authorize endpoint.\n *\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @throws RestException thrown if the request is rejected by server\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent\n */\n void authorize();\n\n /**\n * Oauth2 authorize endpoint.\n *\n * @param serviceCallback the async ServiceCallback to handle successful and failed responses.\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @return the {@link ServiceFuture} object\n */\n ServiceFuture<Void> authorizeAsync(final ServiceCallback<Void> serviceCallback);\n\n /**\n * Oauth2 authorize endpoint.\n *\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @return the {@link ServiceResponse} object if successful.\n */\n Observable<Void> authorizeAsync();\n\n /**\n * Oauth2 authorize endpoint.\n *\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @return the {@link ServiceResponse} object if successful.\n */\n Observable<ServiceResponse<Void>> authorizeWithServiceResponseAsync();\n\n /**\n * Oauth2 token endpoint.\n *\n * @param grantType The grant_type to use for obtaining a token\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @throws OauthTokenException thrown if the request is rejected by server\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent\n * @return the OauthToken object if successful.\n */\n OauthToken token(String grantType);\n\n /**\n * Oauth2 token endpoint.\n *\n * @param grantType The grant_type to use for obtaining a token\n * @param serviceCallback the async ServiceCallback to handle successful and failed responses.\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @return the {@link ServiceFuture} object\n */\n ServiceFuture<OauthToken> tokenAsync(String grantType, final ServiceCallback<OauthToken> serviceCallback);\n\n /**\n * Oauth2 token endpoint.\n *\n * @param grantType The grant_type to use for obtaining a token\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @return the observable to the OauthToken object\n */\n Observable<OauthToken> tokenAsync(String grantType);\n\n /**\n * Oauth2 token endpoint.\n *\n * @param grantType The grant_type to use for obtaining a token\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @return the observable to the OauthToken object\n */\n Observable<ServiceResponse<OauthToken>> tokenWithServiceResponseAsync(String grantType);\n /**\n * Oauth2 token endpoint.\n *\n * @param grantType The grant_type to use for obtaining a token\n * @param username The username used with grant_type=password\n * @param password The password used with grant_type=password\n * @param code The code to use with grant_type=authorization_code\n * @param refreshToken The refresh token to use with grant_type=refresh_token\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @throws OauthTokenException thrown if the request is rejected by server\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent\n * @return the OauthToken object if successful.\n */\n OauthToken token(String grantType, String username, String password, String code, String refreshToken);\n\n /**\n * Oauth2 token endpoint.\n *\n * @param grantType The grant_type to use for obtaining a token\n * @param username The username used with grant_type=password\n * @param password The password used with grant_type=password\n * @param code The code to use with grant_type=authorization_code\n * @param refreshToken The refresh token to use with grant_type=refresh_token\n * @param serviceCallback the async ServiceCallback to handle successful and failed responses.\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @return the {@link ServiceFuture} object\n */\n ServiceFuture<OauthToken> tokenAsync(String grantType, String username, String password, String code, String refreshToken, final ServiceCallback<OauthToken> serviceCallback);\n\n /**\n * Oauth2 token endpoint.\n *\n * @param grantType The grant_type to use for obtaining a token\n * @param username The username used with grant_type=password\n * @param password The password used with grant_type=password\n * @param code The code to use with grant_type=authorization_code\n * @param refreshToken The refresh token to use with grant_type=refresh_token\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @return the observable to the OauthToken object\n */\n Observable<OauthToken> tokenAsync(String grantType, String username, String password, String code, String refreshToken);\n\n /**\n * Oauth2 token endpoint.\n *\n * @param grantType The grant_type to use for obtaining a token\n * @param username The username used with grant_type=password\n * @param password The password used with grant_type=password\n * @param code The code to use with grant_type=authorization_code\n * @param refreshToken The refresh token to use with grant_type=refresh_token\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @return the observable to the OauthToken object\n */\n Observable<ServiceResponse<OauthToken>> tokenWithServiceResponseAsync(String grantType, String username, String password, String code, String refreshToken);\n\n /**\n * Redirects user back to target login endpoint.\n *\n * @param tid The tenant id for this request\n * @param sAMLResponse The SAML AuthNResponse from the Identity Provider\n * @param relayState The relay state obtained from generate request process\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @throws RestException thrown if the request is rejected by server\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent\n */\n void generateRequest(String tid, String sAMLResponse, String relayState);\n\n /**\n * Redirects user back to target login endpoint.\n *\n * @param tid The tenant id for this request\n * @param sAMLResponse The SAML AuthNResponse from the Identity Provider\n * @param relayState The relay state obtained from generate request process\n * @param serviceCallback the async ServiceCallback to handle successful and failed responses.\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @return the {@link ServiceFuture} object\n */\n ServiceFuture<Void> generateRequestAsync(String tid, String sAMLResponse, String relayState, final ServiceCallback<Void> serviceCallback);\n\n /**\n * Redirects user back to target login endpoint.\n *\n * @param tid The tenant id for this request\n * @param sAMLResponse The SAML AuthNResponse from the Identity Provider\n * @param relayState The relay state obtained from generate request process\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @return the {@link ServiceResponse} object if successful.\n */\n Observable<Void> generateRequestAsync(String tid, String sAMLResponse, String relayState);\n\n /**\n * Redirects user back to target login endpoint.\n *\n * @param tid The tenant id for this request\n * @param sAMLResponse The SAML AuthNResponse from the Identity Provider\n * @param relayState The relay state obtained from generate request process\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @return the {@link ServiceResponse} object if successful.\n */\n Observable<ServiceResponse<Void>> generateRequestWithServiceResponseAsync(String tid, String sAMLResponse, String relayState);\n\n /**\n * Generates a SAML request.\n *\n * @param tid The tenant id for this request\n * @param clientId The Oauth2 client_id that is making the reqeust\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @throws SamlGenerateRequestResponseException thrown if the request is rejected by server\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent\n * @return the SamlGenerateRequestResponse object if successful.\n */\n SamlGenerateRequestResponse generateRequest1(String tid, String clientId);\n\n /**\n * Generates a SAML request.\n *\n * @param tid The tenant id for this request\n * @param clientId The Oauth2 client_id that is making the reqeust\n * @param serviceCallback the async ServiceCallback to handle successful and failed responses.\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @return the {@link ServiceFuture} object\n */\n ServiceFuture<SamlGenerateRequestResponse> generateRequest1Async(String tid, String clientId, final ServiceCallback<SamlGenerateRequestResponse> serviceCallback);\n\n /**\n * Generates a SAML request.\n *\n * @param tid The tenant id for this request\n * @param clientId The Oauth2 client_id that is making the reqeust\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @return the observable to the SamlGenerateRequestResponse object\n */\n Observable<SamlGenerateRequestResponse> generateRequest1Async(String tid, String clientId);\n\n /**\n * Generates a SAML request.\n *\n * @param tid The tenant id for this request\n * @param clientId The Oauth2 client_id that is making the reqeust\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @return the observable to the SamlGenerateRequestResponse object\n */\n Observable<ServiceResponse<SamlGenerateRequestResponse>> generateRequest1WithServiceResponseAsync(String tid, String clientId);\n\n /**\n * Gets the SAML settings for this tenant.\n *\n * @param tid The tenant id for this request\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @throws SamlSAMLSettingsException thrown if the request is rejected by server\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent\n * @return the SamlSAMLSettings object if successful.\n */\n SamlSAMLSettings getSAMLSettings(String tid);\n\n /**\n * Gets the SAML settings for this tenant.\n *\n * @param tid The tenant id for this request\n * @param serviceCallback the async ServiceCallback to handle successful and failed responses.\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @return the {@link ServiceFuture} object\n */\n ServiceFuture<SamlSAMLSettings> getSAMLSettingsAsync(String tid, final ServiceCallback<SamlSAMLSettings> serviceCallback);\n\n /**\n * Gets the SAML settings for this tenant.\n *\n * @param tid The tenant id for this request\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @return the observable to the SamlSAMLSettings object\n */\n Observable<SamlSAMLSettings> getSAMLSettingsAsync(String tid);\n\n /**\n * Gets the SAML settings for this tenant.\n *\n * @param tid The tenant id for this request\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @return the observable to the SamlSAMLSettings object\n */\n Observable<ServiceResponse<SamlSAMLSettings>> getSAMLSettingsWithServiceResponseAsync(String tid);\n\n /**\n * Create a user.\n *\n * @param body the UserCreateUser value\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @throws RestException thrown if the request is rejected by server\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent\n * @return the UserUser object if successful.\n */\n UserUser create(UserCreateUser body);\n\n /**\n * Create a user.\n *\n * @param body the UserCreateUser value\n * @param serviceCallback the async ServiceCallback to handle successful and failed responses.\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @return the {@link ServiceFuture} object\n */\n ServiceFuture<UserUser> createAsync(UserCreateUser body, final ServiceCallback<UserUser> serviceCallback);\n\n /**\n * Create a user.\n *\n * @param body the UserCreateUser value\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @return the observable to the UserUser object\n */\n Observable<UserUser> createAsync(UserCreateUser body);\n\n /**\n * Create a user.\n *\n * @param body the UserCreateUser value\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @return the observable to the UserUser object\n */\n Observable<ServiceResponse<UserUser>> createWithServiceResponseAsync(UserCreateUser body);\n\n /**\n * Provides a login endpoint that can generate an auth code for the user given valid user credentials.\n *\n * @param body the UserLoginRequest value\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @throws UserLoginResponseException thrown if the request is rejected by server\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent\n * @return the UserLoginResponse object if successful.\n */\n UserLoginResponse loginUser(UserLoginRequest body);\n\n /**\n * Provides a login endpoint that can generate an auth code for the user given valid user credentials.\n *\n * @param body the UserLoginRequest value\n * @param serviceCallback the async ServiceCallback to handle successful and failed responses.\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @return the {@link ServiceFuture} object\n */\n ServiceFuture<UserLoginResponse> loginUserAsync(UserLoginRequest body, final ServiceCallback<UserLoginResponse> serviceCallback);\n\n /**\n * Provides a login endpoint that can generate an auth code for the user given valid user credentials.\n *\n * @param body the UserLoginRequest value\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @return the observable to the UserLoginResponse object\n */\n Observable<UserLoginResponse> loginUserAsync(UserLoginRequest body);\n\n /**\n * Provides a login endpoint that can generate an auth code for the user given valid user credentials.\n *\n * @param body the UserLoginRequest value\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @return the observable to the UserLoginResponse object\n */\n Observable<ServiceResponse<UserLoginResponse>> loginUserWithServiceResponseAsync(UserLoginRequest body);\n /**\n * Provides a login endpoint that can generate an auth code for the user given valid user credentials.\n *\n * @param body the UserLoginRequest value\n * @param clientId identifier of the oauth client\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @throws UserLoginResponseException thrown if the request is rejected by server\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent\n * @return the UserLoginResponse object if successful.\n */\n UserLoginResponse loginUser(UserLoginRequest body, String clientId);\n\n /**\n * Provides a login endpoint that can generate an auth code for the user given valid user credentials.\n *\n * @param body the UserLoginRequest value\n * @param clientId identifier of the oauth client\n * @param serviceCallback the async ServiceCallback to handle successful and failed responses.\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @return the {@link ServiceFuture} object\n */\n ServiceFuture<UserLoginResponse> loginUserAsync(UserLoginRequest body, String clientId, final ServiceCallback<UserLoginResponse> serviceCallback);\n\n /**\n * Provides a login endpoint that can generate an auth code for the user given valid user credentials.\n *\n * @param body the UserLoginRequest value\n * @param clientId identifier of the oauth client\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @return the observable to the UserLoginResponse object\n */\n Observable<UserLoginResponse> loginUserAsync(UserLoginRequest body, String clientId);\n\n /**\n * Provides a login endpoint that can generate an auth code for the user given valid user credentials.\n *\n * @param body the UserLoginRequest value\n * @param clientId identifier of the oauth client\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @return the observable to the UserLoginResponse object\n */\n Observable<ServiceResponse<UserLoginResponse>> loginUserWithServiceResponseAsync(UserLoginRequest body, String clientId);\n\n /**\n * Gets a user.\n *\n * @param userId identifier of the user\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @throws UserUserException thrown if the request is rejected by server\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent\n * @return the UserUser object if successful.\n */\n UserUser get(String userId);\n\n /**\n * Gets a user.\n *\n * @param userId identifier of the user\n * @param serviceCallback the async ServiceCallback to handle successful and failed responses.\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @return the {@link ServiceFuture} object\n */\n ServiceFuture<UserUser> getAsync(String userId, final ServiceCallback<UserUser> serviceCallback);\n\n /**\n * Gets a user.\n *\n * @param userId identifier of the user\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @return the observable to the UserUser object\n */\n Observable<UserUser> getAsync(String userId);\n\n /**\n * Gets a user.\n *\n * @param userId identifier of the user\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @return the observable to the UserUser object\n */\n Observable<ServiceResponse<UserUser>> getWithServiceResponseAsync(String userId);\n\n /**\n * Updates a user.\n *\n * @param userId identifier of the user\n * @param body the UserUser value\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @throws UserUserException thrown if the request is rejected by server\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent\n * @return the UserUser object if successful.\n */\n UserUser update(String userId, UserUser body);\n\n /**\n * Updates a user.\n *\n * @param userId identifier of the user\n * @param body the UserUser value\n * @param serviceCallback the async ServiceCallback to handle successful and failed responses.\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @return the {@link ServiceFuture} object\n */\n ServiceFuture<UserUser> updateAsync(String userId, UserUser body, final ServiceCallback<UserUser> serviceCallback);\n\n /**\n * Updates a user.\n *\n * @param userId identifier of the user\n * @param body the UserUser value\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @return the observable to the UserUser object\n */\n Observable<UserUser> updateAsync(String userId, UserUser body);\n\n /**\n * Updates a user.\n *\n * @param userId identifier of the user\n * @param body the UserUser value\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @return the observable to the UserUser object\n */\n Observable<ServiceResponse<UserUser>> updateWithServiceResponseAsync(String userId, UserUser body);\n\n /**\n * Updates a user.\n *\n * @param userId identifier of the user\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @throws RestException thrown if the request is rejected by server\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent\n */\n void update1(String userId);\n\n /**\n * Updates a user.\n *\n * @param userId identifier of the user\n * @param serviceCallback the async ServiceCallback to handle successful and failed responses.\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @return the {@link ServiceFuture} object\n */\n ServiceFuture<Void> update1Async(String userId, final ServiceCallback<Void> serviceCallback);\n\n /**\n * Updates a user.\n *\n * @param userId identifier of the user\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @return the {@link ServiceResponse} object if successful.\n */\n Observable<Void> update1Async(String userId);\n\n /**\n * Updates a user.\n *\n * @param userId identifier of the user\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @return the {@link ServiceResponse} object if successful.\n */\n Observable<ServiceResponse<Void>> update1WithServiceResponseAsync(String userId);\n\n /**\n * Gets an auth code for the user to use for logging in.\n *\n * @param userId identifier of the user\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @throws UserAuthCodeResponseException thrown if the request is rejected by server\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent\n * @return the UserAuthCodeResponse object if successful.\n */\n UserAuthCodeResponse generateAuthCode(String userId);\n\n /**\n * Gets an auth code for the user to use for logging in.\n *\n * @param userId identifier of the user\n * @param serviceCallback the async ServiceCallback to handle successful and failed responses.\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @return the {@link ServiceFuture} object\n */\n ServiceFuture<UserAuthCodeResponse> generateAuthCodeAsync(String userId, final ServiceCallback<UserAuthCodeResponse> serviceCallback);\n\n /**\n * Gets an auth code for the user to use for logging in.\n *\n * @param userId identifier of the user\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @return the observable to the UserAuthCodeResponse object\n */\n Observable<UserAuthCodeResponse> generateAuthCodeAsync(String userId);\n\n /**\n * Gets an auth code for the user to use for logging in.\n *\n * @param userId identifier of the user\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @return the observable to the UserAuthCodeResponse object\n */\n Observable<ServiceResponse<UserAuthCodeResponse>> generateAuthCodeWithServiceResponseAsync(String userId);\n\n}", "title": "" }, { "docid": "c405e3835d837e5485a9c568e58ab1e1", "score": "0.51483846", "text": "@PostConstruct\n\tpublic void init() {\n\t\t\n \tRestTemplate restTemplate = new RestTemplate();\n \t\n \tlistaEstados = Arrays.asList(restTemplate.getForEntity(\"https://servicodados.ibge.gov.br/api/v1/localidades/estados/\",\n Estado[].class).getBody());\n \n\t}", "title": "" }, { "docid": "8f6062b486ac94572d728acdbd43dbae", "score": "0.5144901", "text": "@Override\n protected Class<?> getResourceClass() {\n return TokenServiceResource.class;\n }", "title": "" }, { "docid": "8617f7cf216acd4f258dc7c8094ab477", "score": "0.5143498", "text": "public interface SettingsClient {\n /**\n * Settings about different configurations in Microsoft Defender for Cloud.\n *\n * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return subscription settings list as paginated response with {@link PagedIterable}.\n */\n @ServiceMethod(returns = ReturnType.COLLECTION)\n PagedIterable<SettingInner> list();\n\n /**\n * Settings about different configurations in Microsoft Defender for Cloud.\n *\n * @param context The context to associate with this operation.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return subscription settings list as paginated response with {@link PagedIterable}.\n */\n @ServiceMethod(returns = ReturnType.COLLECTION)\n PagedIterable<SettingInner> list(Context context);\n\n /**\n * Settings of different configurations in Microsoft Defender for Cloud.\n *\n * @param settingName The name of the setting.\n * @param context The context to associate with this operation.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return the kind of the security setting along with {@link Response}.\n */\n @ServiceMethod(returns = ReturnType.SINGLE)\n Response<SettingInner> getWithResponse(SettingName settingName, Context context);\n\n /**\n * Settings of different configurations in Microsoft Defender for Cloud.\n *\n * @param settingName The name of the setting.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return the kind of the security setting.\n */\n @ServiceMethod(returns = ReturnType.SINGLE)\n SettingInner get(SettingName settingName);\n\n /**\n * updating settings about different configurations in Microsoft Defender for Cloud.\n *\n * @param settingName The name of the setting.\n * @param setting Setting object.\n * @param context The context to associate with this operation.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return the kind of the security setting along with {@link Response}.\n */\n @ServiceMethod(returns = ReturnType.SINGLE)\n Response<SettingInner> updateWithResponse(SettingName settingName, SettingInner setting, Context context);\n\n /**\n * updating settings about different configurations in Microsoft Defender for Cloud.\n *\n * @param settingName The name of the setting.\n * @param setting Setting object.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return the kind of the security setting.\n */\n @ServiceMethod(returns = ReturnType.SINGLE)\n SettingInner update(SettingName settingName, SettingInner setting);\n}", "title": "" }, { "docid": "56f0e0a5022f7aaf37e530ec71c797dc", "score": "0.5142238", "text": "public static ClientConfigurationService getClientConfigurationService() {\n\t\tif (clientConfigurationService == null)\n\t\t\tclientConfigurationService = new ClientConfigurationService(\n\t\t\t\t\tconfiguration);\n\t\treturn clientConfigurationService;\n\t}", "title": "" }, { "docid": "79b040fb1d9bc3201b817b4cc53cb56f", "score": "0.5131304", "text": "@Override\n public void init(EndpointConfig config)\n {\n\n }", "title": "" }, { "docid": "71225e560b19f188aa71fd31bbd13435", "score": "0.51154596", "text": "interface ReplicationJobsService {\n @Headers({ \"Content-Type: application/json; charset=utf-8\", \"x-ms-logging-context: com.microsoft.azure.management.recoveryservices.siterecovery.v2018_01_10.ReplicationJobs list\" })\n @GET(\"Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationJobs\")\n Observable<Response<ResponseBody>> list(@Path(\"resourceName\") String resourceName, @Path(\"resourceGroupName\") String resourceGroupName, @Path(\"subscriptionId\") String subscriptionId, @Query(\"api-version\") String apiVersion, @Query(\"$filter\") String filter, @Header(\"accept-language\") String acceptLanguage, @Header(\"User-Agent\") String userAgent);\n\n @Headers({ \"Content-Type: application/json; charset=utf-8\", \"x-ms-logging-context: com.microsoft.azure.management.recoveryservices.siterecovery.v2018_01_10.ReplicationJobs get\" })\n @GET(\"Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationJobs/{jobName}\")\n Observable<Response<ResponseBody>> get(@Path(\"resourceName\") String resourceName, @Path(\"resourceGroupName\") String resourceGroupName, @Path(\"subscriptionId\") String subscriptionId, @Path(\"jobName\") String jobName, @Query(\"api-version\") String apiVersion, @Header(\"accept-language\") String acceptLanguage, @Header(\"User-Agent\") String userAgent);\n\n @Headers({ \"Content-Type: application/json; charset=utf-8\", \"x-ms-logging-context: com.microsoft.azure.management.recoveryservices.siterecovery.v2018_01_10.ReplicationJobs cancel\" })\n @POST(\"Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationJobs/{jobName}/cancel\")\n Observable<Response<ResponseBody>> cancel(@Path(\"resourceName\") String resourceName, @Path(\"resourceGroupName\") String resourceGroupName, @Path(\"subscriptionId\") String subscriptionId, @Path(\"jobName\") String jobName, @Query(\"api-version\") String apiVersion, @Header(\"accept-language\") String acceptLanguage, @Header(\"User-Agent\") String userAgent);\n\n @Headers({ \"Content-Type: application/json; charset=utf-8\", \"x-ms-logging-context: com.microsoft.azure.management.recoveryservices.siterecovery.v2018_01_10.ReplicationJobs beginCancel\" })\n @POST(\"Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationJobs/{jobName}/cancel\")\n Observable<Response<ResponseBody>> beginCancel(@Path(\"resourceName\") String resourceName, @Path(\"resourceGroupName\") String resourceGroupName, @Path(\"subscriptionId\") String subscriptionId, @Path(\"jobName\") String jobName, @Query(\"api-version\") String apiVersion, @Header(\"accept-language\") String acceptLanguage, @Header(\"User-Agent\") String userAgent);\n\n @Headers({ \"Content-Type: application/json; charset=utf-8\", \"x-ms-logging-context: com.microsoft.azure.management.recoveryservices.siterecovery.v2018_01_10.ReplicationJobs restart\" })\n @POST(\"Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationJobs/{jobName}/restart\")\n Observable<Response<ResponseBody>> restart(@Path(\"resourceName\") String resourceName, @Path(\"resourceGroupName\") String resourceGroupName, @Path(\"subscriptionId\") String subscriptionId, @Path(\"jobName\") String jobName, @Query(\"api-version\") String apiVersion, @Header(\"accept-language\") String acceptLanguage, @Header(\"User-Agent\") String userAgent);\n\n @Headers({ \"Content-Type: application/json; charset=utf-8\", \"x-ms-logging-context: com.microsoft.azure.management.recoveryservices.siterecovery.v2018_01_10.ReplicationJobs beginRestart\" })\n @POST(\"Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationJobs/{jobName}/restart\")\n Observable<Response<ResponseBody>> beginRestart(@Path(\"resourceName\") String resourceName, @Path(\"resourceGroupName\") String resourceGroupName, @Path(\"subscriptionId\") String subscriptionId, @Path(\"jobName\") String jobName, @Query(\"api-version\") String apiVersion, @Header(\"accept-language\") String acceptLanguage, @Header(\"User-Agent\") String userAgent);\n\n @Headers({ \"Content-Type: application/json; charset=utf-8\", \"x-ms-logging-context: com.microsoft.azure.management.recoveryservices.siterecovery.v2018_01_10.ReplicationJobs resume\" })\n @POST(\"Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationJobs/{jobName}/resume\")\n Observable<Response<ResponseBody>> resume(@Path(\"resourceName\") String resourceName, @Path(\"resourceGroupName\") String resourceGroupName, @Path(\"subscriptionId\") String subscriptionId, @Path(\"jobName\") String jobName, @Query(\"api-version\") String apiVersion, @Header(\"accept-language\") String acceptLanguage, @Body ResumeJobParams resumeJobParams, @Header(\"User-Agent\") String userAgent);\n\n @Headers({ \"Content-Type: application/json; charset=utf-8\", \"x-ms-logging-context: com.microsoft.azure.management.recoveryservices.siterecovery.v2018_01_10.ReplicationJobs beginResume\" })\n @POST(\"Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationJobs/{jobName}/resume\")\n Observable<Response<ResponseBody>> beginResume(@Path(\"resourceName\") String resourceName, @Path(\"resourceGroupName\") String resourceGroupName, @Path(\"subscriptionId\") String subscriptionId, @Path(\"jobName\") String jobName, @Query(\"api-version\") String apiVersion, @Header(\"accept-language\") String acceptLanguage, @Body ResumeJobParams resumeJobParams, @Header(\"User-Agent\") String userAgent);\n\n @Headers({ \"Content-Type: application/json; charset=utf-8\", \"x-ms-logging-context: com.microsoft.azure.management.recoveryservices.siterecovery.v2018_01_10.ReplicationJobs export\" })\n @POST(\"Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationJobs/export\")\n Observable<Response<ResponseBody>> export(@Path(\"resourceName\") String resourceName, @Path(\"resourceGroupName\") String resourceGroupName, @Path(\"subscriptionId\") String subscriptionId, @Query(\"api-version\") String apiVersion, @Body JobQueryParameter jobQueryParameter, @Header(\"accept-language\") String acceptLanguage, @Header(\"User-Agent\") String userAgent);\n\n @Headers({ \"Content-Type: application/json; charset=utf-8\", \"x-ms-logging-context: com.microsoft.azure.management.recoveryservices.siterecovery.v2018_01_10.ReplicationJobs beginExport\" })\n @POST(\"Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationJobs/export\")\n Observable<Response<ResponseBody>> beginExport(@Path(\"resourceName\") String resourceName, @Path(\"resourceGroupName\") String resourceGroupName, @Path(\"subscriptionId\") String subscriptionId, @Query(\"api-version\") String apiVersion, @Body JobQueryParameter jobQueryParameter, @Header(\"accept-language\") String acceptLanguage, @Header(\"User-Agent\") String userAgent);\n\n @Headers({ \"Content-Type: application/json; charset=utf-8\", \"x-ms-logging-context: com.microsoft.azure.management.recoveryservices.siterecovery.v2018_01_10.ReplicationJobs listNext\" })\n @GET\n Observable<Response<ResponseBody>> listNext(@Url String nextUrl, @Header(\"accept-language\") String acceptLanguage, @Header(\"User-Agent\") String userAgent);\n\n }", "title": "" }, { "docid": "c91f8b2ec463d6c3fe46711ac1d0437c", "score": "0.5112397", "text": "private void getConfig(){\n Properties prop = new Properties();\n try {\n String configPath = Thread.currentThread().getContextClassLoader().getResource(\"config.properties\").getPath();\n prop.load(new FileInputStream(configPath));\n } catch (IOException e) {\n System.out.println(\"Could not retrieve config\");\n }\n this.bootstrapServers = prop.getProperty(\"bootstrap_servers\");\n this.schemaRegistryUrl = prop.getProperty(\"schema_registry_url\");\n this.executionCompletionT = prop.getProperty(\"topic_finalization_events\");\n this.executionInfoT = prop.getProperty(\"topic_conditions\");\n }", "title": "" }, { "docid": "c1c1366e64af3abb811790127ec07676", "score": "0.5109107", "text": "public ContainerRegistryManagementClientImpl(String baseUrl) {\n super(baseUrl);\n initialize();\n }", "title": "" }, { "docid": "14a1f6061719e837b042829b219e5566", "score": "0.5108367", "text": "@Singleton\n@Component(modules = {ConstantModule.class, ApplicationModule.class, PreferenceModule.class, RestfulModule.class})\npublic interface ApplicationComponent {\n\n /**\n *\n * In case you want to use Field Injection , you need to add code below\n */\n\n PreferenceHelper preferenceHelper();\n\n String apiUrl();\n\n @ApiKey\n String apiKey();\n\n ArticleApi articleApi();\n\n CompositeDisposable compositeDisposable();\n\n\n}", "title": "" }, { "docid": "cdf23597094a3a12cddc2dfd2631928c", "score": "0.5106933", "text": "public ReceivingServiceConfigBuilder<R> receivingThreadConfig() {\n return rsConfigBuilder;\n }", "title": "" }, { "docid": "d2394c4291a9bf978885cca0fe28b7af", "score": "0.5105985", "text": "public ConfigurationService(ConfigurationSerializer serializer, ResponseDeserializer parser) {\n executor = new ScheduledThreadPoolExecutor(1);\n awaitingResponses = new HashMap<>();\n this.serializer = serializer;\n responseParser = parser;\n responseParser.addObserver(this);\n }", "title": "" }, { "docid": "9dd87e8bdf2d30c640de2f5fe94d209d", "score": "0.5099207", "text": "public interface ClientServices {\n //login client service\n @POST(AppUrl.loginUrl)\n Call<AuthenticationResp> loginUser(@Body AuthenticationBean authenticationBean);\n\n //Dipping\n @POST(AppUrl.dipping)\n Call<DippingResp> dipping(@Body DippingBean dippingBean);\n\n// //Tank List\n// @GET(AppUrl.checkBalanceUrl+\"/{msisdn}\")\n// Call<BalanceRespopnse> getWalletBalance(@Path(\"msisdn\") String msisdn);\n\n //tanking\n @POST(AppUrl.tanking)\n Call<TankingResp> tanking(@Body TankingBean tankingBean);\n\n //Tank List\n @GET(AppUrl.tankList)\n Call<TankList> getTankList();\n//\n// //getPayment mode list\n// @GET(BaseUrl.paymentModes)\n// Call<PaymentModesResponse> getPaymentModes();\n//\n// //initiate wallet recharge\n// @POST(BaseUrl.initiateWalletRecharge)\n// Call<StatusUsage> initWalletRecharge(@Body InitiateWalletRecharge initiateWalletRecharge);\n//\n// //confirm wallet recharge\n// @POST(BaseUrl.confirmWalletRecharge)\n// Call<StatusUsage> confWalletRecharge(@Body ConfirmWalletPayment confirmWalletPayment);\n}", "title": "" }, { "docid": "ae4994cb21c2a9c52c24e42232917b51", "score": "0.50974643", "text": "public ContainerRegistryManagementClientImpl(RestClient restClient) {\n super(restClient);\n initialize();\n }", "title": "" }, { "docid": "b23af47880af15b11a18b59027ec76bc", "score": "0.50900733", "text": "Consumer<RouteTemplateContext> getConfigurer();", "title": "" }, { "docid": "bc114b3d8a9e11f0a3d091d9c4beb63e", "score": "0.5063164", "text": "@Bean\n public HessianProxyFactoryBean iUserWalletService() {\n HessianProxyFactoryBean factory = hessianProxyConfig();\n factory.setServiceUrl(lotto_pay_url + remote_user_wallet_service);\n factory.setServiceInterface(IUserWalletService.class);\n return factory;\n }", "title": "" }, { "docid": "345e8c398872af48df5e32b8ac6b48f2", "score": "0.5056143", "text": "public DeviceInsuranceModeleManager() {\r\n springContext = new ClassPathXmlApplicationContext(\"spring-config.xml\");\r\n }", "title": "" }, { "docid": "c19afb6a8692a930182ba102250e6c18", "score": "0.5051147", "text": "@Singleton\n@Component(modules = NetApisModule.class)\npublic interface AppComponent {\n NetApis getNetApis();\n}", "title": "" }, { "docid": "78f97e35f032d0c473dcf482252629b4", "score": "0.50484586", "text": "@Before\n\tpublic void configure() {\n\t\tSystem.setProperty(ClientConfigurationFactory.class.getName() + \".prefix\", \"rest\");\n\n\t\ttestee = new RestClientFascade();\n\t}", "title": "" }, { "docid": "a3c951abaf83aa28ad52c53126a902a9", "score": "0.50476956", "text": "@Override\n\tprotected void configure() {\n\t\tbind(jdbc).to(DocumentJDBCProvider.class);\n\t\tbind(actionFactory).to(RootActionFactory.class);\n\n\t\t//bind the singleton factories we use in test here\n\t\tbindFactory(new ResourceFactoryWrapper<DocumentHandler>(binder.docs)).to(DocumentHandler.class);\n\t\tbindFactory(new ResourceFactoryWrapper<DocumentMgr>(binder.docMgr)).to(DocumentMgr.class);\n\t\tbindFactory(new ResourceFactoryWrapper<UnityInstance>(binder.unity)).to(UnityInstance.class);\n\t\tbindFactory(new ResourceFactoryWrapper<PlatformMgr>(binder.platformMgr)).to(PlatformMgr.class);\n\t\tbindFactory(new ResourceFactoryWrapper<LocalRestMember>(binder.restMember)).to(LocalRestMember.class);\n\t\tbindFactory(new ResourceFactoryWrapper<LocalRestMember>(binder.restMember)).to(RestMember.class);\n\t\tbindFactory(new ResourceFactoryWrapper<RestCluster>(binder.restCluster)).to(RestCluster.class);\n\t\tbindFactory(new ResourceFactoryWrapper<Platform>(binder.platformMgr.get())).to(Platform.class);\n\t\tbindFactory(new ResourceFactoryWrapper<TenantMgr>(binder.tenantMgr)).to(TenantMgr.class);\n\t\tbindFactory(new ResourceFactoryWrapper<TimeSource>(binder.timeSource)).to(TimeSource.class);\n\t\tbindFactory(new ResourceFactoryWrapper<LocalTaskContainer>(binder.taskContainer)).to(LocalTaskContainer.class);\n\t\tbindFactory(new ResourceFactoryWrapper<TaskService>(binder.taskService)).to(TaskService.class);\n\t\tbindFactory(new ResourceFactoryWrapper<ActionManager>(binder.actionManager)).to(ActionManager.class);\n\t\tbind(UnityIncidentManager.class).to(IncidentManager.class);\n\t\tbind(DgmcDbUserManager.class).to(UserManager.class);\n\t\tbind(binder.actionFactory).to(RootActionFactory.class);\n\n\t}", "title": "" }, { "docid": "d2abe0fa328995cdc303ac51a3187053", "score": "0.5036686", "text": "public ApiFactory() {\n\n this.hostName = BuildConfig.apifactory_hostname;\n String protocol = BuildConfig.apifactory_protocol;\n String port = BuildConfig.apifactory_port;\n\n this.baseRestUrl = protocol + \"://\" + hostName + \":\" + port;\n\n HttpLoggingInterceptor loggingInterceptor = new HttpLoggingInterceptor();\n loggingInterceptor.setLevel(HttpLoggingInterceptor.Level.BODY);\n\n\n\n // create OkHttp client\n okHttpClient = new OkHttpClient.Builder()\n .addInterceptor(loggingInterceptor)\n .build();\n\n\n Gson gson = new GsonBuilder()\n .setLenient()\n .setDateFormat(\"yyyy-MM-dd'T'HH:mm:ss\")\n .create();\n\n retrofit = new Retrofit.Builder()\n .baseUrl(this.baseRestUrl)\n .addConverterFactory(GsonConverterFactory.create(gson))\n .addCallAdapterFactory(new LiveDataCallAdapterFactory())\n .client(okHttpClient)\n .build();\n }", "title": "" } ]
07c7dde16fe8409c4a4bb50fa7a3875a
Overrides the default detachChild method to ensure the scene graph will not be updated after a call to updateGeometricState().
[ { "docid": "be321db92f75af6d1dbc5db5a9be882e", "score": "0.6853584", "text": "@Override\r\n public int detachChild(Spatial child) {\r\n childrenToRemove.add(child);\r\n Logger.outputToGUI(Logger.Type.DEBUG, \"Child \" + child.getName() + \" removed from node \" + this.getName());\r\n return children.size() - childrenToRemove.size();\r\n }", "title": "" } ]
[ { "docid": "0e6760990d0a0e4552c01ebb2599225f", "score": "0.72077894", "text": "@Override\r\n public synchronized void updateGeometricState() {\r\n //Remove all children in the childrenToRemove list\r\n while(!childrenToRemove.isEmpty()) {\r\n Spatial child = childrenToRemove.get(0);\r\n super.detachChild(child);\r\n Logger.outputToGUI(Logger.Type.DEBUG, \"Child \" + child.getName() + \" DETACHED from node \" + this.getName());\r\n childrenToRemove.remove(child);\r\n }\r\n //Add all children in the childrenToAdd list\r\n while(!childrenToAdd.isEmpty()) {\r\n Spatial child = childrenToAdd.get(0);\r\n super.attachChild(child);\r\n Logger.outputToGUI(Logger.Type.DEBUG, \"Child \" + child.getName() + \" ATTACHED to node \" + this.getName());\r\n childrenToAdd.remove(child);\r\n }\r\n \r\n //java.util.ConcurrentModificationException happens with the below code. Which is why we do the goofy iterate above\r\n /*\r\n if(!childrenToRemove.isEmpty()) {\r\n Iterator<Spatial> iter = childrenToRemove.iterator();\r\n while(iter.hasNext()) {\r\n Spatial child = iter.next();\r\n super.detachChild(child);\r\n Logger.outputToGUI(Logger.Type.DEBUG, \"Child \" + child.getName() + \" DETACHED from node \" + this.getName());\r\n }\r\n childrenToRemove.clear();\r\n }\r\n //Add all children in the childrenToAdd list\r\n if(!childrenToAdd.isEmpty()) {\r\n for(Iterator<Spatial> iter = childrenToAdd.iterator(); iter.hasNext();) {\r\n Spatial child = iter.next();\r\n super.attachChild(child);\r\n Logger.outputToGUI(Logger.Type.DEBUG, \"Child \" + child.getName() + \" ATTACHED to node \" + this.getName());\r\n }\r\n childrenToAdd.clear();\r\n }\r\n */\r\n //Update the scene graph\r\n super.updateGeometricState();\r\n }", "title": "" }, { "docid": "35832966849ed04c5b56a0693693443e", "score": "0.66037834", "text": "public final void detachNode() {\n }", "title": "" }, { "docid": "980d647732cf5c5ca8f05b8ad905ba18", "score": "0.63594085", "text": "public final void onDetachedFromWindow() {\n super.onDetachedFromWindow();\n setChildrenDrawingCacheEnabled(false);\n }", "title": "" }, { "docid": "ec070bcaf3e5a33c1d1e63f36cd8078c", "score": "0.62977034", "text": "public void detach() {\n CellMO parent = getParent();\n if (parent==null)\n return;\n \n parent.removeChild(this);\n }", "title": "" }, { "docid": "f58ead925dafdb02a59abb01a4c9a077", "score": "0.6287531", "text": "@Override\n public void detach() {\n }", "title": "" }, { "docid": "17111733d1ac87c59cc6c5e1f986efd1", "score": "0.6272826", "text": "public void detach();", "title": "" }, { "docid": "f8d42ecb36ca6b893f90099b0028fb21", "score": "0.6165826", "text": "public void detach() {\r\n CMLAtomArray atomArray = getAtomArray();\r\n if (this.getParent() != null && atomArray != null) {\r\n atomArray.removeAtom(this);\r\n }\r\n }", "title": "" }, { "docid": "38baed6f2e678ebaf71674cf33135139", "score": "0.61532164", "text": "public void detach() {\n\t}", "title": "" }, { "docid": "3cecf80eb8ef304dcd7e5bd3c772b519", "score": "0.61189747", "text": "public void detachVolRender() {\r\n if ( volRenderBG.isLive() ) {\r\n volRenderOG.removeChild( volRenderOG.indexOfChild( volRenderBG ) );\r\n }\r\n volumeDisplayMode3D = false;\r\n }", "title": "" }, { "docid": "ff70936cd53b94d48fbae5ccb5db65c4", "score": "0.6042462", "text": "void detach() ;", "title": "" }, { "docid": "70f7ca4681695898ed8d8bebdf9c0143", "score": "0.60206187", "text": "public void detach() {\n\r\n\t\t}", "title": "" }, { "docid": "d142dee03a04fc4a05b566e9fbac6d4c", "score": "0.60043263", "text": "public void detach() {\n this.attachedBOC.remove(this);\n this.attachedBOC = null;\n }", "title": "" }, { "docid": "9d571a63ae8077a9b32756d59490ccdd", "score": "0.59613484", "text": "void detachView();", "title": "" }, { "docid": "ed5a17d52332679589e6a24fac0a8cbc", "score": "0.59148246", "text": "@Override\n public void onDetach() {\n super.onDetach();\n }", "title": "" }, { "docid": "efc7aa119775c06610505b655fed0f86", "score": "0.5910674", "text": "@Override\n\tpublic void onDetach() {\n\t\tsuper.onDetach();\n\t}", "title": "" }, { "docid": "efc7aa119775c06610505b655fed0f86", "score": "0.5910674", "text": "@Override\n\tpublic void onDetach() {\n\t\tsuper.onDetach();\n\t}", "title": "" }, { "docid": "0dcc5fce6465ce6d8efa2904190f9030", "score": "0.58622396", "text": "@Override\n public void onDetach()\n {\n super.onDetach();\n }", "title": "" }, { "docid": "3b0902ca4372947636a371cb809c2be6", "score": "0.5824679", "text": "@Generated(hash = 1024800465)\n public synchronized void resetChild() {\n child = null;\n }", "title": "" }, { "docid": "06cb2269ffa6fb98c68837efa0742a2a", "score": "0.58153254", "text": "@Override\n public void onDetach() {\n super.onDetach();\n Map map = getModel().getObject();\n for (Layer layer : map.getLayers()) {\n layer.detach();\n }\n }", "title": "" }, { "docid": "8bf3b9716a09de768e8f41245d2d3a44", "score": "0.5759551", "text": "public void detachFromRoot() {\n Utils.assertTrue(mParent == null && mRoot != null);\n onDetachFromRoot();\n }", "title": "" }, { "docid": "feac8d821af80b8f837731f3d90458a3", "score": "0.5732151", "text": "public void onDetach() {\n\t\t// extension point. No code to execute in the basic class.\n\t}", "title": "" }, { "docid": "a20cb6a525ccaeb16fbb07b3c382692b", "score": "0.57065874", "text": "protected final void refreshChild(GraphicalEditPart child) {\n removeChild(child);\n refreshChildren();\n }", "title": "" }, { "docid": "114f3941601078c8dd965d7f31559844", "score": "0.570305", "text": "public void removeGameObjectToScene(GameObject gameObject)\n\t{\n\t\t_node.detachChildNamed(gameObject.getGeometry().getName());\n\t}", "title": "" }, { "docid": "b021eadc29c98b59b9143821463055be", "score": "0.5684893", "text": "@Override\n\tpublic void onDetach() {\n\t\tsuper.onDetach();\n\t\ttry {\n\t\t\tField childFragmentManager = Fragment.class\n\t\t\t\t\t.getDeclaredField(\"mChildFragmentManager\");\n\t\t\tchildFragmentManager.setAccessible(true);\n\t\t\tchildFragmentManager.set(this, null);\n\n\t\t} catch (NoSuchFieldException e) {\n\t\t\tthrow new RuntimeException(e);\n\t\t} catch (IllegalAccessException e) {\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}", "title": "" }, { "docid": "5433a7edf7c4fe46a172647cfee05a2f", "score": "0.56829506", "text": "@Override\n public abstract void detachDataViewer();", "title": "" }, { "docid": "1c261d98cf7f29d9ff44719cb363d668", "score": "0.56818813", "text": "public void detachProperty() {\n saveText(\"detach\");\n if (lwc != null) {\n if (DEBUG.TEXT||DEBUG.EVENTS) debug(\"detach from \" + lwc);\n //Util.printStackTrace(\"DETACH\");\n lwc.removeLWCListener(this);\n lwc = null;\n }\n setText(\"\");\n //saveText(\"autoDetach\");\n }", "title": "" }, { "docid": "0743e52be35c0ac6dff1fcd5991e4f38", "score": "0.5630801", "text": "@Override\n public void onDetach(){\n super.onDetach();\n }", "title": "" }, { "docid": "a0d66f1a9826c6d7445f12c78f3aa108", "score": "0.5623562", "text": "public void branchSurfaceRemoved() {\r\n if ( parent instanceof ViewJFrameVolumeView ) {\r\n if ( ( (ViewJFrameVolumeView) parent ) != null ) {\r\n ( (ViewJFrameVolumeView) parent ).branchSurfaceRemoved();\r\n }\r\n }\r\n }", "title": "" }, { "docid": "2694efce384afd8a47f04b4076a54de5", "score": "0.56136006", "text": "@Override\n\tpublic void detach()\n\t{\n\t\t// Detach nested object if it's a detachable\n\t\tif (target instanceof IDetachable)\n\t\t{\n\t\t\t((IDetachable)target).detach();\n\t\t}\n\t}", "title": "" }, { "docid": "a704ca8f646a2afb10591c0cf5362837", "score": "0.5607514", "text": "public void removeChild(DisplayContent dc) {\n super.removeChild((RootWindowContainer) dc);\n if (this.mTopFocusedDisplayId == dc.getDisplayId()) {\n this.mWmService.updateFocusedWindowLocked(0, true);\n }\n }", "title": "" }, { "docid": "682dbc4da6c4dfeb62f264ad6728882c", "score": "0.5604522", "text": "@Override\n public void onChildRemoved(DataSnapshot dataSnapshot) {\n }", "title": "" }, { "docid": "682dbc4da6c4dfeb62f264ad6728882c", "score": "0.5604522", "text": "@Override\n public void onChildRemoved(DataSnapshot dataSnapshot) {\n }", "title": "" }, { "docid": "f035b3d70c14c1ba8c4801b4fdee959e", "score": "0.5596291", "text": "@Override\n\tpublic void onDetach() {\n\t\tsuper.onDetach();\n\t\tLog.e(tag, \"onDetach\");\n\t}", "title": "" }, { "docid": "8a0656572e468392aa73255d5eb351dc", "score": "0.55838656", "text": "public void removeNotify() {\n\t\tfor (Iterator<IFigure> i = children.iterator(); i.hasNext();)\n\t\t\ti.next().removeNotify();\n\t\tif (internalGetEventDispatcher() != null)\n\t\t\tinternalGetEventDispatcher().requestRemoveFocus(this);\n\t\tsetFlag(FLAG_REALIZED, false);\n\t}", "title": "" }, { "docid": "bc78bf701b78aa7964320c1ca0f794ba", "score": "0.5575046", "text": "@Override\n public void detach(){\n //fragment is being disassociated from Activity\n super.detach();\n }", "title": "" }, { "docid": "bc78bf701b78aa7964320c1ca0f794ba", "score": "0.5575046", "text": "@Override\n public void detach(){\n //fragment is being disassociated from Activity\n super.detach();\n }", "title": "" }, { "docid": "45587b6e8bb0c30ab92bb4b4dcdd7289", "score": "0.5564499", "text": "private void decoupleVisual() {\n\t\tgetAss().getParent().removeChild(getAss());\n\t\tgetAss().getContainer().switchSelectedTo(null);\n\t}", "title": "" }, { "docid": "c1a7e1199f521742487490a7e6827b0d", "score": "0.5556253", "text": "@Override\n\tpublic void onDetach() {\n\t\tLog.e(TAG, \"onDetach()...........Setting\");\n\t\tsuper.onDetach();\n\t\ttry {\n\t\t\tField childFragmentManager = Fragment.class.getDeclaredField(\"mChildFragmentManager\");\n\t\t\tchildFragmentManager.setAccessible(true);\n\t\t\tchildFragmentManager.set(this, null);\n\n\t\t} catch (NoSuchFieldException e) {\n\t\t\tthrow new RuntimeException(e);\n\t\t} catch (IllegalAccessException e) {\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}", "title": "" }, { "docid": "f85efde90a1d03fbd927ecc958bca84d", "score": "0.55551225", "text": "@Override\n\tpublic void disposeScene() {\n\t\tthis.detachSelf();\n\t\tthis.dispose();\n\t}", "title": "" }, { "docid": "3458eac7298ff0545a9e1be181e3d146", "score": "0.5549252", "text": "public void removeChildNode(){\n\t\tsynchronized(event){\n\t\t\t((EventImpl)this.event).setTimestamp(new Date().getTime());\n\t\t\t((EventImpl)this.event).setEventData(\"child removed from node \" + this.name);\n\t\t\t((EventImpl)this.event).setOriginator(this);\n\t\t\tnotifyObservers();\n\t\t}\n\t}", "title": "" }, { "docid": "428f7728ff06a1c43b9116e65eec481b", "score": "0.5549078", "text": "@Override\n public void onChildRemoved(DataSnapshot dataSnapshot) {\n }", "title": "" }, { "docid": "428f7728ff06a1c43b9116e65eec481b", "score": "0.5549078", "text": "@Override\n public void onChildRemoved(DataSnapshot dataSnapshot) {\n }", "title": "" }, { "docid": "428f7728ff06a1c43b9116e65eec481b", "score": "0.5549078", "text": "@Override\n public void onChildRemoved(DataSnapshot dataSnapshot) {\n }", "title": "" }, { "docid": "428f7728ff06a1c43b9116e65eec481b", "score": "0.5549078", "text": "@Override\n public void onChildRemoved(DataSnapshot dataSnapshot) {\n }", "title": "" }, { "docid": "428f7728ff06a1c43b9116e65eec481b", "score": "0.5549078", "text": "@Override\n public void onChildRemoved(DataSnapshot dataSnapshot) {\n }", "title": "" }, { "docid": "38ae5a8a076e980d37bf8240b3588931", "score": "0.55487084", "text": "@Override\n\tpublic void onDetach() {\n\t\tLog.e(TAG, \"onDetach\");\n\t\tsuper.onDetach();\n\t}", "title": "" }, { "docid": "dbf0df267fc394cd0557ec7b5d32f2f7", "score": "0.55367833", "text": "@Override\r\n\tpublic void onDetach() {\n\t\tsuper.onDetach();\r\n\t\tLog.d(TAG, \"onDetach------\");\r\n\r\n\t}", "title": "" }, { "docid": "dbf0df267fc394cd0557ec7b5d32f2f7", "score": "0.55367833", "text": "@Override\r\n\tpublic void onDetach() {\n\t\tsuper.onDetach();\r\n\t\tLog.d(TAG, \"onDetach------\");\r\n\r\n\t}", "title": "" }, { "docid": "9086332a1d5ee035e361f56232af2f86", "score": "0.5505574", "text": "@Override\n protected void onDisable() {\n node.removeFromParent();\n }", "title": "" }, { "docid": "13d8467932a01464ab5987f6e13ad0eb", "score": "0.5501938", "text": "void detachTarget();", "title": "" }, { "docid": "cdcd7c1439edab2299be49495cbd2a92", "score": "0.5496698", "text": "protected void removeChildVisual(EditPart childEditPart) {\r\n\t\tif (removeFixedChild(childEditPart)) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tsuper.removeChildVisual(childEditPart);\r\n\t}", "title": "" }, { "docid": "7f324d58a76c3f1428ea2a16d3e5c3a2", "score": "0.54945487", "text": "@Override\n\tpublic void onDetach() {\n\t\tsuper.onDetach();\n\n\t\tLog.d(\"listfrag\", \"detach\");\n\t}", "title": "" }, { "docid": "ecfd3208bed69f07e32b011a9b85f130", "score": "0.5483669", "text": "private void detach(){\n riverObs = null;\n }", "title": "" }, { "docid": "054634d81da4adcd8203ed3703071095", "score": "0.54511756", "text": "public AeFastNode detach()\r\n {\r\n if (getParent() != null)\r\n {\r\n getParent().removeChild(this);\r\n }\r\n\r\n return this;\r\n }", "title": "" }, { "docid": "f2583dd904cbd8fbf78cfe169cdc5f58", "score": "0.5445479", "text": "public void removeAll() {\n\t\tLinkedList<IFigure> oldChildren = (LinkedList<IFigure>)children;\n\t\tthis.children = new LinkedList<IFigure>();\n\t\tListIterator<IFigure> i = oldChildren.listIterator(children.size());\n\t\twhile (i.hasPrevious()) {\n\t\t\tIFigure next = i.previous();\n\t\t\tnext.erase();\n\t\t\tnext.setParent(null);\n\t\t\tif (getFlag(FLAG_REALIZED))\n\t\t\t\tnext.removeNotify();\n\t\t\tlayoutManager.remove(next);\n\t\t}\n\t\trevalidate();\n\t}", "title": "" }, { "docid": "b2b189d9c0f133cf60de7228ca1dfb59", "score": "0.54265326", "text": "@Override\n public void onTimePassed(TimerHandler th)\n {\n child.reset();\n Level.current.clearChildScene();\n }", "title": "" }, { "docid": "864f223ddfc67b1e9b0be3beddc3a797", "score": "0.54131174", "text": "public void detachFromParent() {\n if (parent_ != null) {\n if (parent_ instanceof HtmlElement) {\n value_ = ((HtmlElement) parent_).getAttributeValue(name_);\n }\n else {\n value_ = ((XmlElement) parent_).getAttributeValue(name_);\n }\n }\n parent_ = null;\n }", "title": "" }, { "docid": "3f320f28d2d618ec8cd5fcd032f4436e", "score": "0.54082257", "text": "void onDetach();", "title": "" }, { "docid": "fc93296db246cf4fe426bde5a7b6a2af", "score": "0.5400219", "text": "@Override\n\t\t\tpublic void onChildRemoved(DataSnapshot arg0) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "fc93296db246cf4fe426bde5a7b6a2af", "score": "0.5400219", "text": "@Override\n\t\t\tpublic void onChildRemoved(DataSnapshot arg0) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "f55b6cd4904e6fcb2ade882289253aff", "score": "0.53973556", "text": "@Override\r\n\tpublic void disposeScene() {\n\t\t this.detachSelf();\r\n\t\t this.dispose();\r\n\t\t // this.setPosition(pX, pY)\r\n\t}", "title": "" }, { "docid": "a71ee82b4d214966b6b20a45707ffb75", "score": "0.53866994", "text": "public void onUnTransform(SceneGraphContext sc) {\n\t\t// extension point. No code to execute in the basic class.\n\t}", "title": "" }, { "docid": "f50e066bbe250324afa4dd9eeec90e8a", "score": "0.53815085", "text": "@Override\n\t\t\t\t\tpublic void onChildRemoved(DataSnapshot arg0) {\n\n\t\t\t\t\t}", "title": "" }, { "docid": "2611dee7ad000be657e1b49c13424054", "score": "0.5366828", "text": "public void removeAllNodesFromRenderer() {\n add((GL3 gl) -> {\n renderer.removeAll();\n return false;\n });\n }", "title": "" }, { "docid": "10b087af8982c0c0e10ba2e983055e43", "score": "0.53417", "text": "@Override\n public void onDetach()\n {\n Log.d(TAG, \"onDetach\");\n super.onDetach();\n }", "title": "" }, { "docid": "2bb98e10175bea2b349164e539447f4a", "score": "0.53398883", "text": "public void removeMe() {\n prop.parent.prop.children.remove(this);\n MyTree.model.reload(prop.parent);\n }", "title": "" }, { "docid": "de45d5820663b997d8a44013b12380f9", "score": "0.5330502", "text": "@Override\n public void onChildRemoved(DataSnapshot snapshot) {\n // nada\n }", "title": "" }, { "docid": "8389a67cdcc78d62f553899aca06f020", "score": "0.5327531", "text": "public void onDestroy(){\n\t\tactionManager.RemoveSceneNode(this);\n\t}", "title": "" }, { "docid": "418c052f9ce7170c1dd9c86c4ce94ed6", "score": "0.53254044", "text": "public void delete()\n\t{\n\t\tsynchronized (parent)\n\t\t{\n\t\t\tif (overlayActive)\n\t\t\t{\n\t\t\t\tparent.removeView(drag);\n\t\t\t\tparent.removeView(left);\n\t\t\t\tparent.removeView(right);\n\t\t\t\tparent.removeView(top);\n\t\t\t\tparent.removeView(bottom);\n\n\t\t\t\tdrag = null;\n\t\t\t\tleft = null;\n\t\t\t\tright = null;\n\t\t\t\ttop = null;\n\t\t\t\tbottom = null;\n\n\t\t\t\toverlayActive = false;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "482eb1948e1b7eaf7788288cdf583849", "score": "0.5323261", "text": "public void componentDetachedFromContainer(ComponentDetachEvent event);", "title": "" }, { "docid": "f0147c543aa7f75306a1c6ac909933c0", "score": "0.5319611", "text": "public <E extends DimensionalObject> void remove(E child);", "title": "" }, { "docid": "5d9bf773783407de8cd5feb7cb5b0c6b", "score": "0.5313389", "text": "public void onDetachedFromWindow() {\n super.onDetachedFromWindow();\n this.flag |= 8;\n this.handler.removeCallbacks((Runnable) null);\n clearAnimatorsRecord();\n }", "title": "" }, { "docid": "9ce3ab048f463c85b8c766b6e0acfe58", "score": "0.5311983", "text": "public void levelDestroy() {\n sceneSnapshots.clear();\n sceneSnapshots = null;\n currentScene.sceneDestroy();\n currentScene = null;\n }", "title": "" }, { "docid": "b78cc025827055ac64a317f7e8701b09", "score": "0.53069437", "text": "@Override\n\tpublic void deactivate(){\n\t\tthis.anchorNodeCreationStateController.removeViewBehaviourStateHandlerChangeListener(this.viewBehaviourAnchorNodeCreationStateHandlerChangeListener);\n\t\tthis.shapeCreationStateController.removeViewBehaviourStateHandlerChangeListener(this.viewBehaviourShapeCreationStateHandlerChangeListener);\n\t\tthis.linkCreationStateController.removeViewBehaviourStateHandlerChangeListener(this.viewBehaviourLinkCreationStateHandlerChangeListener);\n\t\tthis.selectionStateController.removeViewBehaviourStateHandlerChangeListener(this.viewBehaviourSelectionStateHandlerChangeListener);\n\t\tthis.currentStateController.deactivate(shapePane);\n this.activated = false;\n\t}", "title": "" }, { "docid": "06248d8ae012fe68826a7aea4c7b7df8", "score": "0.5302534", "text": "@Override\n public void detachView() {\n super.detachView();\n if (disPlayServerMode != null) {\n disPlayServerMode.onDestroy();\n\n }\n\n }", "title": "" }, { "docid": "51b80fa6554c2130b222d1bb094c53b0", "score": "0.53002435", "text": "public synchronized void detach() {\n this.poolEntry = null;\n super.detach();\n }", "title": "" }, { "docid": "4831f648cd63ed1236a16ec1f065477f", "score": "0.5292665", "text": "@Override\n public void unInvoke() {\n if (!(affected instanceof MOB))\n return;\n final MOB mob = (MOB) affected;\n\n super.unInvoke();\n if (canBeUninvoked()) {\n if (tree != null)\n tree.destroy();\n if ((mob.location() != null) && (!mob.amDead()))\n mob.location().show(mob, null, CMMsg.MSG_OK_VISUAL, L(\"<S-NAME> <S-IS-ARE> no longer a tree.\"));\n mob.curState().setHitPoints(1);\n mob.curState().setMana(0);\n mob.curState().setMovement(0);\n mob.curState().setHunger(0);\n mob.curState().setThirst(0);\n CMLib.commands().postStand(mob, true);\n }\n }", "title": "" }, { "docid": "af713e898f19f4b4862fcb0e2fad7f3c", "score": "0.529237", "text": "@Override\n public void onDetach() {\n super.onDetach();\n mListener = null;\n }", "title": "" }, { "docid": "af713e898f19f4b4862fcb0e2fad7f3c", "score": "0.529237", "text": "@Override\n public void onDetach() {\n super.onDetach();\n mListener = null;\n }", "title": "" }, { "docid": "af713e898f19f4b4862fcb0e2fad7f3c", "score": "0.529237", "text": "@Override\n public void onDetach() {\n super.onDetach();\n mListener = null;\n }", "title": "" }, { "docid": "af713e898f19f4b4862fcb0e2fad7f3c", "score": "0.529237", "text": "@Override\n public void onDetach() {\n super.onDetach();\n mListener = null;\n }", "title": "" }, { "docid": "af713e898f19f4b4862fcb0e2fad7f3c", "score": "0.529237", "text": "@Override\n public void onDetach() {\n super.onDetach();\n mListener = null;\n }", "title": "" }, { "docid": "af713e898f19f4b4862fcb0e2fad7f3c", "score": "0.529237", "text": "@Override\n public void onDetach() {\n super.onDetach();\n mListener = null;\n }", "title": "" }, { "docid": "af713e898f19f4b4862fcb0e2fad7f3c", "score": "0.529237", "text": "@Override\n public void onDetach() {\n super.onDetach();\n mListener = null;\n }", "title": "" }, { "docid": "af713e898f19f4b4862fcb0e2fad7f3c", "score": "0.529237", "text": "@Override\n public void onDetach() {\n super.onDetach();\n mListener = null;\n }", "title": "" }, { "docid": "af713e898f19f4b4862fcb0e2fad7f3c", "score": "0.529237", "text": "@Override\n public void onDetach() {\n super.onDetach();\n mListener = null;\n }", "title": "" }, { "docid": "af713e898f19f4b4862fcb0e2fad7f3c", "score": "0.529237", "text": "@Override\n public void onDetach() {\n super.onDetach();\n mListener = null;\n }", "title": "" }, { "docid": "1588dde71981fa6d8b74b74eaa368dbe", "score": "0.52864623", "text": "public boolean removeChild(CellMO child) {\n ManagedReference childRef = AppContext.getDataManager().createReference(child);\n \n if (childCellRefs.remove(childRef)) {\n try {\n child.setParent(null);\n if (live) {\n child.setLive(false);\n }\n \n // notify listeners\n fireChildChangedEvent(child, false);\n \n return true;\n } catch (MultipleParentException ex) {\n // This should never happen\n Logger.getLogger(CellMO.class.getName()).log(Level.SEVERE, null, ex);\n }\n } \n \n // Not a child of this cell\n return false;\n }", "title": "" }, { "docid": "bd8a367c227d9e6a2a8bd2c6918950af", "score": "0.527573", "text": "@Override\n\tpublic void drawGeometryHidden(Renderer renderer) {\n\n\t}", "title": "" }, { "docid": "29358ebbd1753a64ec5bda9110002819", "score": "0.527546", "text": "@Override\n public void onChildRemoved(com.google.firebase.database.DataSnapshot dataSnapshot) {\n }", "title": "" }, { "docid": "d6928fe3241705dba86c8f12d7ba0ac0", "score": "0.52575344", "text": "@Override\n\tpublic void despawn() {\n\t\t\n\t}", "title": "" }, { "docid": "033503cb751d9c968c6426ede387024c", "score": "0.522807", "text": "@Override\n protected void onDetach()\n {\n if(null != _placeholderValue) _placeholderValue.detach();\n super.onDetach();\n }", "title": "" }, { "docid": "3c731d4d2e7af870172e6859d0c7c649", "score": "0.52252", "text": "public void detach()\n throws DOMException;", "title": "" }, { "docid": "565522d43944a7325171989f5c3ccaaa", "score": "0.5222889", "text": "public void clearChildComponents() {\n container.clearChildComponents();\n }", "title": "" }, { "docid": "99a5b36e650de40fc5d729ac9cb80ad2", "score": "0.5213606", "text": "public void merge() {\n\t\tchildren.clear();\n\t}", "title": "" }, { "docid": "9bb96f3a9f833af88202865091d97630", "score": "0.52042353", "text": "public void removeFigura(){\r\n this.getChildren().remove(figura);\r\n figura=null;\r\n }", "title": "" }, { "docid": "2aaf56125d035fafc767e2d64bb0fdb3", "score": "0.52000844", "text": "@Override\n protected void onDetachedFromWindow() {\n recycleImage();\n recycleFeatureIcon();\n startFeatureAnimation(FEATURE_ANIMATION_NULL);\n super.onDetachedFromWindow();\n }", "title": "" }, { "docid": "c1c56e641a279e3ee1eb1f9482d17f80", "score": "0.51857567", "text": "public void onDetachedFromWindow() {\n super.onDetachedFromWindow();\n if (this.drawLinkImageView) {\n this.linkImageView.onDetachedFromWindow();\n }\n }", "title": "" }, { "docid": "6f5bc052249f83f2afa6014058b6239c", "score": "0.5180941", "text": "public void onDetachedFromWindow() {\n super.onDetachedFromWindow();\n getViewTreeObserver().removeOnGlobalFocusChangeListener(this.onGlobalFocusChangeListener);\n }", "title": "" }, { "docid": "cf734a8fde661a8479bb4f7aa592a582", "score": "0.51787335", "text": "@FxThread\n protected void processRemove() {\n setTexture(null);\n }", "title": "" } ]
b7e76674ead976982350560b4092b4a5
Create an updated entity for this test. This is a static method, as tests for other entities might also need it, if they test an entity which requires the current entity.
[ { "docid": "edca896980e31afd5468f6b96c796cf8", "score": "0.0", "text": "public static EnumEmpLaborType createUpdatedEntity(EntityManager em) {\n EnumEmpLaborType enumEmpLaborType = new EnumEmpLaborType()\n .valuez(UPDATED_VALUEZ)\n .orderz(UPDATED_ORDERZ)\n .tenentCode(UPDATED_TENENT_CODE);\n return enumEmpLaborType;\n }", "title": "" } ]
[ { "docid": "1c8fbf832f01d95775e46a8bd1d3f50f", "score": "0.7080769", "text": "protected T createSimulatedExistingEntity(){\r\n\t\tfinal T entity = createNewEntity();\r\n\t\tentity.setId( IDUtils.randomPositiveLong() );\r\n\t\treturn entity;\r\n\t}", "title": "" }, { "docid": "8c1904f2d5c96bdd97646ae9ef5cfa41", "score": "0.70796597", "text": "public static Etest createUpdatedEntity(EntityManager em) {\n Etest etest = new Etest()\n .testname(UPDATED_TESTNAME)\n .testnum(UPDATED_TESTNUM)\n .testaddress(UPDATED_TESTADDRESS)\n .testphone(UPDATED_TESTPHONE);\n return etest;\n }", "title": "" }, { "docid": "3babd728d47dd0e54fb9c1ea726bb433", "score": "0.69077885", "text": "public static VehicleTracking createUpdatedEntity(EntityManager em) {\n VehicleTracking vehicleTracking = new VehicleTracking()\n .createdAt(UPDATED_CREATED_AT)\n .lon(UPDATED_LON)\n .lat(UPDATED_LAT);\n // Add required entity\n Vehicle vehicle;\n if (TestUtil.findAll(em, Vehicle.class).isEmpty()) {\n vehicle = VehicleResourceIT.createUpdatedEntity(em);\n em.persist(vehicle);\n em.flush();\n } else {\n vehicle = TestUtil.findAll(em, Vehicle.class).get(0);\n }\n vehicleTracking.setVehicle(vehicle);\n // Add required entity\n Company company;\n if (TestUtil.findAll(em, Company.class).isEmpty()) {\n company = CompanyResourceIT.createUpdatedEntity(em);\n em.persist(company);\n em.flush();\n } else {\n company = TestUtil.findAll(em, Company.class).get(0);\n }\n vehicleTracking.setCompany(company);\n return vehicleTracking;\n }", "title": "" }, { "docid": "b11654bbe30237e5bc4358f930c9b4b6", "score": "0.6833386", "text": "@Test\r\n public void testUpdate() {\r\n tx.begin();\r\n \r\n TestEntity testEntity = generateTestEntity(\"hello\", 300, new Date()); \r\n TestEntity testEntityCreated = toTest.create(testEntity);\r\n \r\n testEntityCreated.setString(\"world\");\r\n testEntityCreated = toTest.update(testEntityCreated);\r\n testEntity = toTest.find(TestEntity.class, testEntityCreated.getId());\r\n\r\n Assert.assertNotNull(testEntity);\r\n Assert.assertNotNull(testEntityCreated);\r\n Assert.assertEquals(testEntity.getId(), testEntityCreated.getId());\r\n Assert.assertEquals(\"world\", testEntity.getString());\r\n Assert.assertEquals(testEntity.getInteger(), testEntityCreated.getInteger());\r\n Assert.assertEquals(testEntity.getDate(), testEntityCreated.getDate());\r\n \r\n tx.rollback();\r\n }", "title": "" }, { "docid": "4e942317d54c7dd26f6d6c1fb882b72b", "score": "0.6794649", "text": "public static Lotes createUpdatedEntity(EntityManager em) {\n Lotes lotes = new Lotes()\n .numero(UPDATED_NUMERO)\n .nombre(UPDATED_NOMBRE)\n .decripcion(UPDATED_DECRIPCION)\n .raza(UPDATED_RAZA)\n .cantidadAnimales(UPDATED_CANTIDAD_ANIMALES)\n .pesopromedio(UPDATED_PESOPROMEDIO)\n .pesototallote(UPDATED_PESOTOTALLOTE)\n .pesobaseporkg(UPDATED_PESOBASEPORKG)\n .imagenUrl(UPDATED_IMAGEN_URL)\n .imagenUrlContentType(UPDATED_IMAGEN_URL_CONTENT_TYPE)\n .videoUrl(UPDATED_VIDEO_URL)\n .idciudad(UPDATED_IDCIUDAD);\n // Add required entity\n Propietario propietario;\n if (TestUtil.findAll(em, Propietario.class).isEmpty()) {\n propietario = PropietarioResourceIT.createUpdatedEntity(em);\n em.persist(propietario);\n em.flush();\n } else {\n propietario = TestUtil.findAll(em, Propietario.class).get(0);\n }\n lotes.setPropietario(propietario);\n // Add required entity\n ClasificacionLote clasificacionLote;\n if (TestUtil.findAll(em, ClasificacionLote.class).isEmpty()) {\n clasificacionLote = ClasificacionLoteResourceIT.createUpdatedEntity(em);\n em.persist(clasificacionLote);\n em.flush();\n } else {\n clasificacionLote = TestUtil.findAll(em, ClasificacionLote.class).get(0);\n }\n lotes.setClasificacionlote(clasificacionLote);\n // Add required entity\n Subastas subastas;\n if (TestUtil.findAll(em, Subastas.class).isEmpty()) {\n subastas = SubastasResourceIT.createUpdatedEntity(em); \n em.persist(subastas);\n em.flush();\n } else {\n subastas = TestUtil.findAll(em, Subastas.class).get(0);\n }\n lotes.setSubastas(subastas);\n return lotes;\n }", "title": "" }, { "docid": "45d5d4c029424e553262b761b804bef5", "score": "0.6784306", "text": "public static Cita createUpdatedEntity(EntityManager em) {\n Cita cita = new Cita()\n .fecha(UPDATED_FECHA)\n .comentario(UPDATED_COMENTARIO)\n .estado(UPDATED_ESTADO);\n // Add required entity\n Agente agente;\n if (TestUtil.findAll(em, Agente.class).isEmpty()) {\n agente = AgenteResourceIT.createUpdatedEntity(em);\n em.persist(agente);\n em.flush();\n } else {\n agente = TestUtil.findAll(em, Agente.class).get(0);\n }\n cita.setAgente(agente);\n return cita;\n }", "title": "" }, { "docid": "e540839c51ba5e6603605333184e347a", "score": "0.66920644", "text": "Entity createEntity();", "title": "" }, { "docid": "e540839c51ba5e6603605333184e347a", "score": "0.66920644", "text": "Entity createEntity();", "title": "" }, { "docid": "e540839c51ba5e6603605333184e347a", "score": "0.66920644", "text": "Entity createEntity();", "title": "" }, { "docid": "c4907d651477d67903de81cb565359c4", "score": "0.65970063", "text": "public static Transaction createUpdatedEntity(EntityManager em) {\n Transaction transaction = new Transaction()\n .date(UPDATED_DATE)\n .amount(UPDATED_AMOUNT)\n .label(UPDATED_LABEL)\n .identifier(UPDATED_IDENTIFIER);\n // Add required entity\n BankAccount bankAccount;\n if (TestUtil.findAll(em, BankAccount.class).isEmpty()) {\n bankAccount = BankAccountResourceIT.createUpdatedEntity(em);\n em.persist(bankAccount);\n em.flush();\n } else {\n bankAccount = TestUtil.findAll(em, BankAccount.class).get(0);\n }\n transaction.setBankAccount(bankAccount);\n return transaction;\n }", "title": "" }, { "docid": "5b7b171e36b80576b14ddb3d31583c82", "score": "0.65838355", "text": "protected ICoreTridas getCreateOrUpdateEntity() {\n\t\treturn createOrUpdateEntity;\n\t}", "title": "" }, { "docid": "9723787061f8d9bf58cd5403d33b74cf", "score": "0.6562282", "text": "public static TaskFindData createUpdatedEntity(EntityManager em) {\n TaskFindData taskFindData = new TaskFindData()\n .content(UPDATED_CONTENT);\n // Add required entity\n Task task;\n if (TestUtil.findAll(em, Task.class).isEmpty()) {\n task = TaskResourceIT.createUpdatedEntity(em);\n em.persist(task);\n em.flush();\n } else {\n task = TestUtil.findAll(em, Task.class).get(0);\n }\n taskFindData.setTask(task);\n return taskFindData;\n }", "title": "" }, { "docid": "0f13b78eccd67c4a3b939e745ae55f05", "score": "0.65555245", "text": "public static TrainingRecord createUpdatedEntity(EntityManager em) {\n TrainingRecord trainingRecord = new TrainingRecord()\n .status(UPDATED_STATUS)\n .progress(UPDATED_PROGRESS)\n .commissionAmount(UPDATED_COMMISSION_AMOUNT)\n .avgRating(UPDATED_AVG_RATING)\n .amountReceived(UPDATED_AMOUNT_RECEIVED)\n .userName(UPDATED_USER_NAME)\n .fees(UPDATED_FEES)\n .remarks(UPDATED_REMARKS);\n return trainingRecord;\n }", "title": "" }, { "docid": "d2ef914f5043ddb27f9bb7649a8c4188", "score": "0.65483624", "text": "public static BusinessUnit createUpdatedEntity(EntityManager em) {\n BusinessUnit businessUnit = new BusinessUnit()\n .name(UPDATED_NAME)\n .detail(UPDATED_DETAIL)\n .creationDate(UPDATED_CREATION_DATE)\n .lastUpdated(UPDATED_LAST_UPDATED);\n return businessUnit;\n }", "title": "" }, { "docid": "87a9acb3d3d362a0ff200b46c5a26146", "score": "0.654557", "text": "public static Qualification createUpdatedEntity(EntityManager em) {\n Qualification qualification = new Qualification()\n .name(UPDATED_NAME)\n .hyperLink(UPDATED_HYPER_LINK);\n // Add required entity\n Subject subject;\n if (TestUtil.findAll(em, Subject.class).isEmpty()) {\n subject = SubjectResourceIT.createUpdatedEntity(em);\n em.persist(subject);\n em.flush();\n } else {\n subject = TestUtil.findAll(em, Subject.class).get(0);\n }\n qualification.setSubject(subject);\n return qualification;\n }", "title": "" }, { "docid": "a3e180a5f6cdde2ccbea8312e4f2352d", "score": "0.65281415", "text": "public IEntity createNewEntity() throws EsfingeAOMException;", "title": "" }, { "docid": "f2e761e4798c16b1e8524c9742109169", "score": "0.6512571", "text": "public static Student createUpdatedEntity(EntityManager em) {\n Student student = new Student()\n .tcId(UPDATED_TC_ID)\n .firstName(UPDATED_FIRST_NAME)\n .lastName(UPDATED_LAST_NAME)\n .birthDate(UPDATED_BIRTH_DATE)\n .address(UPDATED_ADDRESS)\n .lon(UPDATED_LON)\n .lat(UPDATED_LAT)\n .phone(UPDATED_PHONE)\n .photo(UPDATED_PHOTO)\n .photoContentType(UPDATED_PHOTO_CONTENT_TYPE)\n .sex(UPDATED_SEX);\n return student;\n }", "title": "" }, { "docid": "6487462363da4fe8a4b0083449101681", "score": "0.6490657", "text": "public static StockArticulo createUpdatedEntity(EntityManager em) {\n StockArticulo stockArticulo = new StockArticulo()\n .cantidad(UPDATED_CANTIDAD);\n // Add required entity\n MedidaArticulo medidaArticulo;\n if (TestUtil.findAll(em, MedidaArticulo.class).isEmpty()) {\n medidaArticulo = MedidaArticuloResourceIT.createUpdatedEntity(em);\n em.persist(medidaArticulo);\n em.flush();\n } else {\n medidaArticulo = TestUtil.findAll(em, MedidaArticulo.class).get(0);\n }\n stockArticulo.setMedida(medidaArticulo);\n // Add required entity\n Sucursal sucursal;\n if (TestUtil.findAll(em, Sucursal.class).isEmpty()) {\n sucursal = SucursalResourceIT.createUpdatedEntity(em);\n em.persist(sucursal);\n em.flush();\n } else {\n sucursal = TestUtil.findAll(em, Sucursal.class).get(0);\n }\n stockArticulo.setSucursal(sucursal);\n return stockArticulo;\n }", "title": "" }, { "docid": "beb09a7d3c3180c8799cdb17390f5a14", "score": "0.64834535", "text": "public static TempsTravail createUpdatedEntity(EntityManager em) {\n TempsTravail tempsTravail = new TempsTravail()\n .startDate(UPDATED_START_DATE)\n .endDate(UPDATED_END_DATE);\n return tempsTravail;\n }", "title": "" }, { "docid": "f087ed3617d5a436fcdf31c580c8b7da", "score": "0.64820105", "text": "public static Basket createUpdatedEntity(EntityManager em) {\n Basket basket = new Basket()\n .totalPrice(UPDATED_TOTAL_PRICE)\n .creationDate(UPDATED_CREATION_DATE);\n return basket;\n }", "title": "" }, { "docid": "2e55c0604ba267f36050352d7d72a467", "score": "0.6428941", "text": "public static EstadoArticulo createUpdatedEntity(EntityManager em) {\n EstadoArticulo estadoArticulo = new EstadoArticulo()\n .nombreEstado(UPDATED_NOMBRE_ESTADO);\n return estadoArticulo;\n }", "title": "" }, { "docid": "90b44720c052abb52d86c2dc7181a5e5", "score": "0.6372344", "text": "public static Compte createUpdatedEntity(EntityManager em) {\n Compte compte = new Compte().name(UPDATED_NAME).surname(UPDATED_SURNAME).age(UPDATED_AGE).adress(UPDATED_ADRESS);\n return compte;\n }", "title": "" }, { "docid": "2c962af3c3aadaed89cca36d582e22ab", "score": "0.63480306", "text": "public static Beneficiary createUpdatedEntity(EntityManager em) {\n Beneficiary beneficiary = new Beneficiary()\n .phoneNumber(UPDATED_PHONE_NUMBER);\n return beneficiary;\n }", "title": "" }, { "docid": "49cc80825d5e4c4d1a94ef099ee4bcee", "score": "0.633808", "text": "public static Invoice createUpdatedEntity(EntityManager em) {\n Invoice invoice = new Invoice()\n .invoiceId(UPDATED_INVOICE_ID)\n .contactId(UPDATED_CONTACT_ID)\n .companyId(UPDATED_COMPANY_ID)\n .invoiceNumber(UPDATED_INVOICE_NUMBER)\n .orderNumber(UPDATED_ORDER_NUMBER)\n .orderDateTime(UPDATED_ORDER_DATE_TIME)\n .createdAt(UPDATED_CREATED_AT)\n .modifiedAt(UPDATED_MODIFIED_AT);\n return invoice;\n }", "title": "" }, { "docid": "ac505b1190ab24cc81d744f746937811", "score": "0.6330823", "text": "public static NetworkMember createUpdatedEntity(EntityManager em) {\n NetworkMember networkMember = new NetworkMember();\n // Add required entity\n Network network;\n if (TestUtil.findAll(em, Network.class).isEmpty()) {\n network = NetworkResourceIT.createUpdatedEntity(em);\n em.persist(network);\n em.flush();\n } else {\n network = TestUtil.findAll(em, Network.class).get(0);\n }\n networkMember.setNetwork(network);\n // Add required entity\n Profile profile;\n if (TestUtil.findAll(em, Profile.class).isEmpty()) {\n profile = ProfileResourceIT.createUpdatedEntity(em);\n em.persist(profile);\n em.flush();\n } else {\n profile = TestUtil.findAll(em, Profile.class).get(0);\n }\n networkMember.setProfile(profile);\n return networkMember;\n }", "title": "" }, { "docid": "de7769dd0b77f6792b3fb8c9c8b4e253", "score": "0.63303965", "text": "public static Bookingdetails createUpdatedEntity(EntityManager em) {\n Bookingdetails bookingdetails = new Bookingdetails()\n .subtotal(UPDATED_SUBTOTAL)\n .total(UPDATED_TOTAL)\n .tax(UPDATED_TAX)\n .shipping(UPDATED_SHIPPING)\n .shippingstate(UPDATED_SHIPPINGSTATE)\n .about(UPDATED_ABOUT)\n .couponconde(UPDATED_COUPONCONDE)\n .qrcode(UPDATED_QRCODE)\n .code(UPDATED_CODE)\n .url(UPDATED_URL)\n .token(UPDATED_TOKEN)\n .paymentmode(UPDATED_PAYMENTMODE)\n .startdate(UPDATED_STARTDATE)\n .enddate(UPDATED_ENDDATE)\n .enventstate(UPDATED_ENVENTSTATE)\n .places(UPDATED_PLACES);\n return bookingdetails;\n }", "title": "" }, { "docid": "09658d941203895632b4019f57977222", "score": "0.6314895", "text": "public static DataGenerator createUpdatedEntity(EntityManager em) {\n DataGenerator dataGenerator = new DataGenerator()\n .provider(UPDATED_PROVIDER)\n .praxis(UPDATED_PRAXIS)\n .patient(UPDATED_PATIENT)\n .medicalCase(UPDATED_MEDICAL_CASE);\n return dataGenerator;\n }", "title": "" }, { "docid": "b81a4beaddabc2f02611d44cc40c187a", "score": "0.6284248", "text": "public static Article createUpdatedEntity(EntityManager em) {\n Article article = new Article()\n .description(UPDATED_DESCRIPTION)\n .producer(UPDATED_PRODUCER)\n .amount(UPDATED_AMOUNT)\n .category(UPDATED_CATEGORY)\n .price(UPDATED_PRICE)\n .picture(UPDATED_PICTURE)\n .pictureContentType(UPDATED_PICTURE_CONTENT_TYPE);\n return article;\n }", "title": "" }, { "docid": "565d27dc2fa8e784059467f7eb24e202", "score": "0.6267848", "text": "public static Relator createUpdatedEntity(EntityManager em) {\n Relator relator = new Relator().nome(UPDATED_NOME);\n return relator;\n }", "title": "" }, { "docid": "f2ce3cf07a83874c7d8f770a7b2cc62d", "score": "0.62530184", "text": "protected abstract T doCreateEntity();", "title": "" }, { "docid": "8d9258826ae1afc28932b7f590626c91", "score": "0.62497795", "text": "public static Insurance createUpdatedEntity(EntityManager em) {\n Insurance insurance = new Insurance()\n .name(UPDATED_NAME)\n .description(UPDATED_DESCRIPTION)\n .coveragePercentage(UPDATED_COVERAGE_PERCENTAGE)\n .startDate(UPDATED_START_DATE)\n .coveragePeriod(UPDATED_COVERAGE_PERIOD)\n .price(UPDATED_PRICE)\n .insuranceType(UPDATED_INSURANCE_TYPE)\n .riskType(UPDATED_RISK_TYPE);\n return insurance;\n }", "title": "" }, { "docid": "62068826dbfcb8cfc107a4f191e9d77a", "score": "0.624551", "text": "public static Competenza createUpdatedEntity(EntityManager em) {\n Competenza competenza = new Competenza()\n .anni(UPDATED_ANNI);\n // Add required entity\n AnagraficaCandidato anagraficaCandidato;\n if (TestUtil.findAll(em, AnagraficaCandidato.class).isEmpty()) {\n anagraficaCandidato = AnagraficaCandidatoResourceIT.createUpdatedEntity(em);\n em.persist(anagraficaCandidato);\n em.flush();\n } else {\n anagraficaCandidato = TestUtil.findAll(em, AnagraficaCandidato.class).get(0);\n }\n competenza.setAnagrafica(anagraficaCandidato);\n // Add required entity\n AmbitoCompetenza ambitoCompetenza;\n if (TestUtil.findAll(em, AmbitoCompetenza.class).isEmpty()) {\n ambitoCompetenza = AmbitoCompetenzaResourceIT.createUpdatedEntity(em);\n em.persist(ambitoCompetenza);\n em.flush();\n } else {\n ambitoCompetenza = TestUtil.findAll(em, AmbitoCompetenza.class).get(0);\n }\n competenza.setAmbitoComp(ambitoCompetenza);\n return competenza;\n }", "title": "" }, { "docid": "f39e53edb098e41ae7935710ba59623c", "score": "0.6240183", "text": "public static Relacion createUpdatedEntity(EntityManager em) {\n Relacion relacion = new Relacion()\n .relacion(UPDATED_RELACION);\n return relacion;\n }", "title": "" }, { "docid": "68d761992e1213703d56dccfae82e9a8", "score": "0.6238913", "text": "public static Client createUpdatedEntity(EntityManager em) {\n Client client = new Client()\n .street(UPDATED_STREET)\n .postCode(UPDATED_POST_CODE)\n .city(UPDATED_CITY)\n .country(UPDATED_COUNTRY)\n .birthdate(UPDATED_BIRTHDATE);\n // Add required entity\n User user = UserResourceIT.createEntity(em);\n em.persist(user);\n em.flush();\n client.setUser(user);\n return client;\n }", "title": "" }, { "docid": "6b7b42f89e4009b4e0b6b5228934374b", "score": "0.62308437", "text": "public static FwEmpn createUpdatedEntity(EntityManager em) {\n FwEmpn fwEmpn = new FwEmpn().empnid(UPDATED_EMPNID).empn(UPDATED_EMPN).deptid(UPDATED_DEPTID).phone(UPDATED_PHONE);\n return fwEmpn;\n }", "title": "" }, { "docid": "a53a10a37f21cc05efc38713de1dff37", "score": "0.6219471", "text": "public static Survey createUpdatedEntity() {\n Survey survey = new Survey()\n .name(UPDATED_NAME)\n .description(UPDATED_DESCRIPTION)\n .openTime(UPDATED_OPEN_TIME)\n .closeTime(UPDATED_CLOSE_TIME);\n return survey;\n }", "title": "" }, { "docid": "2f9d75fb21a0ee2bf536432659235e75", "score": "0.62111354", "text": "public static Store createUpdatedEntity(EntityManager em) {\n Store store = new Store()\n .name(UPDATED_NAME)\n .address(UPDATED_ADDRESS)\n .timestamp(UPDATED_TIMESTAMP);\n return store;\n }", "title": "" }, { "docid": "7c344833a02077b1bc8502bf0cd07326", "score": "0.6174286", "text": "public static Association createUpdatedEntity(EntityManager em) {\n Association association = new Association()\n .numberAssociation(UPDATED_NUMBER_ASSOCIATION)\n .nameAssociation(UPDATED_NAME_ASSOCIATION)\n .imageAssociation(UPDATED_IMAGE_ASSOCIATION)\n .imageAssociationContentType(UPDATED_IMAGE_ASSOCIATION_CONTENT_TYPE)\n .descAssociation(UPDATED_DESC_ASSOCIATION);\n // Add required entity\n Member member;\n if (TestUtil.findAll(em, Member.class).isEmpty()) {\n member = MemberResourceIT.createUpdatedEntity(em);\n em.persist(member);\n em.flush();\n } else {\n member = TestUtil.findAll(em, Member.class).get(0);\n }\n association.getMembers().add(member);\n return association;\n }", "title": "" }, { "docid": "c0eade020e071a86a7a795ae809be2cc", "score": "0.6167737", "text": "public static EstadoPersona createUpdatedEntity(EntityManager em) {\n EstadoPersona estadoPersona = new EstadoPersona()\n .nombreEstado(UPDATED_NOMBRE_ESTADO);\n return estadoPersona;\n }", "title": "" }, { "docid": "da5b168b693a9861605afb4cc3c545fd", "score": "0.616383", "text": "public static BillLineItemToOrderItem createUpdatedEntity(EntityManager em) {\n BillLineItemToOrderItem billLineItemToOrderItem = new BillLineItemToOrderItem().details(UPDATED_DETAILS);\n // Add required entity\n OrderItem orderItem;\n if (TestUtil.findAll(em, OrderItem.class).isEmpty()) {\n orderItem = OrderItemResourceIT.createUpdatedEntity(em);\n em.persist(orderItem);\n em.flush();\n } else {\n orderItem = TestUtil.findAll(em, OrderItem.class).get(0);\n }\n billLineItemToOrderItem.setOrderItem(orderItem);\n // Add required entity\n RentalOrder rentalOrder;\n if (TestUtil.findAll(em, RentalOrder.class).isEmpty()) {\n rentalOrder = RentalOrderResourceIT.createUpdatedEntity(em);\n em.persist(rentalOrder);\n em.flush();\n } else {\n rentalOrder = TestUtil.findAll(em, RentalOrder.class).get(0);\n }\n billLineItemToOrderItem.setRentalOrder(rentalOrder);\n // Add required entity\n BillLineItem billLineItem;\n if (TestUtil.findAll(em, BillLineItem.class).isEmpty()) {\n billLineItem = BillLineItemResourceIT.createUpdatedEntity(em);\n em.persist(billLineItem);\n em.flush();\n } else {\n billLineItem = TestUtil.findAll(em, BillLineItem.class).get(0);\n }\n billLineItemToOrderItem.setBillLineItem(billLineItem);\n return billLineItemToOrderItem;\n }", "title": "" }, { "docid": "140e13455865cab7c297dd217ff90dfa", "score": "0.6158973", "text": "public static Artikel createUpdatedEntity(EntityManager em) {\n Artikel artikel = new Artikel().name(UPDATED_NAME);\n return artikel;\n }", "title": "" }, { "docid": "bdf4643efe3cc1f3ee5678338d736372", "score": "0.6141531", "text": "public static EstatusLaboral createUpdatedEntity(EntityManager em) {\n EstatusLaboral estatusLaboral = new EstatusLaboral()\n .estatus(UPDATED_ESTATUS);\n return estatusLaboral;\n }", "title": "" }, { "docid": "e6ec98c6f5b460fc8722b723aa7bce7e", "score": "0.61399037", "text": "public E update(E entity) throws Exception\n {\n \tE create;\n \ttry{\n \t\tcreate = create(entityManager.merge(entity));\n \t}catch(PersistenceException pe){\n \t\tlogger.error(\"Unable to update entity :\"+entity+\" in DB\", pe);\n \t\tthrow new Exception(pe);\n \t}\n return create;\n }", "title": "" }, { "docid": "0258e6d843730a81d697c108eb7fd389", "score": "0.6137648", "text": "public static AutoPay createUpdatedEntity(EntityManager em) {\n AutoPay autoPay = new AutoPay()\n .channel(UPDATED_CHANNEL)\n .autoPayId(UPDATED_AUTO_PAY_ID)\n .debitDate(UPDATED_DEBIT_DATE)\n .status(UPDATED_STATUS)\n .customerId(UPDATED_CUSTOMER_ID);\n return autoPay;\n }", "title": "" }, { "docid": "9b081a02d02f2e855dca7afd15c94f62", "score": "0.61313", "text": "public void setEntity(EntityData newEntity);", "title": "" }, { "docid": "14404cf532774e7528aceee66a6ed6e1", "score": "0.61286014", "text": "void create(T entity);", "title": "" }, { "docid": "14404cf532774e7528aceee66a6ed6e1", "score": "0.61286014", "text": "void create(T entity);", "title": "" }, { "docid": "7fd0e5f0765269e66da15335258744c4", "score": "0.61242837", "text": "public static Book createUpdatedEntity(EntityManager em) {\n Book book = new Book()\n .isbn(UPDATED_ISBN)\n .pageCount(UPDATED_PAGE_COUNT)\n .processed(UPDATED_PROCESSED);\n return book;\n }", "title": "" }, { "docid": "77bea0f18fa422a9c5c34acf909ba57b", "score": "0.61186296", "text": "public static Istruzione createUpdatedEntity(EntityManager em) {\n Istruzione istruzione = new Istruzione()\n .codiceIsced(UPDATED_CODICE_ISCED)\n .codiceLivello(UPDATED_CODICE_LIVELLO)\n .nome(UPDATED_NOME)\n .campoStudio(UPDATED_CAMPO_STUDIO)\n .sinonimi(UPDATED_SINONIMI)\n .codiceIstituto(UPDATED_CODICE_ISTITUTO)\n .tipoIstituto(UPDATED_TIPO_ISTITUTO);\n return istruzione;\n }", "title": "" }, { "docid": "2a69ac078603f161d271d9207c7f0235", "score": "0.6117766", "text": "public static Production createUpdatedEntity(EntityManager em) {\n Production production = new Production()\n .version(UPDATED_VERSION)\n .powerTime(UPDATED_POWER_TIME)\n .placeTime(UPDATED_PLACE_TIME)\n .waitTime(UPDATED_WAIT_TIME)\n .runTime(UPDATED_RUN_TIME)\n .stopTime(UPDATED_STOP_TIME)\n .idleTime(UPDATED_IDLE_TIME)\n .inWaitTime(UPDATED_IN_WAIT_TIME)\n .outWaitTime(UPDATED_OUT_WAIT_TIME)\n .transTime(UPDATED_TRANS_TIME)\n .wrongStopTime(UPDATED_WRONG_STOP_TIME)\n .errorStopTIme(UPDATED_ERROR_STOP_T_IME)\n .wrongStopCount(UPDATED_WRONG_STOP_COUNT)\n .errorStopCount(UPDATED_ERROR_STOP_COUNT)\n .panelInCount(UPDATED_PANEL_IN_COUNT)\n .panelOutCount(UPDATED_PANEL_OUT_COUNT)\n .panelCount(UPDATED_PANEL_COUNT)\n .pCBCount(UPDATED_P_CB_COUNT)\n .errorPcb(UPDATED_ERROR_PCB)\n .skipPCB(UPDATED_SKIP_PCB)\n .operationRate(UPDATED_OPERATION_RATE)\n .placementRate(UPDATED_PLACEMENT_RATE)\n .meanTime(UPDATED_MEAN_TIME)\n .realTime(UPDATED_REAL_TIME)\n .transferTime(UPDATED_TRANSFER_TIME)\n .placeCount(UPDATED_PLACE_COUNT)\n .theEfficiency(UPDATED_THE_EFFICIENCY);\n return production;\n }", "title": "" }, { "docid": "6a201c3eca7650d458c9988f67674fcd", "score": "0.6116443", "text": "public static RoomType createUpdatedEntity(EntityManager em) {\n RoomType roomType = new RoomType()\n .number(UPDATED_NUMBER)\n .feature(UPDATED_FEATURE)\n .price(UPDATED_PRICE);\n return roomType;\n }", "title": "" }, { "docid": "db422ff738c30618e0b2265a1d82937f", "score": "0.6113906", "text": "public static Puesto createUpdatedEntity(EntityManager em) {\n Puesto puesto = new Puesto()\n .nombre(UPDATED_NOMBRE)\n .estado(UPDATED_ESTADO);\n return puesto;\n }", "title": "" }, { "docid": "d82ea47363892fb8e47682a8cbc6f4af", "score": "0.6109062", "text": "public static Film createUpdatedEntity(EntityManager em) {\n Film film = new Film()\n .title(UPDATED_TITLE)\n .description(UPDATED_DESCRIPTION)\n .releaseDate(UPDATED_RELEASE_DATE);\n return film;\n }", "title": "" }, { "docid": "4af80128d90d7f97381aaabe7c2d790a", "score": "0.6091102", "text": "public static Course createUpdatedEntity(EntityManager em) {\n Course course = new Course()\n .name(UPDATED_NAME)\n .par(UPDATED_PAR)\n .yardage(UPDATED_YARDAGE)\n .city(UPDATED_CITY)\n .state(UPDATED_STATE)\n .courseType(UPDATED_COURSE_TYPE)\n .greenType(UPDATED_GREEN_TYPE)\n .hole1Par(UPDATED_HOLE_1_PAR)\n .hole1Yardage(UPDATED_HOLE_1_YARDAGE)\n .hole1Handicap(UPDATED_HOLE_1_HANDICAP)\n .hole2Par(UPDATED_HOLE_2_PAR)\n .hole2Yardage(UPDATED_HOLE_2_YARDAGE)\n .hole2Handicap(UPDATED_HOLE_2_HANDICAP)\n .hole3Par(UPDATED_HOLE_3_PAR)\n .hole3Yardage(UPDATED_HOLE_3_YARDAGE)\n .hole3Handicap(UPDATED_HOLE_3_HANDICAP)\n .hole4Par(UPDATED_HOLE_4_PAR)\n .hole4Yardage(UPDATED_HOLE_4_YARDAGE)\n .hole4Handicap(UPDATED_HOLE_4_HANDICAP)\n .hole5Par(UPDATED_HOLE_5_PAR)\n .hole5Yardage(UPDATED_HOLE_5_YARDAGE)\n .hole5Handicap(UPDATED_HOLE_5_HANDICAP)\n .hole6Par(UPDATED_HOLE_6_PAR)\n .hole6Yardage(UPDATED_HOLE_6_YARDAGE)\n .hole6Handicap(UPDATED_HOLE_6_HANDICAP)\n .hole7Par(UPDATED_HOLE_7_PAR)\n .hole7Yardage(UPDATED_HOLE_7_YARDAGE)\n .hole7Handicap(UPDATED_HOLE_7_HANDICAP)\n .hole8Par(UPDATED_HOLE_8_PAR)\n .hole8Yardage(UPDATED_HOLE_8_YARDAGE)\n .hole8Handicap(UPDATED_HOLE_8_HANDICAP)\n .hole9Par(UPDATED_HOLE_9_PAR)\n .hole9Yardage(UPDATED_HOLE_9_YARDAGE)\n .hole9Handicap(UPDATED_HOLE_9_HANDICAP)\n .hole10Par(UPDATED_HOLE_10_PAR)\n .hole10Yardage(UPDATED_HOLE_10_YARDAGE)\n .hole10Handicap(UPDATED_HOLE_10_HANDICAP)\n .hole11Par(UPDATED_HOLE_11_PAR)\n .hole11Yardage(UPDATED_HOLE_11_YARDAGE)\n .hole11Handicap(UPDATED_HOLE_11_HANDICAP)\n .hole12Par(UPDATED_HOLE_12_PAR)\n .hole12Yardage(UPDATED_HOLE_12_YARDAGE)\n .hole12Handicap(UPDATED_HOLE_12_HANDICAP)\n .hole13Par(UPDATED_HOLE_13_PAR)\n .hole13Yardage(UPDATED_HOLE_13_YARDAGE)\n .hole13Handicap(UPDATED_HOLE_13_HANDICAP)\n .hole14Par(UPDATED_HOLE_14_PAR)\n .hole14Yardage(UPDATED_HOLE_14_YARDAGE)\n .hole14Handicap(UPDATED_HOLE_14_HANDICAP)\n .hole15Par(UPDATED_HOLE_15_PAR)\n .hole15Yardage(UPDATED_HOLE_15_YARDAGE)\n .hole15Handicap(UPDATED_HOLE_15_HANDICAP)\n .hole16Par(UPDATED_HOLE_16_PAR)\n .hole16Yardage(UPDATED_HOLE_16_YARDAGE)\n .hole16Handicap(UPDATED_HOLE_16_HANDICAP)\n .hole17Par(UPDATED_HOLE_17_PAR)\n .hole17Yardage(UPDATED_HOLE_17_YARDAGE)\n .hole17Handicap(UPDATED_HOLE_17_HANDICAP)\n .hole18Par(UPDATED_HOLE_18_PAR)\n .hole18Yardage(UPDATED_HOLE_18_YARDAGE)\n .hole18Handicap(UPDATED_HOLE_18_HANDICAP);\n return course;\n }", "title": "" }, { "docid": "02ac4ad5c9bcfeb01b172959da25202f", "score": "0.6089528", "text": "AbstractEntity createAbstractEntity();", "title": "" }, { "docid": "cacc038da09ff6397b7f3ab6133ec6e3", "score": "0.6084529", "text": "public Entity newEntity() { return newMyEntity(); }", "title": "" }, { "docid": "cacc038da09ff6397b7f3ab6133ec6e3", "score": "0.60839534", "text": "public Entity newEntity() { return newMyEntity(); }", "title": "" }, { "docid": "cacc038da09ff6397b7f3ab6133ec6e3", "score": "0.60839534", "text": "public Entity newEntity() { return newMyEntity(); }", "title": "" }, { "docid": "471b266fd893d7e597acc065b221ccfb", "score": "0.60812306", "text": "public static Tickets createUpdatedEntity(EntityManager em) {\n Tickets tickets = new Tickets()\n .price(UPDATED_PRICE)\n .place(UPDATED_PLACE)\n .type(UPDATED_TYPE)\n .amount(UPDATED_AMOUNT)\n .sectorRows(UPDATED_SECTOR_ROWS)\n .seats(UPDATED_SEATS)\n .state(UPDATED_STATE);\n return tickets;\n }", "title": "" }, { "docid": "4f5597621dd5cef1d305ae0240fdf57d", "score": "0.6081214", "text": "@Test\n public void testUpdatingOldEntityWithoutDomainId() throws Exception {\n TimelineEntity entity = new TimelineEntity();\n entity.setEntityType(\"OLD_ENTITY_TYPE_1\");\n entity.setEntityId(\"OLD_ENTITY_ID_1\");\n entity.setDomainId(DEFAULT_DOMAIN_ID);\n entity.addOtherInfo(\"NEW_OTHER_INFO_KEY\", \"NEW_OTHER_INFO_VALUE\");\n TimelineEntities entities = new TimelineEntities();\n entities.addEntity(entity);\n TimelinePutResponse response = dataManaer.postEntities(entities, UserGroupInformation.getCurrentUser());\n Assert.assertEquals(0, response.getErrors().size());\n entity = store.getEntity(\"OLD_ENTITY_ID_1\", \"OLD_ENTITY_TYPE_1\", null);\n Assert.assertNotNull(entity);\n // Even in leveldb, the domain is updated to the default domain Id\n Assert.assertEquals(DEFAULT_DOMAIN_ID, entity.getDomainId());\n Assert.assertEquals(1, entity.getOtherInfo().size());\n Assert.assertEquals(\"NEW_OTHER_INFO_KEY\", entity.getOtherInfo().keySet().iterator().next());\n Assert.assertEquals(\"NEW_OTHER_INFO_VALUE\", entity.getOtherInfo().values().iterator().next());\n // Set the domain to the non-default domain when updating\n entity = new TimelineEntity();\n entity.setEntityType(\"OLD_ENTITY_TYPE_1\");\n entity.setEntityId(\"OLD_ENTITY_ID_2\");\n entity.setDomainId(\"NON_DEFAULT\");\n entity.addOtherInfo(\"NEW_OTHER_INFO_KEY\", \"NEW_OTHER_INFO_VALUE\");\n entities = new TimelineEntities();\n entities.addEntity(entity);\n response = dataManaer.postEntities(entities, UserGroupInformation.getCurrentUser());\n Assert.assertEquals(1, response.getErrors().size());\n Assert.assertEquals(ACCESS_DENIED, response.getErrors().get(0).getErrorCode());\n entity = store.getEntity(\"OLD_ENTITY_ID_2\", \"OLD_ENTITY_TYPE_1\", null);\n Assert.assertNotNull(entity);\n // In leveldb, the domain Id is still null\n Assert.assertNull(entity.getDomainId());\n // Updating is not executed\n Assert.assertEquals(0, entity.getOtherInfo().size());\n }", "title": "" }, { "docid": "26157f64d1bb162c3c2eb08bd0c17994", "score": "0.60762644", "text": "public static MMatchResultCutin createUpdatedEntity(EntityManager em) {\n MMatchResultCutin mMatchResultCutin = new MMatchResultCutin()\n .characterId(UPDATED_CHARACTER_ID)\n .teamId(UPDATED_TEAM_ID)\n .isWin(UPDATED_IS_WIN)\n .text(UPDATED_TEXT)\n .soundEvent(UPDATED_SOUND_EVENT);\n // Add required entity\n MCharacter mCharacter;\n if (TestUtil.findAll(em, MCharacter.class).isEmpty()) {\n mCharacter = MCharacterResourceIT.createUpdatedEntity(em);\n em.persist(mCharacter);\n em.flush();\n } else {\n mCharacter = TestUtil.findAll(em, MCharacter.class).get(0);\n }\n mMatchResultCutin.setMcharacter(mCharacter);\n return mMatchResultCutin;\n }", "title": "" }, { "docid": "833cd1deb331443abaf148f6bd974883", "score": "0.6075836", "text": "public static DrugOrder createUpdatedEntity(EntityManager em) {\n DrugOrder drugOrder = new DrugOrder()\n .uuid(UPDATED_UUID)\n .drugInventoryUuid(UPDATED_DRUG_INVENTORY_UUID)\n .dose(UPDATED_DOSE)\n .equivalentDailyDose(UPDATED_EQUIVALENT_DAILY_DOSE)\n .units(UPDATED_UNITS)\n .frequency(UPDATED_FREQUENCY)\n .prn(UPDATED_PRN)\n .complex(UPDATED_COMPLEX)\n .quantity(UPDATED_QUANTITY);\n return drugOrder;\n }", "title": "" }, { "docid": "6c4e8c688b1334ffc4cbde43cc900787", "score": "0.6072813", "text": "public static Etudiant createUpdatedEntity(EntityManager em) {\n Etudiant etudiant = new Etudiant()\n .login(UPDATED_LOGIN)\n .mdp(UPDATED_MDP)\n .cne(UPDATED_CNE)\n .email(UPDATED_EMAIL)\n .nom(UPDATED_NOM)\n .prenom(UPDATED_PRENOM)\n .tel(UPDATED_TEL);\n return etudiant;\n }", "title": "" }, { "docid": "b65457d187087546d6aa808d7a19217a", "score": "0.60713", "text": "public static Venue createUpdatedEntity(EntityManager em) {\n Venue venue = new Venue()\n .name(UPDATED_NAME)\n .description(UPDATED_DESCRIPTION)\n .address(UPDATED_ADDRESS)\n .phoneNumber(UPDATED_PHONE_NUMBER)\n .location(UPDATED_LOCATION);\n return venue;\n }", "title": "" }, { "docid": "9aa4046f710d1442978c787d1878374d", "score": "0.60609114", "text": "public static TypePole createUpdatedEntity(EntityManager em) {\n TypePole typePole = new TypePole()\n .codeTypePole(UPDATED_CODE_TYPE_POLE)\n .libelleTypePole(UPDATED_LIBELLE_TYPE_POLE)\n .dateCreated(UPDATED_DATE_CREATED)\n .dateUpdated(UPDATED_DATE_UPDATED)\n .userCreated(UPDATED_USER_CREATED)\n .userUpdated(UPDATED_USER_UPDATED)\n .userDeleted(UPDATED_USER_DELETED);\n return typePole;\n }", "title": "" }, { "docid": "619e059e23a08beb76a4cecb9553db73", "score": "0.60582364", "text": "public static FrozenTube createEntity(EntityManager em) {\n FrozenTube frozenTube = new FrozenTube()\n .projectCode(DEFAULT_PROJECT_CODE)\n .frozenTubeCode(DEFAULT_FROZEN_TUBE_CODE)\n .sampleTempCode(DEFAULT_SAMPLE_TEMP_CODE)\n .sampleCode(DEFAULT_SAMPLE_CODE)\n .frozenTubeTypeCode(DEFAULT_FROZEN_TUBE_TYPE_CODE)\n .frozenTubeTypeName(DEFAULT_FROZEN_TUBE_TYPE_NAME)\n .sampleTypeCode(DEFAULT_SAMPLE_TYPE_CODE)\n .sampleTypeName(DEFAULT_SAMPLE_TYPE_NAME)\n .sampleUsedTimesMost(DEFAULT_SAMPLE_USED_TIMES_MOST)\n .sampleUsedTimes(DEFAULT_SAMPLE_USED_TIMES)\n .frozenTubeVolumns(DEFAULT_FROZEN_TUBE_VOLUMNS)\n .frozenTubeVolumnsUnit(DEFAULT_FROZEN_TUBE_VOLUMNS_UNIT)\n .tubeRows(DEFAULT_TUBE_ROWS)\n .tubeColumns(DEFAULT_TUBE_COLUMNS)\n .memo(DEFAULT_MEMO)\n .errorType(DEFAULT_ERROR_TYPE)\n .status(DEFAULT_STATUS)\n .frozenBoxCode(DEFAULT_FROZEN_BOX_CODE)\n .patientId(DEFAULT_PATIENT_ID)\n .dob(DEFAULT_DOB)\n .gender(DEFAULT_GENDER)\n .diseaseType(DEFAULT_DISEASE_TYPE)\n .visitType(DEFAULT_VISIT_TYPE)\n .visitDate(DEFAULT_VISIT_DATE);\n // Add required entity\n FrozenTubeType frozenTubeType = FrozenTubeTypeResourceIntTest.createEntity(em);\n em.persist(frozenTubeType);\n em.flush();\n frozenTube.setFrozenTubeType(frozenTubeType);\n // Add required entity\n SampleType sampleType = SampleTypeResourceIntTest.createEntity(em);\n em.persist(sampleType);\n em.flush();\n frozenTube.setSampleType(sampleType);\n // Add required entity\n Project project = ProjectResourceIntTest.createEntity(em);\n em.persist(project);\n em.flush();\n frozenTube.setProject(project);\n // Add required entity\n FrozenBox frozenBox = FrozenBoxResourceIntTest.createEntity(em);\n em.persist(frozenBox);\n em.flush();\n frozenTube.setFrozenBox(frozenBox);\n return frozenTube;\n }", "title": "" }, { "docid": "cb7a6a2ff00188f6b7d644d335b1ac6c", "score": "0.6055387", "text": "public static Skill createUpdatedEntity() {\n Skill skill = new Skill()\n .name(UPDATED_NAME)\n .skillType(UPDATED_SKILL_TYPE);\n return skill;\n }", "title": "" }, { "docid": "e0fc7bd1be3bca119d28bb36468a478d", "score": "0.6048981", "text": "T create(T entity);", "title": "" }, { "docid": "645774170eda7b82ccfeeb73452efc9d", "score": "0.6047648", "text": "public static BankAccount createUpdatedEntity(EntityManager em) {\n BankAccount bankAccount = new BankAccount().name(UPDATED_NAME).balance(UPDATED_BALANCE);\n return bankAccount;\n }", "title": "" }, { "docid": "29e6018cf131d2e1a9a26b90935742cf", "score": "0.60385233", "text": "public static Manufactory createUpdatedEntity(EntityManager em) {\n Manufactory manufactory = new Manufactory();\n return manufactory;\n }", "title": "" }, { "docid": "ee938b1a3aefc838006481e396b768c8", "score": "0.6034232", "text": "public static Customer createUpdatedEntity(EntityManager em) {\n Customer customer = new Customer()\n .name(UPDATED_NAME)\n .address(UPDATED_ADDRESS)\n .email(UPDATED_EMAIL)\n .location(UPDATED_LOCATION)\n .createdBy(UPDATED_CREATED_BY)\n .purposeOfVisit(UPDATED_PURPOSE_OF_VISIT);\n return customer;\n }", "title": "" }, { "docid": "163ac66b246ee22084eb3f5d88814589", "score": "0.60165566", "text": "public static Occupazione createUpdatedEntity(EntityManager em) {\n Occupazione occupazione = new Occupazione()\n .codiceEsco(UPDATED_CODICE_ESCO)\n .nome(UPDATED_NOME);\n return occupazione;\n }", "title": "" }, { "docid": "c0a1cb81181e865a824e8ac790c8b7f1", "score": "0.60145694", "text": "public static Games createUpdatedEntity(EntityManager em) {\n Games games = new Games()\n .playtime(UPDATED_PLAYTIME)\n .listingList(UPDATED_LISTING_LIST)\n .score(UPDATED_SCORE)\n .time(UPDATED_TIME);\n // Add required entity\n User user = UserResourceIT.createEntity(em);\n em.persist(user);\n em.flush();\n games.setUser(user);\n return games;\n }", "title": "" }, { "docid": "1cae1019ade248bf1c5588e599c630ae", "score": "0.6012837", "text": "public E create(E entity) {\n\t\ttry {\n\t\t\tObjects.requireNonNull(entity, MSG_ERROR_ENTITY_NULL);\n\t\t\tentity.setId(getIndex());\n\t\t\tgetBase().add(entity);\n\t\t\treturn entity;\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\tthrow new RepositoryError(RepositoryError.CREATE, e);\n\t\t}\n\t}", "title": "" }, { "docid": "0aac0801932eb7b627e599623e180e8d", "score": "0.6006654", "text": "public static SelecaoPesc createUpdatedEntity(EntityManager em) {\n SelecaoPesc selecaoPesc = new SelecaoPesc()\n .nomeCompleto(UPDATED_NOME_COMPLETO)\n .emailPrincipal(UPDATED_EMAIL_PRINCIPAL)\n .nacionalidade(UPDATED_NACIONALIDADE)\n .documentoCpfPassaporte(UPDATED_DOCUMENTO_CPF_PASSAPORTE)\n .dataNascimento(UPDATED_DATA_NASCIMENTO)\n .cidadeNascimento(UPDATED_CIDADE_NASCIMENTO)\n .temExperienciaProfissional(UPDATED_TEM_EXPERIENCIA_PROFISSIONAL)\n .temDocencia(UPDATED_TEM_DOCENCIA)\n .formacaoInstituicaoNome(UPDATED_FORMACAO_INSTITUICAO_NOME)\n .formacaoCursoSuperior(UPDATED_FORMACAO_CURSO_SUPERIOR)\n .formacaoInicio(UPDATED_FORMACAO_INICIO)\n .formacaoTermino(UPDATED_FORMACAO_TERMINO)\n .empresaNome(UPDATED_EMPRESA_NOME)\n .empresaUrlSite(UPDATED_EMPRESA_URL_SITE)\n .empresaFuncao(UPDATED_EMPRESA_FUNCAO)\n .docenciaInstituicaoNome(UPDATED_DOCENCIA_INSTITUICAO_NOME)\n .docenciaInstituicaoPais(UPDATED_DOCENCIA_INSTITUICAO_PAIS)\n .docenciaNomeDisciplina(UPDATED_DOCENCIA_NOME_DISCIPLINA)\n .proficienciaInglesTipoTeste(UPDATED_PROFICIENCIA_INGLES_TIPO_TESTE)\n .proficienciaInglesNota(UPDATED_PROFICIENCIA_INGLES_NOTA)\n .mestradoDoutorado(UPDATED_MESTRADO_DOUTORADO)\n .linhaAreaInteresse(UPDATED_LINHA_AREA_INTERESSE);\n return selecaoPesc;\n }", "title": "" }, { "docid": "1614e1859631eb11eaf96f1dd2dadb3d", "score": "0.6003443", "text": "public T create(T entity);", "title": "" }, { "docid": "58c1b7a40526a0bc02822cf0d984e21f", "score": "0.60032386", "text": "public static SysDept createUpdatedEntity(EntityManager em) {\n SysDept sysDept = new SysDept()\n .deptName(UPDATED_DEPT_NAME)\n .parentId(UPDATED_PARENT_ID)\n .ancestors(UPDATED_ANCESTORS)\n .orderNum(UPDATED_ORDER_NUM)\n .leader(UPDATED_LEADER)\n .phone(UPDATED_PHONE)\n .email(UPDATED_EMAIL)\n .status(UPDATED_STATUS)\n .delFlag(UPDATED_DEL_FLAG)\n .createBy(UPDATED_CREATE_BY)\n .createTime(UPDATED_CREATE_TIME)\n .updateBy(UPDATED_UPDATE_BY)\n .upLocalDate(UPDATED_UP_LOCAL_DATE);\n return sysDept;\n }", "title": "" }, { "docid": "2bc1e677ba7a97a0c2a7099334e3ad86", "score": "0.5994591", "text": "public static CustAddress createUpdatedEntity() {\n CustAddress custAddress = new CustAddress()\n .addressId(UPDATED_ADDRESS_ID)\n .accountId(UPDATED_ACCOUNT_ID)\n .accountType(UPDATED_ACCOUNT_TYPE)\n .addressType(UPDATED_ADDRESS_TYPE)\n .addressLang(UPDATED_ADDRESS_LANG)\n .formattedAddress(UPDATED_FORMATTED_ADDRESS)\n .room(UPDATED_ROOM)\n .floor(UPDATED_FLOOR)\n .block(UPDATED_BLOCK)\n .building(UPDATED_BUILDING)\n .streetEstate(UPDATED_STREET_ESTATE)\n .district(UPDATED_DISTRICT)\n .region(UPDATED_REGION)\n .address1(UPDATED_ADDRESS_1)\n .address2(UPDATED_ADDRESS_2)\n .address3(UPDATED_ADDRESS_3)\n .address4(UPDATED_ADDRESS_4)\n .address5(UPDATED_ADDRESS_5)\n .createdDate(UPDATED_CREATED_DATE)\n .createdBy(UPDATED_CREATED_BY)\n .lastUpdatedDate(UPDATED_LAST_UPDATED_DATE)\n .lastUpdatedBy(UPDATED_LAST_UPDATED_BY)\n .tenantId(UPDATED_TENANT_ID);\n return custAddress;\n }", "title": "" }, { "docid": "ac89ecd33a789ffbd2e64b9485aed6c9", "score": "0.59895706", "text": "V create(V entity);", "title": "" }, { "docid": "aec0b470c02886c25b784b5d7ce1e425", "score": "0.5987663", "text": "public static Gagnant createUpdatedEntity(EntityManager em) {\n Gagnant gagnant = new Gagnant()\n .nom(UPDATED_NOM)\n .prenom(UPDATED_PRENOM)\n .telephone(UPDATED_TELEPHONE)\n .position(UPDATED_POSITION)\n .dateGain(UPDATED_DATE_GAIN)\n .datePayment(UPDATED_DATE_PAYMENT);\n return gagnant;\n }", "title": "" }, { "docid": "910b9e196e49539e007cfff2925d0efa", "score": "0.5985165", "text": "public abstract T create(T entity) throws Exception;", "title": "" }, { "docid": "541f3d0d5a1438bcf9cc57ffb9ac4477", "score": "0.59777576", "text": "public static TipoAprazamento createUpdatedEntity(EntityManager em) {\n TipoAprazamento tipoAprazamento = new TipoAprazamento()\n .descricao(UPDATED_DESCRICAO)\n .sigla(UPDATED_SIGLA);\n return tipoAprazamento;\n }", "title": "" }, { "docid": "77c5036664e8cdcf14349fb4e7aa1832", "score": "0.5974789", "text": "V update(V entity);", "title": "" }, { "docid": "7e25947e84b97782c6ad9d8e2086dceb", "score": "0.59708095", "text": "public static Secteur createUpdatedEntity(EntityManager em) {\n Secteur secteur = new Secteur().libelle(UPDATED_LIBELLE);\n return secteur;\n }", "title": "" }, { "docid": "4a92d1860ccf597f012650a6998dc587", "score": "0.59650666", "text": "public static Ck2xsy createUpdatedEntity(EntityManager em) {\n Ck2xsy ck2xsy = new Ck2xsy().rq(UPDATED_RQ).cpbh(UPDATED_CPBH).sl(UPDATED_SL);\n return ck2xsy;\n }", "title": "" }, { "docid": "2d8ef1dc7582b1354e8ffa956328cc15", "score": "0.5958273", "text": "public static Reseller createUpdatedEntity(EntityManager em) {\n Reseller reseller = new Reseller()\n .resellerId(UPDATED_RESELLER_ID)\n .adminId(UPDATED_ADMIN_ID)\n .resellerName(UPDATED_RESELLER_NAME)\n .resellerEmail(UPDATED_RESELLER_EMAIL)\n .resellerPassword(UPDATED_RESELLER_PASSWORD)\n .resellerCreatedAt(UPDATED_RESELLER_CREATED_AT)\n .resellerModifiedAt(UPDATED_RESELLER_MODIFIED_AT);\n return reseller;\n }", "title": "" }, { "docid": "ef4d7bca6a1ba63d0fa6e4b733ddaad7", "score": "0.5956666", "text": "public static DisplacementHist createUpdatedEntity(EntityManager em) {\n DisplacementHist displacementHist = new DisplacementHist()\n .dateFrom(UPDATED_DATE_FROM)\n .dateTo(UPDATED_DATE_TO)\n .idWrk(UPDATED_ID_WRK)\n .deltaX(UPDATED_DELTA_X)\n .deltaY(UPDATED_DELTA_Y)\n .deltaZ(UPDATED_DELTA_Z)\n .deltaTotal(UPDATED_DELTA_TOTAL)\n .kpStart(UPDATED_KP_START)\n .kpEnd(UPDATED_KP_END)\n .isCurrentFlag(UPDATED_IS_CURRENT_FLAG)\n .idStatus(UPDATED_ID_STATUS)\n .comment(UPDATED_COMMENT)\n .dateCreate(UPDATED_DATE_CREATE)\n .dateEdit(UPDATED_DATE_EDIT)\n .creator(UPDATED_CREATOR)\n .editor(UPDATED_EDITOR);\n // Add required entity\n PipelineSection pipelineSection;\n if (TestUtil.findAll(em, PipelineSection.class).isEmpty()) {\n pipelineSection = PipelineSectionResourceIT.createUpdatedEntity(em);\n em.persist(pipelineSection);\n em.flush();\n } else {\n pipelineSection = TestUtil.findAll(em, PipelineSection.class).get(0);\n }\n displacementHist.setIdPipelineSection(pipelineSection);\n return displacementHist;\n }", "title": "" }, { "docid": "c78d76a9687a2bea5b3e8a716717ba0c", "score": "0.5956484", "text": "public static UserBalance createUpdatedEntity(EntityManager em) {\n UserBalance userBalance = new UserBalance()\n .balance(UPDATED_BALANCE);\n // Add required entity\n User user = UserResourceIT.createEntity(em);\n em.persist(user);\n em.flush();\n userBalance.setName(user);\n return userBalance;\n }", "title": "" }, { "docid": "3e9d5493fee4678a601d84e297e4d246", "score": "0.59539974", "text": "public static VirtualAccount createUpdatedEntity(EntityManager em) {\n VirtualAccount virtualAccount = new VirtualAccount()\n .customerId(UPDATED_CUSTOMER_ID)\n .extCustomerId(UPDATED_EXT_CUSTOMER_ID)\n .currency(UPDATED_CURRENCY)\n .accountNumber(UPDATED_ACCOUNT_NUMBER)\n .availableBalance(UPDATED_AVAILABLE_BALANCE)\n .holdBalance(UPDATED_HOLD_BALANCE)\n .minimumBalance(UPDATED_MINIMUM_BALANCE)\n .accountType(UPDATED_ACCOUNT_TYPE)\n .status(UPDATED_STATUS);\n return virtualAccount;\n }", "title": "" }, { "docid": "8fe8e8e57bb147aa15368013cc4d8076", "score": "0.59451526", "text": "public static Favorite createUpdatedEntity(EntityManager em) {\n Favorite favorite = new Favorite();\n return favorite;\n }", "title": "" }, { "docid": "615216cbb5a6b9d726dead1fe29242d7", "score": "0.59358877", "text": "public static Annonce createUpdatedEntity(EntityManager em) {\n Annonce annonce = new Annonce()\n .titre(UPDATED_TITRE)\n .description(UPDATED_DESCRIPTION)\n .ville(UPDATED_VILLE)\n .type(UPDATED_TYPE)\n .etat(UPDATED_ETAT)\n .dateAnnonce(UPDATED_DATE_ANNONCE);\n return annonce;\n }", "title": "" }, { "docid": "107a98c106af77d991fc6a6d9171cc77", "score": "0.5930603", "text": "public static Assessment createUpdatedEntity(EntityManager em) {\n Assessment assessment = new Assessment()\n .assessmentCategory(UPDATED_ASSESSMENT_CATEGORY)\n .questions(UPDATED_QUESTIONS);\n return assessment;\n }", "title": "" }, { "docid": "b10be771eee51b773ab6f4a16d69b72e", "score": "0.59276235", "text": "public static Chevre createUpdatedEntity(EntityManager em) {\n Chevre chevre = new Chevre()\n .nom(UPDATED_NOM)\n .matricule(UPDATED_MATRICULE)\n .surnom(UPDATED_SURNOM)\n .naissance(UPDATED_NAISSANCE)\n .present(UPDATED_PRESENT);\n return chevre;\n }", "title": "" }, { "docid": "e6b99223b6aeb572b02bd81f8fed6314", "score": "0.59180564", "text": "public static FileType createUpdatedEntity(EntityManager em) {\n FileType fileType = new FileType()\n .name(UPDATED_NAME)\n .createdBy(UPDATED_CREATED_BY)\n .createdDate(UPDATED_CREATED_DATE)\n .lastModifiedBy(UPDATED_LAST_MODIFIED_BY)\n .lastModifiedDate(UPDATED_LAST_MODIFIED_DATE);\n return fileType;\n }", "title": "" }, { "docid": "ea0a721f96bb9925f4e3b6d7d75ed90b", "score": "0.59114283", "text": "void create(T pEntity) throws Throwable;", "title": "" }, { "docid": "656bf8af6e63c55faba714080e220087", "score": "0.5910941", "text": "public static DietNature createUpdatedEntity() {\n DietNature dietNature = new DietNature().name(UPDATED_NAME).description(UPDATED_DESCRIPTION);\n return dietNature;\n }", "title": "" }, { "docid": "048c905eaa574a683512d7f8ba3dffec", "score": "0.59071976", "text": "public static FileStorage createUpdatedEntity(EntityManager em) {\n FileStorage fileStorage = new FileStorage()\n .name(UPDATED_NAME)\n .countryName(UPDATED_COUNTRY_NAME)\n .extension(UPDATED_EXTENSION)\n .fileSize(UPDATED_FILE_SIZE)\n .hashId(UPDATED_HASH_ID)\n .contentType(UPDATED_CONTENT_TYPE)\n .uploadPath(UPDATED_UPLOAD_PATH)\n .fileStorageStatus(UPDATED_FILE_STORAGE_STATUS);\n return fileStorage;\n }", "title": "" }, { "docid": "eb546426f1dde8284eaeef0486d552aa", "score": "0.5906284", "text": "public static UserLocation createUpdatedEntity() {\n UserLocation userLocation = new UserLocation()\n .userId(UPDATED_USER_ID)\n .latitude(UPDATED_LATITUDE)\n .longitude(UPDATED_LONGITUDE);\n return userLocation;\n }", "title": "" }, { "docid": "ca036fc29bc33e854ad72d601d449805", "score": "0.59025365", "text": "T update(T entity);", "title": "" }, { "docid": "150f91e6ef53189f74f0485d71ff3d16", "score": "0.59015757", "text": "public static Project createUpdatedEntity(EntityManager em) {\n Project project = new Project()\n .name(UPDATED_NAME)\n .description(UPDATED_DESCRIPTION)\n .deptCode(UPDATED_DEPT_CODE)\n .tags(UPDATED_TAGS)\n .status(UPDATED_STATUS)\n .mainAdminId(UPDATED_MAIN_ADMIN_ID)\n .createdBy(UPDATED_CREATED_BY)\n .createdAt(UPDATED_CREATED_AT)\n .modifiedBy(UPDATED_MODIFIED_BY)\n .modifiedAt(UPDATED_MODIFIED_AT);\n return project;\n }", "title": "" }, { "docid": "c57be1adff18622d6a2170ed0a884820", "score": "0.58975464", "text": "public static Inspector createUpdatedEntity(EntityManager em) {\n Inspector inspector = new Inspector()\n .idUser(UPDATED_ID_USER)\n .login(UPDATED_LOGIN)\n .nombre(UPDATED_NOMBRE);\n return inspector;\n }", "title": "" } ]
edb93d43712e8b2af79ef956ed181e97
/ Checks if external storage is available for read and write
[ { "docid": "cb9ad17d2d1e4997e9cac2a0f25b7924", "score": "0.76074874", "text": "private boolean isExternalStorageWritable() {\n String state = Environment.getExternalStorageState();\n return Environment.MEDIA_MOUNTED.equals(state);\n }", "title": "" } ]
[ { "docid": "bb35546c46e75f6044b499748ac0ff7f", "score": "0.83803624", "text": "private static void checkStorage() {\n // Get the external storage's state\n String state = Environment.getExternalStorageState();\n if (state.equals(Environment.MEDIA_MOUNTED)) {\n // Storage is available and writeable\n externalStorageAvailable = externalStorageWriteable = true;\n } else if (state.equals(Environment.MEDIA_MOUNTED_READ_ONLY)) {\n // Storage is only readable\n externalStorageAvailable = true;\n externalStorageWriteable = false;\n } else {\n // Storage is neither readable nor writeable\n externalStorageAvailable = externalStorageWriteable = false;\n }\n }", "title": "" }, { "docid": "4894d98be2c5e442982d80a58f0a87dd", "score": "0.8100539", "text": "public static boolean isExternalStorageAvailableAndWriteable() {\n checkStorage();\n return externalStorageAvailable && externalStorageWriteable;\n }", "title": "" }, { "docid": "e9b1f32826e1a02693e96d948fa002ba", "score": "0.8064386", "text": "private void checkExternalMedia() {\n boolean mExternalStorageAvailable;\n boolean mExternalStorageWritable;\n String state = Environment.getExternalStorageState();\n\n if (Environment.MEDIA_MOUNTED.equals(state)) {\n mExternalStorageAvailable = mExternalStorageWritable = true;\n } else if (Environment.MEDIA_MOUNTED_READ_ONLY.equals(state)) {\n mExternalStorageAvailable = true;\n mExternalStorageWritable = false;\n } else {\n mExternalStorageAvailable = mExternalStorageWritable = false;\n }\n Log.v(\"sd card\", \"\\nExternal readable= \" + mExternalStorageAvailable + \"writable= \" + mExternalStorageWritable);\n }", "title": "" }, { "docid": "b13bf6f9cd07d3e819e4733951a41860", "score": "0.7873425", "text": "public static boolean isExternalStorageAvailable() {\n checkStorage();\n return externalStorageAvailable;\n }", "title": "" }, { "docid": "b1cd76f09f8de5db18594165cecd5ecf", "score": "0.7862237", "text": "private void checkRead(){\n Log.i(\"Main\", \"Request_Read_External_Storage: \" + this.getApplicationContext().checkCallingOrSelfPermission(REQUEST_READ_EXTERNAL_STORAGE));\n if(this.getApplicationContext().checkCallingOrSelfPermission(REQUEST_READ_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED) {\n requestPermission(REQUEST_READ_EXTERNAL_STORAGE, READ_EXTERNAL_STORAGE_CODE, this);\n }\n else checkInternet();\n }", "title": "" }, { "docid": "3d8ef99f00e02abc1d7412ab47869001", "score": "0.78271544", "text": "private boolean isExternalStorageAvailable(){\n String state = Environment.getExternalStorageState();\n if(state.equals(Environment.MEDIA_MOUNTED)){\n return true;\n }else{\n return false;\n }\n }", "title": "" }, { "docid": "edbb668862d002dfcd7e1493adf7f901", "score": "0.77877945", "text": "public static boolean isExternalStorageAvailable() \n {\n String state = Environment.getExternalStorageState();\n\n // Check if available\n return (Environment.MEDIA_MOUNTED.equals(state) || Environment.MEDIA_MOUNTED_READ_ONLY.equals(state)); \n }", "title": "" }, { "docid": "a7740912c26e20200f2b11aaf34b5aa4", "score": "0.7672551", "text": "private void checkWrite(){\n Log.i(\"Main\", \"Request_Write_External_Storage: \" + this.getApplicationContext().checkCallingOrSelfPermission(REQUEST_WRITE_EXTERNAL_STORAGE));\n if(this.getApplicationContext().checkCallingOrSelfPermission(REQUEST_WRITE_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED) {\n requestPermission(REQUEST_WRITE_EXTERNAL_STORAGE, WRITE_EXTERNAL_STORAGE_CODE, this);\n }\n else checkRead();\n }", "title": "" }, { "docid": "691060c4c892d3a2f3572937e762d481", "score": "0.7607304", "text": "private boolean isExternalStorageWritable() {\n return Environment.getExternalStorageState() == Environment.MEDIA_MOUNTED;\n }", "title": "" }, { "docid": "8e433614dc627b4083536d51fb26af44", "score": "0.75985163", "text": "public boolean isExternalStorageWritable() {\n FirebaseCrash.log(\"Welcome: isExternalStorageWritable.called\");\n String state = Environment.getExternalStorageState();\n if (Environment.MEDIA_MOUNTED.equals(state)) {\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "784e160dfe6f8b0948d9090b5da367d2", "score": "0.7576265", "text": "private boolean isExternalStorageWritable() {\n String state = Environment.getExternalStorageState();\n if (Environment.MEDIA_MOUNTED.equals(state)) {\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "67b2e068363a014a4801bd74499b6985", "score": "0.7550521", "text": "public static boolean isExternalStorageWritable() \n {\n String state = Environment.getExternalStorageState();\n\n // Check if writable\n return (Environment.MEDIA_MOUNTED.equals(state)); \n }", "title": "" }, { "docid": "6bd34c5dedeca719823f251a7e8b5ca9", "score": "0.75032634", "text": "private boolean isExternalStorageReadable() {\n return Environment.getExternalStorageState() == Environment.MEDIA_MOUNTED ||\n Environment.getExternalStorageState() == Environment.MEDIA_MOUNTED_READ_ONLY;\n }", "title": "" }, { "docid": "e0f3d4a3ba68151dff190e55affa4d4f", "score": "0.7478857", "text": "private boolean isReadStorageAllowed() {\n int result = ContextCompat.checkSelfPermission(update_produk.this, Manifest.permission.READ_EXTERNAL_STORAGE);\n\n //If permission is granted returning true\n if (result == PackageManager.PERMISSION_GRANTED)\n return true;\n\n //If permission is not granted returning false\n return false;\n }", "title": "" }, { "docid": "dd8c5ab7b0e970ac46a4a19c1e2aa85b", "score": "0.74648416", "text": "public static boolean isExternalStorageWriteable() {\n checkStorage();\n return externalStorageWriteable;\n }", "title": "" }, { "docid": "b2502bb42c5744ba0c5195cd5d73a0d5", "score": "0.7441417", "text": "private boolean isExternalStorageReadable() {\n String state = Environment.getExternalStorageState();\n if (Environment.MEDIA_MOUNTED.equals(state) ||\n Environment.MEDIA_MOUNTED_READ_ONLY.equals(state)) {\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "b5bd89cfdeefd6d2ec3d75c6227cc13a", "score": "0.7417784", "text": "public static boolean isExternalWritable(){\n\t\tString state = Environment.getExternalStorageState();\n\t\tif (Environment.MEDIA_MOUNTED.equals(state)) {\n\t\t // We can read and write the media\n\t\t return true;\n\t\t} else if (Environment.MEDIA_MOUNTED_READ_ONLY.equals(state)) {\n\t\t // We can only read the media\n\t\t return false;\n\t\t} else {\n\t\t // Something else is wrong. It may be one of many other states, but all we need\n\t\t // to know is we can neither read nor write\n\t\t \treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "4f586e5d55decd7d7fb30a9cea03e25c", "score": "0.74050635", "text": "public boolean isExternalStorageReadable() {\n String state = Environment.getExternalStorageState();\n if (Environment.MEDIA_MOUNTED.equals(state) ||\n Environment.MEDIA_MOUNTED_READ_ONLY.equals(state)) {\n return true;\n }\n\n\n return false;\n }", "title": "" }, { "docid": "0efb4d6454db906fec98e46690bc538f", "score": "0.7401753", "text": "public static boolean isExternalStorageWritable() {\n String state = Environment.getExternalStorageState();\n if (Environment.MEDIA_MOUNTED.equals(state)) {\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "0efb4d6454db906fec98e46690bc538f", "score": "0.7401753", "text": "public static boolean isExternalStorageWritable() {\n String state = Environment.getExternalStorageState();\n if (Environment.MEDIA_MOUNTED.equals(state)) {\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "0efb4d6454db906fec98e46690bc538f", "score": "0.7401753", "text": "public static boolean isExternalStorageWritable() {\n String state = Environment.getExternalStorageState();\n if (Environment.MEDIA_MOUNTED.equals(state)) {\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "d059154cdfe682d81c998a4e237b2914", "score": "0.73820657", "text": "private void storageCheck() {\n\n if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.Q) {\n Set<String> volumeNames = MediaStore.getExternalVolumeNames(this);\n String firstVolumeName = volumeNames.iterator().next();\n\n }\n\n\n File[] externalStorageVolumes = ContextCompat.getExternalFilesDirs(this, null);\n\n getFilesDir(); //get path of like(/data/user/0/com.codility.directreplynotification/files)\n getExternalFilesDir(\"Mayur\"); //return or create file(/storage/emulated/0/Android/data/com.codility.directreplynotification/files/Mayur)\n getCacheDir();//return cache dir of internal storage(/data/user/0/com.codility.directreplynotification/cache)\n getExternalCacheDir();//return cache dir of primary external storage(/storage/emulated/0/Android/data/com.codility.directreplynotification/cache)\n\n\n\n /*---------*/\n\n File folder = new File(Environment.getExternalStorageDirectory() + File.separator + \"Mayur\");\n boolean success = true;\n if (!folder.exists()) {\n success = folder.mkdirs();\n }\n if (success) {\n // Do something on success\n } else {\n // Do something else on failure\n }\n\n }", "title": "" }, { "docid": "2d60ed7ea715e25323ae9b6a90d7ccbe", "score": "0.73794025", "text": "public boolean isExternalStorageWritable() {\r\n String state = Environment.getExternalStorageState();\r\n if (Environment.MEDIA_MOUNTED.equals(state)) {\r\n return true;\r\n }\r\n return false;\r\n }", "title": "" }, { "docid": "d35e18262f7dc218d808873165dd5fac", "score": "0.73698586", "text": "public static boolean isExternalStorageWritable() {\n final String state = Environment.getExternalStorageState();\n if (Environment.MEDIA_MOUNTED.equals(state)) {\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "84a547d9ed5543f4c805dcbf8309e7f1", "score": "0.7362529", "text": "public static boolean isExternalStorageWritable() {\n String state = Environment.getExternalStorageState();\n return Environment.MEDIA_MOUNTED.equals(state);\n }", "title": "" }, { "docid": "8f9f9cbce7596d50fa3b2b8cfca035fc", "score": "0.73540556", "text": "public boolean isExternalStorageWritable() {\n String state = Environment.getExternalStorageState();\n if (Environment.MEDIA_MOUNTED.equals(state)) {\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "8f9f9cbce7596d50fa3b2b8cfca035fc", "score": "0.73540556", "text": "public boolean isExternalStorageWritable() {\n String state = Environment.getExternalStorageState();\n if (Environment.MEDIA_MOUNTED.equals(state)) {\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "8f9f9cbce7596d50fa3b2b8cfca035fc", "score": "0.73540556", "text": "public boolean isExternalStorageWritable() {\n String state = Environment.getExternalStorageState();\n if (Environment.MEDIA_MOUNTED.equals(state)) {\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "8f9f9cbce7596d50fa3b2b8cfca035fc", "score": "0.73540556", "text": "public boolean isExternalStorageWritable() {\n String state = Environment.getExternalStorageState();\n if (Environment.MEDIA_MOUNTED.equals(state)) {\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "8f9f9cbce7596d50fa3b2b8cfca035fc", "score": "0.73540556", "text": "public boolean isExternalStorageWritable() {\n String state = Environment.getExternalStorageState();\n if (Environment.MEDIA_MOUNTED.equals(state)) {\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "bc1bca48b911d65ec3e9acbcdd1573c7", "score": "0.73492897", "text": "private static boolean sdcardIsReadyForWrite() {\n\t\tString state = Environment.getExternalStorageState();\n\t\treturn state != null ? state.equals(Environment.MEDIA_MOUNTED) : false;\n\t}", "title": "" }, { "docid": "b4b8135d955578fdfff8949d91211527", "score": "0.7346151", "text": "public boolean isExternalStorageWritable() {\r\n\t String state = Environment.getExternalStorageState();\r\n\t if (Environment.MEDIA_MOUNTED.equals(state)) {\r\n\t return true;\r\n\t }\r\n\t return false;\r\n\t}", "title": "" }, { "docid": "8f4fadbe85cb0b6adca0c59c90e7353d", "score": "0.7343978", "text": "public static boolean isExternalStorageWritable()\n\t{\n\t\t// Get states of MEDIA_MOUNTED and MEDIA_MOUNTED_READ_ONLY, return true only \n\t\t// external storage state is equals MEDIA_MOUNTED and not equals MEDIA_MOUNTED_READ_ONLY\n\t\treturn Environment.getExternalStorageState().equals(android.os.Environment.MEDIA_MOUNTED) \n\t\t\t&& !Environment.getExternalStorageState().equals(android.os.Environment.MEDIA_MOUNTED_READ_ONLY);\n\t}", "title": "" }, { "docid": "08c3660d0f23c945c6b0de01b574bd56", "score": "0.7336747", "text": "public boolean isExternalStorageWritable() {\n\t\tString state = Environment.getExternalStorageState();\n\t\tif (Environment.MEDIA_MOUNTED.equals(state)) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "08c3660d0f23c945c6b0de01b574bd56", "score": "0.7336747", "text": "public boolean isExternalStorageWritable() {\n\t\tString state = Environment.getExternalStorageState();\n\t\tif (Environment.MEDIA_MOUNTED.equals(state)) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "833a14c0496579c9098ce05fb6263a9f", "score": "0.73271525", "text": "public static boolean isExternalStorageWritable() {\n\t\tString state = Environment.getExternalStorageState();\n\t\treturn Environment.MEDIA_MOUNTED.equals(state);\n\t}", "title": "" }, { "docid": "833a14c0496579c9098ce05fb6263a9f", "score": "0.73271525", "text": "public static boolean isExternalStorageWritable() {\n\t\tString state = Environment.getExternalStorageState();\n\t\treturn Environment.MEDIA_MOUNTED.equals(state);\n\t}", "title": "" }, { "docid": "ff6ee2be9a79594ec8b23042f377b298", "score": "0.7320366", "text": "public boolean isExternalStorageWritable() {\n Log.i(TAG, \"isExternalStorageWritable()\");\n String state = Environment.getExternalStorageState();\n return Environment.MEDIA_MOUNTED.equals(state);\n }", "title": "" }, { "docid": "cb728284f643bf7cf202d06dcf82573a", "score": "0.731356", "text": "public boolean isExternalStorageReadable() {\r\n\t String state = Environment.getExternalStorageState();\r\n\t if (Environment.MEDIA_MOUNTED.equals(state) ||\r\n\t Environment.MEDIA_MOUNTED_READ_ONLY.equals(state)) {\r\n\t return true;\r\n\t }\r\n\t return false;\r\n\t}", "title": "" }, { "docid": "599468b9cf12946ed27dbbc7adc6406c", "score": "0.7312925", "text": "public boolean isExternalStorageWritable() {\n String state = Environment.getExternalStorageState();\n return Environment.MEDIA_MOUNTED.equals(state);\n }", "title": "" }, { "docid": "1011ee476e75a1154c867676ba8abe4a", "score": "0.7307955", "text": "public static boolean IsExternalStorageWriteable()\r\n {\n boolean mExternalStorageWriteable = false;\r\n String state = Environment.getExternalStorageState();\r\n\r\n if (Environment.MEDIA_MOUNTED.equals(state)) {\r\n // We can read and write the media\r\n /* mExternalStorageAvailable = */\r\n mExternalStorageWriteable = true;\r\n }\r\n else if (Environment.MEDIA_MOUNTED_READ_ONLY.equals(state)) {\r\n // We can only read the media\r\n // mExternalStorageAvailable = true;\r\n mExternalStorageWriteable = false;\r\n }\r\n else {\r\n // Something else is wrong. It may be one of many other states, but all we need\r\n // to know is we can neither read nor write\r\n /* mExternalStorageAvailable = */\r\n mExternalStorageWriteable = false;\r\n }\r\n return mExternalStorageWriteable;\r\n }", "title": "" }, { "docid": "075708b4e7a45b63c6bbcaa34511245c", "score": "0.7298932", "text": "public boolean isExternalStorageReadable() {\n\t\tString state = Environment.getExternalStorageState();\n\t\tif (Environment.MEDIA_MOUNTED.equals(state)\n\t\t\t\t|| Environment.MEDIA_MOUNTED_READ_ONLY.equals(state)) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "075708b4e7a45b63c6bbcaa34511245c", "score": "0.7298932", "text": "public boolean isExternalStorageReadable() {\n\t\tString state = Environment.getExternalStorageState();\n\t\tif (Environment.MEDIA_MOUNTED.equals(state)\n\t\t\t\t|| Environment.MEDIA_MOUNTED_READ_ONLY.equals(state)) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "2f3cbf52e5a68e3541b090267f540d8e", "score": "0.72917473", "text": "public static boolean isExternalStorageReadable() {\r\n\t String state = Environment.getExternalStorageState();\r\n\t if (Environment.MEDIA_MOUNTED.equals(state) ||\r\n\t Environment.MEDIA_MOUNTED_READ_ONLY.equals(state)) {\r\n\t \tLog.i(LOG_TAG + \": isExternalStorageReadable\", \"External storage is readable\");\r\n\t return true;\r\n\t }\r\n\t Log.e(LOG_TAG + \": isExternalStorageReadable\", \"External storage is NOT readable\");\r\n\t return false;\r\n\t}", "title": "" }, { "docid": "83f5461a27650dddfd0f9ecd61ac1eaf", "score": "0.72899884", "text": "public static boolean isExternalReadable(){\n\t\tString state = Environment.getExternalStorageState();\n\t\tif (Environment.MEDIA_MOUNTED.equals(state)) {\n\t\t // We can read and write the media\n\t\t return true;\n\t\t} else if (Environment.MEDIA_MOUNTED_READ_ONLY.equals(state)) {\n\t\t // We can only read the media\n\t\t return true;\n\t\t} else {\n\t\t // Something else is wrong. It may be one of many other states, but all we need\n\t\t // to know is we can neither read nor write\n\t\t \treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "119521a9fbc8992ba6920bbdbf1325b2", "score": "0.7274152", "text": "public static boolean isExternalStorageReadable() {\n\t\tString state = Environment.getExternalStorageState();\n\t\tif (Environment.MEDIA_MOUNTED.equals(state) ||\n\t\t\t\tEnvironment.MEDIA_MOUNTED_READ_ONLY.equals(state)) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "73dfdeac87f39135bd732a6cf09d6dbd", "score": "0.72656065", "text": "public boolean isExternalStorageReadable() {\n String state = Environment.getExternalStorageState();\n if (Environment.MEDIA_MOUNTED.equals(state) ||\n Environment.MEDIA_MOUNTED_READ_ONLY.equals(state)) {\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "73dfdeac87f39135bd732a6cf09d6dbd", "score": "0.72656065", "text": "public boolean isExternalStorageReadable() {\n String state = Environment.getExternalStorageState();\n if (Environment.MEDIA_MOUNTED.equals(state) ||\n Environment.MEDIA_MOUNTED_READ_ONLY.equals(state)) {\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "73dfdeac87f39135bd732a6cf09d6dbd", "score": "0.72656065", "text": "public boolean isExternalStorageReadable() {\n String state = Environment.getExternalStorageState();\n if (Environment.MEDIA_MOUNTED.equals(state) ||\n Environment.MEDIA_MOUNTED_READ_ONLY.equals(state)) {\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "785839cd56d864f566dba5ca34b60230", "score": "0.72619116", "text": "public static boolean isExternalStorageWritable() {\r\n\t String state = Environment.getExternalStorageState();\r\n\t if (Environment.MEDIA_MOUNTED.equals(state)) {\r\n\t \tLog.i(LOG_TAG + \": isExternalStorageWritable\", \"External storage is writeable\");\r\n\t return true;\r\n\t }\r\n\t Log.e(LOG_TAG + \": isExternalStorageWritable\", \"External storage is NOT writeable\");\r\n\t return false;\r\n\t}", "title": "" }, { "docid": "a36804182249e22ab9816ef79d351ead", "score": "0.72598803", "text": "public boolean isExternalStorageReadable() {\n String state = Environment.getExternalStorageState();\n if (Environment.MEDIA_MOUNTED.equals(state) ||\n Environment.MEDIA_MOUNTED_READ_ONLY.equals(state)) {\n return true;\n }\n\n return false;\n }", "title": "" }, { "docid": "4d4037ef1a76ba8cc492c7d33ff75419", "score": "0.72593784", "text": "public boolean checkStoragePermission() {\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.WRITE_EXTERNAL_STORAGE)\n == PackageManager.PERMISSION_GRANTED) {\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "3b84ec845dae91f62c498fea51f29e08", "score": "0.725921", "text": "public static boolean isExternalStorageReadable() {\n String state = Environment.getExternalStorageState();\n if (Environment.MEDIA_MOUNTED.equals(state) ||\n Environment.MEDIA_MOUNTED_READ_ONLY.equals(state)) {\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "3b84ec845dae91f62c498fea51f29e08", "score": "0.725921", "text": "public static boolean isExternalStorageReadable() {\n String state = Environment.getExternalStorageState();\n if (Environment.MEDIA_MOUNTED.equals(state) ||\n Environment.MEDIA_MOUNTED_READ_ONLY.equals(state)) {\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "3b84ec845dae91f62c498fea51f29e08", "score": "0.725921", "text": "public static boolean isExternalStorageReadable() {\n String state = Environment.getExternalStorageState();\n if (Environment.MEDIA_MOUNTED.equals(state) ||\n Environment.MEDIA_MOUNTED_READ_ONLY.equals(state)) {\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "49c429d19fec46e42d0ed1d838bbd986", "score": "0.7252889", "text": "private boolean checkStoragePermission() {\n\n /*Checking if Storage Permission is Enabled or Not\n return true if Enabled otherwise return false*/\n boolean result = ContextCompat.checkSelfPermission(this, Manifest.permission.WRITE_EXTERNAL_STORAGE) == (PackageManager.PERMISSION_GRANTED);\n return result;\n }", "title": "" }, { "docid": "e119e6916e7b029890cb59d719156265", "score": "0.72518444", "text": "public static boolean isExternalStorageReadable() {\n final String state = Environment.getExternalStorageState();\n if (Environment.MEDIA_MOUNTED.equals(state)\n || Environment.MEDIA_MOUNTED_READ_ONLY.equals(state)) {\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "dbd396d168ec01d36835c717e35446b8", "score": "0.72397876", "text": "public void checkStoragePermission() {\n Log.e(LOG_TAG, \"--checkStoragePermission--\");\n if (ContextCompat.checkSelfPermission(MainActivity.this,\n android.Manifest.permission.READ_EXTERNAL_STORAGE) == PackageManager.PERMISSION_GRANTED) {\n Log.e(LOG_TAG, \"Permission already granted\");\n createBrowser();\n } else {\n requestStoragePermission();\n }\n }", "title": "" }, { "docid": "c086212091a8adb7f09f27edd2920206", "score": "0.720108", "text": "public boolean isExternalStorageWritable() {\n String state = Environment.getExternalStorageState();\n if (Environment.MEDIA_MOUNTED.equals(state)) {\n result.setText(\"외부메모리 읽기 쓰기 모두 가능\");\n return true;\n }\n result.setText(\"외부메모리 마운트 안됨\");\n return false;\n }", "title": "" }, { "docid": "562a656089cd23e9fa0870d3d56f48c1", "score": "0.71894693", "text": "public boolean isExternalStorageReadable() {\n String state = Environment.getExternalStorageState();\n if (Environment.MEDIA_MOUNTED.equals(state)||\n Environment.MEDIA_MOUNTED_READ_ONLY.equals(state)) {\n result.setText(\"외부메모리 읽기만 가능\");\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "b4f49f650ece81f98babcd30d01d53da", "score": "0.71708095", "text": "public static boolean isAvailable() {\n return Environment.MEDIA_MOUNTED.equals(Environment.getExternalStorageState());\n }", "title": "" }, { "docid": "4159ea6d89fdbe6d9d6f3deb0bb3ef82", "score": "0.71392167", "text": "public boolean isExternalStorageWritable() {\n Boolean state = Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED);\n return state;\n }", "title": "" }, { "docid": "b6ecd5b75784b8ebe93b03896fc6b7a1", "score": "0.7095288", "text": "public static boolean isExternalMemoryAvailable() {\n return Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED);\n }", "title": "" }, { "docid": "64f5b652e0ed803e4d5e14d2fbbb6e53", "score": "0.7090061", "text": "private void setExternalStorageState() {\r\n\r\n\t\t// checking access to SD card\r\n\t\tString state = Environment.getExternalStorageState();\r\n\r\n\t\tif (Environment.MEDIA_MOUNTED.equals(state)) {\r\n\t\t\t// We can read and write the media\r\n\t\t\texternalStorageAvailable = externalStorageWriteable = true;\r\n\t\t} else if (Environment.MEDIA_MOUNTED_READ_ONLY.equals(state)) {\r\n\t\t\t// We can only read the media\r\n\t\t\texternalStorageAvailable = true;\r\n\t\t\texternalStorageWriteable = false;\r\n\t\t} else {\r\n\t\t\t// Something else is wrong. It may be one of many other states, but\r\n\t\t\t// all we need to know is we can neither read nor write\r\n\t\t\texternalStorageAvailable = externalStorageWriteable = false;\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "ef89a033108ec26e4bfbedce58c68e91", "score": "0.7088233", "text": "private boolean checkStoragePermission(){\n boolean permissionResult = ContextCompat.checkSelfPermission(this, Manifest.permission.WRITE_EXTERNAL_STORAGE) == (PackageManager.PERMISSION_GRANTED);\n\n return permissionResult;\n\n }", "title": "" }, { "docid": "48cbd1f1ede9698eb604d1416131a406", "score": "0.70841527", "text": "public static boolean externalMemoryAvailable() {\n return android.os.Environment.getExternalStorageState().equals(\n android.os.Environment.MEDIA_MOUNTED);\n }", "title": "" }, { "docid": "e6766ef26afd2a779528878a7f7d9add", "score": "0.6994676", "text": "private boolean checkStoragePermission() {\n return (ContextCompat.checkSelfPermission(getActivity(),Manifest.permission.READ_EXTERNAL_STORAGE)\n == PackageManager.PERMISSION_GRANTED );\n }", "title": "" }, { "docid": "bfa244660ae3cd038fa1f391675b27ca", "score": "0.6991918", "text": "public boolean isWritable() {\r\n String state = Environment.getExternalStorageState();\r\n if (Environment.MEDIA_MOUNTED.equals(state)) {\r\n return true;\r\n }\r\n return false;\r\n }", "title": "" }, { "docid": "863b560a93f196d929349f583e3c4e50", "score": "0.6960835", "text": "void directoryAvailable(StorageDirectory sd) throws IOException;", "title": "" }, { "docid": "d3154287901408acf2491e9a5e547977", "score": "0.69366664", "text": "public void checkWriteExternalPermission()\n {\n if (ContextCompat.checkSelfPermission(FranchiserRegistration.this,\n android.Manifest.permission.WRITE_EXTERNAL_STORAGE)\n != PackageManager.PERMISSION_GRANTED) {\n // No explanation needed, we can request the permission.\n\n ActivityCompat.requestPermissions(FranchiserRegistration.this,\n new String[]{android.Manifest.permission.WRITE_EXTERNAL_STORAGE},\n MY_PERMISSIONS_REQUEST_WRITE_EXTERNAL_STORAGE);\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 }\n }", "title": "" }, { "docid": "da6e121f1aec73d72d4d826e406c315d", "score": "0.6936007", "text": "private boolean verifyStoragePermissions() {\n int readPermission = ActivityCompat.checkSelfPermission(this, Manifest.permission.READ_EXTERNAL_STORAGE);\n if (readPermission != PackageManager.PERMISSION_GRANTED) {\n // We don't have permission so prompt the user\n ActivityCompat.requestPermissions(\n this,\n PERMISSIONS_STORAGE,\n REQUEST_CODE_READ_EXTERNAL_STORAGE\n );\n\n return false;\n }\n\n return true;\n }", "title": "" }, { "docid": "0bb41ec061d4a8f8c5b12b08b6b0667b", "score": "0.691565", "text": "private void CheckPermission () {\n if (MainUtil.isExternalStorageWritable()) {\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.WRITE_EXTERNAL_STORAGE},\n REQUEST_WRITE_STORAGE);\n }\n }", "title": "" }, { "docid": "c43dff30c1810539d9c42e77208cd30a", "score": "0.6909288", "text": "private void checkPermission() {\n int readExtStorage = checkSelfPermission(Manifest.permission.READ_EXTERNAL_STORAGE);\n int writeExtStorage = checkSelfPermission(Manifest.permission.WRITE_EXTERNAL_STORAGE);\n int mediaExtStorage = checkSelfPermission(Manifest.permission.WRITE_MEDIA_STORAGE);\n int phoneExtStorage = checkSelfPermission(Manifest.permission.READ_PHONE_STATE);\n List<String> mPermissionStrings = new ArrayList<String>();\n boolean mRequest = false;\n\n if (writeExtStorage != PackageManager.PERMISSION_GRANTED) {\n mPermissionStrings.add(Manifest.permission.WRITE_EXTERNAL_STORAGE);\n mRequest = true;\n }\n if (mRequest == true) {\n String[] mPermissionList = new String[mPermissionStrings.size()];\n mPermissionList = mPermissionStrings.toArray(mPermissionList);\n requestPermissions(mPermissionList, PERMISSION_REQUEST_CODE_RECORDING);\n return;\n }\n }", "title": "" }, { "docid": "76a31becc412696418031231898e9eb8", "score": "0.69050944", "text": "@SuppressLint(\"NewApi\")\n private static boolean isExternalStorageRemovable() {\n\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.GINGERBREAD) {\n return Environment.isExternalStorageRemovable();\n }\n\n return true;\n }", "title": "" }, { "docid": "b0059722f527c464d379a0ee27861ad0", "score": "0.686024", "text": "@Override\n public boolean isStorageConnected() {\n return true;\n }", "title": "" }, { "docid": "8de9385a00c56067c781b5790bff47cf", "score": "0.6855143", "text": "private boolean checkStoragePermission(){\n boolean result = ContextCompat.checkSelfPermission(getActivity(),Manifest.permission.WRITE_EXTERNAL_STORAGE)\n == (PackageManager.PERMISSION_GRANTED);\n return result;\n\n }", "title": "" }, { "docid": "8c52f3f4ba305f42771c7791f4e535cb", "score": "0.6804017", "text": "private void checkStoragePermissionAndRequest(){\n\t\tif (ContextCompat.checkSelfPermission(this,\n\t\t\t\tEXTERNAL_PERMS[0])\n\t\t\t\t!= PackageManager.PERMISSION_GRANTED) {\n\n\t\t\t// Permission is not granted\n\t\t\t// Should we show an explanation?\n\t\t\tif (ActivityCompat.shouldShowRequestPermissionRationale(this,\n\t\t\t\t\tEXTERNAL_PERMS[0])) {\n\t\t\t\t// Show an explanation to the user *asynchronously* -- don't block\n\t\t\t\t// this thread waiting for the user's response! After the user\n\t\t\t\t// sees the explanation, try again to request the permission.\n\t\t\t\tToast.makeText(this,\"Please understand that you need to grant \" +\n\t\t\t\t\t\t\"the app Read/Write Storage permission to be able to use it\",\n\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t} else {\n\t\t\t\t// No explanation needed; request the permission\n\t\t\t\tActivityCompat.requestPermissions(this,\n\t\t\t\t\t\tEXTERNAL_PERMS,\n\t\t\t\t\t\tMY_PERMISSIONS_REQUEST);\n\n\t\t\t\t// MY_PERMISSIONS_REQUEST_READ_CONTACTS is an\n\t\t\t\t// app-defined int constant. The callback method gets the\n\t\t\t\t// result of the request.\n\t\t\t}\n\t\t} else {\n\t\t\t// Permission has already been granted\n\t\t\tif(lastAction == RequestedAction.REQUESTED_ACTION_COMPRESS) {\n\t\t\t\tIntent intent = new Intent(StartupActivity.this, CompressActivity.class);\n\t\t\t\tstartActivity(intent);\n\t\t\t}else {\n\n\t\t\t\tIntent intent = new Intent(StartupActivity.this, ExtractionActivity.class);\n\t\t\t\tstartActivity(intent);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "934c5cecc6467c5c22835b43e0112878", "score": "0.6799487", "text": "public static boolean checkStorageAvailability(Activity activity) {\n\t\tboolean storageAvailable = storageAvailable();\n\t\tif (!storageAvailable) {\n\t\t\tactivity.finish();\n\t\t\tactivity.startActivity(new Intent(activity, StorageErrorActivity.class));\n\t\t}\n\t\treturn storageAvailable;\n\t}", "title": "" }, { "docid": "dbaf0401fd19cf769a1635a8056326f8", "score": "0.67697984", "text": "private boolean checkPermissionFromDevice() {\n int readExternalStorageResult = ContextCompat.checkSelfPermission(this,\n Manifest.permission.READ_EXTERNAL_STORAGE);\n return readExternalStorageResult == PackageManager.PERMISSION_GRANTED;\n }", "title": "" }, { "docid": "e4cb213780ff771e386e1f31a1dc1131", "score": "0.6759624", "text": "public boolean mo36508a() {\n String externalStorageState = Environment.getExternalStorageState();\n return \"mounted\".equals(externalStorageState) || \"mounted_ro\".equals(externalStorageState);\n }", "title": "" }, { "docid": "c3f0d084676755b269e42d880b1bf482", "score": "0.67529655", "text": "public void CheckSdcard(){\n String state = Environment.getExternalStorageState();\n if (state.equals(Environment.MEDIA_MOUNTED)) {\n // 对SD 卡上的存储可以进行读/写操作\n StatusView.setText(\"Can read and write SD card now\");\n // mExternalStorageAvailable = mExternalStorageWriteable = true;\n } else\n if (state.equals(Environment.MEDIA_MOUNTED_READ_ONLY))\n {\n //对SD 卡上的存储可以进行读操作\n StatusView.setText(\"Can only read SD card now\");\n // mExternalStorageAvailable = true;\n // mExternalStorageWriteable = false;\n } else {\n //对SD 卡上的存储不可用\n StatusView.setText(\"SD card disabled!\");\n // mExternalStorageAvailable = mExternalStorageWriteable = false;\n }\n }", "title": "" }, { "docid": "5dc73c0d757c2ade0081bfa4d50dbc12", "score": "0.6730122", "text": "private void checkReadExternalStoragePermission() {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.READ_EXTERNAL_STORAGE) ==\n PackageManager.PERMISSION_GRANTED) {\n getSupportLoaderManager().initLoader(GalleryUtil.MEDIASTORE_LOADER_ID, null, this);\n } else {\n requestPermissions(new String[]{Manifest.permission.READ_EXTERNAL_STORAGE},\n REQUEST_CODE_READ_EXTERNAL);\n }\n } else {\n getSupportLoaderManager().initLoader(GalleryUtil.MEDIASTORE_LOADER_ID, null, this);\n }\n }", "title": "" }, { "docid": "4a5e17bb608dcef6d6867dbff86cbaa1", "score": "0.67215174", "text": "@TargetApi(Build.VERSION_CODES.GINGERBREAD)\n public static boolean isExternalStorageRemovable() {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.GINGERBREAD) {\n return Environment.isExternalStorageRemovable();\n }\n return true;\n }", "title": "" }, { "docid": "a5df862adaf5e9bb20d1b1cc7b0b5f7b", "score": "0.6720703", "text": "private void checkAvailableStorage() throws TradeSessionManagerException {\n if (!storage.isAvailable()) {\n throw new TradeSessionManagerException(\"Storage is unavailable\");\n }\n }", "title": "" }, { "docid": "761f7c6193eb9aa7dd57c3e0732fba30", "score": "0.67151904", "text": "public void askForPermissionExternalStorage() {\n if (ContextCompat.checkSelfPermission(activity,\n Manifest.permission.WRITE_EXTERNAL_STORAGE)\n != PackageManager.PERMISSION_GRANTED) { //permission yet to be granted\n\n getPermissionExternalStorage();\n } else { //permission already granted\n if (permissionGrantListener != null) {\n permissionGrantListener.OnGranted();\n }\n }\n }", "title": "" }, { "docid": "bb5c892a313ba6a830757deb9a3d741e", "score": "0.6706745", "text": "private static boolean checkFsWritable() {\n String directoryName =\n Environment.getExternalStorageDirectory().toString() + \"/DCIM\";\n File directory = new File(directoryName);\n if (!directory.isDirectory()) {\n if (!directory.mkdirs()) {\n return false;\n }\n }\n return directory.canWrite();\n }", "title": "" }, { "docid": "f03ccd0ec4927385829c44c5a3911fa3", "score": "0.6682318", "text": "public boolean checkWritePermission() {\n int result = ContextCompat.checkSelfPermission(this,\n Manifest.permission.WRITE_EXTERNAL_STORAGE);\n if (result == PackageManager.PERMISSION_GRANTED) {\n return true;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "ac4accaef94055b392dd9b8d51e72bc3", "score": "0.6671208", "text": "public void checkPermissions() {\n int writeExternalStoragePermission = ContextCompat.checkSelfPermission(this, Manifest.permission.WRITE_EXTERNAL_STORAGE);\n // If do not grant write external storage permission.\n if(writeExternalStoragePermission!= PackageManager.PERMISSION_GRANTED)\n {\n // Request user to grant write external storage permission.\n ActivityCompat.requestPermissions(this, new String[]{Manifest.permission.WRITE_EXTERNAL_STORAGE}, 123);\n }\n else {\n //Toast.makeText(getApplicationContext(), \"Permission already granted.\", Toast.LENGTH_LONG).show();\n getPhoneData();\n }\n\n }", "title": "" }, { "docid": "99f47400e01c6f80e5164eba61971111", "score": "0.66577923", "text": "public boolean supportsStorageRetrieval() {\n return false;\n }", "title": "" }, { "docid": "b79665677a25b6cd9a07c0fb7fd4016d", "score": "0.6627938", "text": "@TargetApi(Build.VERSION_CODES.GINGERBREAD)\n public static boolean isExternalStorageRemovable() {\n if (Utils.hasGingerbread()) {\n return Environment.isExternalStorageRemovable();\n }\n return true;\n }", "title": "" }, { "docid": "21cddb4a8d6c75539e45378680ac71a7", "score": "0.6592166", "text": "boolean hasCloudStoragePath();", "title": "" }, { "docid": "a7dc4eb20a3c906c9413adb9f9127488", "score": "0.6588835", "text": "public boolean isWriteStoragePermissionGranted() {\n boolean permissionGranted = false;\n // if android version is less than 23 there are no read permissions needed\n if (Build.VERSION.SDK_INT >= 23) {\n // versions 23 and up require you to get permission\n if (checkSelfPermission(android.Manifest.permission.WRITE_EXTERNAL_STORAGE) == PackageManager.PERMISSION_GRANTED) {\n permissionGranted = true;\n } else {\n // We do not have permission. So make a request to the user for permission.\n // This request creates a dialog box that the user has to answer to give permission.\n // The answer is asynchronous. In other words this call return immediately and does not wait for an answer.\n // When the answer does come, it uses a callback onRequestPermissionsResult() to provide the answer.\n ActivityCompat.requestPermissions(this, new String[]{Manifest.permission.WRITE_EXTERNAL_STORAGE}, WRITE);\n permissionGranted = false;\n }\n } else { //permission is automatically granted on sdk<23 upon installation\n permissionGranted = true;\n }\n return permissionGranted;\n }", "title": "" }, { "docid": "75d0181415a77e96455aeca4e38a0999", "score": "0.65393686", "text": "public static boolean isExternalStorageRemovable() {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.GINGERBREAD) {\n return Environment.isExternalStorageRemovable();\n }\n return true;\n }", "title": "" }, { "docid": "03b05e28f20adc9f651cffd29c0e6540", "score": "0.65229213", "text": "public static void verifyStoragePermissions(Activity activity) {\n int writePermission = ActivityCompat.checkSelfPermission(activity,android.Manifest.permission.WRITE_EXTERNAL_STORAGE);\n int readPermission = ActivityCompat.checkSelfPermission(activity,android.Manifest.permission.READ_EXTERNAL_STORAGE);\n\n if (writePermission != PackageManager.PERMISSION_GRANTED || readPermission != PackageManager.PERMISSION_GRANTED) {\n // We don't have permission so prompt the user\n ActivityCompat.requestPermissions(\n activity,\n PERMISSIONS_STORAGE,\n REQUEST_EXTERNAL_STORAGE\n );\n }\n }", "title": "" }, { "docid": "4825379d74e89e214b6daf13809d6e2c", "score": "0.6522774", "text": "private boolean checkPermissionFromDevice() {\n int write_external_storage_result = ContextCompat.checkSelfPermission(this, Manifest.permission.WRITE_EXTERNAL_STORAGE);\n int read_external_storage_result = ContextCompat.checkSelfPermission(this, Manifest.permission.READ_EXTERNAL_STORAGE);\n int record_audio_result = ContextCompat.checkSelfPermission(this, Manifest.permission.RECORD_AUDIO);\n return write_external_storage_result == PackageManager.PERMISSION_GRANTED &&\n record_audio_result == PackageManager.PERMISSION_GRANTED &&\n read_external_storage_result == PackageManager.PERMISSION_GRANTED;\n }", "title": "" }, { "docid": "c1ebd73ff2ef33cc83bf02fcc5a47434", "score": "0.6517659", "text": "public boolean isReadStoragePermissionGranted() {\n boolean permissionGranted = false;\n\n // if android version is less than 23 there are no read permissions needed\n if (Build.VERSION.SDK_INT >= 23) {\n // versions 23 and up require you to get permission\n if (checkSelfPermission(Manifest.permission.READ_EXTERNAL_STORAGE) == PackageManager.PERMISSION_GRANTED) {\n permissionGranted = true;\n } else {\n // We do not have permission. So make a request to the user for permission.\n // This request creates a dialog box that the user has to answer to give permission.\n // The answer is asynchronous. In other words this call return immediately and does not wait for an answer.\n // When the answer does come, it uses a callback onRequestPermissionsResult() to provide the answer.\n ActivityCompat.requestPermissions(this, new String[]{Manifest.permission.READ_EXTERNAL_STORAGE}, READ);\n permissionGranted = false;\n }\n } else { //permission is automatically granted on sdk<23 upon installation\n permissionGranted = true;\n }\n return permissionGranted;\n }", "title": "" }, { "docid": "5ce13640c1f48bb1a9d6ed28bd0ba8f4", "score": "0.64916384", "text": "public void verifyStoragePermissions(Activity activity) {\n int permission = ActivityCompat.checkSelfPermission(activity, Manifest.permission.WRITE_EXTERNAL_STORAGE);\n\n if (permission != PackageManager.PERMISSION_GRANTED) {\n // We don't have permission so prompt the user\n ActivityCompat.requestPermissions(\n activity,\n PERMISSIONS_STORAGE,\n REQUEST_EXTERNAL_STORAGE\n );\n }\n else\n {\n init();\n }\n }", "title": "" }, { "docid": "f12ae83cd382ab3413f278caa9ca49d0", "score": "0.6487091", "text": "public void verifyStoragePermissions(Activity activity) {\n int permission = ActivityCompat.checkSelfPermission(activity,\n Manifest.permission.WRITE_EXTERNAL_STORAGE);\n if (Build.VERSION.SDK_INT < Build.VERSION_CODES.M) {\n return ;\n }\n if (permission != PackageManager.PERMISSION_GRANTED) {\n // We don't have permission so prompt the user\n ActivityCompat.requestPermissions(activity, PERMISSIONS_STORAGE,\n REQUEST_EXTERNAL_STORAGE);\n }else{\n Logger.d(\"have permission\");\n }\n }", "title": "" }, { "docid": "13fe7d5cd5809f036391cb548a192088", "score": "0.6479223", "text": "public static native int isSdWriteError();", "title": "" }, { "docid": "8d61bbb997de9e372860fa25bfdb3bf5", "score": "0.64783597", "text": "@RequiresApi(api = Build.VERSION_CODES.M)\n private void verifyStoragePermissions() {\n int permission = ActivityCompat.checkSelfPermission(getApplicationContext(), Manifest.permission.READ_EXTERNAL_STORAGE);\n\n if (permission != PackageManager.PERMISSION_GRANTED) {\n // We don't have permission so prompt the user\n requestPermissions(new String[]{Manifest.permission.READ_EXTERNAL_STORAGE}, MY_GALLERY_REQUES_CODE);\n }\n }", "title": "" } ]
263dcb9838302d75cdd3db372cfbdb5b
Inflate the layout for this fragment
[ { "docid": "472ef55d3b4256546fcfb61bf3a8a269", "score": "0.0", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n binding = DataBindingUtil.inflate(inflater, R.layout.fragment_project_list, container, false);\n\n projectAdapter = new ProjectAdapter(projectClickCallback);\n binding.projectList.setAdapter(projectAdapter);\n binding.setIsLoading(true);\n\n return binding.getRoot();\n }", "title": "" } ]
[ { "docid": "8dc6e43eb0ba072f1910928f55684a0a", "score": "0.68880737", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_qr_authentication_parsing, container, false);\n }", "title": "" }, { "docid": "db2be29bf8b275cbfe6966f5298b1698", "score": "0.68803567", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_we_chat, container, false);\n mIv = inflate.findViewById(R.id.iv);\n mTab = inflate.findViewById(R.id.tab);\n mVp = inflate.findViewById(R.id.vp);\n\n initData();\n return inflate;\n\n\n }", "title": "" }, { "docid": "5aa9e2f22788ea5f34a1bcb0693358d2", "score": "0.68447435", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.lihatdatafrag, container, false);\n\n }", "title": "" }, { "docid": "46ba413c4de6c2363cd51d98687bd1ef", "score": "0.68119526", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n v = inflater.inflate(R.layout.fragment_sick__detail_, container, false);\n init();\n return v;\n }", "title": "" }, { "docid": "9188cf41820ef0358a164a3cb7655afe", "score": "0.6783374", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.youtubefrag, parent, true);\n }", "title": "" }, { "docid": "fcca151ebb89da144daa81de701b7e4e", "score": "0.6763887", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_both_feeds_in_one, container, false);\n }", "title": "" }, { "docid": "b41a97c15cbeb7a18021e79645277870", "score": "0.67475206", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_opportunity_feed, container, false);\n }", "title": "" }, { "docid": "95e7d613209030edfbe5b5b8f3248b92", "score": "0.6722023", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_rating, container, false);\n addControls(view);\n addEvents();\n return view;\n }", "title": "" }, { "docid": "445b8ee5ea39a53064ea627e6aef83f9", "score": "0.67187995", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_assignment_record, container, false);\n }", "title": "" }, { "docid": "3492f6d1c7a4e705c4b4ca161b4a690e", "score": "0.6703984", "text": "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_video_call, container, false);\r\n\r\n intIds(view);\r\n setAdapter();\r\n\r\n return view;\r\n }", "title": "" }, { "docid": "ba6d2dcd9891adc401fb21b5674a2870", "score": "0.67024136", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_ssjde, parent, false);\n }", "title": "" }, { "docid": "db4f4388029e696003104d7fb230a0fc", "score": "0.6701575", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_she_qu_fragment, container, false);\n }", "title": "" }, { "docid": "08d8bd2b30274511a733deb2edb1ae9b", "score": "0.6672307", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState)\n {\n View view = inflater.inflate(R.layout.fragment_doctor_details, container, false);\n stars = new ArrayList<>();\n\n avatar = view.findViewById(R.id.civ_avatar);\n name = view.findViewById(R.id.tv_name);\n specialty = view.findViewById(R.id.tv_specialty);\n\n stars.add((ImageView) view.findViewById(R.id.iv_star0));\n stars.add((ImageView) view.findViewById(R.id.iv_star1));\n stars.add((ImageView) view.findViewById(R.id.iv_star2));\n stars.add((ImageView) view.findViewById(R.id.iv_star3));\n stars.add((ImageView) view.findViewById(R.id.iv_star4));\n\n rating = view.findViewById(R.id.tv_rating);\n about = view.findViewById(R.id.tv_description_output);\n address = view.findViewById(R.id.tv_location_output);\n setFields();\n return view;\n }", "title": "" }, { "docid": "cf53f982c5ef04acf80599f17fda6a91", "score": "0.66671383", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_all_meetings, container, false);\n\n init(v);\n\n return v;\n }", "title": "" }, { "docid": "286bb034dbd4caa99f34b5e1258c3234", "score": "0.666249", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v= inflater.inflate(R.layout.fragment_pharma, container, false);\n init(v);\n intialiseRetrofit();\n getData();\n\n setuprec();\n return v;\n }", "title": "" }, { "docid": "b77365ff11c245f761c8310f6f558d1b", "score": "0.66556406", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n mRes = getResources();\n setupUnitPreferences();\n\n View v = inflater.inflate(R.layout.fragment_capture_plot, container, false);\n\n LoadControls(v);\n AddClickListener();\n ExecuteTasks();\n\n\n return v;\n }", "title": "" }, { "docid": "2239fe258628899c83422b78a0c56a05", "score": "0.663946", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_bank_details, container, false);\n initWidgets(view);\n return view;\n }", "title": "" }, { "docid": "94f65f0704801de2819a8d938d5676de", "score": "0.6622015", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_rating, container, false);\n }", "title": "" }, { "docid": "6360ea50392a04810856e0419580586a", "score": "0.6613697", "text": "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\tView view = inflater.inflate(R.layout.fragment_info_collect_light, container, false);\r\n\t\tinitView(view);\r\n\t\treturn view;\r\n\t}", "title": "" }, { "docid": "416a9f463255caf9df04acc46f95dae9", "score": "0.66126", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.frag_hm_main, container, false);\n }", "title": "" }, { "docid": "90801ceb8821a1e0a6e6cc0b43b8df67", "score": "0.66089356", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_inner, container, false);\n }", "title": "" }, { "docid": "210dbd77b746cc52a523ce9e3286e917", "score": "0.6606975", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n\n if (layout != null && layout.equals(\"myaccount\"))\n return inflater.inflate(R.layout.fragment_myaccount, container, false);\n else if (layout != null && layout.equals(\"login\"))\n return inflater.inflate(R.layout.fragment_login, container, false);\n else if (layout != null && layout.equals(\"cemail\"))\n return inflater.inflate(R.layout.fragment_change_email, container, false);\n else if (layout != null && layout.equals(\"cpass\"))\n return inflater.inflate(R.layout.fragment_change_pass, container, false);\n else if (layout != null && layout.equals(\"cnnm\"))\n return inflater.inflate(R.layout.fragment_change_name, container, false);\n else return inflater.inflate(R.layout.fragment_progress, container, false);\n }", "title": "" }, { "docid": "71cd995605431d64bbacfd54aeef9a77", "score": "0.6606261", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_ad_post_home, container, false);\n\n initWidget(view);\n\n return view;\n }", "title": "" }, { "docid": "698aaed6bcb4c07954796c98cd99c2e0", "score": "0.6604072", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_membebr_ship_info, container, false);\n }", "title": "" }, { "docid": "4da17d8119ad28a10f555b817473fb86", "score": "0.6597955", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_image_uploader, container, false);\n\n }", "title": "" }, { "docid": "4017ec32a2cdc92d52c28302433867c7", "score": "0.6591818", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n\n return inflater.inflate(R.layout.fragment_plan, container, false);\n }", "title": "" }, { "docid": "9850c86c5c398cb5e79af6f81897b27a", "score": "0.6591794", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_graph, container, false);\n init(view);\n buttonInit(view);\n return view;\n }", "title": "" }, { "docid": "6b42b5951484837b6947b11d152bdab9", "score": "0.6583863", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n // TODO Auto-generated method stub\n View mainView = inflater.inflate(R.layout.fragment_posts, container, false);\n\n // setup layout controls\n initializeControls(mainView);\n initializeActions();\n setData();\n\n return mainView;\n }", "title": "" }, { "docid": "a4ea826c6009d1de55521599e8b0a2f7", "score": "0.6579435", "text": "@Override\n public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_booking_summary, container, false);\n }", "title": "" }, { "docid": "5b9c8f2b36b4db7c78ee15a469085fa1", "score": "0.65746695", "text": "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\tsuper.onCreateView(inflater, container, savedInstanceState);\r\n\t\tView view = inflater.inflate(R.layout.barber_schedule_index,\r\n\t\t\t\tcontainer, false);\r\n\t\tinitView(view);\r\n\t\tinitListener();\r\n\t\treturn view;\r\n\t}", "title": "" }, { "docid": "b151ebad6fd3e475fc4f02d76e9504a7", "score": "0.6573926", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)\n {\n return inflater.inflate(R.layout.fragment_data_2, container, false);\n }", "title": "" }, { "docid": "ff1c3ca2c41e834369b50efd125d72f9", "score": "0.6573329", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState){\n return inflater.inflate(R.layout.fragment_training_types, container, false);\n }", "title": "" }, { "docid": "2205765bf889e5af9fa5abd02178e163", "score": "0.65704024", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n setRootView(\n inflater.inflate(\n R.layout.f_detail_video,\n container,\n false));\n assignViews();\n drawList();\n return getRootView();\n }", "title": "" }, { "docid": "762a6fd89511d8c20b20392c1eac9182", "score": "0.6567469", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_news_grid, container, false);\n }", "title": "" }, { "docid": "0030868a3dee27a2c2590ee1085e6a52", "score": "0.65656066", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_result_multi_player, container, false);\n }", "title": "" }, { "docid": "d634b7d2660dced6bce4f405990a331e", "score": "0.65645653", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_chat_instagram, container, false);\n }", "title": "" }, { "docid": "4e3e32b959f46369ef95ca590e851e50", "score": "0.6564428", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.frg_map_all, container, false);\n }", "title": "" }, { "docid": "c9693db49d4002aca4d7bf1c607dfcc6", "score": "0.65642715", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_gouter, container, false);\n }", "title": "" }, { "docid": "923ec9e0d095793a0e3a7f2ca99bd608", "score": "0.65637386", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n View rootView = inflater.inflate(R.layout.fragment_profile_fragments, container, false);\n mContext = getActivity();\n currentUser=ModelManager.modelManager().getCurrentUser();\n pager = rootView.findViewById(R.id.pager);\n setAdvertisementAdapter();\n ll_main = rootView.findViewById(R.id.ll_main);\n img_close = rootView.findViewById(R.id.img_close);\n\n img_close.setOnClickListener(v -> {\n ll_main.setVisibility(View.GONE);\n });\n sharedPreferences = mContext.getSharedPreferences(kAppPreferencesLanguage, Context.MODE_PRIVATE);\n ApplicationManager.setLanguageForApp(mContext, sharedPreferences.getString(kLangPref, \"\"));\n selectedlanguage = sharedPreferences.getString(kLangPref, \"\");\n loaderView = CustomLoaderView.initialize(mContext);\n inItView(rootView);\n\n return rootView;\n }", "title": "" }, { "docid": "253054d4a0355c161296394d4c3853b1", "score": "0.6563225", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_plan_your_visit, container, false);\n }", "title": "" }, { "docid": "bdbfd07049f564c36e7bfc64ae9446ba", "score": "0.65615535", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_friends, container, false);\n }", "title": "" }, { "docid": "3423a97c1aae16c25e8d375441c34619", "score": "0.6560568", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n homeView = inflater.inflate(R.layout.list_bookings_fragment_layout, container, false);\n setView();\n return homeView;\n }", "title": "" }, { "docid": "a30bcbd9e4f08e65544d756832156d9b", "score": "0.6559196", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n rootView = inflater.inflate(R.layout.fragment_pin_layout, container, false);\n updatePinView();\n\n name = (TextView) rootView.findViewById(R.id.pin_fragment_layout_title);\n address_textview = (TextView) rootView.findViewById(R.id.pin_fragment_layout_textview_address);\n artists_textview = (TextView) rootView.findViewById(R.id.pin_fragment_layout_textview_artists);\n info = (TextView) rootView.findViewById(R.id.pin_fragment_layout_textview_info);\n formore = (TextView) rootView.findViewById(R.id.pin_fragment_layout_textview_formore);\n pin_fragment_image = (ImageView) rootView.findViewById(R.id.pin_fragment_layout_imageview);\n subtitle_textview = (TextView) rootView.findViewById(R.id.pin_fragment_layout_textview_subtitle);\n arrow_button = (ImageButton) rootView.findViewById(R.id.imagebutton_arrow_directions);\n share_button = (ImageButton) rootView.findViewById(R.id.imagebutton_share);\n media_button = (ImageButton) rootView.findViewById(R.id.imagebutton_play);\n back_button = (ImageButton) rootView.findViewById(R.id.imagebutton_back);\n spotify_button = (ImageButton) rootView.findViewById(R.id.imagebutton_spotify);\n youtube_button = (ImageButton) rootView.findViewById(R.id.imagebutton_youtube);\n source_label = (TextView) rootView.findViewById(R.id.pin_fragment_layout_source_label);\n buttons_layout = (LinearLayout) rootView.findViewById(R.id.pin_fragment_layout_button_horizontal_layout);\n\n\n return rootView;\n\n\n }", "title": "" }, { "docid": "4186c937a82f041a545b512f47c49b0f", "score": "0.65564823", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View vPdd = inflater.inflate(R.layout.fragment_stat_hebdo_pdd, container, false);\n tvTotalPrevuCIG = vPdd.findViewById(R.id.tv_pdd_tp_cig);\n tvTotalPrevuCIM = vPdd.findViewById(R.id.tv_pdd_tp_cim);\n tvTotalPrevuPCG = vPdd.findViewById(R.id.tv_pdd_tp_pcg);\n tvTotalPrevuPCM = vPdd.findViewById(R.id.tv_pdd_tp_pcm);\n\n tvTotalRealCIG = vPdd.findViewById(R.id.tv_pdd_real_cig);\n tvTotalRealCIM = vPdd.findViewById(R.id.tv_pdd_real_cim);\n tvTotalRealPCG = vPdd.findViewById(R.id.tv_pdd_real_pcg);\n tvTotalRealPCM = vPdd.findViewById(R.id.tv_pdd_real_pcm);\n\n tvTotalRoverPCIG = vPdd.findViewById(R.id.tv_pdd_r_over_p_cig);\n tvTotalRoverPCIM = vPdd.findViewById(R.id.tv_pdd_r_over_p_cim);\n tvTotalRoverPPCG = vPdd.findViewById(R.id.tv_pdd_r_over_p_pcg);\n tvTotalRoverPPCM = vPdd.findViewById(R.id.tv_pdd_r_over_p_pcm);\n\n rvStatHebdoPDD = vPdd.findViewById(R.id.rv_stat_hebdo_pdd);\n srStatHebdoPDD = vPdd.findViewById(R.id.swipe_stat_hebdo_pdd);\n\n\n return vPdd;\n }", "title": "" }, { "docid": "2d2e9b3ffd447f76b43a94f8cca33fa7", "score": "0.6555269", "text": "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\r\n mRoot = inflater.inflate(R.layout.frag_accountbalance_page,\r\n container, false);\r\n// mainActivity = (MyMainActivity) getActivity();\r\n// mainActivity.initHeadPanel(Constant.FRAGMENT_FLAG_COMMING_SOON);\r\n ButterKnife.bind(this,mRoot);\r\n\r\n initView();\r\n return mRoot;\r\n }", "title": "" }, { "docid": "2644c6310d7b73cb17424a61abd57bd6", "score": "0.655373", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_graph, container, false);\n mDbManager = new BabyInfoDBManager(getActivity());\n mLayout = (RelativeLayout) view.findViewById(R.id.graphLayout);\n mTextAverageValue = (TextView)view.findViewById(R.id.textAverageValue);\n return view;\n }", "title": "" }, { "docid": "d5db4aa74d4d8ffc7f0699f8716ff0e7", "score": "0.65525", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_sredisnji, container, false);\n }", "title": "" }, { "docid": "b16fc979e3c7bfc5e924b3586806565e", "score": "0.65514046", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n // Inflate the layout for this fragment\n return inflater.inflate(R.layout.current_sales_fragment, container, false);\n\n }", "title": "" }, { "docid": "850248fc58482a63f5fea711f1a16e12", "score": "0.655001", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_assi_details_view, container, false);\n }", "title": "" }, { "docid": "9a766340c717940abe72950570a623f5", "score": "0.65464497", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n // Inflating layout fragment_selected_event in the fragment\n View view = inflater.inflate(R.layout.fragment_selected_event, parent, false);\n return view;\n }", "title": "" }, { "docid": "6297a9876d0dda21344a34d565c1d502", "score": "0.6545568", "text": "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.abount_fragment_layout, container, false);\n return view;\n }", "title": "" }, { "docid": "5565689e4d0a3902096f8a7dd28db4e5", "score": "0.65450615", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view= inflater.inflate(R.layout.fragment_wphb, container, false);\n Bundle bundle=this.getArguments();\n if(bundle!=null){\n list = bundle.getParcelableArrayList(\"data\");\n }\n rankContentPresenter=new IRankContentPresenterImpl(this,getContext());\n rankContentPresenter.setId(list.get(0).getId());\n rankContentPresenter.loadData();\n init(view);\n return view;\n }", "title": "" }, { "docid": "164fc79f0f184ec74df8147b837cd135", "score": "0.6539274", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_select_group_member, container, false);\n }", "title": "" }, { "docid": "f6a3fd2a60f96c3a9326f1918fae77bf", "score": "0.65351313", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_filter_feed, container, false);\n\n initComponents(rootView);\n\n return rootView;\n }", "title": "" }, { "docid": "79d383a6b3e3c59309c3954cdf039c55", "score": "0.653498", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_fragment_data_restaurantes, container, false);\n }", "title": "" }, { "docid": "4ffdd9d6c63e46904b86092a728fd765", "score": "0.65337723", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_advice_week, container, false);\n }", "title": "" }, { "docid": "4dce15bd30a6c8e8f5611baeda696936", "score": "0.653262", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_new_feed, container, false);\n }", "title": "" }, { "docid": "c9a2d5ea423042e3a22d6d5f60a5ddf0", "score": "0.653137", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_shou, container, false);\n initView(inflate);\n initData();\n return inflate;\n }", "title": "" }, { "docid": "dfa7c0e54d999e6bde0d32fc850f17b5", "score": "0.652968", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_stat, null);\n return rootView;\n }", "title": "" }, { "docid": "abae8050236d5b38d259504b62ccc2dc", "score": "0.65282935", "text": "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.profile_frag_message_detail, container, false);\r\n ButterKnife.bind(this, view);\r\n EventBusActivityScope.getDefault(_mActivity).register(this);\r\n initToolbar();\r\n initViews();\r\n return view;\r\n }", "title": "" }, { "docid": "ac88c1f3d75ce6512c3cd3a545bdcb6a", "score": "0.6522823", "text": "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_feedback, container, false);\r\n self = getActivity();\r\n initUI(view);\r\n initControlUI();\r\n initData();\r\n return view;\r\n }", "title": "" }, { "docid": "7bdf72e0f478f6ffc7f96653de94488a", "score": "0.6519869", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_select_multiple_tag_value, container, false);\n setupWidgets();\n return rootView;\n }", "title": "" }, { "docid": "7defbc73626e8818f5453cd78aeecc82", "score": "0.65193254", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_bin, container, false);\n }", "title": "" }, { "docid": "82025e44981a9cecd56fec6a5595bef5", "score": "0.65188736", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_feeds, container, false);\n\n\n return view;\n\n }", "title": "" }, { "docid": "f109d17bd9988dbb886daa64878a3b9e", "score": "0.65167737", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_section_detaills, container, false);\n }", "title": "" }, { "docid": "db77fd11aac9d82e8b27bf86133e98c8", "score": "0.65134513", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.aktivo_social_media_fragment, container, false);\n }", "title": "" }, { "docid": "f138b345990d4065e3fc14c64c85a26b", "score": "0.6509513", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_pin, container, false);\n init(view);\n setListeners();\n return view;\n }", "title": "" }, { "docid": "9236934b27b91fccffc551f255232dcc", "score": "0.65067166", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_info_batik_jakarta1, container, false);\n\n\n\n }", "title": "" }, { "docid": "9236934b27b91fccffc551f255232dcc", "score": "0.65067166", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_info_batik_jakarta1, container, false);\n\n\n\n }", "title": "" }, { "docid": "9236934b27b91fccffc551f255232dcc", "score": "0.65067166", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_info_batik_jakarta1, container, false);\n\n\n\n }", "title": "" }, { "docid": "c99edfbedb54984caa6235b461089e60", "score": "0.65053755", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_guan, container, false);\n initView();\n initData();\n return view;\n }", "title": "" }, { "docid": "d406840ef6d548fdb99ab7f0f0fc75ae", "score": "0.6505366", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_record, container, false);\n }", "title": "" }, { "docid": "78def9084e7faa6375b416e819da223b", "score": "0.6504578", "text": "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_personal_details, container, false);\r\n\r\n setInit();\r\n\r\n findViews(view);\r\n\r\n setFormula();\r\n\r\n setEvents();\r\n\r\n return view;\r\n }", "title": "" }, { "docid": "5092df246127646af727327cbc8bc7a7", "score": "0.65015787", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_wall, container, false);\n return view;\n }", "title": "" }, { "docid": "88abca832e116f231719b8f3c0614ec7", "score": "0.64988446", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_google_service, container, false);\n intiView(view);\n return view;\n }", "title": "" }, { "docid": "4d407a24bce2f972ae0406e8fe663c42", "score": "0.64988273", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.content_rec_bano, container, false);\n }", "title": "" }, { "docid": "274b4f94d0cc65bc077509d5578edd22", "score": "0.6497285", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_qr__code, container, false);\n }", "title": "" }, { "docid": "abea61f16c417c700bbfb20488b907f1", "score": "0.6496698", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_wilayah, container, false);\n }", "title": "" }, { "docid": "14a9b618934d12b0dd4400a497f4436c", "score": "0.6496293", "text": "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_taskai, container, false);\r\n }", "title": "" }, { "docid": "2f5e33f7ee78e1d297d63042a9695899", "score": "0.64901656", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_record, container, false);\n initialiseUI();\n return view;\n }", "title": "" }, { "docid": "f54b79c3a7a4f6e1b0c9c139c5859dc9", "score": "0.6487897", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_hop, container, false);\n persenter= new RecommendPersenter(this);\n initView(view);\n initDate();\n return view;\n }", "title": "" }, { "docid": "9c7b2af116d6e3986aa3111c661acc08", "score": "0.6487176", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_trainer_feedback, container, false);\n }", "title": "" }, { "docid": "38b92ff2b31f017f927d73b86a4fb449", "score": "0.64818555", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_hot_post, container, false);\n initview(view);\n return view;\n }", "title": "" }, { "docid": "521d35eb4e72698d81c1a4e91ccbd3a5", "score": "0.64808476", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) \n {\n return inflater.inflate(R.layout.address, container, false);\n }", "title": "" }, { "docid": "b2cea7e74350f032ad181b5a9ed59a03", "score": "0.6480629", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_measure, container, false);\n\n distanceEdit = v.findViewById(R.id.distanceEdit);\n pgbar = v.findViewById(R.id.progressBar);\n btnRun = v.findViewById(R.id.btnRun);\n resNoti = v.findViewById(R.id.resEdit);\n resNoti.setText(mParamPath + File.separator + mParamName);\n\n rs = new RssiScan(getActivity());\n\n checkPermisson();\n initEvent();\n\n return v;\n }", "title": "" }, { "docid": "f09325f7f9f124f4ef4f879ea0241861", "score": "0.64755553", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.main_fragment, container, false);\n\n find_id();\n iniadmob();\n initui();\n return view;\n }", "title": "" }, { "docid": "de41c6434f6f9d274977f5f024a375b3", "score": "0.6475227", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v= inflater.inflate(R.layout.fragment_fragment9, container, false);\n\n initializeElements(v);\n\n return v;\n }", "title": "" }, { "docid": "8eb397e078ce72e575ff778187bba9c0", "score": "0.6471052", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_add_map_values, container, false);\n }", "title": "" }, { "docid": "0269441d16dfe4e9c3be414881c43d5b", "score": "0.6470039", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_event_details, container, false);\n }", "title": "" }, { "docid": "b2c05e1f169d25ccb377d79ea4117706", "score": "0.6468551", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n root = inflater.inflate(R.layout.fragment_share_gift, container, false);\n return root;\n }", "title": "" }, { "docid": "8b5789f7fb45f52f873d30770a583845", "score": "0.64684093", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_visitor_list, container, false);\n }", "title": "" }, { "docid": "b561ec17ee0a684d129098eff4cf80d6", "score": "0.64676964", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_student_page, container, false);\n }", "title": "" }, { "docid": "0fb39934ec060ebcacfb53317afde51e", "score": "0.6467239", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.lesson_list_layout, container, false);\n }", "title": "" }, { "docid": "f194093ebbc0b86ee9ae65d504d28bf6", "score": "0.64656013", "text": "@Override\n public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_high_scores, container, false);\n }", "title": "" }, { "docid": "03042ff7c1366aeb9c2734bc39371ee8", "score": "0.6461518", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_selling_manager, container, false);\n }", "title": "" }, { "docid": "4dcfc6b567ec6e9ec8ada25c7b27ffa5", "score": "0.64614016", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_loan, container, false);\n }", "title": "" }, { "docid": "92d559ee373b1568372897b6888f3a8c", "score": "0.6460399", "text": "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n try {\r\n mView = inflater.inflate(R.layout.fragment_tab_tracking_signature, container, false);\r\n setup(mView);\r\n GetImages();\r\n }catch(Exception e){\r\n Log.e(TAG,\"Error : \",e);\r\n }\r\n return mView;\r\n }", "title": "" }, { "docid": "10b691cedb0bed787f0d12b16f9abb8a", "score": "0.6458748", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_barber_detail, container, false);\n }", "title": "" }, { "docid": "a3d49031443e71f5f660ac6bdee3e5f0", "score": "0.64566916", "text": "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n v = inflater.inflate(R.layout.fragment_daily_weekly_limits, container, false);\r\n return v;\r\n }", "title": "" }, { "docid": "514211730e3bf19efab16682ca8b9c58", "score": "0.6455985", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_blank_fragment2_2, parent, false);\n }", "title": "" }, { "docid": "7fa0f443a45964abbee1ac3a7a9e7527", "score": "0.6455635", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_movie_discover, container, false);\n }", "title": "" } ]
d0be5f8a332fd72ccba8a8251239033a
Returns an ArrayList storing the values contained in this map. Note that there may be duplicate values. The ArrayList should contain the values in ascending order of keys. Example. Suppose this map consists of the following (key, value) pairs: (10, Carol), (21, Bill), (45, Carol), (81, Alice), (95, Bill). Then, the ArrayList returned should consist of the strings Carol, Bill, Carol, Alice, Bill, in that order.
[ { "docid": "50e286494ab6c14af9fa33c00fac0ebb", "score": "0.75652546", "text": "public ArrayList<V> values() {\n\t\t// TODO\n\t\tArrayList<V> toRetVal = new ArrayList<V>();\n\t\tIterator<Entry> itr = this.entrySet.iterator();\n\t\t\n\t\twhile(itr.hasNext()){\n\t\t\tEntry Value = itr.next();\n\t\t\ttoRetVal.add(Value.value);\n\t\t}\n\t\n\t\treturn toRetVal;\n\t}", "title": "" } ]
[ { "docid": "a285f143dd44a54c61c19834a13f0fba", "score": "0.7022935", "text": "public Collection values() {\n return map.values();\n }", "title": "" }, { "docid": "9340bf654e4d966d2e10cd2f416a3ca1", "score": "0.69755584", "text": "java.util.List<com.complexible.common.protobuf.core.Core.IntStringMapEntry> \n getValuesList();", "title": "" }, { "docid": "a1570371cfe19c6d5be19797d28025df", "score": "0.6972489", "text": "java.util.List<com.complexible.common.protobuf.core.Core.StringMapEntry> \n getValuesList();", "title": "" }, { "docid": "60fa79e9017216703c820d828c585a3b", "score": "0.6957538", "text": "public Collection values() {\n return map.values();\n }", "title": "" }, { "docid": "0a566d46a3c114158c7e96f665d0072b", "score": "0.67944276", "text": "@Override\n\tpublic List<Vehicle> getVehicles() {\n\t\tList<Vehicle> vehicleList = new ArrayList<Vehicle>();\n\t\t\n\t // Getting a Set of Key-value pairs\n\t Set<Entry<Integer, Vehicle>> entrySet = map.entrySet();\n\t \n\t // Obtaining an iterator for the entry set\n\t Iterator<Entry<Integer, Vehicle>> it = entrySet.iterator();\n\t \n\t //iterator loop through and add to arraylist\n\t while(it.hasNext()) {\n\t \tMap.Entry<Integer, Vehicle> mapElement = it.next();\n\t \tvehicleList.add(mapElement.getValue());\n\t }\n\t\treturn vehicleList;\n\t}", "title": "" }, { "docid": "8ad37b071b1150e2d896b6bbabae7b9f", "score": "0.6731782", "text": "@Override\n\tpublic Collection<String> values() {\n\t\treturn map.values();\n\t}", "title": "" }, { "docid": "dd26f2cdc63e6bbb9e8000dbe5131796", "score": "0.67016417", "text": "private static <K, V> List<V> aggregateCacheValues(Map<K, CacheValue<V>> map) {\n List<V> values = new ArrayList<>(map.size());\n for (Map.Entry<K, CacheValue<V>> entry : map.entrySet()) {\n values.add(entry.getValue().getValue());\n }\n return values;\n }", "title": "" }, { "docid": "f32cce044123b0056594fddc68ff6549", "score": "0.6641077", "text": "public ArrayList< String > getDictionaryList()\r\n {\r\n ArrayList< String > list = new ArrayList< String >();\r\n\r\n Iterator<String> iterator = dictionary.iterator();\r\n \r\n while( iterator.hasNext() )\r\n list.add( iterator.next() );\r\n \r\n return list;\r\n\r\n }", "title": "" }, { "docid": "fcbb2f295190f116c81312bcc0f6f099", "score": "0.66118544", "text": "public ArrayList values(){\n\t\t\treturn (ArrayList)values.clone();\n\t\t}", "title": "" }, { "docid": "495dde18bbfb547563a971f83ecd4924", "score": "0.64153993", "text": "public static <K,V extends Comparable<? super V>> List<Entry<K, V>> entriesSortedByValues(Map<K,V> map) {\n\t\tList<Entry<K,V>> sortedEntries = new ArrayList<Entry<K,V>>(map.entrySet());\n\n\t\tCollections.sort(sortedEntries, new Comparator<Entry<K,V>>() {\n\t\t\t\t@Override\n\t\t\t\tpublic int compare(Entry<K,V> e1, Entry<K,V> e2) {\n\t\t\t\t\treturn e2.getValue().compareTo(e1.getValue());\n\t\t\t\t}\n\t\t\t}\n\t\t);\n\t\treturn sortedEntries;\n\t}", "title": "" }, { "docid": "f91a9c065f4274aa184deed7d4ff3709", "score": "0.6388592", "text": "public java.util.List<com.complexible.common.protobuf.core.Core.StringMapEntry> getValuesList() {\n if (valuesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(values_);\n } else {\n return valuesBuilder_.getMessageList();\n }\n }", "title": "" }, { "docid": "6a27aef6d1f84e71040997377467ff3a", "score": "0.6372809", "text": "public java.util.List<com.complexible.common.protobuf.core.Core.StringMapEntry> getValuesList() {\n return values_;\n }", "title": "" }, { "docid": "5279ad617f9c6fc2601dda70b40605d5", "score": "0.6360423", "text": "public java.util.List<com.complexible.common.protobuf.core.Core.IntStringMapEntry> getValuesList() {\n if (valuesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(values_);\n } else {\n return valuesBuilder_.getMessageList();\n }\n }", "title": "" }, { "docid": "5d77239779f8460967d1cb78d8b861ed", "score": "0.63476396", "text": "public java.util.List<com.complexible.common.protobuf.core.Core.IntStringMapEntry> getValuesList() {\n return values_;\n }", "title": "" }, { "docid": "51c58edbc103d2f19257b8e674f3c2dd", "score": "0.6342593", "text": "public Collection<Value> getValues() {\n\t\treturn valueMap.values();\n\t}", "title": "" }, { "docid": "eb06eeb846797ac06a95741ca05bfa08", "score": "0.63374764", "text": "java.util.List<com.google.datastore.v1.Value> \n getValuesList();", "title": "" }, { "docid": "3736638edad487021aa05028fa3463f3", "score": "0.6203235", "text": "public static <K, V extends Comparable<V>> List<Map.Entry<K, V>> getEntriesSortedByValues(Map<K, V> map) {\n List<Map.Entry<K, V>> entries = new LinkedList<Map.Entry<K, V>>(map.entrySet());\n\n Collections.sort(entries, new Comparator<Map.Entry<K, V>>() {\n @Override\n public int compare(Entry<K, V> o1, Entry<K, V> o2) {\n return o1.getValue().compareTo(o2.getValue());\n }\n });\n\n return entries;\n }", "title": "" }, { "docid": "a80110f3e683040a6648ceb55fe1edc2", "score": "0.62018913", "text": "java.util.List<java.lang.Integer> getKeysValsList();", "title": "" }, { "docid": "77c14d62a56dac7e9f2c79e1d47ffe63", "score": "0.61814195", "text": "public List getAllValues() {\n\t\tArrayList result = new ArrayList();\n\t\tObject[] currentValues = myListModel.toArray();\n\t\tfor (int i = 0; i < currentValues.length; i++) {\n\t\t\tObject val = currentValues[i];\n\t\t\tresult.add(val);\n\t\t}\n\t\treturn result;\n\t}", "title": "" }, { "docid": "836264dfcd293efae13917960dca91e1", "score": "0.61689925", "text": "public ArrayList getKeys(Object value){\n\t\t\tArrayList keys1 = null;\n\t\t\tif(values != null && value != null){\n\t\t\t\tfor(int index=0; index < values.size(); index++){\n\t\t\t\t\tif(values.get(index).equals(value)){\n\t\t\t\t\t\tif(keys1 == null) keys1 = new ArrayList();\n\t\t\t\t\t\tkeys1.add(keys.get(index));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn keys1; \n\t\t}", "title": "" }, { "docid": "718f7453d78ea6677f5add93b16f3d1c", "score": "0.611443", "text": "List<Value> getValues();", "title": "" }, { "docid": "9005825bba0afc791715e781a8846cee", "score": "0.609242", "text": "public Map<String,String> getValues();", "title": "" }, { "docid": "b989298898a4ee213ee183b1fe309548", "score": "0.601685", "text": "private ArrayList<Object> getAllKeyValue(JSONArray value) {\n\t\tArrayList<Object> valueList = new ArrayList<>();\n\t\tfor (int i = 0; i < value.size(); i++) {\n\t\t\tArrayList<Pair> list = new ArrayList<>();\n\t\t\t\n\t\t\tJSONObject object = (JSONObject) value.get(i);\n\t\t\tlist = getAllKeyValue(object);\n\t\t\t\n\t\t\tvalueList.add(list);\n\t\t}\n\t\t\n\t\treturn valueList;\n\t}", "title": "" }, { "docid": "7e0e04f5f2b12f1a8f9f7755427b072e", "score": "0.5988084", "text": "java.util.List<? extends com.complexible.common.protobuf.core.Core.IntStringMapEntryOrBuilder> \n getValuesOrBuilderList();", "title": "" }, { "docid": "d126c125b35bbd0fcf8b3263620305cd", "score": "0.5985807", "text": "@Nullable\n public List<String> getValues(@NonNull String key) {\n return getValues(dummyItem, key);\n }", "title": "" }, { "docid": "eaca4694996dc371c5a4dd83d393a50f", "score": "0.597522", "text": "public ArrayList<Integer> GetExpList() {\n/* 92 */ ArrayList<Integer> arrayList = new ArrayList<>();\n/* 93 */ ArrayList<Integer> ids = new ArrayList<>(); Iterator<Integer> iterator;\n/* 94 */ for (iterator = this.expMap.values().iterator(); iterator.hasNext(); ) { int num = ((Integer)iterator.next()).intValue();\n/* 95 */ arrayList.add(Integer.valueOf(num)); }\n/* */ \n/* 97 */ Collections.sort(arrayList);\n/* 98 */ for (iterator = arrayList.iterator(); iterator.hasNext(); ) { int id = ((Integer)iterator.next()).intValue();\n/* 99 */ for (Iterator<Integer> iterator1 = this.expMap.keySet().iterator(); iterator1.hasNext(); ) { int expId = ((Integer)iterator1.next()).intValue();\n/* 100 */ int num = ((Integer)this.expMap.get(Integer.valueOf(expId))).intValue();\n/* 101 */ if (num == id) {\n/* 102 */ ids.add(Integer.valueOf(expId));\n/* */ } }\n/* */ }\n/* */ \n/* 106 */ return ids;\n/* */ }", "title": "" }, { "docid": "84f52c291c4c1b1290af25bbefcbd957", "score": "0.5961935", "text": "public List<String> getEntriesByName() {\r\n List<String> lexiList = new ArrayList<>();\r\n // entries is TreeMap so already in lexi order\r\n for (Map.Entry<String, Integer> e : scores.entrySet()) {\r\n lexiList.add(\"\" + e.getKey() + \" : \" + e.getValue());\r\n }\r\n return lexiList;\r\n\r\n }", "title": "" }, { "docid": "cd575fbe9fb0107150d9e9f6b0cf32a6", "score": "0.5956631", "text": "public ArrayList<AccountPO> getList() {\n\t\tArrayList<AccountPO> returnList = new ArrayList<AccountPO>();\n\t\treturnList.addAll(list.values());\n\t\treturn returnList;\n\t}", "title": "" }, { "docid": "881baefacef4c41945e4ffd3455b2bfe", "score": "0.59507", "text": "public List<String> getEntriesByScore() {\r\n // entries is TreeMap so already in lexi order and then stream sorts\r\n // in descending order by value\r\n // TODO: 11/24/19 Look at alternative way to stream (shorter)\r\n Stream<Map.Entry<String, Integer>> descStream = scores.entrySet().stream().sorted(Collections.reverseOrder(Map.Entry.comparingByValue()));\r\n Iterator<Map.Entry<String, Integer>> it = descStream.iterator();\r\n List<String> descList = new ArrayList<>();\r\n\r\n while (it.hasNext()) {\r\n Map.Entry<String, Integer> e = it.next();\r\n descList.add(\"\" + e.getKey() + \" : \" + e.getValue());\r\n }\r\n return descList;\r\n }", "title": "" }, { "docid": "0e7ff14cd699de6d6358b3cd92850324", "score": "0.59382015", "text": "public static ArrayList <Competitor> mapToArrayList(Map<String,Integer> ranking){\r\n\t\t\tArrayList<Competitor> arrayedMap=new ArrayList<>();\r\n\t\t\tIterator it=ranking.entrySet().iterator();\r\n\t\t\tCompetitor c;\r\n\t\t\tMap.Entry m;\r\n\t\t\twhile(it.hasNext()) {\r\n\t\t\t\tm=(Map.Entry) it.next();\r\n\t\t\t\tc=new Competitor(m.getKey().toString());\r\n\t\t\t\tc.setPoints(Integer.parseInt(m.getValue().toString()));\r\n\t\t\t\tarrayedMap.add(c);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\treturn arrayedMap;\r\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "256b55a351caf51b4ab3468b38e6fa3e", "score": "0.5932964", "text": "java.util.List<? extends com.complexible.common.protobuf.core.Core.StringMapEntryOrBuilder> \n getValuesOrBuilderList();", "title": "" }, { "docid": "41c861a82c4aa5b76e8fa41270a91eda", "score": "0.5929965", "text": "public Set<Entry<String, String>> getAll(){\n \t\treturn this.values.entrySet();\n \t}", "title": "" }, { "docid": "2cd6fb3e56a60d23dcefb5985190c844", "score": "0.5921934", "text": "public ArrayList keys(){\n\t\t\treturn (ArrayList)keys.clone();\n\t\t}", "title": "" }, { "docid": "1331dbeee88896d01d452945855bde0f", "score": "0.58837444", "text": "public List<T> toList(){\n List<T> retVal = new ArrayList<T>();\n for (int i = 0; i < this.values.length; i++){\n retVal.add(this.values[i]);\n }\n return retVal;\n }", "title": "" }, { "docid": "c810e649199f0b53c0636904b0cac5c2", "score": "0.5874032", "text": "public ArrayList<String> getAllKeys() {\n\n\t\tArrayList<String> keyList = new ArrayList<String>();\n\n\t\t// Collect all of the keys and return the ArrayList.\n\t\tfor(ArrayList<String> keys : mKeys.values()) {\n\t\t\tfor(String key : keys) {\n\t\t\t\tkeyList.add(key);\n\t\t\t}\n\t\t}\n\t\treturn keyList;\n\t}", "title": "" }, { "docid": "16f0e84f3e4c4d04e082fa0e2140b951", "score": "0.5872997", "text": "@Override\n\t\tpublic java.util.Collection<CoronaData> values() {\n\t\t\treturn fHashMap.values();\n\t\t}", "title": "" }, { "docid": "6d172b691d2edb490da838731a429b84", "score": "0.5869322", "text": "public java.util.List<? extends com.complexible.common.protobuf.core.Core.IntStringMapEntryOrBuilder> \n getValuesOrBuilderList() {\n if (valuesBuilder_ != null) {\n return valuesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(values_);\n }\n }", "title": "" }, { "docid": "932249bd09ba656212a6ea3db067fba6", "score": "0.58692944", "text": "public ArrayList<ArrayList<String>> getValues() {\n ArrayList<ArrayList<String>> values = new ArrayList<ArrayList<String>>();\n try (Scanner scanner = new Scanner(CsvFile)) {\n while (scanner.hasNextLine()) {\n values.add(getValuesFromLine(scanner.nextLine()));\n }\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n return values;\n }", "title": "" }, { "docid": "672e9a656b339a4cfc7d813501c78d64", "score": "0.5866503", "text": "List<V> values();", "title": "" }, { "docid": "c67e647791eb035c1f15c45706d3cd75", "score": "0.58633345", "text": "public java.util.List<? extends com.complexible.common.protobuf.core.Core.StringMapEntryOrBuilder> \n getValuesOrBuilderList() {\n if (valuesBuilder_ != null) {\n return valuesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(values_);\n }\n }", "title": "" }, { "docid": "cf9757b09ff2c979e2852c144d0726f3", "score": "0.58590585", "text": "protected abstract List<String> getValuesKeys();", "title": "" }, { "docid": "c5a8410514331957ab53be8d64cbca9c", "score": "0.580936", "text": "public List<String> getHotels()\n\t{\n\t\t// FILL IN CODE\n\t\tfor (Map.Entry<String, Hotel> entry : hotelMap.entrySet())\n\t\t{\n\t\t\thotelIdList.add(entry.getValue().getHotelId());\n\t\t}\n\t\t//using the comparable interface to sort the list\n\t\tCollections.sort(hotelIdList);\n\t\treturn hotelIdList; // don't forget to change it\n\t}", "title": "" }, { "docid": "3cf436111efeb20f3a4c055eea706db0", "score": "0.5803779", "text": "public List<String> getValues()\r\n\t{\r\n\t\treturn values;\r\n\t}", "title": "" }, { "docid": "876ee15fd497e38919679c851190dd40", "score": "0.57911927", "text": "public ArrayList<Long> arrangeKeys(HashMap<Long, Double> map) {\r\n\t\t\r\n\t\tArrayList<Double> sorted_vals_desc = sortValsDescending(map);\r\n\t\tArrayList<Long> keys = new ArrayList<Long>(map.keySet());\r\n\t\tCollections.sort(keys);\r\n\t\tArrayList<Long> keys_new = new ArrayList<Long>();\r\n\t\t\r\n\t\tIterator<Double> vals_i = sorted_vals_desc.iterator();\r\n\t\tIterator<Long> keys_i;\r\n\t\tdouble curr_val = 0;\r\n\t\tdouble curr_val2 = 0;\r\n\t\tlong curr_docID = 0;\r\n\t\t\r\n\t\twhile(vals_i.hasNext()){\r\n\t\t\tcurr_val = (Double)vals_i.next();\r\n\t\t\tkeys_i = keys.iterator();\r\n\t\t\twhile (keys_i.hasNext()) {\r\n\t\t\t\tcurr_docID = keys_i.next();\r\n\t\t\t\tcurr_val2 = map.get(curr_docID);\r\n\t\t\t\tif(curr_val == curr_val2) {\r\n\t\t\t\t\tkeys.remove(curr_docID);\r\n\t\t\t\t\tkeys_new.add(curr_docID);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\treturn keys_new;\r\n\t}", "title": "" }, { "docid": "cabf43a30dd1a818d907253ca05f482e", "score": "0.57566196", "text": "abstract ArrayList<K> getKeys();", "title": "" }, { "docid": "3ab016eba46ff2296afc138b3a675f6a", "score": "0.57517314", "text": "public Bicycle[] bicycleList() {\n Collection bikeColl = map.values();\n ArrayList<Bicycle> bikeList = new ArrayList<Bicycle>();\n for (Object a: bikeColl) {\n bikeList.addAll((ArrayList<Bicycle>) a);\n }\n Bicycle[] bl = new Bicycle[bikeList.size()];\n int index = 0;\n for (Bicycle b : bikeList) {\n bl[index] = b;\n index++;\n }\n return bl;\n }", "title": "" }, { "docid": "e168766ee111dc97dab891418f1f959b", "score": "0.57487506", "text": "public java.util.List<? extends com.complexible.common.protobuf.core.Core.StringMapEntryOrBuilder> \n getValuesOrBuilderList() {\n return values_;\n }", "title": "" }, { "docid": "4ed6ed17a6ed59c99c5c00744ab37434", "score": "0.5746594", "text": "public ArrayList<String> getList(String key) {\n\t\tString[] mylist = TextUtils\n\t\t\t\t.split(preferences.getString(key, \"\"), \"‚‗‚\");\n\t\tArrayList<String> gottenlist = new ArrayList<String>(\n\t\t\t\tArrays.asList(mylist));\n\t\treturn gottenlist;\n\t}", "title": "" }, { "docid": "4511e5c30ffb6174f6c64341e85ef71e", "score": "0.57410514", "text": "public static String[] getClothingHashMapValuesAsArray() {\n String[] array = null;\n if (clothingCodes != null) {\n int i = 0;\n array = new String[clothingCodes.size()];\n for (Map.Entry<Integer, String> e : clothingCodes.entrySet())\n array[i++] = e.getValue();\n }\n return array;\n }", "title": "" }, { "docid": "269af69929e79c4c20d96f13209e391b", "score": "0.57408106", "text": "List<String> getKeyValuePairs();", "title": "" }, { "docid": "10fbf248b1848b69353787f306e1177e", "score": "0.5727954", "text": "@Override\n\tpublic List<V> getValues() {\n\t\tList<V> values = new ArrayList<V>(size());\n\t\tgetValuesAux(root, values);\n\t\treturn values;\n\t}", "title": "" }, { "docid": "fc8e81beedf50ef718aa7843249fde3d", "score": "0.57227397", "text": "public ArrayList<Entry> zzpS() {\n ArrayList<Entry> arrayList = new ArrayList<>();\n for (String str : this.zzahe.keySet()) {\n arrayList.add(new Entry(str, (Map) this.zzahe.get(str)));\n }\n return arrayList;\n }", "title": "" }, { "docid": "e24a93ab9ad51e23c5a88d3fce7aedb8", "score": "0.57186335", "text": "public java.util.List<? extends com.complexible.common.protobuf.core.Core.IntStringMapEntryOrBuilder> \n getValuesOrBuilderList() {\n return values_;\n }", "title": "" }, { "docid": "f8f835400e3cede644ffe7dedde73053", "score": "0.5710005", "text": "@Override\n public List<Cart> getValues() {\n List <Cart> carts = new ArrayList<>();\n for (Entry entry:entries){\n carts.add(entry.getValue());\n }\n return carts;\n }", "title": "" }, { "docid": "47b532ec0cad53ca306f7d983e87e2ce", "score": "0.57024354", "text": "public List getValues() {\n return _valueList;\n }", "title": "" }, { "docid": "bffcd068917f19d1dd251066378ca9a0", "score": "0.56816965", "text": "Collection<V> valuesCollection();", "title": "" }, { "docid": "dff4fef06a2b2be898616074f80e37de", "score": "0.5676542", "text": "List<V> allMembers() {\n return entries.values().stream().flatMap(List::stream).collect(Collectors.toList());\n }", "title": "" }, { "docid": "b94b7849d3e2439a5347bf11618fd46a", "score": "0.56311077", "text": "public ArrayList values() {\n ArrayList list = new ArrayList();\n for(Bucket bucket : tableOne) {\n if (bucket != null) {\n list.add(bucket.value);\n }\n }\n for(Bucket bucket : tableTwo) {\n if (bucket != null) {\n list.add(bucket.value);\n }\n }\n return list;\n }", "title": "" }, { "docid": "a20cc77e1832c4e21c51fbdfdf777124", "score": "0.5619146", "text": "public List<String> alphabeticalRanking() {\n // The list will be returned\n List<String> list = new ArrayList<>();\n\n // Receives a Set<Map.Entry<String, Integer>> object that contains the keys/values of the Map field\n Set<Map.Entry<String, Integer>> setEntry = this.mUserMap.entrySet();\n\n // Receives the iterator to browse the Map field\n Iterator<Map.Entry<String, Integer>> it = setEntry.iterator();\n\n // The system key/value for an item\n Map.Entry<String, Integer> entry;\n\n while(it.hasNext()) {\n entry = it.next();\n\n // Adds the element to the list: [name: score]\n list.add(entry.getKey() + \": \" + entry.getValue());\n }\n\n return list;\n }", "title": "" }, { "docid": "166f12f1c89310a3fb076efe1fdca57e", "score": "0.5616182", "text": "private ArrayList<ArrayList<String>> filteringArray(Map<Integer, Map<Integer, String>> map) {\n Map<Integer, Map<Integer, String>> _map = new HashMap<>(map);\n ArrayList<ArrayList<String>> arr = new ArrayList<>();\n Iterator it = _map.entrySet().iterator();\n while (it.hasNext()) {\n Map.Entry pair = (Map.Entry) it.next();\n if (map.get(pair.getKey()).size() >= 2){\n arr.add(new ArrayList<>(map.get(pair.getKey()).values()));\n }\n }\n return arr;\n }", "title": "" }, { "docid": "af48089aab1e23ffb994e41b90f18bb0", "score": "0.56066793", "text": "public ArrayList<Pair<String, String>> getAll(String collection) {\n ArrayList<Pair<String, String>> result = new ArrayList<>();\n SQLiteDatabase db = getReadableDatabase();\n Cursor cursor = db.query(collection, null, null, null, null, null, null);\n while (cursor.moveToNext()) {\n String key = cursor.getString(cursor.getColumnIndexOrThrow(\"rowKey\"));\n String value = cursor.getString(cursor.getColumnIndexOrThrow(\"value\"));\n result.add(new Pair<>(key, value));\n }\n cursor.close();\n db.close();\n return result;\n }", "title": "" }, { "docid": "c20ff58206974603ce9eff80cb4f61ba", "score": "0.55987257", "text": "java.util.List<java.lang.Integer> getValsList();", "title": "" }, { "docid": "c20ff58206974603ce9eff80cb4f61ba", "score": "0.55987257", "text": "java.util.List<java.lang.Integer> getValsList();", "title": "" }, { "docid": "c20ff58206974603ce9eff80cb4f61ba", "score": "0.55987257", "text": "java.util.List<java.lang.Integer> getValsList();", "title": "" }, { "docid": "579fac046b27a6824eb41c64c109020e", "score": "0.55900455", "text": "public ArrayList<String> getStationIds() {\n\t\t// FIXED: provide implementation\n\t\tArrayList<String> list = new ArrayList<String>();\n\t\tlist.addAll(stationMap.keySet());\n\t\tCollections.sort(list);\n\t\treturn list;\n\t}", "title": "" }, { "docid": "9f7daea0b88f146f40ae499450b3d319", "score": "0.55816674", "text": "public @NonNull String[] getValues (@NonNull String key);", "title": "" }, { "docid": "400229a92295faa12fa5a998bd04af63", "score": "0.5578632", "text": "public List<V> listValues() {\r\n List<V> list = new ArrayList<V>();\r\n if (this.left != null) {\r\n list.addAll(this.left.listValues());\r\n }\r\n\r\n list.add(getValue());\r\n\r\n if (this.right != null) {\r\n list.addAll(this.right.listValues());\r\n }\r\n\r\n return list;\r\n }", "title": "" }, { "docid": "4b17a098af6154ef3eca0589d8cba068", "score": "0.5571429", "text": "@SuppressWarnings(\"rawtypes\")\r\n\tpublic static List<String> getListStrings(final AbstractMap map) {\r\n\t\treturn ((null != map) && (map.size() > 0)) ? CollectionUtils.getListStrings(map.values()) : null;\r\n\t}", "title": "" }, { "docid": "7d9d16b175110ffb217e6d9cb5090df2", "score": "0.5567064", "text": "public List getNsKeys() {\n\t\tArrayList list = new ArrayList();\n\t\tIterator i = map.keySet().iterator();\n\t\twhile (i.hasNext()) {\n\t\t\tlist.add(i.next());\n\t\t}\n\t\treturn list;\n\t}", "title": "" }, { "docid": "226e3cc95bfa302d82d511c6a6e1d05a", "score": "0.55599666", "text": "List<K> keys() {\n return new ArrayList<K>() {{\n addAll(entries.keySet());\n }};\n }", "title": "" }, { "docid": "78e85111a74cc2439e4e68e93c13db5a", "score": "0.555369", "text": "public List<String> getListValue(String key) {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "6efcbe729898f23259649337b8f74f8d", "score": "0.554994", "text": "public List getKeyValues() {\n List labels = new ArrayList();\n labels.add(new ConcreteKeyValue(KFSConstants.MONTH1, KFSConstants.MONTH1));\n labels.add(new ConcreteKeyValue(KFSConstants.MONTH2, KFSConstants.MONTH2));\n labels.add(new ConcreteKeyValue(KFSConstants.MONTH3, KFSConstants.MONTH3));\n labels.add(new ConcreteKeyValue(KFSConstants.MONTH4, KFSConstants.MONTH4));\n\n labels.add(new ConcreteKeyValue(KFSConstants.MONTH5, KFSConstants.MONTH5));\n labels.add(new ConcreteKeyValue(KFSConstants.MONTH6, KFSConstants.MONTH6));\n labels.add(new ConcreteKeyValue(KFSConstants.MONTH7, KFSConstants.MONTH7));\n labels.add(new ConcreteKeyValue(KFSConstants.MONTH8, KFSConstants.MONTH8));\n\n labels.add(new ConcreteKeyValue(KFSConstants.MONTH9, KFSConstants.MONTH9));\n labels.add(new ConcreteKeyValue(KFSConstants.MONTH10, KFSConstants.MONTH10));\n labels.add(new ConcreteKeyValue(KFSConstants.MONTH11, KFSConstants.MONTH11));\n labels.add(new ConcreteKeyValue(KFSConstants.MONTH12, KFSConstants.MONTH12));\n\n labels.add(new ConcreteKeyValue(KFSConstants.MONTH13, KFSConstants.MONTH13));\n labels.add(new ConcreteKeyValue(KFSConstants.PERIOD_CODE_ANNUAL_BALANCE, KFSConstants.PERIOD_CODE_ANNUAL_BALANCE));\n labels.add(new ConcreteKeyValue(KFSConstants.PERIOD_CODE_BEGINNING_BALANCE, KFSConstants.PERIOD_CODE_BEGINNING_BALANCE));\n labels.add(new ConcreteKeyValue(KFSConstants.PERIOD_CODE_CG_BEGINNING_BALANCE, KFSConstants.PERIOD_CODE_CG_BEGINNING_BALANCE));\n\n return labels;\n }", "title": "" }, { "docid": "c8a2cc2056b0486f09cc258313c1e15e", "score": "0.5544871", "text": "@Override\n\tpublic Collection<Map<K1, Map<K2, V>>> values() {\n\t\tthrow new NotImplementedException();\n\t}", "title": "" }, { "docid": "dca0575c16101defadc87568ec6fdf33", "score": "0.5541582", "text": "public Set<String> getUserMapToStringSet() {\n // The set will be returned\n Set<String> set = new HashSet<>();\n\n // Receives a Set<Map.Entry<String, Integer>> object that contains the keys/values of the Map field\n Set<Map.Entry<String, Integer>> setEntry = this.mUserMap.entrySet();\n\n // Receives the iterator to browse the Map field\n Iterator<Map.Entry<String, Integer>> it = setEntry.iterator();\n\n // The system key/value for an item\n Map.Entry<String, Integer> entry;\n\n while(it.hasNext()) {\n entry = it.next();\n\n // Adds the element to the set: [name ----> score]\n set.add(entry.getKey() + \" ----> \" + entry.getValue());\n }\n\n return set;\n }", "title": "" }, { "docid": "3d888b9f70c392dcd803da16738cb1cd", "score": "0.5527599", "text": "public List<String> toStringList() {\n int tam = this.dic.size(); // Tamaño del diccionario.\n List<String> list = new ArrayList<String>(); // Objeto lista.\n Iterator<Word> q = this.dic.iterator(); // Objeto iterador.\n for (int i=0; i<tam; i++) {\n Word word = q.next(); // Devuelve el proximo objeto Word.\n String add_word = word.getWord(); // Lo transforma en String.\n list.add(add_word); // Lo agrega a la lista.\n }\n return list;\n }", "title": "" }, { "docid": "47cee4507bed80b4d5af09c60598063e", "score": "0.55199903", "text": "public List<HashMap<String, String>> getXhList() throws SQLException {\n\r\n\t\tList<HashMap<String, String>> list = new ArrayList<HashMap<String, String>>();\r\n\t\tString sql = \"select distinct xh from bks_xsjbxx order by xh\";\r\n\t\tConnection conn = null;\r\n\t\tPreparedStatement stmt = null;\r\n\t\tResultSet rs = null;\r\n\t\t\r\n\t\ttry {\r\n\t\t\tconn = db.getConnection();\r\n\t\t\tstmt = conn.prepareStatement(sql);\r\n\t\t\trs = stmt.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tHashMap<String, String> temmap = new HashMap<String, String>();\r\n\t\t\t\ttemmap.put(\"xh\", rs.getString(\"xh\"));\r\n\t\t\t\tlist.add(temmap);\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tCustomException.pringCustomExcInfo(sql);\r\n\t\t} finally {\r\n\t\t\tcloseAllStmtAndRs(rs, stmt, null, null);\r\n\t\t\tcloseConnection(conn);\r\n\t\t}\r\n\t\treturn list;\r\n\t}", "title": "" }, { "docid": "17d1c3e1b7ef75cf8cb621603ccb81cd", "score": "0.5517488", "text": "public List<Enum<?>> getKeys()\n\t{\n\t\treturn new ArrayList<Enum<?>>(map.keySet());\n\t}", "title": "" }, { "docid": "00da8bcb79d3e59672cd167445cec2e2", "score": "0.5504309", "text": "public List<Value> getValues() {\n\t\tfinal List<Value> vl = new ArrayList<Value>();\n\t\tfor (final ANY a : getMdht().getValues()) {\n\t\t\tfinal Value v = new Value(a);\n\t\t\tvl.add(v);\n\t\t}\n\t\treturn vl;\n\t}", "title": "" }, { "docid": "bf867e6d63a34a0a23421e66791a34e4", "score": "0.5490555", "text": "public static ArrayList<String> getHairStyleHashMapValues() {\n ArrayList<String> list = new ArrayList<>();\n if (hairStyleCodes != null)\n for (Map.Entry<Integer, String> e : hairStyleCodes.entrySet())\n list.add(e.getValue());\n\n return list;\n }", "title": "" }, { "docid": "d1c42803306bcd23f5a966376b8b0c98", "score": "0.5479911", "text": "@Override\n public Collection<V> values();", "title": "" }, { "docid": "4e6f62ec891228865fc0331f88e22f49", "score": "0.54790646", "text": "public ArrayList<String> getChildrenValues(){\n\t\tArrayList<String> childrenValues = new ArrayList<String>();\n\t\t\n\t\tfor(int i = 0 ; i < children.size() ; i++){\n\t\t\tchildrenValues.add(children.get(i).getValue());\n\t\t}\n\t\t\n\t\treturn childrenValues;\n\t}", "title": "" }, { "docid": "b3a57c4d03797e1a6468cff5952540cc", "score": "0.5457382", "text": "public ArrayList<ArrayList<Integer>> getListOfValues()\n {\n return boardValues;\n }", "title": "" }, { "docid": "bc516c368473ec594b9ac79b61b4e828", "score": "0.54538834", "text": "public List<String> getAllNames()\n {\n LinkedList<String> all = new LinkedList<>();\n\n for(LinkedList<Item> list : hash.values())\n {\n for(Item curr : list)\n {\n all.add(curr.getName());\n }\n }\n\n return all;\n }", "title": "" }, { "docid": "db5c0ee87a741f58d0719f9a363a3b3e", "score": "0.5446369", "text": "public String[] strings() {\n return list.keySet().toArray(new String[0]);\n }", "title": "" }, { "docid": "15d7b73d38c94e2fd12619a9cd0f6b0c", "score": "0.54427314", "text": "public List<Item> getAll()\n {\n LinkedList<Item> all = new LinkedList<>();\n\n for(LinkedList<Item> list : hash.values())\n {\n for(Item curr : list)\n {\n all.add(curr);\n }\n }\n\n return all;\n }", "title": "" }, { "docid": "430dbba8079051336f1141b380ffc6c9", "score": "0.54415894", "text": "public List<String> getValues(String id) {\r\n\t\treturn entries.get(id);\r\n\t}", "title": "" }, { "docid": "190439001bf8605b9bfe41a5e51c0387", "score": "0.5438194", "text": "public ArrayList<HashMap<String, String>> getAllAbsen() {\r\n ArrayList<HashMap<String, String>> absenList;\r\n absenList = new ArrayList<HashMap<String, String>>();\r\n String selectQuery = \"SELECT * FROM \" + TABLE_ABSEN;\r\n SQLiteDatabase database = this.getWritableDatabase();\r\n Cursor cursor = database.rawQuery(selectQuery, null);\r\n if (cursor.moveToFirst()) {\r\n do {\r\n HashMap<String, String> map = new HashMap<String, String>();\r\n map.put(KEY_ABSEN_ID, cursor.getString(0));\r\n map.put(KEY_ABSEN_CODE_CUSTOMER, cursor.getString(1));\r\n map.put(KEY_ABSEN_LATITUDE, cursor.getString(2));\r\n map.put(KEY_ABSEN_LANGITUDE, cursor.getString(3));\r\n map.put(KEY_ABSEN_DATE, cursor.getString(4));\r\n\r\n absenList.add(map);\r\n } while (cursor.moveToNext());\r\n }\r\n database.close();\r\n return absenList;\r\n }", "title": "" }, { "docid": "1d1746273bdfbed66be44c10697c96ac", "score": "0.5427308", "text": "public StringVector getValues () {\n if (values == null) {\n return null;\n } else {\n return values.copy ();\n }\n }", "title": "" }, { "docid": "39c72a9380c844d48ed55b7b9ba749ab", "score": "0.5423572", "text": "public Collection values() {\r\n return new ValuesSet();\r\n }", "title": "" }, { "docid": "e66872ba2293e5d0db8c6aecaa1686e2", "score": "0.541921", "text": "public java.util.List<String> getValueList() {\n return valueList;\n }", "title": "" }, { "docid": "ac79f32982a11ea677423732d83cca0a", "score": "0.5413025", "text": "public Collection getValues() {\r\n return values;\r\n }", "title": "" }, { "docid": "e77f02be4b6251cd0184119cbbd70545", "score": "0.5401651", "text": "java.util.List<battleapp.netproto.Struct.iProtBufAtom> \n getValuesList();", "title": "" }, { "docid": "5c005f9758a563a8d49bd1e1a13e6499", "score": "0.54002094", "text": "java.util.List<java.lang.Integer> getKeysList();", "title": "" }, { "docid": "5c005f9758a563a8d49bd1e1a13e6499", "score": "0.54002094", "text": "java.util.List<java.lang.Integer> getKeysList();", "title": "" }, { "docid": "5c005f9758a563a8d49bd1e1a13e6499", "score": "0.54002094", "text": "java.util.List<java.lang.Integer> getKeysList();", "title": "" }, { "docid": "14c5dfa2eb5ab15ac9510c080accf5dc", "score": "0.5399792", "text": "public List<List<T>> getValues(Collection<? extends Object> values) throws Exception;", "title": "" }, { "docid": "e1004852665aba2f30a64f972ab98ced", "score": "0.5393454", "text": "public static ArrayList<Customer> sortCustomers(HashMap<Integer, Customer> hm)\n\t{\n\t\t//Makes a Collection.\n\t\tCollection<Customer> c = hm.values();\n\t\t//Makes an ArrayList from that collection.\n\t\tArrayList<Customer> a = new ArrayList<Customer>(c);\n\t\tCollections.sort(a);\n\t\treturn a;\n\t}", "title": "" }, { "docid": "72c6215a865e6d15617502179c0d0bcc", "score": "0.539162", "text": "public List<List<T>> getValues() throws Exception;", "title": "" }, { "docid": "85e6298308a1d202613e37706383a77e", "score": "0.5388205", "text": "List<String> startingValues() {\n return new ArrayList<>(table.keySet());\n }", "title": "" }, { "docid": "ec4785b8ae4da27e814c3e9eef1ea989", "score": "0.53756243", "text": "java.util.List<battleapp.netproto.Struct.iProtBufValue> \n getValuesList();", "title": "" } ]
c38e7ed191030387e2fda8a9d911cdd2
$ANTLR end "entryRuleXUnaryOperation" $ANTLR start "ruleXUnaryOperation" ../com.avaloq.tools.dslsdk.check.ui/srcgen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:1118:1: ruleXUnaryOperation : ( ( rule__XUnaryOperation__Alternatives ) ) ;
[ { "docid": "3e39a7f36866906909fe70b6f00b85e6", "score": "0.8578188", "text": "public final void ruleXUnaryOperation() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:1122:2: ( ( ( rule__XUnaryOperation__Alternatives ) ) )\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:1123:1: ( ( rule__XUnaryOperation__Alternatives ) )\r\n {\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:1123:1: ( ( rule__XUnaryOperation__Alternatives ) )\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:1124:1: ( rule__XUnaryOperation__Alternatives )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXUnaryOperationAccess().getAlternatives()); \r\n }\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:1125:1: ( rule__XUnaryOperation__Alternatives )\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:1125:2: rule__XUnaryOperation__Alternatives\r\n {\r\n pushFollow(FOLLOW_rule__XUnaryOperation__Alternatives_in_ruleXUnaryOperation2331);\r\n rule__XUnaryOperation__Alternatives();\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.getXUnaryOperationAccess().getAlternatives()); \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": "f2e60e4cd018d4d9209b5f7fd81d60da", "score": "0.8371401", "text": "public final void ruleXUnaryOperation() 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:780:2: ( ( ( rule__XUnaryOperation__Alternatives ) ) )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:781:1: ( ( rule__XUnaryOperation__Alternatives ) )\n {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:781:1: ( ( rule__XUnaryOperation__Alternatives ) )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:782:1: ( rule__XUnaryOperation__Alternatives )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXUnaryOperationAccess().getAlternatives()); \n }\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:783:1: ( rule__XUnaryOperation__Alternatives )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:783:2: rule__XUnaryOperation__Alternatives\n {\n pushFollow(FOLLOW_rule__XUnaryOperation__Alternatives_in_ruleXUnaryOperation1605);\n rule__XUnaryOperation__Alternatives();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXUnaryOperationAccess().getAlternatives()); \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": "bb808768b49859417544dbd878348fc4", "score": "0.8239176", "text": "public final void ruleOpUnary() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:1150:2: ( ( ( rule__OpUnary__Alternatives ) ) )\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:1151:1: ( ( rule__OpUnary__Alternatives ) )\r\n {\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:1151:1: ( ( rule__OpUnary__Alternatives ) )\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:1152:1: ( rule__OpUnary__Alternatives )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getOpUnaryAccess().getAlternatives()); \r\n }\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:1153:1: ( rule__OpUnary__Alternatives )\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:1153:2: rule__OpUnary__Alternatives\r\n {\r\n pushFollow(FOLLOW_rule__OpUnary__Alternatives_in_ruleOpUnary2391);\r\n rule__OpUnary__Alternatives();\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.getOpUnaryAccess().getAlternatives()); \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": "834592cc8c4227a3be2fec1574c2f7b0", "score": "0.81957245", "text": "public final void ruleOpUnary() 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:808:2: ( ( ( rule__OpUnary__Alternatives ) ) )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:809:1: ( ( rule__OpUnary__Alternatives ) )\n {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:809:1: ( ( rule__OpUnary__Alternatives ) )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:810:1: ( rule__OpUnary__Alternatives )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getOpUnaryAccess().getAlternatives()); \n }\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:811:1: ( rule__OpUnary__Alternatives )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:811:2: rule__OpUnary__Alternatives\n {\n pushFollow(FOLLOW_rule__OpUnary__Alternatives_in_ruleOpUnary1665);\n rule__OpUnary__Alternatives();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getOpUnaryAccess().getAlternatives()); \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": "c37fe4940e81494cb1bb9dd29e9bc25c", "score": "0.809359", "text": "public final void ruleXUnaryOperation() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalBugsly.g:667:2: ( ( ( rule__XUnaryOperation__Alternatives ) ) )\r\n // InternalBugsly.g:668:2: ( ( rule__XUnaryOperation__Alternatives ) )\r\n {\r\n // InternalBugsly.g:668:2: ( ( rule__XUnaryOperation__Alternatives ) )\r\n // InternalBugsly.g:669:3: ( rule__XUnaryOperation__Alternatives )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXUnaryOperationAccess().getAlternatives()); \r\n }\r\n // InternalBugsly.g:670:3: ( rule__XUnaryOperation__Alternatives )\r\n // InternalBugsly.g:670:4: rule__XUnaryOperation__Alternatives\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__XUnaryOperation__Alternatives();\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.getXUnaryOperationAccess().getAlternatives()); \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": "e7373244119633d3115e54918b020aa4", "score": "0.80377287", "text": "public final void ruleOpUnary() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDom.g:1751:1: ( ( ( rule__OpUnary__Alternatives ) ) )\n // InternalDom.g:1752:2: ( ( rule__OpUnary__Alternatives ) )\n {\n // InternalDom.g:1752:2: ( ( rule__OpUnary__Alternatives ) )\n // InternalDom.g:1753:3: ( rule__OpUnary__Alternatives )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getOpUnaryAccess().getAlternatives()); \n }\n // InternalDom.g:1754:3: ( rule__OpUnary__Alternatives )\n // InternalDom.g:1754:4: rule__OpUnary__Alternatives\n {\n pushFollow(FOLLOW_2);\n rule__OpUnary__Alternatives();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getOpUnaryAccess().getAlternatives()); \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": "0bda702da3d4b396b6755edce2d62160", "score": "0.80372906", "text": "public final void ruleUnaryExpression() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.kermeta.language.sample.cellularautomata.rules.evolution.cs.ui/src-gen/org/kermeta/language/sample/cellularautomata/rules/ui/contentassist/antlr/internal/InternalEvol.g:521:2: ( ( ( rule__UnaryExpression__Alternatives ) ) )\r\n // ../org.kermeta.language.sample.cellularautomata.rules.evolution.cs.ui/src-gen/org/kermeta/language/sample/cellularautomata/rules/ui/contentassist/antlr/internal/InternalEvol.g:522:1: ( ( rule__UnaryExpression__Alternatives ) )\r\n {\r\n // ../org.kermeta.language.sample.cellularautomata.rules.evolution.cs.ui/src-gen/org/kermeta/language/sample/cellularautomata/rules/ui/contentassist/antlr/internal/InternalEvol.g:522:1: ( ( rule__UnaryExpression__Alternatives ) )\r\n // ../org.kermeta.language.sample.cellularautomata.rules.evolution.cs.ui/src-gen/org/kermeta/language/sample/cellularautomata/rules/ui/contentassist/antlr/internal/InternalEvol.g:523:1: ( rule__UnaryExpression__Alternatives )\r\n {\r\n before(grammarAccess.getUnaryExpressionAccess().getAlternatives()); \r\n // ../org.kermeta.language.sample.cellularautomata.rules.evolution.cs.ui/src-gen/org/kermeta/language/sample/cellularautomata/rules/ui/contentassist/antlr/internal/InternalEvol.g:524:1: ( rule__UnaryExpression__Alternatives )\r\n // ../org.kermeta.language.sample.cellularautomata.rules.evolution.cs.ui/src-gen/org/kermeta/language/sample/cellularautomata/rules/ui/contentassist/antlr/internal/InternalEvol.g:524:2: rule__UnaryExpression__Alternatives\r\n {\r\n pushFollow(FollowSets000.FOLLOW_rule__UnaryExpression__Alternatives_in_ruleUnaryExpression1054);\r\n rule__UnaryExpression__Alternatives();\r\n\r\n state._fsp--;\r\n\r\n\r\n }\r\n\r\n after(grammarAccess.getUnaryExpressionAccess().getAlternatives()); \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": "98e0f68d9ff77f725be2fdf857384364", "score": "0.79363793", "text": "public final void rule__XUnaryOperation__Alternatives() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:2852:1: ( ( ( rule__XUnaryOperation__Group_0__0 ) ) | ( ruleXCastedExpression ) )\r\n int alt17=2;\r\n int LA17_0 = input.LA(1);\r\n\r\n if ( ((LA17_0>=23 && LA17_0<=24)||LA17_0==29) ) {\r\n alt17=1;\r\n }\r\n else if ( ((LA17_0>=RULE_ID && LA17_0<=RULE_INT)||LA17_0==20||(LA17_0>=32 && LA17_0<=33)||LA17_0==43||LA17_0==45||LA17_0==50||(LA17_0>=57 && LA17_0<=58)||LA17_0==61||LA17_0==68||LA17_0==70||(LA17_0>=74 && LA17_0<=75)||(LA17_0>=77 && LA17_0<=82)||LA17_0==94) ) {\r\n alt17=2;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return ;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 17, 0, input);\r\n\r\n throw nvae;\r\n }\r\n switch (alt17) {\r\n case 1 :\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:2853:1: ( ( rule__XUnaryOperation__Group_0__0 ) )\r\n {\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:2853:1: ( ( rule__XUnaryOperation__Group_0__0 ) )\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:2854:1: ( rule__XUnaryOperation__Group_0__0 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXUnaryOperationAccess().getGroup_0()); \r\n }\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:2855:1: ( rule__XUnaryOperation__Group_0__0 )\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:2855:2: rule__XUnaryOperation__Group_0__0\r\n {\r\n pushFollow(FOLLOW_rule__XUnaryOperation__Group_0__0_in_rule__XUnaryOperation__Alternatives6147);\r\n rule__XUnaryOperation__Group_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.getXUnaryOperationAccess().getGroup_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 2 :\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:2859:6: ( ruleXCastedExpression )\r\n {\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:2859:6: ( ruleXCastedExpression )\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:2860:1: ruleXCastedExpression\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXUnaryOperationAccess().getXCastedExpressionParserRuleCall_1()); \r\n }\r\n pushFollow(FOLLOW_ruleXCastedExpression_in_rule__XUnaryOperation__Alternatives6165);\r\n ruleXCastedExpression();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXUnaryOperationAccess().getXCastedExpressionParserRuleCall_1()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\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": "480231ade951ac9ab4e879c34ce24e55", "score": "0.79097337", "text": "public final void ruleOpUnary() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalBugsly.g:692:2: ( ( ( rule__OpUnary__Alternatives ) ) )\r\n // InternalBugsly.g:693:2: ( ( rule__OpUnary__Alternatives ) )\r\n {\r\n // InternalBugsly.g:693:2: ( ( rule__OpUnary__Alternatives ) )\r\n // InternalBugsly.g:694:3: ( rule__OpUnary__Alternatives )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getOpUnaryAccess().getAlternatives()); \r\n }\r\n // InternalBugsly.g:695:3: ( rule__OpUnary__Alternatives )\r\n // InternalBugsly.g:695:4: rule__OpUnary__Alternatives\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__OpUnary__Alternatives();\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.getOpUnaryAccess().getAlternatives()); \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": "0b80c4e52be08434831e14c8b38ec384", "score": "0.7768106", "text": "public final void rule__XUnaryOperation__Alternatives() 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:2666:1: ( ( ( rule__XUnaryOperation__Group_0__0 ) ) | ( ruleXCastedExpression ) )\n int alt15=2;\n int LA15_0 = input.LA(1);\n\n if ( ((LA15_0>=33 && LA15_0<=34)||LA15_0==39) ) {\n alt15=1;\n }\n else if ( ((LA15_0>=RULE_ID && LA15_0<=RULE_STRING)||LA15_0==25||(LA15_0>=42 && LA15_0<=47)||LA15_0==49||LA15_0==52||(LA15_0>=56 && LA15_0<=57)||LA15_0==60||LA15_0==62||(LA15_0>=66 && LA15_0<=74)||LA15_0==83) ) {\n alt15=2;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 15, 0, input);\n\n throw nvae;\n }\n switch (alt15) {\n case 1 :\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:2667:1: ( ( rule__XUnaryOperation__Group_0__0 ) )\n {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:2667:1: ( ( rule__XUnaryOperation__Group_0__0 ) )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:2668:1: ( rule__XUnaryOperation__Group_0__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXUnaryOperationAccess().getGroup_0()); \n }\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:2669:1: ( rule__XUnaryOperation__Group_0__0 )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:2669:2: rule__XUnaryOperation__Group_0__0\n {\n pushFollow(FOLLOW_rule__XUnaryOperation__Group_0__0_in_rule__XUnaryOperation__Alternatives5693);\n rule__XUnaryOperation__Group_0__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXUnaryOperationAccess().getGroup_0()); \n }\n\n }\n\n\n }\n break;\n case 2 :\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:2673:6: ( ruleXCastedExpression )\n {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:2673:6: ( ruleXCastedExpression )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:2674:1: ruleXCastedExpression\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXUnaryOperationAccess().getXCastedExpressionParserRuleCall_1()); \n }\n pushFollow(FOLLOW_ruleXCastedExpression_in_rule__XUnaryOperation__Alternatives5711);\n ruleXCastedExpression();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXUnaryOperationAccess().getXCastedExpressionParserRuleCall_1()); \n }\n\n }\n\n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "70a0149250030327fac75a131e36e266", "score": "0.76089734", "text": "public final void ruleUnaryExpr() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalLTL.g:142:2: ( ( ( rule__UnaryExpr__Alternatives ) ) )\n // InternalLTL.g:143:2: ( ( rule__UnaryExpr__Alternatives ) )\n {\n // InternalLTL.g:143:2: ( ( rule__UnaryExpr__Alternatives ) )\n // InternalLTL.g:144:3: ( rule__UnaryExpr__Alternatives )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getUnaryExprAccess().getAlternatives()); \n }\n // InternalLTL.g:145:3: ( rule__UnaryExpr__Alternatives )\n // InternalLTL.g:145:4: rule__UnaryExpr__Alternatives\n {\n pushFollow(FOLLOW_2);\n rule__UnaryExpr__Alternatives();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getUnaryExprAccess().getAlternatives()); \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": "f25e7a3ac11fb58aebd2fd152fcb21b1", "score": "0.7549376", "text": "public final void ruleUnary() throws RecognitionException {\n int ruleUnary_StartIndex = input.index();\n\n \t\tint stackSize = keepStackSize();\n \n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 150) ) { return ; }\n // InternalGaml.g:2157:2: ( ( ( rule__Unary__Alternatives ) ) )\n // InternalGaml.g:2158:1: ( ( rule__Unary__Alternatives ) )\n {\n // InternalGaml.g:2158:1: ( ( rule__Unary__Alternatives ) )\n // InternalGaml.g:2159:1: ( rule__Unary__Alternatives )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getUnaryAccess().getAlternatives()); \n }\n // InternalGaml.g:2160:1: ( rule__Unary__Alternatives )\n // InternalGaml.g:2160:2: rule__Unary__Alternatives\n {\n pushFollow(FollowSets000.FOLLOW_2);\n rule__Unary__Alternatives();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getUnaryAccess().getAlternatives()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n if ( state.backtracking>0 ) { memoize(input, 150, ruleUnary_StartIndex); }\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "8e8a82f3391d468dfffbcbe0cc89cb19", "score": "0.7505733", "text": "public final void ruleDmxUnaryOperation() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDom.g:924:2: ( ( ( rule__DmxUnaryOperation__Alternatives ) ) )\n // InternalDom.g:925:2: ( ( rule__DmxUnaryOperation__Alternatives ) )\n {\n // InternalDom.g:925:2: ( ( rule__DmxUnaryOperation__Alternatives ) )\n // InternalDom.g:926:3: ( rule__DmxUnaryOperation__Alternatives )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getDmxUnaryOperationAccess().getAlternatives()); \n }\n // InternalDom.g:927:3: ( rule__DmxUnaryOperation__Alternatives )\n // InternalDom.g:927:4: rule__DmxUnaryOperation__Alternatives\n {\n pushFollow(FOLLOW_2);\n rule__DmxUnaryOperation__Alternatives();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getDmxUnaryOperationAccess().getAlternatives()); \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": "6c4766b36eeef59f56bb70c1911d9509", "score": "0.7348517", "text": "public final void entryRuleOpUnary() throws RecognitionException {\r\n try {\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:1138:1: ( ruleOpUnary EOF )\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:1139:1: ruleOpUnary EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getOpUnaryRule()); \r\n }\r\n pushFollow(FOLLOW_ruleOpUnary_in_entryRuleOpUnary2358);\r\n ruleOpUnary();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getOpUnaryRule()); \r\n }\r\n match(input,EOF,FOLLOW_EOF_in_entryRuleOpUnary2365); 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 return ;\r\n }", "title": "" }, { "docid": "154a5831d27f01cf2a54bade2fa8acbe", "score": "0.7339786", "text": "public final void entryRuleXUnaryOperation() throws RecognitionException {\r\n try {\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:1110:1: ( ruleXUnaryOperation EOF )\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:1111:1: ruleXUnaryOperation EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXUnaryOperationRule()); \r\n }\r\n pushFollow(FOLLOW_ruleXUnaryOperation_in_entryRuleXUnaryOperation2298);\r\n ruleXUnaryOperation();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXUnaryOperationRule()); \r\n }\r\n match(input,EOF,FOLLOW_EOF_in_entryRuleXUnaryOperation2305); 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 return ;\r\n }", "title": "" }, { "docid": "0102bbc005a2de05a277fd7a9287e276", "score": "0.73140585", "text": "public final void rule__XUnaryOperation__Alternatives() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalBugsly.g:2505:1: ( ( ( rule__XUnaryOperation__Group_0__0 ) ) | ( ruleXCastedExpression ) )\r\n int alt16=2;\r\n int LA16_0 = input.LA(1);\r\n\r\n if ( ((LA16_0>=34 && LA16_0<=35)||LA16_0==40) ) {\r\n alt16=1;\r\n }\r\n else if ( ((LA16_0>=RULE_ID && LA16_0<=RULE_STRING)||LA16_0==27||(LA16_0>=45 && LA16_0<=50)||LA16_0==53||(LA16_0>=57 && LA16_0<=58)||LA16_0==61||LA16_0==64||LA16_0==66||(LA16_0>=70 && LA16_0<=78)||LA16_0==80||LA16_0==88) ) {\r\n alt16=2;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return ;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 16, 0, input);\r\n\r\n throw nvae;\r\n }\r\n switch (alt16) {\r\n case 1 :\r\n // InternalBugsly.g:2506:2: ( ( rule__XUnaryOperation__Group_0__0 ) )\r\n {\r\n // InternalBugsly.g:2506:2: ( ( rule__XUnaryOperation__Group_0__0 ) )\r\n // InternalBugsly.g:2507:3: ( rule__XUnaryOperation__Group_0__0 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXUnaryOperationAccess().getGroup_0()); \r\n }\r\n // InternalBugsly.g:2508:3: ( rule__XUnaryOperation__Group_0__0 )\r\n // InternalBugsly.g:2508:4: rule__XUnaryOperation__Group_0__0\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__XUnaryOperation__Group_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.getXUnaryOperationAccess().getGroup_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 2 :\r\n // InternalBugsly.g:2512:2: ( ruleXCastedExpression )\r\n {\r\n // InternalBugsly.g:2512:2: ( ruleXCastedExpression )\r\n // InternalBugsly.g:2513:3: ruleXCastedExpression\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXUnaryOperationAccess().getXCastedExpressionParserRuleCall_1()); \r\n }\r\n pushFollow(FOLLOW_2);\r\n ruleXCastedExpression();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXUnaryOperationAccess().getXCastedExpressionParserRuleCall_1()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\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": "2d8b79d066411bd772d62c3092c6bff2", "score": "0.72625893", "text": "public final void rule__OpUnary__Alternatives() 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:2688:1: ( ( '!' ) | ( '-' ) | ( '+' ) )\n int alt16=3;\n switch ( input.LA(1) ) {\n case 39:\n {\n alt16=1;\n }\n break;\n case 34:\n {\n alt16=2;\n }\n break;\n case 33:\n {\n alt16=3;\n }\n break;\n default:\n if (state.backtracking>0) {state.failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 16, 0, input);\n\n throw nvae;\n }\n\n switch (alt16) {\n case 1 :\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:2689:1: ( '!' )\n {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:2689:1: ( '!' )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:2690:1: '!'\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getOpUnaryAccess().getExclamationMarkKeyword_0()); \n }\n match(input,39,FOLLOW_39_in_rule__OpUnary__Alternatives5744); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getOpUnaryAccess().getExclamationMarkKeyword_0()); \n }\n\n }\n\n\n }\n break;\n case 2 :\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:2697:6: ( '-' )\n {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:2697:6: ( '-' )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:2698:1: '-'\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getOpUnaryAccess().getHyphenMinusKeyword_1()); \n }\n match(input,34,FOLLOW_34_in_rule__OpUnary__Alternatives5764); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getOpUnaryAccess().getHyphenMinusKeyword_1()); \n }\n\n }\n\n\n }\n break;\n case 3 :\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:2705:6: ( '+' )\n {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:2705:6: ( '+' )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:2706:1: '+'\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getOpUnaryAccess().getPlusSignKeyword_2()); \n }\n match(input,33,FOLLOW_33_in_rule__OpUnary__Alternatives5784); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getOpUnaryAccess().getPlusSignKeyword_2()); \n }\n\n }\n\n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "f32d30a44cac4c4464bdcf5a547317e6", "score": "0.7248571", "text": "public final void rule__OpUnary__Alternatives() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:2874:1: ( ( '!' ) | ( '-' ) | ( '+' ) )\r\n int alt18=3;\r\n switch ( input.LA(1) ) {\r\n case 29:\r\n {\r\n alt18=1;\r\n }\r\n break;\r\n case 24:\r\n {\r\n alt18=2;\r\n }\r\n break;\r\n case 23:\r\n {\r\n alt18=3;\r\n }\r\n break;\r\n default:\r\n if (state.backtracking>0) {state.failed=true; return ;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 18, 0, input);\r\n\r\n throw nvae;\r\n }\r\n\r\n switch (alt18) {\r\n case 1 :\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:2875:1: ( '!' )\r\n {\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:2875:1: ( '!' )\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:2876:1: '!'\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getOpUnaryAccess().getExclamationMarkKeyword_0()); \r\n }\r\n match(input,29,FOLLOW_29_in_rule__OpUnary__Alternatives6198); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getOpUnaryAccess().getExclamationMarkKeyword_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 2 :\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:2883:6: ( '-' )\r\n {\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:2883:6: ( '-' )\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:2884:1: '-'\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getOpUnaryAccess().getHyphenMinusKeyword_1()); \r\n }\r\n match(input,24,FOLLOW_24_in_rule__OpUnary__Alternatives6218); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getOpUnaryAccess().getHyphenMinusKeyword_1()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 3 :\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:2891:6: ( '+' )\r\n {\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:2891:6: ( '+' )\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:2892:1: '+'\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getOpUnaryAccess().getPlusSignKeyword_2()); \r\n }\r\n match(input,23,FOLLOW_23_in_rule__OpUnary__Alternatives6238); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getOpUnaryAccess().getPlusSignKeyword_2()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\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": "6d9167607130d09caf8bc532af446bf4", "score": "0.7107123", "text": "public final void rule__UnaryExpression__Alternatives() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.kermeta.language.sample.cellularautomata.rules.evolution.cs.ui/src-gen/org/kermeta/language/sample/cellularautomata/rules/ui/contentassist/antlr/internal/InternalEvol.g:742:1: ( ( ruleLiteralsExpression ) | ( ( rule__UnaryExpression__Group_1__0 ) ) | ( ( rule__UnaryExpression__Group_2__0 ) ) )\r\n int alt6=3;\r\n switch ( input.LA(1) ) {\r\n case RULE_INT:\r\n case 19:\r\n case 21:\r\n case 22:\r\n case 23:\r\n case 24:\r\n case 25:\r\n {\r\n alt6=1;\r\n }\r\n break;\r\n case 34:\r\n {\r\n int LA6_2 = input.LA(2);\r\n\r\n if ( (LA6_2==19||(LA6_2>=21 && LA6_2<=25)||LA6_2==34) ) {\r\n alt6=3;\r\n }\r\n else if ( (LA6_2==RULE_INT) ) {\r\n alt6=1;\r\n }\r\n else {\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 6, 2, input);\r\n\r\n throw nvae;\r\n }\r\n }\r\n break;\r\n case 38:\r\n {\r\n alt6=2;\r\n }\r\n break;\r\n default:\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 6, 0, input);\r\n\r\n throw nvae;\r\n }\r\n\r\n switch (alt6) {\r\n case 1 :\r\n // ../org.kermeta.language.sample.cellularautomata.rules.evolution.cs.ui/src-gen/org/kermeta/language/sample/cellularautomata/rules/ui/contentassist/antlr/internal/InternalEvol.g:743:1: ( ruleLiteralsExpression )\r\n {\r\n // ../org.kermeta.language.sample.cellularautomata.rules.evolution.cs.ui/src-gen/org/kermeta/language/sample/cellularautomata/rules/ui/contentassist/antlr/internal/InternalEvol.g:743:1: ( ruleLiteralsExpression )\r\n // ../org.kermeta.language.sample.cellularautomata.rules.evolution.cs.ui/src-gen/org/kermeta/language/sample/cellularautomata/rules/ui/contentassist/antlr/internal/InternalEvol.g:744:1: ruleLiteralsExpression\r\n {\r\n before(grammarAccess.getUnaryExpressionAccess().getLiteralsExpressionParserRuleCall_0()); \r\n pushFollow(FollowSets000.FOLLOW_ruleLiteralsExpression_in_rule__UnaryExpression__Alternatives1566);\r\n ruleLiteralsExpression();\r\n\r\n state._fsp--;\r\n\r\n after(grammarAccess.getUnaryExpressionAccess().getLiteralsExpressionParserRuleCall_0()); \r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 2 :\r\n // ../org.kermeta.language.sample.cellularautomata.rules.evolution.cs.ui/src-gen/org/kermeta/language/sample/cellularautomata/rules/ui/contentassist/antlr/internal/InternalEvol.g:749:6: ( ( rule__UnaryExpression__Group_1__0 ) )\r\n {\r\n // ../org.kermeta.language.sample.cellularautomata.rules.evolution.cs.ui/src-gen/org/kermeta/language/sample/cellularautomata/rules/ui/contentassist/antlr/internal/InternalEvol.g:749:6: ( ( rule__UnaryExpression__Group_1__0 ) )\r\n // ../org.kermeta.language.sample.cellularautomata.rules.evolution.cs.ui/src-gen/org/kermeta/language/sample/cellularautomata/rules/ui/contentassist/antlr/internal/InternalEvol.g:750:1: ( rule__UnaryExpression__Group_1__0 )\r\n {\r\n before(grammarAccess.getUnaryExpressionAccess().getGroup_1()); \r\n // ../org.kermeta.language.sample.cellularautomata.rules.evolution.cs.ui/src-gen/org/kermeta/language/sample/cellularautomata/rules/ui/contentassist/antlr/internal/InternalEvol.g:751:1: ( rule__UnaryExpression__Group_1__0 )\r\n // ../org.kermeta.language.sample.cellularautomata.rules.evolution.cs.ui/src-gen/org/kermeta/language/sample/cellularautomata/rules/ui/contentassist/antlr/internal/InternalEvol.g:751:2: rule__UnaryExpression__Group_1__0\r\n {\r\n pushFollow(FollowSets000.FOLLOW_rule__UnaryExpression__Group_1__0_in_rule__UnaryExpression__Alternatives1583);\r\n rule__UnaryExpression__Group_1__0();\r\n\r\n state._fsp--;\r\n\r\n\r\n }\r\n\r\n after(grammarAccess.getUnaryExpressionAccess().getGroup_1()); \r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 3 :\r\n // ../org.kermeta.language.sample.cellularautomata.rules.evolution.cs.ui/src-gen/org/kermeta/language/sample/cellularautomata/rules/ui/contentassist/antlr/internal/InternalEvol.g:755:6: ( ( rule__UnaryExpression__Group_2__0 ) )\r\n {\r\n // ../org.kermeta.language.sample.cellularautomata.rules.evolution.cs.ui/src-gen/org/kermeta/language/sample/cellularautomata/rules/ui/contentassist/antlr/internal/InternalEvol.g:755:6: ( ( rule__UnaryExpression__Group_2__0 ) )\r\n // ../org.kermeta.language.sample.cellularautomata.rules.evolution.cs.ui/src-gen/org/kermeta/language/sample/cellularautomata/rules/ui/contentassist/antlr/internal/InternalEvol.g:756:1: ( rule__UnaryExpression__Group_2__0 )\r\n {\r\n before(grammarAccess.getUnaryExpressionAccess().getGroup_2()); \r\n // ../org.kermeta.language.sample.cellularautomata.rules.evolution.cs.ui/src-gen/org/kermeta/language/sample/cellularautomata/rules/ui/contentassist/antlr/internal/InternalEvol.g:757:1: ( rule__UnaryExpression__Group_2__0 )\r\n // ../org.kermeta.language.sample.cellularautomata.rules.evolution.cs.ui/src-gen/org/kermeta/language/sample/cellularautomata/rules/ui/contentassist/antlr/internal/InternalEvol.g:757:2: rule__UnaryExpression__Group_2__0\r\n {\r\n pushFollow(FollowSets000.FOLLOW_rule__UnaryExpression__Group_2__0_in_rule__UnaryExpression__Alternatives1601);\r\n rule__UnaryExpression__Group_2__0();\r\n\r\n state._fsp--;\r\n\r\n\r\n }\r\n\r\n after(grammarAccess.getUnaryExpressionAccess().getGroup_2()); \r\n\r\n }\r\n\r\n\r\n }\r\n break;\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": "b74e7cbdbe08a716f932834533f90bae", "score": "0.7080257", "text": "public final void entryRuleOpUnary() throws RecognitionException {\n try {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:796:1: ( ruleOpUnary EOF )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:797:1: ruleOpUnary EOF\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getOpUnaryRule()); \n }\n pushFollow(FOLLOW_ruleOpUnary_in_entryRuleOpUnary1632);\n ruleOpUnary();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getOpUnaryRule()); \n }\n match(input,EOF,FOLLOW_EOF_in_entryRuleOpUnary1639); 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": "362bcdb1d51ab895a5492d78d45b34db", "score": "0.7020178", "text": "public final void rule__XUnaryOperation__FeatureAssignment_0_1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:18791:1: ( ( ( ruleOpUnary ) ) )\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:18792:1: ( ( ruleOpUnary ) )\r\n {\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:18792:1: ( ( ruleOpUnary ) )\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:18793:1: ( ruleOpUnary )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXUnaryOperationAccess().getFeatureJvmIdentifiableElementCrossReference_0_1_0()); \r\n }\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:18794:1: ( ruleOpUnary )\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:18795:1: ruleOpUnary\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXUnaryOperationAccess().getFeatureJvmIdentifiableElementOpUnaryParserRuleCall_0_1_0_1()); \r\n }\r\n pushFollow(FOLLOW_ruleOpUnary_in_rule__XUnaryOperation__FeatureAssignment_0_137805);\r\n ruleOpUnary();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXUnaryOperationAccess().getFeatureJvmIdentifiableElementOpUnaryParserRuleCall_0_1_0_1()); \r\n }\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXUnaryOperationAccess().getFeatureJvmIdentifiableElementCrossReference_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": "564b4a32a18297b5519afcf39b12479e", "score": "0.7008771", "text": "public final void entryRuleXUnaryOperation() throws RecognitionException {\n try {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:768:1: ( ruleXUnaryOperation EOF )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:769:1: ruleXUnaryOperation EOF\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXUnaryOperationRule()); \n }\n pushFollow(FOLLOW_ruleXUnaryOperation_in_entryRuleXUnaryOperation1572);\n ruleXUnaryOperation();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXUnaryOperationRule()); \n }\n match(input,EOF,FOLLOW_EOF_in_entryRuleXUnaryOperation1579); 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": "1d7bff008550d0ca50a5a3c7a38bec85", "score": "0.6947186", "text": "public final void entryRuleXUnaryOperation() throws RecognitionException {\r\n try {\r\n // InternalBugsly.g:655:1: ( ruleXUnaryOperation EOF )\r\n // InternalBugsly.g:656:1: ruleXUnaryOperation EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXUnaryOperationRule()); \r\n }\r\n pushFollow(FOLLOW_1);\r\n ruleXUnaryOperation();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXUnaryOperationRule()); \r\n }\r\n match(input,EOF,FOLLOW_2); 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 return ;\r\n }", "title": "" }, { "docid": "fb1288636321ad638ab9dba7113cb350", "score": "0.6896143", "text": "public final String entryRuleOpUnary() throws RecognitionException {\n String current = null;\n\n AntlrDatatypeRuleToken iv_ruleOpUnary = null;\n\n\n try {\n // InternalSpeADL.g:2978:2: (iv_ruleOpUnary= ruleOpUnary EOF )\n // InternalSpeADL.g:2979:2: iv_ruleOpUnary= ruleOpUnary EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getOpUnaryRule()); \n }\n pushFollow(FOLLOW_1);\n iv_ruleOpUnary=ruleOpUnary();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleOpUnary.getText(); \n }\n match(input,EOF,FOLLOW_2); if (state.failed) return current;\n\n }\n\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "title": "" }, { "docid": "3c96b4f0cbdc9c2e38866ac8cca1cbd8", "score": "0.6892582", "text": "public final void rule__OpUnary__Alternatives() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalBugsly.g:2526:1: ( ( '!' ) | ( '-' ) | ( '+' ) )\r\n int alt17=3;\r\n switch ( input.LA(1) ) {\r\n case 40:\r\n {\r\n alt17=1;\r\n }\r\n break;\r\n case 35:\r\n {\r\n alt17=2;\r\n }\r\n break;\r\n case 34:\r\n {\r\n alt17=3;\r\n }\r\n break;\r\n default:\r\n if (state.backtracking>0) {state.failed=true; return ;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 17, 0, input);\r\n\r\n throw nvae;\r\n }\r\n\r\n switch (alt17) {\r\n case 1 :\r\n // InternalBugsly.g:2527:2: ( '!' )\r\n {\r\n // InternalBugsly.g:2527:2: ( '!' )\r\n // InternalBugsly.g:2528:3: '!'\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getOpUnaryAccess().getExclamationMarkKeyword_0()); \r\n }\r\n match(input,40,FOLLOW_2); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getOpUnaryAccess().getExclamationMarkKeyword_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 2 :\r\n // InternalBugsly.g:2533:2: ( '-' )\r\n {\r\n // InternalBugsly.g:2533:2: ( '-' )\r\n // InternalBugsly.g:2534:3: '-'\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getOpUnaryAccess().getHyphenMinusKeyword_1()); \r\n }\r\n match(input,35,FOLLOW_2); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getOpUnaryAccess().getHyphenMinusKeyword_1()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 3 :\r\n // InternalBugsly.g:2539:2: ( '+' )\r\n {\r\n // InternalBugsly.g:2539:2: ( '+' )\r\n // InternalBugsly.g:2540:3: '+'\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getOpUnaryAccess().getPlusSignKeyword_2()); \r\n }\r\n match(input,34,FOLLOW_2); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getOpUnaryAccess().getPlusSignKeyword_2()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\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": "39b1f626e6fae9623d16def60449ca5c", "score": "0.68864024", "text": "public final void entryRuleOpUnary() throws RecognitionException {\r\n try {\r\n // InternalBugsly.g:680:1: ( ruleOpUnary EOF )\r\n // InternalBugsly.g:681:1: ruleOpUnary EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getOpUnaryRule()); \r\n }\r\n pushFollow(FOLLOW_1);\r\n ruleOpUnary();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getOpUnaryRule()); \r\n }\r\n match(input,EOF,FOLLOW_2); 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 return ;\r\n }", "title": "" }, { "docid": "9643ab2709b6cae7b383bac6539da0cc", "score": "0.688366", "text": "public final void rule__OpUnary__Alternatives() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDom.g:2673:1: ( ( ( '+' ) ) | ( ( '-' ) ) | ( ( '!' ) ) | ( ( 'NOT' ) ) | ( ( 'not' ) ) )\n int alt33=5;\n switch ( input.LA(1) ) {\n case 30:\n {\n alt33=1;\n }\n break;\n case 31:\n {\n alt33=2;\n }\n break;\n case 74:\n {\n alt33=3;\n }\n break;\n case 75:\n {\n alt33=4;\n }\n break;\n case 76:\n {\n alt33=5;\n }\n break;\n default:\n if (state.backtracking>0) {state.failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 33, 0, input);\n\n throw nvae;\n }\n\n switch (alt33) {\n case 1 :\n // InternalDom.g:2674:2: ( ( '+' ) )\n {\n // InternalDom.g:2674:2: ( ( '+' ) )\n // InternalDom.g:2675:3: ( '+' )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getOpUnaryAccess().getPLUSEnumLiteralDeclaration_0()); \n }\n // InternalDom.g:2676:3: ( '+' )\n // InternalDom.g:2676:4: '+'\n {\n match(input,30,FOLLOW_2); if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getOpUnaryAccess().getPLUSEnumLiteralDeclaration_0()); \n }\n\n }\n\n\n }\n break;\n case 2 :\n // InternalDom.g:2680:2: ( ( '-' ) )\n {\n // InternalDom.g:2680:2: ( ( '-' ) )\n // InternalDom.g:2681:3: ( '-' )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getOpUnaryAccess().getMINUSEnumLiteralDeclaration_1()); \n }\n // InternalDom.g:2682:3: ( '-' )\n // InternalDom.g:2682:4: '-'\n {\n match(input,31,FOLLOW_2); if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getOpUnaryAccess().getMINUSEnumLiteralDeclaration_1()); \n }\n\n }\n\n\n }\n break;\n case 3 :\n // InternalDom.g:2686:2: ( ( '!' ) )\n {\n // InternalDom.g:2686:2: ( ( '!' ) )\n // InternalDom.g:2687:3: ( '!' )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getOpUnaryAccess().getNOTEnumLiteralDeclaration_2()); \n }\n // InternalDom.g:2688:3: ( '!' )\n // InternalDom.g:2688:4: '!'\n {\n match(input,74,FOLLOW_2); if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getOpUnaryAccess().getNOTEnumLiteralDeclaration_2()); \n }\n\n }\n\n\n }\n break;\n case 4 :\n // InternalDom.g:2692:2: ( ( 'NOT' ) )\n {\n // InternalDom.g:2692:2: ( ( 'NOT' ) )\n // InternalDom.g:2693:3: ( 'NOT' )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getOpUnaryAccess().getNOTEnumLiteralDeclaration_3()); \n }\n // InternalDom.g:2694:3: ( 'NOT' )\n // InternalDom.g:2694:4: 'NOT'\n {\n match(input,75,FOLLOW_2); if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getOpUnaryAccess().getNOTEnumLiteralDeclaration_3()); \n }\n\n }\n\n\n }\n break;\n case 5 :\n // InternalDom.g:2698:2: ( ( 'not' ) )\n {\n // InternalDom.g:2698:2: ( ( 'not' ) )\n // InternalDom.g:2699:3: ( 'not' )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getOpUnaryAccess().getNOTEnumLiteralDeclaration_4()); \n }\n // InternalDom.g:2700:3: ( 'not' )\n // InternalDom.g:2700:4: 'not'\n {\n match(input,76,FOLLOW_2); if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getOpUnaryAccess().getNOTEnumLiteralDeclaration_4()); \n }\n\n }\n\n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "09d953bdafea49a6bd1afb45503f759f", "score": "0.68835366", "text": "public final void rule__XUnaryOperation__FeatureAssignment_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:16325:1: ( ( ( ruleOpUnary ) ) )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:16326:1: ( ( ruleOpUnary ) )\n {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:16326:1: ( ( ruleOpUnary ) )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:16327:1: ( ruleOpUnary )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXUnaryOperationAccess().getFeatureJvmIdentifiableElementCrossReference_0_1_0()); \n }\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:16328:1: ( ruleOpUnary )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:16329:1: ruleOpUnary\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXUnaryOperationAccess().getFeatureJvmIdentifiableElementOpUnaryParserRuleCall_0_1_0_1()); \n }\n pushFollow(FOLLOW_ruleOpUnary_in_rule__XUnaryOperation__FeatureAssignment_0_132875);\n ruleOpUnary();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXUnaryOperationAccess().getFeatureJvmIdentifiableElementOpUnaryParserRuleCall_0_1_0_1()); \n }\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXUnaryOperationAccess().getFeatureJvmIdentifiableElementCrossReference_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": "8472127f612a1cb970bab45a2aa3bc5f", "score": "0.6817772", "text": "public final EObject entryRuleXUnaryOperation() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleXUnaryOperation = null;\n\n\n try {\n // InternalSpeADL.g:2908:2: (iv_ruleXUnaryOperation= ruleXUnaryOperation EOF )\n // InternalSpeADL.g:2909:2: iv_ruleXUnaryOperation= ruleXUnaryOperation EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getXUnaryOperationRule()); \n }\n pushFollow(FOLLOW_1);\n iv_ruleXUnaryOperation=ruleXUnaryOperation();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleXUnaryOperation; \n }\n match(input,EOF,FOLLOW_2); if (state.failed) return current;\n\n }\n\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "title": "" }, { "docid": "aa0501a7dc97a3d6f4347d5f223716ed", "score": "0.6797224", "text": "public final String entryRuleOpUnary() throws RecognitionException {\n String current = null;\n\n AntlrDatatypeRuleToken iv_ruleOpUnary = null;\n\n\n try {\n // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:1843:2: (iv_ruleOpUnary= ruleOpUnary EOF )\n // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:1844:2: iv_ruleOpUnary= ruleOpUnary EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getOpUnaryRule()); \n }\n pushFollow(FOLLOW_ruleOpUnary_in_entryRuleOpUnary4708);\n iv_ruleOpUnary=ruleOpUnary();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleOpUnary.getText(); \n }\n match(input,EOF,FOLLOW_EOF_in_entryRuleOpUnary4719); if (state.failed) return current;\n\n }\n\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "title": "" }, { "docid": "764edec8baeade106a24303b79b1d2c6", "score": "0.6744622", "text": "public final void rule__DmxUnaryOperation__Alternatives() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDom.g:1998:1: ( ( ( rule__DmxUnaryOperation__Group_0__0 ) ) | ( ruleDmxCastExpression ) )\n int alt12=2;\n int LA12_0 = input.LA(1);\n\n if ( ((LA12_0>=30 && LA12_0<=31)||(LA12_0>=74 && LA12_0<=76)) ) {\n alt12=1;\n }\n else if ( ((LA12_0>=RULE_NATURAL && LA12_0<=RULE_ID)||LA12_0==RULE_STRING||LA12_0==18||(LA12_0>=24 && LA12_0<=27)||LA12_0==88||(LA12_0>=96 && LA12_0<=98)||LA12_0==101||(LA12_0>=108 && LA12_0<=109)) ) {\n alt12=2;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 12, 0, input);\n\n throw nvae;\n }\n switch (alt12) {\n case 1 :\n // InternalDom.g:1999:2: ( ( rule__DmxUnaryOperation__Group_0__0 ) )\n {\n // InternalDom.g:1999:2: ( ( rule__DmxUnaryOperation__Group_0__0 ) )\n // InternalDom.g:2000:3: ( rule__DmxUnaryOperation__Group_0__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getDmxUnaryOperationAccess().getGroup_0()); \n }\n // InternalDom.g:2001:3: ( rule__DmxUnaryOperation__Group_0__0 )\n // InternalDom.g:2001:4: rule__DmxUnaryOperation__Group_0__0\n {\n pushFollow(FOLLOW_2);\n rule__DmxUnaryOperation__Group_0__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getDmxUnaryOperationAccess().getGroup_0()); \n }\n\n }\n\n\n }\n break;\n case 2 :\n // InternalDom.g:2005:2: ( ruleDmxCastExpression )\n {\n // InternalDom.g:2005:2: ( ruleDmxCastExpression )\n // InternalDom.g:2006:3: ruleDmxCastExpression\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getDmxUnaryOperationAccess().getDmxCastExpressionParserRuleCall_1()); \n }\n pushFollow(FOLLOW_2);\n ruleDmxCastExpression();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getDmxUnaryOperationAccess().getDmxCastExpressionParserRuleCall_1()); \n }\n\n }\n\n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "9502830b535704016f6ba49aeb133f5b", "score": "0.6735616", "text": "public final void rule__Unary__OpAlternatives_1_1_1_0_0() throws RecognitionException {\n int rule__Unary__OpAlternatives_1_1_1_0_0_StartIndex = input.index();\n\n \t\tint stackSize = keepStackSize();\n \n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 258) ) { return ; }\n // InternalGaml.g:4868:1: ( ( '-' ) | ( '!' ) | ( 'my' ) | ( 'the' ) | ( 'not' ) )\n int alt56=5;\n switch ( input.LA(1) ) {\n case 106:\n {\n alt56=1;\n }\n break;\n case 111:\n {\n alt56=2;\n }\n break;\n case 112:\n {\n alt56=3;\n }\n break;\n case 113:\n {\n alt56=4;\n }\n break;\n case 114:\n {\n alt56=5;\n }\n break;\n default:\n if (state.backtracking>0) {state.failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 56, 0, input);\n\n throw nvae;\n }\n\n switch (alt56) {\n case 1 :\n // InternalGaml.g:4869:1: ( '-' )\n {\n // InternalGaml.g:4869:1: ( '-' )\n // InternalGaml.g:4870:1: '-'\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getUnaryAccess().getOpHyphenMinusKeyword_1_1_1_0_0_0()); \n }\n match(input,106,FollowSets000.FOLLOW_2); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getUnaryAccess().getOpHyphenMinusKeyword_1_1_1_0_0_0()); \n }\n\n }\n\n\n }\n break;\n case 2 :\n // InternalGaml.g:4877:6: ( '!' )\n {\n // InternalGaml.g:4877:6: ( '!' )\n // InternalGaml.g:4878:1: '!'\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getUnaryAccess().getOpExclamationMarkKeyword_1_1_1_0_0_1()); \n }\n match(input,111,FollowSets000.FOLLOW_2); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getUnaryAccess().getOpExclamationMarkKeyword_1_1_1_0_0_1()); \n }\n\n }\n\n\n }\n break;\n case 3 :\n // InternalGaml.g:4885:6: ( 'my' )\n {\n // InternalGaml.g:4885:6: ( 'my' )\n // InternalGaml.g:4886:1: 'my'\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getUnaryAccess().getOpMyKeyword_1_1_1_0_0_2()); \n }\n match(input,112,FollowSets000.FOLLOW_2); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getUnaryAccess().getOpMyKeyword_1_1_1_0_0_2()); \n }\n\n }\n\n\n }\n break;\n case 4 :\n // InternalGaml.g:4893:6: ( 'the' )\n {\n // InternalGaml.g:4893:6: ( 'the' )\n // InternalGaml.g:4894:1: 'the'\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getUnaryAccess().getOpTheKeyword_1_1_1_0_0_3()); \n }\n match(input,113,FollowSets000.FOLLOW_2); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getUnaryAccess().getOpTheKeyword_1_1_1_0_0_3()); \n }\n\n }\n\n\n }\n break;\n case 5 :\n // InternalGaml.g:4901:6: ( 'not' )\n {\n // InternalGaml.g:4901:6: ( 'not' )\n // InternalGaml.g:4902:1: 'not'\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getUnaryAccess().getOpNotKeyword_1_1_1_0_0_4()); \n }\n match(input,114,FollowSets000.FOLLOW_2); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getUnaryAccess().getOpNotKeyword_1_1_1_0_0_4()); \n }\n\n }\n\n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n if ( state.backtracking>0 ) { memoize(input, 258, rule__Unary__OpAlternatives_1_1_1_0_0_StartIndex); }\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "a778059ac078feb2133eddd7e4bf58d7", "score": "0.66805935", "text": "public final void rule__XUnaryOperation__FeatureAssignment_0_1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalBugsly.g:16702:1: ( ( ( ruleOpUnary ) ) )\r\n // InternalBugsly.g:16703:2: ( ( ruleOpUnary ) )\r\n {\r\n // InternalBugsly.g:16703:2: ( ( ruleOpUnary ) )\r\n // InternalBugsly.g:16704:3: ( ruleOpUnary )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXUnaryOperationAccess().getFeatureJvmIdentifiableElementCrossReference_0_1_0()); \r\n }\r\n // InternalBugsly.g:16705:3: ( ruleOpUnary )\r\n // InternalBugsly.g:16706:4: ruleOpUnary\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXUnaryOperationAccess().getFeatureJvmIdentifiableElementOpUnaryParserRuleCall_0_1_0_1()); \r\n }\r\n pushFollow(FOLLOW_2);\r\n ruleOpUnary();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXUnaryOperationAccess().getFeatureJvmIdentifiableElementOpUnaryParserRuleCall_0_1_0_1()); \r\n }\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXUnaryOperationAccess().getFeatureJvmIdentifiableElementCrossReference_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": "fe2dfefccc433546e6ff7ec16b1618d3", "score": "0.66483176", "text": "public final EObject entryRuleXUnaryOperation() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleXUnaryOperation = null;\n\n\n try {\n // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:1773:2: (iv_ruleXUnaryOperation= ruleXUnaryOperation EOF )\n // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:1774:2: iv_ruleXUnaryOperation= ruleXUnaryOperation EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getXUnaryOperationRule()); \n }\n pushFollow(FOLLOW_ruleXUnaryOperation_in_entryRuleXUnaryOperation4554);\n iv_ruleXUnaryOperation=ruleXUnaryOperation();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleXUnaryOperation; \n }\n match(input,EOF,FOLLOW_EOF_in_entryRuleXUnaryOperation4564); if (state.failed) return current;\n\n }\n\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "title": "" }, { "docid": "12115ecae2d8302831c0d51a82c11a0b", "score": "0.66256905", "text": "public final EObject ruleExpressionUnary() throws RecognitionException {\n EObject current = null;\n\n AntlrDatatypeRuleToken lv_feature_1_0 = null;\n\n EObject lv_operand_2_0 = null;\n\n EObject this_ExpressionPrimary_3 = null;\n\n\n enterRule(); \n \n try {\n // ../com.crubier.lil/src-gen/com/crubier/lil/parser/antlr/internal/InternalLil.g:3623:28: ( ( ( () ( (lv_feature_1_0= ruleExpressionUnaryOp ) ) ( (lv_operand_2_0= ruleExpressionPrimary ) ) ) | this_ExpressionPrimary_3= ruleExpressionPrimary ) )\n // ../com.crubier.lil/src-gen/com/crubier/lil/parser/antlr/internal/InternalLil.g:3624:1: ( ( () ( (lv_feature_1_0= ruleExpressionUnaryOp ) ) ( (lv_operand_2_0= ruleExpressionPrimary ) ) ) | this_ExpressionPrimary_3= ruleExpressionPrimary )\n {\n // ../com.crubier.lil/src-gen/com/crubier/lil/parser/antlr/internal/InternalLil.g:3624:1: ( ( () ( (lv_feature_1_0= ruleExpressionUnaryOp ) ) ( (lv_operand_2_0= ruleExpressionPrimary ) ) ) | this_ExpressionPrimary_3= ruleExpressionPrimary )\n int alt52=2;\n int LA52_0 = input.LA(1);\n\n if ( ((LA52_0>=68 && LA52_0<=69)||LA52_0==73) ) {\n alt52=1;\n }\n else if ( ((LA52_0>=RULE_ID && LA52_0<=RULE_INT)||LA52_0==30||(LA52_0>=33 && LA52_0<=34)||LA52_0==51||LA52_0==53||LA52_0==74||LA52_0==77||LA52_0==80||(LA52_0>=82 && LA52_0<=116)) ) {\n alt52=2;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return current;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 52, 0, input);\n\n throw nvae;\n }\n switch (alt52) {\n case 1 :\n // ../com.crubier.lil/src-gen/com/crubier/lil/parser/antlr/internal/InternalLil.g:3624:2: ( () ( (lv_feature_1_0= ruleExpressionUnaryOp ) ) ( (lv_operand_2_0= ruleExpressionPrimary ) ) )\n {\n // ../com.crubier.lil/src-gen/com/crubier/lil/parser/antlr/internal/InternalLil.g:3624:2: ( () ( (lv_feature_1_0= ruleExpressionUnaryOp ) ) ( (lv_operand_2_0= ruleExpressionPrimary ) ) )\n // ../com.crubier.lil/src-gen/com/crubier/lil/parser/antlr/internal/InternalLil.g:3624:3: () ( (lv_feature_1_0= ruleExpressionUnaryOp ) ) ( (lv_operand_2_0= ruleExpressionPrimary ) )\n {\n // ../com.crubier.lil/src-gen/com/crubier/lil/parser/antlr/internal/InternalLil.g:3624:3: ()\n // ../com.crubier.lil/src-gen/com/crubier/lil/parser/antlr/internal/InternalLil.g:3625:5: \n {\n if ( state.backtracking==0 ) {\n\n current = forceCreateModelElement(\n grammarAccess.getExpressionUnaryAccess().getUnaryOperationAction_0_0(),\n current);\n \n }\n\n }\n\n // ../com.crubier.lil/src-gen/com/crubier/lil/parser/antlr/internal/InternalLil.g:3630:2: ( (lv_feature_1_0= ruleExpressionUnaryOp ) )\n // ../com.crubier.lil/src-gen/com/crubier/lil/parser/antlr/internal/InternalLil.g:3631:1: (lv_feature_1_0= ruleExpressionUnaryOp )\n {\n // ../com.crubier.lil/src-gen/com/crubier/lil/parser/antlr/internal/InternalLil.g:3631:1: (lv_feature_1_0= ruleExpressionUnaryOp )\n // ../com.crubier.lil/src-gen/com/crubier/lil/parser/antlr/internal/InternalLil.g:3632:3: lv_feature_1_0= ruleExpressionUnaryOp\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getExpressionUnaryAccess().getFeatureExpressionUnaryOpParserRuleCall_0_1_0()); \n \t \n }\n pushFollow(FOLLOW_ruleExpressionUnaryOp_in_ruleExpressionUnary7859);\n lv_feature_1_0=ruleExpressionUnaryOp();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t if (current==null) {\n \t current = createModelElementForParent(grammarAccess.getExpressionUnaryRule());\n \t }\n \t\tset(\n \t\t\tcurrent, \n \t\t\t\"feature\",\n \t\tlv_feature_1_0, \n \t\t\"ExpressionUnaryOp\");\n \t afterParserOrEnumRuleCall();\n \t \n }\n\n }\n\n\n }\n\n // ../com.crubier.lil/src-gen/com/crubier/lil/parser/antlr/internal/InternalLil.g:3648:2: ( (lv_operand_2_0= ruleExpressionPrimary ) )\n // ../com.crubier.lil/src-gen/com/crubier/lil/parser/antlr/internal/InternalLil.g:3649:1: (lv_operand_2_0= ruleExpressionPrimary )\n {\n // ../com.crubier.lil/src-gen/com/crubier/lil/parser/antlr/internal/InternalLil.g:3649:1: (lv_operand_2_0= ruleExpressionPrimary )\n // ../com.crubier.lil/src-gen/com/crubier/lil/parser/antlr/internal/InternalLil.g:3650:3: lv_operand_2_0= ruleExpressionPrimary\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getExpressionUnaryAccess().getOperandExpressionPrimaryParserRuleCall_0_2_0()); \n \t \n }\n pushFollow(FOLLOW_ruleExpressionPrimary_in_ruleExpressionUnary7880);\n lv_operand_2_0=ruleExpressionPrimary();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t if (current==null) {\n \t current = createModelElementForParent(grammarAccess.getExpressionUnaryRule());\n \t }\n \t\tset(\n \t\t\tcurrent, \n \t\t\t\"operand\",\n \t\tlv_operand_2_0, \n \t\t\"ExpressionPrimary\");\n \t afterParserOrEnumRuleCall();\n \t \n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // ../com.crubier.lil/src-gen/com/crubier/lil/parser/antlr/internal/InternalLil.g:3668:5: this_ExpressionPrimary_3= ruleExpressionPrimary\n {\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getExpressionUnaryAccess().getExpressionPrimaryParserRuleCall_1()); \n \n }\n pushFollow(FOLLOW_ruleExpressionPrimary_in_ruleExpressionUnary7909);\n this_ExpressionPrimary_3=ruleExpressionPrimary();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n \n current = this_ExpressionPrimary_3; \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 catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "title": "" }, { "docid": "05c791b57514d446d683d0b1c62684ee", "score": "0.6590154", "text": "public final void rule__UnaryExpr__Alternatives() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalLTL.g:203:1: ( ( ( rule__UnaryExpr__Group_0__0 ) ) | ( ( rule__UnaryExpr__Group_1__0 ) ) | ( ruleLiteral ) )\n int alt2=3;\n switch ( input.LA(1) ) {\n case 14:\n case 15:\n {\n alt2=1;\n }\n break;\n case 25:\n {\n alt2=2;\n }\n break;\n case RULE_VAR_NAME:\n case 21:\n {\n alt2=3;\n }\n break;\n default:\n if (state.backtracking>0) {state.failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 2, 0, input);\n\n throw nvae;\n }\n\n switch (alt2) {\n case 1 :\n // InternalLTL.g:204:2: ( ( rule__UnaryExpr__Group_0__0 ) )\n {\n // InternalLTL.g:204:2: ( ( rule__UnaryExpr__Group_0__0 ) )\n // InternalLTL.g:205:3: ( rule__UnaryExpr__Group_0__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getUnaryExprAccess().getGroup_0()); \n }\n // InternalLTL.g:206:3: ( rule__UnaryExpr__Group_0__0 )\n // InternalLTL.g:206:4: rule__UnaryExpr__Group_0__0\n {\n pushFollow(FOLLOW_2);\n rule__UnaryExpr__Group_0__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getUnaryExprAccess().getGroup_0()); \n }\n\n }\n\n\n }\n break;\n case 2 :\n // InternalLTL.g:210:2: ( ( rule__UnaryExpr__Group_1__0 ) )\n {\n // InternalLTL.g:210:2: ( ( rule__UnaryExpr__Group_1__0 ) )\n // InternalLTL.g:211:3: ( rule__UnaryExpr__Group_1__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getUnaryExprAccess().getGroup_1()); \n }\n // InternalLTL.g:212:3: ( rule__UnaryExpr__Group_1__0 )\n // InternalLTL.g:212:4: rule__UnaryExpr__Group_1__0\n {\n pushFollow(FOLLOW_2);\n rule__UnaryExpr__Group_1__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getUnaryExprAccess().getGroup_1()); \n }\n\n }\n\n\n }\n break;\n case 3 :\n // InternalLTL.g:216:2: ( ruleLiteral )\n {\n // InternalLTL.g:216:2: ( ruleLiteral )\n // InternalLTL.g:217:3: ruleLiteral\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getUnaryExprAccess().getLiteralParserRuleCall_2()); \n }\n pushFollow(FOLLOW_2);\n ruleLiteral();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getUnaryExprAccess().getLiteralParserRuleCall_2()); \n }\n\n }\n\n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "9ef1caf40c3abce2d645adfb16896314", "score": "0.65179604", "text": "public final void entryRuleUnaryExpression() throws RecognitionException {\r\n try {\r\n // ../org.kermeta.language.sample.cellularautomata.rules.evolution.cs.ui/src-gen/org/kermeta/language/sample/cellularautomata/rules/ui/contentassist/antlr/internal/InternalEvol.g:509:1: ( ruleUnaryExpression EOF )\r\n // ../org.kermeta.language.sample.cellularautomata.rules.evolution.cs.ui/src-gen/org/kermeta/language/sample/cellularautomata/rules/ui/contentassist/antlr/internal/InternalEvol.g:510:1: ruleUnaryExpression EOF\r\n {\r\n before(grammarAccess.getUnaryExpressionRule()); \r\n pushFollow(FollowSets000.FOLLOW_ruleUnaryExpression_in_entryRuleUnaryExpression1021);\r\n ruleUnaryExpression();\r\n\r\n state._fsp--;\r\n\r\n after(grammarAccess.getUnaryExpressionRule()); \r\n match(input,EOF,FollowSets000.FOLLOW_EOF_in_entryRuleUnaryExpression1028); \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 return ;\r\n }", "title": "" }, { "docid": "5642e8a9be2d997b59b76685e2540cbe", "score": "0.64633167", "text": "public final void entryRuleUnaryExpr() throws RecognitionException {\n try {\n // InternalLTL.g:130:1: ( ruleUnaryExpr EOF )\n // InternalLTL.g:131:1: ruleUnaryExpr EOF\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getUnaryExprRule()); \n }\n pushFollow(FOLLOW_1);\n ruleUnaryExpr();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getUnaryExprRule()); \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": "96aa7c24c2b08fe0d8d4ea8e00d95cc7", "score": "0.64399475", "text": "public final String entryRuleExpressionUnaryOp() throws RecognitionException {\n String current = null;\n\n AntlrDatatypeRuleToken iv_ruleExpressionUnaryOp = null;\n\n\n try {\n // ../com.crubier.lil/src-gen/com/crubier/lil/parser/antlr/internal/InternalLil.g:3685:2: (iv_ruleExpressionUnaryOp= ruleExpressionUnaryOp EOF )\n // ../com.crubier.lil/src-gen/com/crubier/lil/parser/antlr/internal/InternalLil.g:3686:2: iv_ruleExpressionUnaryOp= ruleExpressionUnaryOp EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getExpressionUnaryOpRule()); \n }\n pushFollow(FOLLOW_ruleExpressionUnaryOp_in_entryRuleExpressionUnaryOp7945);\n iv_ruleExpressionUnaryOp=ruleExpressionUnaryOp();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleExpressionUnaryOp.getText(); \n }\n match(input,EOF,FOLLOW_EOF_in_entryRuleExpressionUnaryOp7956); if (state.failed) return current;\n\n }\n\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "title": "" }, { "docid": "abb959ef38d59f9ed0160d6773c134a0", "score": "0.643238", "text": "public final void rule__Unary__Alternatives() throws RecognitionException {\n int rule__Unary__Alternatives_StartIndex = input.index();\n\n \t\tint stackSize = keepStackSize();\n \n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 255) ) { return ; }\n // InternalGaml.g:4798:1: ( ( ruleAccess ) | ( ( rule__Unary__Group_1__0 ) ) )\n int alt53=2;\n int LA53_0 = input.LA(1);\n\n if ( ((LA53_0>=RULE_STRING && LA53_0<=RULE_KEYWORD)||LA53_0==15||(LA53_0>=17 && LA53_0<=18)||(LA53_0>=23 && LA53_0<=70)||LA53_0==123||LA53_0==125||LA53_0==130) ) {\n alt53=1;\n }\n else if ( (LA53_0==106||(LA53_0>=109 && LA53_0<=114)) ) {\n alt53=2;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 53, 0, input);\n\n throw nvae;\n }\n switch (alt53) {\n case 1 :\n // InternalGaml.g:4799:1: ( ruleAccess )\n {\n // InternalGaml.g:4799:1: ( ruleAccess )\n // InternalGaml.g:4800:1: ruleAccess\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getUnaryAccess().getAccessParserRuleCall_0()); \n }\n pushFollow(FollowSets000.FOLLOW_2);\n ruleAccess();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getUnaryAccess().getAccessParserRuleCall_0()); \n }\n\n }\n\n\n }\n break;\n case 2 :\n // InternalGaml.g:4805:6: ( ( rule__Unary__Group_1__0 ) )\n {\n // InternalGaml.g:4805:6: ( ( rule__Unary__Group_1__0 ) )\n // InternalGaml.g:4806:1: ( rule__Unary__Group_1__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getUnaryAccess().getGroup_1()); \n }\n // InternalGaml.g:4807:1: ( rule__Unary__Group_1__0 )\n // InternalGaml.g:4807:2: rule__Unary__Group_1__0\n {\n pushFollow(FollowSets000.FOLLOW_2);\n rule__Unary__Group_1__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getUnaryAccess().getGroup_1()); \n }\n\n }\n\n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n if ( state.backtracking>0 ) { memoize(input, 255, rule__Unary__Alternatives_StartIndex); }\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "7dafe4baa40506649f9d9ecb62c2fa50", "score": "0.64305717", "text": "public final EObject ruleXUnaryOperation() throws RecognitionException {\n EObject current = null;\n\n EObject lv_operand_2_0 = null;\n\n EObject this_XCastedExpression_3 = null;\n\n\n enterRule(); \n \n try {\n // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:1784:28: ( ( ( () ( ( ruleOpUnary ) ) ( (lv_operand_2_0= ruleXUnaryOperation ) ) ) | this_XCastedExpression_3= ruleXCastedExpression ) )\n // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:1785:1: ( ( () ( ( ruleOpUnary ) ) ( (lv_operand_2_0= ruleXUnaryOperation ) ) ) | this_XCastedExpression_3= ruleXCastedExpression )\n {\n // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:1785:1: ( ( () ( ( ruleOpUnary ) ) ( (lv_operand_2_0= ruleXUnaryOperation ) ) ) | this_XCastedExpression_3= ruleXCastedExpression )\n int alt20=2;\n int LA20_0 = input.LA(1);\n\n if ( ((LA20_0>=47 && LA20_0<=48)||LA20_0==53) ) {\n alt20=1;\n }\n else if ( ((LA20_0>=RULE_STRING && LA20_0<=RULE_ID)||LA20_0==14||LA20_0==39||LA20_0==59||(LA20_0>=61 && LA20_0<=62)||LA20_0==66||LA20_0==68||(LA20_0>=72 && LA20_0<=74)||(LA20_0>=77 && LA20_0<=89)) ) {\n alt20=2;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return current;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 20, 0, input);\n\n throw nvae;\n }\n switch (alt20) {\n case 1 :\n // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:1785:2: ( () ( ( ruleOpUnary ) ) ( (lv_operand_2_0= ruleXUnaryOperation ) ) )\n {\n // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:1785:2: ( () ( ( ruleOpUnary ) ) ( (lv_operand_2_0= ruleXUnaryOperation ) ) )\n // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:1785:3: () ( ( ruleOpUnary ) ) ( (lv_operand_2_0= ruleXUnaryOperation ) )\n {\n // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:1785:3: ()\n // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:1786:5: \n {\n if ( state.backtracking==0 ) {\n\n current = forceCreateModelElement(\n grammarAccess.getXUnaryOperationAccess().getXUnaryOperationAction_0_0(),\n current);\n \n }\n\n }\n\n // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:1791:2: ( ( ruleOpUnary ) )\n // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:1792:1: ( ruleOpUnary )\n {\n // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:1792:1: ( ruleOpUnary )\n // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:1793:3: ruleOpUnary\n {\n if ( state.backtracking==0 ) {\n\n \t\t\tif (current==null) {\n \t current = createModelElement(grammarAccess.getXUnaryOperationRule());\n \t }\n \n }\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getXUnaryOperationAccess().getFeatureJvmIdentifiableElementCrossReference_0_1_0()); \n \t \n }\n pushFollow(FOLLOW_ruleOpUnary_in_ruleXUnaryOperation4622);\n ruleOpUnary();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n \n \t afterParserOrEnumRuleCall();\n \t \n }\n\n }\n\n\n }\n\n // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:1806:2: ( (lv_operand_2_0= ruleXUnaryOperation ) )\n // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:1807:1: (lv_operand_2_0= ruleXUnaryOperation )\n {\n // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:1807:1: (lv_operand_2_0= ruleXUnaryOperation )\n // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:1808:3: lv_operand_2_0= ruleXUnaryOperation\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getXUnaryOperationAccess().getOperandXUnaryOperationParserRuleCall_0_2_0()); \n \t \n }\n pushFollow(FOLLOW_ruleXUnaryOperation_in_ruleXUnaryOperation4643);\n lv_operand_2_0=ruleXUnaryOperation();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t if (current==null) {\n \t current = createModelElementForParent(grammarAccess.getXUnaryOperationRule());\n \t }\n \t\tset(\n \t\t\tcurrent, \n \t\t\t\"operand\",\n \t\tlv_operand_2_0, \n \t\t\"XUnaryOperation\");\n \t afterParserOrEnumRuleCall();\n \t \n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:1826:5: this_XCastedExpression_3= ruleXCastedExpression\n {\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getXUnaryOperationAccess().getXCastedExpressionParserRuleCall_1()); \n \n }\n pushFollow(FOLLOW_ruleXCastedExpression_in_ruleXUnaryOperation4672);\n this_XCastedExpression_3=ruleXCastedExpression();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n \n current = this_XCastedExpression_3; \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 catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "title": "" }, { "docid": "ac909af8ef4693bdf931949b749ec269", "score": "0.64114463", "text": "public final void rule__Unary__OpAssignment_1_1_1_0() throws RecognitionException {\n int rule__Unary__OpAssignment_1_1_1_0_StartIndex = input.index();\n\n \t\tint stackSize = keepStackSize();\n \n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 1144) ) { return ; }\n // InternalGaml.g:19115:1: ( ( ( rule__Unary__OpAlternatives_1_1_1_0_0 ) ) )\n // InternalGaml.g:19116:1: ( ( rule__Unary__OpAlternatives_1_1_1_0_0 ) )\n {\n // InternalGaml.g:19116:1: ( ( rule__Unary__OpAlternatives_1_1_1_0_0 ) )\n // InternalGaml.g:19117:1: ( rule__Unary__OpAlternatives_1_1_1_0_0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getUnaryAccess().getOpAlternatives_1_1_1_0_0()); \n }\n // InternalGaml.g:19118:1: ( rule__Unary__OpAlternatives_1_1_1_0_0 )\n // InternalGaml.g:19118:2: rule__Unary__OpAlternatives_1_1_1_0_0\n {\n pushFollow(FollowSets000.FOLLOW_2);\n rule__Unary__OpAlternatives_1_1_1_0_0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getUnaryAccess().getOpAlternatives_1_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 if ( state.backtracking>0 ) { memoize(input, 1144, rule__Unary__OpAssignment_1_1_1_0_StartIndex); }\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "95bd47aa2998e047ee8c64182a3631b5", "score": "0.63893825", "text": "public final void rule__UnaryExpr__OpAssignment_0_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalLTL.g:1546:1: ( ( ( rule__UnaryExpr__OpAlternatives_0_1_0 ) ) )\n // InternalLTL.g:1547:2: ( ( rule__UnaryExpr__OpAlternatives_0_1_0 ) )\n {\n // InternalLTL.g:1547:2: ( ( rule__UnaryExpr__OpAlternatives_0_1_0 ) )\n // InternalLTL.g:1548:3: ( rule__UnaryExpr__OpAlternatives_0_1_0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getUnaryExprAccess().getOpAlternatives_0_1_0()); \n }\n // InternalLTL.g:1549:3: ( rule__UnaryExpr__OpAlternatives_0_1_0 )\n // InternalLTL.g:1549:4: rule__UnaryExpr__OpAlternatives_0_1_0\n {\n pushFollow(FOLLOW_2);\n rule__UnaryExpr__OpAlternatives_0_1_0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getUnaryExprAccess().getOpAlternatives_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": "1877c838a7f4257ea57d17ff7e9d8e76", "score": "0.63842857", "text": "public final void rule__Unary__OpAssignment_1_1_0_0() throws RecognitionException {\n int rule__Unary__OpAssignment_1_1_0_0_StartIndex = input.index();\n\n \t\tint stackSize = keepStackSize();\n \n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 1142) ) { return ; }\n // InternalGaml.g:19084:1: ( ( ( rule__Unary__OpAlternatives_1_1_0_0_0 ) ) )\n // InternalGaml.g:19085:1: ( ( rule__Unary__OpAlternatives_1_1_0_0_0 ) )\n {\n // InternalGaml.g:19085:1: ( ( rule__Unary__OpAlternatives_1_1_0_0_0 ) )\n // InternalGaml.g:19086:1: ( rule__Unary__OpAlternatives_1_1_0_0_0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getUnaryAccess().getOpAlternatives_1_1_0_0_0()); \n }\n // InternalGaml.g:19087:1: ( rule__Unary__OpAlternatives_1_1_0_0_0 )\n // InternalGaml.g:19087:2: rule__Unary__OpAlternatives_1_1_0_0_0\n {\n pushFollow(FollowSets000.FOLLOW_2);\n rule__Unary__OpAlternatives_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.getUnaryAccess().getOpAlternatives_1_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 if ( state.backtracking>0 ) { memoize(input, 1142, rule__Unary__OpAssignment_1_1_0_0_StartIndex); }\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "1b1284487c1cb98758ac745336387d22", "score": "0.63653374", "text": "public final EObject ruleXUnaryOperation() throws RecognitionException {\n EObject current = null;\n\n EObject lv_operand_2_0 = null;\n\n EObject this_XCastedExpression_3 = null;\n\n\n enterRule(); \n \n try {\n // InternalSpeADL.g:2919:28: ( ( ( () ( ( ruleOpUnary ) ) ( (lv_operand_2_0= ruleXUnaryOperation ) ) ) | this_XCastedExpression_3= ruleXCastedExpression ) )\n // InternalSpeADL.g:2920:1: ( ( () ( ( ruleOpUnary ) ) ( (lv_operand_2_0= ruleXUnaryOperation ) ) ) | this_XCastedExpression_3= ruleXCastedExpression )\n {\n // InternalSpeADL.g:2920:1: ( ( () ( ( ruleOpUnary ) ) ( (lv_operand_2_0= ruleXUnaryOperation ) ) ) | this_XCastedExpression_3= ruleXCastedExpression )\n int alt53=2;\n int LA53_0 = input.LA(1);\n\n if ( ((LA53_0>=56 && LA53_0<=57)||LA53_0==62) ) {\n alt53=1;\n }\n else if ( ((LA53_0>=RULE_ID && LA53_0<=RULE_DECIMAL)||LA53_0==14||LA53_0==18||LA53_0==24||LA53_0==40||LA53_0==68||LA53_0==71||LA53_0==73||(LA53_0>=76 && LA53_0<=78)||(LA53_0>=81 && LA53_0<=93)||LA53_0==95) ) {\n alt53=2;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return current;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 53, 0, input);\n\n throw nvae;\n }\n switch (alt53) {\n case 1 :\n // InternalSpeADL.g:2920:2: ( () ( ( ruleOpUnary ) ) ( (lv_operand_2_0= ruleXUnaryOperation ) ) )\n {\n // InternalSpeADL.g:2920:2: ( () ( ( ruleOpUnary ) ) ( (lv_operand_2_0= ruleXUnaryOperation ) ) )\n // InternalSpeADL.g:2920:3: () ( ( ruleOpUnary ) ) ( (lv_operand_2_0= ruleXUnaryOperation ) )\n {\n // InternalSpeADL.g:2920:3: ()\n // InternalSpeADL.g:2921:5: \n {\n if ( state.backtracking==0 ) {\n\n current = forceCreateModelElement(\n grammarAccess.getXUnaryOperationAccess().getXUnaryOperationAction_0_0(),\n current);\n \n }\n\n }\n\n // InternalSpeADL.g:2926:2: ( ( ruleOpUnary ) )\n // InternalSpeADL.g:2927:1: ( ruleOpUnary )\n {\n // InternalSpeADL.g:2927:1: ( ruleOpUnary )\n // InternalSpeADL.g:2928:3: ruleOpUnary\n {\n if ( state.backtracking==0 ) {\n\n \t\t\tif (current==null) {\n \t current = createModelElement(grammarAccess.getXUnaryOperationRule());\n \t }\n \n }\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getXUnaryOperationAccess().getFeatureJvmIdentifiableElementCrossReference_0_1_0()); \n \t \n }\n pushFollow(FOLLOW_29);\n ruleOpUnary();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n \n \t afterParserOrEnumRuleCall();\n \t \n }\n\n }\n\n\n }\n\n // InternalSpeADL.g:2941:2: ( (lv_operand_2_0= ruleXUnaryOperation ) )\n // InternalSpeADL.g:2942:1: (lv_operand_2_0= ruleXUnaryOperation )\n {\n // InternalSpeADL.g:2942:1: (lv_operand_2_0= ruleXUnaryOperation )\n // InternalSpeADL.g:2943:3: lv_operand_2_0= ruleXUnaryOperation\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getXUnaryOperationAccess().getOperandXUnaryOperationParserRuleCall_0_2_0()); \n \t \n }\n pushFollow(FOLLOW_2);\n lv_operand_2_0=ruleXUnaryOperation();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t if (current==null) {\n \t current = createModelElementForParent(grammarAccess.getXUnaryOperationRule());\n \t }\n \t\tset(\n \t\t\tcurrent, \n \t\t\t\"operand\",\n \t\tlv_operand_2_0, \n \t\t\"org.eclipse.xtext.xbase.Xbase.XUnaryOperation\");\n \t afterParserOrEnumRuleCall();\n \t \n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // InternalSpeADL.g:2961:5: this_XCastedExpression_3= ruleXCastedExpression\n {\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getXUnaryOperationAccess().getXCastedExpressionParserRuleCall_1()); \n \n }\n pushFollow(FOLLOW_2);\n this_XCastedExpression_3=ruleXCastedExpression();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n \n current = this_XCastedExpression_3; \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 catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "title": "" }, { "docid": "c39be5067ac1ce9ef02808326a9fc7ac", "score": "0.62873554", "text": "public final void rule__XMultiplicativeExpression__Group__0__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:9535:1: ( ( ruleXUnaryOperation ) )\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:9536:1: ( ruleXUnaryOperation )\r\n {\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:9536:1: ( ruleXUnaryOperation )\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:9537:1: ruleXUnaryOperation\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXMultiplicativeExpressionAccess().getXUnaryOperationParserRuleCall_0()); \r\n }\r\n pushFollow(FOLLOW_ruleXUnaryOperation_in_rule__XMultiplicativeExpression__Group__0__Impl19502);\r\n ruleXUnaryOperation();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXMultiplicativeExpressionAccess().getXUnaryOperationParserRuleCall_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": "eb5bfad3fdea8054ffb05532dd09f41d", "score": "0.6266765", "text": "public final String entryRuleUnaryOperator() throws RecognitionException {\n String current = null;\n\n AntlrDatatypeRuleToken iv_ruleUnaryOperator = null;\n\n\n try {\n // InternalMASLParser.g:9640:53: (iv_ruleUnaryOperator= ruleUnaryOperator EOF )\n // InternalMASLParser.g:9641:2: iv_ruleUnaryOperator= ruleUnaryOperator EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getUnaryOperatorRule()); \n }\n pushFollow(FOLLOW_1);\n iv_ruleUnaryOperator=ruleUnaryOperator();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleUnaryOperator.getText(); \n }\n match(input,EOF,FOLLOW_2); if (state.failed) return current;\n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "adaf33d6f7c561c8c2c31b6e36ca844d", "score": "0.625838", "text": "public final void entryRuleUnary() throws RecognitionException {\n int entryRuleUnary_StartIndex = input.index();\n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 149) ) { return ; }\n // InternalGaml.g:2145:1: ( ruleUnary EOF )\n // InternalGaml.g:2146:1: ruleUnary EOF\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getUnaryRule()); \n }\n pushFollow(FollowSets000.FOLLOW_1);\n ruleUnary();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getUnaryRule()); \n }\n match(input,EOF,FollowSets000.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 if ( state.backtracking>0 ) { memoize(input, 149, entryRuleUnary_StartIndex); }\n }\n return ;\n }", "title": "" }, { "docid": "96c213de5aa66eb2da87f70b88e710b0", "score": "0.62419474", "text": "public final void rule__XUnaryOperation__OperandAssignment_0_2() 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:16344:1: ( ( ruleXUnaryOperation ) )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:16345:1: ( ruleXUnaryOperation )\n {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:16345:1: ( ruleXUnaryOperation )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:16346:1: ruleXUnaryOperation\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXUnaryOperationAccess().getOperandXUnaryOperationParserRuleCall_0_2_0()); \n }\n pushFollow(FOLLOW_ruleXUnaryOperation_in_rule__XUnaryOperation__OperandAssignment_0_232910);\n ruleXUnaryOperation();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXUnaryOperationAccess().getOperandXUnaryOperationParserRuleCall_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": "41f2a6be433fe1565bbff6c303aa5d9c", "score": "0.6201623", "text": "public final void rule__XUnaryOperation__Group_0__0__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:9750:1: ( ( () ) )\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:9751:1: ( () )\r\n {\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:9751:1: ( () )\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:9752:1: ()\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXUnaryOperationAccess().getXUnaryOperationAction_0_0()); \r\n }\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:9753:1: ()\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:9755:1: \r\n {\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXUnaryOperationAccess().getXUnaryOperationAction_0_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "369579b656210cef65f35881c6b87014", "score": "0.6187739", "text": "public final void rule__XMultiplicativeExpression__RightOperandAssignment_1_1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:18776:1: ( ( ruleXUnaryOperation ) )\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:18777:1: ( ruleXUnaryOperation )\r\n {\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:18777:1: ( ruleXUnaryOperation )\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:18778:1: ruleXUnaryOperation\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXMultiplicativeExpressionAccess().getRightOperandXUnaryOperationParserRuleCall_1_1_0()); \r\n }\r\n pushFollow(FOLLOW_ruleXUnaryOperation_in_rule__XMultiplicativeExpression__RightOperandAssignment_1_137770);\r\n ruleXUnaryOperation();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXMultiplicativeExpressionAccess().getRightOperandXUnaryOperationParserRuleCall_1_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": "94b2c30b1450a5c15c3e1996dcca1600", "score": "0.6138033", "text": "public final void rule__Unary__Alternatives_1_1() throws RecognitionException {\n int rule__Unary__Alternatives_1_1_StartIndex = input.index();\n\n \t\tint stackSize = keepStackSize();\n \n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 256) ) { return ; }\n // InternalGaml.g:4820:1: ( ( ( rule__Unary__Group_1_1_0__0 ) ) | ( ( rule__Unary__Group_1_1_1__0 ) ) )\n int alt54=2;\n int LA54_0 = input.LA(1);\n\n if ( ((LA54_0>=109 && LA54_0<=110)) ) {\n alt54=1;\n }\n else if ( (LA54_0==106||(LA54_0>=111 && LA54_0<=114)) ) {\n alt54=2;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 54, 0, input);\n\n throw nvae;\n }\n switch (alt54) {\n case 1 :\n // InternalGaml.g:4821:1: ( ( rule__Unary__Group_1_1_0__0 ) )\n {\n // InternalGaml.g:4821:1: ( ( rule__Unary__Group_1_1_0__0 ) )\n // InternalGaml.g:4822:1: ( rule__Unary__Group_1_1_0__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getUnaryAccess().getGroup_1_1_0()); \n }\n // InternalGaml.g:4823:1: ( rule__Unary__Group_1_1_0__0 )\n // InternalGaml.g:4823:2: rule__Unary__Group_1_1_0__0\n {\n pushFollow(FollowSets000.FOLLOW_2);\n rule__Unary__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.getUnaryAccess().getGroup_1_1_0()); \n }\n\n }\n\n\n }\n break;\n case 2 :\n // InternalGaml.g:4827:6: ( ( rule__Unary__Group_1_1_1__0 ) )\n {\n // InternalGaml.g:4827:6: ( ( rule__Unary__Group_1_1_1__0 ) )\n // InternalGaml.g:4828:1: ( rule__Unary__Group_1_1_1__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getUnaryAccess().getGroup_1_1_1()); \n }\n // InternalGaml.g:4829:1: ( rule__Unary__Group_1_1_1__0 )\n // InternalGaml.g:4829:2: rule__Unary__Group_1_1_1__0\n {\n pushFollow(FollowSets000.FOLLOW_2);\n rule__Unary__Group_1_1_1__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getUnaryAccess().getGroup_1_1_1()); \n }\n\n }\n\n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n if ( state.backtracking>0 ) { memoize(input, 256, rule__Unary__Alternatives_1_1_StartIndex); }\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "77b341fcdb7dd4d2ff1fe4eb59253408", "score": "0.6124801", "text": "public final void rule__UnaryExpr__OpAlternatives_0_1_0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalLTL.g:230:1: ( ( 'F' ) | ( 'G' ) )\n int alt3=2;\n int LA3_0 = input.LA(1);\n\n if ( (LA3_0==14) ) {\n alt3=1;\n }\n else if ( (LA3_0==15) ) {\n alt3=2;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 3, 0, input);\n\n throw nvae;\n }\n switch (alt3) {\n case 1 :\n // InternalLTL.g:231:2: ( 'F' )\n {\n // InternalLTL.g:231:2: ( 'F' )\n // InternalLTL.g:232:3: 'F'\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getUnaryExprAccess().getOpFKeyword_0_1_0_0()); \n }\n match(input,14,FOLLOW_2); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getUnaryExprAccess().getOpFKeyword_0_1_0_0()); \n }\n\n }\n\n\n }\n break;\n case 2 :\n // InternalLTL.g:237:2: ( 'G' )\n {\n // InternalLTL.g:237:2: ( 'G' )\n // InternalLTL.g:238:3: 'G'\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getUnaryExprAccess().getOpGKeyword_0_1_0_1()); \n }\n match(input,15,FOLLOW_2); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getUnaryExprAccess().getOpGKeyword_0_1_0_1()); \n }\n\n }\n\n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "61130403f351cbac92df574d18f53283", "score": "0.60962147", "text": "public final EObject entryRuleExpressionUnary() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleExpressionUnary = null;\n\n\n try {\n // ../com.crubier.lil/src-gen/com/crubier/lil/parser/antlr/internal/InternalLil.g:3612:2: (iv_ruleExpressionUnary= ruleExpressionUnary EOF )\n // ../com.crubier.lil/src-gen/com/crubier/lil/parser/antlr/internal/InternalLil.g:3613:2: iv_ruleExpressionUnary= ruleExpressionUnary EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getExpressionUnaryRule()); \n }\n pushFollow(FOLLOW_ruleExpressionUnary_in_entryRuleExpressionUnary7793);\n iv_ruleExpressionUnary=ruleExpressionUnary();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleExpressionUnary; \n }\n match(input,EOF,FOLLOW_EOF_in_entryRuleExpressionUnary7803); if (state.failed) return current;\n\n }\n\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "title": "" }, { "docid": "ebcb50688c005782310d05c95b9b6a84", "score": "0.60693765", "text": "public final void entryRuleDmxUnaryOperation() throws RecognitionException {\n try {\n // InternalDom.g:912:1: ( ruleDmxUnaryOperation EOF )\n // InternalDom.g:913:1: ruleDmxUnaryOperation EOF\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getDmxUnaryOperationRule()); \n }\n pushFollow(FOLLOW_1);\n ruleDmxUnaryOperation();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getDmxUnaryOperationRule()); \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": "6fa8ec05d2bac02225489d8aa514128c", "score": "0.6012961", "text": "public final void rule__DmxUnaryOperation__OperatorAssignment_0_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDom.g:11380:1: ( ( ruleOpUnary ) )\n // InternalDom.g:11381:2: ( ruleOpUnary )\n {\n // InternalDom.g:11381:2: ( ruleOpUnary )\n // InternalDom.g:11382:3: ruleOpUnary\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getDmxUnaryOperationAccess().getOperatorOpUnaryEnumRuleCall_0_1_0()); \n }\n pushFollow(FOLLOW_2);\n ruleOpUnary();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getDmxUnaryOperationAccess().getOperatorOpUnaryEnumRuleCall_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": "30287aef439cd1bd05c0ae8d6e6d2cd6", "score": "0.6010663", "text": "void visit(UnaryExpression node);", "title": "" }, { "docid": "c7f4375305c533264a9712666e2c623a", "score": "0.60035616", "text": "private Expression parseUnaryExpression() throws XPathException {\r\n Expression exp;\r\n switch (t.currentToken) {\r\n case Token.MINUS:\r\n nextToken();\r\n exp = new ArithmeticExpression(new Literal(Int64Value.ZERO),\r\n Token.NEGATE,\r\n parseUnaryExpression());\r\n break;\r\n case Token.PLUS:\r\n nextToken();\r\n // Unary plus: can't ignore it completely, it might be a type error, or it might\r\n // force conversion to a number which would affect operations such as \"=\".\r\n exp = new ArithmeticExpression(new Literal(Int64Value.ZERO),\r\n Token.PLUS,\r\n parseUnaryExpression());\r\n break;\r\n case Token.VALIDATE:\r\n case Token.VALIDATE_STRICT:\r\n case Token.VALIDATE_LAX:\r\n case Token.VALIDATE_TYPE:\r\n exp = parseValidateExpression();\r\n break;\r\n case Token.PRAGMA:\r\n exp = parseExtensionExpression();\r\n break;\r\n case Token.TILDE:\r\n exp = parseTypePattern();\r\n break;\r\n case Token.KEYWORD_CURLY:\r\n if (t.currentTokenValue.equals(\"validate\")) {\r\n exp = parseValidateExpression();\r\n break;\r\n }\r\n // else fall through\r\n default:\r\n exp = parsePathExpression();\r\n }\r\n setLocation(exp);\r\n return exp;\r\n }", "title": "" }, { "docid": "618e4ec6360805decd960027dda581db", "score": "0.59880084", "text": "public final void rule__XMultiplicativeExpression__Group__0__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalBugsly.g:6652:1: ( ( ruleXUnaryOperation ) )\r\n // InternalBugsly.g:6653:1: ( ruleXUnaryOperation )\r\n {\r\n // InternalBugsly.g:6653:1: ( ruleXUnaryOperation )\r\n // InternalBugsly.g:6654:2: ruleXUnaryOperation\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXMultiplicativeExpressionAccess().getXUnaryOperationParserRuleCall_0()); \r\n }\r\n pushFollow(FOLLOW_2);\r\n ruleXUnaryOperation();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXMultiplicativeExpressionAccess().getXUnaryOperationParserRuleCall_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": "922bb864350f55cbe5d811cb68c33d48", "score": "0.596822", "text": "public final BaseDescr unaryExpression() throws RecognitionException {\n BaseDescr result = null;\n\n BaseDescr ue = null;\n\n DRL6Expressions.unaryExpressionNotPlusMinus_return left = null;\n\n\n try {\n // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:450:5: ( PLUS ue= unaryExpression | MINUS ue= unaryExpression | INCR primary | DECR primary | left= unaryExpressionNotPlusMinus )\n int alt47=5;\n switch ( input.LA(1) ) {\n case PLUS:\n {\n alt47=1;\n }\n break;\n case MINUS:\n {\n alt47=2;\n }\n break;\n case INCR:\n {\n alt47=3;\n }\n break;\n case DECR:\n {\n alt47=4;\n }\n break;\n case FLOAT:\n case HEX:\n case DECIMAL:\n case STRING:\n case TIME_INTERVAL:\n case BOOL:\n case NULL:\n case LESS:\n case LEFT_PAREN:\n case LEFT_SQUARE:\n case NEGATION:\n case TILDE:\n case STAR:\n case ID:\n {\n alt47=5;\n }\n break;\n default:\n if (state.backtracking>0) {state.failed=true; return result;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 47, 0, input);\n\n throw nvae;\n }\n\n switch (alt47) {\n case 1 :\n // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:450:9: PLUS ue= unaryExpression\n {\n match(input,PLUS,FOLLOW_PLUS_in_unaryExpression2237); if (state.failed) return result;\n pushFollow(FOLLOW_unaryExpression_in_unaryExpression2241);\n ue=unaryExpression();\n\n state._fsp--;\n if (state.failed) return result;\n if ( state.backtracking==0 ) {\n if( buildDescr ) {\n result = ue;\n if( result instanceof AtomicExprDescr ) {\n ((AtomicExprDescr)result).setExpression( \"+\" + ((AtomicExprDescr)result).getExpression() );\n }\n } \n }\n\n }\n break;\n case 2 :\n // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:457:7: MINUS ue= unaryExpression\n {\n match(input,MINUS,FOLLOW_MINUS_in_unaryExpression2259); if (state.failed) return result;\n pushFollow(FOLLOW_unaryExpression_in_unaryExpression2263);\n ue=unaryExpression();\n\n state._fsp--;\n if (state.failed) return result;\n if ( state.backtracking==0 ) {\n if( buildDescr ) {\n result = ue;\n if( result instanceof AtomicExprDescr ) {\n ((AtomicExprDescr)result).setExpression( \"-\" + ((AtomicExprDescr)result).getExpression() );\n }\n } \n }\n\n }\n break;\n case 3 :\n // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:464:9: INCR primary\n {\n match(input,INCR,FOLLOW_INCR_in_unaryExpression2283); if (state.failed) return result;\n pushFollow(FOLLOW_primary_in_unaryExpression2285);\n primary();\n\n state._fsp--;\n if (state.failed) return result;\n\n }\n break;\n case 4 :\n // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:465:9: DECR primary\n {\n match(input,DECR,FOLLOW_DECR_in_unaryExpression2295); if (state.failed) return result;\n pushFollow(FOLLOW_primary_in_unaryExpression2297);\n primary();\n\n state._fsp--;\n if (state.failed) return result;\n\n }\n break;\n case 5 :\n // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:466:9: left= unaryExpressionNotPlusMinus\n {\n pushFollow(FOLLOW_unaryExpressionNotPlusMinus_in_unaryExpression2309);\n left=unaryExpressionNotPlusMinus();\n\n state._fsp--;\n if (state.failed) return result;\n if ( state.backtracking==0 ) {\n if( buildDescr ) { result = (left!=null?left.result:null); } \n }\n\n }\n break;\n\n }\n }\n\n catch (RecognitionException re) {\n throw re;\n }\n finally {\n }\n return result;\n }", "title": "" }, { "docid": "f66974116cccf6a0f4ba45b92fd78841", "score": "0.59564894", "text": "public final void rule__XMultiplicativeExpression__Group__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:6388:1: ( ( ruleXUnaryOperation ) )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:6389:1: ( ruleXUnaryOperation )\n {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:6389:1: ( ruleXUnaryOperation )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:6390:1: ruleXUnaryOperation\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXMultiplicativeExpressionAccess().getXUnaryOperationParserRuleCall_0()); \n }\n pushFollow(FOLLOW_ruleXUnaryOperation_in_rule__XMultiplicativeExpression__Group__0__Impl13291);\n ruleXUnaryOperation();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXMultiplicativeExpressionAccess().getXUnaryOperationParserRuleCall_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": "1284f3bed7cdf7d149f59ce5630b9c4b", "score": "0.5919119", "text": "@Override\n\tpublic ST visitUnaryExpression(SparqlParser.UnaryExpressionContext ctx) {\n\n\t\tST unaryExpression = g.getInstanceOf(\"unaryExpression\");\n\n\t\tif (ctx.op != null) {\n\t\t\tif (ctx.op.getType() == SparqlParser.NEGATION) {\n\t\t\t\tunaryExpression.add(\"operator\", \"!\");\n\t\t\t} else if (ctx.op.getType() == SparqlParser.PLUS_SIGN) {\n\t\t\t\tunaryExpression.add(\"operator\", \"+\");\n\t\t\t} else if (ctx.op.getType() == SparqlParser.MINUS_SIGN) {\n\t\t\t\tunaryExpression.add(\"operator\", \"-\");\n\t\t\t}\n\t\t}\n\n\t\tunaryExpression.add(\"primaryExpression\", visit(ctx.primaryExpression()));\n\n\t\treturn unaryExpression;\n\t}", "title": "" }, { "docid": "b89d1a177f8517cef190d8d45e2773fc", "score": "0.58926004", "text": "public final void rule__XMultiplicativeExpression__RightOperandAssignment_1_1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalBugsly.g:16687:1: ( ( ruleXUnaryOperation ) )\r\n // InternalBugsly.g:16688:2: ( ruleXUnaryOperation )\r\n {\r\n // InternalBugsly.g:16688:2: ( ruleXUnaryOperation )\r\n // InternalBugsly.g:16689:3: ruleXUnaryOperation\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXMultiplicativeExpressionAccess().getRightOperandXUnaryOperationParserRuleCall_1_1_0()); \r\n }\r\n pushFollow(FOLLOW_2);\r\n ruleXUnaryOperation();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXMultiplicativeExpressionAccess().getRightOperandXUnaryOperationParserRuleCall_1_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": "c3495d0dc75a4ef354221ad5695378f0", "score": "0.5875807", "text": "public final void rule__XUnaryOperation__OperandAssignment_0_2() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalBugsly.g:16721:1: ( ( ruleXUnaryOperation ) )\r\n // InternalBugsly.g:16722:2: ( ruleXUnaryOperation )\r\n {\r\n // InternalBugsly.g:16722:2: ( ruleXUnaryOperation )\r\n // InternalBugsly.g:16723:3: ruleXUnaryOperation\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXUnaryOperationAccess().getOperandXUnaryOperationParserRuleCall_0_2_0()); \r\n }\r\n pushFollow(FOLLOW_2);\r\n ruleXUnaryOperation();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXUnaryOperationAccess().getOperandXUnaryOperationParserRuleCall_0_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": "b5caaef23638e8db860e840752aeb17e", "score": "0.58572805", "text": "private Expression parseUnaryExpression() throws XPathException {\r\n Expression exp;\r\n switch (t.currentToken) {\r\n case Token.MINUS:\r\n nextToken();\r\n exp = new ArithmeticExpression(new Literal(IntegerValue.ZERO),\r\n Token.NEGATE,\r\n parseUnaryExpression());\r\n break;\r\n case Token.PLUS:\r\n nextToken();\r\n // Unary plus: can't ignore it completely, it might be a type error, or it might\r\n // force conversion to a number which would affect operations such as \"=\".\r\n exp = new ArithmeticExpression(new Literal(IntegerValue.ZERO),\r\n Token.PLUS,\r\n parseUnaryExpression());\r\n break;\r\n default:\r\n exp = parsePathExpression();\r\n }\r\n setLocation(exp);\r\n return exp;\r\n }", "title": "" }, { "docid": "ce122fb5970348a75fe7b033af952df3", "score": "0.58527404", "text": "public final void rule__XMultiplicativeExpression__RightOperandAssignment_1_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:16310:1: ( ( ruleXUnaryOperation ) )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:16311:1: ( ruleXUnaryOperation )\n {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:16311:1: ( ruleXUnaryOperation )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:16312:1: ruleXUnaryOperation\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXMultiplicativeExpressionAccess().getRightOperandXUnaryOperationParserRuleCall_1_1_0()); \n }\n pushFollow(FOLLOW_ruleXUnaryOperation_in_rule__XMultiplicativeExpression__RightOperandAssignment_1_132840);\n ruleXUnaryOperation();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXMultiplicativeExpressionAccess().getRightOperandXUnaryOperationParserRuleCall_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": "e4bd4c175b4dff29d796fe1c817db583", "score": "0.5785796", "text": "public final oscriptParser.unary_return unary() throws RecognitionException {\r\n oscriptParser.unary_return retval = new oscriptParser.unary_return();\r\n retval.start = input.LT(1);\r\n\r\n\r\n CommonTree root_0 = null;\r\n\r\n Token char_literal105=null;\r\n Token char_literal107=null;\r\n oscriptParser.atom_return atom106 =null;\r\n\r\n oscriptParser.atom_return atom108 =null;\r\n\r\n oscriptParser.atom_return atom109 =null;\r\n\r\n\r\n CommonTree char_literal105_tree=null;\r\n CommonTree char_literal107_tree=null;\r\n RewriteRuleTokenStream stream_42=new RewriteRuleTokenStream(adaptor,\"token 42\");\r\n RewriteRuleTokenStream stream_33=new RewriteRuleTokenStream(adaptor,\"token 33\");\r\n RewriteRuleSubtreeStream stream_atom=new RewriteRuleSubtreeStream(adaptor,\"rule atom\");\r\n try {\r\n // C:\\\\Users\\\\Felix\\\\workspace\\\\Algorithmik\\\\oscript\\\\src\\\\oscript\\\\grammar\\\\oscript.g:160:3: ( '!' atom -> ^( NEGATE atom ) | '-' atom -> ^( UNARY_MIN atom ) | atom )\r\n int alt27=3;\r\n switch ( input.LA(1) ) {\r\n case 33:\r\n {\r\n alt27=1;\r\n }\r\n break;\r\n case 42:\r\n {\r\n alt27=2;\r\n }\r\n break;\r\n case BOOLEAN:\r\n case COMMAND:\r\n case IDENT:\r\n case NUMBER:\r\n case STRING_LITERAL:\r\n case 37:\r\n case 54:\r\n case 57:\r\n case 58:\r\n case 66:\r\n case 67:\r\n case 68:\r\n case 70:\r\n {\r\n alt27=3;\r\n }\r\n break;\r\n default:\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 27, 0, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n\r\n switch (alt27) {\r\n case 1 :\r\n // C:\\\\Users\\\\Felix\\\\workspace\\\\Algorithmik\\\\oscript\\\\src\\\\oscript\\\\grammar\\\\oscript.g:160:5: '!' atom\r\n {\r\n char_literal105=(Token)match(input,33,FOLLOW_33_in_unary1044); \r\n stream_33.add(char_literal105);\r\n\r\n\r\n pushFollow(FOLLOW_atom_in_unary1046);\r\n atom106=atom();\r\n\r\n state._fsp--;\r\n\r\n stream_atom.add(atom106.getTree());\r\n\r\n // AST REWRITE\r\n // elements: atom\r\n // token labels: \r\n // rule labels: retval\r\n // token list labels: \r\n // rule list labels: \r\n // wildcard labels: \r\n retval.tree = root_0;\r\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\r\n\r\n root_0 = (CommonTree)adaptor.nil();\r\n // 160:14: -> ^( NEGATE atom )\r\n {\r\n // C:\\\\Users\\\\Felix\\\\workspace\\\\Algorithmik\\\\oscript\\\\src\\\\oscript\\\\grammar\\\\oscript.g:160:17: ^( NEGATE atom )\r\n {\r\n CommonTree root_1 = (CommonTree)adaptor.nil();\r\n root_1 = (CommonTree)adaptor.becomeRoot(\r\n (CommonTree)adaptor.create(NEGATE, \"NEGATE\")\r\n , root_1);\r\n\r\n adaptor.addChild(root_1, stream_atom.nextTree());\r\n\r\n adaptor.addChild(root_0, root_1);\r\n }\r\n\r\n }\r\n\r\n\r\n retval.tree = root_0;\r\n\r\n }\r\n break;\r\n case 2 :\r\n // C:\\\\Users\\\\Felix\\\\workspace\\\\Algorithmik\\\\oscript\\\\src\\\\oscript\\\\grammar\\\\oscript.g:161:5: '-' atom\r\n {\r\n char_literal107=(Token)match(input,42,FOLLOW_42_in_unary1060); \r\n stream_42.add(char_literal107);\r\n\r\n\r\n pushFollow(FOLLOW_atom_in_unary1062);\r\n atom108=atom();\r\n\r\n state._fsp--;\r\n\r\n stream_atom.add(atom108.getTree());\r\n\r\n // AST REWRITE\r\n // elements: atom\r\n // token labels: \r\n // rule labels: retval\r\n // token list labels: \r\n // rule list labels: \r\n // wildcard labels: \r\n retval.tree = root_0;\r\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\r\n\r\n root_0 = (CommonTree)adaptor.nil();\r\n // 161:14: -> ^( UNARY_MIN atom )\r\n {\r\n // C:\\\\Users\\\\Felix\\\\workspace\\\\Algorithmik\\\\oscript\\\\src\\\\oscript\\\\grammar\\\\oscript.g:161:17: ^( UNARY_MIN atom )\r\n {\r\n CommonTree root_1 = (CommonTree)adaptor.nil();\r\n root_1 = (CommonTree)adaptor.becomeRoot(\r\n (CommonTree)adaptor.create(UNARY_MIN, \"UNARY_MIN\")\r\n , root_1);\r\n\r\n adaptor.addChild(root_1, stream_atom.nextTree());\r\n\r\n adaptor.addChild(root_0, root_1);\r\n }\r\n\r\n }\r\n\r\n\r\n retval.tree = root_0;\r\n\r\n }\r\n break;\r\n case 3 :\r\n // C:\\\\Users\\\\Felix\\\\workspace\\\\Algorithmik\\\\oscript\\\\src\\\\oscript\\\\grammar\\\\oscript.g:162:5: atom\r\n {\r\n root_0 = (CommonTree)adaptor.nil();\r\n\r\n\r\n pushFollow(FOLLOW_atom_in_unary1076);\r\n atom109=atom();\r\n\r\n state._fsp--;\r\n\r\n adaptor.addChild(root_0, atom109.getTree());\r\n\r\n }\r\n break;\r\n\r\n }\r\n retval.stop = input.LT(-1);\r\n\r\n\r\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\r\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n \tretval.tree = (CommonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\r\n\r\n }\r\n\r\n finally {\r\n \t// do for sure before leaving\r\n }\r\n return retval;\r\n }", "title": "" }, { "docid": "a135f0dd957f3298a367b8c55e5a04ff", "score": "0.57453793", "text": "public final void rule__XUnaryOperation__Group_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:6603:1: ( ( () ) )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:6604:1: ( () )\n {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:6604:1: ( () )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:6605:1: ()\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXUnaryOperationAccess().getXUnaryOperationAction_0_0()); \n }\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:6606:1: ()\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:6608:1: \n {\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXUnaryOperationAccess().getXUnaryOperationAction_0_0()); \n }\n\n }\n\n\n }\n\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "84ba63f8229bae13265e84849c62d78a", "score": "0.57352215", "text": "public final void unaryOperator() throws RecognitionException {\n\t\ttry { dbg.enterRule(getGrammarFileName(), \"unaryOperator\");\n\t\tif ( getRuleLevel()==0 ) {dbg.commence();}\n\t\tincRuleLevel();\n\t\tdbg.location(592, 0);\n\n\t\ttry {\n\t\t\t// /home/matthias/src/netbeans/ide/css.lib/src/org/netbeans/modules/css/lib/Css3.g:593:5: ( MINUS | PLUS )\n\t\t\tdbg.enterAlt(1);\n\n\t\t\t// /home/matthias/src/netbeans/ide/css.lib/src/org/netbeans/modules/css/lib/Css3.g:\n\t\t\t{\n\t\t\tdbg.location(593,5);\n\t\t\tif ( input.LA(1)==MINUS||input.LA(1)==PLUS ) {\n\t\t\t\tinput.consume();\n\t\t\t\tstate.errorRecovery=false;\n\t\t\t\tstate.failed=false;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif (state.backtracking>0) {state.failed=true; return;}\n\t\t\t\tMismatchedSetException mse = new MismatchedSetException(null,input);\n\t\t\t\tdbg.recognitionException(mse);\n\t\t\t\tthrow mse;\n\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\tcatch (RecognitionException re) {\n\t\t\treportError(re);\n\t\t\trecover(input,re);\n\t\t}\n\t\tfinally {\n\t\t\t// do for sure before leaving\n\t\t}\n\t\tdbg.location(595, 4);\n\n\t\t}\n\t\tfinally {\n\t\t\tdbg.exitRule(getGrammarFileName(), \"unaryOperator\");\n\t\t\tdecRuleLevel();\n\t\t\tif ( getRuleLevel()==0 ) {dbg.terminate();}\n\t\t}\n\n\t}", "title": "" }, { "docid": "cf22c6c22e93cfd0e15904c9388439f7", "score": "0.57157123", "text": "@Override\n\tpublic ST visitUnaryAdditiveExpression(SparqlParser.UnaryAdditiveExpressionContext ctx) {\n\n\t\tST unaryAdditiveExpression = g.getInstanceOf(\"unaryAdditiveExpression\");\n\n\t\tif (ctx.op.getType() == SparqlParser.PLUS_SIGN) {\n\t\t\tunaryAdditiveExpression.add(\"ADD\", \"+\");\n\t\t} else if (ctx.op.getType() == SparqlParser.MINUS_SIGN) {\n\t\t\tunaryAdditiveExpression.add(\"SUBTRACT\", \"-\");\n\t\t}\n\n\t\tunaryAdditiveExpression.add(\"expression\", visit(ctx.expression()));\n\n\t\treturn unaryAdditiveExpression;\n\t}", "title": "" }, { "docid": "d66341877bc96516e96a5915df142795", "score": "0.56973326", "text": "private int valUnary(ASTNode node) {\r\n\t\tint type;\r\n\t\tdebugGeneration(\"unary type: \"+table.get((Integer) node.getDescriptor()));\r\n\t\tswitch ((Integer) node.getDescriptor()) {\r\n\t\tcase sym.NOT: {\r\n\t\t\ttype = valUnary ((ASTNode) node.getOp(0));\r\n\t\t\tif (type != sym.BOOLEAN) {\r\n\t\t\t\tallsWell = false;\r\n\t\t\t\temessage += \"Rumble only allows the negation operator on boolean values.\";\r\n\t\t\t\treturn -1;\r\n\t\t\t}\r\n\t\t\treturn type;\r\n\t\t}\r\n\t\tcase sym.MINUS: {\r\n\t\t\t\r\n\t\t\ttype = valUnary ((ASTNode) node.getOp(0));\r\n\t\t\tif (type != sym.INT || type != sym.FLOAT) {\r\n\t\t\t\tallsWell = false;\r\n\t\t\t\temessage += \"Rumble only allows the unary minus operator on integers or floating point values.\";\r\n\t\t\t\treturn -1;\r\n\t\t\t}\r\n\t\t\treturn type;\r\n\t\t}\r\n\t\tcase sym.LPREN: {\r\n\t\t\ttype = valExp ((ASTNode) node.getOp(0));\r\n\t\t\treturn type;\r\n\t\t}\r\n\t\tdefault: {\r\n\t\t\tvalData ((ASTNode) node.getOp(0));\r\n\t\t\treturn -1;\r\n\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "235c962b1e3f1beb0d8c695850695521", "score": "0.5668797", "text": "public final void rule__Unary__OpAlternatives_1_1_0_0_0() throws RecognitionException {\n int rule__Unary__OpAlternatives_1_1_0_0_0_StartIndex = input.index();\n\n \t\tint stackSize = keepStackSize();\n \n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 257) ) { return ; }\n // InternalGaml.g:4842:1: ( ( '\\\\u00B0' ) | ( '#' ) )\n int alt55=2;\n int LA55_0 = input.LA(1);\n\n if ( (LA55_0==109) ) {\n alt55=1;\n }\n else if ( (LA55_0==110) ) {\n alt55=2;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 55, 0, input);\n\n throw nvae;\n }\n switch (alt55) {\n case 1 :\n // InternalGaml.g:4843:1: ( '\\\\u00B0' )\n {\n // InternalGaml.g:4843:1: ( '\\\\u00B0' )\n // InternalGaml.g:4844:1: '\\\\u00B0'\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getUnaryAccess().getOpDegreeSignKeyword_1_1_0_0_0_0()); \n }\n match(input,109,FollowSets000.FOLLOW_2); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getUnaryAccess().getOpDegreeSignKeyword_1_1_0_0_0_0()); \n }\n\n }\n\n\n }\n break;\n case 2 :\n // InternalGaml.g:4851:6: ( '#' )\n {\n // InternalGaml.g:4851:6: ( '#' )\n // InternalGaml.g:4852:1: '#'\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getUnaryAccess().getOpNumberSignKeyword_1_1_0_0_0_1()); \n }\n match(input,110,FollowSets000.FOLLOW_2); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getUnaryAccess().getOpNumberSignKeyword_1_1_0_0_0_1()); \n }\n\n }\n\n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n if ( state.backtracking>0 ) { memoize(input, 257, rule__Unary__OpAlternatives_1_1_0_0_0_StartIndex); }\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "e580aeaada54692554b5e1d4fe996748", "score": "0.56635714", "text": "@Override\r\n public void visitUnaryExpression(PsiUnaryExpression expression) {\r\n super.visitExpression(expression.getOperand());\r\n }", "title": "" }, { "docid": "1f9db0dbe89eb5874c8d58200762a93e", "score": "0.56605834", "text": "private Parser unaryOp()\n\t{\n\t\tAlternation func = new Alternation(\"unaryOp\");\n\n\t\t// Add unary operations as symbols and unary functions as words\n\t\tfor (UnaryOperation op : UnaryOperation.values()) {\n\t\t\tif (op.isSymbolOp()) {\n\t\t\t\tfunc.add(new Symbol(op.toString()));\n\t\t\t}\n\t\t\telse {\n\t\t\t\tfunc.add(new CaselessLiteral(op.toString()));\n\t\t\t}\n\t\t}\n\n\t\treturn func;\n\t}", "title": "" }, { "docid": "9981f9a87f33dff6b5d5a84518973316", "score": "0.56502867", "text": "public final AntlrDatatypeRuleToken ruleOpUnary() throws RecognitionException {\n AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();\n\n Token kw=null;\n\n enterRule(); \n \n try {\n // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:1854:28: ( (kw= '!' | kw= '-' | kw= '+' ) )\n // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:1855:1: (kw= '!' | kw= '-' | kw= '+' )\n {\n // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:1855:1: (kw= '!' | kw= '-' | kw= '+' )\n int alt21=3;\n switch ( input.LA(1) ) {\n case 53:\n {\n alt21=1;\n }\n break;\n case 48:\n {\n alt21=2;\n }\n break;\n case 47:\n {\n alt21=3;\n }\n break;\n default:\n if (state.backtracking>0) {state.failed=true; return current;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 21, 0, input);\n\n throw nvae;\n }\n\n switch (alt21) {\n case 1 :\n // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:1856:2: kw= '!'\n {\n kw=(Token)match(input,53,FOLLOW_53_in_ruleOpUnary4757); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n current.merge(kw);\n newLeafNode(kw, grammarAccess.getOpUnaryAccess().getExclamationMarkKeyword_0()); \n \n }\n\n }\n break;\n case 2 :\n // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:1863:2: kw= '-'\n {\n kw=(Token)match(input,48,FOLLOW_48_in_ruleOpUnary4776); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n current.merge(kw);\n newLeafNode(kw, grammarAccess.getOpUnaryAccess().getHyphenMinusKeyword_1()); \n \n }\n\n }\n break;\n case 3 :\n // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:1870:2: kw= '+'\n {\n kw=(Token)match(input,47,FOLLOW_47_in_ruleOpUnary4795); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n current.merge(kw);\n newLeafNode(kw, grammarAccess.getOpUnaryAccess().getPlusSignKeyword_2()); \n \n }\n\n }\n break;\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n leaveRule(); \n }\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "title": "" }, { "docid": "74c67dda463e97a35987d86c0214ede9", "score": "0.5632869", "text": "public final void ruleOpAdd() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:1038:2: ( ( ( rule__OpAdd__Alternatives ) ) )\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:1039:1: ( ( rule__OpAdd__Alternatives ) )\r\n {\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:1039:1: ( ( rule__OpAdd__Alternatives ) )\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:1040:1: ( rule__OpAdd__Alternatives )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getOpAddAccess().getAlternatives()); \r\n }\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:1041:1: ( rule__OpAdd__Alternatives )\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:1041:2: rule__OpAdd__Alternatives\r\n {\r\n pushFollow(FOLLOW_rule__OpAdd__Alternatives_in_ruleOpAdd2151);\r\n rule__OpAdd__Alternatives();\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.getOpAddAccess().getAlternatives()); \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": "f3f6ad2d105f5f7810663d627078a652", "score": "0.5630697", "text": "public final EObject ruleUnaryExp() throws RecognitionException {\n EObject current = null;\n\n AntlrDatatypeRuleToken lv_operator_1_0 = null;\n\n EObject lv_operand_2_0 = null;\n\n EObject this_LinkExpression_3 = null;\n\n\n\n \tenterRule();\n\n try {\n // InternalMASLParser.g:9578:2: ( ( ( () ( (lv_operator_1_0= ruleUnaryOperator ) ) ( (lv_operand_2_0= ruleUnaryExp ) ) ) | this_LinkExpression_3= ruleLinkExpression ) )\n // InternalMASLParser.g:9579:2: ( ( () ( (lv_operator_1_0= ruleUnaryOperator ) ) ( (lv_operand_2_0= ruleUnaryExp ) ) ) | this_LinkExpression_3= ruleLinkExpression )\n {\n // InternalMASLParser.g:9579:2: ( ( () ( (lv_operator_1_0= ruleUnaryOperator ) ) ( (lv_operand_2_0= ruleUnaryExp ) ) ) | this_LinkExpression_3= ruleLinkExpression )\n int alt184=2;\n int LA184_0 = input.LA(1);\n\n if ( (LA184_0==Abs||LA184_0==Not||LA184_0==PlusSign||LA184_0==HyphenMinus) ) {\n alt184=1;\n }\n else if ( (LA184_0==Dictionary||LA184_0==Anonymous||LA184_0==Find_only||(LA184_0>=Find_all && LA184_0<=Find_one)||LA184_0==Instance||LA184_0==Sequence||LA184_0==Console||(LA184_0>=FILE && LA184_0<=LINE)||LA184_0==Create||(LA184_0>=Unlink && LA184_0<=Array)||(LA184_0>=False && LA184_0<=Flush)||LA184_0==Endl||LA184_0==Find||LA184_0==Link||LA184_0==Null||(LA184_0>=This && LA184_0<=True)||LA184_0==Bag||LA184_0==Set||LA184_0==LeftParenthesis||(LA184_0>=RULE_ID && LA184_0<=RULE_TIMESTAMP)) ) {\n alt184=2;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return current;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 184, 0, input);\n\n throw nvae;\n }\n switch (alt184) {\n case 1 :\n // InternalMASLParser.g:9580:3: ( () ( (lv_operator_1_0= ruleUnaryOperator ) ) ( (lv_operand_2_0= ruleUnaryExp ) ) )\n {\n // InternalMASLParser.g:9580:3: ( () ( (lv_operator_1_0= ruleUnaryOperator ) ) ( (lv_operand_2_0= ruleUnaryExp ) ) )\n // InternalMASLParser.g:9581:4: () ( (lv_operator_1_0= ruleUnaryOperator ) ) ( (lv_operand_2_0= ruleUnaryExp ) )\n {\n // InternalMASLParser.g:9581:4: ()\n // InternalMASLParser.g:9582:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tcurrent = forceCreateModelElement(\n \t\t\t\t\t\tgrammarAccess.getUnaryExpAccess().getUnaryExpAction_0_0(),\n \t\t\t\t\t\tcurrent);\n \t\t\t\t\n }\n\n }\n\n // InternalMASLParser.g:9588:4: ( (lv_operator_1_0= ruleUnaryOperator ) )\n // InternalMASLParser.g:9589:5: (lv_operator_1_0= ruleUnaryOperator )\n {\n // InternalMASLParser.g:9589:5: (lv_operator_1_0= ruleUnaryOperator )\n // InternalMASLParser.g:9590:6: lv_operator_1_0= ruleUnaryOperator\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getUnaryExpAccess().getOperatorUnaryOperatorParserRuleCall_0_1_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_40);\n lv_operator_1_0=ruleUnaryOperator();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getUnaryExpRule());\n \t\t\t\t\t\t}\n \t\t\t\t\t\tset(\n \t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\"operator\",\n \t\t\t\t\t\t\tlv_operator_1_0,\n \t\t\t\t\t\t\t\"org.xtuml.bp.xtext.masl.MASL.UnaryOperator\");\n \t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\n }\n\n }\n\n\n }\n\n // InternalMASLParser.g:9607:4: ( (lv_operand_2_0= ruleUnaryExp ) )\n // InternalMASLParser.g:9608:5: (lv_operand_2_0= ruleUnaryExp )\n {\n // InternalMASLParser.g:9608:5: (lv_operand_2_0= ruleUnaryExp )\n // InternalMASLParser.g:9609:6: lv_operand_2_0= ruleUnaryExp\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getUnaryExpAccess().getOperandUnaryExpParserRuleCall_0_2_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_operand_2_0=ruleUnaryExp();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getUnaryExpRule());\n \t\t\t\t\t\t}\n \t\t\t\t\t\tset(\n \t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\"operand\",\n \t\t\t\t\t\t\tlv_operand_2_0,\n \t\t\t\t\t\t\t\"org.xtuml.bp.xtext.masl.MASL.UnaryExp\");\n \t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // InternalMASLParser.g:9628:3: this_LinkExpression_3= ruleLinkExpression\n {\n if ( state.backtracking==0 ) {\n\n \t\t\tnewCompositeNode(grammarAccess.getUnaryExpAccess().getLinkExpressionParserRuleCall_1());\n \t\t\n }\n pushFollow(FOLLOW_2);\n this_LinkExpression_3=ruleLinkExpression();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tcurrent = this_LinkExpression_3;\n \t\t\tafterParserOrEnumRuleCall();\n \t\t\n }\n\n }\n break;\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n\n \tleaveRule();\n\n }\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "883aaad6b958d89727fa42d88b5953cc", "score": "0.5593808", "text": "public final void rule__Addition__OpAlternatives_1_0_1_0() throws RecognitionException {\n int rule__Addition__OpAlternatives_1_0_1_0_StartIndex = input.index();\n\n \t\tint stackSize = keepStackSize();\n \n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 252) ) { return ; }\n // InternalGaml.g:4720:1: ( ( '+' ) | ( '-' ) )\n int alt50=2;\n int LA50_0 = input.LA(1);\n\n if ( (LA50_0==105) ) {\n alt50=1;\n }\n else if ( (LA50_0==106) ) {\n alt50=2;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 50, 0, input);\n\n throw nvae;\n }\n switch (alt50) {\n case 1 :\n // InternalGaml.g:4721:1: ( '+' )\n {\n // InternalGaml.g:4721:1: ( '+' )\n // InternalGaml.g:4722:1: '+'\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getAdditionAccess().getOpPlusSignKeyword_1_0_1_0_0()); \n }\n match(input,105,FollowSets000.FOLLOW_2); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getAdditionAccess().getOpPlusSignKeyword_1_0_1_0_0()); \n }\n\n }\n\n\n }\n break;\n case 2 :\n // InternalGaml.g:4729:6: ( '-' )\n {\n // InternalGaml.g:4729:6: ( '-' )\n // InternalGaml.g:4730:1: '-'\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getAdditionAccess().getOpHyphenMinusKeyword_1_0_1_0_1()); \n }\n match(input,106,FollowSets000.FOLLOW_2); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getAdditionAccess().getOpHyphenMinusKeyword_1_0_1_0_1()); \n }\n\n }\n\n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n if ( state.backtracking>0 ) { memoize(input, 252, rule__Addition__OpAlternatives_1_0_1_0_StartIndex); }\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "6c3efb693e9db9b3a8074da2526fd2a7", "score": "0.5593468", "text": "public final EObject ruleXMultiplicativeExpression() throws RecognitionException {\n EObject current = null;\n\n EObject this_XUnaryOperation_0 = null;\n\n EObject lv_rightOperand_3_0 = null;\n\n\n enterRule(); \n \n try {\n // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:1662:28: ( (this_XUnaryOperation_0= ruleXUnaryOperation ( ( ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) ) ( (lv_rightOperand_3_0= ruleXUnaryOperation ) ) )* ) )\n // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:1663:1: (this_XUnaryOperation_0= ruleXUnaryOperation ( ( ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) ) ( (lv_rightOperand_3_0= ruleXUnaryOperation ) ) )* )\n {\n // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:1663:1: (this_XUnaryOperation_0= ruleXUnaryOperation ( ( ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) ) ( (lv_rightOperand_3_0= ruleXUnaryOperation ) ) )* )\n // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:1664:5: this_XUnaryOperation_0= ruleXUnaryOperation ( ( ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) ) ( (lv_rightOperand_3_0= ruleXUnaryOperation ) ) )*\n {\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getXMultiplicativeExpressionAccess().getXUnaryOperationParserRuleCall_0()); \n \n }\n pushFollow(FOLLOW_ruleXUnaryOperation_in_ruleXMultiplicativeExpression4293);\n this_XUnaryOperation_0=ruleXUnaryOperation();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n \n current = this_XUnaryOperation_0; \n afterParserOrEnumRuleCall();\n \n }\n // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:1672:1: ( ( ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) ) ( (lv_rightOperand_3_0= ruleXUnaryOperation ) ) )*\n loop18:\n do {\n int alt18=2;\n switch ( input.LA(1) ) {\n case 49:\n {\n int LA18_2 = input.LA(2);\n\n if ( (synpred11_InternalSparrow()) ) {\n alt18=1;\n }\n\n\n }\n break;\n case 50:\n {\n int LA18_3 = input.LA(2);\n\n if ( (synpred11_InternalSparrow()) ) {\n alt18=1;\n }\n\n\n }\n break;\n case 51:\n {\n int LA18_4 = input.LA(2);\n\n if ( (synpred11_InternalSparrow()) ) {\n alt18=1;\n }\n\n\n }\n break;\n case 52:\n {\n int LA18_5 = input.LA(2);\n\n if ( (synpred11_InternalSparrow()) ) {\n alt18=1;\n }\n\n\n }\n break;\n\n }\n\n switch (alt18) {\n \tcase 1 :\n \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:1672:2: ( ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) ) ( (lv_rightOperand_3_0= ruleXUnaryOperation ) )\n \t {\n \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:1672:2: ( ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) )\n \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:1672:3: ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) )\n \t {\n \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:1677:6: ( () ( ( ruleOpMulti ) ) )\n \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:1677:7: () ( ( ruleOpMulti ) )\n \t {\n \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:1677:7: ()\n \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:1678:5: \n \t {\n \t if ( state.backtracking==0 ) {\n\n \t current = forceCreateModelElementAndSet(\n \t grammarAccess.getXMultiplicativeExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0(),\n \t current);\n \t \n \t }\n\n \t }\n\n \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:1683:2: ( ( ruleOpMulti ) )\n \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:1684:1: ( ruleOpMulti )\n \t {\n \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:1684:1: ( ruleOpMulti )\n \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:1685:3: ruleOpMulti\n \t {\n \t if ( state.backtracking==0 ) {\n\n \t \t\t\tif (current==null) {\n \t \t current = createModelElement(grammarAccess.getXMultiplicativeExpressionRule());\n \t \t }\n \t \n \t }\n \t if ( state.backtracking==0 ) {\n \t \n \t \t newCompositeNode(grammarAccess.getXMultiplicativeExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_1_0()); \n \t \t \n \t }\n \t pushFollow(FOLLOW_ruleOpMulti_in_ruleXMultiplicativeExpression4346);\n \t ruleOpMulti();\n\n \t state._fsp--;\n \t if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n \t \n \t \t afterParserOrEnumRuleCall();\n \t \t \n \t }\n\n \t }\n\n\n \t }\n\n\n \t }\n\n\n \t }\n\n \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:1698:4: ( (lv_rightOperand_3_0= ruleXUnaryOperation ) )\n \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:1699:1: (lv_rightOperand_3_0= ruleXUnaryOperation )\n \t {\n \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:1699:1: (lv_rightOperand_3_0= ruleXUnaryOperation )\n \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:1700:3: lv_rightOperand_3_0= ruleXUnaryOperation\n \t {\n \t if ( state.backtracking==0 ) {\n \t \n \t \t newCompositeNode(grammarAccess.getXMultiplicativeExpressionAccess().getRightOperandXUnaryOperationParserRuleCall_1_1_0()); \n \t \t \n \t }\n \t pushFollow(FOLLOW_ruleXUnaryOperation_in_ruleXMultiplicativeExpression4369);\n \t lv_rightOperand_3_0=ruleXUnaryOperation();\n\n \t state._fsp--;\n \t if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t \t if (current==null) {\n \t \t current = createModelElementForParent(grammarAccess.getXMultiplicativeExpressionRule());\n \t \t }\n \t \t\tset(\n \t \t\t\tcurrent, \n \t \t\t\t\"rightOperand\",\n \t \t\tlv_rightOperand_3_0, \n \t \t\t\"XUnaryOperation\");\n \t \t afterParserOrEnumRuleCall();\n \t \t \n \t }\n\n \t }\n\n\n \t }\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop18;\n }\n } while (true);\n\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n leaveRule(); \n }\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "title": "" }, { "docid": "aca7743c0ae28225c9f91a99997ebd16", "score": "0.5581252", "text": "@Nonnull\n private static IXP2Expression _convertUnaryExpression (@Nonnull final XP2Node aNode)\n {\n _expectNodeType (aNode, ParserXP2TreeConstants.JJTUNARYEXPR);\n final int nChildCount = aNode.jjtGetNumChildren ();\n if (nChildCount < 1)\n _throwUnexpectedChildrenCount (aNode, \"Expected at least 1 child!\");\n\n if (nChildCount == 1)\n {\n // no unary expression - take only the contained value expression\n return _convertValueExpression (aNode.jjtGetChild (0));\n }\n\n // Multiple operators are allowed\n EXP2Operator eFinalOperator = null;\n for (int i = 0; i < nChildCount - 1; ++i)\n {\n final EXP2Operator eOperator = EXP2Operator.getFromIDOrThrow (aNode.jjtGetChild (i).getText ());\n if (eFinalOperator == null)\n eFinalOperator = eOperator;\n else\n if (eOperator != eFinalOperator)\n {\n // (\"+\" and \"-\") or (\"-\" and \"+\") -> \"-\"\n eFinalOperator = EXP2Operator.MINUS;\n }\n }\n final IXP2Expression aExpr = _convertValueExpression (aNode.jjtGetChild (nChildCount - 1));\n final XP2UnaryExpression ret = new XP2UnaryExpression (eFinalOperator, aExpr);\n return ret;\n }", "title": "" }, { "docid": "5f6541ccbe2740c3333fa2242a42d839", "score": "0.5567822", "text": "UnaryExpression getUnaryExpression();", "title": "" }, { "docid": "2b7e7d33803213133b52a4f32fc27e63", "score": "0.5567397", "text": "public final AntlrDatatypeRuleToken ruleExpressionUnaryOp() throws RecognitionException {\n AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();\n\n Token kw=null;\n\n enterRule(); \n \n try {\n // ../com.crubier.lil/src-gen/com/crubier/lil/parser/antlr/internal/InternalLil.g:3696:28: ( (kw= '!' | kw= '-' | kw= '+' ) )\n // ../com.crubier.lil/src-gen/com/crubier/lil/parser/antlr/internal/InternalLil.g:3697:1: (kw= '!' | kw= '-' | kw= '+' )\n {\n // ../com.crubier.lil/src-gen/com/crubier/lil/parser/antlr/internal/InternalLil.g:3697:1: (kw= '!' | kw= '-' | kw= '+' )\n int alt53=3;\n switch ( input.LA(1) ) {\n case 73:\n {\n alt53=1;\n }\n break;\n case 69:\n {\n alt53=2;\n }\n break;\n case 68:\n {\n alt53=3;\n }\n break;\n default:\n if (state.backtracking>0) {state.failed=true; return current;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 53, 0, input);\n\n throw nvae;\n }\n\n switch (alt53) {\n case 1 :\n // ../com.crubier.lil/src-gen/com/crubier/lil/parser/antlr/internal/InternalLil.g:3698:2: kw= '!'\n {\n kw=(Token)match(input,73,FOLLOW_73_in_ruleExpressionUnaryOp7994); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n current.merge(kw);\n newLeafNode(kw, grammarAccess.getExpressionUnaryOpAccess().getExclamationMarkKeyword_0()); \n \n }\n\n }\n break;\n case 2 :\n // ../com.crubier.lil/src-gen/com/crubier/lil/parser/antlr/internal/InternalLil.g:3705:2: kw= '-'\n {\n kw=(Token)match(input,69,FOLLOW_69_in_ruleExpressionUnaryOp8013); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n current.merge(kw);\n newLeafNode(kw, grammarAccess.getExpressionUnaryOpAccess().getHyphenMinusKeyword_1()); \n \n }\n\n }\n break;\n case 3 :\n // ../com.crubier.lil/src-gen/com/crubier/lil/parser/antlr/internal/InternalLil.g:3712:2: kw= '+'\n {\n kw=(Token)match(input,68,FOLLOW_68_in_ruleExpressionUnaryOp8032); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n current.merge(kw);\n newLeafNode(kw, grammarAccess.getExpressionUnaryOpAccess().getPlusSignKeyword_2()); \n \n }\n\n }\n break;\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n leaveRule(); \n }\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "title": "" }, { "docid": "8ed5734f4ce7c409eb9708d63f9c09c0", "score": "0.5566457", "text": "public final void rule__ConnectiveFormula__Group__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalLTL.g:635:1: ( ( ruleUnaryExpr ) )\n // InternalLTL.g:636:1: ( ruleUnaryExpr )\n {\n // InternalLTL.g:636:1: ( ruleUnaryExpr )\n // InternalLTL.g:637:2: ruleUnaryExpr\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getConnectiveFormulaAccess().getUnaryExprParserRuleCall_0()); \n }\n pushFollow(FOLLOW_2);\n ruleUnaryExpr();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getConnectiveFormulaAccess().getUnaryExprParserRuleCall_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": "b61c69980f910a3892e5b474bc1fd4b3", "score": "0.55512416", "text": "@Override\n public InstructionList visitUnaryop(UnaryopContext ctx) {\n InstructionList il = cg.newInstructionList();\n il.append(visit(ctx.expr()));\n Type exprType = typeMap.get(ctx.expr());\n String typeName = exprType.getJavaTypeName();\n switch (ctx.op.getText()) {\n case \"+\":\n break; // The + unary operator does nothing.\n case \"-\": // The neg operator can only be applied to int and double\n switch (typeName) {\n case \"int\":\n case \"double\":\n il.addInstruction(\"neg\", typeName);\n break;\n default:\n MicroCompilerV1.error(ctx, \"- cannot be applied to \" + exprType.toString());\n break;\n }\n break;\n case \"~\": // The bitwise not can only be applied to int\n if (exprType == PrimitiveType.INT) {\n il.addInstruction(\"const\", \"-1\");\n il.addInstruction(\"op\", \"^\", \"int\");\n } else {\n MicroCompilerV1.error(ctx, \"~ cannot be applied to \" + exprType.toString());\n }\n break;\n case \"\\u00ac\": // The logical not can only be applied to booleans\n if (exprType == PrimitiveType.BOOL) {\n il.addInstruction(\"const\", \"1\");\n il.addInstruction(\"op\", \"^\", \"int\");\n } else {\n MicroCompilerV1.error(ctx, \"~ cannot be applied to \" + exprType.toString());\n }\n break;\n }\n return il;\n }", "title": "" }, { "docid": "f91761cc62eaaa6ef8dddef353911191", "score": "0.5531201", "text": "public final void rule__XUnaryOperation__Group_0__1__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:9781:1: ( ( ( rule__XUnaryOperation__FeatureAssignment_0_1 ) ) )\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:9782:1: ( ( rule__XUnaryOperation__FeatureAssignment_0_1 ) )\r\n {\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:9782:1: ( ( rule__XUnaryOperation__FeatureAssignment_0_1 ) )\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:9783:1: ( rule__XUnaryOperation__FeatureAssignment_0_1 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXUnaryOperationAccess().getFeatureAssignment_0_1()); \r\n }\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:9784:1: ( rule__XUnaryOperation__FeatureAssignment_0_1 )\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:9784:2: rule__XUnaryOperation__FeatureAssignment_0_1\r\n {\r\n pushFollow(FOLLOW_rule__XUnaryOperation__FeatureAssignment_0_1_in_rule__XUnaryOperation__Group_0__1__Impl19986);\r\n rule__XUnaryOperation__FeatureAssignment_0_1();\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.getXUnaryOperationAccess().getFeatureAssignment_0_1()); \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": "9d55b76b0235bb8d2708d16725373919", "score": "0.5528458", "text": "public final AntlrDatatypeRuleToken ruleUnaryOperator() throws RecognitionException {\n AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();\n\n Token kw=null;\n\n\n \tenterRule();\n\n try {\n // InternalMASLParser.g:9653:2: ( (kw= HyphenMinus | kw= PlusSign | kw= Not | kw= Abs ) )\n // InternalMASLParser.g:9654:2: (kw= HyphenMinus | kw= PlusSign | kw= Not | kw= Abs )\n {\n // InternalMASLParser.g:9654:2: (kw= HyphenMinus | kw= PlusSign | kw= Not | kw= Abs )\n int alt185=4;\n switch ( input.LA(1) ) {\n case HyphenMinus:\n {\n alt185=1;\n }\n break;\n case PlusSign:\n {\n alt185=2;\n }\n break;\n case Not:\n {\n alt185=3;\n }\n break;\n case Abs:\n {\n alt185=4;\n }\n break;\n default:\n if (state.backtracking>0) {state.failed=true; return current;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 185, 0, input);\n\n throw nvae;\n }\n\n switch (alt185) {\n case 1 :\n // InternalMASLParser.g:9655:3: kw= HyphenMinus\n {\n kw=(Token)match(input,HyphenMinus,FOLLOW_2); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tcurrent.merge(kw);\n \t\t\tnewLeafNode(kw, grammarAccess.getUnaryOperatorAccess().getHyphenMinusKeyword_0());\n \t\t\n }\n\n }\n break;\n case 2 :\n // InternalMASLParser.g:9661:3: kw= PlusSign\n {\n kw=(Token)match(input,PlusSign,FOLLOW_2); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tcurrent.merge(kw);\n \t\t\tnewLeafNode(kw, grammarAccess.getUnaryOperatorAccess().getPlusSignKeyword_1());\n \t\t\n }\n\n }\n break;\n case 3 :\n // InternalMASLParser.g:9667:3: kw= Not\n {\n kw=(Token)match(input,Not,FOLLOW_2); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tcurrent.merge(kw);\n \t\t\tnewLeafNode(kw, grammarAccess.getUnaryOperatorAccess().getNotKeyword_2());\n \t\t\n }\n\n }\n break;\n case 4 :\n // InternalMASLParser.g:9673:3: kw= Abs\n {\n kw=(Token)match(input,Abs,FOLLOW_2); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tcurrent.merge(kw);\n \t\t\tnewLeafNode(kw, grammarAccess.getUnaryOperatorAccess().getAbsKeyword_3());\n \t\t\n }\n\n }\n break;\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n\n \tleaveRule();\n\n }\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "a58b4ffed01c2ce05c90d56f5ffcf38d", "score": "0.55131465", "text": "private Expression unary() {\n\t\tif (match(EXCLAMATION, MINUS)) {\n\t\t\tToken operator = lookprevious();\n\t\t\tExpression operand = literal();\n\t\t\treturn new Expression.Unary(operator, operand);\n\t\t}\n\t\treturn call();\n\t}", "title": "" }, { "docid": "a6eeae2e685b2226eb88ea9db82dea94", "score": "0.55106145", "text": "public final EObject ruleXMultiplicativeExpression() throws RecognitionException {\n EObject current = null;\n\n EObject this_XUnaryOperation_0 = null;\n\n EObject lv_rightOperand_3_0 = null;\n\n\n enterRule(); \n \n try {\n // InternalSpeADL.g:2797:28: ( (this_XUnaryOperation_0= ruleXUnaryOperation ( ( ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) ) ( (lv_rightOperand_3_0= ruleXUnaryOperation ) ) )* ) )\n // InternalSpeADL.g:2798:1: (this_XUnaryOperation_0= ruleXUnaryOperation ( ( ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) ) ( (lv_rightOperand_3_0= ruleXUnaryOperation ) ) )* )\n {\n // InternalSpeADL.g:2798:1: (this_XUnaryOperation_0= ruleXUnaryOperation ( ( ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) ) ( (lv_rightOperand_3_0= ruleXUnaryOperation ) ) )* )\n // InternalSpeADL.g:2799:5: this_XUnaryOperation_0= ruleXUnaryOperation ( ( ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) ) ( (lv_rightOperand_3_0= ruleXUnaryOperation ) ) )*\n {\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getXMultiplicativeExpressionAccess().getXUnaryOperationParserRuleCall_0()); \n \n }\n pushFollow(FOLLOW_43);\n this_XUnaryOperation_0=ruleXUnaryOperation();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n \n current = this_XUnaryOperation_0; \n afterParserOrEnumRuleCall();\n \n }\n // InternalSpeADL.g:2807:1: ( ( ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) ) ( (lv_rightOperand_3_0= ruleXUnaryOperation ) ) )*\n loop51:\n do {\n int alt51=2;\n switch ( input.LA(1) ) {\n case 58:\n {\n int LA51_2 = input.LA(2);\n\n if ( (synpred14_InternalSpeADL()) ) {\n alt51=1;\n }\n\n\n }\n break;\n case 59:\n {\n int LA51_3 = input.LA(2);\n\n if ( (synpred14_InternalSpeADL()) ) {\n alt51=1;\n }\n\n\n }\n break;\n case 60:\n {\n int LA51_4 = input.LA(2);\n\n if ( (synpred14_InternalSpeADL()) ) {\n alt51=1;\n }\n\n\n }\n break;\n case 61:\n {\n int LA51_5 = input.LA(2);\n\n if ( (synpred14_InternalSpeADL()) ) {\n alt51=1;\n }\n\n\n }\n break;\n\n }\n\n switch (alt51) {\n \tcase 1 :\n \t // InternalSpeADL.g:2807:2: ( ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) ) ( (lv_rightOperand_3_0= ruleXUnaryOperation ) )\n \t {\n \t // InternalSpeADL.g:2807:2: ( ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) )\n \t // InternalSpeADL.g:2807:3: ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) )\n \t {\n \t // InternalSpeADL.g:2812:6: ( () ( ( ruleOpMulti ) ) )\n \t // InternalSpeADL.g:2812:7: () ( ( ruleOpMulti ) )\n \t {\n \t // InternalSpeADL.g:2812:7: ()\n \t // InternalSpeADL.g:2813:5: \n \t {\n \t if ( state.backtracking==0 ) {\n\n \t current = forceCreateModelElementAndSet(\n \t grammarAccess.getXMultiplicativeExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0(),\n \t current);\n \t \n \t }\n\n \t }\n\n \t // InternalSpeADL.g:2818:2: ( ( ruleOpMulti ) )\n \t // InternalSpeADL.g:2819:1: ( ruleOpMulti )\n \t {\n \t // InternalSpeADL.g:2819:1: ( ruleOpMulti )\n \t // InternalSpeADL.g:2820:3: ruleOpMulti\n \t {\n \t if ( state.backtracking==0 ) {\n\n \t \t\t\tif (current==null) {\n \t \t current = createModelElement(grammarAccess.getXMultiplicativeExpressionRule());\n \t \t }\n \t \n \t }\n \t if ( state.backtracking==0 ) {\n \t \n \t \t newCompositeNode(grammarAccess.getXMultiplicativeExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_1_0()); \n \t \t \n \t }\n \t pushFollow(FOLLOW_29);\n \t ruleOpMulti();\n\n \t state._fsp--;\n \t if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n \t \n \t \t afterParserOrEnumRuleCall();\n \t \t \n \t }\n\n \t }\n\n\n \t }\n\n\n \t }\n\n\n \t }\n\n \t // InternalSpeADL.g:2833:4: ( (lv_rightOperand_3_0= ruleXUnaryOperation ) )\n \t // InternalSpeADL.g:2834:1: (lv_rightOperand_3_0= ruleXUnaryOperation )\n \t {\n \t // InternalSpeADL.g:2834:1: (lv_rightOperand_3_0= ruleXUnaryOperation )\n \t // InternalSpeADL.g:2835:3: lv_rightOperand_3_0= ruleXUnaryOperation\n \t {\n \t if ( state.backtracking==0 ) {\n \t \n \t \t newCompositeNode(grammarAccess.getXMultiplicativeExpressionAccess().getRightOperandXUnaryOperationParserRuleCall_1_1_0()); \n \t \t \n \t }\n \t pushFollow(FOLLOW_43);\n \t lv_rightOperand_3_0=ruleXUnaryOperation();\n\n \t state._fsp--;\n \t if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t \t if (current==null) {\n \t \t current = createModelElementForParent(grammarAccess.getXMultiplicativeExpressionRule());\n \t \t }\n \t \t\tset(\n \t \t\t\tcurrent, \n \t \t\t\t\"rightOperand\",\n \t \t\tlv_rightOperand_3_0, \n \t \t\t\"org.eclipse.xtext.xbase.Xbase.XUnaryOperation\");\n \t \t afterParserOrEnumRuleCall();\n \t \t \n \t }\n\n \t }\n\n\n \t }\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop51;\n }\n } while (true);\n\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n leaveRule(); \n }\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "title": "" }, { "docid": "8bb339a63c8a853c7bce878e42b8bff5", "score": "0.5507709", "text": "public boolean isUnary();", "title": "" }, { "docid": "0cd7832a226caad6a7bbddbc39901871", "score": "0.5504016", "text": "private IClass resolveUnaryExpression(\n SymTabAST expression,\n Scope location,\n IClass context,\n boolean referencePhase) {\n SymTabAST operatee = (SymTabAST) (expression.getFirstChild());\n return resolveExpression(operatee, location, context, referencePhase);\n }", "title": "" }, { "docid": "af54e673b3cb2e02148c2f495ed5550f", "score": "0.5494619", "text": "public final void rule__MultExpression__Group__0__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.kermeta.language.sample.cellularautomata.rules.evolution.cs.ui/src-gen/org/kermeta/language/sample/cellularautomata/rules/ui/contentassist/antlr/internal/InternalEvol.g:3140:1: ( ( ruleUnaryExpression ) )\r\n // ../org.kermeta.language.sample.cellularautomata.rules.evolution.cs.ui/src-gen/org/kermeta/language/sample/cellularautomata/rules/ui/contentassist/antlr/internal/InternalEvol.g:3141:1: ( ruleUnaryExpression )\r\n {\r\n // ../org.kermeta.language.sample.cellularautomata.rules.evolution.cs.ui/src-gen/org/kermeta/language/sample/cellularautomata/rules/ui/contentassist/antlr/internal/InternalEvol.g:3141:1: ( ruleUnaryExpression )\r\n // ../org.kermeta.language.sample.cellularautomata.rules.evolution.cs.ui/src-gen/org/kermeta/language/sample/cellularautomata/rules/ui/contentassist/antlr/internal/InternalEvol.g:3142:1: ruleUnaryExpression\r\n {\r\n before(grammarAccess.getMultExpressionAccess().getUnaryExpressionParserRuleCall_0()); \r\n pushFollow(FollowSets000.FOLLOW_ruleUnaryExpression_in_rule__MultExpression__Group__0__Impl6256);\r\n ruleUnaryExpression();\r\n\r\n state._fsp--;\r\n\r\n after(grammarAccess.getMultExpressionAccess().getUnaryExpressionParserRuleCall_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": "d66a979c2fdafad00fb108fb242f871d", "score": "0.54928017", "text": "public final void rule__DmxUnaryOperation__OperandAssignment_0_2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDom.g:11395:1: ( ( ruleDmxUnaryOperation ) )\n // InternalDom.g:11396:2: ( ruleDmxUnaryOperation )\n {\n // InternalDom.g:11396:2: ( ruleDmxUnaryOperation )\n // InternalDom.g:11397:3: ruleDmxUnaryOperation\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getDmxUnaryOperationAccess().getOperandDmxUnaryOperationParserRuleCall_0_2_0()); \n }\n pushFollow(FOLLOW_2);\n ruleDmxUnaryOperation();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getDmxUnaryOperationAccess().getOperandDmxUnaryOperationParserRuleCall_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": "5ec74481f63eb87179274d8394ec5f19", "score": "0.5462162", "text": "public final void ruleOpAdd() 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:696:2: ( ( ( rule__OpAdd__Alternatives ) ) )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:697:1: ( ( rule__OpAdd__Alternatives ) )\n {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:697:1: ( ( rule__OpAdd__Alternatives ) )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:698:1: ( rule__OpAdd__Alternatives )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getOpAddAccess().getAlternatives()); \n }\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:699:1: ( rule__OpAdd__Alternatives )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:699:2: rule__OpAdd__Alternatives\n {\n pushFollow(FOLLOW_rule__OpAdd__Alternatives_in_ruleOpAdd1425);\n rule__OpAdd__Alternatives();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getOpAddAccess().getAlternatives()); \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": "6f12fdf806778581d507330149de7faa", "score": "0.5451243", "text": "public final void rule__UnaryExpr__ExprAssignment_0_8() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalLTL.g:1610:1: ( ( ruleUnaryExpr ) )\n // InternalLTL.g:1611:2: ( ruleUnaryExpr )\n {\n // InternalLTL.g:1611:2: ( ruleUnaryExpr )\n // InternalLTL.g:1612:3: ruleUnaryExpr\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getUnaryExprAccess().getExprUnaryExprParserRuleCall_0_8_0()); \n }\n pushFollow(FOLLOW_2);\n ruleUnaryExpr();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getUnaryExprAccess().getExprUnaryExprParserRuleCall_0_8_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": "be1d001c61e8412652d2e20a74c77450", "score": "0.5442781", "text": "public final void rule__OpAdd__Alternatives() 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:2598:1: ( ( '+' ) | ( '-' ) )\n int alt13=2;\n int LA13_0 = input.LA(1);\n\n if ( (LA13_0==33) ) {\n alt13=1;\n }\n else if ( (LA13_0==34) ) {\n alt13=2;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 13, 0, input);\n\n throw nvae;\n }\n switch (alt13) {\n case 1 :\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:2599:1: ( '+' )\n {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:2599:1: ( '+' )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:2600:1: '+'\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getOpAddAccess().getPlusSignKeyword_0()); \n }\n match(input,33,FOLLOW_33_in_rule__OpAdd__Alternatives5544); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getOpAddAccess().getPlusSignKeyword_0()); \n }\n\n }\n\n\n }\n break;\n case 2 :\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:2607:6: ( '-' )\n {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:2607:6: ( '-' )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:2608:1: '-'\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getOpAddAccess().getHyphenMinusKeyword_1()); \n }\n match(input,34,FOLLOW_34_in_rule__OpAdd__Alternatives5564); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getOpAddAccess().getHyphenMinusKeyword_1()); \n }\n\n }\n\n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "d8f93b748098b168baf65a65bf4fcf3a", "score": "0.5425494", "text": "public final EObject entryRuleUnaryExp() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleUnaryExp = null;\n\n\n try {\n // InternalMASLParser.g:9565:49: (iv_ruleUnaryExp= ruleUnaryExp EOF )\n // InternalMASLParser.g:9566:2: iv_ruleUnaryExp= ruleUnaryExp EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getUnaryExpRule()); \n }\n pushFollow(FOLLOW_1);\n iv_ruleUnaryExp=ruleUnaryExp();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleUnaryExp; \n }\n match(input,EOF,FOLLOW_2); if (state.failed) return current;\n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "a0c64cd3ace1f4efb5e2b33de22160cd", "score": "0.5419451", "text": "public final void rule__DmxMultiplicativeExpression__Group__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDom.g:7132:1: ( ( ruleDmxUnaryOperation ) )\n // InternalDom.g:7133:1: ( ruleDmxUnaryOperation )\n {\n // InternalDom.g:7133:1: ( ruleDmxUnaryOperation )\n // InternalDom.g:7134:2: ruleDmxUnaryOperation\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getDmxMultiplicativeExpressionAccess().getDmxUnaryOperationParserRuleCall_0()); \n }\n pushFollow(FOLLOW_2);\n ruleDmxUnaryOperation();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getDmxMultiplicativeExpressionAccess().getDmxUnaryOperationParserRuleCall_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": "16583d9777d34a9002a3c63a7b42da21", "score": "0.541763", "text": "public final void rule__Unary__RightAssignment_1_1_1_1() throws RecognitionException {\n int rule__Unary__RightAssignment_1_1_1_1_StartIndex = input.index();\n\n \t\tint stackSize = keepStackSize();\n \n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 1145) ) { return ; }\n // InternalGaml.g:19131:1: ( ( ruleUnary ) )\n // InternalGaml.g:19132:1: ( ruleUnary )\n {\n // InternalGaml.g:19132:1: ( ruleUnary )\n // InternalGaml.g:19133:1: ruleUnary\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getUnaryAccess().getRightUnaryParserRuleCall_1_1_1_1_0()); \n }\n pushFollow(FollowSets000.FOLLOW_2);\n ruleUnary();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getUnaryAccess().getRightUnaryParserRuleCall_1_1_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 if ( state.backtracking>0 ) { memoize(input, 1145, rule__Unary__RightAssignment_1_1_1_1_StartIndex); }\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "10354b769b8f60c530c66ae71da644b2", "score": "0.5409493", "text": "public final void rule__XUnaryOperation__Group_0__2__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:6662:1: ( ( ( rule__XUnaryOperation__OperandAssignment_0_2 ) ) )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:6663:1: ( ( rule__XUnaryOperation__OperandAssignment_0_2 ) )\n {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:6663:1: ( ( rule__XUnaryOperation__OperandAssignment_0_2 ) )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:6664:1: ( rule__XUnaryOperation__OperandAssignment_0_2 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXUnaryOperationAccess().getOperandAssignment_0_2()); \n }\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:6665:1: ( rule__XUnaryOperation__OperandAssignment_0_2 )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:6665:2: rule__XUnaryOperation__OperandAssignment_0_2\n {\n pushFollow(FOLLOW_rule__XUnaryOperation__OperandAssignment_0_2_in_rule__XUnaryOperation__Group_0__2__Impl13832);\n rule__XUnaryOperation__OperandAssignment_0_2();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXUnaryOperationAccess().getOperandAssignment_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": "1f711bdcfd91a234686cc5de38879ef2", "score": "0.5408338", "text": "public final void rule__OpAdd__Alternatives() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalBugsly.g:2451:1: ( ( '+' ) | ( '-' ) )\r\n int alt14=2;\r\n int LA14_0 = input.LA(1);\r\n\r\n if ( (LA14_0==34) ) {\r\n alt14=1;\r\n }\r\n else if ( (LA14_0==35) ) {\r\n alt14=2;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return ;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 14, 0, input);\r\n\r\n throw nvae;\r\n }\r\n switch (alt14) {\r\n case 1 :\r\n // InternalBugsly.g:2452:2: ( '+' )\r\n {\r\n // InternalBugsly.g:2452:2: ( '+' )\r\n // InternalBugsly.g:2453:3: '+'\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getOpAddAccess().getPlusSignKeyword_0()); \r\n }\r\n match(input,34,FOLLOW_2); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getOpAddAccess().getPlusSignKeyword_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 2 :\r\n // InternalBugsly.g:2458:2: ( '-' )\r\n {\r\n // InternalBugsly.g:2458:2: ( '-' )\r\n // InternalBugsly.g:2459:3: '-'\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getOpAddAccess().getHyphenMinusKeyword_1()); \r\n }\r\n match(input,35,FOLLOW_2); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getOpAddAccess().getHyphenMinusKeyword_1()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\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": "31a8f505c3685d44f13013b97501ff37", "score": "0.5406924", "text": "public void addUnaryOperation()\n {\n if ( activeModulePanel != null )\n {\n addModule( new UnaryOpModule( procedure, getNewLocation() ) );\n }\n }", "title": "" } ]
fb81dcc93552f77c72f6dd456896dd0e
This function return the value of values of matrix in i,j
[ { "docid": "0c7470947602593b8b5059ea58afa6e3", "score": "0.7592146", "text": "public String getValueIJOfValuesMatrix(int i, int j) {\r\n\t\treturn values_matrix[i][j];\r\n\t}", "title": "" } ]
[ { "docid": "b0cb34eef9edbf8fc46e8d37912fd80f", "score": "0.7542089", "text": "public int viewValue(int i, int j) {\n //System.out.println(\"rows: \" + i + \", Column : \" + j);\n // TODO: hacer que correctamente retorne falso con i o j mayores de lo permitido\n int value;\n if (!(this.matrix.indexExists(j)) || !(((LinkedList) this.matrix.getHead().getData()).indexExists(i)))\n value = -1;\n else {\n Node temp = this.matrix.getHead();\n for (int k = 0; k < j; k++) {\n temp = temp.getNext();\n }\n\n Node temp2 = ((LinkedList) temp.getData()).getHead();\n for (int k = 0; k < i; k++) {\n temp2 = temp2.getNext();\n }\n\n value = (int) temp2.getData();\n }\n\n return value;\n }", "title": "" }, { "docid": "1fe45a82255b2d079c5aefc238202283", "score": "0.7248102", "text": "public double get(int i, int j) {\n return values[i][j];\n }", "title": "" }, { "docid": "a02df3c3ba99afac6201142288a6c481", "score": "0.7205241", "text": "public int getValue(UUID i, UUID j) {\n\t\treturn HashMatrix.get(i).get(j);\n\t}", "title": "" }, { "docid": "b5b727ee6eed9ff8249d64f0f97e96b9", "score": "0.7136579", "text": "public BigDecimal get(int i, int j) {\n if (i < 0 || i > height || j < 0 || j > width) {\n throw new IllegalArgumentException(i + \",\" + j\n + \" does not exist in\"\n + \" matrix of height \"\n + height\n + \" and width \"\n + width + \".\");\n }\n return matrix[i][j];\n }", "title": "" }, { "docid": "e1c29b5a2841c1e2c0b592c1762a0337", "score": "0.7119467", "text": "public double get(int i, int j){\n\t\treturn this.A[i][j];\n\t}", "title": "" }, { "docid": "9765ad57e332ff4dda4bb2a9957def11", "score": "0.71112144", "text": "public byte get(int i, int j){\n\t\treturn matrix[i][j];\n\t}", "title": "" }, { "docid": "53d7361f6f2b809f5027b6038a3d1cd4", "score": "0.6966408", "text": "public double getValue(int index)\n\t{\n\t\treturn matrix[index];\n\t}", "title": "" }, { "docid": "82402f0b09e8ef9aaaf362f70f201e6c", "score": "0.6915257", "text": "public double getValue(int row, int column)\n\t{\n\t\treturn matrix[column + row*4];\n\t}", "title": "" }, { "docid": "a69f04ad3d3eff0dfa4ab049aa396918", "score": "0.6890951", "text": "public float get(int row, int col)\r\n {\n \r\n return matrix[row * 4 + col];\r\n }", "title": "" }, { "docid": "9033927e157ef8deffef4ce21212d141", "score": "0.670624", "text": "public int getCoeff(int i, int j)\n\t{\n\t\tArrayList<Integer> tempMat = mat.get(i-1);\n\t\t\n\t\treturn tempMat.get(j-1);\n\t}", "title": "" }, { "docid": "87012de3492a81a35e20f717f9cde1da", "score": "0.66799784", "text": "public ComplexNumber get(int i,int j) throws ComplexException {\n checkBounds(i,j);\n return matrix[i][j];\n }", "title": "" }, { "docid": "5f550375a5873c5c9f14096902143aec", "score": "0.665552", "text": "public static double GetElmt(Matrix M, int i, int j){\n return M.data[i][j];\n }", "title": "" }, { "docid": "ee638e887e92a911c794a59f8549e62f", "score": "0.6548894", "text": "public int getData(int i, int j)\n {\n return data[i][j];\n }", "title": "" }, { "docid": "18598b5ef8950f365d43c0f5da343313", "score": "0.651573", "text": "public Map.Entry<String, Integer> elementAt(int i, int j) {\n Set<Map.Entry<String, LinkedHashMap<String, Integer>>> mapSet = this.connectionMatrix.entrySet();\n Map.Entry<String, LinkedHashMap<String, Integer>> rowEntry = (\n new ArrayList<Map.Entry<String, \n LinkedHashMap<String, \n Integer>>>(mapSet)\n ).get(i);\n\n LinkedHashMap<String, Integer> rowValue = rowEntry.getValue();\n Set<Map.Entry<String, Integer>> rowSet = rowValue.entrySet();\n Map.Entry<String, Integer> val = (new ArrayList<Map.Entry<String, Integer>>(rowSet)).get(j);\n return val;\n }", "title": "" }, { "docid": "1e1731f71a42851459079d8f991a7405", "score": "0.64414024", "text": "public int getValuesOfCase(int i, int j) {\n\t\tif(champ[i][j]) {\n\t\t\treturn -1;\n\t\t} else {\n\t\t\treturn calculMines(i, j);\n\t\t}\n\t}", "title": "" }, { "docid": "b6751f267885b0021f1ac3b6768ba549", "score": "0.640006", "text": "double value(int row);", "title": "" }, { "docid": "a78d2daaab96675b41063af67550dd46", "score": "0.63966906", "text": "public int getValueAt(int row, int col){\r\n\t\t/* to be implemented in part (a) */\r\n\t\t//STANDARD FOR LOOP SOLUTION\r\n\t\t/*\r\n\t\tfor (int i = 0; i < entries.size(); i++) {\r\n\t\t\tSparseArrayEntry s = entries.get(i);\r\n\t\t\tif (s.getRow() == row && s.getCol() == col) \r\n\t\t\t\treturn s.getValue();\r\n\t\t}\r\n\t\t//*/\r\n\t\t\r\n\t\t//FOR EACH SOLUTION\r\n\t\t\r\n\t\tfor (SparseArrayEntry s: entries)\r\n\t\t \tif (s.getRow() == row && s.getCol() == col) \r\n\t\t\t\treturn s.getValue();\r\n\t\t \r\n\t\t// */\r\n\t\t\r\n\t\treturn 0;\r\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "2c3b67c3c63b5f349d277a57bcb34a67", "score": "0.63176894", "text": "public double get(int row, int col);", "title": "" }, { "docid": "0860f65b1e84b815bf036860c55b134d", "score": "0.62549835", "text": "@Override\r\n\tpublic double GetItem(int i, int j) {\n\t\treturn data[i][j];\r\n\t}", "title": "" }, { "docid": "d973684ca704d2e92c766e770d8fbb65", "score": "0.62158287", "text": "public float get_element(int row,int collumn){ \n \n return array[row][collumn];\n \n }", "title": "" }, { "docid": "e7579d5892fc12deaa2bb644bf823a64", "score": "0.61677045", "text": "public double functionCalc(Matrix value);", "title": "" }, { "docid": "08e4311ea202248e2ea0fc74bbca3fd8", "score": "0.61405504", "text": "private int getIndex(int row, int col) {\n return row * M + col;\n }", "title": "" }, { "docid": "827ac9a552793e3f00a7459a0af5641d", "score": "0.6116445", "text": "public double getElement(int row, int col) {\r\n return matrixRows[row].getElement(col);\r\n }", "title": "" }, { "docid": "8a5123b39768362b1e17bc7022252790", "score": "0.6082319", "text": "public abstract double get(int col);", "title": "" }, { "docid": "c4695591f0958c478809c4eea1ad8faf", "score": "0.6048969", "text": "public double getValueOf(int vertex1, int vertex2) {\n\t\treturn matrix[vertex1][vertex2];\n\t}", "title": "" }, { "docid": "fc7a318a139d2d2bd591368caadd4901", "score": "0.60475904", "text": "public double get(int row, int col) {\n\t\tif(row > rows || col > cols) {\n\t\t\tthrow new IndexOutOfBoundsException(\"Error index out of bounds!\");\n\t\t}else\n\t\t\treturn matrix[row-1][col-1];\n\t}", "title": "" }, { "docid": "8ce9eb08e6ad57009562310840920326", "score": "0.60230154", "text": "public double get(int i){\n\t\tif (isRowVector()){\n\t\t\treturn get(0, i);\n\t\t} else{\n\t\t\treturn get(i, 0);\n\t\t}\n\t}", "title": "" }, { "docid": "69165965d000d0aafdd66404d0a2373f", "score": "0.60154676", "text": "public int[][] caseMatrixToIntMatrix() {\n int[][] matrixInt = new int[matrix.length][matrix[0].length];\n for (int i = 0; i < matrix.length; i++) {\n for (int j = 0; j < matrix[0].length; j++) {\n matrixInt[i][j] = matrix[i][j].getValue();\n }\n }\n return matrixInt;\n }", "title": "" }, { "docid": "715c7be2735bc2378329fd3dba3215e7", "score": "0.5992988", "text": "private int index(int i,int j){\t\r\n\t\treturn (_n+1)*i + j;\r\n\t}", "title": "" }, { "docid": "c6cf428e26dfe2f836f1be4c30b19a9c", "score": "0.5985183", "text": "int getCellValue(int row, int col);", "title": "" }, { "docid": "cd2fee09f947009abeb7ec52b38b9d58", "score": "0.59810424", "text": "public int costs(int i, int j) {\n\t\treturn field[i][j];\n }", "title": "" }, { "docid": "746a1aa65f70d314905452a92e58f01d", "score": "0.5973254", "text": "public Double[][] values();", "title": "" }, { "docid": "c009bdad86388439a6366e33209a7396", "score": "0.59545904", "text": "@Override\n\tpublic Object getValueAt(int row, int column) {\n\t\tString celda = matriz[row][column];\n\t\t// TODO Auto-generated method stub\n\t\treturn celda;\n\t}", "title": "" }, { "docid": "181cf0cd736ac65ec10be3c9e373c0d5", "score": "0.59414625", "text": "public int weight(int i, int j){\n if (matrix[i][j] == 0) return Integer.MAX_VALUE;\n else return matrix[i][j];\n }", "title": "" }, { "docid": "b3a53cebfc0f28e4d587381c794cfd36", "score": "0.59376264", "text": "public int getCurrentStatus(int i, int j){\n return model[i][j];\n }", "title": "" }, { "docid": "1f1e5be750f31e87afc6803a863c9e9b", "score": "0.59304273", "text": "public int getCost() \n {\n return matrix [ row ][ col ] ;\n }", "title": "" }, { "docid": "1fcde87a34057e38dd31ea0dfc37c219", "score": "0.59292734", "text": "public Ficha getFicha(int i, int j) {\n return this.matriz[i][j];\n }", "title": "" }, { "docid": "c6f7265a01e6c0baf96b1587af3e4fe5", "score": "0.5877478", "text": "public int[][] storeMatrixValues(int[][] matrix){\n\t\tfor (int i = 0; i<matrix.length; i++){\t\t\t\t\t//The matrix length is 12, because it takes the highest length of columns or rows\r\n\t\t\tfor (int j = 0; j<matrix[i].length; j++){\t\t\t//matrix[i].length is 2, the amount of columns in the matrix\r\n\t\t\t\tmatrix[i][j] = i+1;\t\t\t\t\t\t\t\t//This for loop iterates 2 times and the outer for loop iterates 12 times\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor (int i = 0; i<matrix.length; i++){\t\t\t\t\t//matrix.length, amount of rows = 12\r\n\t\t\tfor (int j = 0; j<matrix[i].length; j++){\t\t\t//matrix[i].length, amount of columns = 2\r\n\t\t\t\tmatrix[i][1] = (int)(Math.random()*100) + 1;\t//Store random values from 1 and 100 into the second column at index 1\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//Use built in function Math.random()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//(int) makes it an integer value stored into the second column\r\n\t\t\t}\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t}\r\n\t\treturn matrix;\r\n\t}", "title": "" }, { "docid": "64f8145b14d40540bbf74b44c4fd7a16", "score": "0.58658195", "text": "public final int getvalue(int x, int y){\r\n\t \tint [][] grille = new int[9][9];\r\n\t \tint value = 0;\r\n\t\t\tif (x <= 8 && y <= 8){\r\n\t \tfor (int i=0; i< grille.length; i++) {\r\n\t \t\tfor (int j=0; j< grille[i].length; j++) \r\n\t \t\tvalue = grille[x][y] ;\t\r\n\t \t}\r\n\t \t}else {\r\n\t\t\t\tthrow new IllegalArgumentException(\"x ou y n'est pas compris dans la borne 0-8 \");\r\n\t\t\t}\r\n\t\t\treturn value;\r\n\t }", "title": "" }, { "docid": "335d6fe0b259de0a77894fae7445e9d1", "score": "0.5863308", "text": "public Obstaculo getObjetoEn(int i,int j){\n\t\t\treturn m[i][j];\n\t}", "title": "" }, { "docid": "7877847c01a0f3fb0b6a31d413ec6728", "score": "0.58541757", "text": "private List getRow(int i)\n {\n return matrix[i-1];\n }", "title": "" }, { "docid": "82bc5099058fbf315003697977508e80", "score": "0.5853051", "text": "private int index1D(int i, int j) {\n int dims = this.dimensions();\n return (dims * (dims - 1) / 2)\n - (dims - i) * ((dims - i) - 1) / 2 + j - i - 1;\n }", "title": "" }, { "docid": "e8f71220cc03391ecd66b934e5b41548", "score": "0.5850475", "text": "public double[][] getResult()\r\n\t{\r\n\t\treturn result;\r\n\t}", "title": "" }, { "docid": "f0c721b8a6317250f552af76db720a7c", "score": "0.58301634", "text": "public String[][] getValuesMatrix() {\r\n\t\treturn values_matrix;\r\n\t}", "title": "" }, { "docid": "a4471f1d29eb5f8f6934b76c727fc59b", "score": "0.5828702", "text": "public int[] sampleIJ(int[] triple, SparseMatrix matrix) {\r\n\t\tint i = triple[0];\r\n\t\tint j1;\r\n\t\tint j2;\r\n\t\tint xscale = 1;\r\n//\t\tSystem.out.println(\" - Looking for items for user \"+i);\r\n//\t\tSystem.out.println(\" - N is \"+matrix.getN());\r\n\t\tObject ithRow = matrix.getRow(i);\r\n\t\tboolean breaker;\r\n\t\tdo{\r\n\t\t\tj1 = random.nextInt(matrix.getN());\r\n\t\t\t//System.out.println(\" - - rand: \" + randomnumber);\r\n\t\t\t//j1 = ithRow.get(random.nextInt(matrix.getN()));\r\n//\t\t\tSystem.out.println(\" - - guessing item 1 as \"+j1+ \" with value \"+ithRow.get(j1));\r\n\t\t\tif(ithRow instanceof TIntByteMap){breaker = (((TIntByteMap)ithRow).get(j1) == 0);}\r\n\t\t\telse if(ithRow instanceof TIntIntMap){breaker = (((TIntIntMap)ithRow).get(j1) == 0);}\r\n\t\t\telse{System.err.println(\"WRONG TYPE! 3\"); return null;}\r\n\t\t}\r\n\t\twhile (breaker);\r\n//\t\tSystem.out.println(\" - Chose item 1 as \"+j1+ \" with value \"+ithRow.get(j1));\r\n\t\tdo{\r\n\t\t\tj2 = random.nextInt(matrix.getN());\r\n\t\t\t//j2 = ithRow.get((random.nextInt(matrix.getN())));\r\n//\t\t\tSystem.out.println(\" - - guessing item 2 as\"+j2+ \" with value \"+ithRow.get(j2));\r\n\t\t\tif(ithRow instanceof TIntByteMap){breaker = (((TIntByteMap)ithRow).get(j2) != 0);}\r\n\t\t\telse if(ithRow instanceof TIntIntMap){\r\n\t\t\t\tbreaker = (((TIntIntMap)ithRow).get(j2) >= ((TIntIntMap)ithRow).get(j1));\r\n\t\t\t\txscale = ((TIntIntMap)ithRow).get(j1) - ((TIntIntMap)ithRow).get(j2);\r\n\t\t\t\t}\r\n\t\t\telse{System.err.println(\"WRONG TYPE! 4\"); return null;}\r\n\t\t}\r\n\t\twhile (breaker);\r\n//\t\tSystem.out.println(\" - Chose item 2 as \"+j2+ \" with value \"+ithRow.get(j2));\r\n\t\ttriple[1] = j1;\r\n\t\ttriple[2] = j2;\r\n//\t\tSystem.out.println(\" - Triple is \"+i+ \" \"+j1+\" \"+j2);\r\n\t\t\r\n\t\ttriple[3] = xscale;\r\n\t\treturn triple;\r\n\t}", "title": "" }, { "docid": "fca6ff09ccf862c83c90b4c2ff890be9", "score": "0.5827857", "text": "public DoubleMatrix getValues() {\n return this.values;\n }", "title": "" }, { "docid": "266792ffaaa9ec1576ad84ff01a788bc", "score": "0.58158743", "text": "public Object get(int row,int col) {\n\t\t\n\t\treturn(matrix.getQuick(row,col));\n\t\t\n\t}", "title": "" }, { "docid": "ee4c42f50c18ce4605eb40e35f1316f0", "score": "0.581524", "text": "public Object getValueAt(int row, int col) {\n\t if (row <0 || row >= getRowCount()) return \" \";\n\t Vector fila = (Vector) data.get(row);\n\t return fila.get(col);\n\t }", "title": "" }, { "docid": "4dbb6c528d045b3310a8918a78748c08", "score": "0.58131003", "text": "private static float GetValue(float[][] grid, int x, int y){\r\n\t\t\r\n\t\tint XN = x;\r\n\t\tint YN = y;\r\n\t\tif(x < 0){\r\n\t\t\tXN = 0;\r\n\t\t}else if(x >= grid.length){\r\n\t\t\tXN = grid.length - 1;\r\n\t\t}\r\n\t\tif(y < 0){\r\n\t\t\tYN = 0;\r\n\t\t}else if(y >= grid.length){\r\n\t\t\tYN = grid.length - 1;\r\n\t\t}\r\n\t\treturn grid[XN][YN];\r\n\t\t\r\n\t}", "title": "" }, { "docid": "b2bdfa958bc8254c7516947d5e32ffac", "score": "0.5806197", "text": "public Object getValueAt(int row, int col) {\n return rows[row];\n }", "title": "" }, { "docid": "8d136cc4205d46e507ffab29e88288c0", "score": "0.57977194", "text": "private float m33663a(Matrix matrix, int i) {\n matrix.getValues(this.f26379p);\n return this.f26379p[i];\n }", "title": "" }, { "docid": "d5859afdc9bc3a4d105c5c33e7ea804b", "score": "0.579074", "text": "public Integer getCellValue(int row, int col) {\n return data[row][col];\n }", "title": "" }, { "docid": "66ada737a8428f62d73edbff7f129a62", "score": "0.575752", "text": "public double getElement(int a, int b) {\n\t\treturn this.matrix[a][b];\n\t}", "title": "" }, { "docid": "7fb7867cf812ee440b1551a5dc837f21", "score": "0.5756167", "text": "public static int [][] table() {\n int row = 0;\n int col = 0;\n int [][] value = new int [10][10];\n\n //System.out.print(\"Row is \"+value.length);\n //System.out.print(\"Col is \"+value[row].length);\n\n for (row = 0; row < value.length; row++){\n for (col = 0; col < value.length; col++){\n value[row][col] = (row+1)*(col+1);\n }\n }\n\n// System.out.print(value);\n return value;\n }", "title": "" }, { "docid": "07cbf43015c1242c386a4da97a71f6d2", "score": "0.5749281", "text": "public MineCell getCell(int i, int j) {\n\t\treturn mineArray [i][j];\n\t}", "title": "" }, { "docid": "29cba308c541c372a903fd6c8ae3903b", "score": "0.5731541", "text": "public Object getValueAt(int row, int column) {\n\n return data[column][row];\n }", "title": "" }, { "docid": "7952917f11d2e0d2b30238a5f632a05e", "score": "0.57197964", "text": "public int get(int x, int y){\r\n\t\treturn values[x][y];\r\n\t}", "title": "" }, { "docid": "997c5a9576fc4adce0b02574960ed82b", "score": "0.5698958", "text": "public Matrix getA();", "title": "" }, { "docid": "f7ce190719540ef27a4c2cc51f58af8e", "score": "0.5653919", "text": "public int[] sampleJ(int k, int i, int j, SparseMatrix matrix) {\r\n\t\tint[] sampleTriple = new int[4];\r\n\t\tsampleTriple[0] = k;\r\n\t\tsampleTriple[1] = i;\r\n\t\tsampleTriple[2] = j;\r\n\t\t\r\n\t\tboolean breaker = false;\r\n\t\tint xscale = 1;\r\n\t\t\r\n\t\tdo{\r\n\t\t\t// try another random item, as long ...\r\n\t\t\tsampleTriple[2] = random.nextInt(numItems);\r\n\t\t\t\r\n\t\t\tif(matrix.get(k,sampleTriple[2]) instanceof Byte){\r\n\t\t\t\tbyte jValue = (byte)matrix.get(k,sampleTriple[2]);\r\n\t\t\t\tbyte iValue = (byte)matrix.get(k,sampleTriple[1]);\r\n\t\t\t\tif(iValue > jValue) breaker = true;\r\n\t\t\t}\r\n\t\t\telse if (matrix.get(k,sampleTriple[2]) instanceof Integer){\r\n\t\t\t\tint jValue = (int)matrix.get(k,sampleTriple[2]);\r\n\t\t\t\tint iValue = (int)matrix.get(k,sampleTriple[1]);\r\n\t\t\t\tif(iValue > jValue) breaker = true;\r\n\t\t\t\txscale = iValue - jValue;\r\n\t\t\t}\r\n\t\t\telse {System.err.println(\"WRONG TYPE! 1\");return null;}\r\n\t\t\t\r\n\t\t}\r\n\t\t// ... as the random still has that specific feature\r\n\t\twhile (!breaker);\r\n\r\n\t\t// set xscale\r\n\t\tsampleTriple[3] = xscale;\r\n\t\treturn sampleTriple;\r\n\t}", "title": "" }, { "docid": "6568b3e14662b745099f2f816761d4d2", "score": "0.56531733", "text": "public byte getValue(byte row, byte column);", "title": "" }, { "docid": "082827c1d3d09de4327c080c05db4fd4", "score": "0.56523424", "text": "public int getMatrixEntry(int[][] matrix, LEcoord loc)\r\n{\r\n // note there are 2 slices to each col, and 2 LEs to each row\r\n int r=((loc.row-minrow)*2)+loc.LE;\r\n int c=((loc.col-mincol)*2)+loc.slice;\r\n return matrix[r][c];\r\n}", "title": "" }, { "docid": "a997a9b71763be5eb0eb6a6c93d1df6f", "score": "0.5649717", "text": "public Object getValueAt(int row, int col) {\n\t\treturn data[row][col];\n\t}", "title": "" }, { "docid": "634c12acc128849b906fddcf686ddd8e", "score": "0.5644281", "text": "public T get(int i, int j){\n checkIndices(i, j);\n return items.get(j*width+i);\n }", "title": "" }, { "docid": "45098924b03f212875f55f16dd642e5c", "score": "0.56377465", "text": "public int getValAtPos(int row, int col) {\r\n\t\treturn map[row][col];\r\n\t}", "title": "" }, { "docid": "27cf9d1fc2b5800e24d3aace9dc4c1a7", "score": "0.5637283", "text": "public Object getValueAt(int row, int col) {\r\n\t\tVector rowVector = (Vector) tableData.elementAt(row);\r\n\t\treturn rowVector.elementAt(col);\r\n\t}", "title": "" }, { "docid": "351ac4879fdff0d0772d817edb3ac179", "score": "0.56351864", "text": "public String getValueAt(int row,int col)\t{\r\n\t\t\t\treturn dataValues[row][col];\r\n\t\t\t}", "title": "" }, { "docid": "8bcd82575022d51ed05c37b8a3ba45b3", "score": "0.5634484", "text": "Object getValueAt(int row, int column);", "title": "" }, { "docid": "1cf0e1f0d62afdc5b907c8b27fff31c9", "score": "0.5614031", "text": "private int getPixel(int i, int j) {\n\t\t// TODO 8-4-e optional\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "658267fd9cef91aaffea3a78b60a8977", "score": "0.5609365", "text": "public Matrix getB();", "title": "" }, { "docid": "7cee46865dce7ff69bac695156b06f86", "score": "0.5606284", "text": "public int[][] getMatrix() {\n\t\treturn matrix;\n\t}", "title": "" }, { "docid": "a469f6184bc56acf78678576c32d2578", "score": "0.56039363", "text": "static int get(int i, int j, int k){\r\n\t\tif(dp[i][j][k]!=-1)return dp[i][j][k];\r\n\t\tint s = 0;\r\n\t\tif(k==0){\r\n\t\t\tif(i-1>=0){\r\n\t\t\t\ts += get(i-1, j, 4);\r\n\t\t\t}\r\n\t\t\tif(j+1<w){\r\n\t\t\t\ts += get(i, j+1, 2);\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if(k==1){\r\n\t\t\tif(j+1<w){\r\n\t\t\t\ts += get(i, j+1, 2);\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if(k==2){\r\n\t\t\tif(i-1>=0){\r\n\t\t\t\ts += get(i-1, j, 3);\r\n\t\t\t}\r\n\t\t\tif(j+1<w){\r\n\t\t\t\ts += get(i, j+1, 2);\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if(k==3){\r\n\t\t\tif(i-1>=0){\r\n\t\t\t\ts += get(i-1, j, 4);\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if(k==4){\r\n\t\t\tif(i-1>=0){\r\n\t\t\t\ts += get(i-1, j, 4);\r\n\t\t\t}\r\n\t\t\tif(j+1<w){\r\n\t\t\t\ts += get(i, j+1, 1);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn dp[i][j][k] = s%100000;\r\n\t}", "title": "" }, { "docid": "6249e79b4c8169f2aea31018495ce61e", "score": "0.5603644", "text": "public double getMvalFor(int i) {\n\t\t\tif (positions.get(i) >= morphMatrix.get(i).size()) {\n\t\t\t\treturn 0;\n\t\t\t}\n\t\t\treturn m_val * morphMatrix.get(i).get(positions.get(i));\n\t\t}", "title": "" }, { "docid": "ee00e83fd5a264785efebd934350bb96", "score": "0.5599122", "text": "private int getGrid(int i, int j) {\r\n return (i - 1) * N + (j - 1);\r\n }", "title": "" }, { "docid": "197a9075393af07ffc61263a80e33c03", "score": "0.5596693", "text": "public int getValue(int i) {\r\n return lattice.get(i);\r\n }", "title": "" }, { "docid": "5ccd91f1535da4e4675a870f53401020", "score": "0.5588902", "text": "@Override\n\tpublic Couleurs getCell(int i, int j) {\n\t\tif (i < 0 || i >= getColumnsNumber()) {\n\t\t\treturn null;\n\t\t}\n\t\tList<Couleurs> column = plateau.get(j);\n\t\treturn column.get(i);\n\t}", "title": "" }, { "docid": "b2ec82e296c129db82ca7b8e0d44a7ba", "score": "0.55821556", "text": "@Override\r\n\tpublic Object getValueAt(int row, int col) {\n\t\treturn ((Vector)this.rowData.get(row)).get(col);\r\n\t}", "title": "" }, { "docid": "04f50135a6d3171bce23f673bab5ba69", "score": "0.55817956", "text": "public double get(int a, int b) throws MatrixException {\n\t\tif (a > rowVar || b > colVar) {\n\t\t\tthrow new MatrixException(\"Values not in matrix bounds\");\n\t\t} else if (a < 0 || b < 0) {\n\t\t\tthrow new MatrixException(\"No negative numbers kthx\");\n\t\t} else {\n\t\t\treturn mat[a][b];\n\t\t}\n\t}", "title": "" }, { "docid": "0c7818e5624742e14e4e277be36a1d0b", "score": "0.55816865", "text": "public int getValue(int level, int row, int col){\n\t\treturn this.maze3d[level][row][col];\n\t}", "title": "" }, { "docid": "0f4858cd4a4aa800bdd2edbdfe1e3f5c", "score": "0.5577444", "text": "public MutableColor getPixel(int i, int j) {\n return pixels[i][j];\n }", "title": "" }, { "docid": "d08acb1e02898d6becc78acd50f31496", "score": "0.55691963", "text": "public Object getValueAt(int rowIndex, int columnIndex) {\n rowIndex = rowIndex*stride;\n switch(columnIndex) {\n case 0 :\n return new Double(xpoints[rowIndex]);\n case 1 :\n return new Double(re_points[rowIndex]);\n case 2 :\n return new Double(im_points[rowIndex]);\n }\n return new Double(0);\n }", "title": "" }, { "docid": "bd7f0cc6065a105fe8f29849ad73e091", "score": "0.55646855", "text": "private Pair findFirstNonzeroColumn(int i, int j){\n Pair p=new Pair(-1,j);\n int k=i;\n if (j>=rows){\n p.x=i;\n p.y=-2;\n return p;\n }\n while (elements[k][j]==0){\n if ((k+1)<rows) k++;\n else break;\n }\n if (k<rows) {\n swapRows(i, k);\n p.x=k;\n p.y=j;\n return p;\n }\n return p;\n }", "title": "" }, { "docid": "7ece34f59cb56e5146f8bb3d737c1cb9", "score": "0.5557478", "text": "public String getValueToPrint(int i, int j) {\n\t\tif(champ[i][j]) {\n\t\t\treturn \"X\";\n\t\t} else {\n\t\t\treturn Integer.toString(calculMines(i, j));\n\t\t}\n\t}", "title": "" }, { "docid": "968d8faf0380c692fdbd656632a3e926", "score": "0.5548106", "text": "public int getValue(int row, int col) {\n return tetromino.coords(orientation)[row][col];\n }", "title": "" }, { "docid": "60192b1069bfd83ea96c126547d73626", "score": "0.5534445", "text": "public Matrix colRange(int i, int j){\n\t\treturn T().rowRange(i,j).T();\n\t}", "title": "" }, { "docid": "5d55bc481fa94f47d628189cccd8e914", "score": "0.5531409", "text": "@Override\n public Object getValueAt(int row, int col) {\n return data[row][col];\n }", "title": "" }, { "docid": "22cac28c958668d3b9294c4f5a433af5", "score": "0.5515031", "text": "public boolean getMatrixInIndex(int row, int col) {\n return this.matrix[row][col];\n }", "title": "" }, { "docid": "af530d9d5833e362c1fa438e6b937137", "score": "0.55124927", "text": "public Object getValueAt(int nrow, int ncol) {\n\t\treturn data[nrow][ncol];\n\t}", "title": "" }, { "docid": "d6b98dde0ba09729160c1b867d6d65e1", "score": "0.5503305", "text": "private int I(int i, int j){ return i + (n + 2) * j; }", "title": "" }, { "docid": "54d8dbaa78b68ee5f1c952cf9fbff611", "score": "0.5497055", "text": "public static float GetValue(float[][] grid, float x, float y){\r\n\t\t\r\n\t\tint X = (int) x;\r\n\t\tint Y = (int) y;\r\n\t\tfloat fX = x - X;\r\n\t\tfloat fY = y - Y;\r\n//\t\tfloat v1 = GetOppositeValue(grid, X, Y);\r\n//\t\tfloat v2 = GetOppositeValue(grid, X + 1, Y);\r\n//\t\tfloat v3 = GetOppositeValue(grid, X, Y + 1);\r\n//\t\tfloat v4 = GetOppositeValue(grid, X + 1, Y + 1);\r\n\t\tfloat v1 = grid[X][Y];\r\n\t\tfloat v2 = grid[X + 1][Y];\r\n\t\tfloat v3 = grid[X][Y + 1];\r\n\t\tfloat v4 = grid[X + 1][Y + 1];\r\n\t\tfloat i1 = Interpolate(v1, v2, fX);\r\n\t\tfloat i2 = Interpolate(v3, v4, fX);\r\n\t\treturn Interpolate(i1, i2, fY);\r\n\t\t\r\n\t}", "title": "" }, { "docid": "a526b6b3a950de2c600c969078c40a17", "score": "0.5485455", "text": "public static int[][] getMatrix(BufferedImage img)\n {\n int height=img.getHeight();\n int width=img.getWidth();\n int[][] matrix=new int[height][width];\n for(int y=0;y<=height-1;y++)\n {\n for(int x=0;x<=width-1;x++)\n {\n int pixel=img.getRGB(x, y);\n int red=red(pixel);\n if(isOdd(red))\n matrix[y][x]=1;\n }\n }\n return matrix;\n }", "title": "" }, { "docid": "fd935f9c976f7a02098be94cfdbbf7c7", "score": "0.54812723", "text": "public Object getValueAt(int row, int column) {\n\t\tswitch (column) {\n\t\tcase 0:\n\t\t\treturn variables[row];\n\t\tcase 1:\n\t\t\treturn firstSets[row];\n\t\tcase 2:\n\t\t\treturn followSets[row];\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "6e9e4e8644780b1f58d840c052b79f29", "score": "0.547774", "text": "public Object getValueAt( int row, int column );", "title": "" }, { "docid": "19fa342e4c4cea415a74e5567002890e", "score": "0.54673964", "text": "public Celda getCelda(int x, int y) {\r\n return miMatriz[x][y];\r\n }", "title": "" }, { "docid": "83607f689c2ebea7280b2ddf926738d3", "score": "0.5466948", "text": "public double[] findMaxInMatrixLocal() {\n int x = -1;\n int y = -1;\n double maxValue = Double.NEGATIVE_INFINITY;\n for (int i = 0; i <= xSize; i++) {\n for (int j = 0; j <= ySize; j++) {\n if (matrixA[i][j] > maxValue) {\n x = i;\n y = j;\n maxValue = matrixA[i][j];\n }\n }\n }\n // System.out.println(\"Found max: \" + maxValue);\n assert (x >= 0 && y >= 0 && maxValue > Double.NEGATIVE_INFINITY);\n return new double[]{x, y, maxValue};\n }", "title": "" }, { "docid": "b7e9e708cc5a170f3ef9d22a63745b72", "score": "0.5456858", "text": "public abstract double getValueFromImagePixel(int pixel, BufferedImage image);", "title": "" }, { "docid": "f1d1a958d8a11279b1109fdc9a7098e9", "score": "0.5456826", "text": "public Tile getTile(int i, int j){\n return board[i][j];\n }", "title": "" }, { "docid": "a32ca9e9754de45ec570dce37f339a6f", "score": "0.54542226", "text": "public abstract double getValue(GriddedTile griddedTile,\n TileRow tileRow, int x, int y);", "title": "" }, { "docid": "ed61b1d0bfecb83af18a7f58bdf6b535", "score": "0.54536206", "text": "public int getElementAt(int row, int column)\n\t{\n\t\treturn rows.get(row).getValues()[column];\n\t}", "title": "" }, { "docid": "c99704bf9e95495695b4134465d6bfef", "score": "0.54458624", "text": "public void productoEscalar(int x){\n int [][] matriz=this.getMatriz();\n int producto=0;\n for (int i=0;i<matriz.length ;i++ ) {\n for (int j=0;j<matriz[i].length ;j++) {\n producto=matriz[i][j]*x;\n matriz[i][j]=producto;\n }\n }\n\n}", "title": "" }, { "docid": "8d9098341f2f8251090996cfdd2d3234", "score": "0.5431765", "text": "public int tileAt(int i, int j){\n if(i < 0 || i>this.size()-1 || j <0 || j>this.size()-1){ throw new java.lang.IndexOutOfBoundsException(\"i and j not within range\"); }\n\n if (tilec[i][j] != 0) { // 0 is blank\n return tilec[i][j];\n }\n else return 0;\n }", "title": "" } ]
b49d51cacf345a781af90a0882f4b0ea
initialize input vector with values from the input vector
[ { "docid": "abbcca0d3e0d44928ca8aacb3c83808c", "score": "0.7303142", "text": "private void initializeInputUnitsWithVector(List<Integer> inputVector) {\n// Assert.that(inputVector.size() == inputUnits.size(), \"Mismatch of input units (#\" + inputUnits.size() + \") and input vector \" + inputVector);\n for (int i = 0; i < inputUnits.size(); i++) {\n inputUnits.get(i).init(inputVector.get(i));\n }\n }", "title": "" } ]
[ { "docid": "290f5d28459520d33878b43594b49901", "score": "0.6433738", "text": "public synchronized void setInputVector(RealVector inputValue) {\r\n\t\t// set a copy of the specified value to protect\r\n\t\t// against unexpected modification\r\n\t\tthis.input = inputValue.copy();\r\n\t}", "title": "" }, { "docid": "16e2138c9ccf96f523d6ecca41a31fc3", "score": "0.6206765", "text": "public Vector() {\n this.elements = new double[4];\n for (int i = 0; i < 4; i++){\n this.elements[i] = 0;\n } //for\n }", "title": "" }, { "docid": "8683d2503b8b4287f1135780d7bb7a1a", "score": "0.6166", "text": "private void initializeVector() {\n\t\t\tfor(Node n : nodes) {//I iterate through all the nodes\n\t\t\t\tn.initialise(destinations);\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "ba1ca4279f807b2e48191fc42b037376", "score": "0.6112033", "text": "public Vector(double[] vector)\n {\n this.ListaDouble = vector;\n this.dimenciones = this.ListaDouble.length;\n }", "title": "" }, { "docid": "8c6999e3a935c8a869efdd683e4b37c5", "score": "0.60754156", "text": "public VersionVector()\n\t{\n\t\tvector = new HashMap<Integer, Long>();\n\t}", "title": "" }, { "docid": "4f15e2512341df61f66ffd221b410057", "score": "0.6035963", "text": "public Vector() {\r\n\t\t\r\n\t\tlung = 0;\r\n\t\tvect = new Natural[max_dim];\r\n\t}", "title": "" }, { "docid": "18b8c5eda6e67b9d2854ddeea58c8761", "score": "0.59906316", "text": "public Vector()\n\t{\n\t\tthis(0, 0, 0);\n\t}", "title": "" }, { "docid": "890b6e88959b60ad4b4ee409fe31e09c", "score": "0.5933583", "text": "public Vector(double[] a) {\n\t\t// Update the data structures\n\t\tv = a.clone();\n\t\tlen = v.length;\n\t}", "title": "" }, { "docid": "ce7ac6e58f919e91b9c51451f97f9393", "score": "0.5932253", "text": "void setVelocity(Vector _v) { \n\t\t v = new Vector(_v); \n\t}", "title": "" }, { "docid": "8b5bc3869375b08552c9138a21d21105", "score": "0.58711964", "text": "public Vector(int initialCapacity, int capacityIncr, E initValue)\n {\n Assert.pre(initialCapacity >= 0, \"Nonnegative capacity.\");\n capacityIncrement = capacityIncr;\n elementData = new Object[initialCapacity];\n elementCount = 0;\n initialValue = initValue;\n }", "title": "" }, { "docid": "76f75d48a93ec0eef7e70d99455ebcb4", "score": "0.5845313", "text": "public Vector(int initialCapacity)\n {\n Assert.pre(initialCapacity >= 0,\"Capacity must not be negative\");\n elementData = new Object[initialCapacity];\n elementCount = 0;\n capacityIncrement = 0;\n initialValue = null;\n }", "title": "" }, { "docid": "1ec111bdb422bd69b157c5c98aeddf6b", "score": "0.5809664", "text": "public void Init(double theInitialValue) {\n OCCwrapJavaJNI.math_Vector_Init(swigCPtr, this, theInitialValue);\n }", "title": "" }, { "docid": "e9ae680b8f8f3aaa6d4f6dbfc93fee04", "score": "0.57982236", "text": "public Vector(int len) {\n\t\t// Update the data structures\n\t\tv = new double[len];\n\t\tthis.len = len;\n\t}", "title": "" }, { "docid": "6ed3a2b517538a57f7b0d8084fc690a4", "score": "0.57632864", "text": "@Override\n\t\tpublic Vector call(Vector arg0, Vector arg1) throws Exception {\n\t\t\treturn new DenseVector(AutoencoderLinAlgebra.VVA(arg0,arg1)); \n\t\t}", "title": "" }, { "docid": "1a6845d97f3b387cbba604997068e363", "score": "0.57487255", "text": "public Vector()\n {\n this(defaultCapacity); // call one-parameter constructor\n }", "title": "" }, { "docid": "6afd96f8a708d439892223edf9e4fb4a", "score": "0.573943", "text": "public math_Vector(int theLower, int theUpper, double theInitialValue) {\n this(OCCwrapJavaJNI.new_math_Vector__SWIG_1(theLower, theUpper, theInitialValue), true);\n }", "title": "" }, { "docid": "cc0f8f32e1ad3891e6bd1c42accd6dea", "score": "0.5714026", "text": "public VectorSet(IVectorSet values) {\n if (values != null) {\n for (int i = 0; i < values.getCount(); i++) {\n add(values.getVector(i));\n }\n }\n }", "title": "" }, { "docid": "e0b3da6ac3024639fb1f9f595044590d", "score": "0.56888044", "text": "public Vector(int initialCapacity, int capacityIncr)\n {\n Assert.pre(initialCapacity >= 0, \"Capacity must not be negative.\");\n Assert.pre(capacityIncr >= 0, \"The capacity increment must be 0,\"+\n \" for doubling, or positive for incremental growth.\");\n elementData = new Object[initialCapacity];\n elementCount = 0;\n capacityIncrement = capacityIncr;\n initialValue = null;\n }", "title": "" }, { "docid": "1334393db987a84908f2ed914cc579ad", "score": "0.5688595", "text": "public Vector(Vector vector) {\n this.head = new Point3D(vector.getHead());\n }", "title": "" }, { "docid": "43cafabfe54c41309cbced5a330dda66", "score": "0.5650469", "text": "public static void main(String[] args) {\n\t\tArrayList <Integer> a1 = new ArrayList <Integer> ();\n\t\tScanner sc = new Scanner(System.in);\n\t\tSystem.out.print(\"Enter list size: \");\n\t\tint size = sc.nextInt();\n\t\tSystem.out.print(\"Enter numbers: \");\n\t\tfor(int i=0; i<size; i++)\n\t\t{\n\t\t\tint n = sc.nextInt();\n\t\t\ta1.add(n);\n\t\t}\n\t\tsc.close();\n\t\tVector<Integer> vector = new Vector<Integer>(a1);\n\t\tSystem.out.println(\" Coverted Vector From List: \" + vector);\n\t}", "title": "" }, { "docid": "253614b505b8d45ef02933d9c88a817c", "score": "0.56493425", "text": "public static Vector<Double> singleValueVector (double val) {\n Vector<Double> vec = new Vector<>(1);\n vec.set(0, val);\n return vec;\n }", "title": "" }, { "docid": "ce89348a61cd416f179748b985d4e592", "score": "0.56482315", "text": "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n Vector<Double> myVector = new Vector<Double>(50);\n\n double input = 0.0;\n\n do {\n input = sc.nextDouble();\n if (input == 0) {\n break;\n } else {\n myVector.add(input);\n }\n }\n while (input != 0);\n sc.close();\n\n System.out.println(\"Unsorted vector: \" + myVector);\n Collections.sort(myVector);\n System.out.println(\"Sorted vector: \" + myVector);\n\n }", "title": "" }, { "docid": "2442150fff8292259bc3cbde48b67018", "score": "0.5630159", "text": "public Vector(double... elements) {\n this.elements = elements;\n }", "title": "" }, { "docid": "f649b563c4724caaf26b9fe9d105319a", "score": "0.56275874", "text": "public void setVec(float[] vec) {\n this.vec = vec;\n }", "title": "" }, { "docid": "085fc4159b0c927693689927c8ecb056", "score": "0.5612852", "text": "private TFIDFVector(Map<String, Double> vector) {\n\t\tsuper();\n\t\tthis.vector = vector;\n\t}", "title": "" }, { "docid": "9593f382d4bc18d2da474da6759a4933", "score": "0.5608249", "text": "SparseVector(int[] nums) {\n map = new HashMap<>();\n // Store the position and value of non-zero values.\n for (int i = 0; i < nums.length; ++i) {\n if (nums[i] != 0) {\n map.put(i, nums[i]);\n }\n }\n }", "title": "" }, { "docid": "234367a0fce19c3e6b3119c28b302cc1", "score": "0.5603828", "text": "public List() {\n v = new Vector(0,INCREMENT);\n }", "title": "" }, { "docid": "16a0738da9ed89a7653548124910df0a", "score": "0.5602337", "text": "public Vector(int x, int y, int z, int h) {\n this.elements = new double[4];\n this.set(0, x);\n this.set(1, y);\n this.set(2, z);\n this.set(3, h);\n }", "title": "" }, { "docid": "44a703344ef74c0076813c35a685d1d2", "score": "0.56008786", "text": "IntIntVector copy();", "title": "" }, { "docid": "27beec5d7164e10f83aa1495230e7bd2", "score": "0.55758476", "text": "public static void main(String[] args)\n\t{and it will increment by 10 when it over filled\n//\tVector vector = new Vector();\n\t\n\t//it creates the vector of 5 and it will increment by 5 when it over filled\n//\tVector vector = new Vector(5);\\\n\t\n\t//it creates the vector of 5 and it will increment by 3 when it over filled\n\t//Vector vector = new Vector(5,3);\n\t\n\t\n\t\n\t//it creates the vector of 10 \n\tVector vector = new Vector();\n\t\n\tvector.add(\"A\");\n\tvector.add(\"A\");\n\tvector.add(\"A\");\n\tvector.add(\"A\");\n\tvector.add(\"A\");\n\tvector.add(\"A\");\n\tvector.add(\"A\");\n\tvector.add(\"A\");\n\tvector.add(\"A\");\n\tvector.add(\"A\");\n\t\n\tSystem.out.println(\"No of elments in the elment : \"+vector.size());\n\tSystem.out.println(\"Capacity of the vector is \"+vector.capacity());\n\tSystem.out.println(\"Val stored in the vector : \"+vector);\n\tSystem.out.println();\n\t\n\tvector.add(\"A\");\n\t\n\tSystem.out.println(\"No of elments in the elment : \"+vector.size());\n\tSystem.out.println(\"Capacity of the vector is \"+vector.capacity());\n\tSystem.out.println(\"Val stored in the vector : \"+vector);\n\tSystem.out.println();\n\t\n\tvector.trimToSize();System.out.println(\"After triming....\");\n\tSystem.out.println(\"No of elments in the elment : \"+vector.size());\n\tSystem.out.println(\"Capacity of the vector is \"+vector.capacity());\n\tSystem.out.println(\"Val stored in the vector : \"+vector);\n\n\t}", "title": "" }, { "docid": "3e8f53922551b3c92877b56a4c96ace4", "score": "0.5572184", "text": "public void set(Vector v) {\n if (v == null) {\n return;\n }\n\n set(v.x, v.y, v.z);\n }", "title": "" }, { "docid": "3f2acfa6ad67405700d6701d095c318d", "score": "0.55374306", "text": "@Category({CategoryImportantProductTest.class})\r\n\t@Test\r\n\tpublic void testConstructorWithVectorReference() throws NullSalesReferenceExpcetion, InvalidSalesValuesException, SalesVectorOutOfBoundException {\r\n\t\tArrayList<Integer> initialSales = new ArrayList<>(Arrays.asList(800,999,10));\r\n\t\tproductWithSales.setSales(initialSales);\r\n\t\t\r\n\t\tArrayList<Integer> weeklySales = new ArrayList<>();\r\n\t\tfor(int i = 0; i < productWithSales.getNoSales(); i ++) {\r\n\t\t\tweeklySales.add(productWithSales.getSoldItems(i));\r\n\t\t}\r\n\t\t\r\n\t\t//change a value in the external collection\r\n\t\tinitialSales.set(0, 50);\r\n\t\t\r\n\t\tfor(int i = 0; i < productWithSales.getNoSales(); i++) {\r\n\t\t\tassertEquals((int)weeklySales.get(i),\r\n\t\t\t\t\tproductWithSales.getSoldItems(i));\r\n\t\t}\r\n\t\r\n\t}", "title": "" }, { "docid": "c7dec50f089aa2bde881ef59083a030b", "score": "0.55311936", "text": "public Vector(Natural n) {\r\n\t\t\r\n\t\tlung=1;\r\n\t\tvect=new Natural[1];\r\n\t\tvect[0]=n;\r\n\t}", "title": "" }, { "docid": "c5ef084e52e6f2cf895b0583fb9174dc", "score": "0.551943", "text": "public void zeroVector() {\n super.zeroVector();\n groupIndexBuf.setZero(0, groupIndexBuf.capacity());\n overflowBuf.setZero(0, overflowBuf.capacity());\n head = 0;\n }", "title": "" }, { "docid": "05c4356f6fc6ad476e0d6d416c9dce6a", "score": "0.5518265", "text": "public VectorSet(IVector[] values) {\n super(values);\n }", "title": "" }, { "docid": "e298284e85806c3149ffca073a02c75e", "score": "0.55066615", "text": "public GenericVector(){\n\t\tvectorList = new ArrayList<E>();\n\t}", "title": "" }, { "docid": "95c4b39dbc1c6b6f52a3af8fab945728", "score": "0.54935884", "text": "public static void volteaArrayInt(int[] vector) {\n int[] vector2 = new int[0];\n for (int i = vector.length - 1; i >= 0; i--) {\n vector2 = Arrays.copyOf(vector2, vector2.length + 1);/* decimos el vector que quermos copiar y le damos una nueva longitud asignandoselo al\n vector original*/\n vector2[vector2.length - 1] = vector[i];\n }\n\n for (int i = 0; i < vector.length; i++) {\n vector[i] = vector2[i];\n }\n }", "title": "" }, { "docid": "a9724f04777fba6e0125eb450eb6084f", "score": "0.5461782", "text": "public void set(Vector v) {\n\t\tx = v.x;\n\t\ty = v.y;\n\t\tz = v.z;\n\t}", "title": "" }, { "docid": "85ddc35c5b9229c084f78171651a916c", "score": "0.5442716", "text": "@SuppressWarnings({\"UseOfObsoleteCollectionType\"})\n private <T> Vector<T> adjustNull(final Vector<T> s) {\n return s == null ? new Vector<>() : s;\n }", "title": "" }, { "docid": "79764575fc6a07146b5586e62f93195d", "score": "0.54330456", "text": "public void setParameters(Vector v) { \n if (v != null) parms = (Vector)v.clone();\n else parms = null;\n }", "title": "" }, { "docid": "5d4f32a71b582bc0aacb63123222541b", "score": "0.5417121", "text": "public void setM_vector(java.util.ArrayList m_vector) {\n this.m_vector = m_vector;\n }", "title": "" }, { "docid": "e09317e571f08b88b2f1db1eb9241ebc", "score": "0.54050356", "text": "io.opencannabis.schema.crypto.primitives.InitializationVector getVector();", "title": "" }, { "docid": "490d077f53a3f667afabbf53f9036344", "score": "0.54033387", "text": "public Vector(int n) {\r\n\t\tthis.size = n;\r\n\t\tarray = new double[n];\r\n\t\tcurrPtr = 0;\r\n\t}", "title": "" }, { "docid": "e304aa0231c3f5d56e0968fa346d941d", "score": "0.54015374", "text": "public WordVec(int vecsize) {\n vec = new double[vecsize];\n }", "title": "" }, { "docid": "5c2f8fea7a373f4c7fba4819614973d9", "score": "0.53929955", "text": "private void testVector() {\n\t\tVector<String> vScoreStrings = new Vector<String>();\n\t\tvScoreStrings.add(\"aaa\");\n\t\tvScoreStrings.add(\"bbb\");\n\t\tvScoreStrings.add(\"ccc\");\n\t\tfor (int i = 0; i < vScoreStrings.size(); i++) {\n\t\t\tSystem.out.println(vScoreStrings.get(i) + \" \");\n\t\t}\n\t\tvScoreStrings.set(1, \"fgf\");\n\t\tvScoreStrings.remove(0);\n\n\t\tfor (int i = 0; i < vScoreStrings.size(); i++) {\n\t\t\tSystem.out.println(vScoreStrings.get(i) + \" \");\n\t\t}\n\t}", "title": "" }, { "docid": "5d42d532af6116e28564d06d23b94da9", "score": "0.5390916", "text": "private void createInitialMarkingVector() {\n\t\tint placeSize = placesArray.size();\n\n\t\tinitialMarkingVector = new int[placeSize];\n\t\tfor (int placeNo = 0; placeNo < placeSize; placeNo++) {\n\t\t\tinitialMarkingVector[placeNo] = ((Place) placesArray.get(placeNo))\n\t\t\t\t\t.getInitialMarking();\n\t\t}\n\t}", "title": "" }, { "docid": "c9b70238eebf7917c89cb445799c8be4", "score": "0.53894836", "text": "public synchronized RealVector getInputVector() {\r\n\t\t// return copy of input vector to protect \r\n\t\t// against unexpected modification\r\n\t\treturn input.copy();\r\n\t}", "title": "" }, { "docid": "653841d7864ef9df620328c1b0c41007", "score": "0.53874624", "text": "public void setValues(Variable v, int npts, double start, double incr) {\n if (npts != v.getSize())\n throw new IllegalArgumentException(\"bad npts = \" + npts + \" should be \" + v.getSize());\n Array data = Array.makeArray(v.getDataType(), npts, start, incr);\n if (v.getRank() > 1)\n data = data.reshape(v.getShape());\n v.setCachedData(data, true);\n }", "title": "" }, { "docid": "10eb0c32c56691e7fd847af42310387f", "score": "0.53859764", "text": "public TranslitList() {\n this.vec = new Vector();\n }", "title": "" }, { "docid": "62f9927c3983b6b44d7fc659d4485efe", "score": "0.53834724", "text": "private void initBitVector(int pCapacity) {\n int arraySize = Math.floorDiv(pCapacity, 4 * 8) + 1;\n data = new int[arraySize];\n }", "title": "" }, { "docid": "e090123a0802c74709d9512f2145b304", "score": "0.5375377", "text": "public BitVector(){\n size = 1;\n array = new int[size];\n }", "title": "" }, { "docid": "a0a13997d7d5921c0b9edbaee134c80f", "score": "0.53703123", "text": "public Vector(double x, double y)\n {\n this.dimenciones = 2;\n this.ListaDouble =new double[this.dimenciones];\n this.ListaDouble[0]= x;\n this.ListaDouble[1]= y;\n \n }", "title": "" }, { "docid": "48d986798b607a5c1704351c2e995191", "score": "0.5364598", "text": "public Vector(float x, float y, float z) {\n set(x, y, z);\n }", "title": "" }, { "docid": "0bdf47d1f5dbb8db01ff91d3c806ea68", "score": "0.5349247", "text": "public Vector() {\n\n\t\tthis.objects = new String[DEFAULT_SIZE];\n\t\tthis.size = 10;\n\t}", "title": "" }, { "docid": "a0ca2b5e6df4f055dd3394be47c1bd98", "score": "0.53467387", "text": "public void setValues(double... v)\n {\n for (int i = 0; i < v.length; i++)\n {\n int rowNum = i / cols;\n int colNum = i % cols;\n values[rowNum][colNum] = v[i];\n }\n }", "title": "" }, { "docid": "76bd383b9e10bdfc351e64fcf3c1ae3e", "score": "0.5345987", "text": "public static void main(String[] args){\n Vector<Integer> vector = new Vector<Integer>(3);\n //Printing Current Capacity of Vector\n System.out.println(vector.capacity()); //Output : 3\n //Adding 4 elements (greater than the capacity) to vector\n vector.add(10);\n vector.add(20);\n vector.add(30);\n vector.add(40);\n //again Printing Current Capacity of Vector\n System.out.println(vector.capacity()); //Output : 6\n \n //Setting the size of vector as 10.\n vector.setSize(10);\n //Now retrieving the current size of vector\n System.out.println(vector.size()); //Output : 10\n //Printing the elements of vector. notice that 6 null elements are inserted\n System.out.println(vector); //Output : [10, 20, 30, 40, null, null, null, null, null, null]\n //Again changing the size of vector to 3\n vector.setSize(3);\n //Printing the elements of vector. notice that extra elements are removed.\n System.out.println(vector); //Output : [10, 20, 30]\n \n //Getting Enumeration object\n Enumeration<Integer> en = vector.elements();\n //traversing elements of Vector using Enumeration\n while (en.hasMoreElements()){\n System.out.println(en.nextElement());\n }\n \n //Getting first element\n System.out.println(vector.firstElement()); //Output : 10\n //Getting last element\n System.out.println(vector.lastElement()); //Output : 40\n }", "title": "" }, { "docid": "099a2bf231c2fa011f5447afffea38bc", "score": "0.533766", "text": "public void set(double vector[]) {\n lat=vector[LATITUDE];\n lon=vector[LONGITUDE];\n rad=vector[RADIUS];\n }", "title": "" }, { "docid": "4a106dbafa322127acf746c20f00449a", "score": "0.5334194", "text": "public ReadOnlyAttributes(Vector v)\n {\n attributes = v;\n }", "title": "" }, { "docid": "1676fe19acc39b883cda15f9d48d0c5d", "score": "0.5331373", "text": "public Vector vectorTo(Vector p) {\n\t\treturn new Vector(p.x-x, p.y-y, p.z-z);\n\t}", "title": "" }, { "docid": "c5ada4596261ab57c2247963ddf2e30e", "score": "0.53278476", "text": "public Vector(double[] obj) {\r\n\t\tthis.size = obj.length;\r\n\t\tthis.array = obj;\r\n\t\tthis.currPtr = size;\r\n\t}", "title": "" }, { "docid": "7f17f895f4816bd10ff30963bf146403", "score": "0.5325805", "text": "IBitVectorIterator(IBitVector iBitVector){\n integers = ((BitVector)iBitVector).array.clone();\n cnt = 0;\n }", "title": "" }, { "docid": "adc4def618d83e47d3fccc35c8165dbc", "score": "0.5324575", "text": "public void vectorToSelf(Vector p) {\n\t\tx = p.x-x;\n\t\ty = p.y-y;\n\t\tz = p.z-z;\n\t}", "title": "" }, { "docid": "5d015dd2ddabd89c0ad4cf69eebbc166", "score": "0.5323337", "text": "public void setVector(Vector vector) {\n\t \tthis.vector = vector;\n\t\t inputI.setText(String.valueOf(vector.getI()));\n\t\t inputJ.setText(String.valueOf(vector.getJ()));\n\t\t inputK.setText(String.valueOf(vector.getK()));\n\t }", "title": "" }, { "docid": "fd041cb26a944853ac4706823e83edbf", "score": "0.5319731", "text": "public LinearSumChromaVector() {}", "title": "" }, { "docid": "42b0f1e74450420c155b44ea808ec1ce", "score": "0.53076625", "text": "public Vector(int dimension) {\n this.elements = new double[dimension];\n }", "title": "" }, { "docid": "3f6d36f56247f7f47b601a8627d426e9", "score": "0.5285601", "text": "Matrix setRowVector(Vector v, int n);", "title": "" }, { "docid": "13ea05ca59a64e7c75fe03e913a4435a", "score": "0.52635825", "text": "public void instantiateVectors() {\n Point2D.Double firstDerivative = CURVE.calculateTangent(u);\n Point2D.Double secondDerivative;\n Point2D.Double curvature;\n\n double length;\n length = Point2D.distance(firstDerivative.x, firstDerivative.y, 0, 0);\n double x = TANGENT_LENGTH * firstDerivative.x / length;\n double y = TANGENT_LENGTH * firstDerivative.y / length;\n tangentVector = new Point2D.Double(x, y);\n\n secondDerivative = CURVE.calculateSecondDerivative(u);\n curvature = determineCurvature(firstDerivative, secondDerivative);\n length = Point2D.distance(curvature.x, curvature.y, 0, 0);\n x = CURVATURE_LENGTH * curvature.x / length;\n y = CURVATURE_LENGTH * curvature.y / length;\n curvatureVector = new Point2D.Double(x, y);\n }", "title": "" }, { "docid": "ba5e91e256025603bac6f2f9ea195c1c", "score": "0.5258255", "text": "public Vector3d(final Vector3d v) {\n a = new double[LENGTH];\n a[0] = v.a[0];\n a[1] = v.a[1];\n a[2] = v.a[2];\n }", "title": "" }, { "docid": "2c9af21c432beca8afafadf2d5af2faa", "score": "0.5253155", "text": "public math_Vector Initialized( math_Vector theOther) {\n math_Vector ret = new math_Vector(OCCwrapJavaJNI.math_Vector_Initialized(swigCPtr, this, math_Vector.getCPtr(theOther), theOther), false, this);\n return ret;\n }", "title": "" }, { "docid": "b113ff519cdacce5b824cd1b595c4119", "score": "0.5251067", "text": "BitVector(int capacity) {\n setCapacity(capacity);\n initBitVector(getCapacity());\n }", "title": "" }, { "docid": "74b8a54eb00f61d7a222d1b4eb391bc1", "score": "0.52461874", "text": "public Vector()\n {\n head=new Point3D(1,0,0);\n }", "title": "" }, { "docid": "ccf9313c1c4532ea0533dec62dc96493", "score": "0.52323204", "text": "public math_Vector(int theLower, int theUpper) {\n this(OCCwrapJavaJNI.new_math_Vector__SWIG_0(theLower, theUpper), true);\n }", "title": "" }, { "docid": "571c85c58d3a30a1273552109ad7adf0", "score": "0.52312315", "text": "public static void fill_array (double[] x, double v) {\n\t\tArrays.fill (x, v);\n\t\treturn;\n\t}", "title": "" }, { "docid": "56c69adc403c8302be9f1b44a8d60237", "score": "0.5225907", "text": "private void initialise() {\n\t\tsetIdentifier(\"\");\n\t\tsetIV(new int[0]);\n\t\tsetOutput(0);\n\t}", "title": "" }, { "docid": "a0e3fb1193831a2b09b7b09693e8ac9b", "score": "0.5218361", "text": "public abstract Vector prefix(double v);", "title": "" }, { "docid": "0be0c75b13fc8f2febc0e4a22eaf09f8", "score": "0.521029", "text": "public VectorSet() {\n super();\n }", "title": "" }, { "docid": "b2295804ebb50ceac4160702b74b5a7f", "score": "0.5206374", "text": "io.opencannabis.schema.crypto.primitives.InitializationVectorOrBuilder getVectorOrBuilder();", "title": "" }, { "docid": "5944a6095c8c50bba6eba58b74efc028", "score": "0.51885504", "text": "public Vector(float[] f){\n\t\t\n\t\tif(f.length > 3 || f.length < 3)throw new IllegalArgumentException();\n\t\t\n\t\tthis.x = f[0];\n\t\tthis.y = f[1];\n\t\tthis.z = f[2];\n\t}", "title": "" }, { "docid": "a714fd7d0ce50c4151bacac98a996db9", "score": "0.51883274", "text": "Matrix setRowVector(double[] v, int n);", "title": "" }, { "docid": "c59edeaeff2e459c5f2fe896a995a076", "score": "0.5179603", "text": "public abstract Vector append(double v);", "title": "" }, { "docid": "5975ab0865a4f4c053ab264784db434d", "score": "0.51764923", "text": "@Override\n public Vector ZERO();", "title": "" }, { "docid": "1e7101cf2eaebacbf2f38f45d0c1e1fd", "score": "0.5171838", "text": "public Vector(double x, double y, double z)\n\t{\n\t\tthis.x = x;\n\t\tthis.y = y;\n\t\tthis.z = z;\n\t}", "title": "" }, { "docid": "f33c3aadd8dc4bf0d4a8756caa45ff21", "score": "0.5171232", "text": "Vector2D(final Vector2D vector)\n {\n set(vector.getX(),vector.getY());\n }", "title": "" }, { "docid": "8d3217516dff0a43800b9920576446b2", "score": "0.51687634", "text": "protected void updateVectors() {\n\t}", "title": "" }, { "docid": "324827d6325e511c0e9a9df26858d6f5", "score": "0.5155204", "text": "public IntVector(int x, int y) {\n\t\tthis.x = x;\n\t\tthis.y = y;\n\t}", "title": "" }, { "docid": "ba03dbac882f057c90d4c582563cde7a", "score": "0.51490295", "text": "public Vector normalize(){\n div(size());\n return new Vector(head);\n }", "title": "" }, { "docid": "3d33909209e5c0ece58fbae3aa9067e4", "score": "0.5139966", "text": "public RandomAccessSparseVector() {\n }", "title": "" }, { "docid": "88324221a2bc84b8b7e8f59a54cef8ea", "score": "0.5136103", "text": "public ProductVectorer() {\n }", "title": "" }, { "docid": "8eb11ec9a32614042f90fe615c94dae4", "score": "0.51329154", "text": "public ColumnCompressedVector() {\r\n this.values = new ArrayList<Double>();\r\n this.rowIndex = new ArrayList<Integer>();\r\n this.sb = new SparseBitVector();\r\n }", "title": "" }, { "docid": "6278aee81e722417ebf2e1a7c380c29e", "score": "0.5129882", "text": "public static IVector defaultVector(int dimension) {\r\n\t\treturn new Vector(dimension);\r\n\t}", "title": "" }, { "docid": "da31f280556d2ad7dc4aac241b1b40e6", "score": "0.5127331", "text": "public static SparseIndexedVector create(AVector source) {\n \t\tint vlen = source.length();\n \t\tint len=0;\n \t\tfor (int i=0; i<vlen; i++) {\n \t\t\tif (source.get(i)!=0.0) len++;\n \t\t}\n \t\tint[] indexes=new int[len];\n \t\tdouble[] vals=new double[len];\n \t\tint pos=0;\n \t\tfor (int i=0; i<vlen; i++) {\n \t\t\tdouble v=source.get(i);\n \t\t\tif (v!=0.0) {\n \t\t\t\tindexes[pos]=i;\n \t\t\t\tvals[pos]=v;\n \t\t\t\tpos++;\n \t\t\t}\n \t\t}\n \t\treturn wrap(vlen,Index.wrap(indexes),vals);\n \t}", "title": "" }, { "docid": "49820e346edc4744567cb334134996b0", "score": "0.51243174", "text": "private static double[] initializePageRankVector(int numNodes,\n PageRankInitValue initValueType) {\n double[] pageRank = new double[numNodes];\n Arrays.fill(pageRank, initValueType.getValue(numNodes));\n return pageRank;\n }", "title": "" }, { "docid": "a7384b96c9d045d2df5196a676abb036", "score": "0.5121839", "text": "VectorType createVectorType();", "title": "" }, { "docid": "22ba4f81cde9c3eb5f8f68687b07d804", "score": "0.51122713", "text": "@Override\n\tpublic void initializeArray(double[] values) {\n\t\tfor (int i = 0; i < values.length; i++){\n\t\t\tvalues[i] = i * i * i;\n\t}\n\t}", "title": "" }, { "docid": "b90834c518f3109ea81c47177d20cebe", "score": "0.5107771", "text": "public math_Vector( long theTab, int theLower, int theUpper) {\n this(OCCwrapJavaJNI.new_math_Vector__SWIG_2( theTab , theLower, theUpper), true);\n }", "title": "" }, { "docid": "e648b4eb4355be03ee5fb9e7119b0b0f", "score": "0.5100951", "text": "public Vec2d(Vec2d vec) {\r\n\t\tx = vec.x;\r\n\t\ty = vec.y;\r\n\t}", "title": "" }, { "docid": "eefa97f738ab67cff329a15bca8034d8", "score": "0.50859153", "text": "private static Vector getVector(int[] cordinate) {\n\t\tdouble cordinateArray[] = new double[cordinate.length];\n\t\tfor (int i = 0; i < cordinate.length; i++) {\n\t\t\tcordinateArray[i] = cordinate[i];\n\t\t}\n\t\treturn new Vector(cordinateArray);\n\t}", "title": "" }, { "docid": "d0b78751d366c50f9d16448e275fa6f1", "score": "0.5082423", "text": "@Override\n\tpublic GenericVector<E> resta(GenericVector<E> vector) {\n\t\tGenericVector<E> result = new GenericVector<E>(getDimen());\t\n\t\tfor (int i = 0; i < getDimen(); i++){\n\t\t\tresult.addValue(\n\t\t\t\t\tgetValue(i).resta(vector.getValue(i))\n\t\t\t);\n\t\t}\n\t\treturn result;\n\t}", "title": "" }, { "docid": "22468a8cb8444b8bb7d60776c3e984b0", "score": "0.5074577", "text": "public void setInput (ArrayList<String> val) {\r\n if(val == null){\r\n this.input = new ArrayList<String>();\r\n return;\r\n }\r\n if(val.size() == 0)\r\n this.input = val;\r\n else\r\n for(String s:val)\r\n addToInput(s);\r\n }", "title": "" }, { "docid": "c5e2026e376b448da08af0236f888e2b", "score": "0.5070537", "text": "public void setValues(Variable v, List<String> values) throws IllegalArgumentException {\n Array data = Array.makeArray(v.getDataType(), values);\n \n if (data.getSize() != v.getSize())\n throw new IllegalArgumentException(\"Incorrect number of values specified for the Variable \" + v.getName() +\n \" needed= \" + v.getSize() + \" given=\" + data.getSize());\n \n if (v.getRank() > 1) // dont have to reshape for rank < 2\n data = data.reshape(v.getShape());\n \n v.setCachedData(data, true);\n }", "title": "" } ]
a96a763e81a3a81561e45ec1bcabb5e5
Creates an exception of this type.
[ { "docid": "ef602f37799e6986033297439c3b96f3", "score": "0.0", "text": "public UnknownMemberNameException() {\r\n\t\tthis.meaningfulMessage = MESSAGE;\r\n\t}", "title": "" } ]
[ { "docid": "e1c29298ae460f026ea0f349b3a7bd05", "score": "0.67203736", "text": "protected abstract E createInstance(final Throwable cause);", "title": "" }, { "docid": "2070c81b79d38d064c6134ab994ebc5c", "score": "0.65147835", "text": "RuntimeException newException(Object message);", "title": "" }, { "docid": "31c66cb76f7c2942750de011f7c9e00a", "score": "0.63557535", "text": "public TypeIIException() {\n\t\tsuper(); \n\t}", "title": "" }, { "docid": "c122f16896ee024ec0a85312f93960dd", "score": "0.6350844", "text": "private Throwable() {}", "title": "" }, { "docid": "83b4fc932ea08f950e503a3088430b0d", "score": "0.62438494", "text": "public abstract void create() throws Throwable;", "title": "" }, { "docid": "8e3b4ec93fe584df429406eba7ebdcb8", "score": "0.6230757", "text": "public TestException() {\r\n\t\tsuper();\r\n\t}", "title": "" }, { "docid": "8e4c3ae268b0d372570f7f026a1241e0", "score": "0.61903614", "text": "protected abstract E createInstance(final String message,\n\t final Throwable cause);", "title": "" }, { "docid": "6cae5ec56640a32c12dd952f611579dc", "score": "0.61801773", "text": "public ApplicationException() {\n }", "title": "" }, { "docid": "d46f2798281e290377e9f08270ad10f9", "score": "0.61704195", "text": "@Test (groups = {\"s1\"})\n\tpublic void testConstructorEMAnalyticsFwkException()\n\t{\n\n\t\t new EMAnalyticsFwkException(new Exception());\n\n\t}", "title": "" }, { "docid": "e844d3a1f4276b8b84a242eb483a2023", "score": "0.61563015", "text": "public EMailException() {\r\n\t\tsuper();\r\n\t}", "title": "" }, { "docid": "f758d8257d5db534ae03d7340d9cbc32", "score": "0.6150923", "text": "public ExceptionType onException(Class exceptionType) {\n ExceptionType answer = new ExceptionType(exceptionType);\n addOutput(answer);\n return answer;\n }", "title": "" }, { "docid": "522523e2394a46a8c439c459ae8db4c8", "score": "0.6121227", "text": "public abstract Exception exception();", "title": "" }, { "docid": "c0b20f8ea77cb34081d37626b66e77f5", "score": "0.61121345", "text": "public StockTradingException() {\n\n }", "title": "" }, { "docid": "086afa35fce976ecf566e5c9e4bac0ee", "score": "0.6109827", "text": "public Error() {\n }", "title": "" }, { "docid": "07f808e30e67b38a9562ba0738d02c2c", "score": "0.6106153", "text": "protected abstract E create();", "title": "" }, { "docid": "c8d2277062ba8e672ed7876e3371265f", "score": "0.61012566", "text": "default public ConnectException makeException() {\n return new ConnectException(\"[Network] Result: Code \" + getLastResultCode() + \" - \" + NetworkInterface.ERROR_MEANINGS.get(getLastResultCode()));\n }", "title": "" }, { "docid": "fe1750c5c09294c7f998119016528022", "score": "0.60977346", "text": "public BusinessException() {}", "title": "" }, { "docid": "404f7de7421e41ddc646c1cf2e8d11d6", "score": "0.60923165", "text": "public TransportExceptionImpl() {\n }", "title": "" }, { "docid": "0ebc7810a4e5cbaa2d5fbd4ec467fbc0", "score": "0.6091642", "text": "public ValidationException() {\r\n }", "title": "" }, { "docid": "3f1fe20e3241a4c0cdcd51448ae91f76", "score": "0.604933", "text": "public FullException() {\n super();\n }", "title": "" }, { "docid": "6bb0b473c0e38a0399011389ccba9252", "score": "0.60395855", "text": "protected abstract D createDefinition(Throwable t);", "title": "" }, { "docid": "e0a85ad3bf4989a46b4852f8ab08011d", "score": "0.6027961", "text": "private ExceptionReason(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "title": "" }, { "docid": "5ec2ea53b5cb143cacada2035266bb68", "score": "0.60191196", "text": "public VotoInseridoException() {\n\t}", "title": "" }, { "docid": "9af0cc8f7366fff1d694df6fe22d910f", "score": "0.60119164", "text": "public StockTradingException(Exception t) {\n this.t = t;\n }", "title": "" }, { "docid": "cf4cb7702993c23b88098e825c721b24", "score": "0.6008807", "text": "public AppException() {\n\t}", "title": "" }, { "docid": "759ff4bd823375a890801779982ef2e9", "score": "0.60028785", "text": "public ExceptionHandling_Exception() {\r\n\t\tsuper();\r\n\r\n\t}", "title": "" }, { "docid": "6f1870332454c9cb3a916129176f700b", "score": "0.59995085", "text": "public ModifyException(ExceptionTYPE type)\n {\n\tthis.type = type;\n }", "title": "" }, { "docid": "af80fa371008d69d0c6c2acd38a003cf", "score": "0.59566665", "text": "public AbstractMVCCException() {\n super();\n }", "title": "" }, { "docid": "b4a4ee25125071a577c9fc18b6bd0393", "score": "0.5954169", "text": "private DEmbedBuilder createErrorEmbed()\n {\n exception.printStackTrace();\n String title = \"An error occurred: \" + exception.getClass().getSimpleName();\n String message;\n Color color;\n\n if (ManaphyException.class.isAssignableFrom(exception.getClass()))\n {\n message = exception.getMessage();\n color = ((ManaphyException)exception).getColor();\n }\n else if (CompletionException.class.isAssignableFrom(exception.getClass()))\n {\n message = \"A temporary issue occurred! Please wait a few minutes before trying again.\\n\\n\" +\n \"If the problem persists after a few attempts, please contact the bot owner.\";\n color = Color.YELLOW;\n }\n else\n {\n message = \"This error has been logged and will be investigated.\\n\\n\" +\n \"Please refrain from using this command until further notice.\\n\" +\n \"Thank you!\";\n color = Color.RED;\n }\n\n DEmbedBuilder builder = new DEmbedBuilder();\n\n builder.setTitle(title).setDescription(message).setColor(color);\n\n return builder;\n }", "title": "" }, { "docid": "6b93675dbdd2b877bdab516c537fc70a", "score": "0.59476346", "text": "public E create (E e);", "title": "" }, { "docid": "04763354f16b499ff218085aa8ab948c", "score": "0.5926701", "text": "public Error() {\n\t\t\n\t}", "title": "" }, { "docid": "e49b7150b81c8015a8ab564573d3c8b7", "score": "0.5924326", "text": "protected UserException() {\n super();\n }", "title": "" }, { "docid": "540c439d074107e1dd3afe0a24c9c6b5", "score": "0.59156626", "text": "public IndexException() {\n }", "title": "" }, { "docid": "f953dc6adc229cb0ca85fa453e4c4f8d", "score": "0.5900576", "text": "public LemException() {\n }", "title": "" }, { "docid": "91a0e5447495a9c3aa3b1eb4f60f66c2", "score": "0.58999497", "text": "public UncopiableException(){\r\n super(\"message\");\r\n }", "title": "" }, { "docid": "0748bdf0ed8507a24949adeb9395f9f9", "score": "0.5896422", "text": "public RpcException() {\n super();\n }", "title": "" }, { "docid": "64fe7203b5dabed254d27e2af5778add", "score": "0.5881513", "text": "public EJBQLException() {\n }", "title": "" }, { "docid": "d8511e953fab265f49c145bc057c72a5", "score": "0.58754784", "text": "private static ExceptionContext createExceptionContext() {\r\n ExceptionContext context = new ExceptionContext();\r\n context.setLocation(\"file\");\r\n context.setRootCause(new RootCause());\r\n context.setStackTrace(\"stack\");\r\n return context;\r\n }", "title": "" }, { "docid": "1e25a87d7be1e7da334a65222b66eea7", "score": "0.58746713", "text": "public ExceptionTest() {\n super(\"ExceptionTest\");\n }", "title": "" }, { "docid": "4731162aa9ca8c154dd0c013324cfd71", "score": "0.5873645", "text": "public ExceptionTriggerInternal() {}", "title": "" }, { "docid": "2a60d7dd94fba1ad83c4fdc3de7c7148", "score": "0.58642733", "text": "private AlertException() {\n\t\t}", "title": "" }, { "docid": "36dfd17526bd319a44cf2bdcdd5eb7d5", "score": "0.5838876", "text": "protected abstract E createInstance();", "title": "" }, { "docid": "49d272b7282749e102c70431a06134a4", "score": "0.5834575", "text": "@Test\n public final void testConstructorStringThrowable() {\n\tfinal E exception = createInstance(MESSAGE, CAUSE);\n\n\tassertEquals(\"Message set\", MESSAGE, exception.getMessage());\n\tassertEquals(\"Cause set\", CAUSE, exception.getCause());\n }", "title": "" }, { "docid": "320122492fb8914d5b8b4d9eb4503e26", "score": "0.58345306", "text": "public BaseException(String message) {\n this.message = message;\n args = Tuple.create(message);\n }", "title": "" }, { "docid": "24db5edc8f9c5a4e896ef12ed30cd052", "score": "0.5828495", "text": "private <T extends Throwable> void throwException(final Class<T> ex, final String message) {\n visitTypeInsn(NEW, ex.getTypeName().replace(\".\", \"/\"));\n visitInsn(DUP);\n visitLdcInsn(message);\n visitMethodInsn(INVOKESPECIAL, getInternalName(ex), \"<init>\", \"(Ljava/lang/String;)V\", false);\n visitInsn(ATHROW);\n }", "title": "" }, { "docid": "01dcec618591f72fb8f961da89b98709", "score": "0.58126837", "text": "public PersonException(int age){\r\n\t\tthis.age = age;\r\n\t}", "title": "" }, { "docid": "e9debfec84ff14bee687c91a0127f9cd", "score": "0.5793922", "text": "public AMessageException(int type) {\r\n this();\r\n this.type_erreur = type;\r\n }", "title": "" }, { "docid": "3acf5f0ee9e5ee071b10e1976fec1c97", "score": "0.5793421", "text": "public XMLException(Exception e) {\n\t\texception = e;\n\t}", "title": "" }, { "docid": "d3964cf3e6d7a89933328549a1003b39", "score": "0.57857347", "text": "protected UserException() {\n\t\tsuper();\n }", "title": "" }, { "docid": "7b800a8982f97664f6afecc629939e51", "score": "0.5784894", "text": "protected SVGException createSVGException(short type, String key, Object[] args) {\n/* 306 */ return ((SVGOMElement)SVGOMAnimatedPathData.this.element).createSVGException(type, key, args);\n/* */ }", "title": "" }, { "docid": "6d42cc73b255a89b2536cd598ac9c219", "score": "0.5771051", "text": "protected DOMException createDOMException(short type, String key, Object[] args) {\n/* 298 */ return SVGOMAnimatedPathData.this.element.createDOMException(type, key, args);\n/* */ }", "title": "" }, { "docid": "9c7372fc94b62003a8e000f8b8168d22", "score": "0.5765228", "text": "public Exception(@NotNull String str) {\n super(str);\n Intrinsics.checkNotNullParameter(str, \"message\");\n }", "title": "" }, { "docid": "8de82f7bba97584c04acbd57e5e751a5", "score": "0.57552123", "text": "public GabbleCheckedException() {\n\t}", "title": "" }, { "docid": "753ce7b9936a3fe8ba1eecde8a4e8656", "score": "0.575413", "text": "public CustomErrorType() {\n }", "title": "" }, { "docid": "21345b121b7cfcfc66477b2cd9025131", "score": "0.574558", "text": "protected SVGException createSVGException(short type, String key, Object[] args) {\n/* 499 */ return ((SVGOMElement)SVGOMAnimatedPathData.this.element).createSVGException(type, key, args);\n/* */ }", "title": "" }, { "docid": "6e95c2cc992f283fa5e8ace73d0c8dc5", "score": "0.572901", "text": "public IOXmlException() {\n super();\n }", "title": "" }, { "docid": "9e317aa303fd92590cd40b6c8e68aea7", "score": "0.57256067", "text": "protected SVGException createSVGException(short type, String key, Object[] args) {\n/* 415 */ return ((SVGOMElement)SVGOMAnimatedPathData.this.element).createSVGException(type, key, args);\n/* */ }", "title": "" }, { "docid": "cb5a189d463d9e96b309c6a937e54493", "score": "0.57199144", "text": "public TechnicalErrorException() {\r\n\t\tsuper();\r\n\t}", "title": "" }, { "docid": "d0ea411431c7476f70658faaf36c87b5", "score": "0.5710954", "text": "@Test\n\tvoid test4CreateDomainExceptionWithThrowable() {\n\t\tde = new DomainException(new RuntimeException());\n\t\tassertEquals(new RuntimeException().getClass(), de.getCause().getClass());\n\t}", "title": "" }, { "docid": "f46f51aad4c607a52fde3544a7294ade", "score": "0.57089764", "text": "public WorkflowInvalidException() {\n\t\tsuper();\n\t}", "title": "" }, { "docid": "1fa55b4deff6cea9293c4e441972b6cc", "score": "0.5707885", "text": "@Test\n\tvoid test2CreateBasicDomainExceptionWithParams() {\n\t\tde = new DomainException(exceptionString, new RuntimeException());\n\t\tassertEquals(exceptionString, de.getMessage());\n\t}", "title": "" }, { "docid": "1fb437db92733b3ea70ca4edc52014d7", "score": "0.5707458", "text": "@Test\n\tvoid test1CreateBasicDomainException() {\n\t\tde = new DomainException();\n\t\tassertTrue(de instanceof RuntimeException);\t\t\n\t}", "title": "" }, { "docid": "20331652b3420dbfe93b70bcc140c1bd", "score": "0.5702902", "text": "public ProgramistaException(Throwable oCause) {super(oCause);}", "title": "" }, { "docid": "2495f109d3e3d45ad39a47d7e50d53c8", "score": "0.57001907", "text": "public GLWebPersistenceException() {\n super();\n }", "title": "" }, { "docid": "ffc06137a11e005fc2f30e095fca4b56", "score": "0.57001", "text": "protected DOMException createDOMException(short type, String key, Object[] args) {\n/* 407 */ return SVGOMAnimatedPathData.this.element.createDOMException(type, key, args);\n/* */ }", "title": "" }, { "docid": "76eb8baa4cee3065d5d5c1694567ae84", "score": "0.5697055", "text": "public ProgramistaException(String sMessage) {super(sMessage);}", "title": "" }, { "docid": "9d6f43762d50c046af4b38756fca1fe4", "score": "0.56955427", "text": "public JwBaggedException(Throwable ex)\n {\n _exception = ex;\n }", "title": "" }, { "docid": "dee41aba160c117df7eac73db43b4557", "score": "0.5695035", "text": "public TsdbException() {\n super();\n }", "title": "" }, { "docid": "ef935aeeb8ae94f044cf0ad542e07b18", "score": "0.5690638", "text": "public OperateException() {\n super();\n }", "title": "" }, { "docid": "cd602b5fbd8a2cd6b87957bd44b44ef3", "score": "0.5677642", "text": "public StockLevelException() {\r\n\t}", "title": "" }, { "docid": "39495edd5efe2813e67438ffc0062584", "score": "0.5673576", "text": "public ContextException() {\r\n super();\r\n }", "title": "" }, { "docid": "ab87ecc047362f68cd3d9151217c9243", "score": "0.5671804", "text": "public BaseException(String message) {\n super(message);\n }", "title": "" }, { "docid": "55ee3e8a5452dbab640dc0c1ed00546d", "score": "0.56543714", "text": "public M4waterSecurityException() {}", "title": "" }, { "docid": "28c6758bbb54796f4cd5fbd7f41c9a92", "score": "0.5649137", "text": "public ConstraintFailedException()\n {\n }", "title": "" }, { "docid": "29697881477c293181d44c56f635ed25", "score": "0.56438684", "text": "public LeseMerkmalAusException() {\r\n }", "title": "" }, { "docid": "5c68cc7665bc71d9a7a6156bf326b207", "score": "0.56392443", "text": "public Error()\r\n\t{\r\n\t}", "title": "" }, { "docid": "cca0a6e98152d4eb6477765b9bf2113e", "score": "0.56311375", "text": "public testexception() {\n }", "title": "" }, { "docid": "1c83452b144a7e41b732ed203190e87e", "score": "0.56290793", "text": "public ApiException(Exception ex) {\n\t\tsuper(ex);\n\t}", "title": "" }, { "docid": "160aa26215dd52a47f28bbd7f49ec491", "score": "0.5626789", "text": "public InvalidInputException()\r\n\t{\r\n\t\t\r\n\t}", "title": "" }, { "docid": "803410676a57c64ec33aa4964bc3db1a", "score": "0.5625304", "text": "public Exception(Throwable detail) {\n this(detail, detail.getMessage());\n\n // handle InvocationTargetExceptions\n if (detail instanceof InvocationTargetException) {\n Throwable target = ((InvocationTargetException) detail).getTargetException();\n this.setMessage(target);\n\n Object msgObj = this.getMessage();\n if ((msgObj == null) || \"\".equals(msgObj)) { // NOI18N\n\n String msg = target.getMessage();\n msg = org.openide.util.Utilities.wrapString(\n msg, MAXIMUM_TEXT_WIDTH, java.text.BreakIterator.getCharacterInstance(), false\n );\n this.setMessage(msg);\n }\n }\n\n Object obj = this.getMessage();\n // emphasize user-non-friendly exceptions\n if ((obj == null) || \"\".equals(obj)) { // NOI18N\n this.setMessage(\n NbBundle.getMessage(\n NotifyDescriptor.class, \"NTF_ExceptionalException\", detail.getClass().getName(),\n System.getProperty(\"netbeans.user\") + java.io.File.separator + \"system\"\n )\n ); // NOI18N\n this.setTitle(NbBundle.getMessage(NotifyDescriptor.class, \"NTF_ExceptionalExceptionTitle\"));\n }\n }", "title": "" }, { "docid": "f5f74599a63f6c73eccc4aabc82f318a", "score": "0.5624204", "text": "public DesktopRPCException() {\n }", "title": "" }, { "docid": "339efa54391dd60c19143a80eb6ba12c", "score": "0.56227005", "text": "public PersistenceException() {\n super();\n }", "title": "" }, { "docid": "2e268b2e011dc3726b9e964254b48d19", "score": "0.5620872", "text": "public VehiculoException(String mensaje){\n super(mensaje);\n }", "title": "" }, { "docid": "7d6b61b3795622961178fb252b6ebc64", "score": "0.56019187", "text": "public MessagingException() {\n\tsuper();\n\tinitCause(null);\t// prevent anyone else from setting it\n }", "title": "" }, { "docid": "e95a1c2fef4f50e089965f40e22f26f0", "score": "0.5597934", "text": "public ExceptionCode() {\n // nothing\n }", "title": "" }, { "docid": "a78fdbae426ab0d5537e118e684fd5a0", "score": "0.5593212", "text": "@Test\n public final void testConstructorThrowable() {\n\tassertEquals(\"Cause set\", CAUSE, createInstance(CAUSE).getCause());\n }", "title": "" }, { "docid": "6d67f775c475c59413b7a7ba9276cb72", "score": "0.55691063", "text": "public ProtocolException() {\n }", "title": "" }, { "docid": "5fb6106af309311805077f08caaa02a9", "score": "0.55645084", "text": "public DuplicateObjectException() {\n\t\tsuper();\n\t\t\n\t}", "title": "" }, { "docid": "dc25060e6d466c7987078802e1ffd3fb", "score": "0.55640733", "text": "private ImportException() {\n }", "title": "" }, { "docid": "4a4d6ce6c0a203153ef55cccab620e7b", "score": "0.55600286", "text": "public BaseException(Object... args) {\n this.args = Tuple.create(args);\n if (this.args.size() == 1\n && this.args.get(0) instanceof PythonLikeString) {\n // message\n message = StrSupported.str(this.args.get(0)).toString();\n } else {\n message = null;\n }\n }", "title": "" }, { "docid": "6c1eb49c29a3e9277953c324ef51d435", "score": "0.5558881", "text": "public static final SourceModel.Expr throw_(SourceModel.Expr exception) {\n\t\t\treturn \n\t\t\t\tSourceModel.Expr.Application.make(\n\t\t\t\t\tnew SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.throw_), exception});\n\t\t}", "title": "" }, { "docid": "5b6a3092e26e442862726d4e54d4b06c", "score": "0.5553258", "text": "void create(T e);", "title": "" }, { "docid": "ecf33953df5a01de2b247f74ac18ec1e", "score": "0.5549327", "text": "@SuppressWarnings(\"synthetic-access\")\n protected ReferenceVariable createImplicitExceptionNode(TypeReference type,\n int basicBlockID, IMethod method) {\n ReferenceVariable rv = new ReferenceVariable(PrettyPrinter.typeString(type), type, false);\n // These should only be created once assert that this is true\n ReferenceVariable prev = implicitThrows.put(new ImplicitThrowKey(type, basicBlockID, method), rv);\n assert prev == null;\n return rv;\n }", "title": "" }, { "docid": "924cd0cf970727f3a0b04a55f6a15eb8", "score": "0.5547601", "text": "public ClassifyIndexException() { \n exception = \"Index value is not known.\"; \t// Set defaults for exception string. \n }", "title": "" }, { "docid": "8842091d8ade5d1bc7fa75bb2d51ddfa", "score": "0.5547144", "text": "public XsltServiceException() {\n\t\tsuper();\n\t}", "title": "" }, { "docid": "c6415d27ac67a52dc82f7c0396276dc4", "score": "0.55458397", "text": "public Exception(Throwable detail, Object message) {\n super(message, DEFAULT_OPTION, ERROR_MESSAGE);\n\n // customize descriptor\n // this.setDetail(detail);\n this.setTitle(NbBundle.getMessage(NotifyDescriptor.class, \"NTF_ExceptionTitle\"));\n }", "title": "" }, { "docid": "3d9ff1ec613bee091f51f80512a67679", "score": "0.55454135", "text": "public CourseException() {\n }", "title": "" }, { "docid": "c5eb57f73991ab92b38bfe64b3f90ea9", "score": "0.55410814", "text": "private RaiseException newErrnoException(RubyClass exceptionClass, String message) {\n if (RubyInstanceConfig.ERRNO_BACKTRACE) {\n return new RaiseException(this, exceptionClass, message, true);\n } else {\n return new RaiseException(this, exceptionClass, ERRNO_BACKTRACE_MESSAGE, RubyArray.newEmptyArray(this), true);\n }\n }", "title": "" }, { "docid": "f78ec7cb29d62192d512c0592ef8a5bc", "score": "0.55309254", "text": "public HResultException(int hresult)\n {\n this(hresult, toString(hresult));\n }", "title": "" }, { "docid": "9341250f5cff7efbe4e0380e6d4e3c77", "score": "0.5530624", "text": "public Exception getException();", "title": "" }, { "docid": "f284c0987ad79d65930c509dff2ee731", "score": "0.5527084", "text": "public RrdException(Exception e) {\r\n\t\tsuper(e);\r\n\t}", "title": "" } ]
e29b8a133b0137f42bf9263691487244
Test case number: 35 /Coverage entropy=0.08600930325110791
[ { "docid": "fff5ff4d3fef892a1c02b198a15e50d1", "score": "0.0", "text": "@Test(timeout = 4000)\n public void test035() throws Throwable {\n Frame frame0 = new Frame();\n ClassWriter classWriter0 = new ClassWriter(255);\n Item item0 = classWriter0.newInteger(255);\n // Undeclared exception!\n try { \n frame0.execute(174, 2, classWriter0, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "title": "" } ]
[ { "docid": "edbd254adb205bdee80095b913541089", "score": "0.7512595", "text": "@Test(timeout = 4000)\n public void test085() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.priorEntropy();\n assertEquals(0.9940302114769565, double0, 0.01);\n }", "title": "" }, { "docid": "0f37eddae1280d57e035f66f4b04d921", "score": "0.7151995", "text": "@Test(timeout = 4000)\n public void test105() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\" \");\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.getRevision();\n assertEquals(\"9101\", string0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "title": "" }, { "docid": "51184adf79d4165e79cff718ac9f986e", "score": "0.7121052", "text": "@Test(timeout = 4000)\n public void test084() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"P5d\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFSchemeEntropy();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "title": "" }, { "docid": "4f2e9559a559843149c29097dff70ce7", "score": "0.7111807", "text": "@Test(timeout = 4000)\n public void test104() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.avgCost();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "title": "" }, { "docid": "80a37060941534f90d7506f61ea4be24", "score": "0.71027035", "text": "@Test(timeout = 4000)\n public void test110() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.getClassPriors();\n assertNotNull(doubleArray0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(0, doubleArray0.length);\n }", "title": "" }, { "docid": "6866065e0a3b5a967f567315a7060d3c", "score": "0.70887053", "text": "@Test(timeout = 4000)\n public void test108() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.getHeader();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "title": "" }, { "docid": "2a15034c7eb5e0f30ab097d0e62dd7a3", "score": "0.70138", "text": "@Test(timeout = 4000)\n public void test112() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.incorrect();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(0.0, double0, 0.01);\n }", "title": "" }, { "docid": "5da53f99c7ed9425d12c382433f30f7e", "score": "0.69190204", "text": "@Test(timeout = 4000)\n public void test111() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n double double0 = evaluation0.correct();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "title": "" }, { "docid": "4e5d7be1357d5daa7a96db2fdf362eab", "score": "0.6912", "text": "@Test(timeout = 4000)\n public void test091() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.sizeOfPredictedRegions();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "title": "" }, { "docid": "dc349deab1425a9155fc184c67f1653e", "score": "0.6900327", "text": "@Test(timeout = 4000)\n public void test008() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.priorEntropy();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "title": "" }, { "docid": "15cfe276286b8529762c4ee9ef829001", "score": "0.6899256", "text": "@Test(timeout = 4000)\n public void test025() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.falsePositiveRate(26);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, double0, 0.01);\n }", "title": "" }, { "docid": "baad9a24cf720a14c774dbbbd32ae07f", "score": "0.6812899", "text": "@Test(timeout = 4000)\n public void test102() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setDiscardPredictions(false);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n }", "title": "" }, { "docid": "ff8678f212b94d54f140024e76a31676", "score": "0.6799615", "text": "@Test(timeout = 4000)\n public void test019() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.numTrueNegatives(92);\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "title": "" }, { "docid": "69e31b77b4f0d254f92b97a60b0f09e8", "score": "0.67242116", "text": "@Test(timeout = 4000)\n public void test020() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"P5d\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.numTrueNegatives((-1456206972));\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "title": "" }, { "docid": "54ec44fd241c1785eabdb52124ec41da", "score": "0.6707904", "text": "@Test(timeout = 4000)\n public void test068() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n evaluation0.addNumericTrainClass((-1.0), Double.NaN);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n }", "title": "" }, { "docid": "51b7aef13d4abe35ce455a72cc94e9f7", "score": "0.67076534", "text": "@Test(timeout = 4000)\n public void test100() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.areaUnderROC(106);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "title": "" }, { "docid": "c985b47cd67af89b59a52e6e2d29c4cf", "score": "0.6655388", "text": "@Test(timeout = 4000)\n public void test086() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBRelativeInformation();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "title": "" }, { "docid": "9ae44abafec0343ef42ea417f9fb6d7d", "score": "0.66513824", "text": "@Test(timeout = 4000)\n public void test013() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.truePositiveRate(113);\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n }", "title": "" }, { "docid": "2bf0c81c40fc2b35497bb27cd3e450c5", "score": "0.6572219", "text": "@Test(timeout = 4000)\n public void test082() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanEntropyGain();\n assertEquals(Double.NaN, double0, 0.01);\n }", "title": "" }, { "docid": "2951ebf4330839820571e258620e88cc", "score": "0.65528446", "text": "@Test(timeout = 4000)\n public void test035() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.areaUnderROC((-934));\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "title": "" }, { "docid": "3f598b3ef8236adc7dd0de57b82e5d70", "score": "0.65524477", "text": "@Test(timeout = 4000)\n public void test106() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate();\n Evaluation evaluation0 = new Evaluation(instances0);\n boolean boolean0 = evaluation0.getDiscardPredictions();\n assertFalse(boolean0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "title": "" }, { "docid": "908a2288e9eb5df272422a23c3cbdcb3", "score": "0.65276706", "text": "@Test(timeout = 4000)\n public void test090() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\" \");\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.errorRate();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "title": "" }, { "docid": "c1e2f5cb80215270fcb5b477ca0b6feb", "score": "0.65176415", "text": "@Test(timeout = 4000)\n public void test109() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.recall(6);\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "title": "" }, { "docid": "147b81733f482e2e3803abc54e37a351", "score": "0.64966077", "text": "@Test(timeout = 4000)\n public void test089() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n double double0 = evaluation0.meanPriorAbsoluteError();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "title": "" }, { "docid": "0a9c3887a29517816e5c4a1e6d9a8d4a", "score": "0.64500105", "text": "@Test(timeout = 4000)\n public void test077() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.unweightedMicroFmeasure();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "title": "" }, { "docid": "20cf823d993bdde015cdebadf985865e", "score": "0.6391315", "text": "@Test(timeout = 4000)\n public void test017() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setPriors(instances0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "title": "" }, { "docid": "68ffbe0f6f7b530ef452e1534d29d427", "score": "0.63500696", "text": "@Test(timeout = 4000)\n public void test015() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.toMatrixString(\"!%]#`o@tV\");\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "title": "" }, { "docid": "248fce3caa490f5cfaf85db3f3983529", "score": "0.6348897", "text": "@Test(timeout = 4000)\n public void test081() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\" \");\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toCumulativeMarginDistributionString();\n assertEquals(\" -1 0 \\n\", string0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "title": "" }, { "docid": "8707b9b062e7b91328d65cb31d17ff94", "score": "0.62936676", "text": "@Test(timeout = 4000)\n public void test083() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"P5d\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFEntropyGain();\n assertEquals(0.0, double0, 0.01);\n }", "title": "" }, { "docid": "f710af1e4ba91c72bbc2118e725dbd83", "score": "0.62723", "text": "@Test(timeout = 4000)\n public void test067() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setNumericPriorsFromBuffer();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "title": "" }, { "docid": "beeced9c82c658accb561f95138dd6ea", "score": "0.62449354", "text": "@Test(timeout = 4000)\n public void test088() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.rootMeanPriorSquaredError();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "title": "" }, { "docid": "c3ed3e72cd30ebc681069e712a9a0a65", "score": "0.62030953", "text": "@Test(timeout = 4000)\n public void test007() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.unclassified();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "title": "" }, { "docid": "625c67c749f9ee58b85b5ba1356c6a8c", "score": "0.61991465", "text": "@Test\n public void testDeterministicQualityAndDepth() throws Exception {\n final double logOddsThreshold = 0.0;\n final double tolerance = 0.001;\n final int sampleSize = 1; //quality is deterministic, hence no sampling error\n for (int q = 5; q < 10; q++) {\n for (int n = 5; n < 10; n++) {\n final double minAltCount = 10 * n * Math.log10(2) / q; //alts required to call when log odds ratio threshold = 1\n double expectedResult = 0.0;\n\n final List<ArrayList<Double>> altCountProbabilities = TheoreticalSensitivity.hetAltDepthDistribution(n + 1);\n for (int altCount = n; altCount > minAltCount; altCount--) {\n expectedResult += altCountProbabilities.get(n).get(altCount);\n }\n\n //deterministic weights that always yield q are 0.0 for 0 through q - 1 and 1.0 for q\n final double[] qualityDistribution = new double[q + 1];\n Arrays.fill(qualityDistribution, 0L);\n qualityDistribution[qualityDistribution.length - 1] = 1L;\n final double[] depthDistribution = new double[n + 1];\n Arrays.fill(depthDistribution, 0L);\n depthDistribution[depthDistribution.length - 1] = 1L;\n\n final double result = TheoreticalSensitivity.hetSNPSensitivity(depthDistribution, qualityDistribution, sampleSize, logOddsThreshold);\n Assert.assertEquals(result, expectedResult, tolerance);\n }\n }\n }", "title": "" }, { "docid": "b08f4468de8d4c0b168b3baf724904e2", "score": "0.61281353", "text": "@Test(timeout = 4000)\n public void test114() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.rootMeanSquaredError();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "title": "" }, { "docid": "2c6737933d05b72159ef04e22367f434", "score": "0.61190295", "text": "@Test(timeout = 4000)\n public void test016() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.toMatrixString(\"\");\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n }", "title": "" }, { "docid": "d2223fbbbcb8807126803ea64d9dad75", "score": "0.6118182", "text": "@Test\n public void testHetSensDistributions() throws Exception {\n final double tolerance = 0.02;\n final double expectedResult = .9617;\n final int maxDepth = 500;\n final double[] depthDistribution = new double[maxDepth + 1];\n final double[] qualityDistribution = new double[50];\n\n final Scanner scanDepth = new Scanner(DEPTH);\n for (int i = 0; scanDepth.hasNextDouble(); i++) {\n depthDistribution[i] = scanDepth.nextDouble();\n }\n final Scanner scanBaseQ = new Scanner(BASEQ);\n for (int j = 0; scanBaseQ.hasNextDouble(); j++) {\n qualityDistribution[j] = scanBaseQ.nextDouble();\n }\n\n final int sampleSize = 1_000;\n final double logOddsThreshold = 3.0;\n final double result = TheoreticalSensitivity.hetSNPSensitivity(depthDistribution, qualityDistribution, sampleSize, logOddsThreshold);\n Assert.assertEquals(result, expectedResult, tolerance);\n }", "title": "" }, { "docid": "0b0937ce2724418eb4167607ec6fadc5", "score": "0.6046482", "text": "@Test(timeout = 4000)\n public void test19() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.getCutPoints((-2560));\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n }", "title": "" }, { "docid": "5599c6f92758fbe19bbfba70c8d1062f", "score": "0.6026748", "text": "@Test(timeout = 4000)\n public void test072() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\" \");\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = new double[2];\n LinearNNSearch linearNNSearch0 = new LinearNNSearch(instances0);\n BinarySparseInstance binarySparseInstance0 = new BinarySparseInstance(0.0, doubleArray0);\n Instance instance0 = linearNNSearch0.nearestNeighbour(binarySparseInstance0);\n evaluation0.updateStatsForPredictor(1.0E-5, instance0);\n double double0 = evaluation0.pctUnclassified();\n assertEquals(0.0, double0, 0.01);\n }", "title": "" }, { "docid": "4b1432c91e02ed964a957a27696cdd79", "score": "0.6018467", "text": "@Test(timeout = 4000)\n public void test036() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.areaUnderPRC(1);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "title": "" }, { "docid": "1922fdaad6400b7e60385eed838344f3", "score": "0.60132337", "text": "@Test\n\tpublic void testDominantIndex() throws Exception {\n\t}", "title": "" }, { "docid": "b43aa1f7ec9d0136b7f5793912666690", "score": "0.6006168", "text": "@Test\n public void globalBasedMedianCenteredGeneExp() throws IOException {\n// String dirName = \"datasets/TCGA/OvarianCancer/TothillDataset/\";\n// String srcFileName = dirName + \"Tothill_TCGA_plus2.txt\";\n// fu.setInput(srcFileName);\n// FileUtility outFu = new FileUtility();\n// String outFileName = dirName + \"Tothill_TCGA_plus2_global_median_centered.txt\";\n// outFu.setOutput(outFileName);\n// String line = fu.readLine();\n// outFu.printLine(line);\n// DescriptiveStatistics stat = new DescriptiveStatistics();\n// StringBuilder builder = new StringBuilder();\n// while ((line = fu.readLine()) != null) {\n// String[] tokens = line.split(\"\\t\");\n// for (int i = 1; i < tokens.length; i++) {\n// stat.addValue(Math.log(new Double(tokens[i])));\n// }\n// }\n// fu.close();\n// double median = stat.getPercentile(0.50d);\n// fu.setInput(srcFileName);\n// line = fu.readLine();\n// while ((line = fu.readLine()) != null) {\n// String[] tokens = line.split(\"\\t\");\n// builder.setLength(0);\n// builder.append(tokens[0]);\n// for (int i = 1; i < tokens.length; i++) {\n// double value = Double.parseDouble(tokens[i]);\n// value = (value - median) / median;\n// builder.append(\"\\t\").append(value);\n// }\n// outFu.printLine(builder.toString());\n// }\n// fu.close();\n// outFu.close();\n }", "title": "" }, { "docid": "660349ff2b99015f84d0f1ca7677d829", "score": "0.6006114", "text": "@Test(timeout = 4000)\n public void test113() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString();\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(\"\\nTotal Number of Instances 0 \\n\", string0);\n }", "title": "" }, { "docid": "4a76c039aef6bb79f48b93efbba159d2", "score": "0.597875", "text": "@Test(timeout = 4000)\n public void test115() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toClassDetailsString();\n assertEquals(\"=== Detailed Accuracy By Class ===\\n\\n TP Rate FP Rate Precision Recall F-Measure MCC ROC Area PRC Area Class\\nWeighted Avg. NaN NaN NaN NaN NaN NaN NaN NaN \\n\", string0);\n }", "title": "" }, { "docid": "b8f9f421a70442ebd08d400d42a8e5d5", "score": "0.59729075", "text": "@Test(timeout = 4000)\n public void test107() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.meanAbsoluteError();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "title": "" }, { "docid": "e9532065f077592d6cc20f6d51e6a552", "score": "0.596462", "text": "@Test(timeout = 4000)\n public void test070() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass(0.0, (-1823.508364429));\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "title": "" }, { "docid": "1aaee583ca676718ac331d9fe96bd6c9", "score": "0.5963415", "text": "@Test(timeout = 4000)\n public void test009() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = new double[8];\n evaluation0.updateNumericScores(doubleArray0, doubleArray0, 0.0);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "title": "" }, { "docid": "a42359b62af32f65f5ff9a4a39655756", "score": "0.59558105", "text": "@Test(timeout = 4000)\n public void test210() throws Throwable {\n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML();\n resultMatrixHTML0.clear();\n resultMatrixHTML0.getOptions();\n resultMatrixHTML0.toStringRanking();\n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV();\n int int0 = ResultMatrix.SIGNIFICANCE_WIN;\n assertEquals(1, int0);\n }", "title": "" }, { "docid": "46dc3f22d3510bf38d2202506d0fe663", "score": "0.5946499", "text": "@Test(timeout = 4000)\n public void test24() throws Throwable {\n NaiveBayesMultinomialText naiveBayesMultinomialText0 = new NaiveBayesMultinomialText();\n InputMappedClassifier inputMappedClassifier0 = new InputMappedClassifier();\n Capabilities capabilities0 = inputMappedClassifier0.getCapabilities();\n naiveBayesMultinomialText0.m_useStopList = true;\n TestInstances testInstances0 = TestInstances.forCapabilities(capabilities0);\n EvoSuiteFile evoSuiteFile0 = new EvoSuiteFile(\"Capabilities.props\");\n FileSystemHandling.appendStringToFile(evoSuiteFile0, \"Set splitting criterion based on the residuals of LogitBoost. There are two possible splitting criteria for LMT: the default is to use the C4.5 splitting criterion that uses information gain on the class variable. The other splitting criterion tries to improve the purity in the residuals produces when fitting the logistic regression functions. The choice of the splitting criterion does not usually affect classification accuracy much, but can produce different trees.\");\n Instances instances0 = testInstances0.generate(\"\");\n testInstances0.getRelationalClassFormat();\n naiveBayesMultinomialText0.buildClassifier(instances0);\n String string0 = naiveBayesMultinomialText0.toString();\n assertEquals(1.0, naiveBayesMultinomialText0.getNorm(), 0.01);\n assertEquals(\"The independent probability of a class\\n--------------------------------------\\nclass1\\t9.0\\nclass2\\t4.0\\nclass3\\t7.0\\nclass4\\t4.0\\n\\nThe probability of a word given the class\\n-----------------------------------------\\n\\tclass1\\tclass2\\tclass3\\tclass4\\t\\nquick\\t7.38905609893065\\t2.718281828459045\\t7.38905609893065\\t7.38905609893065\\t\\nlazy\\t7.38905609893065\\t2.718281828459045\\t7.38905609893065\\t2.718281828459045\\t\\njumps\\t20.085536923187668\\t7.38905609893065\\t2.718281828459045\\t2.718281828459045\\t\\nbrown\\t7.38905609893065\\t7.38905609893065\\t2.718281828459045\\t2.718281828459045\\t\\ndog\\t7.38905609893065\\t2.718281828459045\\t7.38905609893065\\t2.718281828459045\\t\\nfox\\t2.718281828459045\\t2.718281828459045\\t7.38905609893065\\t7.38905609893065\\t\\n\", string0);\n assertEquals(2.0, naiveBayesMultinomialText0.getLNorm(), 0.01);\n }", "title": "" }, { "docid": "e5387f5df774d8387ba0c04558006d19", "score": "0.5942976", "text": "@Test(timeout = 4000)\n public void test27() throws Throwable {\n EvoSuiteFile evoSuiteFile0 = new EvoSuiteFile(\" / \");\n byte[] byteArray0 = new byte[5];\n byteArray0[0] = (byte)0;\n byteArray0[1] = (byte)106;\n byteArray0[2] = (byte)97;\n byteArray0[3] = (byte) (-67);\n byteArray0[4] = (byte)13;\n FileSystemHandling.appendDataToFile(evoSuiteFile0, byteArray0);\n NaiveBayesMultinomialText naiveBayesMultinomialText0 = new NaiveBayesMultinomialText();\n TestInstances testInstances0 = new TestInstances();\n MockFile mockFile0 = new MockFile(\" \", \" \");\n naiveBayesMultinomialText0.setStopwords(mockFile0);\n double[] doubleArray0 = new double[0];\n DenseInstance denseInstance0 = new DenseInstance((byte)0);\n BinarySparseInstance binarySparseInstance0 = new BinarySparseInstance(denseInstance0);\n SparseInstance sparseInstance0 = new SparseInstance((Instance) binarySparseInstance0);\n BinarySparseInstance binarySparseInstance1 = new BinarySparseInstance((Instance) sparseInstance0);\n binarySparseInstance0.toStringMaxDecimalDigits((-1247));\n try { \n naiveBayesMultinomialText0.distributionForInstance(sparseInstance0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.classifiers.bayes.NaiveBayesMultinomialText\", e);\n }\n }", "title": "" }, { "docid": "678c8001329dd118cc480a6074f268ac", "score": "0.5928762", "text": "@Test(timeout = 4000)\n public void test001() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.weightedRecall();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "title": "" }, { "docid": "5a0379d589f95b60a80940434cf26cee", "score": "0.5896837", "text": "@Test(timeout = 4000)\n public void test06() throws Throwable {\n Discretize discretize0 = new Discretize();\n String string0 = discretize0.getRevision();\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getMakeBinary());\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(\"8964\", string0);\n assertFalse(discretize0.getUseEqualFrequency());\n }", "title": "" }, { "docid": "4d1c1c387ae38ad325bcf3b33235d2d4", "score": "0.58551615", "text": "@Test(timeout = 4000)\n public void test014() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.trueNegativeRate((-2));\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "title": "" }, { "docid": "77d9428115bc06de12eb1e7d9cd25279", "score": "0.5841906", "text": "@Test(timeout = 4000)\n public void test128() throws Throwable {\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance(0, 0);\n assertNotNull(resultMatrixSignificance0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getVisibleColCount());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixSignificance0.getColCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getRowCount());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n \n String[] stringArray0 = new String[4];\n String[] stringArray1 = resultMatrixSignificance0.getOptions();\n assertFalse(stringArray1.equals((Object)stringArray0));\n assertNotSame(stringArray1, stringArray0);\n assertEquals(18, stringArray1.length);\n assertNotNull(stringArray1);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getVisibleColCount());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixSignificance0.getColCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getRowCount());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n \n resultMatrixSignificance0.m_StdDevWidth = 0;\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getVisibleColCount());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixSignificance0.getColCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getRowCount());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n \n stringArray0[0] = \" \";\n stringArray0[1] = \"v\";\n stringArray0[2] = \")\";\n stringArray0[3] = \" \";\n ResultMatrixSignificance.main(stringArray0);\n assertFalse(stringArray0.equals((Object)stringArray1));\n assertNotSame(stringArray0, stringArray1);\n assertEquals(4, stringArray0.length);\n \n String string0 = resultMatrixSignificance0.padString(\"v\", 0, false);\n assertEquals(\"v\", string0);\n assertNotNull(string0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getVisibleColCount());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixSignificance0.getColCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getRowCount());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n \n resultMatrixSignificance0.setSize(2523, 2);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(2523, resultMatrixSignificance0.getColCount());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(2, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(2, resultMatrixSignificance0.getRowCount());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n \n String string1 = resultMatrixSignificance0.padString(\"W-:rm\", (-3003));\n assertFalse(string1.equals((Object)string0));\n assertEquals(\"W-:rm\", string1);\n assertNotNull(string1);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(2523, resultMatrixSignificance0.getColCount());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(2, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(2, resultMatrixSignificance0.getRowCount());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n \n String string2 = resultMatrixSignificance0.enumerateColNamesTipText();\n assertFalse(string2.equals((Object)string1));\n assertFalse(string2.equals((Object)string0));\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", string2);\n assertNotNull(string2);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(2523, resultMatrixSignificance0.getColCount());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(2, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(2, resultMatrixSignificance0.getRowCount());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n \n String string3 = resultMatrixSignificance0.colNameWidthTipText();\n assertFalse(string3.equals((Object)string2));\n assertFalse(string3.equals((Object)string0));\n assertFalse(string3.equals((Object)string1));\n assertEquals(\"The maximum width of the column names (0 = optimal).\", string3);\n assertNotNull(string3);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(2523, resultMatrixSignificance0.getColCount());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(2, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(2, resultMatrixSignificance0.getRowCount());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n \n String string4 = resultMatrixSignificance0.showAverageTipText();\n assertFalse(string4.equals((Object)string2));\n assertFalse(string4.equals((Object)string1));\n assertFalse(string4.equals((Object)string3));\n assertFalse(string4.equals((Object)string0));\n assertEquals(\"Whether to show the row with averages.\", string4);\n assertNotNull(string4);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(2523, resultMatrixSignificance0.getColCount());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(2, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(2, resultMatrixSignificance0.getRowCount());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n \n boolean boolean0 = resultMatrixSignificance0.getDefaultPrintRowNames();\n assertTrue(boolean0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(2523, resultMatrixSignificance0.getColCount());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(2, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(2, resultMatrixSignificance0.getRowCount());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n \n resultMatrixSignificance0.clearHeader();\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(2523, resultMatrixSignificance0.getColCount());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(2, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(2, resultMatrixSignificance0.getRowCount());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n \n resultMatrixSignificance0.setCount((-3003), 0.0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(2523, resultMatrixSignificance0.getColCount());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(2, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(2, resultMatrixSignificance0.getRowCount());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n \n String string5 = resultMatrixSignificance0.getDisplayName();\n assertFalse(string5.equals((Object)string1));\n assertFalse(string5.equals((Object)string4));\n assertFalse(string5.equals((Object)string3));\n assertFalse(string5.equals((Object)string2));\n assertFalse(string5.equals((Object)string0));\n assertEquals(\"Significance only\", string5);\n assertNotNull(string5);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(2523, resultMatrixSignificance0.getColCount());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(2, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(2, resultMatrixSignificance0.getRowCount());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n \n // Undeclared exception!\n resultMatrixSignificance0.toStringHeader();\n }", "title": "" }, { "docid": "7d6d4bb6f6a90c0376192c644b23cde6", "score": "0.58401245", "text": "@Test(timeout = 4000)\n public void test006() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"P5d\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.weightedAreaUnderPRC();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "title": "" }, { "docid": "c2ef77e7b2ae7ed1ad5ac382080ac42f", "score": "0.58259565", "text": "@Test(timeout = 4000)\n public void test005() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.weightedAreaUnderROC();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, double0, 0.01);\n }", "title": "" }, { "docid": "49d78ad26be39ba705724ea6ab2aa40a", "score": "0.58195925", "text": "@Test(timeout = 4000)\n public void test017() throws Throwable {\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV();\n resultMatrixCSV0.setColNameWidth(2);\n resultMatrixCSV0.toStringMatrix();\n resultMatrixGnuPlot0.getSignificance(2594, 0);\n }", "title": "" }, { "docid": "f75703181d73644cb7c3d5aa323e5d4d", "score": "0.581769", "text": "@Test(timeout = 4000)\n public void test04() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.getBinRangesString((-1879048189));\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n }", "title": "" }, { "docid": "f7acfd9bb62a0378e8a1b66173a2d0dc", "score": "0.58173454", "text": "@Test\n public void testFrequentTraceSequenceDetector() {\n testFrequentTraceSequenceDetector(RiscvLivermoreN100im.cholesky.toTraceStream());\n }", "title": "" }, { "docid": "050bde16730e58293ba2ac55374045cb", "score": "0.5784573", "text": "void testNormalityOfLowPixels(){\n }", "title": "" }, { "docid": "9e57534a4694ea3ac2bbe94242f6c7cd", "score": "0.5768891", "text": "@Test(timeout = 4000)\n public void test018() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.precision(1165);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(0.0, double0, 0.01);\n }", "title": "" }, { "docid": "20951a8f18e970ad2bd6bbb5f0210387", "score": "0.5735225", "text": "@Test(timeout = 100)\n\tpublic void testLargeGetBestGradeMixed() {\n\t\tSubmissionHistory history = new Assignment();\n\t\tSubmission a = testHelperAdd(history, \"a\", new Date(100000), 10);\n\t\tSubmission b = testHelperAdd(history, \"a\", new Date(200000), 11);\n\t\tSubmission c = testHelperAdd(history, \"a\", new Date(300000), 12);\n\t\tSubmission d = testHelperAdd(history, \"a\", new Date(400000), 13);\n\t\tSubmission e = testHelperAdd(history, \"a\", new Date(500000), 14);\n\t\tSubmission f = testHelperAdd(history, \"a\", new Date(600000), 15);\n\t\tSubmission g = testHelperAdd(history, \"a\", new Date(700000), 16);\n\t\tSubmission h = testHelperAdd(history, \"a\", new Date(800000), 17);\n\t\tSubmission i = testHelperAdd(history, \"a\", new Date(900000), 18);\n\t\tSubmission j = testHelperAdd(history, \"a\", new Date(100001), 19);\n\t\tSubmission k = testHelperAdd(history, \"a\", new Date(100002), 20);\n\t\tSubmission l = testHelperAdd(history, \"a\", new Date(100003), 21);\n\t\tSubmission m = testHelperAdd(history, \"a\", new Date(100004), 22);\n\t\tSubmission n = testHelperAdd(history, \"a\", new Date(100005), 23);\n\t\tSubmission o = testHelperAdd(history, \"a\", new Date(100006), 24);\n\t\tSubmission p = testHelperAdd(history, \"a\", new Date(100007), 25);\n\t\tSubmission q = testHelperAdd(history, \"a\", new Date(100008), 26);\n\t\tSubmission r = testHelperAdd(history, \"a\", new Date(100009), 27);\n\t\tSubmission s = testHelperAdd(history, \"a\", new Date(100010), 28);\n\t\tSubmission t = testHelperAdd(history, \"a\", new Date(100020), 29);\n\t\tSubmission u = testHelperAdd(history, \"a\", new Date(100030), 30);\n\t\tSubmission v = testHelperAdd(history, \"a\", new Date(100040), 31);\n\t\tSubmission w = testHelperAdd(history, \"a\", new Date(100050), 32);\n\t\tSubmission x = testHelperAdd(history, \"a\", new Date(100060), 33);\n\t\tSubmission y = testHelperAdd(history, \"a\", new Date(100070), 34);\n\t\tSubmission z = testHelperAdd(history, \"a\", new Date(100080), 35);\n\t\tSubmission a1 = testHelperAdd(history, \"a\", new Date(10090), 36);\n\t\tSubmission b1 = testHelperAdd(history, \"a\", new Date(100100), 37);\n\t\tSubmission c1 = testHelperAdd(history, \"a\", new Date(100200), 38);\n\t\tSubmission d1 = testHelperAdd(history, \"a\", new Date(100300), 39);\n\t\tSubmission e1 = testHelperAdd(history, \"a\", new Date(100400), 40);\n\t\tSubmission f1 = testHelperAdd(history, \"a\", new Date(100500), 41);\n\t\tSubmission g1 = testHelperAdd(history, \"a\", new Date(100600), 42);\n\t\tSubmission h1 = testHelperAdd(history, \"a\", new Date(100700), 43);\n\t\tSubmission i1 = testHelperAdd(history, \"a\", new Date(100800), 44);\n\n\t\tassertEquals(new Integer(44), history.getBestGrade(\"a\"));\n\t\t\n\t\tSubmission j1 = testHelperAdd(history, \"a\", new Date(100900), 45);\n\t\t\n\t\tassertEquals(new Integer(45), history.getBestGrade(\"a\"));\n\t\t\n\t\thistory.remove(j1);\n\t\thistory.remove(i1);\n\t\thistory.remove(h1);\n\t\thistory.remove(g1);\n\t\thistory.remove(f1);\n\t\thistory.remove(e1);\n\t\thistory.remove(d1);\n\t\t\n\t\tassertEquals(new Integer(38), history.getBestGrade(\"a\"));\n\t\t\n\t}", "title": "" }, { "docid": "d1d4085ecd4719f979ccb2c477576158", "score": "0.5731252", "text": "public static void main(String[] args) {\n int com;\n TestHashcode th = new TestHashcode();\n List tl = new ArrayList();\n\n for (com = 600000; com < 600100; com++) {\n tl.add(new BigDecimal(com));\n }\n th.testDispersion(tl);\n th.setFractionUnique(0.8);\n th.testHashCodeUniqueness(tl);\n }", "title": "" }, { "docid": "0b1e9f50e5eedb6f67dd177a07d8aca7", "score": "0.57302296", "text": "private static void testTest() {\n \n \n // have to find training examples in the actual dataset\n MushoomFitnessFunction mff = new MushoomFitnessFunction();\n \n {\n /* \n * idea behind this test\n * 2 attributes, 2 values per attribute, 2 classes.\n * A = { a1, a2 }\n * B = { b1, b2 }\n * C = { c1, c2 }\n * \n * BitString representation as follows\n * \n * AABBC - where C = 0 for c1, 1 for c2\n * \n * makes for 4 different training examples, which are as follows\n * 1) a1 & b1 => c1\n * 2) a1 & b2 => c2\n * 3) a2 & b2 => c1\n * 4) a2 & b2 => c2\n * \n * so if we had a hypothesis which was\n * 10000\n * that is, if a1 then c1, else c2. we should get\n * 1) a1 & b1 => c1 - correct\n * 2) a1 & b2 => c2 - wrong\n * 3) a2 & b2 => c1 - wrong\n * 4) a2 & b2 => c2 - correct\n * \n * it is those last two in particular that I need to account for\n */\n String[] testExamples = {\n //k = a1, f = a2\n //d = b1, l = b2\n //e = c1, p = c2\n \"ksefyfcnbt?kkwppwoewvde\",\n \"ksefyfcnbt?kkwppwoewvlp\",\n \"fsefyfcnbt?kkwppwoewvde\",\n \"fsefyfcnbt?kkwppwoewvlp\",\n };\n // if a1 and anything, then c1\n String hypothesis = \n\"00010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\";\n System.out.println(hypothesis);\n System.out.println(mff.hypothesisToGrepString(hypothesis));\n assert(mff.test(hypothesis, testExamples[0].toCharArray()) == true);\n assert(mff.test(hypothesis, testExamples[1].toCharArray()) == false);\n assert(mff.test(hypothesis, testExamples[2].toCharArray()) == false);\n assert(mff.test(hypothesis, testExamples[3].toCharArray()) == true);\n }\n \n {\n /*\n * for the veil-type attribute, every test case has the value 'p'.\n * but for some reason, when a hypothesis returns \n * if veil-type = p then p\n * it comes back with perfect accurary, which should not be the case\n * because if p => p, then it should be predicting p for all of the e classes\n * and so should only be ~50% correct.\n */\n String[] testExamples = {\n \"ksefyfcnbt?kkwwpwoewvlp\",\n \"ksefyfcnbt?kkwwpwoewvde\",\n };\n // if a1 and anything, then c1\n String hypothesis = \n\"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000001\";\n System.out.println(hypothesis);\n System.out.println(mff.hypothesisToGrepString(hypothesis));\n assert(mff.test(hypothesis, testExamples[0].toCharArray()) == true);\n assert(mff.test(hypothesis, testExamples[1].toCharArray()) == false);\n }\n \n \n }", "title": "" }, { "docid": "09f6ae379e2e9b90fca512a7b41b6829", "score": "0.57272065", "text": "@Test(timeout = 4000)\n public void test024() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.falsePositiveRate(0);\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "title": "" }, { "docid": "f870d363d61f924c439f97fdab8c1853", "score": "0.57245576", "text": "@Test(timeout = 4000)\n public void test164() throws Throwable {\n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV();\n int[] intArray0 = new int[8];\n intArray0[1] = 1;\n intArray0[2] = 1;\n int int0 = 0;\n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText(resultMatrixCSV0);\n resultMatrixPlainText0.isMean(49);\n resultMatrixPlainText0.getDefaultEnumerateRowNames();\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex(2568, 2);\n }", "title": "" }, { "docid": "4ed842098695ac92a067fa4cf31f265c", "score": "0.57214856", "text": "@Test(timeout = 4000)\n public void test003() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.weightedMatthewsCorrelation();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "title": "" }, { "docid": "335962f52b04d14add827ef0e26549f0", "score": "0.5721333", "text": "@Test(timeout = 4000)\n public void test25() throws Throwable {\n Discretize discretize0 = new Discretize();\n String[] stringArray0 = new String[8];\n stringArray0[0] = \"`v\";\n stringArray0[1] = \"Ajz^Ul$T]gw'\";\n stringArray0[2] = \"Sets the desired weight of instances per interval for equal-frequency binning.\";\n stringArray0[3] = \"}B\";\n stringArray0[4] = \"-R\";\n stringArray0[5] = \"Sets the desired weight of instances per interval for equal-frequency binning.\";\n stringArray0[6] = \"`v\";\n stringArray0[7] = \"g;aZyIK x\";\n discretize0.setOptions(stringArray0);\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n }", "title": "" }, { "docid": "5da2ff50ec1b4118854b96d77682711c", "score": "0.57204884", "text": "@Test(timeout = 4000)\n public void test069() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n evaluation0.addNumericTrainClass(2228.7863, 2123.12269);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 0.01);\n }", "title": "" }, { "docid": "365a331ad71bdde30d73a104bca727ad", "score": "0.570801", "text": "@Test\n public void test() {\n generateTestData(108);\n// testDistributionInDirections();\n// testDistributionInDirectionAndUniversities();\n\n }", "title": "" }, { "docid": "138920d8b8e73db7be63f603d287e36e", "score": "0.570646", "text": "@Test\n public void testDegenerateFullSample() {\n HypergeometricDistribution dist = new HypergeometricDistribution(5,3,5);\n setDistribution(dist);\n setCumulativeTestPoints(new int[] {-1, 0, 1, 3, 10 });\n setCumulativeTestValues(new double[] {0d, 0d, 0d, 1d, 1d});\n setDensityTestPoints(new int[] {-1, 0, 1, 3, 10});\n setDensityTestValues(new double[] {0d, 0d, 0d, 1d, 0d});\n setInverseCumulativeTestPoints(new double[] {0.1d, 0.5d});\n setInverseCumulativeTestValues(new int[] {3, 3});\n verifyDensities();\n verifyCumulativeProbabilities();\n verifyInverseCumulativeProbabilities();\n Assert.assertEquals(dist.getSupportLowerBound(), 3);\n Assert.assertEquals(dist.getSupportUpperBound(), 3);\n }", "title": "" }, { "docid": "4f56bca4f169744e39c48a037cd62308", "score": "0.5695377", "text": "@Test(timeout = 4000)\n public void test069() throws Throwable {\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex();\n resultMatrixLatex0.setMeanWidth((-1));\n resultMatrixLatex0.toStringRanking();\n resultMatrixLatex0.getVisibleColCount();\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n resultMatrixSignificance0.getDefaultColNameWidth();\n resultMatrixSignificance0.toStringKey();\n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML(resultMatrixSignificance0);\n resultMatrixHTML0.assign(resultMatrixSignificance0);\n resultMatrixHTML0.globalInfo();\n resultMatrixHTML0.getDefaultPrintColNames();\n ResultMatrixHTML resultMatrixHTML1 = new ResultMatrixHTML(46, 1);\n resultMatrixHTML1.getEnumerateRowNames();\n resultMatrixHTML1.getDisplayName();\n String[] stringArray0 = new String[3];\n stringArray0[0] = \"show-stddev\";\n stringArray0[1] = \"v\";\n double[][] doubleArray0 = new double[4][5];\n double[] doubleArray1 = new double[7];\n doubleArray1[0] = (double) (-1);\n doubleArray1[1] = (double) (-1);\n doubleArray1[2] = (double) 46;\n doubleArray1[3] = (double) 0;\n doubleArray1[4] = (double) 2;\n doubleArray1[5] = (double) 2;\n doubleArray1[6] = (double) 2;\n doubleArray0[0] = doubleArray1;\n double[] doubleArray2 = new double[3];\n doubleArray2[0] = (double) 1;\n doubleArray2[1] = (double) 0;\n doubleArray2[2] = (double) 1;\n doubleArray0[1] = doubleArray2;\n double[] doubleArray3 = new double[1];\n doubleArray3[0] = (double) 1;\n doubleArray0[2] = doubleArray3;\n double[] doubleArray4 = new double[2];\n doubleArray4[0] = (double) 2;\n doubleArray4[1] = (double) 0;\n doubleArray0[3] = doubleArray4;\n resultMatrixSignificance0.m_StdDev = doubleArray0;\n stringArray0[2] = \"HTML\";\n ResultMatrixLatex.main(stringArray0);\n assertEquals(3, stringArray0.length);\n }", "title": "" }, { "docid": "2cc1f3095f77486f684f4708bcb24cfd", "score": "0.5690651", "text": "@Test(timeout = 4000)\n public void test099() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\" \");\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toClassDetailsString(\".arff\");\n assertEquals(\".arff\\n TP Rate FP Rate Precision Recall F-Measure MCC ROC Area PRC Area Class\\n 0 0 0 0 0 0 ? ? class1\\n 0 0 0 0 0 0 ? ? class2\\nWeighted Avg. NaN NaN NaN NaN NaN NaN NaN NaN \\n\", string0);\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n }", "title": "" }, { "docid": "2a41f348a62a2e05c3f1e2775c370d81", "score": "0.5686134", "text": "@Test\n\tpublic void testAllHamster50() {\n\t\n\t\tHamsterTestDataStore.getInstance().copyTestHamsterfile(\"td6.dat\");\n\t\n\t\tint[] expectedUUID = new int[49];\n\t\t//int expectedUUID = 1996485908;\n\t\texpectedUUID[0] = 200384917;\n\t\texpectedUUID[1] = 908775142;\n\t\texpectedUUID[2] = 1617165367;\n\t\texpectedUUID[3] = 178071944;\n\t\texpectedUUID[4] = 886462169;\n\t\texpectedUUID[5] = 1594852394;\n\t\texpectedUUID[6] = 155758971;\n\t\texpectedUUID[7] = 864149196;\n\t\texpectedUUID[8] = 1572539421;\n\t\texpectedUUID[9] = 1425996485;\n\t\texpectedUUID[10] = 2033140214;\n\t\texpectedUUID[11] = 492800295;\n\t\texpectedUUID[12] = 1099944024;\n\t\texpectedUUID[13] = 1707087753;\n\t\texpectedUUID[14] = 166747834;\n\t\texpectedUUID[15] = 773891563;\n\t\texpectedUUID[16] = 1381035292;\n\t\texpectedUUID[17] = 1988179021;\n\t\texpectedUUID[18] = 447839102;\n\t\texpectedUUID[19] = 2134386710;\n\t\texpectedUUID[20] = 594046791;\n\t\texpectedUUID[21] = 1201190520;\n\t\texpectedUUID[22] = 1808334249;\n\t\texpectedUUID[23] = 267994330;\n\t\texpectedUUID[24] = 875138059;\n\t\texpectedUUID[25] = 1482281788;\n\t\texpectedUUID[26] = 2089425517;\n\t\texpectedUUID[27] = 549085598;\n\t\texpectedUUID[28] = 1156229327;\n\t\texpectedUUID[29] = 695293287;\n\t\texpectedUUID[30] = 1302437016;\n\t\texpectedUUID[31] = 1909580745;\n\t\texpectedUUID[32] = 369240826;\n\t\texpectedUUID[33] = 976384555;\n\t\texpectedUUID[34] = 1583528284;\n\t\texpectedUUID[35] = 43188365;\n\t\texpectedUUID[36] = 650332094;\n\t\texpectedUUID[37] = 1257475823;\n\t\texpectedUUID[38] = 1864619552;\n\t\texpectedUUID[39] = 1403683512;\n\t\texpectedUUID[40] = 2010827241;\n\t\texpectedUUID[41] = 470487322;\n\t\texpectedUUID[42] = 1077631051;\n\t\texpectedUUID[43] = 1684774780;\n\t\texpectedUUID[44] = 144434861;\n\t\texpectedUUID[45] = 751578590;\n\t\texpectedUUID[46] = 1358722319;\n\t\texpectedUUID[47] = 1965866048;\n\t\texpectedUUID[48] = 425526129;\n\t\t\n\t\tHamsterHandle fdptr = new HamsterHandle();\n\t\ttry {\n\t\t\t\n\t\t\tfdptr.fdptr = -1;\n\t\t\tint count = 0;\n\t\t\t\n\t\t\tfor (int uu : expectedUUID) {\n\t\t\t\t\n\t\t\t\tint uuid = hamster.directory(fdptr, null, null);\n\t\t\t\t\n\t\t\t\tassertEquals(uu, uuid);\n\t\t\t\tassertNotEquals(-1, fdptr.fdptr);\n\t\t\t\tassertEquals(5, fdptr.fdptr);\n\t\t\t\texpectedUUID[count] = uuid;\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\t\n\t\t\tassertEquals(49, count);\n\t\t\t\n\t\t\n\t\t\t\n\t\t} catch (HamsterRPCException_NotFound e) {\n\t\t\tfail(\"Unexpected Exception: \" + e.getClass().getSimpleName());\n\t\t} catch (HamsterRPCException_StorageError e) {\n\t\t\tfail(\"Unexpected Exception: \" + e.getClass().getSimpleName());\n\t\t} catch (HamsterRPCException_DatabaseCorrupt e) {\n\t\t\tfail(\"Unexpected Exception: \" + e.getClass().getSimpleName());\n\t\t} catch (IOException e) {\n\t\t\tfail(\"Unexpected Exception: \" + e.getClass().getSimpleName());\n\t\t} catch (HamsterRPCException e) {\n\t\t\tfail(\"Unexpected Exception: \" + e.getClass().getSimpleName());\n\t\t}\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\tint uuid = hamster.directory(fdptr, null, null);\n\t\t\t\n\t\t\tassertEquals(2112073737, uuid);\n\t\t\tassertNotEquals(-1, fdptr.fdptr);\n\t\t\tassertEquals(5, fdptr.fdptr);\n\t\t\t\n\t\t\t\n\t\t} catch (HamsterRPCException_NotFound e) {\n\t\t\tfail(\"Unexpected Exception: \" + e.getClass().getSimpleName());\n\t\t} catch (HamsterRPCException_StorageError e) {\n\t\t\tfail(\"Unexpected Exception: \" + e.getClass().getSimpleName());\n\t\t} catch (HamsterRPCException_DatabaseCorrupt e) {\n\t\t\tfail(\"Unexpected Exception: \" + e.getClass().getSimpleName());\n\t\t} catch (IOException e) {\n\t\t\tfail(\"Unexpected Exception: \" + e.getClass().getSimpleName());\n\t\t} catch (HamsterRPCException e) {\n\t\t\tfail(\"Unexpected Exception: \" + e.getClass().getSimpleName());\n\t\t}\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\t\n\t\t\tint uuid = hamster.directory(fdptr, null, null);\n\t\t\t\n\t\t\tfail(\"Expected HamsterRPCException_NotFound\");\n\t\t\t\n\t\t\t\n\t\t} catch (HamsterRPCException_NotFound e) {\n\t\t\t\n\t\t} catch (HamsterRPCException_StorageError e) {\n\t\t\tfail(\"Unexpected Exception: \" + e.getClass().getSimpleName());\n\t\t} catch (HamsterRPCException_DatabaseCorrupt e) {\n\t\t\tfail(\"Unexpected Exception: \" + e.getClass().getSimpleName());\n\t\t} catch (IOException e) {\n\t\t\tfail(\"Unexpected Exception: \" + e.getClass().getSimpleName());\n\t\t} catch (HamsterRPCException e) {\n\t\t\tfail(\"Unexpected Exception: \" + e.getClass().getSimpleName());\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "7bbacf667195b1fd1dd6d461373d905e", "score": "0.5679936", "text": "@Test\n public void testApertureGN33ISO100Power0Distance5Aperture6Metres(){\n calculationFormulaApertureTest(TestResults.GN33ISO100Power0Distance5Aperture6Metres);\n }", "title": "" }, { "docid": "3f5d8b3412e158c50f4b6327e1ff3d90", "score": "0.56794184", "text": "@Test(timeout = 4000)\n public void test087() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.rootRelativeSquaredError();\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "title": "" }, { "docid": "feeae55a54dd66bd3f690655cf15d0e2", "score": "0.56770974", "text": "@Test(timeout = 4000)\n public void test024() throws Throwable {\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex();\n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV(3, 2);\n int[] intArray0 = new int[3];\n resultMatrixCSV0.toStringRanking();\n intArray0[0] = 2;\n intArray0[1] = 0;\n intArray0[2] = 160;\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n resultMatrixSignificance0.doubleToString(1903.270428, 0);\n }", "title": "" }, { "docid": "8cc33476be1362376e0044dbd19e1a64", "score": "0.5670823", "text": "private double computeEntropy(Instances data) throws Exception {\r\n double [] labelCounter = new double[data.numClasses()];\r\n for(int i=0; i<data.numInstances(); ++i){\r\n labelCounter[(int) data.instance(i).classValue()]++;\r\n }\r\n \r\n double entropy = 0;\r\n for (int i=0; i<labelCounter.length; ++i) {\r\n if (labelCounter[i] > 0) {\r\n double proportion = labelCounter[i]/data.numInstances();\r\n entropy -= (proportion)*Utils.log2(proportion);\r\n }\r\n }\r\n return entropy;\r\n }", "title": "" }, { "docid": "f318991e4a59397f5795734b61bdbb18", "score": "0.56694955", "text": "public void test() {\t\t\r\n\t\t\r\n\t\t/* \r\n\t\t * On répartit les valeurs de l'échantillon dans k classes distinctes \r\n\t\t * et on calcule les effectifs\r\n\t\t */\r\n\t\t// création des classes\r\n\t\t\r\n\t\tif (largeurClasse != null) {\r\n\t\t\tDouble max = Collections.max(data);\r\n\t\t\tdataSorted = new Ensemble(data, 0.0, max, largeurClasse);\r\n\t\t} else {\r\n\t\t\tdataSorted = new Ensemble(data, nbClasses, gen.getMin(), this.max != null ? this.max : gen.getMax());\t\t\t\r\n\t\t}\r\n\t\tnbClasses = dataSorted.getEffectifsCumules().size();\r\n\t\t\r\n\t\t// on calcule Q\r\n\t\tDouble q = 0.0;\r\n\t\tfor (int i = 0; i < nbClasses; i++) {\r\n\t\t\tDouble valeurTheorique = getEffectifTheorique(dataSorted.getEffectifsCumules().get(i).getBorneDroite(), dataSorted.getNbTotalElements(), true);\r\n\t\t\tDouble difference = dataSorted.getEffectifsCumules().get(i).getEffectif() - valeurTheorique; \r\n\t\t\t//UILogger.log(\"diff = \"+difference);\r\n\t\t\t\r\n\t\t\tdifference = Math.pow(difference, 2);\r\n\t\t\tq += (difference / valeurTheorique);\r\n\t\t}\r\n\r\n\t\t/*\r\n\t\t * précision :\r\n\t\t * 0 => 10%\r\n\t\t * 1 => 5%\r\n\t\t * 2 => 2.5%\r\n\t\t * 3 => 1%\r\n\t\t */\r\n\t\tint precision = 1;\r\n\t\t\r\n\t\t// calcul du degré de liberté\r\n\t\tint mu = nbClasses - 1 - gen.getNbParametre();\r\n\t\tif (q > khiTable[mu][precision]) {\r\n\t\t\tUILogger.log(\"hypothèse réfutée : le générateur ne suit pas la loi \"+gen.getNomLoi()+\"\\n\");\r\n\t\t} else {\r\n\t\t\tUILogger.log(\"hypothèse acceptée : le générateur suit la loi \"+gen.getNomLoi()+\"\\n\");\r\n\t\t}\r\n\t\tUILogger.log(\"Q == \"+q+\"\\nQ théorique == \"+khiTable[mu][precision]+\"\\ndegré de liberté == \"+mu);\r\n\t\t//UILogger.log(\"Q == \"+q);\r\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "c12112a939e55d318d87455fa87eecca", "score": "0.5668025", "text": "@Test(timeout = 4000)\n public void test33() throws Throwable {\n NaiveBayesMultinomialText naiveBayesMultinomialText0 = new NaiveBayesMultinomialText();\n InputMappedClassifier inputMappedClassifier0 = new InputMappedClassifier();\n Capabilities capabilities0 = inputMappedClassifier0.getCapabilities();\n TestInstances testInstances0 = TestInstances.forCapabilities(capabilities0);\n EvoSuiteFile evoSuiteFile0 = new EvoSuiteFile(\"Capabilities.props\");\n FileSystemHandling.appendStringToFile(evoSuiteFile0, \"Set splitting criterion based on the residuals of LogitBoost. There are two possible splitting criteria for LMT: the default is to use the C4.5 splitting criterion that uses information gain on the class variable. The other splitting criterion tries to improve the purity in the residuals produces when fitting the logistic regression functions. The choice of the splitting criterion does not usually affect classification accuracy much, but can produce different trees.\");\n Instances instances0 = testInstances0.generate(\"\");\n inputMappedClassifier0.getModelHeader(instances0);\n naiveBayesMultinomialText0.buildClassifier(instances0);\n naiveBayesMultinomialText0.toString();\n LinearNNSearch linearNNSearch0 = new LinearNNSearch(instances0);\n double[] doubleArray0 = new double[0];\n SparseInstance sparseInstance0 = new SparseInstance((-1), doubleArray0);\n Instance instance0 = linearNNSearch0.nearestNeighbour(sparseInstance0);\n SystemInUtil.addInputLine(\".arff\");\n naiveBayesMultinomialText0.distributionForInstance(instance0);\n naiveBayesMultinomialText0.tokenizeInstance(instance0, true);\n naiveBayesMultinomialText0.getOptions();\n naiveBayesMultinomialText0.toString();\n }", "title": "" }, { "docid": "225c166b7997361f9445f9a99ff1e377", "score": "0.5656312", "text": "public void test0() throws NoSuchAlgorithmException, IOException {\n \n Random rand = new Random();\n long seed = System.nanoTime();\n System.out.println(\"SEED=\" + seed);\n rand.setSeed(seed);\n \n int n = 7;\n \n int factor = 200;//100000;\n int nP = (int)MiscMath0.factorial(n);\n int r;\n Map<Integer, Integer> map = new HashMap<Integer, Integer>();\n for (int i = 0; i < factor*nP; ++i) {\n //r = Math.round(nP*rand.nextDouble());\n //r = (int)Math.round(nP*rand.nextDouble());\n r = rand.nextInt(nP);\n if (map.containsKey(r)) {\n map.put(r, map.get(r) + 1);\n } else {\n map.put(r, 1);\n }\n }\n System.out.printf(\"number of unique random keys = %d, number of draws = %d, expected %d (%.3f)\\n\", \n map.size(), factor*nP, nP, (float)map.size()/(float)nP);\n System.out.flush();\n \n int nUniqueGenerated = map.size();\n \n // calculate the median and IQR or mean and st.dev or use MAD\n //median of absolute deviation of x, median, min, and max.\n double[] count = new double[nUniqueGenerated];\n \n Set<Integer> keySet = map.keySet();\n int j = 0;\n for (int key : keySet) {\n count[j] = map.get(key);\n ++j;\n }\n \n // histogram of number of repeated permutations\n TIntIntMap countMap = new TIntIntHashMap();\n int c;\n for (j = 0; j < count.length; ++j) {\n c = (int)count[j];\n if (countMap.containsKey(c)) {\n countMap.put(c, countMap.get(c) + 1);\n } else {\n countMap.put(c, 1);\n }\n }\n int[] k2 = countMap.keys();\n int[] c2 = new int[k2.length];\n Arrays.sort(k2);\n for (j = 0; j < k2.length; ++j) {\n c2[j] = countMap.get(k2[j]);\n }\n // as the number of points increases the uniform distribution\n // approaches a Gaussian distribution.\n PolygonAndPointPlotter plotter = new PolygonAndPointPlotter();\n //addPlot(double[] xPoints, double[] yPoints, double[] xPolygon, double[] yPolygon, String plotLabel)\n plotter.addPlot(k2, c2, null, null, \"f=\" + factor + \" rand\");\n plotter.writeFile(\"rand_hist_\" + factor);\n \n Arrays.sort(count);\n \n double[] mADMinMax = MiscMath0.calculateMedianOfAbsoluteDeviation(count);\n double kMAD = 1.4826;\n double s = kMAD*mADMinMax[0];\n double r0 = mADMinMax[1] - 3*s;\n double r1 = mADMinMax[1] + 3*s;\n \n double[] medianAndIQR = MiscMath0.calcMedianAndIQR(count);\n double[] avgAndStDev = MiscMath0.getAvgAndStDev(count);\n \n System.out.printf(\"median of absolute deviation of x, the median, the min, and the max = \\n %s with r0=%.3f r1=%.3f\\n\", \n FormatArray.toString(mADMinMax, \"%.3f\"), r0, r1);\n \n System.out.printf(\"medianAndIQR = %s\\n\", \n FormatArray.toString(medianAndIQR, \"%.3f\"));\n \n System.out.printf(\"avgAndStDev = %s\\n\", \n FormatArray.toString(avgAndStDev, \"%.3f\"));\n \n }", "title": "" }, { "docid": "3317dce3c4bb609939c861f391d81fd7", "score": "0.56560045", "text": "@Override\n\tpublic int totalTest() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "cdf749b8afa5da57712b84f3b282186b", "score": "0.5644996", "text": "@Test\n\tpublic void RecoveryReallyHurt()\n\t{\n\t\tint maxlpts =30;\n\t\tint cutlpts =20;\n\t\tint result = rb.calculateRecovery(cutlpts,maxlpts);\n\t\tint guessResult = (int)Math.ceil(cutlpts*(1+percent));\n\t\tassertEquals(result,guessResult);\n\t}", "title": "" }, { "docid": "f8064048430d2af4f6cb6e1607030c06", "score": "0.56300557", "text": "@Test(timeout = 4000)\n public void test08() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.setOutputFormat();\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n }", "title": "" }, { "docid": "9d30791efb90f53a575e40953d7f3df6", "score": "0.56285423", "text": "@Test(timeout = 4000)\n public void test026() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.falsePositiveRate((-2));\n assertEquals(0.0, double0, 0.01);\n }", "title": "" }, { "docid": "5f2e4e1805a13fb9b19ffb1505cffbae", "score": "0.5627982", "text": "@Test\n\tpublic void test8() \n\t{\n\t\tint[] dice = {3,3,3,1,1,1,-1,-1};\n\t\tassertEquals(300, P1.C_Score(dice, null, 5, 0));\n\t}", "title": "" }, { "docid": "9f679c421c797faefd1823623383bf45", "score": "0.56219256", "text": "@Test(timeout = 4000)\n public void test069() throws Throwable {\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex();\n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML();\n ResultMatrixHTML resultMatrixHTML1 = new ResultMatrixHTML();\n resultMatrixHTML0.setCountWidth(367);\n assertEquals(367, resultMatrixHTML0.getCountWidth());\n \n ResultMatrixHTML resultMatrixHTML2 = new ResultMatrixHTML(2, 0);\n ResultMatrixHTML resultMatrixHTML3 = new ResultMatrixHTML();\n resultMatrixHTML3.toStringKey();\n resultMatrixHTML3.setCount(0, 1498.2644628);\n resultMatrixHTML1.toStringKey();\n assertEquals(2, resultMatrixHTML1.getDefaultStdDevPrec());\n }", "title": "" }, { "docid": "ddc942cc75b4758e507b96e83824dc16", "score": "0.5621536", "text": "@Test(timeout = 4000)\n public void test019() throws Throwable {\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex();\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot(2, 0);\n resultMatrixGnuPlot0.setPrintRowNames(true);\n resultMatrixGnuPlot0.getOptions();\n resultMatrixGnuPlot0.setRowNameWidth((-3697));\n int int0 = ResultMatrix.SIGNIFICANCE_LOSS;\n assertEquals(2, int0);\n }", "title": "" }, { "docid": "b98856904117f746443748e540380eaf", "score": "0.56164885", "text": "@Test(timeout = 4000)\n public void test091() throws Throwable {\n int[][] intArray0 = new int[7][7];\n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML();\n resultMatrixHTML0.setRanking(intArray0);\n resultMatrixHTML0.getSignificanceCount(97, 97);\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n }", "title": "" }, { "docid": "e91324a13e3e7deca54d72f6450752c6", "score": "0.5615862", "text": "@Test\n public void Test13()\n {\n IStrategy s = new Random();\n int attacks = s.getAttackAttempts();\n Assert.assertNotEquals(0, attacks);\n }", "title": "" }, { "docid": "9d1b33010d390c942830f8a9cb3a50b7", "score": "0.560956", "text": "@Test(timeout = 4000)\n public void test0() throws Throwable {\n ConstantPoolGen constantPoolGen0 = new ConstantPoolGen();\n constantPoolGen0.getSize();\n }", "title": "" }, { "docid": "ad4e97c5adce564239ef0138fc44bd32", "score": "0.56093186", "text": "public void testDefaults() {\n final double homo = 0.66;\n final double hetero = 1 - homo;\n assertEquals(0.0003, mParams.genomeSnpRate(true));\n assertEquals(0.00031, mParams.genomeSnpRate(false));\n assertEquals(0.00008, mParams.genomeMnpBaseRate(true));\n assertEquals(0.00002, mParams.genomeMnpBaseRate(false));\n assertEquals(0.00008 / GenomePriorParams.AVERAGE_HETERO_MNP_LENGTH, mParams.genomeMnpEventRate(true));\n assertEquals(0.00002 / GenomePriorParams.AVERAGE_HOMO_MNP_LENGTH, mParams.genomeMnpEventRate(false));\n assertEquals(homo, mParams.genomeIndelEventFraction());\n assertEquals(0.000042 * hetero, mParams.genomeIndelEventRate(true));\n assertEquals(0.000042 * homo, mParams.genomeIndelEventRate(false));\n final double[] indelDist = mParams.genomeIndelDistribution();\n assertEquals(11, indelDist.length);\n assertEquals(0.566, indelDist[0]);\n assertEquals(0.226, indelDist[1]);\n assertEquals(0.083, indelDist[2]);\n assertEquals(0.007, indelDist[10]);\n final double[] mnpDist = mParams.genomeMnpDistribution();\n assertEquals(8, mnpDist.length);\n assertEquals(0.00, mnpDist[0]);\n assertEquals(0.00, mnpDist[1]);\n assertEquals(0.40, mnpDist[2]);\n assertEquals(0.20, mnpDist[3]);\n assertEquals(0.10, mnpDist[4]);\n assertEquals(0.10, mnpDist[5]);\n assertEquals(0.10, mnpDist[6]);\n assertEquals(0.10, mnpDist[7]);\n }", "title": "" }, { "docid": "2892346ba6ffadb8080b813e6c6816dd", "score": "0.5608832", "text": "@Test(timeout = 4000)\n public void test21() throws Throwable {\n Discretize discretize0 = new Discretize(\"\");\n discretize0.getOptions();\n double[][] doubleArray0 = new double[6][2];\n discretize0.m_CutPoints = doubleArray0;\n int int0 = 2;\n String[] stringArray0 = new String[7];\n stringArray0[0] = \"\";\n stringArray0[3] = \"h0a.w;rJn4ik\";\n stringArray0[4] = \"\";\n discretize0.setBins((-2084322361));\n Filter.runFilter(discretize0, stringArray0);\n discretize0.getBinRangesString(2);\n discretize0.setAttributeIndices(\"A3U>S^ rv&kE0~\");\n discretize0.setFindNumBins(false);\n // Undeclared exception!\n try { \n discretize0.getBinRangesString((-2084322361));\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // -2084322361\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "title": "" }, { "docid": "5908aac6f98525740e0e7856b43676b2", "score": "0.56040853", "text": "@Test(timeout = 4000)\n public void test095() throws Throwable {\n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML();\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n \n int[] intArray0 = new int[9];\n intArray0[0] = 2;\n intArray0[1] = 2;\n intArray0[2] = 1;\n intArray0[3] = 1;\n intArray0[4] = 0;\n intArray0[5] = 1;\n intArray0[6] = 5;\n intArray0[7] = 2;\n String[] stringArray0 = new String[1];\n stringArray0[0] = \" \";\n ResultMatrixSignificance.main(stringArray0);\n resultMatrixHTML0.getDefaultRowNameWidth();\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot(1, 2);\n resultMatrixGnuPlot0.setStdDevWidth(2);\n resultMatrixHTML0.getEnumerateColNames();\n resultMatrixGnuPlot0.setMean(1222, 5, 2);\n assertEquals(2, resultMatrixGnuPlot0.getStdDevWidth());\n }", "title": "" }, { "docid": "c27c9f192567cd57b37311d86d5b7fdf", "score": "0.5602454", "text": "public final void testCountProportionOfRedundancy() {\n //fail(\"Not yet implemented\");\n }", "title": "" }, { "docid": "37023366f320018625a59b97038f662d", "score": "0.5601991", "text": "@Test(timeout = 4000)\n public void test166() throws Throwable {\n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML();\n resultMatrixHTML0.LOSS_STRING = \"79py$=Zkt@_^>-}\";\n ResultMatrixGnuPlot.main((String[]) null);\n resultMatrixHTML0.globalInfo();\n int int0 = resultMatrixHTML0.getMeanWidth();\n assertEquals(0, int0);\n \n resultMatrixHTML0.setStdDev((-2501), (-2501), 0.0);\n resultMatrixHTML0.getCountWidth();\n resultMatrixHTML0.getAverage(2);\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n }", "title": "" }, { "docid": "babee251658f7473a9d711b217a1f3d8", "score": "0.5601489", "text": "@Test(timeout = 4000)\n public void test09() throws Throwable {\n Discretize discretize0 = new Discretize();\n String string0 = discretize0.attributeIndicesTipText();\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals(\"Specify range of attributes to act on. This is a comma separated list of attribute indices, with \\\"first\\\" and \\\"last\\\" valid values. Specify an inclusive range with \\\"-\\\". E.g: \\\"first-3,5,6-10,last\\\".\", string0);\n }", "title": "" }, { "docid": "0968df1df0d2761248d852f3cbc57997", "score": "0.55998284", "text": "@Test(timeout = 4000)\n public void test103() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n CostSensitiveClassifier costSensitiveClassifier0 = new CostSensitiveClassifier();\n CostMatrix costMatrix0 = costSensitiveClassifier0.getCostMatrix();\n Evaluation evaluation0 = null;\n try {\n evaluation0 = new Evaluation(instances0, costMatrix0);\n fail(\"Expecting exception: Exception\");\n \n } catch(Throwable e) {\n //\n // Cost matrix not compatible with data!\n //\n verifyException(\"weka.classifiers.Evaluation\", e);\n }\n }", "title": "" }, { "docid": "f14fc8bf837a671ae6089461e6cc1f7d", "score": "0.55970544", "text": "@Test\n public void testSuccessfulCases() {\n //test cac tnh huong tham so dua vcho ham van test 1 cach tu te\n //Assert.assertEquals(30, 40);\n Assert.assertEquals(30, 30);\n Assert.assertEquals(1, MathUtil.computerFactorial(0));\n Assert.assertEquals(1, MathUtil.computerFactorial(1));\n Assert.assertEquals(2, MathUtil.computerFactorial(2));\n Assert.assertEquals(6, MathUtil.computerFactorial(3));\n Assert.assertEquals(24, MathUtil.computerFactorial(4));\n Assert.assertEquals(120, MathUtil.computerFactorial(5));\n }", "title": "" }, { "docid": "638fd2a0d0db5b97691996ffc567d7df", "score": "0.55958414", "text": "@Test(timeout = 4000)\n public void test04() throws Throwable {\n NaiveBayesMultinomialText naiveBayesMultinomialText0 = new NaiveBayesMultinomialText();\n EvoSuiteFile evoSuiteFile0 = new EvoSuiteFile(\"/home/ubuntu/evosuite_readability_gen/projects/107_weka\");\n FileSystemHandling.appendStringToFile(evoSuiteFile0, \"R`HUEbtJ*.V\");\n naiveBayesMultinomialText0.m_minWordP = 2278.507535849;\n InputMappedClassifier inputMappedClassifier0 = new InputMappedClassifier();\n naiveBayesMultinomialText0.normalizeDocLengthTipText();\n Random.setNextRandom((-165));\n System.setCurrentTimeMillis((-165));\n }", "title": "" }, { "docid": "1bc3aeaf66276a68f3c45b214826f211", "score": "0.5587103", "text": "@Test\n\tpublic void test9() \n\t{\n\t\tint[] dice = {5,5,5,-1,-1,-1,-1,-1};\n\t\tassertEquals(500, P1.C_Score(dice, null, 4, 0));\n\t}", "title": "" }, { "docid": "a465bc1bf41310392efe9882b24e4b8c", "score": "0.5584852", "text": "@Test\n void distributionTest() {\n BaggingMode.SOFT_VOTE.computeDensity(dictionary, null, results, classes, densities);\n assertEquals(1.1 / 3, densities.getDouble(0, \"a\"));\n assertEquals(0.2 / 3, densities.getDouble(0, \"b\"));\n assertEquals(1.7 / 3, densities.getDouble(0, \"c\"), 1e-12);\n\n assertEquals(\"c\", classes.getLabel(0));\n }", "title": "" } ]
46fd2d0e737325be33e9cc64fc589c72
this way lets us pass the predicate
[ { "docid": "56ca86e0c98084d035915f18d49a4b96", "score": "0.0", "text": "public static int totalAssetValues(final List<Asset> assets, \n final Predicate<Asset> assetSelector) {\n return assets.stream()\n .filter(assetSelector)\n .mapToInt(Asset::getValue)\n .sum();\n }", "title": "" } ]
[ { "docid": "88b737a77603fc1befe25cdf2fbaf038", "score": "0.68331957", "text": "private void mai() {\n\r\n\t\tPredicate<T>\r\n\t}", "title": "" }, { "docid": "acc942a2bf18591dc7a0a0baa452b722", "score": "0.65588564", "text": "Predicate createPredicate();", "title": "" }, { "docid": "24a64698eb19191b50ad4145da1e56ff", "score": "0.64781505", "text": "Predicate getPredicate();", "title": "" }, { "docid": "1f8140fc870947bf2116f39f79308622", "score": "0.6426933", "text": "private Predicate<Integer> perfectFilter() {\n throw new NotImplementedException();\n }", "title": "" }, { "docid": "2fce85a4320a48f481528a915afc7767", "score": "0.633793", "text": "@Override\n\tpublic Object accessPredicate(Predicate p, Object arg) {\n\t\tfor (Terms t: p.getTerms()){\n\t\t\tt.take(this, arg);\n\t\t}\n\t\treturn p;\n\t}", "title": "" }, { "docid": "8e4b02ec08008ae9dd1afcfa5ef6a58a", "score": "0.63141125", "text": "public List<Customer> getCustomersBy(Predicate<Customer> predicate){\n\nreturn this.stream().filter(predicate).collect(Collectors.<Customer>toList());\n}", "title": "" }, { "docid": "325c6502aa8c8fa84989458de49954e0", "score": "0.63053274", "text": "private Predicate<Integer> primeFilter() {\n throw new NotImplementedException();\n }", "title": "" }, { "docid": "b967af664200712a03b3a8398080ff6a", "score": "0.6276988", "text": "Boolean ormap(Predicate<X> p);", "title": "" }, { "docid": "1a0ea30aa41ab081bbfa8346cded7fef", "score": "0.6207284", "text": "private Predicate<Integer> oddFilter() {\n throw new NotImplementedException();\n }", "title": "" }, { "docid": "bd62835df2a1ec39102d494c99adf794", "score": "0.6172822", "text": "private void predicateExample2(){\n\n List<Integer> numbers = Lists.newArrayList(1, 2, 3, 6, 10, 34, 57, 89);\n Predicate<Integer> acceptEven = new Predicate<Integer>() {\n @Override\n public boolean apply(Integer number) {\n return (number % 2) == 0;\n }\n };\n List<Integer> evenNumbers = Lists.newArrayList(Collections2.filter(numbers, acceptEven));\n System.out.println(evenNumbers);\n\n Integer found = Collections.binarySearch(evenNumbers, 34);\n System.out.println(found);\n\n }", "title": "" }, { "docid": "6358e75563ebb77fe6c3854db14a86fb", "score": "0.6169027", "text": "@Test \r\n public void a_predicate1() {\r\n Predicate<String> pred = p -> p.length() > 4; \r\n\r\n assertTrue(pred.test(\"abcde\"));\r\n assertFalse(pred.test(\"abcd\"));\r\n }", "title": "" }, { "docid": "ff646aafe17fe29e50ceea6d9b81818c", "score": "0.6133265", "text": "public Predicate getPredicate()\n {\n return predicate;\n }", "title": "" }, { "docid": "a832e63b55cb880e891930405b961e55", "score": "0.6131157", "text": "void setPredicate(final Resource predicate) {\n\t\tthis.predicate = predicate;\n\t}", "title": "" }, { "docid": "297d23701945d86afe582734c6584271", "score": "0.60936767", "text": "public static void main(String[] args) {\n\t\tPredicate<Integer> predicate = (i) -> i > 10;\r\n\t\tSystem.out.println(\"predicate.test(7) : \" + predicate.test(7));\r\n\t\tSystem.out.println(\"predicate.test(13) : \" + predicate.test(13));\r\n\t\t\r\n\t\tPredicateTest pr = new PredicateTest();\r\n\t\tSystem.out.println(\"Normal valuation : \" + pr.test(7));\r\n\t\t\r\n\t\tPredicate<String> predicateString = (s) -> s.length()>5;\r\n\t\tSystem.out.println(\"predicateString.test(\\\"hsgfjksdgfd\\\") : \"+predicateString.test(\"hsgfjksdgfd\"));\r\n\t\tSystem.out.println(\"predicateString.test(\\\"asda\\\") : \"+predicateString.test(\"asda\"));\r\n\t\t\r\n\t\tPredicate<Collection> predCollection = c -> c.isEmpty();\r\n\t\tSystem.out.println(\"predCollection new : \"+predCollection.test(new ArrayList<String>()));\r\n\t\tArrayList<String> array = new ArrayList<>();\r\n\t\tarray.add(\"Test\");\r\n\t\tSystem.out.println(\"predCollection new : \"+predCollection.test(array));\r\n\t\t\r\n\t\t/**\r\n\t\t * All values are zeros\r\n\t\t */\r\n//\t\tPredicate Joining\r\n//\t\tnegate() , and(), or() -- All these methods are default methods.\r\n//\t\tAlso one static method : isEqual\r\n\t\t\t\t\r\n\t\tSystem.out.println(\"predicateString.test(\\\"asda\\\") : \"+predicateString.negate().test(\"asda\"));\r\n\t\t\r\n\t\tint[] inpArr = {1,2,3,7,10,14,15};\r\n\t\tPredicate<Integer> predGreater10 = i -> i>10;\r\n\t\tPredicate<Integer> predIsEven = i -> i%2 == 0;\r\n\t\t\r\n\t\tCheckPredicate cp = (inp,pred) -> {\r\n\t\t\tfor(int i : inp) {\r\n\t\t\t\tif(pred.test(i)) {\r\n\t\t\t\t\tSystem.out.println(i);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t};\r\n\t\tSystem.out.println(\"predicate : predIsEven : \");\r\n\t\tcp.checkPredicteOfArray(inpArr, predIsEven);\r\n\t\tSystem.out.println(\"predicate : predGreater10 : \");\r\n\t\tcp.checkPredicteOfArray(inpArr, predGreater10);\r\n\t\tSystem.out.println(\"predicate Negate : predIsEven : \");\r\n\t\tcp.checkPredicteOfArray(inpArr, predIsEven.negate());\r\n\t\tSystem.out.println(\"predicate Negate : predGreater10 : \");\r\n\t\tcp.checkPredicteOfArray(inpArr, predGreater10.negate());\r\n\t\tSystem.out.println(\"predicate : predIsEven : predGreater10 \");\r\n\t\tcp.checkPredicteOfArray(inpArr, predIsEven.and(predGreater10));\r\n\t\tSystem.out.println(\"predicate : predIsEven : predGreater10 : negate\");\r\n\t\tcp.checkPredicteOfArray(inpArr, predIsEven.and(predGreater10).negate());\r\n\t\t\r\n\t\tSystem.out.println(\"predicate : predIsEven : predGreater10 : or\");\r\n\t\tcp.checkPredicteOfArray(inpArr, predIsEven.or(predGreater10));\r\n\t\t\r\n\t\t//********************************************************************************\r\n\t\tCheckPredicateStringArray checkPredicateStringArray = (s,p) -> {\r\n\t\t\tint count = 1;\r\n\t\t\t\r\n\t\t\tfor(String string : s) {\r\n\t\t\t\tif(p.test(string)) {\r\n\t\t\t\t\tSystem.out.print(string+\" \"+count+++\", \");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"predStartWithK Values : \"+ (s.length - count));\r\n\t\t};\r\n\t\t\r\n\t\tPredicate<String> predicateIsNull = s -> s == null;\r\n\t\tPredicate<String> predicateIsEmpty = s -> s.isEmpty();\r\n\t\tPredicate<String> predStartWithK = s -> s.charAt(0) == 'K';\r\n\t\t\r\n\t\tString[] array1 = {\"Karthik\",\"sfsf\",null,\"Ksfsf\",\"sasKsad\",\"\",null,\"\"};\r\n\t\tcheckPredicateStringArray.checkPredicte(array1, \r\n\t\t\t\tpredicateIsNull.negate().and(predicateIsEmpty.negate()).and(predStartWithK));\r\n\t\t//********************************************************************************\r\n//\t\tPredicate<User> checkPassPredicate = user -> \r\n//\t\t\tuser.userName.equals(\"rojan\") && user.password.equals(\"java\");\r\n//\t\tScanner scanner = new Scanner(System.in);\r\n//\t\tSystem.out.println(\"Enter UserName :\");\r\n//\t\tString userName = scanner.next();\r\n//\t\tSystem.out.println(\"Enter Password :\");\r\n//\t\tString password = scanner.next();\r\n//\t\tUser user = new User(userName, password);\r\n//\t\tif(checkPassPredicate.test(user)) {\r\n//\t\t\tSystem.out.println(\"Successfully logged in : Valid User\");\r\n//\t\t}else {\r\n//\t\t\tSystem.out.println(\"Invalid User Alert. Please login again\");\r\n//\t\t}\r\n\t\t\r\n\t\t//***********************************************************************************\r\n\t\t\r\n\t\tPredicate<SoftwareEngineer> softwareEngPredicate = s -> s.age>18 && s.hasGirlFriend;\r\n\t\t\r\n\t\tSoftwareEngineer[] softEngs = {new SoftwareEngineer(\"name\", 19, true)};\r\n\t\tfor(SoftwareEngineer eg : softEngs) {\r\n\t\t\tif(softwareEngPredicate.test(eg)) {\r\n\t\t\t\tSystem.out.println(\"Allowed : \"+ eg);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//*************************************************************************************\r\n\t\t\r\n//\t\tPredicate isEquals() method -- static method -- for equality check of an object\r\n\t\tPredicate<String> staticPredicate = Predicate.isEqual(\"ROJAN\");\r\n\t\tSystem.out.println(\"staticPredicate : ROJAN \"+staticPredicate.test(\"ROJAN\"));\r\n\t\tSystem.out.println(\"staticPredicate : TESTER \"+staticPredicate.test(\"TESTER\"));\r\n\t}", "title": "" }, { "docid": "9083dfdb510d6e634fa5fed9d4a13635", "score": "0.60773647", "text": "public static Predicate<Entity> b(Entity entity) {\n/* 69 */ return entity1 -> {\n/* */ while (entity1.isPassenger()) {\n/* */ entity1 = entity1.getVehicle();\n/* */ if (entity1 != entity) {\n/* */ continue;\n/* */ }\n/* */ return false;\n/* */ } \n/* */ return true;\n/* */ };\n/* */ }", "title": "" }, { "docid": "f00fe01883ddfd3ab5bdbfa142f7d875", "score": "0.6063871", "text": "void addPredicate(SearchPredicate predicate);", "title": "" }, { "docid": "05b25e4da575328dea2dd57c1e9deda6", "score": "0.60485905", "text": "@Nonnull public static <T> Function<T,Boolean> forPredicate(\n @Nonnull @ParameterName(name=\"predicate\") final Predicate<? super T> predicate) {\n return predicate::test;\n }", "title": "" }, { "docid": "45150fa1480edf08be188eaf73093908", "score": "0.6045692", "text": "public static <T> Predicate<T> predicate(Predicate<T> predicate) {\n return predicate;\n }", "title": "" }, { "docid": "4ccb14c6cd3e3ca3749a2b68a396da2c", "score": "0.60371983", "text": "interface CheckPredicate{\r\n\tpublic void checkPredicteOfArray(int[] array, Predicate<Integer> predicate);\r\n}", "title": "" }, { "docid": "52f66764551a4d8f05afd59bd98277cf", "score": "0.60332423", "text": "private SpeedmentPredicate<ENTITY> toEntityPredicate(Predicate<E> predicate) {\n final EnumSet<E> valid = evaluate(predicate);\n switch (valid.size()) {\n case 0 : return new AlwaysFalsePredicate<>(this);\n case 1 : return new ReferenceEqualPredicate<>(this, valid.iterator().next());\n default : return new ReferenceInPredicate<>(this, valid);\n }\n }", "title": "" }, { "docid": "c0f890a071e1e93d92a6c971dafdcd84", "score": "0.60201454", "text": "@Override\n protected Void visitInPredicate(InPredicate inPredicate, Context context)\n {\n super.visitInPredicate(inPredicate, Context.newUnprunableContext(context));\n\n return null;\n }", "title": "" }, { "docid": "7a9ef61eec4716ee5394fbbc78522327", "score": "0.6009596", "text": "@Test \r\n public void a_predicate2() {\r\n Predicate<String> pred = p -> p.isEmpty(); \r\n\r\n assertTrue(pred.test(\"\"));\r\n assertFalse(pred.test(\"a\"));\r\n }", "title": "" }, { "docid": "c0d72c043f00cf6370eb098d7d0408e3", "score": "0.59675634", "text": "public static void main(String[] args) {\n Predicate<Integer> lesserthan = i -> (i < 18); //predicate is for testing function interface(just one abstract method)\n \n // Calling Predicate method \n System.out.println(lesserthan.test(10));\n \n Predicate<Integer> greaterThanTen = (i) -> i > 10; \n \n // Creating predicate \n Predicate<Integer> lowerThanTwenty = (i) -> i < 20; \n boolean result = greaterThanTen.and(lowerThanTwenty).test(15); \n System.out.println(result); \n \n // Calling Predicate method \n boolean result2 = greaterThanTen.and(lowerThanTwenty).negate().test(15); \n System.out.println(result2); \n \n\t\n\t}", "title": "" }, { "docid": "37379265e67c999534f8023b67fbdf6f", "score": "0.59525764", "text": "public static void main(String[] args) {\r\n\t\t\r\nPredicate<Integer> p=i->i>10;\r\np.test(100);\r\nSystem.out.println(p.test(100)); //true\r\nSystem.out.println(p.test(5)); //false\r\n\r\nPredicate<String> p1=s->s.length()>5;\r\nSystem.out.println(p1.test(\"fhbfgbbbc\")); //true \r\nSystem.out.println(p1.test(\"fhb\")); //false\r\n\r\nPredicate<Collection> p2=c->c.isEmpty();\r\nArrayList l=new ArrayList();\r\nl.add(\"as\");\r\nSystem.out.println(p2.test(l)); //false\r\n\r\nArrayList l1=new ArrayList();\r\n\r\nSystem.out.println(p2.test(l1)); //true\r\n}", "title": "" }, { "docid": "7f32a496f95a0da685bd16f5fc7b9b2d", "score": "0.594229", "text": "public Element visit(Predicate p) {\n isTopLevel = false;\n isVoided = false;\n isBound = false;\n isLastElement = false;\n boolean predicate = isPredicate;\n isPredicate = true;\n\n p.element = process(p.element, false);\n\n isPredicate = predicate;\n return p;\n }", "title": "" }, { "docid": "ea49d3edc463bea8a5d26e453bf33784", "score": "0.59341496", "text": "protected abstract boolean filter ( );", "title": "" }, { "docid": "7abd57cbf18ff42f0803caf954aa2f69", "score": "0.59168106", "text": "private static void performConditionally(List<Person> people, Predicate<Person> predicate,\n\t\t\tConsumer<Person> consumer) {\n\t\tfor (Person p : people) {\n\t\t\tif (predicate.test(p)) {\n\t\t\t\tconsumer.accept(p);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "ce48367751a8bc6f84d1ad1d65825d31", "score": "0.58829844", "text": "@FunctionalInterface\npublic interface ApplePredicate {\n\n boolean test(Apple apple);\n\n}", "title": "" }, { "docid": "8a6146a703bc4ede4e2ed8a27666a8f0", "score": "0.5874469", "text": "boolean ormap(IPredicate<T> pred);", "title": "" }, { "docid": "4a5a17d62a141efd7c97705031015fdd", "score": "0.5856061", "text": "public interface MockPredicate<T> {\r\n\t\tpublic boolean test(T t);\r\n\t}", "title": "" }, { "docid": "aed3c6ab1ddda0f004172f33460ae282", "score": "0.58481336", "text": "@Override\n\tpublic IPredicate getOrConstructPredicate(final IPredicate predicate) {\n\t\tif (mPredicates.contains(predicate)) {\n\t\t\treturn predicate;\n\t\t}\n\t\treturn getOrConstructPredicate(predicate.getFormula());\n\t}", "title": "" }, { "docid": "b07bd221cf046d98d66d1afc92c3f7b4", "score": "0.5780991", "text": "@Override\n public void onNext(T t) {\n if (predicate.test(t)) {\n subscriber.onNext(t);\n } else {\n assert subscription != null;\n subscription.request(1); // Since we filtered one item.\n }\n }", "title": "" }, { "docid": "e1e6c4bfb9a622de560950aa88dfa086", "score": "0.5754411", "text": "private static List<Val> ownFilter(List<Val> vals, ExampleValPredicate predicate) {\n\n List<Val> result = new ArrayList<>();\n\n for (Val v : vals) {\n if (predicate.test(v)) {\n result.add(v);\n }\n }\n\n return result;\n }", "title": "" }, { "docid": "bdd72d5d781db1b8ae1b66846254b4de", "score": "0.57229936", "text": "private void predicado() {\n\t\tPredicate<Integer> menorQue5=(valor)->{return valor<5;};\n\t\tSystem.out.println(menorQue5.test(10));\n\t}", "title": "" }, { "docid": "882a6fcf6074866db19244afce1447a4", "score": "0.57200265", "text": "@Override\r\n\tpublic Set<T> filter(Predicate<T> predicate) {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "e57276cba99f3052c444e2997e33fa0c", "score": "0.5707937", "text": "public interface Predicate {\n boolean evaluate() throws Exception;\n }", "title": "" }, { "docid": "9c162257d0fcf2ded668d134f0ca4922", "score": "0.56765276", "text": "@Test\n public void predicateDemo() {\n Predicate<Student> maleStudent = s -> s.age >= 20 && \"male\".equals(s.gender);\n Predicate<Student> femaleStudent = s -> s.age > 15 && \"female\".equals(s.gender);\n\n Function<Student, String> maleStyle = s -> \"Hi, You are male and age \" + s.age;\n\n Function<Student, String> femaleStyle = s -> \"Hi, You are female and age \" + s.age;\n\n Student s1 = new Student(21, \"male\");\n if (maleStudent.test(s1)) {\n System.out.println(s1.customShow(maleStyle));\n } else if (femaleStudent.test(s1)) {\n System.out.println(s1.customShow(femaleStyle));\n }\n }", "title": "" }, { "docid": "267ba5bcf24360e4c49e8c20653ef0b3", "score": "0.5674492", "text": "public interface Predicate<T> {\n /** Evaluates this predicate on the argument. */\n boolean test(T t);\n}", "title": "" }, { "docid": "6f9e7c0bf48391334c7d0c998ffcb69e", "score": "0.56711155", "text": "GenericListAdtNode<T> filter(Predicate predicate);", "title": "" }, { "docid": "887806ae27f4da8cc329db83d4c688d6", "score": "0.56331784", "text": "@NotNull\n QueryResult<T> where(Predicate<T> predicate);", "title": "" }, { "docid": "463d28f3fcae73054c1d21c35640e259", "score": "0.5624144", "text": "private void example4(){\n List<Integer> evenNumbers = Lists.newArrayList(2, 6, 8, 10, 34, 90);\n Predicate<Integer> acceptEven = new Predicate<Integer>() {\n @Override\n public boolean apply(Integer number) {\n return (number % 2) == 0;\n }\n };\n System.out.println(evenNumbers);\n System.out.println(Iterables.all(evenNumbers, acceptEven));\n }", "title": "" }, { "docid": "dc5fa14e1f8da00d6aa0154d80f8e4c1", "score": "0.5591803", "text": "boolean accept(T filterParameter);", "title": "" }, { "docid": "9e79c24435b04c63b5b4a7a2521fcc34", "score": "0.5582559", "text": "private static void printConditionallyWithInBuiltFI(List<Person> peopleList, Predicate<Person> predicate,\n\t\t\tConsumer<Person> consumer) {\n\t\tfor (Person person : peopleList) {\n\t\t\tif (predicate.test(person))\n\t\t\t\tconsumer.accept(person);\n\t\t}\n\t}", "title": "" }, { "docid": "6b2bda7298c1ab72a9dca139b45d6ae1", "score": "0.55811834", "text": "@Override\n\tpublic void execute(Object filterdata, Object rule) {\n\n\t}", "title": "" }, { "docid": "6697ef353bcb912548337bd63352ba1f", "score": "0.55644786", "text": "public List<Customer> getSeniors (){\n\nreturn this.getCustomersBy(p -> p.getAge() >= 65);\n\n}", "title": "" }, { "docid": "a2a3e69f4e3c54b78bb9b13e651bebd5", "score": "0.5546746", "text": "public static interface Predicate<T> {\n public boolean evaluate(T object);\n }", "title": "" }, { "docid": "9f240f8ee65510ee6d7215769b6a96b5", "score": "0.5539481", "text": "public void filterBy(Filter f);", "title": "" }, { "docid": "954d667a25d37db202b8f852ccb06465", "score": "0.55358684", "text": "<V> RichIterable<V> collectIf(Predicate<? super T> predicate, Function<? super T, ? extends V> function);", "title": "" }, { "docid": "cbd6686ff8a855353bb20ed59963f37a", "score": "0.55311745", "text": "int count(IPredicate<T> pred);", "title": "" }, { "docid": "c3939188c08b46a2d2eb1679bfcd6779", "score": "0.5530162", "text": "@Override\r\n\tpublic boolean removeIf(Predicate<T> predicate) {\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "a0ad2c16fac13f69c388559cd423258c", "score": "0.5526215", "text": "public Pokemon pokemonWhere(Predicate<Pokemon> pred) {\n\t\tPokemon poke = null;\n\t\tCollections.shuffle(olddex);\n\t\tfor (Pokemon p : olddex) {\n\t\t\tif (pred.test(p)) {\n\t\t\t\tpoke = p.copy();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (poke != null)\n\t\t\treturn formChange(poke);\n\t\treturn poke;\n\t}", "title": "" }, { "docid": "f9d763d537c7fbbe19b75a4e8cf86321", "score": "0.55068195", "text": "private Predicate andAdminAndBultInUsersFilter(Predicate predicate) {\n Predicate newPredicate;\n if (ShiroUtils.isSupperAdminLogin()) {\n newPredicate = QSysUserPo.sysUserPo.id.goe(Constants.SUPER_ADMIN_USER_ID);\n } else {\n newPredicate = QSysUserPo.sysUserPo.id.gt(Constants.SUPER_ADMIN_USER_ID);\n }\n return ((BooleanExpression) newPredicate).and(predicate);\n }", "title": "" }, { "docid": "c124098609bb095978e0324ab39b018f", "score": "0.5502336", "text": "PredicateIconAliasBuilder when(Predicate predicate);", "title": "" }, { "docid": "3c56cd910559777fd4a404ddeef931a2", "score": "0.54912364", "text": "public static void main(String[] args) {\n\t\tBiPredicate<Integer, Integer> biPredicate=(a,b)->(a+b) % 2==0;\n\t\tSystem.out.println(biPredicate.test(10, 20));\n\t\tSystem.out.println(biPredicate.test(15, 20));\n\n\t}", "title": "" }, { "docid": "cfa2b2e3c82be42791a381a337a44489", "score": "0.5465646", "text": "public String getPredicate() {\n return contents[1];\n }", "title": "" }, { "docid": "3ce5a5984bf04e0e33782c28310b3076", "score": "0.54613686", "text": "public static void printSome(List<Person> people, Predicate<Person> condition) {\n for(Person p:people) {\n if(condition.test(p)) {\n System.out.println(p);\n }\n }\n\n\n }", "title": "" }, { "docid": "c042270740a4b54efb63d764724b29b1", "score": "0.5450958", "text": "@Override\n public Stream<T> filter(Predicate<? super T> predicate) {\n return cached().filter(predicate);\n }", "title": "" }, { "docid": "6d5ef0b1a485aa4ff932971ed045abc8", "score": "0.5441216", "text": "@Test\n public void whenThresholdExceeded_thenRewriteToInPredicate() {\n Predicate p1 = equal(\"age\", 1);\n Predicate p2 = equal(\"age\", 2);\n Predicate p3 = equal(\"age\", 3);\n Predicate p4 = equal(\"age\", 4);\n Predicate p5 = equal(\"age\", 5);\n OrPredicate or = (OrPredicate) or(p1, p2, p3, p4, p5);\n InPredicate result = (InPredicate) visitor.visit(or, mockIndexes);\n Comparable[] values = result.values;\n assertThat(values, arrayWithSize(5));\n assertThat(values, Matchers.is(Matchers.<Comparable>arrayContainingInAnyOrder(1, 2, 3, 4, 5)));\n }", "title": "" }, { "docid": "59026114d9d1cfb86cae2a9c3f23a65b", "score": "0.5440516", "text": "RichIterable<T> doUntill(Predicate<T> predicate, Effect<T> effect);", "title": "" }, { "docid": "6d01945054a29e1dd82e15a9b05c4278", "score": "0.5435045", "text": "<P> boolean allSatisfyWith(Predicate2<? super T, ? super P> predicate, P parameter);", "title": "" }, { "docid": "5995fd9dcf6b5a4917b5b9e1374706ac", "score": "0.54170275", "text": "<T> SelectQuery filter(Predicate<T> predicate);", "title": "" }, { "docid": "92e8c7a2bcc3607dbb9e0f99c9b82378", "score": "0.54116064", "text": "<P> int countWith(Predicate2<? super T, ? super P> predicate, P parameter);", "title": "" }, { "docid": "37154813c37007437dfa17c6412fad8b", "score": "0.5403666", "text": "boolean allSatisfy(Predicate<? super T> predicate);", "title": "" }, { "docid": "b9e385b6adf405e32de171119677abcd", "score": "0.53986436", "text": "public boolean ormap(IPredicate<T> pred) {\n /* METHODS OF PARAMETER: Methods for IPredicate<T> */\n return false;\n }", "title": "" }, { "docid": "bebd0f6c05f87997cf85140a43c38cd0", "score": "0.5398233", "text": "@Test \r\n public void a_predicate4() {\r\n Predicate<String> startsWithJ = s -> s.startsWith(\"J\");\r\n Predicate<String> lengthIs7 = s -> s.length() == 7;\r\n\r\n Predicate<String> startsWithJAndLengthIs7 = startsWithJ.and(lengthIs7); \r\n\r\n assertFalse(startsWithJAndLengthIs7.test(\"Hello\"));\r\n assertFalse(startsWithJAndLengthIs7.test(\"HelloJ1\"));\r\n assertFalse(startsWithJAndLengthIs7.test(\"Java1\"));\r\n assertTrue(startsWithJAndLengthIs7.test(\"JavaOne\"));\r\n }", "title": "" }, { "docid": "f1bf0b2d7a00fccaa427b2fc5891f37f", "score": "0.53714", "text": "public static List<ObjectInstance> getObjectsSatsifyingPredicate(OOState state, SchemeProcedure predicate){\n\n JScheme js = new JScheme();\n\n //get list fo all objects satisfying predicate\n return state.objects().stream()\n .filter(o -> (Boolean)js.call((SchemeProcedure)js.call(predicate, o.name()),state))\n .collect(Collectors.toList());\n\n\n }", "title": "" }, { "docid": "b3bae39d012a1009007ad6db8d31886e", "score": "0.5369632", "text": "@Override\n\tpublic Set entrySet(Predicate predicate) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "87b7b286823001e575fe33cfc3a06649", "score": "0.53611267", "text": "XConditionalExpression getPredicate();", "title": "" }, { "docid": "fb65129bf13f1b0b731d4bd45a66c019", "score": "0.53592956", "text": "@Test\n public void whenThresholdExceeded_thenRewriteToOrPredicate() {\n Predicate p1 = equal(\"age\", 1);\n Predicate p2 = equal(\"age\", 2);\n Predicate p3 = equal(\"age\", 3);\n Predicate p4 = equal(\"age\", 4);\n Predicate p5 = equal(\"age\", 5);\n Predicate p6 = notEqual(\"age\", 6);\n OrPredicate or = (OrPredicate) or(p1, p2, p3, p4, p5, p6);\n OrPredicate result = (OrPredicate) visitor.visit(or, mockIndexes);\n Predicate[] predicates = result.predicates;\n for (Predicate predicate : predicates) {\n if (predicate instanceof InPredicate) {\n Comparable[] values = ((InPredicate) predicate).values;\n assertThat(values, arrayWithSize(5));\n assertThat(values, Matchers.is(Matchers.<Comparable>arrayContainingInAnyOrder(1, 2, 3, 4, 5)));\n } else {\n assertThat(predicate, instanceOf(NotEqualPredicate.class));\n }\n }\n }", "title": "" }, { "docid": "49e22f14bce6864e26c1c22af8953238", "score": "0.5355578", "text": "@Override\n public boolean getResult(Property predicate, Resource object) {\n\n if (conds.isEmpty()) {\n return true;\n }\n\n for (Condition subCond : conds) {\n if (!subCond.getResult(predicate, object)) {\n return false;\n }\n }\n return true;\n }", "title": "" }, { "docid": "2a7f9cc9fc8242abb488d1757bb74ce0", "score": "0.5354302", "text": "boolean anySatisfy(Predicate<? super T> predicate);", "title": "" }, { "docid": "93d7c899cde55a131ba99ca0c5de9467", "score": "0.5353372", "text": "@Override\r\n\tprotected abstract void doFiltering() ;", "title": "" }, { "docid": "59e167d73a46d652a0d6d1244e11db73", "score": "0.5350015", "text": "@Test \r\n public void a_predicate3() {\r\n Predicate<String> pred = String::isEmpty; \r\n \r\n assertTrue(pred.test(\"\"));\r\n assertFalse(pred.test(\"a\"));\r\n }", "title": "" }, { "docid": "c6daeeb3cf66f978ae87665e778b01da", "score": "0.5347265", "text": "public Item itemWhere(Predicate<Item> pred) {\n\t\tItem item = null;\n\t\tCollections.shuffle(items);\n\t\tfor (Item i : items) {\n\t\t\tif (pred.test(i)) {\n\t\t\t\titem = i.copy();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn item;\n\t}", "title": "" }, { "docid": "54e264a64a7e21b36816f67d30c449c6", "score": "0.53364474", "text": "public static void code2(){\n Function<Supplier<Person>,String> function = (s)->{\n return s.get().toString();\n };\n //供给型用于产生对象\n Supplier<Person> s =()->{\n return new Person(\"sjs\",18);\n };\n String rs = function.apply(s);\n\n //消费性,有参数没用返回值,一般为打印语句\n Consumer<String> consumer = (str)->{\n System.out.println(str);\n };\n consumer.accept(\"Hello World\");\n\n //断言型,不管传入什么最后返回bool\n Predicate<String> predicate = \"Hello\"::endsWith;\n predicate.test(\"o\");\n\n Predicate<Object> predicate1 = (obj)->{\n return obj instanceof Person;\n };\n }", "title": "" }, { "docid": "94f2b2037d705da609d9bac7d74ab9ed", "score": "0.5328229", "text": "@SuppressWarnings(\"unchecked\")\n public <T> MatchBinder predicate(\n Class<T> type, Predicate<T> predicate, BiConsumer<Context, T> action) {\n List<Method<Object>> methods = multiMethods.computeIfAbsent(type, ignored -> new ArrayList<>());\n BiConsumer<Context, Object> a = (BiConsumer<Context, Object>) action;\n Predicate<Object> p = (Predicate<Object>) predicate;\n methods.add(new Method<>(p, a));\n return this;\n }", "title": "" }, { "docid": "8f162367077412c91987a703bc097993", "score": "0.53276634", "text": "public IFL<T> takeWhile(Predicate<T> predicate) {\n if (isHeadFiltered()) {\n\n }\n return new IFL<T>(head,\n () -> {\n return tail.get().takeWhile(predicate);\n }) {\n @Override\n boolean isEmpty() {\n if (predicate.test(head.get())) {\n return false;\n } else {\n return true;\n }\n }\n };\n }", "title": "" }, { "docid": "78db3d00d8834f92249a10770fcf0c40", "score": "0.53160596", "text": "public Map<URI, List<Statement>> searchPerPredicate(Resource subject, URI predicate, Value object);", "title": "" }, { "docid": "70da781f732fbd5d2187da6344501d6a", "score": "0.5312812", "text": "ImmutableSet<T> filter(final Predicate<T> predicate);", "title": "" }, { "docid": "c0ad605ae0169e9b82dc62d1839841cb", "score": "0.53103405", "text": "public ChoiceType intercept(Predicate predicate) {\n return routeCollection.intercept(predicate);\n }", "title": "" }, { "docid": "58ae0f6027a2b01e4bd711e05f178cdf", "score": "0.52985543", "text": "public List<Customer> getCustomersFrom (String country){\n\nreturn this.getCustomersBy(p -> p.getCountry() == country);\n\n}", "title": "" }, { "docid": "26097416d74b3eadf006e087c26842e6", "score": "0.52960414", "text": "public static <T> Predicate<T> transformedPredicate(\n final Transformer<? super T, ? extends T> transformer, final Predicate<? super T> predicate) {\n return TransformedPredicate.transformedPredicate(transformer, predicate);\n }", "title": "" }, { "docid": "05db7a180a27053298a23804dec12da7", "score": "0.52938116", "text": "public Attack attackWhere(Predicate<Attack> pred) {\n\t\tAttack at = null;\n\t\tCollections.shuffle(attacklist);\n\t\tfor (Attack a : attacklist) {\n\t\t\tif (pred.test(a)) {\n\t\t\t\tat = a.copy();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn at;\n\t}", "title": "" }, { "docid": "866c7b1e5608878c2d01d5e0527220c2", "score": "0.52906275", "text": "public Enumerable<T> where(final UnaryFunction<T, Boolean> predicate) {\n\n\t\treturn new Enumerable<T>() {\n\n\t\t\tprivate T nextItem = null;\n\n\t\t\t{\n\t\t\t\tnextItem = findNext();\n\t\t\t}\n\n\t\t\tprivate T findNext() {\n\t\t\t\twhile (Enumerable.this.hasNext()) {\n\t\t\t\t\tT i = Enumerable.this.next();\n\t\t\t\t\tif (predicate.invoke(i)) {\n\t\t\t\t\t\treturn i;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic boolean hasNext() {\n\t\t\t\treturn nextItem != null;\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic T next() {\n\t\t\t\tif (nextItem == null) {\n\t\t\t\t\tthrow new NoSuchElementException();\n\t\t\t\t}\n\n\t\t\t\tT value = nextItem;\n\t\t\t\tnextItem = findNext();\n\n\t\t\t\treturn value;\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void remove() {\n\t\t\t\tEnumerable.this.remove();\n\t\t\t}\n\t\t};\n\t}", "title": "" }, { "docid": "8fbdab04fba1884367a2daa42653fedb", "score": "0.5287252", "text": "public interface PredicateInterpreter<T>\n{\n /**\n * Interprets the <code>predicate</code>.\n *\n * @param predicate the <code>predicate</code>.\n *\n * @return a <code>T</code> that performs the predicate logic.\n *\n * @throws PredicateEvaluationException if an error occurs during the interpretation.\n */\n public T interpret(Predicate predicate) throws PredicateEvaluationException;\n}", "title": "" }, { "docid": "acf1b337e0aa3761bca440f6228f95d0", "score": "0.5285919", "text": "String makeReport(Store store, Predicate<Employee> filter);", "title": "" }, { "docid": "8c5e85e428ff93a53737984fe846a794", "score": "0.5272795", "text": "private void runSelectorForPred(Callable<Boolean> pred) throws Exception {\n try {\n while(pred.call()) {\n selectorDispatch.run();\n }\n } catch (Exception exp) {\n LOG.error(\"Error: %s\", exp);\n throw exp;\n }\n }", "title": "" }, { "docid": "740239f446daa7a0d99dc04d903006fa", "score": "0.5266554", "text": "<P> boolean anySatisfyWith(Predicate2<? super T, ? super P> predicate, P parameter);", "title": "" }, { "docid": "4a6248001a1b12c1ddd2dc18259b36b6", "score": "0.5265368", "text": "private boolean filterBySearchItemState( int state )\n {\n return true;\n }", "title": "" }, { "docid": "562320e5e1096621ee73b04871a2444b", "score": "0.52550346", "text": "private <T> boolean Any(List<T> list, Predicate<T> func) {\r\n\t\tfor(T obj : list) {\r\n\t\t\tif(func.test(obj)) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "6867171abc0caae914c1b6e640347f1d", "score": "0.5254915", "text": "public boolean all(final UnaryFunction<T, Boolean> predicate) {\n\t\twhile (hasNext()) {\n\t\t\tif (!predicate.invoke(next())) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "60d7e26da48089878b47f30769e48d9f", "score": "0.52533597", "text": "private Predicate predBuildString(String param, Predicate predicate, StringPath path) {\n\t\tString[] params = null;\n\t\tBooleanExpression temp = null;\n\n\t\tif (param.endsWith(\"*\")) {\n\t\t\tpredicate = path.containsIgnoreCase(param.substring(0, param.length() - 1)).and(predicate);\n\t\t} else if (param.startsWith(\"$exists:true\")) {\n\t\t\tpredicate = path.isNotNull().and(predicate);\n\t\t} else if (param.startsWith(\"$exists:false\")) {\n\t\t\tpredicate = path.isNull().and(predicate);\n\t\t} else if (param.startsWith(\"$in:\")) {\n\t\t\tparam = param.substring(4, param.length());\n\t\t\tparams = param.split(\",\");\n\t\t\tfor (String i : params) {\n\t\t\t\ttemp = path.eq(i).or(temp);\n\t\t\t}\n\t\t\tpredicate = temp.and(predicate);\n\t\t\ttemp = null;\n\t\t} else {\n\t\t\tpredicate = path.eq(param).and(predicate);\n\t\t}\n\n\t\treturn predicate;\n\t}", "title": "" }, { "docid": "0b53a9ef5da6f267a6eeca60708dc62b", "score": "0.52204514", "text": "public Predicate<Student> getDataStudentPredicate() {\n return model.getDataStudentPredicate();\n }", "title": "" }, { "docid": "cfb22b51b497671f9018f5e88dd2d1fd", "score": "0.52030754", "text": "public static void performConditionally(List<Person> people, Predicate<Person> predicate,\n\t\t\tConsumer<Person> consumer) {\n\t\tfor (Person person : people) {\n\t\t\tif (predicate.test(person)) {\n\t\t\t\tconsumer.accept(person);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "5f7de6f658d9bd54fb0816c5ca7f39f1", "score": "0.5202334", "text": "ParallelIterable<T> select(Predicate<? super T> predicate);", "title": "" }, { "docid": "fd068016be4d548b09db8265e68e4e3f", "score": "0.52017456", "text": "private static void example04() {\n Predicate<String> p1 = Predicate.isEqual(\"two\");\n Predicate<String> p2 = Predicate.isEqual(\"three\");\n Stream<String> stream1 = Stream.of(\"one\", \"two\", \"three\",\"four\");\n Stream<String> stream2 = stream1.filter(p1.or(p2));\n\n System.out.println(\"example04: \");\n stream2.forEach(System.out::println);\n }", "title": "" }, { "docid": "8909d4f1ae1c6796e6a92fcb4b5b8bc9", "score": "0.5201593", "text": "public void testGetPredicate() {\n System.out.println(\"getPredicate\");\n AbstractSimpleFrame instance = new AbstractSimpleFrame();\n String expResult = \"\";\n String result = instance.getPredicate();\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "title": "" }, { "docid": "9247099c96a9d3d87d4283832c12aa41", "score": "0.519778", "text": "public boolean ormap(IPredicate<T> pred) {\n /* METHODS OF PARAMETER: Methods for IPredicate<T> */\n return pred.apply(this.first) || this.rest.ormap(pred);\n }", "title": "" }, { "docid": "90aa4ca19b50210a616af53c38c70603", "score": "0.51972544", "text": "public static void copyWithPredicate(Path from, Path to, Predicate<Path> predicate) throws IOException{\n validate(from);\n Files.walkFileTree(from, new CopyPredicateVisitor(from,to,predicate));\n }", "title": "" }, { "docid": "4e5ba9cca125a98ccec80599b95ab58d", "score": "0.5196581", "text": "private Predicate predSetup(Map<String, String> requestParams) {\n\t\tQKey key = new QKey(\"key\");\n\t\tPredicate predicate = null;\n\t\tBooleanExpression temp = null;\n\t\tLong now = ((new Date().getTime()) / 1000);\n\t\tString param;\n\t\tString[] params;\n\t\tString attKey;\n\n\t\t// Short circuit if no parameters were passed in.\n\t\tif (requestParams == null || requestParams.isEmpty())\n\t\t\treturn predicate;\n\n\t\tif (requestParams.containsKey(\"userId\")) {\n\t\t\tpredicate = predBuildString(requestParams.get(\"userId\"), predicate, key.userId);\n\t\t}\n\n\t\tif (requestParams.containsKey(\"clientId\")) {\n\t\t\tpredicate = predBuildString(requestParams.get(\"clientId\"), predicate, key.clientId);\n\t\t}\n\n\t\t// The attributes map has to be handled differently, since the keys are not\n\t\t// explicitly set.\n\t\tfor (Entry<String, String> entry : requestParams.entrySet()) {\n\t\t\tattKey = entry.getKey();\n\t\t\tif (attKey.startsWith(\"attributes\")) {\n\n\t\t\t\tparam = entry.getValue();\n\n\t\t\t\tattKey = attKey.replace(\"attributes\", \"\");\n\t\t\t\tchar c[] = attKey.toCharArray();\n\t\t\t\tc[0] = Character.toLowerCase(c[0]);\n\t\t\t\tattKey = new String(c);\n\n\t\t\t\tif (param.endsWith(\"*\")) {\n\t\t\t\t\tpredicate = key.attributes.containsKey(attKey).and(key.attributes.get(attKey)\n\t\t\t\t\t\t\t.containsIgnoreCase(param.substring(0, param.length() - 1)).and(predicate));\n\t\t\t\t} else if (param.startsWith(\"$exists:true\")) {\n\t\t\t\t\tpredicate = key.attributes.containsKey(attKey)\n\t\t\t\t\t\t\t.and(key.attributes.get(attKey).isNotNull().and(predicate));\n\t\t\t\t} else if (param.startsWith(\"$exists:false\")) {\n\t\t\t\t\tpredicate = (key.attributes.get(attKey).isNull()).and(predicate);\n\t\t\t\t} else if (param.startsWith(\"$in:\")) {\n\t\t\t\t\tparam = param.substring(4, param.length());\n\t\t\t\t\tparams = param.split(\",\");\n\t\t\t\t\tfor (String i : params) {\n\t\t\t\t\t\ttemp = (key.attributes.containsKey(attKey).and(key.attributes.get(attKey).eq(i))).or(temp);\n\t\t\t\t\t}\n\t\t\t\t\tpredicate = temp.and(predicate);\n\t\t\t\t\ttemp = null;\n\t\t\t\t} else {\n\t\t\t\t\tpredicate = key.attributes.containsKey(attKey).and((key.attributes.get(attKey).eq(param)))\n\t\t\t\t\t\t\t.and(predicate);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Provides special alias for agency code (since it will be the attribute most\n\t\t// frequently filtered on). Thus, it can be filtered with or without the\n\t\t// \"attributes\" prefix.\n\t\tif (requestParams.containsKey(\"agencyCode\")) {\n\t\t\tparam = requestParams.get(\"agencyCode\");\n\t\t\tif (param.endsWith(\"*\")) {\n\t\t\t\tpredicate = key.attributes.containsKey(\"agencyCode\").and(key.attributes.get(\"agencyCode\")\n\t\t\t\t\t\t.containsIgnoreCase(param.substring(0, param.length() - 1)).and(predicate));\n\t\t\t} else if (param.startsWith(\"$exists:true\")) {\n\t\t\t\tpredicate = key.attributes.containsKey(\"agencyCode\")\n\t\t\t\t\t\t.and(key.attributes.get(\"agencyCode\").isNotNull().and(predicate));\n\t\t\t} else if (param.startsWith(\"$exists:false\")) {\n\t\t\t\tpredicate = (key.attributes.get(\"agencyCode\").isNull()).and(predicate);\n\t\t\t} else if (param.startsWith(\"$in:\")) {\n\t\t\t\tparam = param.substring(4, param.length());\n\t\t\t\tparams = param.split(\",\");\n\t\t\t\tfor (String i : params) {\n\t\t\t\t\ttemp = (key.attributes.containsKey(\"agencyCode\").and(key.attributes.get(\"agencyCode\").eq(i)))\n\t\t\t\t\t\t\t.or(temp);\n\t\t\t\t}\n\t\t\t\tpredicate = temp.and(predicate);\n\t\t\t\ttemp = null;\n\t\t\t} else {\n\t\t\t\tpredicate = key.attributes.containsKey(\"agencyCode\").and((key.attributes.get(\"agencyCode\").eq(param)))\n\t\t\t\t\t\t.and(predicate);\n\t\t\t}\n\t\t}\n\n\t\tif (requestParams.containsKey(\"created\")) {\n\t\t\tpredicate = predBuildLong(requestParams.get(\"created\"), predicate, key.created);\n\t\t}\n\n\t\tif (requestParams.containsKey(\"modified\")) {\n\t\t\tpredicate = predBuildLong(requestParams.get(\"modified\"), predicate, key.modified);\n\t\t}\n\n\t\tif (requestParams.containsKey(\"authTokenValue\")) {\n\t\t\tpredicate = predBuildString(requestParams.get(\"authTokenValue\"), predicate, key.authToken.value);\n\t\t}\n\n\t\t// TODO: Changing the scope field from Set<String> to Set<Resource> broke\n\t\t// filtering on scope. I think fixing it will involve getting the querydsl\n\t\t// plugin to generate a QResource class and then tweaking the commented out\n\t\t// section below to use it, but I haven't been able to figure that out yet, and\n\t\t// I may not have time to get back to it (hence this note).\n\n\t\t// The other special case (it sometimes needs .any() on the stringpath, since\n\t\t// it's a Set).\n\t\t/*\n\t\t * if (requestParams.containsKey(\"authTokenScope\")) { param =\n\t\t * requestParams.get(\"authTokenScope\"); if (param.endsWith(\"*\")) { predicate =\n\t\t * key.authToken.scope.any().containsIgnoreCase(param.substring(0,\n\t\t * param.length() - 1)) .and(predicate); } else if\n\t\t * (param.startsWith(\"$exists:true\")) { predicate =\n\t\t * key.authToken.scope.isNotEmpty().and(predicate); } else if\n\t\t * (param.startsWith(\"$exists:false\")) { predicate =\n\t\t * key.authToken.scope.isEmpty().and(predicate); } else if\n\t\t * (param.startsWith(\"$in:\")) { param = param.substring(4, param.length());\n\t\t * params = param.split(\",\"); for (String i : params) { temp =\n\t\t * key.authToken.scope.any().eq(i).or(temp); } predicate = temp.and(predicate);\n\t\t * temp = null; } else { predicate =\n\t\t * key.authToken.scope.contains(param).and(predicate); } }\n\t\t */\n\n\t\tif (requestParams.containsKey(\"authTokenExpiration\")) {\n\t\t\tpredicate = predBuildLong(requestParams.get(\"authTokenExpiration\"), predicate, key.authToken.expiration);\n\t\t}\n\n\t\tif (requestParams.containsKey(\"authTokenExpired\")) {\n\t\t\tif (requestParams.get(\"authTokenExpired\").toLowerCase().equals(\"true\")) {\n\t\t\t\tpredicate = key.authToken.expiration.lt(now).and(predicate);\n\t\t\t} else {\n\t\t\t\tpredicate = key.authToken.expiration.gt(now).and(predicate);\n\t\t\t}\n\t\t}\n\n\t\tif (requestParams.containsKey(\"refTokenValue\")) {\n\t\t\tpredicate = predBuildString(requestParams.get(\"refTokenValue\"), predicate, key.refToken.value);\n\t\t}\n\n\t\tif (requestParams.containsKey(\"refTokenExpiration\")) {\n\t\t\tpredicate = predBuildLong(requestParams.get(\"refTokenExpiration\"), predicate, key.refToken.expiration);\n\t\t}\n\n\t\tif (requestParams.containsKey(\"refTokenExpired\")) {\n\t\t\tif (requestParams.get(\"refTokenExpired\").toLowerCase().equals(\"true\")) {\n\t\t\t\tpredicate = key.refToken.expiration.lt(now).and(predicate);\n\t\t\t} else {\n\t\t\t\tpredicate = key.refToken.expiration.gt(now).and(predicate);\n\t\t\t}\n\t\t}\n\n\t\tlogger.debug(\"Query predicate constructed: {}\", predicate);\n\n\t\treturn predicate;\n\t}", "title": "" }, { "docid": "a4556192a84ac448873efde6fdfab49b", "score": "0.519129", "text": "void criteria(Criteria criteria);", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "b33de810b30cfd10335bd20529acca54", "score": "0.0", "text": "@Override\n\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\t\ttry{\n\t\t\tSystem.out.println(\"点击了\"+models.get(arg2).getTable_num());\n\t\t\tGateway_Model model = models.get(arg2);\t\t\n\t\t\tswitch(model.getType()){\n\t\t\t\tcase Type_Entity.Gateway_type://zigbee网关\n\t\t\t\t\tIntent intent1 = new Intent(\".dyd.smart.activity.TVAty_ZGB\");\n\t\t\t\t\tstartActivity(intent1);\n\t\t\t\t\tbreak;\n\t\t\t\tcase Type_Entity.Split_air_conditioning://分体空调控制器\n\t\t\t\t\tIntent intent2 = new Intent(\".dyd.smart.activity.MessageAty\");\n\t\t\t\t\tintent2.putExtra(\"name\", model.getName());\n\t\t\t\t\tintent2.putExtra(\"mac\", model.getTable_num());\n\t\t\t\t\tintent2.putExtra(\"type\", model.getType());\n\t\t\t\t\tintent2.putExtra(\"buildid\",buildid);\n\t\t\t\t\tintent2.putExtra(\"roleid\", roleid);\n\t\t\t\t\tstartActivity(intent2);\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tcase Type_Entity.Central_air_conditioning://中央空调控制器\n\t\t\t\t\tIntent intent5 = new Intent(\".dyd.smart.activity.MessageAty_Center\");\n\t\t\t\t\tintent5.putExtra(\"name\", model.getName());\n\t\t\t\t\tintent5.putExtra(\"mac\", model.getTable_num());\n\t\t\t\t\tintent5.putExtra(\"type\", model.getType());\n\t\t\t\t\tintent5.putExtra(\"buildid\",buildid);\n\t\t\t\t\tintent5.putExtra(\"roleid\", roleid);\n\t\t\t\t\t\n\t\t\t\t\tstartActivity(intent5);\n\t\t\t\t\tbreak;\n\t\t\t\tcase Type_Entity.Socket_type://zigbee插座\n\t\t\t\t\tIntent intent3 = new Intent(\".dyd.smart.activity.TVAty\");\n\t\t\t\t\tintent3.putExtra(\"name\", model.getName());\n\t\t\t\t\tintent3.putExtra(\"mac\", model.getTable_num());\n\t\t\t\t\tintent3.putExtra(\"type\", model.getType());\n\t\t\t\t\tintent3.putExtra(\"buildid\",buildid);\n\t\t\t\t\tintent3.putExtra(\"roleid\", roleid);\n\t\t\t\t\t\n\t\t\t\t\tstartActivity(intent3);\n\t\t\t\t\tbreak;\n\t\t\t\tcase Type_Entity.Four_street_control://zigbee四路灯控\n\t\t\t\t\tIntent intent3_1 = new Intent(\".dyd.smart.activity.TVAty_Four_street\");\n\t\t\t\t\tintent3_1.putExtra(\"name\", model.getName());\n\t\t\t\t\tintent3_1.putExtra(\"mac\", model.getTable_num());\n\t\t\t\t\tintent3_1.putExtra(\"type\", model.getType());\n\t\t\t\t\tintent3_1.putExtra(\"buildid\",buildid);\n\t\t\t\t\tintent3_1.putExtra(\"roleid\", roleid);\n\t\t\t\t\t\n\t\t\t\t\tstartActivity(intent3_1);\n\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tIntent intent3_2 = new Intent(\".dyd.smart.activity.TVAty\");\n\t\t\t\t\t\tintent3_2.putExtra(\"name\", model.getName());\n\t\t\t\t\t\tintent3_2.putExtra(\"mac\", model.getTable_num());\n\t\t\t\t\t\tintent3_2.putExtra(\"type\", model.getType());\n\t\t\t\t\t\tintent3_2.putExtra(\"buildid\",buildid);\n\t\t\t\t\t\tintent3_2.putExtra(\"roleid\", roleid);\n\t\t\t\t\t\tstartActivity(intent3_2);\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\n\t\t\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\t\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": "" } ]
f39042cd5ed4d2039e0991d60bdd74db
$ANTLR end "rule__ExtraData__Group_4__0" $ANTLR start "rule__ExtraData__Group_4__0__Impl" ../org.xtext.example.mydsl.ui/srcgen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:2818:1: rule__ExtraData__Group_4__0__Impl : ( 'Type' ) ;
[ { "docid": "daa9cf687eaaab455f5827d66520ca35", "score": "0.77601624", "text": "public final void rule__ExtraData__Group_4__0__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:2822:1: ( ( 'Type' ) )\n // ../org.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:2823:1: ( 'Type' )\n {\n // ../org.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:2823:1: ( 'Type' )\n // ../org.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:2824:1: 'Type'\n {\n before(grammarAccess.getExtraDataAccess().getTypeKeyword_4_0()); \n match(input,26,FollowSets000.FOLLOW_26_in_rule__ExtraData__Group_4__0__Impl5597); \n after(grammarAccess.getExtraDataAccess().getTypeKeyword_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": "c6afcb110dc3c88714659acd67c0fcd9", "score": "0.6656309", "text": "public final void rule__TypeStatement__Group_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:18605:1: ( rule__TypeStatement__Group_1_1__1__Impl )\n // ../org.eclipse.yang.ui/src-gen/org/xtext/editor/yang/ui/contentassist/antlr/internal/InternalYang.g:18606:2: rule__TypeStatement__Group_1_1__1__Impl\n {\n pushFollow(FOLLOW_rule__TypeStatement__Group_1_1__1__Impl_in_rule__TypeStatement__Group_1_1__138711);\n rule__TypeStatement__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": "caf83e4487afe01e530973957d46e7be", "score": "0.66222495", "text": "public final void rule__Intent__Group__0__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:869:1: ( ( 'Type' ) )\n // ../org.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:870:1: ( 'Type' )\n {\n // ../org.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:870:1: ( 'Type' )\n // ../org.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:871:1: 'Type'\n {\n before(grammarAccess.getIntentAccess().getTypeKeyword_0()); \n match(input,26,FollowSets000.FOLLOW_26_in_rule__Intent__Group__0__Impl1769); \n after(grammarAccess.getIntentAccess().getTypeKeyword_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": "baa16d6d1fe09c94741e4c19d1387cb5", "score": "0.66212815", "text": "public final void rule__TypeStatement__Group_1_1_0__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:18666:1: ( rule__TypeStatement__Group_1_1_0__1__Impl )\n // ../org.eclipse.yang.ui/src-gen/org/xtext/editor/yang/ui/contentassist/antlr/internal/InternalYang.g:18667:2: rule__TypeStatement__Group_1_1_0__1__Impl\n {\n pushFollow(FOLLOW_rule__TypeStatement__Group_1_1_0__1__Impl_in_rule__TypeStatement__Group_1_1_0__138832);\n rule__TypeStatement__Group_1_1_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": "eaf1282b9953edf15717538ef3b9a7a4", "score": "0.66128486", "text": "public final void rule__ExtraData__Group_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:2872:1: ( rule__ExtraData__Group_4__2__Impl )\n // ../org.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:2873:2: rule__ExtraData__Group_4__2__Impl\n {\n pushFollow(FollowSets000.FOLLOW_rule__ExtraData__Group_4__2__Impl_in_rule__ExtraData__Group_4__25690);\n rule__ExtraData__Group_4__2__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": "bab949f3113ba5eaef5808c89d481284", "score": "0.6493565", "text": "public final void rule__ExtraData__Group__4__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:2655:1: ( ( ( rule__ExtraData__Group_4__0 ) ) )\n // ../org.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:2656:1: ( ( rule__ExtraData__Group_4__0 ) )\n {\n // ../org.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:2656:1: ( ( rule__ExtraData__Group_4__0 ) )\n // ../org.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:2657:1: ( rule__ExtraData__Group_4__0 )\n {\n before(grammarAccess.getExtraDataAccess().getGroup_4()); \n // ../org.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:2658:1: ( rule__ExtraData__Group_4__0 )\n // ../org.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:2658:2: rule__ExtraData__Group_4__0\n {\n pushFollow(FollowSets000.FOLLOW_rule__ExtraData__Group_4__0_in_rule__ExtraData__Group__4__Impl5278);\n rule__ExtraData__Group_4__0();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getExtraDataAccess().getGroup_4()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "71176b0f1aef6f95b8e7ac2cfc5d000a", "score": "0.6442661", "text": "public final void rule__TypeStatement__Group_1_1__0__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:18588:1: ( ( ( rule__TypeStatement__Group_1_1_0__0 )? ) )\n // ../org.eclipse.yang.ui/src-gen/org/xtext/editor/yang/ui/contentassist/antlr/internal/InternalYang.g:18589:1: ( ( rule__TypeStatement__Group_1_1_0__0 )? )\n {\n // ../org.eclipse.yang.ui/src-gen/org/xtext/editor/yang/ui/contentassist/antlr/internal/InternalYang.g:18589:1: ( ( rule__TypeStatement__Group_1_1_0__0 )? )\n // ../org.eclipse.yang.ui/src-gen/org/xtext/editor/yang/ui/contentassist/antlr/internal/InternalYang.g:18590:1: ( rule__TypeStatement__Group_1_1_0__0 )?\n {\n before(grammarAccess.getTypeStatementAccess().getGroup_1_1_0()); \n // ../org.eclipse.yang.ui/src-gen/org/xtext/editor/yang/ui/contentassist/antlr/internal/InternalYang.g:18591:1: ( rule__TypeStatement__Group_1_1_0__0 )?\n int alt168=2;\n int LA168_0 = input.LA(1);\n\n if ( (LA168_0==RULE_ID) ) {\n int LA168_1 = input.LA(2);\n\n if ( (LA168_1==58) ) {\n alt168=1;\n }\n }\n else if ( (LA168_0==RULE_STRING||LA168_0==29) ) {\n alt168=1;\n }\n switch (alt168) {\n case 1 :\n // ../org.eclipse.yang.ui/src-gen/org/xtext/editor/yang/ui/contentassist/antlr/internal/InternalYang.g:18591:2: rule__TypeStatement__Group_1_1_0__0\n {\n pushFollow(FOLLOW_rule__TypeStatement__Group_1_1_0__0_in_rule__TypeStatement__Group_1_1__0__Impl38680);\n rule__TypeStatement__Group_1_1_0__0();\n\n state._fsp--;\n\n\n }\n break;\n\n }\n\n after(grammarAccess.getTypeStatementAccess().getGroup_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": "71205a15000c435bb1b47dd09f415d10", "score": "0.63890165", "text": "public final void rule__ExtraData__Group__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:2595:1: ( ( ( rule__ExtraData__Group_2__0 ) ) )\n // ../org.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:2596:1: ( ( rule__ExtraData__Group_2__0 ) )\n {\n // ../org.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:2596:1: ( ( rule__ExtraData__Group_2__0 ) )\n // ../org.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:2597:1: ( rule__ExtraData__Group_2__0 )\n {\n before(grammarAccess.getExtraDataAccess().getGroup_2()); \n // ../org.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:2598:1: ( rule__ExtraData__Group_2__0 )\n // ../org.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:2598:2: rule__ExtraData__Group_2__0\n {\n pushFollow(FollowSets000.FOLLOW_rule__ExtraData__Group_2__0_in_rule__ExtraData__Group__2__Impl5156);\n rule__ExtraData__Group_2__0();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getExtraDataAccess().getGroup_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": "4aa27aad5afc330787fd61662beb83cf", "score": "0.63652295", "text": "public final void rule__DataType__Group__0__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:1293:1: ( ( 'type' ) )\n // ../org.xtext.workshop.webgui.ui/src-gen/org/xtext/workshop/ui/contentassist/antlr/internal/InternalWebGui.g:1294:1: ( 'type' )\n {\n // ../org.xtext.workshop.webgui.ui/src-gen/org/xtext/workshop/ui/contentassist/antlr/internal/InternalWebGui.g:1294:1: ( 'type' )\n // ../org.xtext.workshop.webgui.ui/src-gen/org/xtext/workshop/ui/contentassist/antlr/internal/InternalWebGui.g:1295:1: 'type'\n {\n before(grammarAccess.getDataTypeAccess().getTypeKeyword_0()); \n match(input,20,FOLLOW_20_in_rule__DataType__Group__0__Impl2617); \n after(grammarAccess.getDataTypeAccess().getTypeKeyword_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": "b794315aeeb074512aa2ee682248f4d6", "score": "0.63381106", "text": "public final void rule__Type__Group_1_0__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalJava.g:8719:1: ( rule__Type__Group_1_0__1__Impl )\n // InternalJava.g:8720:2: rule__Type__Group_1_0__1__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Type__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": "994217b072d59325812e69686278274e", "score": "0.629677", "text": "public final void rule__Type_definition__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalPascal.g:3687:1: ( rule__Type_definition__Group__0__Impl rule__Type_definition__Group__1 )\n // InternalPascal.g:3688:2: rule__Type_definition__Group__0__Impl rule__Type_definition__Group__1\n {\n pushFollow(FOLLOW_15);\n rule__Type_definition__Group__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__Type_definition__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": "97a9c79f1ac6e018983690689ffcdfbc", "score": "0.6296684", "text": "public final void rule__ExtraData__Group__0() 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:2521:1: ( rule__ExtraData__Group__0__Impl rule__ExtraData__Group__1 )\n // ../org.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:2522:2: rule__ExtraData__Group__0__Impl rule__ExtraData__Group__1\n {\n pushFollow(FollowSets000.FOLLOW_rule__ExtraData__Group__0__Impl_in_rule__ExtraData__Group__05003);\n rule__ExtraData__Group__0__Impl();\n\n state._fsp--;\n\n pushFollow(FollowSets000.FOLLOW_rule__ExtraData__Group__1_in_rule__ExtraData__Group__05006);\n rule__ExtraData__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": "9b3e96f03a7f285e6205f11a4a647a1b", "score": "0.6293081", "text": "public final void rule__Type__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalJava.g:8656:1: ( rule__Type__Group__1__Impl )\n // InternalJava.g:8657:2: rule__Type__Group__1__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Type__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": "eae4899a8c609743812337193dd62b4f", "score": "0.6288066", "text": "public final void rule__Type_definition__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalPascal.g:3741:1: ( rule__Type_definition__Group__2__Impl )\n // InternalPascal.g:3742:2: rule__Type_definition__Group__2__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Type_definition__Group__2__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": "8adcc458df2388683730021d1b0d0382", "score": "0.62862027", "text": "public final void rule__Type_declaration__Group__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalJava.g:2741:1: ( ( ( RULE_EOL )? ) )\n // InternalJava.g:2742:1: ( ( RULE_EOL )? )\n {\n // InternalJava.g:2742:1: ( ( RULE_EOL )? )\n // InternalJava.g:2743:1: ( RULE_EOL )?\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getType_declarationAccess().getEOLTerminalRuleCall_2()); \n }\n // InternalJava.g:2744:1: ( RULE_EOL )?\n int alt39=2;\n int LA39_0 = input.LA(1);\n\n if ( (LA39_0==RULE_EOL) ) {\n alt39=1;\n }\n switch (alt39) {\n case 1 :\n // InternalJava.g:2744:3: RULE_EOL\n {\n match(input,RULE_EOL,FOLLOW_2); if (state.failed) return ;\n\n }\n break;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getType_declarationAccess().getEOLTerminalRuleCall_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": "63213e1c6e299d1cee7e438a522467d3", "score": "0.62806773", "text": "public final void rule__TypeStatement__Group_1_1_0__0() 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:18637:1: ( rule__TypeStatement__Group_1_1_0__0__Impl rule__TypeStatement__Group_1_1_0__1 )\n // ../org.eclipse.yang.ui/src-gen/org/xtext/editor/yang/ui/contentassist/antlr/internal/InternalYang.g:18638:2: rule__TypeStatement__Group_1_1_0__0__Impl rule__TypeStatement__Group_1_1_0__1\n {\n pushFollow(FOLLOW_rule__TypeStatement__Group_1_1_0__0__Impl_in_rule__TypeStatement__Group_1_1_0__038772);\n rule__TypeStatement__Group_1_1_0__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__TypeStatement__Group_1_1_0__1_in_rule__TypeStatement__Group_1_1_0__038775);\n rule__TypeStatement__Group_1_1_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": "2872ad79473987eace7b2ff89e076d0e", "score": "0.627507", "text": "public final void rule__ExtraData__Group_4__0() 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:2810:1: ( rule__ExtraData__Group_4__0__Impl rule__ExtraData__Group_4__1 )\n // ../org.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:2811:2: rule__ExtraData__Group_4__0__Impl rule__ExtraData__Group_4__1\n {\n pushFollow(FollowSets000.FOLLOW_rule__ExtraData__Group_4__0__Impl_in_rule__ExtraData__Group_4__05566);\n rule__ExtraData__Group_4__0__Impl();\n\n state._fsp--;\n\n pushFollow(FollowSets000.FOLLOW_rule__ExtraData__Group_4__1_in_rule__ExtraData__Group_4__05569);\n rule__ExtraData__Group_4__1();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "fb2a992c2bd88f115b1f302c95a17db0", "score": "0.62636775", "text": "public final void rule__TypeStatement__Group_1_1__0() 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:18576:1: ( rule__TypeStatement__Group_1_1__0__Impl rule__TypeStatement__Group_1_1__1 )\n // ../org.eclipse.yang.ui/src-gen/org/xtext/editor/yang/ui/contentassist/antlr/internal/InternalYang.g:18577:2: rule__TypeStatement__Group_1_1__0__Impl rule__TypeStatement__Group_1_1__1\n {\n pushFollow(FOLLOW_rule__TypeStatement__Group_1_1__0__Impl_in_rule__TypeStatement__Group_1_1__038650);\n rule__TypeStatement__Group_1_1__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__TypeStatement__Group_1_1__1_in_rule__TypeStatement__Group_1_1__038653);\n rule__TypeStatement__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": "9d32d21f501f938157ff8ae71fc344d7", "score": "0.62615544", "text": "public final void rule__TypeStatement__Group__0() 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:18482:1: ( rule__TypeStatement__Group__0__Impl rule__TypeStatement__Group__1 )\n // ../org.eclipse.yang.ui/src-gen/org/xtext/editor/yang/ui/contentassist/antlr/internal/InternalYang.g:18483:2: rule__TypeStatement__Group__0__Impl rule__TypeStatement__Group__1\n {\n pushFollow(FOLLOW_rule__TypeStatement__Group__0__Impl_in_rule__TypeStatement__Group__038465);\n rule__TypeStatement__Group__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__TypeStatement__Group__1_in_rule__TypeStatement__Group__038468);\n rule__TypeStatement__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": "9f83d7c57238e68a10d0923369f12be3", "score": "0.625482", "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": "54cf8a55f0d7f9f2ccce7839d28560a9", "score": "0.6214969", "text": "public final void rule__ExtraData__Group_4__1() 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:2841:1: ( rule__ExtraData__Group_4__1__Impl rule__ExtraData__Group_4__2 )\n // ../org.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:2842:2: rule__ExtraData__Group_4__1__Impl rule__ExtraData__Group_4__2\n {\n pushFollow(FollowSets000.FOLLOW_rule__ExtraData__Group_4__1__Impl_in_rule__ExtraData__Group_4__15628);\n rule__ExtraData__Group_4__1__Impl();\n\n state._fsp--;\n\n pushFollow(FollowSets000.FOLLOW_rule__ExtraData__Group_4__2_in_rule__ExtraData__Group_4__15631);\n rule__ExtraData__Group_4__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": "4639975c3c7cf4c1a473e818bd8f52ba", "score": "0.62003154", "text": "public final void rule__TypeStatement__Group_2_1__2() 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:18760:1: ( rule__TypeStatement__Group_2_1__2__Impl )\n // ../org.eclipse.yang.ui/src-gen/org/xtext/editor/yang/ui/contentassist/antlr/internal/InternalYang.g:18761:2: rule__TypeStatement__Group_2_1__2__Impl\n {\n pushFollow(FOLLOW_rule__TypeStatement__Group_2_1__2__Impl_in_rule__TypeStatement__Group_2_1__239018);\n rule__TypeStatement__Group_2_1__2__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": "6e1c66ac0be8bac0742117f0b7071ccb", "score": "0.6184107", "text": "public final void rule__TypeStatement__Group__2() 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:18542:1: ( rule__TypeStatement__Group__2__Impl )\n // ../org.eclipse.yang.ui/src-gen/org/xtext/editor/yang/ui/contentassist/antlr/internal/InternalYang.g:18543:2: rule__TypeStatement__Group__2__Impl\n {\n pushFollow(FOLLOW_rule__TypeStatement__Group__2__Impl_in_rule__TypeStatement__Group__238587);\n rule__TypeStatement__Group__2__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": "d03129016d05596b48492b9c9e90093f", "score": "0.6181038", "text": "public final void rule__Type_definition_part__Group_1__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalPascal.g:3660:1: ( rule__Type_definition_part__Group_1__1__Impl )\n // InternalPascal.g:3661:2: rule__Type_definition_part__Group_1__1__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Type_definition_part__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": "1996473ae9e971a308c019cdddddd01c", "score": "0.6178572", "text": "public final void rule__TypeStatement__Group__0__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:18494:1: ( ( 'type' ) )\n // ../org.eclipse.yang.ui/src-gen/org/xtext/editor/yang/ui/contentassist/antlr/internal/InternalYang.g:18495:1: ( 'type' )\n {\n // ../org.eclipse.yang.ui/src-gen/org/xtext/editor/yang/ui/contentassist/antlr/internal/InternalYang.g:18495:1: ( 'type' )\n // ../org.eclipse.yang.ui/src-gen/org/xtext/editor/yang/ui/contentassist/antlr/internal/InternalYang.g:18496:1: 'type'\n {\n before(grammarAccess.getTypeStatementAccess().getTypeKeyword_0()); \n match(input,90,FOLLOW_90_in_rule__TypeStatement__Group__0__Impl38496); \n after(grammarAccess.getTypeStatementAccess().getTypeKeyword_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": "4385aa55ff36bed648fcaef87cfed711", "score": "0.61774254", "text": "public final void rule__ExtraData__Group_2__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:2776:1: ( rule__ExtraData__Group_2__2__Impl )\n // ../org.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:2777:2: rule__ExtraData__Group_2__2__Impl\n {\n pushFollow(FollowSets000.FOLLOW_rule__ExtraData__Group_2__2__Impl_in_rule__ExtraData__Group_2__25503);\n rule__ExtraData__Group_2__2__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": "a877e75c156f4a783fb8a957df646215", "score": "0.616391", "text": "public final void rule__Type_definition_part__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalPascal.g:3599:1: ( rule__Type_definition_part__Group__1__Impl )\n // InternalPascal.g:3600:2: rule__Type_definition_part__Group__1__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Type_definition_part__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": "e1dc83e2930ec4443f6ac27555b22750", "score": "0.61538327", "text": "public final void rule__DataType__Group__1() 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:1312:1: ( rule__DataType__Group__1__Impl )\n // ../org.xtext.workshop.webgui.ui/src-gen/org/xtext/workshop/ui/contentassist/antlr/internal/InternalWebGui.g:1313:2: rule__DataType__Group__1__Impl\n {\n pushFollow(FOLLOW_rule__DataType__Group__1__Impl_in_rule__DataType__Group__12648);\n rule__DataType__Group__1__Impl();\n _fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "659afa28950045783dcd696528691dfd", "score": "0.61497563", "text": "public final void rule__ExtraData__Group__0__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:2533:1: ( ( () ) )\n // ../org.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:2534:1: ( () )\n {\n // ../org.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:2534:1: ( () )\n // ../org.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:2535:1: ()\n {\n before(grammarAccess.getExtraDataAccess().getExtraDataAction_0()); \n // ../org.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:2536:1: ()\n // ../org.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:2538:1: \n {\n }\n\n after(grammarAccess.getExtraDataAccess().getExtraDataAction_0()); \n\n }\n\n\n }\n\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "3b584ae759c6afc75097fbd06c7a33a1", "score": "0.6148177", "text": "public final void rule__TypeStatement__Group_2_1__0() 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:18700:1: ( rule__TypeStatement__Group_2_1__0__Impl rule__TypeStatement__Group_2_1__1 )\n // ../org.eclipse.yang.ui/src-gen/org/xtext/editor/yang/ui/contentassist/antlr/internal/InternalYang.g:18701:2: rule__TypeStatement__Group_2_1__0__Impl rule__TypeStatement__Group_2_1__1\n {\n pushFollow(FOLLOW_rule__TypeStatement__Group_2_1__0__Impl_in_rule__TypeStatement__Group_2_1__038895);\n rule__TypeStatement__Group_2_1__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__TypeStatement__Group_2_1__1_in_rule__TypeStatement__Group_2_1__038898);\n rule__TypeStatement__Group_2_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": "4363187633063fb94cfd5a798a1fda1e", "score": "0.6138188", "text": "public final void rule__Type_declaration__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalJava.g:2730:1: ( rule__Type_declaration__Group__2__Impl )\n // InternalJava.g:2731:2: rule__Type_declaration__Group__2__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Type_declaration__Group__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": "2ca3b5cb075a6657abed17cbdd4c004d", "score": "0.610284", "text": "public final void rule__ExtraData__Group__1() 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:2552:1: ( rule__ExtraData__Group__1__Impl rule__ExtraData__Group__2 )\n // ../org.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:2553:2: rule__ExtraData__Group__1__Impl rule__ExtraData__Group__2\n {\n pushFollow(FollowSets000.FOLLOW_rule__ExtraData__Group__1__Impl_in_rule__ExtraData__Group__15064);\n rule__ExtraData__Group__1__Impl();\n\n state._fsp--;\n\n pushFollow(FollowSets000.FOLLOW_rule__ExtraData__Group__2_in_rule__ExtraData__Group__15067);\n rule__ExtraData__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": "3d670133316d35d9a12bcfe93eb3a05f", "score": "0.6095911", "text": "public final void rule__TypeAliasDefinition__Group__4() 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:3535:1: ( rule__TypeAliasDefinition__Group__4__Impl )\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:3536:2: rule__TypeAliasDefinition__Group__4__Impl\n {\n pushFollow(FOLLOW_rule__TypeAliasDefinition__Group__4__Impl_in_rule__TypeAliasDefinition__Group__47596);\n rule__TypeAliasDefinition__Group__4__Impl();\n _fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "80424c61920c146dc926f5473d5ed0fc", "score": "0.6095284", "text": "public final void rule__TypeStatement__Group_2_1__2__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:18771:1: ( ( '}' ) )\n // ../org.eclipse.yang.ui/src-gen/org/xtext/editor/yang/ui/contentassist/antlr/internal/InternalYang.g:18772:1: ( '}' )\n {\n // ../org.eclipse.yang.ui/src-gen/org/xtext/editor/yang/ui/contentassist/antlr/internal/InternalYang.g:18772:1: ( '}' )\n // ../org.eclipse.yang.ui/src-gen/org/xtext/editor/yang/ui/contentassist/antlr/internal/InternalYang.g:18773:1: '}'\n {\n before(grammarAccess.getTypeStatementAccess().getRightCurlyBracketKeyword_2_1_2()); \n match(input,32,FOLLOW_32_in_rule__TypeStatement__Group_2_1__2__Impl39046); \n after(grammarAccess.getTypeStatementAccess().getRightCurlyBracketKeyword_2_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": "c5551b04dd29889daf8ea349ff0aad15", "score": "0.60763794", "text": "public final void rule__ExtraData__Group_2__0__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:2726:1: ( ( 'Name' ) )\n // ../org.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:2727:1: ( 'Name' )\n {\n // ../org.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:2727:1: ( 'Name' )\n // ../org.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:2728:1: 'Name'\n {\n before(grammarAccess.getExtraDataAccess().getNameKeyword_2_0()); \n match(input,28,FollowSets000.FOLLOW_28_in_rule__ExtraData__Group_2__0__Impl5410); \n after(grammarAccess.getExtraDataAccess().getNameKeyword_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": "ec229cdae480afdc9d7d5d0c3a85771e", "score": "0.604127", "text": "public final void rule__ExtraData__Group_2__0() 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:2714:1: ( rule__ExtraData__Group_2__0__Impl rule__ExtraData__Group_2__1 )\n // ../org.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:2715:2: rule__ExtraData__Group_2__0__Impl rule__ExtraData__Group_2__1\n {\n pushFollow(FollowSets000.FOLLOW_rule__ExtraData__Group_2__0__Impl_in_rule__ExtraData__Group_2__05379);\n rule__ExtraData__Group_2__0__Impl();\n\n state._fsp--;\n\n pushFollow(FollowSets000.FOLLOW_rule__ExtraData__Group_2__1_in_rule__ExtraData__Group_2__05382);\n rule__ExtraData__Group_2__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": "9bd0f3c6f470555eb140b09313481934", "score": "0.60377353", "text": "public final void rule__Type_declaration__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalJava.g:2672:1: ( rule__Type_declaration__Group__0__Impl rule__Type_declaration__Group__1 )\n // InternalJava.g:2673:2: rule__Type_declaration__Group__0__Impl rule__Type_declaration__Group__1\n {\n pushFollow(FOLLOW_7);\n rule__Type_declaration__Group__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_2);\n rule__Type_declaration__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": "0f9436fe10b5fa1678a5ec3e4bbc416f", "score": "0.6030993", "text": "public final void rule__Type_definition__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalPascal.g:3714:1: ( rule__Type_definition__Group__1__Impl rule__Type_definition__Group__2 )\n // InternalPascal.g:3715:2: rule__Type_definition__Group__1__Impl rule__Type_definition__Group__2\n {\n pushFollow(FOLLOW_17);\n rule__Type_definition__Group__1__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__Type_definition__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": "4de01ca2529e719d8e0a7044332743c4", "score": "0.60229796", "text": "public final void ruleExtraData() 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:157:2: ( ( ( rule__ExtraData__Group__0 ) ) )\n // ../org.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:158:1: ( ( rule__ExtraData__Group__0 ) )\n {\n // ../org.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:158:1: ( ( rule__ExtraData__Group__0 ) )\n // ../org.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:159:1: ( rule__ExtraData__Group__0 )\n {\n before(grammarAccess.getExtraDataAccess().getGroup()); \n // ../org.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:160:1: ( rule__ExtraData__Group__0 )\n // ../org.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:160:2: rule__ExtraData__Group__0\n {\n pushFollow(FollowSets000.FOLLOW_rule__ExtraData__Group__0_in_ruleExtraData274);\n rule__ExtraData__Group__0();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getExtraDataAccess().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": "60851f66cb2ce68e67e842f3d79a0ef9", "score": "0.6002121", "text": "public final void rule__ExtraData__Group_4__1__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:2853:1: ( ( ':' ) )\n // ../org.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:2854:1: ( ':' )\n {\n // ../org.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:2854:1: ( ':' )\n // ../org.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:2855:1: ':'\n {\n before(grammarAccess.getExtraDataAccess().getColonKeyword_4_1()); \n match(input,27,FollowSets000.FOLLOW_27_in_rule__ExtraData__Group_4__1__Impl5659); \n after(grammarAccess.getExtraDataAccess().getColonKeyword_4_1()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "b8d0333d14f1e26d2208f1bba4d89f4b", "score": "0.5986732", "text": "public final void rule__TypeStatement__Group_2_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:18731:1: ( rule__TypeStatement__Group_2_1__1__Impl rule__TypeStatement__Group_2_1__2 )\n // ../org.eclipse.yang.ui/src-gen/org/xtext/editor/yang/ui/contentassist/antlr/internal/InternalYang.g:18732:2: rule__TypeStatement__Group_2_1__1__Impl rule__TypeStatement__Group_2_1__2\n {\n pushFollow(FOLLOW_rule__TypeStatement__Group_2_1__1__Impl_in_rule__TypeStatement__Group_2_1__138957);\n rule__TypeStatement__Group_2_1__1__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__TypeStatement__Group_2_1__2_in_rule__TypeStatement__Group_2_1__138960);\n rule__TypeStatement__Group_2_1__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": "81195c99ba59df564698708203d6df21", "score": "0.59637517", "text": "public final void rule__TypeStatement__Group_1_1_0__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:18677:1: ( ( ':' ) )\n // ../org.eclipse.yang.ui/src-gen/org/xtext/editor/yang/ui/contentassist/antlr/internal/InternalYang.g:18678:1: ( ':' )\n {\n // ../org.eclipse.yang.ui/src-gen/org/xtext/editor/yang/ui/contentassist/antlr/internal/InternalYang.g:18678:1: ( ':' )\n // ../org.eclipse.yang.ui/src-gen/org/xtext/editor/yang/ui/contentassist/antlr/internal/InternalYang.g:18679:1: ':'\n {\n before(grammarAccess.getTypeStatementAccess().getColonKeyword_1_1_0_1()); \n match(input,58,FOLLOW_58_in_rule__TypeStatement__Group_1_1_0__1__Impl38860); \n after(grammarAccess.getTypeStatementAccess().getColonKeyword_1_1_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": "8ec200fd034c989d606bc5012cc6de50", "score": "0.59618783", "text": "public final void rule__ExtraData__Group_2__1() 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:2745:1: ( rule__ExtraData__Group_2__1__Impl rule__ExtraData__Group_2__2 )\n // ../org.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:2746:2: rule__ExtraData__Group_2__1__Impl rule__ExtraData__Group_2__2\n {\n pushFollow(FollowSets000.FOLLOW_rule__ExtraData__Group_2__1__Impl_in_rule__ExtraData__Group_2__15441);\n rule__ExtraData__Group_2__1__Impl();\n\n state._fsp--;\n\n pushFollow(FollowSets000.FOLLOW_rule__ExtraData__Group_2__2_in_rule__ExtraData__Group_2__15444);\n rule__ExtraData__Group_2__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": "ea6d9fc5d818f9f59f126d6903c14a16", "score": "0.59495145", "text": "public final void rule__TypeStatement__Group__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:18513:1: ( rule__TypeStatement__Group__1__Impl rule__TypeStatement__Group__2 )\n // ../org.eclipse.yang.ui/src-gen/org/xtext/editor/yang/ui/contentassist/antlr/internal/InternalYang.g:18514:2: rule__TypeStatement__Group__1__Impl rule__TypeStatement__Group__2\n {\n pushFollow(FOLLOW_rule__TypeStatement__Group__1__Impl_in_rule__TypeStatement__Group__138527);\n rule__TypeStatement__Group__1__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__TypeStatement__Group__2_in_rule__TypeStatement__Group__138530);\n rule__TypeStatement__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": "30276ef531a065c7ab54a831f36caa06", "score": "0.59199023", "text": "public final void rule__Type__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalJava.g:8627:1: ( rule__Type__Group__0__Impl rule__Type__Group__1 )\n // InternalJava.g:8628:2: rule__Type__Group__0__Impl rule__Type__Group__1\n {\n pushFollow(FOLLOW_28);\n rule__Type__Group__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_2);\n rule__Type__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": "567ee185a5f7c13d1f9303ea0f12b4c2", "score": "0.5915775", "text": "public final void rule__ExtraData__Group__4() 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:2643:1: ( rule__ExtraData__Group__4__Impl rule__ExtraData__Group__5 )\n // ../org.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:2644:2: rule__ExtraData__Group__4__Impl rule__ExtraData__Group__5\n {\n pushFollow(FollowSets000.FOLLOW_rule__ExtraData__Group__4__Impl_in_rule__ExtraData__Group__45248);\n rule__ExtraData__Group__4__Impl();\n\n state._fsp--;\n\n pushFollow(FollowSets000.FOLLOW_rule__ExtraData__Group__5_in_rule__ExtraData__Group__45251);\n rule__ExtraData__Group__5();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "08571be42f05707659d9b3cbb6c4d2de", "score": "0.59155697", "text": "public final void ruleType() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalJava.g:802:2: ( ( ( rule__Type__Group__0 ) ) )\n // InternalJava.g:803:1: ( ( rule__Type__Group__0 ) )\n {\n // InternalJava.g:803:1: ( ( rule__Type__Group__0 ) )\n // InternalJava.g:804:1: ( rule__Type__Group__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getTypeAccess().getGroup()); \n }\n // InternalJava.g:805:1: ( rule__Type__Group__0 )\n // InternalJava.g:805:2: rule__Type__Group__0\n {\n pushFollow(FOLLOW_2);\n rule__Type__Group__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getTypeAccess().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": "8b22c5fb1af3bde92bf3d9553524c3fe", "score": "0.5909067", "text": "public final void rule__DmxArchetype__Group__4() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalPubProto.g:7848:1: ( rule__DmxArchetype__Group__4__Impl )\n // InternalPubProto.g:7849:2: rule__DmxArchetype__Group__4__Impl\n {\n pushFollow(FOLLOW_2);\n rule__DmxArchetype__Group__4__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": "4bd9300410cf3b96337d31db4e214f0a", "score": "0.5907324", "text": "public final void rule__Type_definition_part__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalPascal.g:3572:1: ( rule__Type_definition_part__Group__0__Impl rule__Type_definition_part__Group__1 )\n // InternalPascal.g:3573:2: rule__Type_definition_part__Group__0__Impl rule__Type_definition_part__Group__1\n {\n pushFollow(FOLLOW_6);\n rule__Type_definition_part__Group__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__Type_definition_part__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": "05df6d76bce4175e3e834a9cd7bea598", "score": "0.5879025", "text": "public final void rule__DataType__Group__0() 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:1281:1: ( rule__DataType__Group__0__Impl rule__DataType__Group__1 )\n // ../org.xtext.workshop.webgui.ui/src-gen/org/xtext/workshop/ui/contentassist/antlr/internal/InternalWebGui.g:1282:2: rule__DataType__Group__0__Impl rule__DataType__Group__1\n {\n pushFollow(FOLLOW_rule__DataType__Group__0__Impl_in_rule__DataType__Group__02586);\n rule__DataType__Group__0__Impl();\n _fsp--;\n\n pushFollow(FOLLOW_rule__DataType__Group__1_in_rule__DataType__Group__02589);\n rule__DataType__Group__1();\n _fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "182ad7692af6dfa8d5a41eb769ffc153", "score": "0.5878445", "text": "public final void ruleTypeStatement() 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:2565:2: ( ( ( rule__TypeStatement__Group__0 ) ) )\n // ../org.eclipse.yang.ui/src-gen/org/xtext/editor/yang/ui/contentassist/antlr/internal/InternalYang.g:2566:1: ( ( rule__TypeStatement__Group__0 ) )\n {\n // ../org.eclipse.yang.ui/src-gen/org/xtext/editor/yang/ui/contentassist/antlr/internal/InternalYang.g:2566:1: ( ( rule__TypeStatement__Group__0 ) )\n // ../org.eclipse.yang.ui/src-gen/org/xtext/editor/yang/ui/contentassist/antlr/internal/InternalYang.g:2567:1: ( rule__TypeStatement__Group__0 )\n {\n before(grammarAccess.getTypeStatementAccess().getGroup()); \n // ../org.eclipse.yang.ui/src-gen/org/xtext/editor/yang/ui/contentassist/antlr/internal/InternalYang.g:2568:1: ( rule__TypeStatement__Group__0 )\n // ../org.eclipse.yang.ui/src-gen/org/xtext/editor/yang/ui/contentassist/antlr/internal/InternalYang.g:2568:2: rule__TypeStatement__Group__0\n {\n pushFollow(FOLLOW_rule__TypeStatement__Group__0_in_ruleTypeStatement5434);\n rule__TypeStatement__Group__0();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getTypeStatementAccess().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": "d068630d6e46168b4c25f4e77e1560e1", "score": "0.5866195", "text": "public final void rule__ExtraData__Group__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:2583:1: ( rule__ExtraData__Group__2__Impl rule__ExtraData__Group__3 )\n // ../org.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:2584:2: rule__ExtraData__Group__2__Impl rule__ExtraData__Group__3\n {\n pushFollow(FollowSets000.FOLLOW_rule__ExtraData__Group__2__Impl_in_rule__ExtraData__Group__25126);\n rule__ExtraData__Group__2__Impl();\n\n state._fsp--;\n\n pushFollow(FollowSets000.FOLLOW_rule__ExtraData__Group__3_in_rule__ExtraData__Group__25129);\n rule__ExtraData__Group__3();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "67ae66b539e976403f815b2db35481a5", "score": "0.5858464", "text": "public final void rule__Type_definition_part__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalPascal.g:3610:1: ( ( ( ( rule__Type_definition_part__Group_1__0 ) ) ( ( rule__Type_definition_part__Group_1__0 )* ) ) )\n // InternalPascal.g:3611:1: ( ( ( rule__Type_definition_part__Group_1__0 ) ) ( ( rule__Type_definition_part__Group_1__0 )* ) )\n {\n // InternalPascal.g:3611:1: ( ( ( rule__Type_definition_part__Group_1__0 ) ) ( ( rule__Type_definition_part__Group_1__0 )* ) )\n // InternalPascal.g:3612:2: ( ( rule__Type_definition_part__Group_1__0 ) ) ( ( rule__Type_definition_part__Group_1__0 )* )\n {\n // InternalPascal.g:3612:2: ( ( rule__Type_definition_part__Group_1__0 ) )\n // InternalPascal.g:3613:3: ( rule__Type_definition_part__Group_1__0 )\n {\n before(grammarAccess.getType_definition_partAccess().getGroup_1()); \n // InternalPascal.g:3614:3: ( rule__Type_definition_part__Group_1__0 )\n // InternalPascal.g:3614:4: rule__Type_definition_part__Group_1__0\n {\n pushFollow(FOLLOW_13);\n rule__Type_definition_part__Group_1__0();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getType_definition_partAccess().getGroup_1()); \n\n }\n\n // InternalPascal.g:3617:2: ( ( rule__Type_definition_part__Group_1__0 )* )\n // InternalPascal.g:3618:3: ( rule__Type_definition_part__Group_1__0 )*\n {\n before(grammarAccess.getType_definition_partAccess().getGroup_1()); \n // InternalPascal.g:3619:3: ( rule__Type_definition_part__Group_1__0 )*\n loop41:\n do {\n int alt41=2;\n int LA41_0 = input.LA(1);\n\n if ( (LA41_0==RULE_ID) ) {\n alt41=1;\n }\n\n\n switch (alt41) {\n \tcase 1 :\n \t // InternalPascal.g:3619:4: rule__Type_definition_part__Group_1__0\n \t {\n \t pushFollow(FOLLOW_13);\n \t rule__Type_definition_part__Group_1__0();\n\n \t state._fsp--;\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop41;\n }\n } while (true);\n\n after(grammarAccess.getType_definition_partAccess().getGroup_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": "a75aec013cacd11125627bc11f5f9594", "score": "0.5842057", "text": "public final void rule__TypedefStatement__Group__4() 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:18442:1: ( rule__TypedefStatement__Group__4__Impl )\n // ../org.eclipse.yang.ui/src-gen/org/xtext/editor/yang/ui/contentassist/antlr/internal/InternalYang.g:18443:2: rule__TypedefStatement__Group__4__Impl\n {\n pushFollow(FOLLOW_rule__TypedefStatement__Group__4__Impl_in_rule__TypedefStatement__Group__438396);\n rule__TypedefStatement__Group__4__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "a312dd03e2ce32ef24554d1b19ce1e1f", "score": "0.5834552", "text": "public final void ruleType_declaration() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalJava.g:130:2: ( ( ( rule__Type_declaration__Group__0 ) ) )\n // InternalJava.g:131:1: ( ( rule__Type_declaration__Group__0 ) )\n {\n // InternalJava.g:131:1: ( ( rule__Type_declaration__Group__0 ) )\n // InternalJava.g:132:1: ( rule__Type_declaration__Group__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getType_declarationAccess().getGroup()); \n }\n // InternalJava.g:133:1: ( rule__Type_declaration__Group__0 )\n // InternalJava.g:133:2: rule__Type_declaration__Group__0\n {\n pushFollow(FOLLOW_2);\n rule__Type_declaration__Group__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getType_declarationAccess().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": "cdd47a3338805e8e01b528df376e61b6", "score": "0.58204305", "text": "public final void rule__TypedefStatement__Group__4__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:18453:1: ( ( '}' ) )\n // ../org.eclipse.yang.ui/src-gen/org/xtext/editor/yang/ui/contentassist/antlr/internal/InternalYang.g:18454:1: ( '}' )\n {\n // ../org.eclipse.yang.ui/src-gen/org/xtext/editor/yang/ui/contentassist/antlr/internal/InternalYang.g:18454:1: ( '}' )\n // ../org.eclipse.yang.ui/src-gen/org/xtext/editor/yang/ui/contentassist/antlr/internal/InternalYang.g:18455:1: '}'\n {\n before(grammarAccess.getTypedefStatementAccess().getRightCurlyBracketKeyword_4()); \n match(input,32,FOLLOW_32_in_rule__TypedefStatement__Group__4__Impl38424); \n after(grammarAccess.getTypedefStatementAccess().getRightCurlyBracketKeyword_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": "b05d93eed066a30412659a4f9df98ead", "score": "0.58170724", "text": "public final void rule__Pointer_type__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalPascal.g:8979:1: ( rule__Pointer_type__Group__1__Impl )\n // InternalPascal.g:8980:2: rule__Pointer_type__Group__1__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Pointer_type__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": "ec88401a6635f5eaec08211fdfda7494", "score": "0.58153796", "text": "public final void ruletype_definition() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalPascal.g:266:2: ( ( ( rule__Type_definition__Group__0 ) ) )\n // InternalPascal.g:267:2: ( ( rule__Type_definition__Group__0 ) )\n {\n // InternalPascal.g:267:2: ( ( rule__Type_definition__Group__0 ) )\n // InternalPascal.g:268:3: ( rule__Type_definition__Group__0 )\n {\n before(grammarAccess.getType_definitionAccess().getGroup()); \n // InternalPascal.g:269:3: ( rule__Type_definition__Group__0 )\n // InternalPascal.g:269:4: rule__Type_definition__Group__0\n {\n pushFollow(FOLLOW_2);\n rule__Type_definition__Group__0();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getType_definitionAccess().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": "b88e6741f16beba79c661e15db8b0071", "score": "0.58152634", "text": "public final void rule__Type_definition_part__Group__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalPascal.g:3584:1: ( ( 'type' ) )\n // InternalPascal.g:3585:1: ( 'type' )\n {\n // InternalPascal.g:3585:1: ( 'type' )\n // InternalPascal.g:3586:2: 'type'\n {\n before(grammarAccess.getType_definition_partAccess().getTypeKeyword_0()); \n match(input,33,FOLLOW_2); \n after(grammarAccess.getType_definition_partAccess().getTypeKeyword_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": "e22071dbbf65f0f89b1d97da029adc8b", "score": "0.58017266", "text": "public final void rule__TypeAliasDefinition__Group__0() 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:3415:1: ( rule__TypeAliasDefinition__Group__0__Impl rule__TypeAliasDefinition__Group__1 )\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:3416:2: rule__TypeAliasDefinition__Group__0__Impl rule__TypeAliasDefinition__Group__1\n {\n pushFollow(FOLLOW_rule__TypeAliasDefinition__Group__0__Impl_in_rule__TypeAliasDefinition__Group__07352);\n rule__TypeAliasDefinition__Group__0__Impl();\n _fsp--;\n\n pushFollow(FOLLOW_rule__TypeAliasDefinition__Group__1_in_rule__TypeAliasDefinition__Group__07355);\n rule__TypeAliasDefinition__Group__1();\n _fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "40acc1b6233c886834370ab328eb4f5a", "score": "0.5784895", "text": "public final void rule__Type_definition_part__Group_1__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalPascal.g:3633:1: ( rule__Type_definition_part__Group_1__0__Impl rule__Type_definition_part__Group_1__1 )\n // InternalPascal.g:3634:2: rule__Type_definition_part__Group_1__0__Impl rule__Type_definition_part__Group_1__1\n {\n pushFollow(FOLLOW_14);\n rule__Type_definition_part__Group_1__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__Type_definition_part__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": "cb59390be8afe5f7c89221676cd48b82", "score": "0.57762194", "text": "public final void rule__ExtraData__Group__3() 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:2612:1: ( rule__ExtraData__Group__3__Impl rule__ExtraData__Group__4 )\n // ../org.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:2613:2: rule__ExtraData__Group__3__Impl rule__ExtraData__Group__4\n {\n pushFollow(FollowSets000.FOLLOW_rule__ExtraData__Group__3__Impl_in_rule__ExtraData__Group__35186);\n rule__ExtraData__Group__3__Impl();\n\n state._fsp--;\n\n pushFollow(FollowSets000.FOLLOW_rule__ExtraData__Group__4_in_rule__ExtraData__Group__35189);\n rule__ExtraData__Group__4();\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": "0502d673297971aa23059a2f994e17ca", "score": "0.5745765", "text": "public final void rule__Type__Group_1_0__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalJava.g:8688:1: ( rule__Type__Group_1_0__0__Impl rule__Type__Group_1_0__1 )\n // InternalJava.g:8689:2: rule__Type__Group_1_0__0__Impl rule__Type__Group_1_0__1\n {\n pushFollow(FOLLOW_24);\n rule__Type__Group_1_0__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_2);\n rule__Type__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": "801bb7807f912ed7b92bc022f6c94c83", "score": "0.57206917", "text": "public final void rule__XRelationalExpression__Group_1_1_0_0__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAle.g:6050:1: ( rule__XRelationalExpression__Group_1_1_0_0__1__Impl )\n // InternalAle.g:6051:2: rule__XRelationalExpression__Group_1_1_0_0__1__Impl\n {\n pushFollow(FOLLOW_2);\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": "d3e62584137536eed8d5fd67e6d2032d", "score": "0.5708977", "text": "public final void rule__BODY__Group__0__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:2343:1: ( ( '@' ) )\r\n // ../org.xtext.module.dsl.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalModuleDsl.g:2344:1: ( '@' )\r\n {\r\n // ../org.xtext.module.dsl.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalModuleDsl.g:2344:1: ( '@' )\r\n // ../org.xtext.module.dsl.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalModuleDsl.g:2345:1: '@'\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getBODYAccess().getCommercialAtKeyword_0()); \r\n }\r\n match(input,43,FOLLOW_43_in_rule__BODY__Group__0__Impl4959); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getBODYAccess().getCommercialAtKeyword_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": "ad43432e3f5ca4772970fa4bb347f3bb", "score": "0.57067317", "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.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:5471:1: ( rule__XRelationalExpression__Group_1_1_0__0__Impl )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:5472: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__011494);\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": "d92472df0b349a1e454f14e311e7f839", "score": "0.5694463", "text": "public final void rule__ExtraData__Group_2__1__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:2757:1: ( ( ':' ) )\n // ../org.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:2758:1: ( ':' )\n {\n // ../org.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:2758:1: ( ':' )\n // ../org.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:2759:1: ':'\n {\n before(grammarAccess.getExtraDataAccess().getColonKeyword_2_1()); \n match(input,27,FollowSets000.FOLLOW_27_in_rule__ExtraData__Group_2__1__Impl5472); \n after(grammarAccess.getExtraDataAccess().getColonKeyword_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": "b83da4d74edfa86ced55736bcf4a99bf", "score": "0.5690359", "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.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:5376:1: ( rule__XRelationalExpression__Group_1_0_0_0__1__Impl )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:5377: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__111310);\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": "8f349e01e24488425b6288b8164d5983", "score": "0.56842506", "text": "public final void rule__Repository__Group__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalQms.g:490:1: ( ( 'type' ) )\n // InternalQms.g:491:1: ( 'type' )\n {\n // InternalQms.g:491:1: ( 'type' )\n // InternalQms.g:492:2: 'type'\n {\n before(grammarAccess.getRepositoryAccess().getTypeKeyword_2()); \n match(input,16,FOLLOW_2); \n after(grammarAccess.getRepositoryAccess().getTypeKeyword_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": "041b2328a85a2f547d66d153272bf471", "score": "0.5684044", "text": "public final void rule__Type_declaration__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalJava.g:2701:1: ( rule__Type_declaration__Group__1__Impl rule__Type_declaration__Group__2 )\n // InternalJava.g:2702:2: rule__Type_declaration__Group__1__Impl rule__Type_declaration__Group__2\n {\n pushFollow(FOLLOW_8);\n rule__Type_declaration__Group__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_2);\n rule__Type_declaration__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": "5c4bb81e69b672611e8bdf58a49a9500", "score": "0.56798524", "text": "public final void rule__ExtraData__Group__5() 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:2672:1: ( rule__ExtraData__Group__5__Impl )\n // ../org.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:2673:2: rule__ExtraData__Group__5__Impl\n {\n pushFollow(FollowSets000.FOLLOW_rule__ExtraData__Group__5__Impl_in_rule__ExtraData__Group__55308);\n rule__ExtraData__Group__5__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": "da0fa284af9a29a7456d5ed286aa3e42", "score": "0.56748277", "text": "public final void rule__Expressao__Group__4() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:550:1: ( rule__Expressao__Group__4__Impl )\n // InternalMyDsl.g:551:2: rule__Expressao__Group__4__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Expressao__Group__4__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "7f84b2c4ce1c651a84108d7c6bd41588", "score": "0.5674019", "text": "public final void rule__Record_type__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalPascal.g:8763:1: ( rule__Record_type__Group__2__Impl )\n // InternalPascal.g:8764:2: rule__Record_type__Group__2__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Record_type__Group__2__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": "3fb7663a7a38c27d089ea4c9b6cfd3e5", "score": "0.56663454", "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.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:5315:1: ( rule__XRelationalExpression__Group_1_0_0__0__Impl )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:5316: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__011190);\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": "b6e730e623fdbf002b79925bccb4900a", "score": "0.56571656", "text": "public final void rule__XRelationalExpression__Group_1_0_0_0__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAle.g:5915:1: ( rule__XRelationalExpression__Group_1_0_0_0__1__Impl )\n // InternalAle.g:5916:2: rule__XRelationalExpression__Group_1_0_0_0__1__Impl\n {\n pushFollow(FOLLOW_2);\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": "fac23aee902591f2d40c0678c665ae50", "score": "0.56570405", "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.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:5532:1: ( rule__XRelationalExpression__Group_1_1_0_0__1__Impl )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:5533: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__111614);\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": "02d074df675ff7c18eb95fe211e9acb6", "score": "0.56538564", "text": "public final void rule__TypeAliasDefinition__Group__0__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:3427:1: ( ( 'type' ) )\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:3428:1: ( 'type' )\n {\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:3428:1: ( 'type' )\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:3429:1: 'type'\n {\n before(grammarAccess.getTypeAliasDefinitionAccess().getTypeKeyword_0()); \n match(input,38,FOLLOW_38_in_rule__TypeAliasDefinition__Group__0__Impl7383); \n after(grammarAccess.getTypeAliasDefinitionAccess().getTypeKeyword_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": "072bea537aa7754ef0571cc5ab193ff8", "score": "0.5653145", "text": "public final void rule__XRelationalExpression__Group_1_0_0__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAle.g:5861:1: ( rule__XRelationalExpression__Group_1_0_0__0__Impl )\n // InternalAle.g:5862:2: rule__XRelationalExpression__Group_1_0_0__0__Impl\n {\n pushFollow(FOLLOW_2);\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": "fedadb431fcdbc02b964f480ac4554c8", "score": "0.56475395", "text": "public final void rule__ExtraData__Group__5__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:2683:1: ( ( '}' ) )\n // ../org.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:2684:1: ( '}' )\n {\n // ../org.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:2684:1: ( '}' )\n // ../org.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:2685:1: '}'\n {\n before(grammarAccess.getExtraDataAccess().getRightCurlyBracketKeyword_5()); \n match(input,23,FollowSets000.FOLLOW_23_in_rule__ExtraData__Group__5__Impl5336); \n after(grammarAccess.getExtraDataAccess().getRightCurlyBracketKeyword_5()); \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": "7f158bd05ce1cfec4764ed6afb6442fc", "score": "0.56434804", "text": "public final void rule__Enumerated_type__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalPascal.g:8250:1: ( rule__Enumerated_type__Group__2__Impl )\n // InternalPascal.g:8251:2: rule__Enumerated_type__Group__2__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Enumerated_type__Group__2__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": "35d0a1f46df2eaf82dd53280195948be", "score": "0.5627777", "text": "public final void rule__XRelationalExpression__Group_1_1_0__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAle.g:5996:1: ( rule__XRelationalExpression__Group_1_1_0__0__Impl )\n // InternalAle.g:5997:2: rule__XRelationalExpression__Group_1_1_0__0__Impl\n {\n pushFollow(FOLLOW_2);\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": "831f0ffe70c6c1198e4c1c763b12eec0", "score": "0.5613007", "text": "public final void rule__DmxRelationalExpression__Group_1_1_0__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalPubProto.g:10116:1: ( rule__DmxRelationalExpression__Group_1_1_0__0__Impl )\n // InternalPubProto.g:10117:2: rule__DmxRelationalExpression__Group_1_1_0__0__Impl\n {\n pushFollow(FOLLOW_2);\n rule__DmxRelationalExpression__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": "ac8d04808cbbdff5e956b85d21ce11cd", "score": "0.5605851", "text": "public final void rule__DmxRelationalExpression__Group_1_0_0_0__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalPubProto.g:10035:1: ( rule__DmxRelationalExpression__Group_1_0_0_0__1__Impl )\n // InternalPubProto.g:10036:2: rule__DmxRelationalExpression__Group_1_0_0_0__1__Impl\n {\n pushFollow(FOLLOW_2);\n rule__DmxRelationalExpression__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": "9fe07240cc575bcd75a098063f290068", "score": "0.5597221", "text": "public final void rule__Type_declaration__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalJava.g:2713:1: ( ( ( rule__Type_declaration__Alternatives_1 ) ) )\n // InternalJava.g:2714:1: ( ( rule__Type_declaration__Alternatives_1 ) )\n {\n // InternalJava.g:2714:1: ( ( rule__Type_declaration__Alternatives_1 ) )\n // InternalJava.g:2715:1: ( rule__Type_declaration__Alternatives_1 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getType_declarationAccess().getAlternatives_1()); \n }\n // InternalJava.g:2716:1: ( rule__Type_declaration__Alternatives_1 )\n // InternalJava.g:2716:2: rule__Type_declaration__Alternatives_1\n {\n pushFollow(FOLLOW_2);\n rule__Type_declaration__Alternatives_1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getType_declarationAccess().getAlternatives_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": "221082de4a50f3f050cd8b695573c349", "score": "0.5584996", "text": "public final void rule__DmxRelationalExpression__Group_1_1_0_0__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalPubProto.g:10170:1: ( rule__DmxRelationalExpression__Group_1_1_0_0__1__Impl )\n // InternalPubProto.g:10171:2: rule__DmxRelationalExpression__Group_1_1_0_0__1__Impl\n {\n pushFollow(FOLLOW_2);\n rule__DmxRelationalExpression__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": "2ce929b385f579958ff6ffee4035693a", "score": "0.55849564", "text": "public final void rule__Model__Group__4__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../dk.itu.smdp.junit.asrt.MyDsl2.ui/src-gen/dk/itu/smdp/junit/asrt/ui/contentassist/antlr/internal/InternalMyDsl2.g:660:1: ( ( '}' ) )\n // ../dk.itu.smdp.junit.asrt.MyDsl2.ui/src-gen/dk/itu/smdp/junit/asrt/ui/contentassist/antlr/internal/InternalMyDsl2.g:661:1: ( '}' )\n {\n // ../dk.itu.smdp.junit.asrt.MyDsl2.ui/src-gen/dk/itu/smdp/junit/asrt/ui/contentassist/antlr/internal/InternalMyDsl2.g:661:1: ( '}' )\n // ../dk.itu.smdp.junit.asrt.MyDsl2.ui/src-gen/dk/itu/smdp/junit/asrt/ui/contentassist/antlr/internal/InternalMyDsl2.g:662:1: '}'\n {\n before(grammarAccess.getModelAccess().getRightCurlyBracketKeyword_4()); \n match(input,21,FollowSets000.FOLLOW_21_in_rule__Model__Group__4__Impl1387); \n after(grammarAccess.getModelAccess().getRightCurlyBracketKeyword_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": "c2d37e3ed429df1a717063dce9d7d7e2", "score": "0.55846936", "text": "public final void rule__DomainModel__Group__1() 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:863:1: ( rule__DomainModel__Group__1__Impl )\n // ../org.xtext.workshop.webgui.ui/src-gen/org/xtext/workshop/ui/contentassist/antlr/internal/InternalWebGui.g:864:2: rule__DomainModel__Group__1__Impl\n {\n pushFollow(FOLLOW_rule__DomainModel__Group__1__Impl_in_rule__DomainModel__Group__11760);\n rule__DomainModel__Group__1__Impl();\n _fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "27e94d9454ab234a077661f60bc81166", "score": "0.55826896", "text": "public final void rule__TypeAliasDefinition__Group__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:3506:1: ( rule__TypeAliasDefinition__Group__3__Impl rule__TypeAliasDefinition__Group__4 )\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:3507:2: rule__TypeAliasDefinition__Group__3__Impl rule__TypeAliasDefinition__Group__4\n {\n pushFollow(FOLLOW_rule__TypeAliasDefinition__Group__3__Impl_in_rule__TypeAliasDefinition__Group__37536);\n rule__TypeAliasDefinition__Group__3__Impl();\n _fsp--;\n\n pushFollow(FOLLOW_rule__TypeAliasDefinition__Group__4_in_rule__TypeAliasDefinition__Group__37539);\n rule__TypeAliasDefinition__Group__4();\n _fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "ba0cd712af332a1a67e05198df776cdd", "score": "0.55822724", "text": "public final void rule__XRelationalExpression__Group_1_1__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:5439:1: ( rule__XRelationalExpression__Group_1_1__1__Impl )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:5440: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__111433);\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": "fac146cdd6254aa2c2c71a63c3eeba36", "score": "0.55817086", "text": "public final void ruletype_definition_part() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalPascal.g:241:2: ( ( ( rule__Type_definition_part__Group__0 ) ) )\n // InternalPascal.g:242:2: ( ( rule__Type_definition_part__Group__0 ) )\n {\n // InternalPascal.g:242:2: ( ( rule__Type_definition_part__Group__0 ) )\n // InternalPascal.g:243:3: ( rule__Type_definition_part__Group__0 )\n {\n before(grammarAccess.getType_definition_partAccess().getGroup()); \n // InternalPascal.g:244:3: ( rule__Type_definition_part__Group__0 )\n // InternalPascal.g:244:4: rule__Type_definition_part__Group__0\n {\n pushFollow(FOLLOW_2);\n rule__Type_definition_part__Group__0();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getType_definition_partAccess().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": "0e361f8da1740525ee1d43d2b32c42b4", "score": "0.55787677", "text": "public final void ruleDataType() 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:214:2: ( ( ( rule__DataType__Group__0 ) ) )\n // ../org.xtext.workshop.webgui.ui/src-gen/org/xtext/workshop/ui/contentassist/antlr/internal/InternalWebGui.g:215:1: ( ( rule__DataType__Group__0 ) )\n {\n // ../org.xtext.workshop.webgui.ui/src-gen/org/xtext/workshop/ui/contentassist/antlr/internal/InternalWebGui.g:215:1: ( ( rule__DataType__Group__0 ) )\n // ../org.xtext.workshop.webgui.ui/src-gen/org/xtext/workshop/ui/contentassist/antlr/internal/InternalWebGui.g:216:1: ( rule__DataType__Group__0 )\n {\n before(grammarAccess.getDataTypeAccess().getGroup()); \n // ../org.xtext.workshop.webgui.ui/src-gen/org/xtext/workshop/ui/contentassist/antlr/internal/InternalWebGui.g:217:1: ( rule__DataType__Group__0 )\n // ../org.xtext.workshop.webgui.ui/src-gen/org/xtext/workshop/ui/contentassist/antlr/internal/InternalWebGui.g:217:2: rule__DataType__Group__0\n {\n pushFollow(FOLLOW_rule__DataType__Group__0_in_ruleDataType394);\n rule__DataType__Group__0();\n _fsp--;\n\n\n }\n\n after(grammarAccess.getDataTypeAccess().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": "27552324037c89e1381c24a5b795390a", "score": "0.55757844", "text": "public final void rule__Ulong_type__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalIoT.g:4116:1: ( rule__Ulong_type__Group__1__Impl )\n // InternalIoT.g:4117:2: rule__Ulong_type__Group__1__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Ulong_type__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": "e48d89e7088eded2ceaaf20ced0d92f4", "score": "0.55721956", "text": "public final void rule__TechnologySpecificDataStructure__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalOperationDsl.g:15472:1: ( ( 'type' ) )\n // InternalOperationDsl.g:15473:1: ( 'type' )\n {\n // InternalOperationDsl.g:15473:1: ( 'type' )\n // InternalOperationDsl.g:15474:2: 'type'\n {\n before(grammarAccess.getTechnologySpecificDataStructureAccess().getTypeKeyword_1()); \n match(input,58,FOLLOW_2); \n after(grammarAccess.getTechnologySpecificDataStructureAccess().getTypeKeyword_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": "c62c775488387052f5ad9654b695385c", "score": "0.55706507", "text": "public final void ruleTypeAliasDefinition() 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:214:2: ( ( ( rule__TypeAliasDefinition__Group__0 ) ) )\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:215:1: ( ( rule__TypeAliasDefinition__Group__0 ) )\n {\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:215:1: ( ( rule__TypeAliasDefinition__Group__0 ) )\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:216:1: ( rule__TypeAliasDefinition__Group__0 )\n {\n before(grammarAccess.getTypeAliasDefinitionAccess().getGroup()); \n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:217:1: ( rule__TypeAliasDefinition__Group__0 )\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:217:2: rule__TypeAliasDefinition__Group__0\n {\n pushFollow(FOLLOW_rule__TypeAliasDefinition__Group__0_in_ruleTypeAliasDefinition395);\n rule__TypeAliasDefinition__Group__0();\n _fsp--;\n\n\n }\n\n after(grammarAccess.getTypeAliasDefinitionAccess().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": "0f7561ecdce4b3e2155e3d1ce0c4ec6e", "score": "0.5569219", "text": "public final void rule__JvmTypeReference__Group_0_1__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAle.g:14670:1: ( rule__JvmTypeReference__Group_0_1__0__Impl )\n // InternalAle.g:14671:2: rule__JvmTypeReference__Group_0_1__0__Impl\n {\n pushFollow(FOLLOW_2);\n rule__JvmTypeReference__Group_0_1__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": "6d13d2fc99f2ab4c86916cb74fa0fc0b", "score": "0.55636317", "text": "public final void rule__RelationalExpression__Group_1_0__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:10172:1: ( rule__RelationalExpression__Group_1_0__2__Impl )\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:10173:2: rule__RelationalExpression__Group_1_0__2__Impl\n {\n pushFollow(FOLLOW_rule__RelationalExpression__Group_1_0__2__Impl_in_rule__RelationalExpression__Group_1_0__220638);\n rule__RelationalExpression__Group_1_0__2__Impl();\n _fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "d521a9f1be2e7fe9c5fb56d1f8936722", "score": "0.5559079", "text": "public final void rule__Set_type__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalPascal.g:8844:1: ( rule__Set_type__Group__2__Impl )\n // InternalPascal.g:8845:2: rule__Set_type__Group__2__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Set_type__Group__2__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": "017416cd4083da99a31e02439d851898", "score": "0.5556401", "text": "public final void rule__Module__Group__4__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:6845:1: ( ( '}' ) )\n // ../org.eclipse.yang.ui/src-gen/org/xtext/editor/yang/ui/contentassist/antlr/internal/InternalYang.g:6846:1: ( '}' )\n {\n // ../org.eclipse.yang.ui/src-gen/org/xtext/editor/yang/ui/contentassist/antlr/internal/InternalYang.g:6846:1: ( '}' )\n // ../org.eclipse.yang.ui/src-gen/org/xtext/editor/yang/ui/contentassist/antlr/internal/InternalYang.g:6847:1: '}'\n {\n before(grammarAccess.getModuleAccess().getRightCurlyBracketKeyword_4()); \n match(input,32,FOLLOW_32_in_rule__Module__Group__4__Impl15622); \n after(grammarAccess.getModuleAccess().getRightCurlyBracketKeyword_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": "ec4ab7486f7e110c8d6b94985d193cd6", "score": "0.5550234", "text": "public final void rule__File_type__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalPascal.g:8871:1: ( rule__File_type__Group__0__Impl rule__File_type__Group__1 )\n // InternalPascal.g:8872:2: rule__File_type__Group__0__Impl rule__File_type__Group__1\n {\n pushFollow(FOLLOW_31);\n rule__File_type__Group__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__File_type__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": "09d7a153ea3e5ee2644830c6750307d5", "score": "0.5546828", "text": "public final void rule__PossiblyImportedTechnologySpecificType__Group_0__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalOperationDsl.g:15622:1: ( rule__PossiblyImportedTechnologySpecificType__Group_0__1__Impl )\n // InternalOperationDsl.g:15623:2: rule__PossiblyImportedTechnologySpecificType__Group_0__1__Impl\n {\n pushFollow(FOLLOW_2);\n rule__PossiblyImportedTechnologySpecificType__Group_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": "d550c3848dfcea4c87b68431920530c8", "score": "0.55455905", "text": "public final void rule__DmxOrExpression__Group_1_0_0__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalPubProto.g:9468:1: ( rule__DmxOrExpression__Group_1_0_0__1__Impl )\n // InternalPubProto.g:9469:2: rule__DmxOrExpression__Group_1_0_0__1__Impl\n {\n pushFollow(FOLLOW_2);\n rule__DmxOrExpression__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": "" } ]
21008fde886433efa7d3e1629233b35a
Clicks the page button that is supplied into the parameter
[ { "docid": "30c3f0ed2feac50e4001b7fc8dcc2dd3", "score": "0.635984", "text": "public void ClickToNavigateTo(String ClickToNavigateTo) {\r\n\t\tdriver.findElement(By.xpath(\"//a[@id='SideBarButton' and text()='\" + ClickToNavigateTo + \"']\")).click();\r\n\t\t\tLog(\"Clicked the \\\"'\" + ClickToNavigateTo + \"'\\\" button on the IVANS Information page\");\r\n\t}", "title": "" } ]
[ { "docid": "b7ce209fea3f233c91f3583bb34c4c5f", "score": "0.7535315", "text": "@Test\n void _6_clickOnButton() {\n driver.get(new File(\"src/test/resources/html/interactions.html\").getAbsolutePath());\n page.buttonToClick.click();\n }", "title": "" }, { "docid": "fce3f68c5a90bf830d0dc6b43cc9696c", "score": "0.7173439", "text": "void performClick();", "title": "" }, { "docid": "1a75b2ba9001b9339491843a69d93cda", "score": "0.7085372", "text": "public static void buttonClick(String text){\n $(By.xpath(\"//button[text() = \\\"\" + text + \"\\\"]\")).click();\n }", "title": "" }, { "docid": "abc0850d57e5e9d46c84d491dc6802c3", "score": "0.69849986", "text": "public abstract AbsPage zPressButton(Button button) throws HarnessException;", "title": "" }, { "docid": "1abb813482104dce603c4d6ce48ab940", "score": "0.6968568", "text": "private static void click() {\n\t\t\r\n\t}", "title": "" }, { "docid": "8f8a60a99381c073be7684ddeea72198", "score": "0.69179", "text": "public void doClick() {\r\n \tx.doClick(); //Click the button\r\n }", "title": "" }, { "docid": "bbd8267f10d4438eaa01d83cc9a06c4b", "score": "0.68456143", "text": "public void clickOnPlaceOrderButton(){\n clickOn(placeOrderButton);\n }", "title": "" }, { "docid": "839d66b9b6ce30eab866c7042007585c", "score": "0.68184716", "text": "public void clickBookButton() {\n bookButton.click();\n logger.info(\"Click 'Book' button\");\n }", "title": "" }, { "docid": "e55000ac1ebd05e710dd8128332137f8", "score": "0.678324", "text": "public static void clickOnSearhButton (WebDriver driver){\n element = searchButton(driver);\n element.click();\n }", "title": "" }, { "docid": "55c7eaa5f59280572d01e71b8fc12273", "score": "0.6756566", "text": "public void clickOnSearchButton(){\n clickOnElement(_clickOnSearch);\n\n }", "title": "" }, { "docid": "8d796bb2c6e151528af0b6f08a942bac", "score": "0.6749142", "text": "public void clickNextButton() {\n nextButton.click();\n }", "title": "" }, { "docid": "62d3c10e46f6d15001d64af8c6e8456a", "score": "0.67159224", "text": "public void clicksearchBtn() \r\n\t{\n\t\tthis.searchBtn.click();\r\n\t\t\r\n\t}", "title": "" }, { "docid": "4fb328921bb141393260fb7a69a437ba", "score": "0.6706585", "text": "static void searchButton(WebDriver driver){\n WebElement element=driver.findElement(By.xpath(\"//button[@type='submit']\"));\n element.click();\n }", "title": "" }, { "docid": "4d5ec5769632751c36bce6d1e954a582", "score": "0.6637345", "text": "public void clickButtonWD(String locator) throws Exception{\r\n \t \tWebElement e =explicitWait(locator);\r\n if(e!= null){\r\n System.out.println(locator+\" Link found\");\r\n e.click();\r\n System.out.println(\"clicked on the Button - \"+locator);\r\n writePassLog(\"clicked on the Button - \"+locator);\r\n }\r\n else{\r\n writeFailLog(\"Button not found on the Screen\");\r\n }\r\n }", "title": "" }, { "docid": "58ddee76fe2caec97dba6672fdac3992", "score": "0.6612055", "text": "public void clickgo(){\r\n\t \r\n\t driver.findElement(l).click();\r\n\t \t }", "title": "" }, { "docid": "89e0ff8a2683f86e7b4274e7386e4b58", "score": "0.66116667", "text": "public void clickSearchButton() {\n\t\tsearchButton().click();\n\t}", "title": "" }, { "docid": "c4f756747ea7f35a4b30120788176edf", "score": "0.6610193", "text": "public void clickSearchButton() {\n\t\tsearchButton.click();\n\t}", "title": "" }, { "docid": "0babb9c18890d23953cb94220bf73883", "score": "0.6604241", "text": "public void ClickOnFindButton()\n\t{\n\t\tString locator = vidoeLocator.getLocator(\"SearchVideo.FindVideoButton\");\n\t\tclickOn(locator);\n\t}", "title": "" }, { "docid": "eb2042ad4e2c789e7ba41e9da2e45711", "score": "0.6603061", "text": "public void Click_Employee()\n\t{ \n\t\temploybutt.click();\n\t\t\n\t}", "title": "" }, { "docid": "56e0d1ca171036d441ac9a344e2b0b24", "score": "0.6588686", "text": "public void navigatetonextpage()\n\t{\n\t\ttry{\n\t\t\tnextpage.click();\n\t\t\tLog.info(\"The next button is clicked\");\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tLog.error(\"The next button cannot be clicked\");\n\t\t}\n\n\t}", "title": "" }, { "docid": "8fbf0fc9e8896d0ac1ee31460bec36e8", "score": "0.6573821", "text": "public static void kuaimen() {\n bt_paizhao.performClick();\n }", "title": "" }, { "docid": "4fa276196de74680013df5fa683d970f", "score": "0.65683436", "text": "public void clickToDialogButton(Buttons button){\n switch (button){\n case Save:\n clickTo(DialogContainerButtonSave);\n break;\n case Yes:\n clickTo(DialogContainerButtonYes);\n break;\n case No:\n clickTo(DialogContainerButtonNo);\n break;\n case Close:\n clickTo(DialogContainerButtonClose);\n break;\n case Apply:\n clickTo(DialogButtonApplyWithText);\n }\n }", "title": "" }, { "docid": "83346b6b0d38e4fa7b499b6317b1ce6e", "score": "0.6563355", "text": "public void click(WebElement ele);", "title": "" }, { "docid": "cb6a06dcf18787d6e17007c854d84f8d", "score": "0.6554128", "text": "public void goTo(Button button, String page) {\n try {\n Pane mainPage = (Pane) FXMLLoader.load(getClass().getResource(page + \".fxml\"));\n Stage window = (Stage) button.getScene().getWindow();\n window.setScene(new Scene(mainPage));\n window.show();\n } catch (IOException ie) {\n System.out.println(\"IOException\");\n }\n }", "title": "" }, { "docid": "43a730d0726d75a9d84971e7be400411", "score": "0.65504664", "text": "public void clickBankPaymentButton() {\n\t\tbankPaymentButton.click();\r\n\t}", "title": "" }, { "docid": "1bc3a5d6b3a59c51bade6867ab2d018f", "score": "0.65476686", "text": "void click();", "title": "" }, { "docid": "1bc3a5d6b3a59c51bade6867ab2d018f", "score": "0.65476686", "text": "void click();", "title": "" }, { "docid": "1bc3a5d6b3a59c51bade6867ab2d018f", "score": "0.65476686", "text": "void click();", "title": "" }, { "docid": "3f7fcb1c4538a9e7fd2896b8565bfcc8", "score": "0.653807", "text": "public void ClickOnSearchButton()\n\t\t\t{\n\t\t\t\tSearchButton.click();\n\t\t\t}", "title": "" }, { "docid": "8ca7149ff3db0bff54f1aef99ab2bbb3", "score": "0.6532674", "text": "public void gotoJobsPage(){\n jobLink.click();\n }", "title": "" }, { "docid": "423f21bf1e2661bee1c298f8b92be7cd", "score": "0.653139", "text": "@When(\"^i click on button$\")\n\tpublic void i_click_on_button() throws Throwable {\n\t \n\t}", "title": "" }, { "docid": "766ab05900bd75898e4a5f5de5d008ff", "score": "0.65254647", "text": "public void clickSubmitButton() {\n submitButton.click();\n }", "title": "" }, { "docid": "d3ae538d6d1bee72f770af62b9a73f0a", "score": "0.6523055", "text": "@Test(priority=10,description=\"step 10:click on Stay on page Button \")\n\tpublic void step10_ClickOnStayOnPageButton() throws Exception \n\t{\n\t\tSystem.out.println(\"step 10 begin\");\n\t\tPersonalInformationPage PIP= new PersonalInformationPage(driver);\n\t\tPIP.ClickOnStayOnPage();\n\t\tGUIFunctions.normalWait();\n\t\tlog.info(\"Successfully Clicked on stay on page Button \\n\");\n\t\tReporter.log(\"<p>Successfully Clicked on stay on page Button\");\n\t\tSystem.out.println(\"step 10 end\");\n\t}", "title": "" }, { "docid": "8317a770e04d91e260998d5dd702bfc4", "score": "0.6518156", "text": "public void ClickConfirmationPage() {\r\n\t\tconfirmation.click();\r\n\t\t\tLog(\"Clicked the \\\"Confirmation\\\" button on the IVANS Information page\");\r\n\t}", "title": "" }, { "docid": "86dac3a46c6871b7d768a43819f57509", "score": "0.6510865", "text": "public void testButtonClicks(){\n solo.clickOnButton(\" View Syllabus \");\n assertTrue(solo.waitForText(\" Please select class .\"));\n\n solo.clickOnButton(\"Add Syllabus \");\n assertTrue(solo.waitForText(\" Please select class .\"));\n\n solo.clickOnButton(\"My Progress\");\n assertTrue(solo.waitForText(\" Please select class .\"));\n\n }", "title": "" }, { "docid": "b9896c872258f383a58ccc169980c3fb", "score": "0.6497846", "text": "public void clickSubmit(){\r\n \tsubmitBtn.click();\r\n }", "title": "" }, { "docid": "f368408bf005bca4bb9aa224f65989ed", "score": "0.64928555", "text": "public void ClickConfirmationPage() {\r\n\t\tconfirmation.click();\r\n\t\t\tLog(\"Clicked the \\\"Confirmation\\\" button on the Agent Summary page\");\r\n\t}", "title": "" }, { "docid": "bdfb248d3e843f8108226a0a7634d21e", "score": "0.64759177", "text": "public void clickOnProcessBtn() {\n Reporter.log(\"Clicks on Process Button \" + processBtn.toString() + \"<br>\");\n clickOnElement(processBtn);\n }", "title": "" }, { "docid": "9d0bf50d49152868d37b18e0d417b2e4", "score": "0.64706826", "text": "@Test\n public void clickButtons() {\n bPage.buttonEleClick();\n Assert.assertEquals(bPage.listSize(), 2);\n }", "title": "" }, { "docid": "9745ab55f29f038b8038c7c197b66499", "score": "0.6453049", "text": "public void clickStartPractice(){\n WebElement startPracticeButton = driver.findElement(By.id(\"btn_basic_example\"));\n startPracticeButton.click();\n }", "title": "" }, { "docid": "6dc987f354ee84cb5f3fb293f01c064b", "score": "0.6449333", "text": "public void clickCheckoutBtn() {\n\t\tcheckoutButton.click();\r\n\t}", "title": "" }, { "docid": "0f80a681fb97cfb5e642fb012162b376", "score": "0.6438766", "text": "public CommunicationsPublishPage clickPublishButton()\r\n\t{\r\n\t\treadconfig();\r\n\t\t//select submit button to publish a campaign\r\n\t\tdriver.findElement(By.id(library.getProperty(\"comm_publish_button\"))).click();\r\n\t\t//Switch to active element model dialogue box.\r\n\t\tdriver.switchTo().activeElement();\r\n\t\tsleep();\r\n\t\t//select submit button in pop up\r\n\t\tdriver.findElement(By.xpath(library.getProperty(\"comm_publish_submit_buton\"))).click();\r\n\t\t//return campaign publish page\r\n\t\treturn new CommunicationsPublishPage(driver);\r\n\t}", "title": "" }, { "docid": "e13d5b4e01559af53529156f25a2a9a2", "score": "0.6438419", "text": "public void clickOnPlayButton()\n\t{\n\t String locator = vidoeLocator.getLocator(\"SupervisedVideo.ClickPlayBttn\");\n\t clickOn(locator); \n\t }", "title": "" }, { "docid": "c99188a696c84be9662638e226caef9f", "score": "0.6430594", "text": "public void buttonClick(ClickEvent event) {\r\n\t\t\r\n\t\tString buttonID = event.getButton().getId();\r\n\t\t\r\n\t\tswitch(buttonID) {\r\n\t\tcase \"buttonDiary\":\r\n\t\t\tview.getUI().getNavigator().navigateTo(Views.DIARY_VIEW);\r\n\t\t\tbreak;\r\n\t\tcase \"buttonContact\":\r\n\t\t\tview.getUI().getNavigator().navigateTo(Views.CONTANCT_VIEW);\r\n\t\t\tbreak;\r\n\t\tcase \"buttonBarometer\":\r\n\t\t\tview.getUI().getNavigator().navigateTo(Views.BAROMETER_VIEW);\r\n\t\t\tbreak;\r\n\t\tcase \"buttonExercises\":\r\n\t\t\tview.getUI().getNavigator().navigateTo(Views.EXERCISES_VIEW);\r\n\t\t\tbreak;\r\n\t\tcase \"buttonInformations\":\r\n\t\t\tview.getUI().getNavigator().navigateTo(Views.INFORMATIONS_VIEW);\r\n\t\t\tbreak;\r\n\t\tcase \"buttonTips\":\r\n\t\t\tview.getUI().getNavigator().navigateTo(Views.TIPS_VIEW);\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "792ffea7d0a61d0d27bbbe5885e617aa", "score": "0.64185184", "text": "@Test\n public void buttonTest() {\n\n JButtonFixture button = window.button(\"Start\");\n button.requireVisible().requireEnabled();\n button.click();\n window.requireNotVisible();\n\n }", "title": "" }, { "docid": "bbbe00a06886f6c080d00a73d46367ff", "score": "0.6413786", "text": "public void clickButton(WebDriver driver,By element,String buttonName){\n\t\t\n\t\t// To wait till element loaded\n\t\tboolean isDisplayed = false;\n\t\ttry{\n\t\t\t//scrollToView(driver,element);\n\t\t\tisDisplayed = driver.findElement(element).isDisplayed();\n\t\t\t\n\t\t\tif(isDisplayed== true){\n\t\t\t\tdriver.findElement(element).click();\n\t\t\t\treport.updateTestLog(\"Click on \"+buttonName, \"<b>\"+ buttonName+\" </b> is clicked in application as expected\", Status.PASS);\n\t\t\t}\n\t\t\telse{\n\t\t\t\treport.updateTestLog(\"Click on \"+buttonName, \"<b>\"+ buttonName+\" </b> is not displayed in application\", Status.FAIL);\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tcatch(StaleElementReferenceException e){\n\t\t\te.printStackTrace();\n\t\t\tdriver.navigate().refresh();\n\t\t\tisDisplayed = driver.findElement(element).isDisplayed();\n\t\t\tif(isDisplayed== true){\n\t\t\t\tdriver.findElement(element).click();\n\t\t\t\treport.updateTestLog(\"Click on \"+buttonName, \"<b>\"+ buttonName+\" </b> is clicked in application as expected\", Status.PASS);\n\t\t\t}\n\t\t\telse{\n\t\t\t\treport.updateTestLog(\"Click on \"+buttonName, \"<b>\"+ buttonName+\" </b> is not displayed in application\", Status.FAIL);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "188fc82bbb3c969fe72a7cc7abab361f", "score": "0.64000905", "text": "public void btnClick(WebElement c) {\n\t\tc.click();\n\n\t}", "title": "" }, { "docid": "151df70d69479c2f7762a1aee486a816", "score": "0.63869697", "text": "public void clickToButton() {\n\t\tLog.info(\"Clicking On To button\");\n\t\tcmd.click(By.xpath(locators.getProperty(\"configportal.instantwithdrawal.to.tab.xpath\")),\n\t\t\t\t\"Clicking On To button\");\n\t}", "title": "" }, { "docid": "e36bfd5ec19560275afa05198fe01280", "score": "0.638651", "text": "@When(\"Click on search button\")\n\tpublic void click_on_search_button() {\n\t}", "title": "" }, { "docid": "88a1b5e87cdce2437effeb5dbe3c0e9c", "score": "0.6372979", "text": "public void clickElement() {\n\t\telementPresent();\n\t\tdriver = SetupScript.getDriver();\n\t\tBy by = getElementUsing();\n\t\tSystem.out.println(\"Clicking \" + by);\n\t\tdriver.findElement(by).click();\n\t}", "title": "" }, { "docid": "1b593f7f5ee28bb7b6f9e403681458b4", "score": "0.63722944", "text": "public void clickByName(String name) {\n\r\n\t}", "title": "" }, { "docid": "58ed256c98a67049425e7983e580c34a", "score": "0.6371296", "text": "public void clickLogin() {\n loginButton.click();\n }", "title": "" }, { "docid": "c5adb58ca6f651bbabc619dcf763d4a9", "score": "0.63628405", "text": "public void testSubmitFromPositionalButton() throws Exception { \t\n defineResource( \"ask?age=12&update=name&update.x=5&update.y=15\", \"You made it!\", \"text/plain\" );\n defineWebPage( \"Default\", \"<form id='form' method=GET action = \\\"/ask\\\">\" +\n \"<Input type=text name=age value=12>\" +\n \"<Input type=image name=update value=name src=\\\"\\\">\" +\n \"</form>\" );\n WebResponse page = _wc.getResponse( getHostPath() + \"/Default.html\" );\n SubmitButton button = page.getFormWithID( \"form\" ).getSubmitButton( \"update\" );\n assertEquals(\"x param name\",button.positionParameterName(\"x\"),\"update.x\");\n assertEquals(\"y param name\",button.positionParameterName(\"y\"),\"update.y\");\n button.click( 5, 15 );\n assertEquals( \"Result of click\", \"You made it!\", _wc.getCurrentPage().getText() );\n }", "title": "" }, { "docid": "5205aaedca8edf6e038a409056aac59c", "score": "0.6361009", "text": "@When(\"user click on siginButton\")\n public void user_click_on_siginButton() {\n loginPage.signInButton.click();\n\n }", "title": "" }, { "docid": "cdf6513bca7d4f9acacdcb225f24d911", "score": "0.63603705", "text": "public void ClickBirthdaysPage() {\r\n\t\tbirthdays.click();\r\n\t\t\tLog(\"Clicked the \\\"Birthdays\\\" button on the IVANS Information page\");\r\n\t}", "title": "" }, { "docid": "9ca52f0546319119d6190ca4034c2c98", "score": "0.63530964", "text": "public void actionClick() {\n\n JavascriptExecutor executor = (JavascriptExecutor)webDriver;\n executor.executeScript(\"arguments[0].click();\", buttonAddToCart);\n // (JavascriptExecutor(webDriver)).executeScript(\"document.getElementsByClassName('form-horizontal')[0].click();\");\n }", "title": "" }, { "docid": "ea70d600a061b0b530b5634e89de0567", "score": "0.6352693", "text": "private void clickOnAddToBasketBtn(){\n this.btnAddProduct.click();\n }", "title": "" }, { "docid": "d998b4d1c27ae66f2f71f140a0ed1d78", "score": "0.6347521", "text": "public void clickOnTheSkyBlueButton() {\r\n\t\tSkybluebutton.click();\r\n\r\n\t}", "title": "" }, { "docid": "4a1d756b371a7feb58d17a6d58b84d6e", "score": "0.63329536", "text": "@When(\"^user clicks New Checking button$\")\n public void user_clicks_New_Checking_button() {\n mainPageClass.newCheckingButton.click();\n }", "title": "" }, { "docid": "ef9b7fa7b15b09ca6dbe51b31a057438", "score": "0.63320947", "text": "public void click() {\r\n\t\tclickAt(0, 0);\r\n\t}", "title": "" }, { "docid": "7a28c5da501038c19de6c77617a16e7e", "score": "0.63293606", "text": "@Override\n public void click() {\n }", "title": "" }, { "docid": "57cec90720816972fd4b2bf46527ad38", "score": "0.6319477", "text": "public void clickById(String id) {\n\r\n\t}", "title": "" }, { "docid": "2a6ab70c16dd7a63cbe6c41ac1f1e528", "score": "0.63187504", "text": "public void clickBtnCreatePaper(){\n driver.findElement(btn_createPaper).click();\n }", "title": "" }, { "docid": "0494609ca5975dc7fe04d962f4919a42", "score": "0.6308313", "text": "@Test\r\n\tpublic void ClickCarryOutButton() throws InterruptedException {\r\n\t\tWaitFor();\r\n\r\n\t\tassertEquals(\"https://www.dominos.com/en/\", driver.getCurrentUrl());\r\n\r\n\t\tpage.clickCarryoutBtn();\r\n\t\tassertEquals(\"https://www.dominos.com/en/pages/order/#/locations/search/?type=Carryout\", driver.getCurrentUrl());\r\n\r\n\t\tWaitFor();\r\n\t}", "title": "" }, { "docid": "66812bb842cbac2033501933f52e8569", "score": "0.6306725", "text": "public void clickOnPortfolioButtonOnProfilePage(String... strings)\n {\n ExtentTestManager.getTest().log(LogStatus.INFO, \" \" + strings[0] + \" :: Click on Portfolio Button on Profile Page\");\n try\n {\n genericfunctions.waitTillTheElementIsVisible(postwithhashtagobjects.sidebar_portfolio_button);\n postwithhashtagobjects.sidebar_portfolio_button.click();\n\n }\n catch (Throwable e)\n {\n Assert.fail(\"Could not perform action on \\\"Portfolio Submit Button\\\"\"+\"&\"+e.getMessage()+\"\" );\n }\n }", "title": "" }, { "docid": "e8fde11d2ff4bc96e7700695290325a0", "score": "0.63034403", "text": "public HomePage clickOnSubmitButton() {\n\t\tlog.info(\"clicking on submit button\");\n\t\tnew JavaScriptHelper(driver).scrollDownVertically();\n\t\tsubmitLogin.click();\n\t\tloggedInExtentReport(\"clicking on submit button\");\t\t\n\t\treturn new HomePage(driver);\n\t}", "title": "" }, { "docid": "ce9763865722821c2d95e3d12ca6649b", "score": "0.6300121", "text": "public void clickOnMyJourneySubmitButton(String... strings)\n {\n ExtentTestManager.getTest().log(LogStatus.INFO, \" \" + strings[0] + \" :: Click on MyJourney Submit Button\");\n try\n {\n genericfunctions.waitTillTheElementIsVisible(postwithhashtagobjects.myjourney_submit_button);\n postwithhashtagobjects.myjourney_submit_button.click();\n\n }\n catch (Throwable e)\n {\n Assert.fail(\"Could not perform action on \\\"MyJourney Submit Button\\\"\"+\"&\"+e.getMessage()+\"\" );\n }\n }", "title": "" }, { "docid": "cc5b403aa10eff1b4ea748069e4112a0", "score": "0.6300048", "text": "@Override\n\t\tpublic void buttonClick(ClickEvent event) {\n\t\t\tnavigator.navigateTo(MAINVIEW + \"/\" + menuItem); \n\t\t\t\n\t\t}", "title": "" }, { "docid": "7dfb0d658ef4d2878661ec9d0e5f666c", "score": "0.6293667", "text": "public void ClickNotesAndMessagesPage() {\r\n\t\tnotesandmessages.click();\r\n\t\t\tLog(\"Clicked the \\\"Notes and Messages\\\" button on the IVANS Information page\");\r\n\t}", "title": "" }, { "docid": "9cc8732e19bb6d3fbba4f79865d1ac27", "score": "0.62908125", "text": "public void clickOnBook(){\n clickOnElement(_clickOnBook);\n }", "title": "" }, { "docid": "4c0c817e8eb052d925a92f62102e32e9", "score": "0.6276256", "text": "public static void clickButton(WebDriver driver, String xpath)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tWebElement button = driver.findElement(By.xpath(xpath));\r\n\t\t\thighlighter(driver, button);\r\n\t\t\tbutton.click();\r\n\t\t}\r\n\t\tcatch(Exception ex)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Button object Not found\");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "b0503436342dc856a9796a2cc7b086e5", "score": "0.62749696", "text": "public void ClickQuiz()\r\n\t{\r\n\t\tthis.quiz.click();\r\n\t}", "title": "" }, { "docid": "56e5176f3fa336f9e9245386cca241b0", "score": "0.6269409", "text": "public void ClickPartnerInformationPage() {\r\n\t\tpartnerinfo.click();\r\n\t\t\tLog(\"Clicked the \\\"Partner Information\\\" button on the IVANS Information page\");\r\n\t}", "title": "" }, { "docid": "f65a19c881b7e6e4fc2db6a857eec889", "score": "0.6262806", "text": "public static void clickElement(WebElement obj1, String objName) throws IOException{\n\t \tif(obj1.isDisplayed()){\n\t \t\tobj1.click();\n\t Update_Report(\"Pass\",\"click \"+objName+\" button\", objName+\" button is clicked \");\n\t }else{\n\t Update_Report(\"Fail\",\"click \"+objName+\" button\", objName+\" button is not clicked \");\n\t }\n\t }", "title": "" }, { "docid": "bc62c8e1ed29b0d6c5cbbd9f6cd9ac18", "score": "0.62562466", "text": "public PasswordPage nextButtonClick(){\n driver.findElement(nextButton).click();\n return new PasswordPage(driver);\n }", "title": "" }, { "docid": "bca831033c75122eec04d5d2d5cfc93c", "score": "0.6254148", "text": "@When(\"I click on checkout button\")\n\tpublic void i_click_on_checkout_button() {\n\t inkjetPrintersPage.clickOnCheckoutButton();\n\t}", "title": "" }, { "docid": "a2ad88d77bb15b74ad76ef33ef55ae0b", "score": "0.6250474", "text": "@When(\"^click on Next button$\")\n public void click_on_Next_button() throws Throwable {\n }", "title": "" }, { "docid": "5f5f17eca098580d49db68f091aa8092", "score": "0.6245094", "text": "public void Click_CP()\n\t{\n\t\tcontrolbutt.click();\n\t\t\n\t}", "title": "" }, { "docid": "876df2a7c0c4a3a4cfde006d7e987fc0", "score": "0.62372077", "text": "public void clickWomen() {\n\t\twomenBtn.click();\r\n\t}", "title": "" }, { "docid": "c1096b17964dd5e186f2baa4df238ac2", "score": "0.62360835", "text": "public void ClickNext() {\r\n\t\tnext.click();\r\n\t\t\tLog(\"Clicked the \\\"Next\\\" button on the IVANS Information page\");\r\n\t}", "title": "" }, { "docid": "b162eb05e210f90f1ffe1d9edc6c7468", "score": "0.62272286", "text": "private void listenButtonClick(int offset){\n webHistory.go(offset);\n }", "title": "" }, { "docid": "574b503b895323f3d0ee2c6fb5eb9a55", "score": "0.6224994", "text": "public void clickCheckoutBtn1() {\n\t\tcheckoutButton1.click();\r\n\t}", "title": "" }, { "docid": "4ba5943a6c2ab34a274aca6a02cbd6f5", "score": "0.6221673", "text": "public static void clickButton(WebDriver driver, By by){\r\n\t\ttry{\r\n\t\t\tdriver.findElement(by).click();\r\n\t\t\tlog.info(\"Successfully clicked the button '\");\r\n\t\t}\r\n\t\t catch (NoSuchElementException e) {\r\n\t\t\t log.error(\"Button to click is not present because of\" + e);\r\n\t}\r\n\t}", "title": "" }, { "docid": "4a27d85a91b99e6c2736b9046e2709d6", "score": "0.6219974", "text": "public static void pressButtonByName(WebDriver driver, String name) {\n driver.findElement(By.name(name)).click();\n try {\n Thread.sleep(defaultWait);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "f42ea809f946d1c6b86f010fcb079cbf", "score": "0.62198454", "text": "@Step(\"User clicks on T-Shirts button\")\n public void userClicksOnTShirtsButton() {\n onMyAccountPage().openTShirtsPage();\n }", "title": "" }, { "docid": "b426d22e870066a670c1f146a91bbd5f", "score": "0.6217359", "text": "@And(\"^I click on Sign up$\")\r\n public void iClickOnSignUp() throws Throwable {\n driver.findElement(By.xpath(\"//*[@id=\\\"signup-form\\\"]/div[9]/button\")).click();\r\n\r\n }", "title": "" }, { "docid": "36f3da7f01c343e5aadc2f8c7568337e", "score": "0.6215847", "text": "public void clickOnNewPageCapture()\n\t{\n\t\tString locator = profileLocator.getLocator(\"PageCapture.CreateCapture.NewPageCaptureLink\");\n\t\tclickOn(locator);\n\t}", "title": "" }, { "docid": "0699f7b13a0752d089df01d98491e3d2", "score": "0.6215215", "text": "public void clickOnMyVideoButton()\n\t{\n\t\tString locator = vidoeLocator.getLocator(\"VideoHeader.Myvideo\");\n\t\tclickOn(locator) ;\n\t}", "title": "" }, { "docid": "06e4795388d920757d82f3a9e166c0ef", "score": "0.6209609", "text": "private void clickSearchButton() throws Exception {\n\t\tclickElement(searchButton, \"XPATH\");\n\n\t\tlog.info(\"clickSearchButton() was successful\");\n\t}", "title": "" }, { "docid": "8bb00bce323ff10fa260fc99372a7cd5", "score": "0.6198646", "text": "public void clickSendButton();", "title": "" }, { "docid": "a7c247b49d7e6a0dc671f05b1b94eb68", "score": "0.6197096", "text": "public void Clicksearch()\r\n\t{\r\n\t\tthis.search.click();\r\n\t}", "title": "" }, { "docid": "041a93ea3638e1304182d7b87782fe00", "score": "0.6194637", "text": "public void ClickCourse1()\r\n\t{\r\n\t\tthis.Course1.click();\r\n\t}", "title": "" }, { "docid": "4e43096098018d44065813e4815a439c", "score": "0.6194342", "text": "public void ClickBirthdaysPage() {\r\n\t\tbirthdays.click();\r\n\t\t\tLog(\"Clicked the \\\"Birthdays\\\" button on the Agent Summary page\");\r\n\t}", "title": "" }, { "docid": "a35ad88847e915fe2eae555046c1b9a3", "score": "0.6190371", "text": "public void goToUnit1Page(){\n\t\tpages.navigationTopPage.ensurePageLoaded().clickUnit1MenuItem();\n\t}", "title": "" }, { "docid": "b9c9b77e428275d6b3ecb3cc8cfd0c8c", "score": "0.6188131", "text": "public void ClickToNavigateTo(String ClickToNavigateTo) {\r\n\t\tdriver.findElement(By.xpath(\"//a[@id='SideBarButton' and text()='\" + ClickToNavigateTo + \"']\")).click();\r\n\t\t\tLog(\"Clicked the \\\"'\" + ClickToNavigateTo + \"'\\\" button on the Agent Summary page\");\r\n\t}", "title": "" }, { "docid": "0b7e3790da9ecf7b81573147fa89fb03", "score": "0.6181807", "text": "public static void linkButtonClick(String text){\n $(By.xpath(\"//a[text() = \\\"\" + text + \"\\\"]\")).click();\n }", "title": "" }, { "docid": "4bd1c887ca7397154966758ef9abf3e5", "score": "0.6180746", "text": "public void clickContactUS() {\n contactUS.click();\n }", "title": "" }, { "docid": "88d0d8b523aad6488d20b9cb664b5d85", "score": "0.61769015", "text": "public static void click () {\n\t\t\trobot.mousePress(InputEvent.BUTTON1_MASK);\n\t\t\trobot.delay(1000); // Click 2 seconds\n\t\t\trobot.mouseRelease(InputEvent.BUTTON1_MASK);\n\t\t}", "title": "" }, { "docid": "90e1878809bd719b0a2bba731138675a", "score": "0.6173121", "text": "public void clickOnSignIn()\n\t{\n\t\tString locator = loginLocator.getLocator(\"Login.SignIn\");\n\t\tclickOn(locator);\n\t\t//clickOn(com.videomanager.locators.login_locators.clicksign);\n\t\t//javaScriptExecute(\"window.document.getElementsByClassName('btn btn-lg btn-primary btn-block')[0].click()\");\n\t\tgetWebDriver().manage().timeouts().pageLoadTimeout(60, TimeUnit.SECONDS);\n\t\t\n\t}", "title": "" }, { "docid": "094c18727d24848e45ead8838d6cfba3", "score": "0.6164788", "text": "@Test \r\n\tpublic void ClickDeliveryButton() throws InterruptedException {\r\n\t\twaitForLoad();\r\n\r\n\t\tWaitFor();\r\n\r\n\t\tassertEquals(\"https://www.dominos.com/en/\", driver.getCurrentUrl());\r\n\t\t\r\n\t\tpage.clickDeliveryBtn();\r\n\t\tassertEquals(\"https://www.dominos.com/en/pages/order/#/locations/search/?type=Delivery\", driver.getCurrentUrl());\r\n\t\t\r\n\t\tWaitFor();\r\n\t}", "title": "" } ]
d9817ba3d01a479709e46dc462dbe379
Sets an updated value for the mean.
[ { "docid": "60340071cd825a02ff4b0059fbf60b19", "score": "0.7129556", "text": "public void setMean(Point2 mean) {\n\t\tthis.mean = mean;\n\t}", "title": "" } ]
[ { "docid": "4d61a4886f3fd748b274003773930cdd", "score": "0.7699115", "text": "public void setMean(double mean) {\n this.mean = mean;\n }", "title": "" }, { "docid": "b27c1f2f45f42698f449fa27796f2c20", "score": "0.7629928", "text": "public abstract void setMean (double m);", "title": "" }, { "docid": "adea0c6ed9a0ecb3ae051157d0f70346", "score": "0.69420904", "text": "public Builder setAscoreMean(float value) {\n bitField0_ |= 0x00000040;\n ascoreMean_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "402d67381147d4c2cf7516a31256cb78", "score": "0.68818635", "text": "public void modifyMeanRating(double newRating){\n\t\tthis.mean_rating = newRating;\n\t}", "title": "" }, { "docid": "361851bf8bcc88393b95ac78f59e3586", "score": "0.68515724", "text": "private void setMean(final Profile a, final Profile b, final double value) {\n\t\tmatrix[Profile.INSTANCE_COUNT - a.internalID() -1][Profile.INSTANCE_COUNT - b.internalID() -1] = value;\n\t\tmatrix[Profile.INSTANCE_COUNT - b.internalID() -1][Profile.INSTANCE_COUNT - a.internalID() -1] = value;\n\t}", "title": "" }, { "docid": "44aedcf9f7f6bcde654ddf950c20e689", "score": "0.67580694", "text": "public Builder setAverage(double value) {\n\n average_ = value;\n bitField0_ |= 0x00000001;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "44aedcf9f7f6bcde654ddf950c20e689", "score": "0.67580694", "text": "public Builder setAverage(double value) {\n\n average_ = value;\n bitField0_ |= 0x00000001;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "9b12bd6bfa7fa356a17ee4f2902a107d", "score": "0.6689056", "text": "public void setMeanValue(String meanValue) {\n this.meanValue = meanValue;\n }", "title": "" }, { "docid": "7cd63d8ebc89a4231b8252530c55d657", "score": "0.6401272", "text": "public double mean() {\n return this.meanVal;\n }", "title": "" }, { "docid": "a2f048f062784ff25e15c0a74119a86b", "score": "0.6368519", "text": "public void setMeanFitnessValue(boolean meanFitnessValue) {\n\t\tthis.meanFitnessValue = meanFitnessValue;\n\t}", "title": "" }, { "docid": "8863fd2a16015b9be607f7ae64313e74", "score": "0.6335022", "text": "public void accumMean(double newVal, long n) {\n mean = (n - 1) * mean / n + newVal / n;\n }", "title": "" }, { "docid": "6b6d70f56fc125a34febce4d71aed6af", "score": "0.62824434", "text": "public void setValue(double value){\n this.value = value;\n }", "title": "" }, { "docid": "38cd655e4736d3bfd40fd2aabcc7c374", "score": "0.6186891", "text": "public double mean() {\r\n return mean;\r\n }", "title": "" }, { "docid": "7a51cc63aad902e06cbc90bdbfcd8b96", "score": "0.61632335", "text": "public double mean() {\n return mean;\n }", "title": "" }, { "docid": "7a51cc63aad902e06cbc90bdbfcd8b96", "score": "0.61632335", "text": "public double mean() {\n return mean;\n }", "title": "" }, { "docid": "7a51cc63aad902e06cbc90bdbfcd8b96", "score": "0.61632335", "text": "public double mean() {\n return mean;\n }", "title": "" }, { "docid": "7a51cc63aad902e06cbc90bdbfcd8b96", "score": "0.61632335", "text": "public double mean() {\n return mean;\n }", "title": "" }, { "docid": "cfae0376ac6f3979349f8e19be64fb48", "score": "0.61627537", "text": "public void setValue(double value) {\n this.value = value;\n }", "title": "" }, { "docid": "78afda4cd68469ec6b79544c481bb050", "score": "0.6159011", "text": "public double mean(){\n return mean;\n }", "title": "" }, { "docid": "78afda4cd68469ec6b79544c481bb050", "score": "0.6159011", "text": "public double mean(){\n return mean;\n }", "title": "" }, { "docid": "ee30a6d383ad1f355b562700d90bc30d", "score": "0.61523193", "text": "public String getMeanValue() {\n return this.meanValue;\n }", "title": "" }, { "docid": "78dfdfb420bdde905ac456bb77fc8cba", "score": "0.61494845", "text": "public double mean() {\n return this.mean;\r\n }", "title": "" }, { "docid": "abb7520587a0eb77b85321c173bd1480", "score": "0.6142863", "text": "public double getMean() {\n return mean;\n }", "title": "" }, { "docid": "abb7520587a0eb77b85321c173bd1480", "score": "0.6142863", "text": "public double getMean() {\n return mean;\n }", "title": "" }, { "docid": "976a4cc5b59434b5e8008b6ad5ff89ae", "score": "0.6131472", "text": "public double mean() {\n return mean;\n }", "title": "" }, { "docid": "ece4e95551a0aadc8c2be6fbcff2d501", "score": "0.6096304", "text": "protected void setValue(double value) {\r\n\t\tthis.value=value;\r\n\t}", "title": "" }, { "docid": "e033228dc592d5d7ab28737ca47ce26e", "score": "0.6080478", "text": "public double getMean() {\n if (intensityMeasureChanged) {\n setCoeffIndex();\n }\n\n // check if distance is beyond the user specified max\n if (rRup > USER_MAX_DISTANCE) {\n return VERY_SMALL_MEAN;\n }\n\n if (parameterChange) {\n calcMeanStdDev();\n }\n return mean;\n }", "title": "" }, { "docid": "ce304902c8323aa26fb177d3e95d3fa7", "score": "0.6040231", "text": "void UpdateValue() {\n this.value = asset.getValue()*((float)java.lang.Math.exp(GlobalVariables.INTEREST*getMaturity()));\n }", "title": "" }, { "docid": "8016434c16ea4a2853df209bf786f5b6", "score": "0.597365", "text": "public void setValue(Double value) {\n this.value = value;\n }", "title": "" }, { "docid": "a6578bc2474b4b3e75b767c2eed3df65", "score": "0.59702414", "text": "public void setCenter(double center)\n {\n this.mean=center;\n }", "title": "" }, { "docid": "f3834114d20ea78f1ddca6f628450021", "score": "0.59598863", "text": "public void setValue(double v) {\n\t\tvalue = v;\n\t}", "title": "" }, { "docid": "c84e9630ae5ca3196ac6c1616b820a58", "score": "0.5953603", "text": "public void setValue(double value) {\n\t\t\tthis.value = value;\n\t\t}", "title": "" }, { "docid": "675edd2c7c3fc53263dd024b0d7bc48c", "score": "0.5952169", "text": "public abstract void setMeanAndStdDeviation(double m, double s);", "title": "" }, { "docid": "718c39649840094a07fc51b0103802c3", "score": "0.5949482", "text": "double mean_value() { return metrics.getMean(); }", "title": "" }, { "docid": "607771b556b8c014a1a29ff952dab01e", "score": "0.593753", "text": "public void estimateMeanBudget() {\n this.estimatedBudget = calculateMeanSummary(LocalDate.now());\n }", "title": "" }, { "docid": "01711236974bc45f3a9f188d1b4e4195", "score": "0.589312", "text": "public void setValue(Double value) {\n this.value = value;\n }", "title": "" }, { "docid": "01711236974bc45f3a9f188d1b4e4195", "score": "0.589312", "text": "public void setValue(Double value) {\n this.value = value;\n }", "title": "" }, { "docid": "528a9769953b9e098de35fa55066adca", "score": "0.5864905", "text": "public Builder setAvgGrade(double value) {\r\n bitField0_ |= 0x02000000;\r\n avgGrade_ = value;\r\n onChanged();\r\n return this;\r\n }", "title": "" }, { "docid": "a04ae9d4eca1633462d3beeefb2689fc", "score": "0.5860051", "text": "@Override\n\tpublic double getMean() {\n\t\treturn this.Mean;\n\t}", "title": "" }, { "docid": "15f4efdbc46bb1e034c2f4d5145a2b7c", "score": "0.58575946", "text": "public void updateValue(double newCurrent) {\r\n\t\tthis.value = newCurrent;\r\n\t}", "title": "" }, { "docid": "85d76af070ea5436f1d6506033dd6b1c", "score": "0.5856177", "text": "public void setValue(\n final double value)\n {\n this.value = value;\n }", "title": "" }, { "docid": "42fa7602f243955b65314d7358e0524a", "score": "0.5827729", "text": "public double mean() {\n return StdStats.mean(values);\n }", "title": "" }, { "docid": "e6963266b3b5146f39cc6aa25d98c874", "score": "0.58246857", "text": "public static void meaner(user[] U) {\r\n\t\t\tfor (int i = 0; i < U.length; i++) {\r\n\t\t\t\tdouble mean1 = 0.0;\r\n\t\t\t\r\n\t\t\t\t//Keeps track of target user's number of watched shows\r\n\t\t\t\tdouble tWatchedCounter = 0.0;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t//Calculates sum of rating scores provided by target user\r\n\t\t\t\tfor (int j = 0; j < U[i].anime.length; j ++) {\r\n\t\t\t\t\tif (U[i].anime[j].rating > 0) {\r\n\t\t\t\t\t\tmean1 += (U[i].anime[j].rating);\r\n\t\t\t\t\t\ttWatchedCounter += 1.0;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tmean1 = mean1 / tWatchedCounter;\r\n\t\t\t\t\t\t\r\n\t\t\t\t//Stores mean in user\r\n\t\t\t\tU[i].mean = mean1;\r\n\t\t\t}\r\n\t\t}", "title": "" }, { "docid": "716f1d03e513676045f5add80a1d0ab0", "score": "0.5823584", "text": "public double mean() {\n return thMean;\n }", "title": "" }, { "docid": "cf4306af07d9bff96f813550b5ef3ec2", "score": "0.58216244", "text": "public void setCallbackIntervalMean(Double callbackIntervalMean) {\n this.callbackIntervalMean = callbackIntervalMean;\n }", "title": "" }, { "docid": "72a598e68aa0690a75550fb14020ea85", "score": "0.5818726", "text": "public double getMean();", "title": "" }, { "docid": "87d0b980ba5c1d4729a3bb6f3c765c6d", "score": "0.57818854", "text": "public double getMean() {\n return sum / count; \n }", "title": "" }, { "docid": "a2d000642faa05d86b58affd8c892637", "score": "0.5761253", "text": "public void setValue(double value) {\n double newValue = value;\n\n if (value < 0) {\n newValue = 0;\n }\n\n if (value > maxNumberOfStars) {\n newValue = maxNumberOfStars;\n }\n\n int i = 0;\n\n for (; i < Math.floor(newValue); i++) {\n stars.get(i).setType(StarView.StarTypes.FILLED);\n }\n\n if (Math.round(newValue) != Math.floor(newValue)) {\n stars.get(i++).setType(StarView.StarTypes.HALF);\n }\n\n //add complements empty stars\n for (; i < maxNumberOfStars; i++) {\n stars.get(i).setType(StarView.StarTypes.EMPTY);\n }\n }", "title": "" }, { "docid": "275553ca29f0f2f1a79ef4752306fbfb", "score": "0.56992495", "text": "public void manualSetValue(double value){\n value = Math.max(getMinimum(), Math.min(getMaximum(), value));\n if (this.value == value)\n return;\n if(showValueTip){\n valueIncreased = value > this.value;\n label.setText(\"\" + decimalFormat.format(value));\n label.setVisible(true);\n initLabelTimer();\n if(!labelTimer.isDue())\n labelTimer.reset();\n else\n labelTimer.start(timerTask, 1000);\n }\n setValue(value);\n fireManualValueChange(getValue());\n\n }", "title": "" }, { "docid": "ec53058363e8b4be16e21e7993576eaf", "score": "0.5689273", "text": "public Builder clearAscoreMean() {\n bitField0_ = (bitField0_ & ~0x00000040);\n ascoreMean_ = 0F;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "ebc1e728261f7430d88a116816c83733", "score": "0.56872946", "text": "public void updateFitness( double __value )\n\t{\n\t\tthis._fitness += __value;\n\t}", "title": "" }, { "docid": "5145c23f7e0880ec5278fe6eb834600e", "score": "0.56825054", "text": "public double getMeanScore() { return meanScore; }", "title": "" }, { "docid": "4c9946cf9f46cd108a654af96cd8bc39", "score": "0.5671576", "text": "@java.lang.Override\n public float getAscoreMean() {\n return ascoreMean_;\n }", "title": "" }, { "docid": "ca3388b9c0ec6f39c60f63b32b1c93fb", "score": "0.5671242", "text": "public abstract double getMean();", "title": "" }, { "docid": "f66ba9b9309ccd1d8c95f49981db5a14", "score": "0.56712234", "text": "public void setMeanSquared(boolean newMeanSquared) {\n \n m_MeanSquared = newMeanSquared;\n }", "title": "" }, { "docid": "36af7ff31b1ddee82057b94c410af856", "score": "0.5663464", "text": "private void updateMeanAndVariance(\tint N, double mean, \n\t\t\t\t\t\t\t\t\t\t\t\tdouble variance, \n\t\t\t\t\t\t\t\t\t\t\t\tdouble sumOfSquares,\n\t\t\t\t\t\t\t\t\t\t\t\tdouble newData)\n\t{\n\t\tdouble oldMean = mean;\n\t\t\n\t\tmCount +=1;\n\t\tmSum += newData;\n\t\tmSumOfSquares += newData*newData;\n\t\t\n\t\t// watch out! could be masking member variables with local passed vars.\n\t\t// these methods called cannot modify member variables.\n\t\tmMean = updateMean(mCount, mMean, newData);\n\t\tmVariance = updateVariance(mCount, oldMean, mVariance, mSumOfSquares, newData);\n\n\t}", "title": "" }, { "docid": "8b26d10ad375de6c39fc4e7436bc56f9", "score": "0.56547624", "text": "@java.lang.Override\n public float getAscoreMean() {\n return ascoreMean_;\n }", "title": "" }, { "docid": "b02bc155385d81c98f3ccd86dfd99658", "score": "0.5654354", "text": "protected abstract void updateValue();", "title": "" }, { "docid": "261f9227648b0ccf83a71491933293a3", "score": "0.5643711", "text": "public double mean(){\n return sum/points;\n }", "title": "" }, { "docid": "29ac5d0d21760c7e3159aaf2e03d69d8", "score": "0.5624831", "text": "public void setAverage(BigDecimal average) {\n this.average = average;\n }", "title": "" }, { "docid": "8dd2ec34cff23447e249c3a2ef2df2b1", "score": "0.5622393", "text": "@Override\n public double mean() { return convertFromNS(histogram.mean()); }", "title": "" }, { "docid": "401c86a6440404b009ac31aa67f268c7", "score": "0.5608204", "text": "public Point2 getMean() {\n\t\treturn mean;\n\t}", "title": "" }, { "docid": "598453812650e92631362d47efb4e3b3", "score": "0.55955225", "text": "public double getMean()\n {\n return (count == 0) ? 0.0 : (double) sum / (double) count;\n }", "title": "" }, { "docid": "12bf85ec9d7e730d458307d034870fde", "score": "0.5585112", "text": "public void setValue(double value) throws java.beans.PropertyVetoException {\r\n this.setInit(true);\r\n this.value = value;\r\n this.oldValue = value;\r\n nd.setValue(value);\r\n this.setText( numberFormat.format(getValue()) );\r\n this.setInit(false);\r\n }", "title": "" }, { "docid": "a13f854f53bf61dd51966d98d639666e", "score": "0.5583191", "text": "void setValue(Attribute att, double value);", "title": "" }, { "docid": "54cecebb168e349143ed8d70b81c1021", "score": "0.5573793", "text": "public void setValue(float value) {\r\n this.value = value;\r\n }", "title": "" }, { "docid": "54cecebb168e349143ed8d70b81c1021", "score": "0.5573793", "text": "public void setValue(float value) {\r\n this.value = value;\r\n }", "title": "" }, { "docid": "cee02c27b5287c3d6e710edb927b6057", "score": "0.55695045", "text": "public double getMean() {\n return sum / n;\n }", "title": "" }, { "docid": "5204b81de0f31b987e852b941d854464", "score": "0.55588955", "text": "public void setWeight(double newValue) {\r\n\t\tundoer.execute(new ASetWeightCommand(bmiSpreadsheet, newValue));\r\n//\t\tundoer.execute(new ASetWeightCommand(this, newValue));\t\t\r\n\r\n\t}", "title": "" }, { "docid": "03d253132eeac72d73a8115e5a67fa1c", "score": "0.55577767", "text": "double getMean() throws RuntimeException{\n Iterator<Double> iter = values.iterator();\n double total = 0;\n \n do {\n total += iter.next();\n } while(iter.hasNext());\n double val = total/values.size();\n return val;\n }", "title": "" }, { "docid": "f5c81e6974b869010cc24cac757f6ceb", "score": "0.5538117", "text": "public void setValue(float theValue) {\n\t\t_myValue = theValue;\n\t}", "title": "" }, { "docid": "b05787a115527ece2c6a75332b5a4ce9", "score": "0.5520344", "text": "public final void lazySet(double newValue) {\r\n set(newValue);\r\n // TODO(user): replace with code below when jdk5 support is dropped.\r\n // long next = doubleToRawLongBits(newValue);\r\n // updater.lazySet(this, next);\r\n }", "title": "" }, { "docid": "224e0814bc6e590fcf19afbe32bc25c8", "score": "0.55130213", "text": "public double mean() {\n\t\treturn StdStats.mean(x);\n\t}", "title": "" }, { "docid": "fcc22828b6d7a653f246da3f5ef48b6e", "score": "0.5511716", "text": "private void updateAverage() {\n double count = 0;\n for (Tuple<LocalDate, Integer> tup : this.numberOfVehicles) {\n count += tup.getY();\n }\n this.avarage = (int) Math.floor(count / (this.numberOfVehicles.size()));\n }", "title": "" }, { "docid": "40be81f52b6c1b27ed10fd0506b00518", "score": "0.55060595", "text": "public void setValue(float value) {\n this.value = value;\n }", "title": "" }, { "docid": "d871f85e3e2b951a2be98b7149f40fa4", "score": "0.55042386", "text": "public void setValue(long value) {\n\t\tvalues.add(value);\n\t\t\n\t\tthis.value = value;\n\t\t\n\t\t// we only want to keep a history of the last 500 entries\n\t\tif (values.size() > AMSupport.HISTORY_LIMIT)\n\t\t{\n\t\t\t// this will remove the oldest value\n\t\t\tvalues.remove(0);\n\t\t}\n\t\t\n\t\t// update the timestamp on the metric\n\t\tthis.timestamp = timestamp + AMSupport.MS_PER_REFRESH;\n\t\t\n\t\tthis.generateStateBasedOnValueAndThresholds();\n\t}", "title": "" }, { "docid": "075521d9a3eca4a5b08fe33ce09a9fb6", "score": "0.5503086", "text": "@Override\n\t\t\tpublic void update() {\n\t\t\t\tupdateFireMeansView(view,fireMeans);\n\t\t\t}", "title": "" }, { "docid": "239cea03fe42e80e8d175f4b09afcc1b", "score": "0.5502011", "text": "public float calculateMean() \n {\n return (float) sum / size;\n }", "title": "" }, { "docid": "fb8f644718c970a908e5273a74b4f3da", "score": "0.5497597", "text": "public void setValue(double d) {\n }", "title": "" }, { "docid": "54926ad25b93a2ea5870c9d6831a9dd9", "score": "0.5497535", "text": "public void beginAverage() throws SensorException {\n ((AveragingSensorImpl)getImpl()).beginAverage();\n }", "title": "" }, { "docid": "1e8d0511a075bb33104e2b77e4bf3794", "score": "0.54951775", "text": "public void update(){\n\t\tdouble dB1 = (double)value / 100;\n\t\tfloat gain1 = (float)(Math.log(dB1)/Math.log(10.0)*20.0);\n\t\tvolume.setValue(gain1);\n//\t\tSystem.out.println(\"updating..\");\n\t\tmuteControl.setValue(mute);\n\t}", "title": "" }, { "docid": "fd39aa0c9e2161aa019a710582d6d3e7", "score": "0.54944766", "text": "public Double calculateMean(){\r\n double sum = 0.0;\r\n for (Float value: dataList){\r\n sum += value;\r\n }\r\n this.setN(this.getDataList().size());\r\n this.setMean (sum / this.getN());\r\n return this.getMean();\r\n }", "title": "" }, { "docid": "acdf28c508fb6ee1249306df3040e87d", "score": "0.5493059", "text": "public void setMeanAndCvar (double m, double c)\r\n\t{\r\n\t\tdouble s = m * c;\r\n\t\tsetMeanAndStdDeviation(m, s);\r\n\t}", "title": "" }, { "docid": "e0f1259d9457f9ab5820daad46cc3a3e", "score": "0.54713386", "text": "@Override\n\t\t\tpublic void update() {\n\t\t\t\tupdateEmMeansView(view,emMeans);\n\t\t\t}", "title": "" }, { "docid": "d43fb1f3ceb1020d5156a4012d13b228", "score": "0.54689974", "text": "public double mean() {\n\t\treturn StdStats.mean(thresholds);\n\t}", "title": "" }, { "docid": "a8aa1445e1eff1fee6db5edbef8ab68a", "score": "0.54672456", "text": "@Override\n\tpublic synchronized void setValue(double val,\n\t\t\tboolean changeAnimationValue) {\n\t\tdouble angVal = calcAngleValue(val);\n\t\tsuper.setValue(angVal,\n\t\t\t\tchangeAnimationValue);\n\t\tif (angleStyle == AngleStyle.UNBOUNDED) {\n\t\t\trawValue = value;\n\t\t}\n\t}", "title": "" }, { "docid": "a346e99fcf967671c7de20ecaed70e90", "score": "0.54616946", "text": "public abstract void updateValue();", "title": "" }, { "docid": "026d458c4bbd839f7b3e26502dc686e9", "score": "0.5454272", "text": "public void setValue(int index, double value) {\n\t\tgetScale(index).setValue(value);\n\t}", "title": "" }, { "docid": "5e2a623beaf04a25383876fafee3e0a6", "score": "0.54413897", "text": "public void updateUtility(double value) {\n sum += value;\n count++;\n utility = sum/count;\n }", "title": "" }, { "docid": "3b0f787735386ba750887d0042fa9920", "score": "0.5441087", "text": "public void setValueMin(double valueMin) {\n this.valueMin = valueMin;\n }", "title": "" }, { "docid": "2a5a52a15a412537307689e4d3ccdf19", "score": "0.54326904", "text": "public double mean() {\r\n return StdStats.mean(p);\r\n }", "title": "" }, { "docid": "8903489c84714644dc7b868aef0186c2", "score": "0.5429311", "text": "public void accumQuadMean(double newVal, long n) {\n quadMean = (n - 1) * quadMean / n + newVal / n;\n }", "title": "" }, { "docid": "c1dfcf5172ca913c75cf397b629697ec", "score": "0.5426897", "text": "public void normalize(double mean, double stdev){\r\n\t\tthis.s.scale(1/(stdev + 0.0000000000001d));\r\n\t\tthis.k = this.k / (stdev + 0.0000000000001d);\r\n\t\tthis.m = (this.m - mean) / (stdev + 0.0000000000001d);\r\n\t\tcalculateSS();\r\n\t\tcalculateSD();\r\n\t}", "title": "" }, { "docid": "2339a484fa21a50206bb15cb8525aaf8", "score": "0.541875", "text": "public final void set(double newValue) {\r\n long next = doubleToRawLongBits(newValue);\r\n value = next;\r\n }", "title": "" }, { "docid": "d8f249647782c451a4bf44e74e0eb28f", "score": "0.5411556", "text": "public void setValue(Double value)\n\t{\n\t\t this.value=value;\n\n\t\t this.keyModified.put(\"value\", 1);\n\n\t}", "title": "" }, { "docid": "a72ac17dc576758bb9155be3803f0ba5", "score": "0.5410582", "text": "protected void setChange50DayAvg(BigDecimal change50DayAvg){\n\t\tsynchronized(this){\n\t\t\tthis.change50DayAvg = change50DayAvg;\n\t\t}\n\t}", "title": "" }, { "docid": "ef1d346c22246b83ae9141cf2d75eb6b", "score": "0.5406323", "text": "public void setAvgThroughput(float value) {\n this.avgThroughput = value;\n }", "title": "" }, { "docid": "b26f59ab69052400e5e8a846ee52ce07", "score": "0.5405469", "text": "public Builder setAverageLength(double value) {\n\n averageLength_ = value;\n bitField0_ |= 0x00000004;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "e4503a834293a14c362e5d300a038a0a", "score": "0.54013914", "text": "public void setAvgScore(double avgScore) {\r\n\t\tthis.avgScore = avgScore;\r\n\t}", "title": "" }, { "docid": "903c708e2f06437addb00142f7bfb2ff", "score": "0.5399131", "text": "public double mean() {\n double mean = StdStats.mean(fractions);\r\n return mean;\r\n }", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "a4826f736365f3dd955b0e910a4d2671", "score": "0.0", "text": "@Override\n\tpublic Merchant createMerchant(String title)\n\t{\n\t\tthrow new UnimplementedOperationException();\n\t}", "title": "" } ]
[ { "docid": "e5fa0eebc721dea67da872fd14413bc7", "score": "0.69744676", "text": "@Override\n\tpublic void formule() {\n\t\t\n\t}", "title": "" }, { "docid": "8b7f87c22e268a87686c66398c2c442b", "score": "0.6936331", "text": "@Override\r\n\t\t\tpublic void atras() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "1acc57d42c31dee937ac33ea6f2a5b0b", "score": "0.6836411", "text": "@Override\r\n\tpublic void comer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "ec76ff8d70ced9d8135ad33b23353b4d", "score": "0.6624367", "text": "@Override\r\n\t\t\tpublic void adelante() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "82ab90ffadf9b8d43e60c8510a33beba", "score": "0.6623182", "text": "@Override\r\n\tpublic void morirse() {\n\t\t\r\n\t}", "title": "" }, { "docid": "e3110a393bd4b870b4055aa9ed6efd87", "score": "0.66015315", "text": "@Override\n\tpublic void attaquer() {\n\t\t\n\t}", "title": "" }, { "docid": "a5f7a321f63abee65f0b9008f270490e", "score": "0.6594605", "text": "@Override\n\t\t\tpublic void competir() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "0b5b11f4251ace8b3d0f5ead186f7beb", "score": "0.65677965", "text": "@Override\n\tpublic void comer() {\n\t\t\n\t}", "title": "" }, { "docid": "0b5b11f4251ace8b3d0f5ead186f7beb", "score": "0.65677965", "text": "@Override\n\tpublic void comer() {\n\t\t\n\t}", "title": "" }, { "docid": "80d20df1cc75d8fa96c12c49a757fc43", "score": "0.65323734", "text": "@Override\n\tprotected void getExras() {\n\t\t\n\t}", "title": "" }, { "docid": "7756cbf76fd6363807e17834db326bbc", "score": "0.6501866", "text": "@Override\n\t\t\tpublic void avanzar() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "bdceff0dc4130d850ab15d702b785449", "score": "0.63844895", "text": "@Override\n\tprotected void generate() {\n\t\t\n\t}", "title": "" }, { "docid": "14f6250e215aa66dcffb123fd6b7fd74", "score": "0.63381773", "text": "@Override\n\tpublic void entzünden() {\n\n\t}", "title": "" }, { "docid": "cd03efba12b5473dcc457b910fd92a0e", "score": "0.63222265", "text": "@Override\n\t\t\tpublic void sprout() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "070e1adb9bfd59cb643407a2dabe9b7a", "score": "0.6291592", "text": "private void hinzufügen() {\n\t\t\r\n\t}", "title": "" }, { "docid": "469c90392fb12e4553574135278541f5", "score": "0.62385184", "text": "@Override\n\tpublic void attck() {\n\t\t\n\t}", "title": "" }, { "docid": "d3585587779dbdf33600e1670ca42099", "score": "0.6193195", "text": "@Override\n\tpublic void IngresoKromi() {\n\t}", "title": "" }, { "docid": "7c4f2f94b290de5507eb56a649c4fab9", "score": "0.61922914", "text": "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.61546874", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "093a096d6e96e05b160fe2406b1e8a2d", "score": "0.61053663", "text": "@Override\n\tpublic void parir() {\n\t\t\n\t}", "title": "" }, { "docid": "29cde3f10dab87cebafdd9412ef4b29f", "score": "0.6062187", "text": "@Override\r\n\tpublic void embala() {\n\t\t\r\n\t}", "title": "" }, { "docid": "7839d9b18f833d7ad1ccae8536c829da", "score": "0.60561824", "text": "@Override\r\n\tpublic void zielone_swiatlo() {\n\t\t\r\n\t}", "title": "" }, { "docid": "0cd47ce21776ffa50dd678180ffe94e5", "score": "0.6003824", "text": "public void ayak() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c2c1f0ca9c7029b85142a2ab9536d708", "score": "0.5990595", "text": "@Override\n\tpublic void attaque() {\n\t\t\n\t}", "title": "" }, { "docid": "fa1a013b1df2f5f1062e1cc971135645", "score": "0.5987973", "text": "@Override\n\tpublic void mamar() {\n\t\t\n\t}", "title": "" }, { "docid": "70c63b539d1b6f883ad13008fbcaa6ce", "score": "0.59600407", "text": "@Override\n\tpublic void fiy(){\n\t\t\n\t}", "title": "" }, { "docid": "360bf42213adde0b962792c6cd6d8df7", "score": "0.5952374", "text": "@Override\r\n\t\tpublic void interg() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "6f1e0cfaa7350cf143896dace56978f5", "score": "0.59270483", "text": "@Override\n\tpublic void respirar() {\n\t\t\n\t}", "title": "" }, { "docid": "8b18fd12dbb5303a665e92c25393fb78", "score": "0.59239364", "text": "@Override\n\tprotected void initData() {\n\t\t\n\t}", "title": "" }, { "docid": "dd66e8668788d27519d44caeb83b0c44", "score": "0.5923557", "text": "@Override\r\n\tpublic void operation() {\n\t\t\r\n\t}", "title": "" }, { "docid": "28237d6ae20e1aa35aaca12e05c950c9", "score": "0.5902906", "text": "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "title": "" }, { "docid": "28237d6ae20e1aa35aaca12e05c950c9", "score": "0.5902906", "text": "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "title": "" }, { "docid": "9808ba3c113b79c3677f2c08c09e60a1", "score": "0.59020513", "text": "@Override\n\tpublic void resert() {\n\t\t\n\t}", "title": "" }, { "docid": "e05db3dd501cfaf4d9d1b128ca673f1b", "score": "0.58988667", "text": "@Override\n\tprotected void formRes() {\n\n\t}", "title": "" }, { "docid": "7f91c82c66ced12c5b193d3c89d68e4c", "score": "0.5883667", "text": "@Override\n\tprotected void init() {\n\t}", "title": "" }, { "docid": "ea6be29351b2f6d99af3992f4a8fbd45", "score": "0.58685964", "text": "public void afficherEntreprise(){\r\n\t\t\r\n\t}", "title": "" }, { "docid": "3177b2be45c490e407b98d647e109c0d", "score": "0.58572376", "text": "@Override\n protected void initData()\n {\n\t\n }", "title": "" }, { "docid": "eea1284dac4ca57b790a13dcd1ad6bff", "score": "0.58401465", "text": "@Override\n protected void ucitaj() {\n //only because of 'extands rule'\n }", "title": "" }, { "docid": "e57f005733f2eb8590150b3f4542b844", "score": "0.5810564", "text": "@Override\n\tprotected void getData() {\n\t\t\n\t}", "title": "" }, { "docid": "af70f420bd21981aa44db6516064224d", "score": "0.58060104", "text": "@Override\n\tpublic int berechnen() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "ce91051d32625345f2bf3562abbb93de", "score": "0.5794177", "text": "@Override\n\tprotected void inicializar() {\n\t}", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5792378", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "94f32cdbe8afc400e05efbdb8d78c591", "score": "0.5788508", "text": "@Override\r\n\tpublic void borc_hesapla() {\n\t\t\r\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": "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": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "aed26444304cfac4d695203c7d86e6c5", "score": "0.5769439", "text": "public void autTC05() {\r\n\r\n\t}", "title": "" }, { "docid": "9b56e05d631b1ea925ea2c139ee709ad", "score": "0.5763841", "text": "@Override\n\tpublic void adim7() {\n\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": "a49b2d411619c6f2680e9b0e8c21a20f", "score": "0.57574755", "text": "private void erledigt() {\n\t\t\r\n\t}", "title": "" }, { "docid": "8aac1da26498753495658c2bb9044b21", "score": "0.5751961", "text": "@Override\n public int getOrder() {\n return 0;\n }", "title": "" }, { "docid": "2bbeae4f0e92c95ecc07204851be4769", "score": "0.57508", "text": "@Override\n\tpublic void nyalakan() {\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": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "8603393cbe27452fe30e396632c62eed", "score": "0.57415414", "text": "@Override\n\t\tpublic void postConstruct() {\n\t\t}", "title": "" }, { "docid": "37bf6e6ef01cf7dab163b5d3bedbc140", "score": "0.5740271", "text": "@Override\n\tpublic void som() {\n\t\t\n\t}", "title": "" }, { "docid": "92af0f4d75822a6723aebd9fcc92fafb", "score": "0.57394177", "text": "@Override\n protected void initData() {\n \n }", "title": "" }, { "docid": "c13e6a1b7c130afa9fb0f34225bea4ef", "score": "0.573645", "text": "protected void mo1555b() {\n }", "title": "" }, { "docid": "691b15fed469ddc176b9c9e6151dea65", "score": "0.5734636", "text": "@Override\n\tpublic void breathes()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "0f7672ee5ac14b05f31da4e1e34d7b49", "score": "0.5725253", "text": "@Override\r\n\tpublic void test8() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t}", "title": "" }, { "docid": "a22a3abb4b9b5de4ed8c054da445e9b0", "score": "0.5724528", "text": "@Override\r\n\tpublic void jugar() {\n\r\n\t}", "title": "" }, { "docid": "7fd3ef4778cae98af386c2c7c0aa5995", "score": "0.57231057", "text": "@Override\r\n\tpublic void nmi() {\n\t\t\r\n\t}", "title": "" }, { "docid": "90a583a9686287e3374351dca59e3033", "score": "0.5721244", "text": "@Override\r\n\tpublic void abrir() {\n\r\n\t}", "title": "" }, { "docid": "d629c4ad6266d296b13a93bb0c7f8c66", "score": "0.57099986", "text": "@Override\r\n public void init()\r\n {\n\r\n }", "title": "" }, { "docid": "7aadbda143e84de0144f7a8dadde423d", "score": "0.5701067", "text": "@Override\n protected void initData() {\n\n }", "title": "" }, { "docid": "7aadbda143e84de0144f7a8dadde423d", "score": "0.5701067", "text": "@Override\n protected void initData() {\n\n }", "title": "" }, { "docid": "f375646c5bc224c29261414f3cb81b04", "score": "0.56984305", "text": "@Override\n public int qualiteRelation() {\n return 0;\n }", "title": "" }, { "docid": "5592333c90e75bae58a686b24b05d894", "score": "0.5693882", "text": "@Override\n public String toString() {\n return null;\n }", "title": "" }, { "docid": "b2858312446172fa25a799c5367d2043", "score": "0.56896037", "text": "Smelting(){\r\n\r\n\t\t}", "title": "" }, { "docid": "9f7ae565c79188ee275e5778abe03250", "score": "0.56881124", "text": "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "title": "" }, { "docid": "20b42a0c3fee6c140a112d40354f4298", "score": "0.5686577", "text": "@Override\r\n\tpublic void prepara() {\n\t\t\r\n\t}", "title": "" }, { "docid": "92b8246d78d46bf0f60b46e17e797540", "score": "0.5685193", "text": "@Override\n\tpublic void init () {\n\t}", "title": "" }, { "docid": "57f5caef4402cc8ce13e81561eaa9e43", "score": "0.56787807", "text": "@Override\r\n\tpublic void pickUp() {\n\t\t\r\n\t}", "title": "" }, { "docid": "152818b619dcfcd5190a2f48bc75fa5f", "score": "0.56757474", "text": "@Override\n\tpublic void adim6() {\n\n\t}", "title": "" }, { "docid": "b6c641fa6ba40a5b14cc33cb07aa0671", "score": "0.5669649", "text": "@Override\n\tprotected void initData() {\n\t}", "title": "" }, { "docid": "b6c641fa6ba40a5b14cc33cb07aa0671", "score": "0.5669649", "text": "@Override\n\tprotected void initData() {\n\t}", "title": "" }, { "docid": "131c7dcebe8ac7fd010381a03bd0f405", "score": "0.5667569", "text": "@Override\r\n\tprotected void initActb() {\n\t\t\r\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": "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": "6392764d7ff297c1a478fc1669944649", "score": "0.5653691", "text": "@Override\n\tpublic void gostar_de_carne() {\n\t\t\n\t}", "title": "" }, { "docid": "2b53548295a92f80cb7814e7e3ead131", "score": "0.56503963", "text": "@Override\n\tString frighten() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "18c7036dd108c40b7a27469d8b92687c", "score": "0.5642345", "text": "@Override\n\tpublic void onLoadComplete() {\n\t\t\n\t}", "title": "" }, { "docid": "7b36e2fb2a778b8c30924f6f30758db2", "score": "0.56388146", "text": "private static void buscarId() {\n\t\t\r\n\t}", "title": "" }, { "docid": "9bcd15a2298e73719d7c7326027b093b", "score": "0.56369984", "text": "@Override\n\tprotected void getData() {\n\n\t}", "title": "" } ]
51b1b9b572c9e4b0cb2a27301ccc050a
If there is no more room in array, make new array with room
[ { "docid": "bdebecbb18ef57f34087e1ce96588213", "score": "0.0", "text": "public void add_neighbor(Vertex neighbor, int weight) {\n\t\tif(this.adjacentNodes.length < this.numNeighbors) {\n\t\t\tthis.adjacentNodes = this.expand_array(this.adjacentNodes);\n\t\t}\n\t\telse {\n\t\t\tthis.adjacentNodes[numNeighbors] = new Edge(neighbor,weight);\n\t\t\tthis.numNeighbors++;\n\t\t}\n\t}", "title": "" } ]
[ { "docid": "783babf0e209a9ffe8ff14437cce81fd", "score": "0.6754774", "text": "void growArray() {\n /**\n * Store current elements of arrays\n */\n int[] tmp = new int[length];\n for (int idx = 0; idx < length; idx += 1) {\n tmp[idx] = arr[idx];\n }\n\n /**\n * Double array capacity, copy back data from backup array\n */\n capacity = capacity * 2;\n arr = new int[capacity];\n for (int idx = 0; idx < length; idx += 1) {\n arr[idx] = tmp[idx];\n }\n }", "title": "" }, { "docid": "3fa0f810fa7aa944e8406ded1e4df16d", "score": "0.66633487", "text": "private Location[] makeLarger(){\n\t\t//creates a new array that's twice in size of the original array\n\t\tLocation[] newList = new Location[capacity*2];\n\t\t//copy over all the elements in the original array in correct order to the new array\n\t\tfor (int i = 0; i < size; i ++){\n\t\t\tnewList[i] = list[(front+i) % capacity];\n\t\t}\n\t\tfront = 0; \n\t\tback = size-1;\n\t\tcapacity = newList.length;\n\t\treturn newList;\n\t}", "title": "" }, { "docid": "be845cba5f5717358e3967eeb9e95074", "score": "0.65922344", "text": "private void grow() {\n\n /**\n *\n * Requirement - you must use loops (i.e. may not use\n * System.arraycopy, or any other array copy operation\n * available in the Java API)\n *\n */\n int newCapacity = (int) (capacity + (20 * log(log(capacity))));\n AnyType[] temp = (AnyType[]) new Comparable[newCapacity];\n capacity = newCapacity;\n\n for (int i = 0; i < size; i++) {\n temp[i] = array[i];\n }\n array = temp;\n }", "title": "" }, { "docid": "3882c0fc451af609bd23a9303debe1e9", "score": "0.6588158", "text": "private void expandArray() {\r\n\t Score[] newArray = new Score[numItems*2];\r\n\t for (int k = 0; k < numItems; k++) {\r\n\t newArray[k] = items[k];\r\n\t }\r\n\t items = newArray;\r\n\t}", "title": "" }, { "docid": "035d0a47521c585af4b2e9a50e724f6e", "score": "0.65142304", "text": "private void grow_array() {\n T[] newarr = (T[]) new Object[arr.length*2];\n for (int i =0; i<arr.length; i++) {\n newarr[i] = arr[i];\n }\n arr = newarr;\n }", "title": "" }, { "docid": "85aaf0e888d9c4e61ad91fbd35055ffa", "score": "0.65043616", "text": "private void adjustArray() {\n\t\tfor(int i = 0; i < houses.length - 1; i++) {\n\t\t\thouses[i] = houses[i + 1]; // moves houses in array\n\t\t}\n\t}", "title": "" }, { "docid": "10d1f12104240915e5c675bd2903fc23", "score": "0.641979", "text": "private void expand() {\n\t\tint[] temp = new int[size + DEFAULT_CAPACITY]; // Create a new Array with more room\n\t\tfor (int i = 0; i < size; i++) { // Copy the current array to the new array\n\t\t\ttemp[i] = element[i];\n\t\t}\n\t\telement = temp; \n\t}", "title": "" }, { "docid": "231eb189a30e5a12862483b82ce6ab5c", "score": "0.6385972", "text": "private void growArray() {\n T[] newArr = (T[]) new Object[this.arr.length+1];\n for(int i = 0; i < this.arr.length; i++) {\n newArr[i] = this.arr[i];\n }\n this.arr = newArr;\n }", "title": "" }, { "docid": "0a2e0c9d063da8d06ae39d602b6693ce", "score": "0.6312441", "text": "private Object [] copyWithSpace(Object [] oldData){\n //new array to copy to\n Object [] newData = new Object[100*expandedTimes];\n for(int i = 0; i < (expandedTimes-1)*100; i ++){\n //replaces array\n newData[i] = oldData[i];\n }\n return newData;\n }", "title": "" }, { "docid": "49d2aa0d0cde587fa6396eb1b2c35fd4", "score": "0.62574524", "text": "private void grow() {\n\t\tint newSize = this.firstFreeIndex + this.firstFreeIndex / 2;\n\n\t\t// create a new array with the new size\n\t\tT[] newValues = (T[]) new Object[newSize];\n\n\t\t// copy the values of old array into new one\n\t\tfor(int i =0; i < this.firstFreeIndex; i++) {\n\t\t\tnewValues[i] = this.values[i];\n\t\t}\n\t\tthis.values = newValues;\n\t}", "title": "" }, { "docid": "674a304b65fb5c51b132f2d07c588a26", "score": "0.62475914", "text": "private void grow() {\n int growSize = size + (size<<1);\n array = Arrays.copyOf(array, growSize);\n }", "title": "" }, { "docid": "33710de7ab8107d7f9894c550f85f895", "score": "0.6233982", "text": "private void growSingleElectronArray() {\n growArraySize = (singleElectrons.length < growArraySize) ? growArraySize : singleElectrons.length;\n ISingleElectron[] newSingleElectrons = new ISingleElectron[singleElectrons.length + growArraySize];\n System.arraycopy(singleElectrons, 0, newSingleElectrons, 0, singleElectrons.length);\n singleElectrons = newSingleElectrons;\n }", "title": "" }, { "docid": "2fca78867cd57e69f8496acf8bbf664a", "score": "0.62276113", "text": "private void grow() {\n Object[] data2 = new Object[2 * capacity];\n for (int i = 0 ; i < capacity ; i++) {\n data2[i] = data[i];\n }\n data = data2;\n }", "title": "" }, { "docid": "3cae916a27b70412f513432c31d8e2bb", "score": "0.6189318", "text": "private void increaseArrayLength() {\n\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tItem[] newArray = (Item[]) new Object[arrayLength\n\t\t\t\t* ARRAY_INCREASE_FACTOR];\n\n\t\tfor (int i = 0; i < arrayLast; i++) {\n\t\t\tnewArray[i] = randomQueue[i];\n\t\t}\n\n\t\trandomQueue = newArray;\n\t\tnewArray = null;\n\n\t\tarrayLength = arrayLength * ARRAY_INCREASE_FACTOR;\n\n\t}", "title": "" }, { "docid": "2234a4dd5b1fa9de33d7afb823e10742", "score": "0.6185467", "text": "public void makeMoreMem()\n {\n if (size != 0 && size == len)\n {\n len = len * 2; //change \n FreeBlock[] n = new FreeBlock[len];\n for (int i = 0; i < size; i++)\n {\n n[i] = l[i];\n }\n l = n;\n }\n }", "title": "" }, { "docid": "08a9430cf0692b04b904d3783541d341", "score": "0.61564004", "text": "protected void replaceArrayWithBiggerOne() {\n\t\t//\n\t\t// The newSize value is supplied by the particular extending\n\t\t// class that you run.\n\t\t//\n\t\tint newSize = getNewSize();\n\t\t//\n\t\t// Make a new array of the new size\n\t\t// This should be a local variable, not an instance variable\n\t\t//\n\t\t\n\t\t// tick appropriately to account for Java initializing\n\t\t// the elements of this new array to 0\n\t\t//\n\t\t\n\t\t//\n\t\t// Copy the elements of the current array to the new one\n\t\t// tick appropriately to account for each copied element\n\t\t//\n\t\t//\n\t\t\n\t\t// Assign your local array to the array reference, \n\t\t// so that code elsewhere using the \"array\" instance variable\n\t\t// will now reference the new, bigger one\n\t\t//\n\t}", "title": "" }, { "docid": "ab56f995314733a1be2277da2fef227d", "score": "0.61558586", "text": "private void allocateArray() {\n Object[] temp = new Object[array.length * 2];\n for (int i = 0; i < array.length; i++) {\n temp[i] = array[i];\n }\n array = temp;\n //array = Arrays.copyOf(array, array.length*2); - ili tak v odny stroky\n }", "title": "" }, { "docid": "648a262a80607ada1b7744bc66ec70c8", "score": "0.61282533", "text": "private void fillGaps() {\n sortByTimestampStart();\n ArrayList<FRPeriodOccupation> resultList = new ArrayList<FRPeriodOccupation>();\n boolean previousIsRoom = false;\n long lastEnd = timestampStart;\n int countFree = 0;\n int countOccupied = 0;\n\n for (FRPeriodOccupation actual : mActualOccupations) {\n boolean added = false;\n long tsStart = Math.max(timestampStart, actual.getPeriod()\n .getTimeStampStart());\n\n // we want to add a room and the previous occupation added is an\n // user\n // occupancy and this one ends after the room occupancy starts\n // (overlap) !\n // -> we resize the user occupancy.\n if (!actual.isAvailable() && !previousIsRoom && lastEnd > tsStart) {\n FRPeriodOccupation lastOccupation = resultList\n .remove(resultList.size() - 1);\n countFree = Math.max(0, countFree - 1);\n FRPeriod previousPeriod = lastOccupation.getPeriod();\n if (tsStart - previousPeriod.getTimeStampStart() > FRTimes.MIN_PERIOD) {\n FRPeriod newPeriod = new FRPeriod(\n previousPeriod.getTimeStampStart(), tsStart);\n lastOccupation.setPeriod(newPeriod);\n resultList.add(lastOccupation);\n countFree++;\n }\n }\n\n long tsEnd = Math.min(timestampEnd, actual.getPeriod()\n .getTimeStampEnd());\n\n // the previous occupation is a room thus it has priority over user\n // -> we need to resize.\n if (previousIsRoom && tsStart < lastEnd && actual.isAvailable()) {\n tsStart = lastEnd;\n FRPeriod newPeriod = new FRPeriod(tsStart, tsEnd);\n actual.setPeriod(newPeriod);\n } else if (previousIsRoom && tsStart < lastEnd) {\n // special case, overlap of two rooms occupancies\n FRPeriodOccupation lastOccupation = resultList\n .remove(resultList.size() - 1);\n FRPeriod previousPeriod = lastOccupation.getPeriod();\n previousPeriod.setTimeStampEnd(tsEnd);\n resultList.add(lastOccupation);\n added = true;\n actual = lastOccupation;\n }\n\n if (tsStart - lastEnd > FRTimes.MIN_PERIOD) {\n // We got a free period of time ! -> we fill the blank\n ArrayList<FRPeriodOccupation> subDivised = cutInStepsPeriod(\n lastEnd, tsStart);\n resultList.addAll(subDivised);\n countFree += subDivised.size();\n }\n\n long actualStart = actual.getPeriod().getTimeStampStart();\n\n // if the period is big enough (it might not be as we resize without\n // checking when there are a room-user conflict, see above)\n if (added || tsEnd - actualStart > FRTimes.MIN_PERIOD) {\n if (!added) {\n resultList.add(actual);\n }\n previousIsRoom = !actual.isAvailable();\n double ratio = actual.getRatioOccupation();\n\n if (ratio > worstRatio) {\n worstRatio = ratio;\n }\n\n if (!actual.isAvailable()) {\n countOccupied++;\n }\n\n if (actual.isAvailable()) {\n isAtLeastFreeOnce = true;\n countFree++;\n }\n\n lastEnd = tsEnd;\n }\n\n }\n\n // if we have blank time between the last occupancy and the end of the\n // period we want to cover\n if (timestampEnd - lastEnd > FRTimes.MIN_PERIOD) {\n ArrayList<FRPeriodOccupation> subDivised = cutInStepsPeriod(\n lastEnd, timestampEnd);\n resultList.addAll(subDivised);\n countFree++;\n }\n isAtLeastFreeOnce = countFree > 0;\n isAtLeastOccupiedOnce = countOccupied > 0;\n mActualOccupations = resultList;\n }", "title": "" }, { "docid": "715c657259bb9e623c2514e155bd7c51", "score": "0.61232585", "text": "private void grow() {\n TeamMember[] newTeam = new TeamMember[numMembers + 4];\n for (int i = 0; i < numMembers; i++) {\n newTeam[i] = team[i];\n }\n team = newTeam;\n }", "title": "" }, { "docid": "7e737cd59025cc1d15c627c77a148581", "score": "0.6090538", "text": "private void IncreaseArray()\n\t{\n\t\tint temp_copy_array_size = max_array_size + ( int ) ( ( increase_percent / 100.0f ) * (float) max_array_size ) ;\n\t\tint[] temp_copy_array = new int[temp_copy_array_size];\n\n\t\t// move content from main array to temp array\t\n\t\tfor ( int i = 0; i < myIntArray.length; i ++ )\n\t\t{\n\t\t\ttemp_copy_array[i] = myIntArray[i];\n\t\t}\n\t\t\n\t\tmyIntArray = temp_copy_array;\n\t\tmax_array_size = temp_copy_array_size;\n\t}", "title": "" }, { "docid": "2db978d4285dfab4066fb48e3fac99e0", "score": "0.6083535", "text": "public void grow(int num){\n int[] tarray = new int[array.length+num];\n for (int i =0; i < array.length;i++){\n tarray[i] = array[i];\n }\n this.array = tarray;\n }", "title": "" }, { "docid": "1fb4cbb64121cc9eee4978b8d6c5deb5", "score": "0.6048335", "text": "private void resizeIfNecessary() {\n if (mCount == mArray.length) {\n Object[] newArray = new Object[mArray.length * 2];\n System.arraycopy(mArray, 0, newArray, 0, mCount);\n mArray = newArray;\n }//end if\n }", "title": "" }, { "docid": "69c98dbba1a58aa60d8da8a7e275fffa", "score": "0.6023921", "text": "void shrinkArray() {\n if (length >= capacity() / 2 || capacity == 1) {\n /**\n * Can't shrink when the current length of array is bigger than a\n * half of its current capacity or reach minimum value of capacity\n * (1)\n */\n return;\n }\n\n int[] tmp = new int[length];\n for (int idx = 0; idx < length; idx += 1) {\n tmp[idx] = arr[idx];\n }\n\n capacity = capacity / 2;\n arr = new int[capacity];\n for (int idx = 0; idx < length; idx += 1) {\n arr[idx] = tmp[idx];\n }\n }", "title": "" }, { "docid": "5c6f5944272f023fbb550499e6c37dc0", "score": "0.60073006", "text": "private void ensureCapa(){\n int newSize = elements.length *2;\n elements = Arrays.copyOf(elements,newSize);\n }", "title": "" }, { "docid": "df53020652d176324a6a80f4eda43c9d", "score": "0.6004307", "text": "private void extendArray(int oldSize) {\n\t\t// Item[] newArray = new Item[oldSize - 10];\n\t\tItem[] newArray = new Item[oldSize + 10];\n\n\t\t// copy each value from items into the new array.\n\t\tfor (int i = 0; i < this.items.length; ++i) {\n\t\t\tnewArray[i] = this.items[i];\n\t\t}\n\t\t// change internal array\n\t\tthis.items = newArray;\n\t}", "title": "" }, { "docid": "b629b620388f2023d1fc52206b3638a1", "score": "0.5985208", "text": "private void growLonePairArray() {\n growArraySize = (lonePairs.length < growArraySize) ? growArraySize : lonePairs.length;\n ILonePair[] newLonePairs = new ILonePair[lonePairs.length + growArraySize];\n System.arraycopy(lonePairs, 0, newLonePairs, 0, lonePairs.length);\n lonePairs = newLonePairs;\n }", "title": "" }, { "docid": "2bebc4e2a55a121996e5eb79b3c863ce", "score": "0.5961653", "text": "private void ensureCapacity() {\n\t\tT[] oldQueue = queue;\n\t\tint oldSize = oldQueue.length;\n\t\t\n\t\t// The case is safe because the new array contains null entries.\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tT[] tempQueue = (T[]) new Object[2 * oldSize];\n\t\tqueue = tempQueue;\n\t\tfor (int index = 0; index < oldSize -1; index++) {\n\t\t\tqueue[index] = oldQueue[frontIndex];\n\t\t\tfrontIndex = (frontIndex + 1) % oldSize;\n\t\t}//end for\n\t\tfrontIndex = 0;\n\t\tbackIndex = oldSize - 2;\n\t}", "title": "" }, { "docid": "b973e9f14ff430428b0231ef2c3587e5", "score": "0.59502065", "text": "private void maximizeArray() {\n Object[] newArray = new Object[array.length * 2];\n System.arraycopy(array, 0, newArray, 0, size());\n array = newArray;\n }", "title": "" }, { "docid": "477239c2e123c6039c22cbbc8154dbed", "score": "0.5947698", "text": "private Item[] createNewArray(int newSize) {\n Item[] newArray = (Item[]) new Object[newSize];\n int oldSize = this.resizingArray.length;\n\n int j = 0;\n for (int i = 0; i < oldSize; i++) {\n if (j == newSize) { break; }\n if (this.resizingArray[i] != null) {\n newArray[j++] = this.resizingArray[i];\n }\n }\n //System.arraycopy(newArray, 0, this.resizingArray, 0, newSize);\n return newArray;\n }", "title": "" }, { "docid": "b86f4a31a8d417aca50ee80519a38ff8", "score": "0.59320664", "text": "private boolean stretchArray(){\n if(this.dataArray.length == 0){\n dataArray = Arrays.copyOf(dataArray, 1);\n } else {\n dataArray = Arrays.copyOf(dataArray, (int) Math.ceil(this.dataArray.length * 1.5));\n }\n return true;\n }", "title": "" }, { "docid": "72b578b14aaf208e06c04eae0e427bdb", "score": "0.5927537", "text": "private void arrayDoubling() {\n Node[] temp = values;\n limit *= 2;\n values = new Node[values.length * 2];\n System.arraycopy(temp,0,values,0,size);\n }", "title": "" }, { "docid": "0fc6f923b8d1262b94df38ba1de51ee2", "score": "0.5907758", "text": "private void increaseArraySize() {\n\t\tint currentSize = size();\n\t\tint newArray [] = new int [currentSize<<1];\n\t\tSystem.arraycopy( array, 0, newArray,0 , currentSize );\n\t\tarray = newArray;\n\t\tthis.capacity = this.capacity<<1;\n\t}", "title": "" }, { "docid": "c67fb01121428cf4ef5a870010e256d9", "score": "0.590374", "text": "private void checkForResize()\n {\n if(arrayCapacity == arraySize)\n {\n arrayCapacity *=2;\n int[] newArray = new int[arrayCapacity];\n int loopIndex;\n \n for(loopIndex = 0; loopIndex < arraySize; loopIndex++)\n {\n newArray[loopIndex] = heapArray[loopIndex];\n }\n \n heapArray = newArray;\n }\n }", "title": "" }, { "docid": "5da511d45cfa83b92092930991edc0ce", "score": "0.5902874", "text": "private void expandCapacity()\r\n {\r\n T[] larger = (T[])(new Object[queue.length*2]);\r\n\r\n for (int scan=0; scan < queue.length; scan++)\r\n larger[scan] = queue[scan];\r\n\r\n queue = larger;\r\n }", "title": "" }, { "docid": "289dae43c2272246ca584f68392561b3", "score": "0.5897125", "text": "private void extendArray() {\n elements = Arrays.copyOf(elements, elements.length * AMOUNT_TO_EXTEND_ARRAY);\n }", "title": "" }, { "docid": "209d0b42c2e5faf58f7766d8917a24a3", "score": "0.5879138", "text": "private void ensureCapacity() {\n // size & capacity\n if(size >= capacity) {\n Object[] newArray = new Object[capacity*2+1];\n System.out.println(\"New array length -> \"+newArray.length);\n System.arraycopy(data, 0, newArray, 0, size );\n data = newArray;\n }\n }", "title": "" }, { "docid": "38476249f64b42744f175ae9cb91a1e9", "score": "0.5866279", "text": "private void expand() {\n\t\tint newSize = items.length * 2;\n\t\tE[] newItems = (E[]) new Object[newSize];\n\t\tfor(int i = 0; i < numItems; i++) {\n\t\t\tnewItems[i] = items[i];\n\t\t}\n\t\titems = newItems;\n\t}", "title": "" }, { "docid": "2a8e4616d8c0239a00f0231eadb82470", "score": "0.58419234", "text": "protected static int[] appendAndResizeIndex(int[] array, int roomLIndexToAdd) {\n int[] temp = new int[array.length + 1];\n System.arraycopy(array, 0, temp, 0, array.length);\n temp[array.length] = roomLIndexToAdd;\n return temp;\n }", "title": "" }, { "docid": "f9dd33e19accfda0cd7ecce2b6921aac", "score": "0.58284986", "text": "private void growAtomArray() {\n growArraySize = (atoms.length < growArraySize) ? growArraySize : atoms.length;\n IAtom[] newatoms = new IAtom[atoms.length + growArraySize];\n System.arraycopy(atoms, 0, newatoms, 0, atoms.length);\n atoms = newatoms;\n }", "title": "" }, { "docid": "4d6b8a710441e776b037c55d9ce1ef9f", "score": "0.5821391", "text": "private void ensureCapacity() {\n if (size + 1 > this.values.length) {\n this.values = Arrays.copyOf(this.values, size + this.values.length);\n }\n }", "title": "" }, { "docid": "3b689e1fff66c6e5db2f227efcfa524c", "score": "0.57927406", "text": "public void updateToNewArray()\r\n {\r\n threateningLocations = new ArrayList<ChessLocation>();\r\n }", "title": "" }, { "docid": "e059e57296f25ada6eac1987897c353e", "score": "0.5773885", "text": "private void ensureCapacity() {\n\t\tif(size==items.length) {\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tT [] newArrayList = (T[]) new Object[size*2];\n\t\t\t//Professor's in class code. replace for loop\n\t\t\tSystem.arraycopy(items, 0, newArrayList, 0, size);\n\t\t\titems = newArrayList;\n\t\t}\n\t}", "title": "" }, { "docid": "6245b2ff97175cde090b9681a5e05d72", "score": "0.5758297", "text": "private void expandCapacity()\n {\n T[] largerVertices = (T[])(new Object[vertices.length*2]);\n boolean[][] largerAdjMatrix = \n new boolean[vertices.length*2][vertices.length*2];\n \n for (int i = 0; i < n; i++)\n {\n for (int j = 0; j < n; j++)\n {\n largerAdjMatrix[i][j] = arcs[i][j];\n }\n largerVertices[i] = vertices[i];\n }\n \n vertices = largerVertices;\n arcs = largerAdjMatrix;\n }", "title": "" }, { "docid": "4ca3990f01f9426e8a4744bec7040610", "score": "0.5743596", "text": "private void shrinkArray() {\n\t\tint length = top+1;\n\t\tif(length<=MINCAPACITY || top<<2 >=length) {\n\t\t\treturn;\n\t\t}\n\t\tlength=length +(top<<1);\n\t\tif(top<MINCAPACITY) length = MINCAPACITY;\n\t\tint [] newArray = new int [length];\n\t\tSystem.arraycopy( array, 0, newArray, 0, top+1 );\n\t\tarray = newArray;\n\t\tthis.capacity = length;\n\t}", "title": "" }, { "docid": "bb67808af376f6448da42a51e80c4f5d", "score": "0.5723456", "text": "private void checkCapacity(int newCap) {\n if (newCap > arr.length) {\n T[] newBack = (T[]) new Comparable[arr.length * 2];\n for (int i = 1; i < arr.length; i++) {\n newBack[i] = arr[i];\n }\n arr = newBack;\n }\n }", "title": "" }, { "docid": "1e886b9ecac68a3ded763d37d551c5fa", "score": "0.568885", "text": "private void decreaseArrayLength() {\n\n\t\tif (arrayLength != INITIAL_ARRAY_LENGTH) {\n\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tItem[] newArray = (Item[]) new Object[arrayLength\n\t\t\t\t\t/ ARRAY_INCREASE_FACTOR];\n\n\t\t\tfor (int i = 0; i < arrayLast; i++) {\n\t\t\t\tnewArray[i] = randomQueue[i];\n\t\t\t}\n\n\t\t\trandomQueue = newArray;\n\t\t\tnewArray = null;\n\n\t\t\tarrayLength = arrayLength / ARRAY_INCREASE_FACTOR;\n\n\t\t}\n\t}", "title": "" }, { "docid": "70688301d37ae8df0c6dd310548b9d96", "score": "0.56713605", "text": "private void increaseSize() {\n\t\t//increase by length and multiply by two\n\t\t//create a new array with the existing array capacity\n\t\t//add ten more\n\t\tS[] newArray = (S[]) new Object [data.length + defaultMaxSize*2];\n\t\t//copy all the elements from the old array into the bigger\n\t\t//container\n\t\tfor(int i = 0; i< size; i++) {\n\t\t\tnewArray[i] = data[i];\n\t\t}\n\t\t//make the old array point to the old one.\n\t\tdata = newArray;\n\t}", "title": "" }, { "docid": "8f65ffd56617c95c153dc15eda089fed", "score": "0.565052", "text": "private void resize() {\n\t\tthis.currentCap *= 2;\n\n\t\tT[] tempArray = (T[]) Array.newInstance(this.type,\n\t\t\t\tthis.currentCap);\n\t\tint counter = 0;\n\t\tfor (int i = this.head; i < this.array.length; i++) {\n\t\t\ttempArray[counter] = this.array[i];\n\t\t\tcounter++;\n\t\t}\n\t\tif (this.head != 0) {\n\t\t\tfor (int j = 0; j < this.head; j++) {\n\t\t\t\ttempArray[counter] = this.array[j];\n\t\t\t\tcounter++;\n\t\t\t}\n\t\t}\n\t\tthis.array = tempArray;\n\t\tthis.head=0;\n\t}", "title": "" }, { "docid": "efdf9b771dadfab2031376758e91c7d8", "score": "0.5647803", "text": "private void doubleCapacity()\n {\n int _newSize = entries_.length * 2;\n\n EntryList[] _newList = new EntryList[_newSize];\n\n for (int x = 0; x < entries_.length; ++x)\n {\n if (entries_[x] != null)\n {\n int _arrayPos = computeHashIndex(entries_[x].key(), _newSize);\n _newList[_arrayPos] = entries_[x];\n }\n }\n\n entries_ = _newList;\n }", "title": "" }, { "docid": "f28a5efbf1281839ad72c7b1642cf121", "score": "0.5599936", "text": "@Override\n\t\tpublic Workout[] newArray(int size) {\n\t\t\treturn null;\n\t\t}", "title": "" }, { "docid": "186517feae4399a99e392acb0df07315", "score": "0.55968446", "text": "private void ensureCapacity() {\n if (elements.length == size) {\n Object[] oldElements = elements;\n elements = new Object[2 * elements.length + 1];\n System.arraycopy(oldElements, 0, elements,0,size);\n }\n }", "title": "" }, { "docid": "b8f1a46052f328cc1f3e2f7910243a1a", "score": "0.55908597", "text": "private static int[] appendAndResizeIndices(int[] array, int[] array2) {\n int[] temp = new int[array.length + array2.length];\n System.arraycopy(array, 0, temp, 0, array.length);\n System.arraycopy(array2, 0, temp, array.length, array2.length);\n return temp;\n }", "title": "" }, { "docid": "390da425d76b0dbfff85deb38c8ae9fd", "score": "0.5588924", "text": "private void shrink() {\n\n /**\n *\n * Requirement - you must use loops (i.e. may not use\n * System.arraycopy, or any other array copy operation\n * available in the Java API)\n *\n */\n int newCapacity = MINIMUM_CAPACITY;\n\n if ((capacity / 2) >= MINIMUM_CAPACITY) {\n newCapacity = capacity / 2;\n }\n\n AnyType[] temp = (AnyType[]) new Comparable[newCapacity];\n capacity = newCapacity;\n\n for (int i = 0; i < size; i++) {\n temp[i] = array[i];\n }\n array = temp;\n }", "title": "" }, { "docid": "dcda56bbab20265556ba819220ab8932", "score": "0.5583898", "text": "private void reallocate() {\r\n TwoDArray[] temp = new TwoDArray[2 * capacity];\r\n capacity*=2;\r\n System.arraycopy(arr, 0, temp, 0, arr.length);\r\n arr = temp;\r\n }", "title": "" }, { "docid": "b0cc70bce18671aece5355c0858152ad", "score": "0.55689484", "text": "private void arrayDoubling() {\n Node<K, V>[] oldHashTable = hashTable;\n hashTable = new Node[oldHashTable.length * 2];\n size = 0;\n for (Node<K, V> node : oldHashTable) {\n if (node != null) {\n for (Node<K, V> n : node.getNodes()) {\n insert(n.key, n.value);\n }\n }\n }\n }", "title": "" }, { "docid": "5dd1ecabe31449218d6d239889e4e818", "score": "0.55622345", "text": "private void grow(){\n int newMaxSize = emplist.length + CONTAINER_SIZE; //creates new arraySize\n Employee[] newEmpList = new Employee[newMaxSize];\n for(int i = 0; i < numEmployee; i++) //copies employees into new array\n newEmpList[i] = emplist[i];\n emplist = newEmpList;\n }", "title": "" }, { "docid": "4d789ed089c093fef5bbe97d9d3c3319", "score": "0.55486935", "text": "private void reallocate() {\n capacity = capacity * 2;\n theData = Arrays.copyOf(theData, capacity);\n }", "title": "" }, { "docid": "1d0430b1d9b0033f4bba6e7b0ec6a8ef", "score": "0.5546158", "text": "private void ensureCapacity() {\n int newCapacity = (this.values.length * 3 / 2) + 1;\n Entry<K, V>[] newValues = new Entry[newCapacity];\n System.arraycopy(this.values, 0, newValues, 0, this.values.length);\n this.values = newValues;\n }", "title": "" }, { "docid": "73b4fe74ff718625ea4434c9927501b9", "score": "0.5543864", "text": "private void shrink() {\n int shrinkSize = array.length>>1;\n array = Arrays.copyOf(array, shrinkSize);\n }", "title": "" }, { "docid": "716ffa035c81bad10582b65417e6c6aa", "score": "0.55436295", "text": "private void grow(int newCapacity) {\n\n capacity = newCapacity;\n long[] tempValues = new long[newCapacity];\n\n System.arraycopy(values, 0, tempValues, 0, values.length);\n\n values = tempValues;\n }", "title": "" }, { "docid": "20d6aa69373f754e4773b37aa91947fd", "score": "0.554287", "text": "private static Object[] maybeResizeElementArray(Object[] array, int bestLength) {\n return mustResize(array.length, bestLength) ? Arrays.copyOf(array, bestLength) : array;\n }", "title": "" }, { "docid": "d3b429507e4bde154df5b35f95085e8a", "score": "0.5530247", "text": "public boolean[][] newArray(){\r\n\tboolean[][] arr = new boolean[5][5];\r\n\tint rand = 0;\r\n\tint rand2 = 0;\r\n\tint cnt = 0;\r\n\twhile(cnt<5){\r\n\t\tfor (int i = 0; i < arr.length; i++ ) {\r\n\t\t\tfor (int j = 0; j < arr[0].length; j++ ) {\r\n\t\t\t\trand = (int)(Math.random()*4)+1;\r\n\t\t\t\trand2 = (int)(Math.random()*4)+1;\r\n\t\t\t\t\tif(currentmap[i][j] == currentmap[rand][rand2]){\r\n\t\t\t\t\t\tswap(i, j);\r\n\t\t\t\t\t\tswap(i-1, j);\r\n\t\t\t\t\t\tswap(i+1, j);\r\n\t\t\t\t\t\tswap(i, j+1);\r\n\t\t\t\t\t\tswap(i, j-1);\r\n\t\t\t\t\t\tupdateScreen();\r\n\t\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\tcnt++;\r\n\t}\r\n\treturn currentmap;\r\n\t}", "title": "" }, { "docid": "e6da05c19190e7dfa7971693f3e461a6", "score": "0.5525584", "text": "private void enlargeArray(int newCapacity) {\n T[] oldData = heap;\n heap = makeArrayOfT(newCapacity);\n for (int i = 0; i < oldData.length; i++) {\n heap[i] = oldData[i];\n }\n }", "title": "" }, { "docid": "c05edb59a9981946813162f8b46b7ef4", "score": "0.5510634", "text": "public void pluck() {\n for (int i = 0; i < desiredCapacity; i++) {\n ringBuffer.remove();\n ringBuffer.add(Math.random() - 0.5);\n }\n }", "title": "" }, { "docid": "9d9cb23e05c39ad4c20ff163d624e5bb", "score": "0.5510041", "text": "private void fillTheSpecificArray(Word word, Word[] array){\n\t\tfor(int i = 0; i < array.length; i++){\n\t\t\tWord w = array[i];\n\t\t\tif(w == null){\n\t\t\t\tarray[i] = word;\n\t\t\t} else {\n\t\t\t\tif(w.difference < word.difference){\n\t\t\t\t\tWord temp = w;\n\t\t\t\t\tarray[i] = word;\n\t\t\t\t\tword = temp;\n\t\t\t\t\tif(w.equals(word)) return;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "7bf44690f581324cce22203dc4f99cf8", "score": "0.55029273", "text": "private void checkForResize()\n {\n int iteration;\n if(arrayCapacity-1==arraySize)\n {\n StudentClass[] temp=new StudentClass[arrayCapacity];\n for(iteration=0;iteration<arrayCapacity;iteration++)\n {\n temp[iteration]=heapArray[iteration];\n }\n arrayCapacity=arrayCapacity+1;\n heapArray = new StudentClass[arrayCapacity];\n for(iteration=0;iteration<arrayCapacity-1;iteration++)\n {\n heapArray[iteration]=temp[iteration];\n }\n }\n }", "title": "" }, { "docid": "36e415bc930fa4ff79343aafe93918a5", "score": "0.54804164", "text": "private void growBondArray() {\n growArraySize = (bonds.length < growArraySize) ? growArraySize : bonds.length;\n IBond[] newBonds = new IBond[bonds.length + growArraySize];\n System.arraycopy(bonds, 0, newBonds, 0, bonds.length);\n bonds = newBonds;\n }", "title": "" }, { "docid": "258ab7d80f7f57483355b919e82e4f0e", "score": "0.5471069", "text": "private void expand() {\r\n\t\tT[] largeArrayStack;\r\n\t\tif (size>=60 && size<upperBound){\r\n\t\t\tsize = size+100;\r\n\t\t\tlargeArrayStack = (T[])new Object[size];\r\n\t\t}\r\n\t\telse {\r\n\t\t\tsize = size*3;\r\n\t\t\tlargeArrayStack = (T[])new Object[size];\r\n\t\t}\r\n\t\tfor (int i=0; i<arrayStack.length; i++) {\r\n\t\t\tlargeArrayStack[i] = arrayStack[i];\r\n\t\t}\r\n\t\tarrayStack = largeArrayStack;\r\n\t}", "title": "" }, { "docid": "f9c734f60288ffa109428f1bd392722b", "score": "0.5449938", "text": "private void endOfTurn() {\n\t\t\tcurrentEntry++;\n\t\t\tif(currentEntry == turnList.length) {\n\t\t\t\tTurn[] temp = new Turn[turnList.length];\n\t\t\t\tfor(int i = 5; i < turnList.length ; i++) {\n\t\t\t\t\ttemp[i-5] = turnList[i];\n\t\t\t\t}\n\t\t\t\tturnList = temp;\n\t\t\t\tcurrentEntry = 5;\n\t\t\t} \n\t\t\tcurrentTurn++;\n\t\t\tturnList[currentEntry] = new Turn(run.sensors, SensorComparator.SORT_BY_TURNS, currentTurn);\n\t\t\trun = null;\n\t\t}", "title": "" }, { "docid": "c32d678a22d7012d3484dd5e8868224b", "score": "0.54473114", "text": "private static void punchArray() {\n\t\t\n\t\tfor (int i = 0; i < arrayOfBlanks.length; i++) {\n\t\t\tsudoku[arrayOfBlanks[i]] = 999;\n\t\t}\n\t}", "title": "" }, { "docid": "9ec246ccd2827bdfa90888d5c0bd21a0", "score": "0.5445318", "text": "static int[][] fillArrayConversely() {\n int[][] result = new int[10][10];\n\n for (int i = 0; i < 10; i++) {\n for (int j = 0; j < 10; j++) {\n result[i][j] = 99 - i * 10 - j;\n }\n }\n return result;\n }", "title": "" }, { "docid": "64621589dd00b620882731c4a916befc", "score": "0.5437967", "text": "private void resize(){\n int resize = size*2;\n Object[] newE = new Object[resize];\n elements = newE;\n }", "title": "" }, { "docid": "e17dd72101ba61f0f3ed330e78a27647", "score": "0.54178154", "text": "private void percolateDown(int hole) {\n int child;\n AnyType temp = array[hole];\n\n for(; 2 * hole <= currentSize; hole = child){\n child = 2 * hole;\n\n if(child != currentSize && array[child + 1].compareTo(array[child]) < 0){\n child++;\n }\n if(array[child].compareTo(temp) < 0){\n array[hole] = array[child];\n }else\n break;\n }\n\n array[hole] = temp;\n }", "title": "" }, { "docid": "2fdfd8a3769b6f27b504fde8e381607a", "score": "0.5412963", "text": "private void adjustDroneArray() {\n\t\tfor(int i = 0; i < drones.length - 1; i++) {\n\t\t\tdrones[i] = drones [i + 1]; // next drone shifted to position of prior\n\t\t}\n\t}", "title": "" }, { "docid": "856643c816a4cb2c150275d939aefbfd", "score": "0.5399349", "text": "public void trimToSize() {\n\t \n\tint newCapacity = size;\n\tif(newCapacity < MINIMUM_CAPACITY)\n\t\tnewCapacity = MINIMUM_CAPACITY;\n\t\n\tif(newCapacity != capacity) {\n\t AnyType[] temp = (AnyType[]) new Comparable[newCapacity];\n\t\n\t for (int i = 0; i < newCapacity; i++) {\n\t temp[i] = array[i];\n\t }\n\t capacity = newCapacity;\n\t array = temp;\n\t}\n\n }", "title": "" }, { "docid": "fe79ae5a0b40fddc89a832e634fabd5a", "score": "0.53926075", "text": "public void resize(){\n if(size() == data.length){\n @SuppressWarnings(\"unchecked\")\n E[] temp = (E[]) new Object[data.length * 2]; //creating a new array with double the size\n int count = 0;\n while(count < data.length){\n temp[count] = data[(start + count) % data.length];\n count++;\n }\n data = temp;\n start = 0;\n end = count -1;\n }\n }", "title": "" }, { "docid": "9848b4efc9a2b35f74a6e228af34752a", "score": "0.53863746", "text": "private void resize(int newCapacity) {\n T[] newItems = (T[]) new Object[newCapacity];\n int newIndex = 0;\n int oldIndex = firstIndex;\n //assigns old array into new, starting at 0\n //minusOne every time\n for (int rep = 0; rep < size; rep++) {\n newItems[newIndex] = items[oldIndex];\n //walks new array\n newIndex = minusOne(newIndex, newCapacity);\n //walks old array\n oldIndex = minusOne(oldIndex, this.capacity);\n }\n //assigns old array to new one\n items = newItems;\n //new Array starts at 0, end at lastArray\n firstIndex = 0;\n lastIndex = (newCapacity / 2) + 1;\n capacity = newCapacity;\n }", "title": "" }, { "docid": "1bce001fae86c8c79fbd03e60bc0320d", "score": "0.5384133", "text": "static void revereseArr(int arr[])\n {\n int i = 0;\n int j = arr.length - 1;\n while (i < j)\n {\n int temp = arr[i];\n arr[i] = arr[j];\n arr[j] = temp;\n i++;j--;\n }\n }", "title": "" }, { "docid": "31b6034a77a9ee967de1c82782db0e53", "score": "0.53790927", "text": "private static void merger(int[] data, int startInclusive, int mid, int endExclusive, int[] free) {\n System.arraycopy(data, startInclusive, free, startInclusive, endExclusive - startInclusive);\n int i = startInclusive;\n int j = mid;\n for(int k = startInclusive; k < endExclusive; k++){\n if(i >= mid){\n data[k] = free[j++];\n }else if(j >= endExclusive){\n data[k] = free[i++];\n }else if(free[i] < free[j]){\n data[k] = free[i++];\n }else{\n data[k] = free[j++];\n }\n }\n\n }", "title": "" }, { "docid": "2be402295ed4c4b70cfb009e403716e4", "score": "0.5378404", "text": "public void makeZero(){\n for(int i=1;i<=size;i++){\n this.array[i] = new List();\n }\n }", "title": "" }, { "docid": "6baae9a96974ea87c90d407f60570a8c", "score": "0.5363421", "text": "private void doubleArray(){\n Arc[][] biggerInfo = new Arc[rows*2][3 + columns*2];\n rows = rows * 2;\n columns = columns * 2;\n for (int i=0; i<arcInfo.length; i++) {\n for (int j=0; j<arcInfo[i].length; j++){\n biggerInfo[i][j] = arcInfo[i][j];\n }\n }\n arcInfo = biggerInfo;\n }", "title": "" }, { "docid": "22036cd04313465008ccb1c6cef44e90", "score": "0.5356882", "text": "public void pushRooms(){\n prevRooms.push(currentPlayer.getCurrentRoom());\n }", "title": "" }, { "docid": "2dd0478891d40c004c99899867983efb", "score": "0.5349081", "text": "private void realloc(int size) {\n BookRecord[] newArr = new BookRecord[size];\n for (int i = 0; i < this.index; i++)\n newArr[i] = this.arr[i];\n System.out.println(\"Resized array from \" + this.arr.length + \" to \" + newArr.length);\n this.arr = newArr;\n newArr = null;\n }", "title": "" }, { "docid": "2744ddd4bcdacde014fbedd3f36fee08", "score": "0.5336272", "text": "private void resize(int capacity)\n {\n T[] tmp = (T[]) new Object[capacity];\n\n for (int i = 0; i < total; i++)\n tmp[i] = arr[(first + i) % arr.length];\n\n arr = tmp;\n first = 0;\n rear = total;\n }", "title": "" }, { "docid": "0831d7f6f46c0a4901c3387429f71587", "score": "0.53201634", "text": "@SuppressWarnings(\"unchecked\")\r\n\tprivate void ensureCapacity() \r\n\t{\r\n\t\tif (numberOfElements == capacity) \r\n\t\t{\r\n\t\t\tObject[] newArray = new Object[(numberOfElements+1) * CAPACITY_MULTIPLIER];\r\n\t\t\tSystem.arraycopy(elements,0,newArray,0,numberOfElements);\r\n\t\t\telements = (T[]) newArray;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "c32193889d3c5328a4b1ede79be11019", "score": "0.53129375", "text": "static void pushZeroToEnd(int[] arrayInput, boolean leftSide) {\n\n int length = arrayInput.length;\n Queue<Integer> setTemp = new ArrayDeque<Integer>();\n for (Integer x : arrayInput) {\n if (x != 0) {\n setTemp.add(x);\n }\n }\n\n if (!leftSide) {\n for (int i = 0; i < length; i++) {\n if (!setTemp.isEmpty()) {\n arrayInput[i] = setTemp.remove();\n }\n\n else {\n arrayInput[i] = 0;\n }\n\n }\n } else {\n int lengthOfZeroes = length - setTemp.size();\n for(int i=0; i<lengthOfZeroes; i++){\n arrayInput[i] = 0;\n }\n for(int k= lengthOfZeroes; k<length ; k++ ){ \n arrayInput[k] = setTemp.remove();\n }\n }\n\n System.out.println(Arrays.toString(arrayInput));\n\n }", "title": "" }, { "docid": "55a77f18060c661897515f73e47d0695", "score": "0.5309181", "text": "private void extendBoardDownRight() {\n tempArray = new ArrayList<>();\n copyTempArray = new ArrayList<>();\n\n IntStream.range(0, cellArrayList.size()).forEach(p -> {\n tempArray.add(new Cell(false));\n });\n cellArrayList.add(new ArrayList<>(tempArray));\n\n for (ArrayList<Cell> array : cellArrayList) {\n array.add(new Cell(false));\n }\n\n IntStream.range(0, cellArrayList.size()).forEach(p -> {\n copyTempArray.add(new Cell(false));\n });\n copyArrayList.add(new ArrayList<>(copyTempArray));\n\n for (ArrayList<Cell> array : copyArrayList) {\n array.add(new Cell(false));\n }\n\n }", "title": "" }, { "docid": "3139560f94a82532f2134f9a1b1a2890", "score": "0.5307926", "text": "private void constructIterator() {\n int j = 0;\n for (int i = 0; i < max; i++) {\n if (j == numberOfItems) { break; } //not sure if added check reqd\n if (resizingArray[i] != null) {\n this.itemIt[j++] = resizingArray[i];\n }\n }\n }", "title": "" }, { "docid": "45c8df304da5c07a307dacded85cbf63", "score": "0.5304142", "text": "private void expandCapacity()\n {\n capacity *= 2;\n Cell[] array = new Cell[capacity];\n System.arraycopy(cells, 0, array, 0, size);\n cells = array;\n }", "title": "" }, { "docid": "bcc68512497358dcd9333d3afd4a3288", "score": "0.530332", "text": "private void ensureExtraCapacity() {\n\n if (size == capacity) {\n\n heap = Arrays.copyOf(heap, capacity * 2);\n\n capacity *= 2;\n\n }\n\n }", "title": "" }, { "docid": "8b25feac89d55f275be5ee8a8ab11efa", "score": "0.5299409", "text": "private E[] resize(E[] elems, int newsize){\n if(newsize < 0){\n throw new IllegalArgumentException();\n // UP FOR CHANGE\n }\n E[] newelems = (E[])(new Object[newsize]);\n if (elems == null){\n return newelems;\n }\n // Add elements back in\n System.arraycopy(elems, 0, newelems, 0, Math.min(elems.length, newsize));\n \n return newelems;\n }", "title": "" }, { "docid": "7a1086a7396148c2f3531cba0912afcc", "score": "0.529737", "text": "protected long[] padArrayBack(long[] data, int len) {\n if (len <= data.length) return data;\n long[] newData = new long[len];\n long last = data[data.length-1];\n System.arraycopy(data, 0, newData, 0, data.length); // copy at the beginning\n Arrays.fill(newData, data.length, newData.length - 1, last); // repeat last value\n return newData;\n }", "title": "" }, { "docid": "2b9b6a0f491ed75acc03b6bfbb8e767e", "score": "0.52972096", "text": "protected void populateArray() {\n\t\tif (populationStrategy.contains(\"increasing\")) {\n\t\t\tpopulateArrayIncreasing();\n\t\t}\n\t\tpopulateArrayRandomly();\n\t}", "title": "" }, { "docid": "e9b0db818dce0595b27efee94e3ee4f2", "score": "0.5296745", "text": "private void switchToEmpty(Dimension pos){\n\t\t\tarray[nullPos.x][nullPos.y] = array[pos.x][pos.y];\n\t\t\tarray[pos.x][pos.y] = null;\n\t\t\tnullPos = new Dimension(pos.x, pos.y);\n\t\t}", "title": "" }, { "docid": "ce0524951a8f0ed09d3f78f8c594f015", "score": "0.52780545", "text": "private static int[] ensureCapacity(@NotNull int[] prev, int size) {\n assert size >= 0;\n\n int prevSize = prev.length / 2;\n if (prevSize <= size) {\n int nextSize = Math.max(MIN_PART_CAPACITY, Math.max(prevSize + prevSize >> 1, size));\n return Arrays.copyOf(prev, nextSize * 2);\n }\n return prev;\n }", "title": "" }, { "docid": "fa2b89e4b50dfa777beb3d12c6e8965d", "score": "0.52678704", "text": "private MultiNode[] nullifyAndCreateArray(int length) {\n\t\tchildren = null;\n\t\treturn createArray( length );\n\t}", "title": "" }, { "docid": "8babaa0ee30f2c127f2b6f3b24fdfa36", "score": "0.52588814", "text": "private void trimBuffer() {\n\t\t// buffer remains intact\n\t\tif (MAX_REMAINING == 0 || buffer.size() <= MAX_REMAINING ) {\n\t\t\treturn;\n\t\t}\n\t\t\n\n\t\t// copy enough elements into new buffer.\n\t\tList<A> newBuffer = new ArrayList<>(MAX_REMAINING);\n\t\t\n\t\tfor (int i = 0; i < Math.max(used, MAX_REMAINING); i++) {\n\t\t\tnewBuffer.add(buffer.get(i));\n\t\t}\n\t\t\n\t\t\n\t\tbuffer = newBuffer;\n\t}", "title": "" }, { "docid": "2d64ebf1ee31464a3504e2fc73dc3c32", "score": "0.52562225", "text": "private void resize() {\n\t\t\n\t\t// Declare a new array which is double size of the original \n\t\tint doubleSize = (elements.length - 1) * 2 + 1; \n\t\tint temp[] = new int[doubleSize];\n\t\t\n\t\t// Copy elements to the newly declared array\n\t\tSystem.arraycopy(elements, 1, temp, 1, elements.length-1);\n\t\t\n\t\t// Reassign \n\t\telements = temp;\n\t}", "title": "" }, { "docid": "3a260a26bcc7dfa8756fa5902523eff8", "score": "0.5256023", "text": "private void increaseListSize(){\n myStore = Arrays.copyOf(myStore, myStore.length * 2);\n }", "title": "" }, { "docid": "368df0be5fd85b317380066f3d3b5b12", "score": "0.52539533", "text": "private static void ensureCapacity(int capacity) {\n if (capacity <= storage.length) {\n return;\n }\n int new_size = Math.max(storage.length * 2, capacity);\n Object[] temp = new Object[new_size];\n int delta = (pointerFront < pointerBack ? pointerBack - pointerFront : storage.length - pointerFront);\n System.arraycopy(storage, pointerFront, temp, 0, delta);\n System.arraycopy(storage, 0, temp, delta, size - delta);\n storage = temp;\n pointerFront = 0;\n pointerBack = size;\n }", "title": "" }, { "docid": "6285b695de6a3484b8877565f6ec492a", "score": "0.5238565", "text": "public void fixUpArray(){\n\t\t\n\t\tfor (int i = 0; i < 32; i++){\n\t\t\tfor (int j = 0; j < 24; j++){\n\t\t\t\t\n\t\t\t\t//these are just trying to account for the different situations that can occur when randomly generating floors\n\t\t\t\t//makes sure that the correct tiles are being placed for each situation\n\t\t\t\tif (floorLayout[i][j] == BOTH_CORR_TILE){\n\t\t\t\t\tif (floorLayout[i][j+1] == EMPTY_TILE)\n\t\t\t\t\t\tfloorLayout[i][j+1] = rng.nextInt(7);\n\t\t\t\t\tif (floorLayout[i][j-1] == EMPTY_TILE)\n\t\t\t\t\t\tfloorLayout[i][j-1] = rng.nextInt(7);\n\t\t\t\t\tif (floorLayout[i+1][j] == EMPTY_TILE)\n\t\t\t\t\t\tfloorLayout[i+1][j] = 11;\n\t\t\t\t\tif (floorLayout[i-1][j] == EMPTY_TILE)\n\t\t\t\t\t\tfloorLayout[i-1][j] = 10;\n\t\t\t\t\tif (floorLayout[i][j-1] == 11)\n\t\t\t\t\t\tfloorLayout[i][j-1] = 8;\n\t\t\t\t\tif (floorLayout[i+1][j] == 11 && floorLayout[i][j+1] < 7)\n\t\t\t\t\t\tfloorLayout[i+1][j+1] = 11;\n\t\t\t\t\tif (floorLayout[i+1][j] == 11 && floorLayout[i][j-1] == 8 && floorLayout[i+1][j-1] != 11)\n\t\t\t\t\t\tfloorLayout[i+1][j+1] = 14; \n\t\t\t\t\tif (floorLayout[i+1][j] == 11 && floorLayout[i][j-1] < 7 && floorLayout[i+1][j-1] != 11)\n\t\t\t\t\t\tfloorLayout[i+1][j-1] = 14;\n\t\t\t\t\tif (floorLayout[i-1][j] == 10 && floorLayout[i][j-1] < 8)\n\t\t\t\t\t\tfloorLayout[i-1][j-1] = 13;\n\t\t\t\t\tif (floorLayout[i][j-1] == 10)\n\t\t\t\t\t\tfloorLayout[i][j-1] = 7;\n\t\t\t\t\tif (floorLayout[i-1][j-1] < 7 && floorLayout[i-1][j-2] == 10)\n\t\t\t\t\t\tfloorLayout[i-1][j-1] = 7;\n\t\t\t\t\tif (floorLayout[i+1][j-1] < 7 && floorLayout[i+1][j-2] == 11)\n\t\t\t\t\t\tfloorLayout[i+1][j-1] = 8;\n\t\t\t\t\tif (floorLayout[i+1][j-1] < 7 && floorLayout[i+1][j-2] == 10)\n\t\t\t\t\t\tfloorLayout[i+1][j-1] = 8;\n\t\t\t\t\tif (floorLayout[i+1][j-1] < 7 && floorLayout[i+1][j-2] == 14)\n\t\t\t\t\t\tfloorLayout[i+1][j-1] = 8;\n\t\t\t\t\tif (floorLayout[i+1][j] < 7 && floorLayout[i+1][j-1] == 11)\n\t\t\t\t\t\tfloorLayout[i+1][j] = 8;\n\t\t\t\t\tif (floorLayout[i+1][j] == 14)\n\t\t\t\t\t\tfloorLayout[i+1][j] = 11;\n\t\t\t\t\tif (floorLayout[i][j-1] == 14)\n\t\t\t\t\t\tfloorLayout[i][j-1] = rng.nextInt(7);\n\t\t\t\t\tif (floorLayout[i][j+1] == 11)\n\t\t\t\t\t\tfloorLayout[i][j+1] = rng.nextInt(7);\n\t\t\t\t\tif (floorLayout[i-1][j-1] < 7 && floorLayout[i-1][j-2] == 11)\n\t\t\t\t\t\tfloorLayout[i-1][j-1] = 7;\n\t\t\t\t\tif (floorLayout[i-1][j-1] < 7 && floorLayout[i-1][j-2] == 14)\n\t\t\t\t\t\tfloorLayout[i-1][j-1] = 7;\n\t\t\t\t\tif (floorLayout[i+1][j] < 7 && floorLayout[i][j-1] < 7){\n\t\t\t\t\t\tfloorLayout[i+1][j] = 8;\n\t\t\t\t\t\tfloorLayout[i+1][j-1] = 14;\n\t\t\t\t\t}\n\t\t\t\t\tif (floorLayout[i-1][j] < 7 && floorLayout[i][j-1] < 7){\n\t\t\t\t\t\tfloorLayout[i-1][j] = 7;\n\t\t\t\t\t\tfloorLayout[i-1][j-1] = 13;\n\t\t\t\t\t}\n\t\t\t\t\tif (floorLayout[i+1][j] < 7 && floorLayout[i][j+1] < 7)\n\t\t\t\t\t\tfloorLayout[i+1][j+1] = 11;\n\t\t\t\t\tif (floorLayout[i-1][j] == 11)\n\t\t\t\t\t\tfloorLayout[i-1][j] = 12;\n\t\t\t\t\tif (floorLayout[i+1][j] == 10)\n\t\t\t\t\t\tfloorLayout[i+1][j] = 12;\n\t\t\t\t\tif (floorLayout[i-1][j-1] == 8 && floorLayout[i-1][j-2] == EMPTY_TILE){\n\t\t\t\t\t\tfloorLayout[i-1][j-1] = 9;\n\t\t\t\t\t\tfloorLayout[i-1][j-2] = 12;\n\t\t\t\t\t}\n\t\t\t\t\tif (floorLayout[i+1][j] == 13)\n\t\t\t\t\t\tfloorLayout[i+1][j] = 17;\n\t\t\t\t\tif (floorLayout[i-1][j] < 7 && (floorLayout[i-1][j-1] == 10 || floorLayout[i-1][j-1] < 7))\n\t\t\t\t\t\tfloorLayout[i-1][j] = 7;\t\n\t\t\t\t\tif (floorLayout[i-1][j-1] < 7 && floorLayout[i-1][j-2] < 7)\n\t\t\t\t\t\tfloorLayout[i-1][j-1] = 7;\n\t\t\t\t\tif (floorLayout[i+1][j-1] < 7 && floorLayout[i+1][j-2] < 7)\n\t\t\t\t\t\tfloorLayout[i+1][j-1] = 8;\n\t\t\t\t\tif (floorLayout[i-1][j-1] == 8 && floorLayout[i-1][j-2] == 12)\n\t\t\t\t\t\tfloorLayout[i-1][j-1] = 9;\n\t\t\t\t\tif (floorLayout[i][j+1] == 10 && floorLayout[i-1][j+1] < 7)\n\t\t\t\t\t\tfloorLayout[i][j+1] = rng.nextInt(7);\n\t\t\t\t\tif (floorLayout[i][j+1] < 7 && floorLayout[i+1][j] == 11 && floorLayout[i+1][j+1] == EMPTY_TILE)\n\t\t\t\t\t\tfloorLayout[i+1][j+1] = 11;\n\t\t\t\t\tif (floorLayout[i+1][j+1] == 12 && (floorLayout[i+1][j+1] == FLOOR_TILE || floorLayout[i+1][j+1] == HORIZ_CORR_TILE || floorLayout[i+1][j+1] == HORIZ_CORR_LEFT_DOOR_TILE))\n\t\t\t\t\t\tfloorLayout[i+1][j+1] = rng.nextInt(7);\t\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse if (floorLayout[i][j] == VERT_CORR_TILE){\n\t\t\t\t\tif (floorLayout[i-1][j] == EMPTY_TILE)\n\t\t\t\t\t\tfloorLayout[i-1][j] = 10;\n\t\t\t\t\tif (floorLayout[i+1][j] == EMPTY_TILE)\n\t\t\t\t\t\tfloorLayout[i+1][j] = 11;\n\t\t\t\t\tif (floorLayout[i-1][j] == 11)\n\t\t\t\t\t\tfloorLayout[i-1][j] = 12;\n\t\t\t\t\tif (floorLayout[i+1][j] == 10)\n\t\t\t\t\t\tif (floorLayout[i+1][j+1] == FLOOR_TILE || floorLayout[i+1][j+1] == HORIZ_CORR_TILE || floorLayout[i+1][j+1] == HORIZ_CORR_LEFT_DOOR_TILE)\n\t\t\t\t\t\t\tfloorLayout[i+1][j] = rng.nextInt(7);\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tfloorLayout[i+1][j] = 12;\n\t\t\t\t\tif (floorLayout[i-1][j] == 13)\n\t\t\t\t\t\tfloorLayout[i-1][j] = 10;\n\t\t\t\t\tif (floorLayout[i+1][j] == 14)\n\t\t\t\t\t\tfloorLayout[i+1][j] = 11;\n\t\t\t\t\tif (floorLayout[i-1][j] == 14)\n\t\t\t\t\t\tfloorLayout[i-1][j] = EMPTY_TILE;\n\t\t\t\t\tif (floorLayout[i+1][j] == 13)\n\t\t\t\t\t\tfloorLayout[i+1][j] = 17;\n//\t\t\t\t\tif (floorLayout[i-1][j] == 7)\n//\t\t\t\t\t\tfloorLayout[i-1][j] = 9;\n\t\t\t\t\tif (floorLayout[i+1][j] == 8)\n\t\t\t\t\t\tfloorLayout[i+1][j] = 12;\n\t\t\t\t\tif (floorLayout[i+1][j] == 7)\n\t\t\t\t\t\tfloorLayout[i+1][j] = 7;\n\t\t\t\t\tif (floorLayout[i+1][j] < 7 && floorLayout[i+1][j-1] < 7)\n\t\t\t\t\t\tfloorLayout[i+1][j] = 8;\n\t\t\t\t\tif (floorLayout[i-1][j] < 7 && floorLayout[i-1][j-1] < 7)\n\t\t\t\t\t\tfloorLayout[i-1][j] = 7;\n\t\t\t\t\tif (floorLayout[i+1][j] < 7 && floorLayout[i+1][j-1] == 11)\n\t\t\t\t\t\tfloorLayout[i+1][j] = 8;\n\t\t\t\t\tif (floorLayout[i-1][j] < 7 && floorLayout[i-1][j-1] == 10)\n\t\t\t\t\t\tfloorLayout[i-1][j] = 7;\n\t\t\t\t\tif (floorLayout[i+1][j] == VERT_CORR_BOTTOM_DOOR_TILE && floorLayout[i+1][j-1] == 11)\n\t\t\t\t\t\tfloorLayout[i+1][j] = 8;\n\t\t\t\t\tif (floorLayout[i-1][j] == VERT_CORR_BOTTOM_DOOR_TILE && floorLayout[i-1][j-1] == 10)\n\t\t\t\t\t\tfloorLayout[i-1][j] = 7;\n\t\t\t\t\tif (floorLayout[i-1][j] == 8 && floorLayout[i-1][j-1] == EMPTY_TILE){\n\t\t\t\t\t\tfloorLayout[i-1][j] = 9;\n\t\t\t\t\t\tfloorLayout[i-1][j-1] = 12;\n\t\t\t\t\t}\n\t\t\t\t\tif (floorLayout[i+1][j] == 8 && (floorLayout[i+2][j] == VERT_CORR_TILE || floorLayout[i+2][j] == VERT_CORR_BOTTOM_DOOR_TILE)){\n\t\t\t\t\t\tfloorLayout[i+1][j] = 9;\n\t\t\t\t\t}\n\t\t\t\t\tif (floorLayout[i-1][j-1] == 8 && floorLayout[i-1][j-2] == 12)\n\t\t\t\t\t\tfloorLayout[i-1][j-1] = 9;\n\t\t\t\t}\n\t\t\t\telse if (floorLayout[i][j] == VERT_CORR_TOP_DOOR_TILE){\n\t\t\t\t\tif (floorLayout[i+1][j] < 7 && floorLayout[i+1][j+1] < 7)\n\t\t\t\t\t\tfloorLayout[i+1][j+1] = 8;\n\t\t\t\t}\n\t\t\t\telse if (floorLayout[i][j] == VERT_CORR_BOTTOM_DOOR_TILE){\n\t\t\t\t\tif (floorLayout[i-1][j] < 7 && floorLayout[i-2][j] == FLOOR_TILE )\n\t\t\t\t\t\tfloorLayout[i-1][j] = 9;\n\t\t\t\t\tif (floorLayout[i-1][j] < 7 && floorLayout[i-1][j-1] == 10)\n\t\t\t\t\t\tfloorLayout[i-1][j] = 7;\n\t\t\t\t\tif (floorLayout[i-1][j] < 7 && floorLayout[i-1][j-1] < 10)\n\t\t\t\t\t\tfloorLayout[i-1][j] = 7;\n\t\t\t\t\tif (floorLayout[i+1][j] < 7 && (floorLayout[i+1][j-1] == 11 || floorLayout[i+1][j-1] < 7))\n\t\t\t\t\t\tfloorLayout[i+1][j] = 8;\n\t\t\t\t}\n\t\t\t\telse if (floorLayout[i][j] == HORIZ_CORR_TILE){\n\t\t\t\t\tif (floorLayout[i][j-1] == EMPTY_TILE)\n\t\t\t\t\t\tfloorLayout[i][j-1] = rng.nextInt(7);\n\t\t\t\t\tif (floorLayout[i][j+1] == EMPTY_TILE)\n\t\t\t\t\t\tfloorLayout[i][j+1] = rng.nextInt(7);\n\t\t\t\t\tif (floorLayout[i][j-1] == 10)\n\t\t\t\t\t\tfloorLayout[i][j-1] = 7;\n\t\t\t\t\tif (floorLayout[i][j+1] == 10)\n\t\t\t\t\t\tfloorLayout[i][j+1] = rng.nextInt(7);\n\t\t\t\t\tif (floorLayout[i][j-1] == 11)\n\t\t\t\t\t\tfloorLayout[i][j-1] = rng.nextInt(7);\n\t\t\t\t\tif (floorLayout[i][j+1] == 11)\n\t\t\t\t\t\tfloorLayout[i][j+1] = rng.nextInt(7);\n\t\t\t\t\tif (floorLayout[i][j+1] == 13)\n\t\t\t\t\t\tfloorLayout[i][j+1] = rng.nextInt(7);\n\t\t\t\t\tif (floorLayout[i][j+1] == 14)\n\t\t\t\t\t\tfloorLayout[i][j+1] = rng.nextInt(7);\n\t\t\t\t\tif (floorLayout[i][j-1] < 7 && floorLayout[i][j-2] == 11)\n\t\t\t\t\t\tfloorLayout[i][j-1] = 8;\n\t\t\t\t\tif (floorLayout[i][j-1] < 7 && floorLayout[i][j-2] == 14)\n\t\t\t\t\t\tfloorLayout[i][j-1] = 8;\n\t\t\t\t\tif (floorLayout[i][j-1] == 14)\n\t\t\t\t\t\tfloorLayout[i][j-1] = rng.nextInt(7);\n\t\t\t\t\tif (floorLayout[i][j-1] == 13)\n\t\t\t\t\t\tfloorLayout[i][j-1] = rng.nextInt(7);\n\t\t\t\t\tif (floorLayout[i][j-1] < 7 && floorLayout[i][j-2] == 12)\n\t\t\t\t\t\tfloorLayout[i][j-1] = 9;\n\t\t\t\t\tif (floorLayout[i][j-1] < 7 && floorLayout[i][j-2] < 7 && (floorLayout[i-1][j-1] == FLOOR_TILE || floorLayout[i-1][j-1] == VERT_CORR_TILE))\n\t\t\t\t\t\tfloorLayout[i][j-1] = 9;\n\t\t\t\t\tif (floorLayout[i][j+1] == 12)\n\t\t\t\t\t\tfloorLayout[i][j+1] = rng.nextInt(7);\n\t\t\t\t}\n\t\t\t\telse if (floorLayout[i][j] == HORIZ_CORR_RIGHT_DOOR_TILE){\n\t\t\t\t\tif (floorLayout[i][j-1] == 11)\n\t\t\t\t\t\tfloorLayout[i][j-1] = 8;\n\t\t\t\t\tif (floorLayout[i][j+1] == 11)\n\t\t\t\t\t\tfloorLayout[i][j+1] = rng.nextInt(7);\n\t\t\t\t\tif (floorLayout[i][j-1] == 11)\n\t\t\t\t\t\tfloorLayout[i][j-1] = rng.nextInt(7);\n\t\t\t\t\tif (floorLayout[i][j-1] == 14)\n\t\t\t\t\t\tfloorLayout[i][j-1] = rng.nextInt(7);\n\t\t\t\t\tif (floorLayout[i][j-1] < 7 && floorLayout[i][j-2] == 11)\n\t\t\t\t\t\tfloorLayout[i][j-1] = 8;\n\t\t\t\t\tif (floorLayout[i][j+1] == EMPTY_TILE)\n\t\t\t\t\t\tfloorLayout[i][j+1] = rng.nextInt(7);\n\t\t\t\t\tif (floorLayout[i+1][j] == 11 && floorLayout[i][j+1] < 7)\n\t\t\t\t\t\tfloorLayout[i+1][j+1] = 11;\n\t\t\t\t\tif (floorLayout[i][j+1] < 7 && floorLayout[i][j+2] < 7)\n\t\t\t\t\t\tfloorLayout[i][j+2] = 8;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse if (floorLayout[i][j] == HORIZ_CORR_LEFT_DOOR_TILE){\n\t\t\t\t\tif (floorLayout[i][j-1] == 10)\n\t\t\t\t\t\tfloorLayout[i][j-1] = 7;\n\t\t\t\t\tif (floorLayout[i][j+1] == 10)\n\t\t\t\t\t\tfloorLayout[i][j+1] = rng.nextInt(7);\n\t\t\t\t\tif (floorLayout[i][j-1] == 13)\n\t\t\t\t\t\tfloorLayout[i][j-1] = rng.nextInt(7);\n\t\t\t\t\tif (floorLayout[i][j+1] == EMPTY_TILE)\n\t\t\t\t\t\tfloorLayout[i][j+1] = rng.nextInt(7);\n\t\t\t\t\tif (floorLayout[i][j+1] == 12)\n\t\t\t\t\t\tfloorLayout[i][j+1] = rng.nextInt(7);\n\t\t\t\t}\n\t\t\t\telse if (floorLayout[i][j] == 17){\n\t\t\t\t\tif (floorLayout[i][j+2] == FLOOR_TILE || floorLayout[i][j+2] == HORIZ_CORR_TILE || floorLayout[i][j+2] == HORIZ_CORR_LEFT_DOOR_TILE)\n\t\t\t\t\t\tfloorLayout[i][j+1] = 9;\n\t\t\t\t\tif (floorLayout[i][j+2] == 12)\n\t\t\t\t\t\tfloorLayout[i][j+1] = 12;\n\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\t//these next commented out lines are just to print the floor array for debugging purposes\n//\t\tfor (int i = 0; i < 24; i++){\n//\t\t\tSystem.out.print(i + \" \");\n//\t\t\tif (i < 10)\n//\t\t\t\tSystem.out.print(\" \");\n//\t\t}\n//\t\tSystem.out.println(\"\");\n//\t\tfor (int i = 0; i < 32; i++){\n//\t\t\tfor (int j = 0; j < 24; j++){\n//\t\t\t\tSystem.out.print(floorLayout[i][j]);\n//\t\t\t\tSystem.out.print(\" \");\n//\t\t\t\tif (floorLayout[i][j] < 10)\n//\t\t\t\t\tSystem.out.print(\" \");\n//\t\t\t}\n//\t\t\tSystem.out.print(\" <- \" + i);\n//\t\t\tSystem.out.println();}\n\t\t\n\t\t//this changes all the corridor tiles in the array to plain floor tiles to allow the character to walk on them\n\t\tfor (int i = 0; i < 32; i++){\n\t\t\tfor (int j = 0; j < 24; j++){\n\t\t\t\tif (floorLayout[i][j] >= VERT_CORR_TILE && floorLayout[i][j] < 27)\n\t\t\t\t\tfloorLayout[i][j] = FLOOR_TILE;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//this should hopefully alleviate a couple glitches caused with the corridor system\n\t\tfor (int i = 0; i < 32; i++){\n\t\t\tfor (int j = 0; j < 24; j++){\n\t\t\t\tif (j != 0 && i != 0 && i != 31 && floorLayout[i][j] == BOTTOM_CENTER_ROOM_TILE && floorLayout[i][j-1] == FLOOR_TILE){\n\t\t\t\t\tfloorLayout[i][j] = FLOOR_TILE;\n\t\t\t\t\tif (floorLayout[i-1][j-1] == 10 || floorLayout[i-1][j-1] < 7)\n\t\t\t\t\t\tfloorLayout[i-1][j] = 7;\n\t\t\t\t\telse if (floorLayout[i+1][j-1] == 10 || floorLayout[i+1][j-1] < 7)\n\t\t\t\t\t\tfloorLayout[i+1][j] = 8;\n\t\t\t\t}\n\t\t\t\tif (floorLayout[i][j] == BOTTOM_CENTER_ROOM_TILE){\n\t\t\t\t\tif (floorLayout[i][j-1] == 10)\n\t\t\t\t\t\tfloorLayout[i][j] = 7;\n\t\t\t\t\telse if (floorLayout[i][j-1] == 11)\n\t\t\t\t\t\tfloorLayout[i][j] = 8;\n\t\t\t\t}\n\t\t\t\tif (j != 23 && floorLayout[i][j] == TOP_CENTER_ROOM_TILE && floorLayout[i][j+1] == FLOOR_TILE){\n\t\t\t\t\tfloorLayout[i][j] = FLOOR_TILE;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t}", "title": "" } ]
e75eb4e8a320d202cee37928c52e415e
gl.glDisable(GL.GL_LIGHT0); // cjx for images Global coordinates
[ { "docid": "7829a6b478177fde6ab295524f4ad240", "score": "0.5900246", "text": "public void drawSolar(float E, float e,\n float M, float m) {\n gl.glLineWidth(2);\n drawColorCoord(WIDTH/6, WIDTH/6, WIDTH/6);\n\n myMaterialColor(blackish, whitish, white, black);\n\n gl.glPushMatrix();\n gl.glRotatef(e, 0, 1, 0);\n // rotating around the \"sun\"; proceed angle\n gl.glRotatef(tiltAngle, 0, 0, 1); // tilt angle\n gl.glTranslatef(0, 1.5f*E, 0);\n\n gl.glPushMatrix();\n gl.glTranslatef(0, E, 0);\n gl.glScalef(E, E, E);\n drawSphere();\n gl.glPopMatrix();\n\n gl.glPushMatrix();\n gl.glScalef(E/2, 1.5f*E, E/2);\n gl.glRotatef(90, 1, 0, 0); // orient the cone\n drawCone();\n gl.glPopMatrix();\n\n gl.glTranslatef(0, E/2, 0);\n gl.glRotatef(m, 0, 1, 0); // 1st moon\n gl.glPushMatrix();\n gl.glTranslatef(2*M, 0, 0);\n gl.glLineWidth(1);\n drawColorCoord(WIDTH/4, WIDTH/4, WIDTH/4);\n gl.glScalef(E/4, E/4, E/4);\n myMaterialColor(redish, redish, red, redish);\n gl.glLightfv(GL.GL_LIGHT1, GL.GL_POSITION, origin,0);\n drawSphere();\n gl.glPopMatrix();\n\n gl.glRotatef(120, 0, 1, 0); // 2nd moon\n gl.glPushMatrix();\n gl.glTranslatef(2*M, 0, 0);\n drawColorCoord(WIDTH/4, WIDTH/4, WIDTH/4);\n gl.glLightfv(GL.GL_LIGHT2, GL.GL_POSITION, origin,0);\n gl.glScalef(E/4, E/4, E/4);\n myMaterialColor(greenish, greenish, green, greenish);\n drawSphere();\n gl.glPopMatrix();\n\n gl.glRotatef(120, 0f, 1f, 0f); // 3rd moon\n gl.glTranslatef(2*M, 0, 0);\n gl.glLightfv(GL.GL_LIGHT3, GL.GL_POSITION, origin,0);\n drawColorCoord(WIDTH/4, WIDTH/4, WIDTH/4);\n gl.glScalef(E/4, E/4, E/4);\n myMaterialColor(blueish, blueish, blue, blueish);\n drawSphere();\n\n gl.glPopMatrix();\n myMaterialColor(blackish, whitish, white, black);\n }", "title": "" } ]
[ { "docid": "5d113e0d0c98f811f5ea4a6cd3d0303b", "score": "0.6684851", "text": "public void draw(GL2 gl, GLU glu, GLUT glut) {\n // render top part\n gl.glPushMatrix();\n ShaderPrograms.trackShader.useProgram(gl);\n Textures.track.enable(gl);\n Textures.track.bind(gl);\n for(int lane = 0; lane < 4; lane++)\n {\n //gl.glBegin(GL_LINE_STRIP);\t\n gl.glBegin(GL_TRIANGLE_STRIP);\t\n boolean tex = false;\n for(float i = 0; i <= 1.0f; i+= stepSize) {\n Vector vector = getLanePoint(lane, i);\n Vector tangent = getLaneTangent(lane, i);\n Vector normal = tangent.cross(Vector.Z).normalized();\n Vector vector1 = getLanePoint(lane, i).add(normal.scale(laneWidth/2));\n Vector vector2 = getLanePoint(lane, i).add(normal.scale(-laneWidth/2));\n gl.glTexCoord2d(0, tex?1:0);\n gl.glVertex3d( vector2.x, vector2.y, vector2.z ); \n gl.glTexCoord2d(1, tex?1:0);\n gl.glVertex3d( vector1.x, vector1.y, vector1.z ); \n tex = !tex;\n }\n gl.glEnd();\n }\n Textures.track.disable(gl);\n gl.glPopMatrix();\n //render inner side\n //gl.glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT);\n //gl.glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT);\n Textures.brick.enable(gl);\n Textures.brick.bind(gl);\n gl.glPushMatrix();\n //gl.glBegin(GL_LINE_STRIP);\t\n gl.glColor3d(1, 1, 0);\n gl.glBegin(GL_TRIANGLE_STRIP);\t\n\n for(float i = 0; i <= 1.0f; i+= stepSize) {\n Vector vector = getLanePoint(0, i);\n Vector tangent = getLaneTangent(0, i);\n Vector normal = tangent.cross(Vector.Z).normalized();\n Vector vector1 = getLanePoint(0, i).add(normal.scale(-laneWidth/2));\n gl.glTexCoord2f(i * 20 % 1, 0);\n gl.glVertex3d( vector1.x, vector1.y, vector1.z ); \n gl.glTexCoord2f(i * 20 % 1, 1);\n gl.glVertex3d( vector1.x, vector1.y, vector1.z-2 ); \n\n }\n gl.glEnd();\n gl.glPopMatrix();\n //render outside \n //render inner side\n gl.glPushMatrix();\n //gl.glBegin(GL_LINE_STRIP);\t\n gl.glColor3d(0, 1, 0);\n gl.glBegin(GL_TRIANGLE_STRIP);\t\n\n for(float i = 0; i <= 1.0f; i+= stepSize) {\n Vector vector = getLanePoint(3, i);\n Vector tangent = getLaneTangent(3, i);\n Vector normal = tangent.cross(Vector.Z).normalized();\n Vector vector1 = getLanePoint(3, i).add(normal.scale(laneWidth/2));\n gl.glTexCoord2f(i * 20 % 1, 0);\n gl.glVertex3d( vector1.x, vector1.y, vector1.z ); \n gl.glTexCoord2f(i * 20 % 1, 1);\n gl.glVertex3d( vector1.x, vector1.y,vector1.z -2); \n\n }\n gl.glEnd();\n \n gl.glPopMatrix();\n Textures.brick.disable(gl);\n }", "title": "" }, { "docid": "aecbc82b4cfe3db8437b19cab2a9c20a", "score": "0.6667372", "text": "@Override\r\n public void init(GLAutoDrawable drawable) {\r\n \t drawable.getGL().setSwapInterval(1);\r\n \t GL2 gl = drawable.getGL().getGL2(); // get the OpenGL graphics context\r\n \t// Others: GL2GL3, GL2bc, GL4bc, GLES1, GLES2, GL2ES1, GL2ES2\r\n\t glu = new GLU(); // get GL Utilities\r\n\t gl.glClearColor(1.0f, 1.0f, 1.0f, 0.0f); // set background (clear) color\r\n//\t gl.glClearDepth(1.0f); // set clear depth value to farthest\r\n//\t gl.glEnable(GL_DEPTH_TEST); // enables depth testing\r\n//\t gl.glDepthFunc(GL_LEQUAL); // the type of depth test to do\r\n\t gl.glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_NICEST); // best perspective correction\r\n\t gl.glShadeModel(GL_SMOOTH); // blends colors nicely, and smoothes out lighting\r\n\t gl.glOrtho (0, WINDOW_WIDTH, 0,WINDOW_HEIGHT, 0, 100);\r\n\t gl.glMatrixMode(GL_PROJECTION);\r\n\t gl.glBlendFunc(GL_SRC_ALPHA, GL_ONE); // type of blending to perform\r\n\t gl.glHint(GL_POINT_SMOOTH_HINT, GL_NICEST); // really nice point smoothing\r\n\t gl.glLoadIdentity();\r\n\t \r\n\t // Load the texture image\r\n\t try {\r\n\t // Create a OpenGL Texture object from (URL, mipmap, file suffix)\r\n\t // Use URL so that can read from JAR and disk file.\r\n\t texture = TextureIO.newTexture(\r\n\t this.getClass().getResource(textureFileName), false, textureFileType);\r\n\t } catch (GLException e) {\r\n\t e.printStackTrace();\r\n\t } catch (IOException e) {\r\n\t e.printStackTrace();\r\n\t }\r\n\r\n\t // Use linear filter for texture if image is larger than the original texture\r\n\t gl.glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);\r\n\t // Use linear filter for texture if image is smaller than the original texture\r\n\t gl.glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);\r\n\t \r\n\t // Texture image flips vertically. Shall use TextureCoords class to retrieve\r\n\t // the top, bottom, left and right coordinates, instead of using 0.0f and 1.0f.\r\n\t TextureCoords textureCoords = texture.getImageTexCoords();\r\n\t textureTop = textureCoords.top();\r\n\t textureBottom = textureCoords.bottom();\r\n\t textureLeft = textureCoords.left();\r\n\t textureRight = textureCoords.right();\r\n\t \r\n\t //initText\r\n\t // Allocate textRenderer with the chosen font\r\n\t textRenderer = new TextRenderer(new Font(\"SansSerif\", Font.PLAIN, 14));\r\n\r\n\t Rectangle2D bounds = textRenderer.getBounds(msg + \"0000.00\");\r\n\t int textWidth = (int)bounds.getWidth();\r\n\t int textHeight = (int)bounds.getHeight();\r\n\t // Centralize text on the canvas\r\n\t textPosX = 0;\r\n\t textPosY = drawable.getHeight()-textHeight;\r\n\t \r\n\t initTerrain();\r\n\t initTurret();\r\n\t initTarget();\r\n \t}", "title": "" }, { "docid": "63f2a49ab6a26ea132f7f15e9736efdc", "score": "0.6620855", "text": "static public void beginFixedPipelineMode(GL gl) {\r\n if ( ! isProgrammable ) return;\r\n ViewerHelper.pushProgram(gl);\r\n ViewerHelper.useNoProgramObject(gl);\r\n gl.glDisable( GL.GL_LIGHTING ); \r\n gl.glActiveTexture(GL.GL_TEXTURE0 + 3);\r\n gl.glDisable(GL.GL_TEXTURE_2D);\r\n gl.glActiveTexture(GL.GL_TEXTURE0 + 4);\r\n gl.glDisable(GL.GL_TEXTURE_2D);\r\n }", "title": "" }, { "docid": "352c56c98790711118a8cbe136fb7c04", "score": "0.66055524", "text": "private static void initGl() {\r\n glMatrixMode(GL_PROJECTION);\r\n glLoadIdentity(); //resets the Matrix\r\n glOrtho(0,WIDTH,0,HEIGHT,-1,1); //creates a 3D space\r\n glMatrixMode(GL_MODELVIEW);\r\n glEnable(GL_TEXTURE_2D); //enables Textures\r\n glEnable(GL_BLEND);\r\n\r\n //Enables transparency\r\n glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);\r\n\r\n //sets the clearing color to light gray\r\n glClearColor(246f/255, 246f/255, 246f/255, 1);\r\n\r\n glDisable(GL_DEPTH_TEST); //kills off the third dimension\r\n }", "title": "" }, { "docid": "7204b796b6ebe3f1d32410240194f35b", "score": "0.6592377", "text": "@Override\n public void switchSO(GL2GL3 gl){\n \n }", "title": "" }, { "docid": "f59ab795b1c8cccd72c1e1aa605906b8", "score": "0.6583027", "text": "public void Initialize() {\n glEnable(GL_TEXTURE_2D);\n // Enable depth testing for correct drawing order\n glEnable(GL_DEPTH_TEST);\n \n // Create a light\n float lightDirection[] = {-2f, 12f, 2f, 0f}; //direction/position\n float diffuse[] = {16f, 16f, 16f, 16f};\n float ambient[] = {56.6f, 56.6f, 56.9f, 57f};\n float specular[] = {6f, 6f, 6f, 6f};\n l = new Light(lightDirection, diffuse, ambient, specular);\n l.setLight();\n \n //Start Gamescreen music\n killAudio();\n try {\n audio = AudioLoader.getAudio(\"WAV\", ResourceLoader.getResourceAsStream(\"music/36-VersusMode.wav\"));\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (audioOn)\n audio.playAsMusic(1.0f, 1.0f, true);\n \n //Create Background\n background = new Background();\n //load the model\n player = new Player(new Model(\"data/Arwing/arwing.obj\", 0.5f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, -5.0f));\n enemies = new HashMap<Byte, Enemy>();\n enemies.put((byte) -1, new Enemy(new Model(\"data/DarkFighter/dark_fighter.obj\", 0.5f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, -7.5f), new AI()));\n terrain = new Terrain(\"data/terrain/terrain.obj\", 20, 0.0f, 0.0f, 0.0f, 0.0f, -10.0f, 0.0f);\n laser1 = new Laser(cam);\n \n lasers = new ArrayList<LaserBeam>();\n explosions = new ArrayList<Explosion>();\n \n enemies.get((byte) -1).Initialize();\n }", "title": "" }, { "docid": "d0df28ee37576c1b04873a8b3e801482", "score": "0.64701766", "text": "public void preset() {\n\t\tmGL.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT);\n\n\t\t// Reset the Modelview Matrix\n\t\tmGL.glLoadIdentity();\n\n\t // For very fast zooming in and out, do not apply any expensive filter.\n\t mGL.glTexParameteri(GL11.GL_TEXTURE_2D, GL11.GL_TEXTURE_MAG_FILTER, GL11.GL_NEAREST);\n\t mGL.glTexParameteri(GL11.GL_TEXTURE_2D, GL11.GL_TEXTURE_MIN_FILTER, GL11.GL_NEAREST);\n\n\t // Ensure we would have seamless transition between adjecent tiles.\n\t mGL.glTexParameteri(GL11.GL_TEXTURE_2D, GL11.GL_TEXTURE_WRAP_S, GL11.GL_CLAMP_TO_EDGE);\n\t mGL.glTexParameteri(GL11.GL_TEXTURE_2D, GL11.GL_TEXTURE_WRAP_T, GL11.GL_CLAMP_TO_EDGE);\n\t}", "title": "" }, { "docid": "82f53d2fead88245fad9717faca73ca1", "score": "0.6465523", "text": "private void initGL() {\n GL11.glClearColor(0.0f, 0.0f, 0.0f, 0.0f); // Clear The Background Color To Black\n GL11.glClearDepth(1.0); // Enables Clearing Of The Depth Buffer\n GL11.glDepthFunc(GL11.GL_LEQUAL); // The Type Of Depth Test To Do\n GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE); // Select The Type Of Blending\n GL11.glShadeModel(GL11.GL_SMOOTH); // Enables Smooth Color Shading\n GL11.glEnable(GL11.GL_TEXTURE_2D); // Enable 2D Texture Mapping\n GL11.glMatrixMode(GL11.GL_PROJECTION);\n // Select The Projection Matrix\n GL11.glLoadIdentity(); // Reset The Projection Matrix\n\n // Calculate The Aspect Ratio Of The Window\n GLU.gluPerspective(45.0f,\n (float) displayMode.getWidth() / (float) displayMode.getHeight(),\n 0.1f,100.0f);\n GL11.glMatrixMode(GL11.GL_MODELVIEW);\n }", "title": "" }, { "docid": "022d8fb89275454123f72d9d605164b6", "score": "0.6463116", "text": "public void Render() {\n glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);\n \n glMatrixMode(GL_PROJECTION);\n \n //Player position accounting for offset and camera position\n Vector3f playerPos = new Vector3f();\n Vector3f.sub(player.offset, cam.getPosition(), playerPos);\n player.fatalCrashPos = new Vector3f(playerPos);\n \n // true if enemy is in crosshairs\n boolean enemyInTarget = false;\n // Push the 2D projection to stack\n glPushMatrix();\n {\n //region 3D stuff\n glLoadIdentity();\n // Specify the camera perspective\n GLU.gluPerspective(45.0f, (float) Display.getWidth() / (float) Display.getHeight(), .1f, 5000f);\n glMatrixMode(GL_MODELVIEW);\n \n // Rotate camera\n cam.setCameraView();\n \n //Render Background\n background.drawSkybox(50.0f);\n \n //Render the model the camera is focusing\n if (player.state != Entity.State.Dead) {\n glPushMatrix();\n {\n glLoadIdentity();\n player.Render();\n Vector3f vec;\n if (tempEnemyCollide) {\n vec = new Vector3f(0.0f, 1.0f, 0.0f);\n } else if (tempTerrainCollide) {\n vec = new Vector3f(0.0f, 0.0f, 1.0f);\n } else {\n vec = new Vector3f(1.0f, 1.0f, 1.0f);\n }\n \n float scale = player.model.getScaleRatio();\n glScalef(1.0f / scale, 1.0f / scale, 1.0f / scale);\n GLHelper.renderSphere(player.center, player.radius, vec);\n }\n glPopMatrix();\n }\n \n //Translate camera\n cam.setCameraPosition();\n \n glPushMatrix();\n {\n terrain.transform();\n terrain.render();\n }\n glPopMatrix();\n\n //Render active lasers and perform cleanup\n glPushMatrix();\n {\n for (Iterator<LaserBeam> i = lasers.iterator(); i.hasNext(); ) {\n LaserBeam laser = i.next();\n GLHelper.renderSphere(new Vector3f(laser.getPosition().x, laser.getPosition().y, laser.getPosition().z),\n laser.radius, new Vector3f(1, 0, 0));\n if (laser.isExpired) {\n i.remove();\n } else {\n laser.Render();\n }\n }\n }\n glPopMatrix();\n \n //Render active Explosions\n glPushMatrix();\n {\n for (Iterator<Explosion> i = explosions.iterator(); i.hasNext(); ) {\n Explosion explosion = i.next();\n if (explosion.getAlpha() <= 0) {\n i.remove();\n } else {\n explosion.render();\n }\n }\n }\n glPopMatrix();\n \n Vector2f chPos = player.hud.crosshairPos;\n \n tempEnemyCollide = false;\n \n //Draw other 3d models not focused by the camera and check for intersection with crosshairs\n for (Enemy enemy : enemies.values()) {\n glPushMatrix();\n {\n enemy.Render();\n if (!enemyInTarget)\n enemyInTarget = CheckPickingRay(chPos.x + Display.getWidth() / 2, chPos.y + Display.getHeight() / 2, enemy);\n if(enemy.isAI())\n enemy.setTarget(playerPos);\n if (CheckCollisionWithPlayer(enemy)) {\n //Create explosion on collision\n //Explosion ex = new Explosion(1, playerPos);\n //explosions.add(ex);\n tempEnemyCollide = true;\n crash();\n if (player.health > 0) {\n player.health -= .01f;\n } else if (player.health < 0) {\n player.health = 0;\n }\n }\n \n //Check collisions with active lasers\n for (LaserBeam laser : lasers) {\n if (enemies.get(laser.ownerID) != enemy && CheckCollision2(laser.getPosition(), enemy.getPosition(),\n laser.radius, enemy.radius)) {\n \n //Create explosion on collision and delete laser\n Explosion ex = new Explosion(.5f, .01f, enemy.getPosition());\n explosions.add(ex);\n laser.isExpired = true;\n }\n }\n \n float scale = enemy.model.getScaleRatio();\n glScalef(1.0f / scale, 1.0f / scale, 1.0f / scale);\n GLHelper.renderSphere(enemy.center, enemy.radius, new Vector3f(1.0f, 0.0f, 0.0f));\n }\n glPopMatrix();\n }\n \n // Player laser collision\n for (LaserBeam laser : lasers) {\n if (laser.ownerID != -50 && CheckCollision2(laser.getPosition(), playerPos, laser.radius, player.radius)) {\n \n //Create explosion on collision and delete laser\n Explosion ex = new Explosion(.5f, .01f, playerPos);\n explosions.add(ex);\n laser.isExpired = true;\n }\n }\n \n //Terrain Collision\n if (terrain.checkHeightMap(playerPos, player.radius)) {\n tempTerrainCollide = true;\n crash();\n } else {\n tempTerrainCollide = false;\n }\n \n glMatrixMode(GL_PROJECTION);\n //endregion\n }\n glPopMatrix();\n \n player.hud.render(enemyInTarget, player.health);\n }", "title": "" }, { "docid": "939b5f4e681f38c3516c0e71d40bf275", "score": "0.6450723", "text": "private static void setupGlTranslucent() {\n glDisable(GL_TEXTURE_2D);\n glEnable(GL_BLEND);\n glShadeModel(GL_SMOOTH);\n glDisable(GL_ALPHA_TEST);\n glDisable(GL_CULL_FACE);\n\n RenderHelper.disableStandardItemLighting();\n\n OpenGlHelper.glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, GL_ONE, GL_ZERO);\n }", "title": "" }, { "docid": "74f00c819693b17b47a17250354561dd", "score": "0.64398706", "text": "@Override\n\t\tpublic void display(GLAutoDrawable gLDrawable) {\n\t\t\tfinal GL2 gl = gLDrawable.getGL().getGL2();\n\n\t\t\tgl.glClearColor(backrgb[0], 0, 1, 1);\n\t\t\tgl.glClear(GL.GL_COLOR_BUFFER_BIT | GL.GL_DEPTH_BUFFER_BIT);\n\n\t\t\tgl.glMatrixMode(GL2.GL_MODELVIEW);\n\t\t\tgl.glLoadIdentity();\n\n\t\t\tglu.gluLookAt(0, 0, 1, 0, 0, 0, 0, 1, 1);\n\n\t gl.glRotatef(rotx, 0, 1, 0);\n\t gl.glRotatef(roty, 1, 0, 0);\n\t gl.glRotatef(rotz, 0, 0, 1);\n\t \n\t\t\tgl.glTranslated(movx, 1, movz);\n\t\t\t\n\t\t\tgl.glPushMatrix();\n\t\t\t\n\t\t\tgl.glPushAttrib(GL2.GL_ENABLE_BIT);\n\t\t gl.glDisable(GL.GL_DEPTH_TEST);\n\t\t gl.glDisable(GL2.GL_LIGHTING);\n\t\t gl.glDisable(GL.GL_BLEND);\n\t gl.glEnable(GL.GL_TEXTURE_2D);\n\t // Front\n\t skybox0.bind(gl);\n\t gl.glBegin(GL2.GL_QUADS); \n\t gl.glTexCoord2f(0,0); \n\t gl.glVertex3f(50f, -50f, -50f); \n\n\t gl.glTexCoord2f(1,0); \n\t gl.glVertex3f(-50f, -50f, -50f); // \n\t \n\t gl.glTexCoord2f(1,1); \n\t gl.glVertex3f(-50f, 50f, -50f); \n\t \n\t gl.glTexCoord2f(0,1); \n\t gl.glVertex3f(50f, 50f, -50f); \n\t gl.glEnd(); \n\t \n\t // Left\n\t skybox1.bind(gl);\n\t //gl.glDisable(GL.GL_TEXTURE_2D);\n\t gl.glBegin(GL2.GL_QUADS); \n\t gl.glTexCoord2f(0,0); \n\t gl.glVertex3f(50f, -50f, 50f); \n\n\t gl.glTexCoord2f(1,0); \n\t gl.glVertex3f(50f, -50f, -50f); // \n\t \n\t gl.glTexCoord2f(1,1); \n\t gl.glVertex3f(50f, 50f, -50f); \n\t \n\t gl.glTexCoord2f(0,1); \n\t gl.glVertex3f(50f, 50f, 50f); \n\t gl.glEnd(); \n\t \n\t // back\n\t skybox2.bind(gl);\n\t //gl.glDisable(GL.GL_TEXTURE_2D);\n\t gl.glBegin(GL2.GL_QUADS); \n\t gl.glTexCoord2f(0,0); \n\t gl.glVertex3f(-50f, -50f, 50f); \n\n\t gl.glTexCoord2f(1,0); \n\t gl.glVertex3f(50f, -50f, 50f); // \n\t \n\t gl.glTexCoord2f(1,1); \n\t gl.glVertex3f(50f, 50f, 50f); \n\t \n\t gl.glTexCoord2f(0,1); \n\t gl.glVertex3f(-50f, 50f, 50f); \n\t gl.glEnd(); \n\t \n\t // right\n\t skybox3.bind(gl);\n\t //gl.glDisable(GL.GL_TEXTURE_2D);\n\t gl.glBegin(GL2.GL_QUADS); \n\t gl.glTexCoord2f(0,0); \n\t gl.glVertex3f(-50f, -50f, -50f); \n\n\t gl.glTexCoord2f(1,0); \n\t gl.glVertex3f(-50f, -50f, 50f); // \n\t \n\t gl.glTexCoord2f(1,1); \n\t gl.glVertex3f(-50f, 50f, 50f); \n\t \n\t gl.glTexCoord2f(0,1); \n\t gl.glVertex3f(-50f, 50f, -50f); \n\t gl.glEnd(); \n\t \n\t // top\n\t skybox4.bind(gl);\n\t //gl.glDisable(GL.GL_TEXTURE_2D);\n\t gl.glBegin(GL2.GL_QUADS); \n\t gl.glTexCoord2f(0,0); \n\t gl.glVertex3f(50f, 50f, -50f); \n\n\t gl.glTexCoord2f(1,0); \n\t gl.glVertex3f(-50f, 50f, -50f); // \n\t \n\t gl.glTexCoord2f(1,1); \n\t gl.glVertex3f(-50f, 50f, 50f); \n\t \n\t gl.glTexCoord2f(0,1); \n\t gl.glVertex3f(50f, 50f, 50f); \n\t gl.glEnd(); \n\t \n\t // bottom\n\t skybox5.bind(gl);\n\t //gl.glDisable(GL.GL_TEXTURE_2D);\n\t gl.glBegin(GL2.GL_QUADS); \n\t gl.glTexCoord2f(0,0); \n\t gl.glVertex3f(50f, -50f, 50f); \n\n\t gl.glTexCoord2f(1,0); \n\t gl.glVertex3f(-50f, -50f, 50f); // \n\t \n\t gl.glTexCoord2f(1,1); \n\t gl.glVertex3f(-50f, -50f, -50f); \n\t \n\t gl.glTexCoord2f(0,1); \n\t gl.glVertex3f(50f, -50f, -50f); \n\t gl.glEnd(); \n\t //gl.glDisable(GL.GL_TEXTURE_2D);\n\t \n\t \n\t // Front\n\t woodbox.bind(gl);\n\t gl.glBegin(GL2.GL_QUADS); \n\t gl.glTexCoord2f(0,0); \n\t gl.glVertex3f(-5f, -10f, -10f); \n\n\t gl.glTexCoord2f(1,0); \n\t gl.glVertex3f(-10f, -10f, -10f); // \n\t \n\t gl.glTexCoord2f(1,1); \n\t gl.glVertex3f(-10f, -5f, -10f); \n\t \n\t gl.glTexCoord2f(0,1); \n\t gl.glVertex3f(-5f, -5f, -10f); \n\t gl.glEnd(); \n\t \n\t // left\n\t gl.glBegin(GL2.GL_QUADS); \n\t gl.glTexCoord2f(0,0); \n\t gl.glVertex3f(-5f, -10f, -5f); \n\n\t gl.glTexCoord2f(1,0); \n\t gl.glVertex3f(-5f, -10f, -10f); // \n\t \n\t gl.glTexCoord2f(1,1); \n\t gl.glVertex3f(-5f, -5f, -10f); \n\t \n\t gl.glTexCoord2f(0,1); \n\t gl.glVertex3f(-5f, -5f, -5f); \n\t gl.glEnd(); \n\t \n\t // back\n\t gl.glBegin(GL2.GL_QUADS); \n\t gl.glTexCoord2f(0,0); \n\t gl.glVertex3f(-10f, -10f, -5f); \n\n\t gl.glTexCoord2f(1,0); \n\t gl.glVertex3f(-5f, -10f, -5f); // \n\t \n\t gl.glTexCoord2f(1,1); \n\t gl.glVertex3f(-5f, -5f, -5f); \n\t \n\t gl.glTexCoord2f(0,1); \n\t gl.glVertex3f(-10f, -5f, -5f); \n\t gl.glEnd(); \n\t /*\n\t // right\n\t gl.glBegin(GL2.GL_QUADS); \n\t gl.glTexCoord2f(0,0); \n\t gl.glVertex3f(-10f, -10f, -10f); \n\n\t gl.glTexCoord2f(1,0); \n\t gl.glVertex3f(-10f, -10f, -5f); // \n\t \n\t gl.glTexCoord2f(1,1); \n\t gl.glVertex3f(-10f, -5f, -5f); \n\t \n\t gl.glTexCoord2f(0,1); \n\t gl.glVertex3f(-10f, -5f, -10f); \n\t gl.glEnd(); \n\t */\n\t // top\n\t gl.glBegin(GL2.GL_QUADS); \n\t gl.glTexCoord2f(0,0); \n\t gl.glVertex3f(-5f, -5f, -10f); \n\n\t gl.glTexCoord2f(1,0); \n\t gl.glVertex3f(-10f, -5f, -10f); // \n\t \n\t gl.glTexCoord2f(1,1); \n\t gl.glVertex3f(-10f, -5f, -5f); \n\t \n\t gl.glTexCoord2f(0,1); \n\t gl.glVertex3f(-5f, -5f, -5f); \n\t gl.glEnd(); \n\t /*\n\t // bottom\n\t gl.glBegin(GL2.GL_QUADS); \n\t gl.glTexCoord2f(0,0); \n\t gl.glVertex3f(-5f, -10f, -5f); \n\n\t gl.glTexCoord2f(1,0); \n\t gl.glVertex3f(-10f, -10f, -5f); // \n\t \n\t gl.glTexCoord2f(1,1); \n\t gl.glVertex3f(-10f, -10f, -10f); \n\t \n\t gl.glTexCoord2f(0,1); \n\t gl.glVertex3f(-5f, -10f, -10f); \n\t gl.glEnd(); \n\t */\n\t \n\t gl.glPopMatrix();\n\t gl.glDisable(GL.GL_TEXTURE_2D);\n\t \n\n\t \n\t\t}", "title": "" }, { "docid": "a1872e84b4ea2197472642aeefcf74d5", "score": "0.64255136", "text": "public static void enable()\r\n {\r\n glEnable(GL_LIGHTING);\r\n }", "title": "" }, { "docid": "a4e92f4ed41dbde0783bf9e6309720f5", "score": "0.6414232", "text": "private void render() {\n GL11.glClear(GL11.GL_COLOR_BUFFER_BIT | GL11.GL_DEPTH_BUFFER_BIT); // Clear The Screen And The Depth Buffer\n GL11.glLoadIdentity(); // Reset The Modelview Matrix\n GL11.glTranslatef(0.0f, 0.0f, -5.0f); // Move Into The Screen 5 Units\n GL11.glRotatef(45.0f, 0.0f, 0.0f, 1.0f); // Rotate On The Z Axis 45 Degrees (Clockwise)\n GL11.glRotatef(cnt1 * 30.0f, 1.0f, 1.0f, 0.0f); // Rotate On The X & Y Axis By cnt1 (Left To Right)\n GL11.glDisable(GL11.GL_BLEND); // Disable Blending Before We Draw In 3D\n GL11.glColor3f(1.0f, 1.0f, 1.0f); // Bright White\n\n GL11.glBindTexture(GL11.GL_TEXTURE_2D, texture[1]); // Select Our Second Texture\n GL11.glBegin(GL11.GL_QUADS); { // Draw Our First Texture Mapped Quad\n GL11.glTexCoord2f(0.0f, 1.0f); // First Texture Coord\n GL11.glVertex3f(-1.0f, 1.0f, 0.0f); // First Vertex\n GL11.glTexCoord2f(1.0f, 1.0f); // Second Texture Coord\n GL11.glVertex3f( 1.0f, 1.0f, 0.0f); // Second Vertex\n GL11.glTexCoord2f(1.0f, 0.0f); // Third Texture Coord\n GL11.glVertex3f( 1.0f, -1.0f, 0.0f); // Third Vertex\n GL11.glTexCoord2f(0.0f, 0.0f); // Fourth Texture Coord\n GL11.glVertex3f(-1.0f, -1.0f, 0.0f); // Fourth Vertex\n }\n GL11.glEnd(); // Done Drawing The First Quad\n GL11.glRotatef(90.0f, 1.0f, 1.0f, 0.0f); // Rotate On The X & Y Axis By 90 Degrees (Left To Right)\n GL11.glBegin(GL11.GL_QUADS); { // Draw Our Second Texture Mapped Quad\n GL11.glTexCoord2f(0.0f, 0.0f); // First Texture Coord\n GL11.glVertex2f(-1.0f, 1.0f); // First Vertex\n GL11.glTexCoord2f(1.0f, 0.0f); // Second Texture Coord\n GL11.glVertex2f( 1.0f, 1.0f); // Second Vertex\n GL11.glTexCoord2f(1.0f, 1.0f); // Third Texture Coord\n GL11.glVertex2f( 1.0f, -1.0f); // Third Vertex\n GL11.glTexCoord2f(0.0f, 1.0f); // Fourth Texture Coord\n GL11.glVertex2f(-1.0f, -1.0f); // Fourth Vertex\n }\n GL11.glEnd(); // Done Drawing Our Second Quad\n GL11.glEnable(GL11.GL_BLEND); // Enable Blending\n\n GL11.glLoadIdentity(); // Reset The View\n // Pulsing Colors Based On Text Position\n GL11.glColor3f(\n 1.0f * ((float)Math.cos(cnt1)),\n 1.0f * ((float)Math.sin(cnt2)),\n 1.0f - 0.5f * ((float)Math.cos(cnt1 + cnt2)));\n glPrint( // Print GL Text To The Screen\n ((int)(280 + 250 * Math.cos(cnt1))),\n ((int)(235 + 200 * Math.sin(cnt2))),\n \"NeHe\", 0);\n\n GL11.glColor3f(\n 1.0f * ((float)Math.sin(cnt2)),\n 1.0f - 0.5f * ((float)Math.cos(cnt1 + cnt2)),\n 1.0f * ((float)Math.cos(cnt1)));\n glPrint( // Print GL Text To The Screen\n ((int)(280 + 230 * Math.cos(cnt2))),\n ((int)(235 + 200 * Math.sin(cnt1))),\n \"OpenGL\", 1);\n\n\n GL11.glColor3f(0.0f, 0.0f, 1.0f); // Set Color To Blue\n glPrint(\n ((int)(240 + 200 * Math.cos((cnt2 + cnt1) / 5))),\n 2,\n \"Giuseppe D'Agata\", 0);\n\n GL11.glColor3f(1.0f, 1.0f, 1.0f); // Set Color To White\n glPrint(\n ((int)(242 + 200 * Math.cos((cnt2 + cnt1) / 5))),\n 2,\n \"Giuseppe D'Agata\",\n 0);\n\n cnt1 += 0.01f; // Increase The First Counter\n cnt2 += 0.0081f; // Increase The Second Counter\n }", "title": "" }, { "docid": "88c01e6ff77a8f2aa5f3d0e0ee9fd223", "score": "0.63688594", "text": "public void lights(GL2 gl){\n\t gl.glLightModelfv(GL2.GL_LIGHT_MODEL_AMBIENT, globalAmbient, 0); \r\n\t //set light 0 properties\r\n\t gl.glLightfv(GL2.GL_LIGHT0, GL2.GL_AMBIENT, ambientLight, 0);\r\n\t\tgl.glLightfv(GL2.GL_LIGHT0, GL2.GL_DIFFUSE, diffuseLight, 0);\r\n\t\t//normalise the normal surface vectors\r\n\t\tgl.glEnable(GL2.GL_NORMALIZE);\r\n\t\t//position light 0 at the origin\r\n\t\tgl.glLightfv(GL2.GL_LIGHT0, GL2.GL_POSITION, lightPosition, 0);\r\n\t\t//enable light 0\r\n\t\tgl.glEnable(GL2.GL_LIGHT0);\r\n\t}", "title": "" }, { "docid": "5c6d0b75a31373ddbafc950e722be823", "score": "0.6300754", "text": "private void display()\n\t{\n\t\tGdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT | GL20.GL_DEPTH_BUFFER_BIT);\n\t\tGdx.gl.glDisable(GL20.GL_BLEND);\n\t\tGdx.gl.glViewport(0, 0, Gdx.graphics.getWidth(), Gdx.graphics.getHeight());\n\t\tcam.perspectiveProjection(fov , 2.0f, 0.1f, 250.0f);\n\t\tshader.setViewMatrix(cam.getViewMatrix());\n\t\tshader.setProjectionMatrix(cam.getProjectionMatrix());\n\t\tshader.setEyePosition(cam.eye.x, cam.eye.y, cam.eye.z, 1.0f);\n\t\t\n\t\t\n\t\t//set world light\t\n\t\tshader.setLightColor(1.0f, 1.0f, 1.0f, 1.0f);\n\t\tshader.setLightPosition(0, 8f, 16f, 0);\n\t\tshader.setSpotDirection(0.0f, 0.0f, -1.0f, 0.0f);\n\t\tshader.setSpotExponent(10.0f);\n\t\tshader.setConstantAttenuation(2.0f);\n\t\tshader.setLinearAttenuation(0.8f);\n\t\tshader.setQuadraticAttenuation(0.2f);\n\t\t\n\t\tshader.setGlobalAmbience(0.3f, 0.3f, 0.3f, 1.0f);\n\t\t\n\t\tModelMatrix.main.pushMatrix();\n\t\tModelMatrix.main.loadIdentityMatrix();\n\t\t\n\t\t/* Skybox */\n\t\tshader.setMaterialDiffuse(1.0f, 1.0f, 1.0f, 1.0f);\n\t\tshader.setMaterialSpecular(1.0f, 1.0f, 1.0f, 1.0f);\n\t\tshader.setMaterialShine(10.0f);\n\t\tshader.setMaterialEmission(0.1f, 0.1f, 0.1f, 1.0f);\n\t\tModelMatrix.main.addScale(150.0f, 150.0f, 150.0f);\n\t\tshader.setModelMatrix(ModelMatrix.main.getMatrix());\n\t\tSphereGraphic.drawSolidSphere(shader, skyBoxTex, skyBoxTex);\n\t\tModelMatrix.main.popMatrix();\n\t\t\n\t\t/* Game */\n\t\tdrawGrid();\n\t\tfillupBoard();\n\t\tshapeOnScreen();\n\t\t\n\t\tfor(int i = 0; i < 4; i++){\n\t\t\tif(position[i][0] > 4 || position[i][0] < -5) {\n\t\t\t\tModelMatrix.main.addRotationZ(lastRotation);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < 4; i++) {\n\t\t\tif(position[i][1] <= -20) {\n\t\t\t\tspaceOn = false;\n\t\t\t\tif(time > dropTime) {\n\t\t\t\t\tstickShapeOnBoard();\n\t\t\t\t\tModelMatrix.main.loadIdentityMatrix();\n\t\t\t\t\tgetNewShape();\n\t\t\t\t\ttime = 0;\n\t\t\t\t\tspaceOn = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < 4; i++){\n\t\t\tif(time > dropTime && position[i][1] > -20) {\n\t\t\t\tif(!checkCollision()) {\n\t\t\t\t\tdrop();\n\t\t\t\t} else {\n\t\t\t\t\tstickShapeOnBoard();\n\t\t\t\t\tModelMatrix.main.loadIdentityMatrix();\n\t\t\t\t\tgetNewShape();\n\t\t\t\t}\n\t\t\t\ttime = 0;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\t\n\t}", "title": "" }, { "docid": "ef17449afa093b59e75789c86f314a62", "score": "0.6279639", "text": "void draw(int showLabels, int showSatellitesOrbit, int showSatellites, GLUquadric quadric) {\n\n ((GLMatrixFunc) gl).glPushMatrix();\n\n ((GLMatrixFunc) gl).glRotatef(orbitAnimation, 0.0f, 1.0f, 0.0f);\n ((GLMatrixFunc) gl).glTranslatef(distance, 0.0f, 0.0f);\n if (showLabels == 1) {\n if (name == \"Sun\")\n gl2.glRasterPos3f(-1.2f, 7.0f, 0.0f);\n else\n gl2.glRasterPos3f(0.0f, 3f, 0.0f);\n gl2.glColor3ub((byte) 255, (byte) 255, (byte) 255);\n glut.glutBitmapString(GLUT.BITMAP_HELVETICA_12, name);\n }\n ((GLMatrixFunc) gl).glPushMatrix();\n ((GLMatrixFunc) gl).glRotatef(axisTilt, 1.0f, 0.0f, 0.0f);\n ((GLMatrixFunc) gl).glRotatef(axisAnimation, 0.0f, 1.0f, 0.0f);\n ((GLMatrixFunc) gl).glRotatef(90.0f, 1.0f, 0.0f, 0.0f);\n gl2.glEnable(GL.GL_TEXTURE_2D);\n//\t gl.glBindTexture(GL.GL_TEXTURE_2D, textureId);\n String imageName = name.toLowerCase();\n GLUgl2 glugl = new GLUgl2();\n\n TextureHandler handler = new TextureHandler(gl2, glugl, MainFrame.devPath + imageName + \".bmp\", false);\n\n\n handler.bind();\n handler.enable();\n\n glu.gluQuadricTexture(quadric, true);\n glu.gluSphere(quadric, radius, 20, 20);\n\n handler.disable();\n ((GLMatrixFunc) gl).glPopMatrix();\n if (name.contentEquals(\"Saturn\")) {\n // Draw Saturn's rings\n// TextureHandler rings = new TextureHandler(gl2, glugl, MainFrame.devPath+\"mercury.bmp\", false);\n rings.bind();\n rings.enable();\n ((GLMatrixFunc) gl).glPushMatrix();\n gl2.glColor3ub((byte) 158, (byte) 145, (byte) 137);\n ((GLMatrixFunc) gl).glRotatef(-63.0f, 1.0f, 0.0f, 0.0f);\n glut.glutWireTorus(0.15, 4.0, 3, 60);\n \n glut.glutSolidSphere(0.15, 60, 3);\n rings.bind();\n rings.enable();\n glut.glutWireTorus(0.3, 3.25, 3, 60);\n \n ((GLMatrixFunc) gl).glPopMatrix();\n rings.disable();\n }\n if (showSatellitesOrbit == 1) {\n for (Planet s : satellites) {\n s.drawSmallOrbit();\n }\n }\n if (showSatellites == 1) {\n for (Planet s : satellites) {\n \t\n\n moon.bind();\n moon.enable();\n s.drawMoon(quadric);\n moon.disable();\n\n }\n }\n ((GLMatrixFunc) gl).glPopMatrix();\n }", "title": "" }, { "docid": "68c7ffbcef081118642f25f16aa50707", "score": "0.62575346", "text": "public void draw() {\n\n //Calculate mvp for this object\n float[] modelViewProjMatrix = new float[16];\n Matrix.multiplyMM(modelViewProjMatrix, 0, VrActivity.mProjectionViewMatrix, 0, entity.getTransformation().modelMatrix, 0);\n\n GLES30.glUseProgram(mProgram);\n\n GLES30.glUniform3fv(modelLightPosParam, 1, VrActivity.mLightEyeMatrix, 0);\n\n // Set the Model in the shader, used to calculate lighting\n GLES30.glUniformMatrix4fv(modelModelParam, 1, false, entity.getTransformation().modelMatrix, 0);\n\n float[] modelView = new float[16];\n Matrix.multiplyMM(modelView, 0, VrActivity.mViewMatrix, 0, entity.getTransformation().modelMatrix, 0);\n\n // Set the ModelView in the shader, used to calculate lighting\n GLES30.glUniformMatrix4fv(modelModelViewParam, 1, false, modelView, 0);\n\n // Set the position of the model\n GLES30.glVertexAttribPointer(\n modelPositionParam, COORDS_PER_VERTEX, GLES30.GL_FLOAT, false, 0, vertexBuffer);\n\n // Set the ModelViewProjection matrix in the shader.\n GLES30.glUniformMatrix4fv(modelModelViewProjectionParam, 1, false, modelViewProjMatrix, 0);\n\n // Set the normal positions of the model, again for shading\n GLES30.glVertexAttribPointer(modelNormalParam, 3, GLES30.GL_FLOAT, false, 0, normalBuffer);\n GLES30.glVertexAttribPointer(modelColorParam, 4, GLES30.GL_FLOAT, false, 0, colorBuffer);\n\n // Pass in the texture coordinate information\n if(textureBuffer != null) {\n GLES30.glVertexAttribPointer(mTextureCoordinateHandle, 2, GLES30.GL_FLOAT, false, 0, textureBuffer);\n GLES30.glEnableVertexAttribArray(mTextureCoordinateHandle);\n GLES30.glActiveTexture ( GLES30.GL_TEXTURE0 );\n GLES30.glBindTexture ( GLES30.GL_TEXTURE_2D, textureID );\n GLES30.glTexParameteri ( GLES30.GL_TEXTURE_2D, GLES30.GL_TEXTURE_WRAP_S, GLES30.GL_REPEAT );\n GLES30.glTexParameteri ( GLES30.GL_TEXTURE_2D, GLES30.GL_TEXTURE_WRAP_T, GLES30.GL_REPEAT );\n\n }\n\n // Enable vertex arrays\n GLES30.glEnableVertexAttribArray(modelPositionParam);\n GLES30.glEnableVertexAttribArray(modelNormalParam);\n GLES30.glEnableVertexAttribArray(modelColorParam);\n\n GLES30.glDrawArrays(GLES30.GL_TRIANGLES, 0, vertexCount);\n\n // Disable vertex arrays\n GLES30.glDisableVertexAttribArray(modelPositionParam);\n GLES30.glDisableVertexAttribArray(modelNormalParam);\n GLES30.glDisableVertexAttribArray(modelColorParam);\n\n GLUtils.checkGlError(\"Drawing model\");\n }", "title": "" }, { "docid": "cc66c2b01c9b95e1605df7a373add213", "score": "0.62466073", "text": "private void makeShadowMap(){\n FloatBuffer tmp = BufferUtil.newFloatBuffer(16);\n IntBuffer viewport = BufferUtil.newIntBuffer(4);\n FloatBuffer light = BufferUtil.newFloatBuffer(4);\n gl.glGetLightfv(GL.GL_LIGHT0, GL.GL_POSITION, light);\n gl.glGetIntegerv(GL.GL_VIEWPORT, viewport);//lights viewport?\n gl.glViewport(0, 0, shadowMapWidth, shadowMapHeight);\n gl.glClear(GL.GL_COLOR_BUFFER_BIT | GL.GL_DEPTH_BUFFER_BIT);\n gl.glMatrixMode(GL.GL_PROJECTION);\n gl.glPushMatrix();\n gl.glLoadIdentity();\n glu.gluPerspective(45, winH/winW, 1, 1000);\n gl.glMatrixMode(GL.GL_MODELVIEW);\n\n gl.glPushMatrix();\n gl.glLoadIdentity();\n glu.gluLookAt(light.get(0), light.get(1), light.get(2), charx, chary, charz, 0, 1, 0);\n drawObjects();\n gl.glPopMatrix();\n\n gl.glMatrixMode(GL.GL_PROJECTION);\n gl.glPopMatrix();\n gl.glMatrixMode(GL.GL_MODELVIEW);\n\n gl.glCopyTexImage2D(GL.GL_TEXTURE_2D, 0, GL.GL_DEPTH_COMPONENT, 0, 0, shadowMapWidth, shadowMapHeight, 0);\n gl.glViewport(viewport.get(0),viewport.get(1),viewport.get(2),viewport.get(3));\n\n gl.glMatrixMode(GL.GL_MODELVIEW);\n gl.glPushMatrix();\n gl.glLoadIdentity();\n gl.glTranslatef(.5f, .5f, 0f);\n gl.glScalef(.5f,.5f,1f);\n glu.gluPerspective(45, winH/winW, 1, 1000);\n glu.gluLookAt(light.get(0), light.get(1), light.get(2), charx, chary, charz, 0, 1, 0);\n gl.glGetFloatv(GL.GL_MODELVIEW_MATRIX, tmp);\n gl.glPopMatrix();\n //transposeMatrix(tmp);\n gl.glTexGeni(GL.GL_S, GL.GL_TEXTURE_GEN_MODE, GL.GL_OBJECT_LINEAR);\n gl.glTexGeni(GL.GL_T, GL.GL_TEXTURE_GEN_MODE, GL.GL_OBJECT_LINEAR);\n gl.glTexGeni(GL.GL_R, GL.GL_TEXTURE_GEN_MODE, GL.GL_OBJECT_LINEAR);\n gl.glTexGeni(GL.GL_Q, GL.GL_TEXTURE_GEN_MODE, GL.GL_OBJECT_LINEAR);\n\n FloatBuffer test = BufferUtil.newFloatBuffer(4);\n for(int i = 0; i < 4; i++)\n test.put(i, tmp.get(i));\n gl.glTexGenfv(GL.GL_S, GL.GL_OBJECT_PLANE, test);\n for(int i = 0; i < 4; i++)\n test.put(i, tmp.get(i+4));\n gl.glTexGenfv(GL.GL_T, GL.GL_OBJECT_PLANE, test);\n for(int i = 0; i < 4; i++)\n test.put(i, tmp.get(i+8));\n gl.glTexGenfv(GL.GL_R, GL.GL_OBJECT_PLANE, test);\n for(int i = 0; i < 4; i++)\n test.put(i, tmp.get(i+12));\n gl.glTexGenfv(GL.GL_Q, GL.GL_OBJECT_PLANE, test);\n\n gl.glEnable(GL.GL_TEXTURE_GEN_S);\n gl.glEnable(GL.GL_TEXTURE_GEN_T);\n gl.glEnable(GL.GL_TEXTURE_GEN_R);\n gl.glEnable(GL.GL_TEXTURE_GEN_Q);\n\n gl.glTexParameteri(GL.GL_TEXTURE_2D, GL.GL_TEXTURE_WRAP_S, GL.GL_CLAMP_TO_EDGE);\n gl.glTexParameteri(GL.GL_TEXTURE_2D, GL.GL_TEXTURE_WRAP_T, GL.GL_CLAMP_TO_EDGE);\n gl.glTexParameteri(GL.GL_TEXTURE_2D, GL.GL_TEXTURE_MIN_FILTER, GL.GL_LINEAR);\n gl.glTexParameteri(GL.GL_TEXTURE_2D, GL.GL_TEXTURE_MAG_FILTER, GL.GL_LINEAR);\n gl.glTexParameteri(GL.GL_TEXTURE_2D, GL.GL_TEXTURE_COMPARE_FUNC, GL.GL_LEQUAL);\n gl.glTexParameteri(GL.GL_TEXTURE_2D, GL.GL_DEPTH_TEXTURE_MODE, GL.GL_LUMINANCE);\n gl.glTexParameteri(GL.GL_TEXTURE_2D, GL.GL_TEXTURE_COMPARE_MODE, GL.GL_COMPARE_R_TO_TEXTURE);\n gl.glEnable(GL.GL_TEXTURE_2D);\n\n gl.glDisable(GL.GL_TEXTURE_GEN_S);\n gl.glDisable(GL.GL_TEXTURE_GEN_T);\n gl.glDisable(GL.GL_TEXTURE_GEN_R);\n gl.glDisable(GL.GL_TEXTURE_GEN_Q);\n }", "title": "" }, { "docid": "d3e0bc688c366637fdd697efb87adb1e", "score": "0.6230734", "text": "public void init(GL3 gl) {\n \n texture3 = new Texture(gl, \"res/textures/BrightPurpleMarble.png\", \"png\", true);\n texture4 = new ArrayList<>();\n for(int kk = 1;kk <= 250;kk++) {\n \tString ss = \"\";\n \tif(kk<=9) {\n \t\tss = \"res/textures/color/water_055_c_000\" + kk+ \".jpg\";\n \t}else if(kk <= 99) {\n \t\tss = \"res/textures/color/water_055_c_00\" + kk+ \".jpg\";\n \t}else if(kk <= 999 ) {\n \t\tss = \"res/textures/color/water_055_c_0\" + kk+ \".jpg\";\n \t}\n \ttexture4.add(new Texture(gl, ss, \"jpg\", true));\n //texture3 = new Texture(gl, \"res/textures/BrightPurpleMarble.png\", \"png\", true);\n \t}\n float av_x = (width -1)/2;\n float av_z = (depth-1)/2;\n float av_y = altitude(av_x,av_z);\n \n \t\n \tfor(Tree tree:trees) {\n \t tree.init(gl);\n }\n for(Road road:roads) {\n \troad.init(gl);\n }\n \n makeExtrusion(gl);\n \n List<Point3D> verticesw = new ArrayList<>();\n List<Integer> indicesw = new ArrayList<>();\n List<Point2D> texCoordsw = new ArrayList<>();\n verticesw.add(new Point3D(-width/2, -0.0015f, width/2));\n verticesw.add(new Point3D(width/2, -0.0015f, width/2));\n verticesw.add(new Point3D(width/2, -0.0015f, -width/2));\n verticesw.add(new Point3D(-width/2, -0.0015f, -width/2));\n texCoordsw.add(new Point2D(0,0));\n texCoordsw.add(new Point2D(1,0));\n texCoordsw.add(new Point2D(1,1));\n texCoordsw.add(new Point2D(0,1));\n indicesw.add(1);\n indicesw.add(2);\n indicesw.add(0);\n\n indicesw.add(0);\n indicesw.add(2);\n indicesw.add(3);\n \n waterMesh = new TriangleMesh(verticesw,indicesw,true,texCoordsw);\n waterMesh.init(gl);\n \n count = 0;\n \n \n }", "title": "" }, { "docid": "dcb3d3b313cb93f83544baffe99fbbdc", "score": "0.6218768", "text": "@Override\r\n public void draw(GL10 gl) {\n }", "title": "" }, { "docid": "14d74e65a85a129cd809ce75e91882b8", "score": "0.6203985", "text": "public void draw() {\n\t\tGL11.glDisable(GL11.GL_LIGHTING);\n\t\tGL11.glDisable(GL11.GL_TEXTURE_2D);\n\t\tif (this.depthTest) {\n\t\t\tGL11.glEnable(GL11.GL_DEPTH_TEST);\n\t\t} else {\n\t\t\tGL11.glDisable(GL11.GL_DEPTH_TEST);\n\t\t}\n\n\t\tGL11.glColor4f(this.color.x, this.color.y, this.color.z, this.color.w);\n\n\t\tGL11.glBegin(this.mode);\n\n\t\tfor (Vector3f v : this.verticies) {\n\t\t\tGL11.glVertex3f(v.x, v.y, v.z);\n\t\t}\n\n\t\tGL11.glEnd();\n\t}", "title": "" }, { "docid": "a07a9a53afbd3cf4c5e1bd15633d124c", "score": "0.6196188", "text": "@Override\r\n\tpublic void render() {\n\t\tGLA.gl.glPointSize(5);\r\n\t\tGLA.gl.glBegin(GL.GL_POINTS);\r\n\t\tGLA.vertex(Vector3.Zero);\r\n\t\tGLA.gl.glEnd();\r\n\t}", "title": "" }, { "docid": "4698989debaab47180b7fb3f61680a12", "score": "0.618374", "text": "public final void mo5123a(GL10 gl10) {\n gl10.glColor4f(0.0f, 0.0f, 0.0f, 0.3f);\n }", "title": "" }, { "docid": "50fdf2ed7f70438505ee96dccdcac9db", "score": "0.61627287", "text": "public void onSurfaceCreated(GL10 gl, EGLConfig config) {\n\t gl.glClearColor(0,0,0,0);\n\t \n\t gl.glEnable(GL10.GL_TEXTURE_2D);\n\t gl.glEnable(GL10.GL_BLEND);\n\t //gl.glDisable(GL10.GL_DEPTH_TEST);\n\t //gl.glDisable(GL10.GL_LIGHTING);\n\t gl.glBlendFunc(GL10.GL_SRC_ALPHA,GL10.GL_ONE_MINUS_SRC_ALPHA);\n\t gl.glEnableClientState(GL10.GL_VERTEX_ARRAY);\n\t gl.glEnableClientState(GL10.GL_TEXTURE_COORD_ARRAY);\n\t \n\t \n\t // set up vertices\n\t ByteBuffer vbb = ByteBuffer.allocateDirect(vertices.length*4);\n\t vbb.order(ByteOrder.nativeOrder());\n\t mVertexBuffer = vbb.asFloatBuffer();\n\t mVertexBuffer.put(vertices);\n\t mVertexBuffer.position(0);\n\t \n\t ByteBuffer vbb1 = ByteBuffer.allocateDirect(texcoord.length*4);\n\t vbb1.order(ByteOrder.nativeOrder());\n\t mTexCoordBuffer = vbb1.asFloatBuffer();\n\t mTexCoordBuffer.put(texcoord);\n\t mTexCoordBuffer.position(0);\n\t \n\t \n\t ByteBuffer vbb2 = ByteBuffer.allocateDirect(smashverts.length*4);\n\t vbb2.order(ByteOrder.nativeOrder());\n\t mSmashBuffer = vbb2.asFloatBuffer();\n\t mSmashBuffer.put(smashverts);\n\t mSmashBuffer.position(0);\n\t \n\t ByteBuffer vbb3 = ByteBuffer.allocateDirect(testline.length*4);\n\t vbb3.order(ByteOrder.nativeOrder());\n\t mLine = vbb3.asFloatBuffer();\n\t mLine.put(testline);\n\t mLine.position(0);\n\t \n\t \n\t gl.glGenTextures(2, textures, 0);\n\n\t mTextureID = textures[0];\n\t gl.glBindTexture(GL10.GL_TEXTURE_2D, mTextureID);\n\n\t gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MIN_FILTER,\n\t GL10.GL_NEAREST);\n\t gl.glTexParameterf(GL10.GL_TEXTURE_2D,\n\t GL10.GL_TEXTURE_MAG_FILTER,\n\t GL10.GL_LINEAR);\n\t \n\t gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_WRAP_S,\n\t GL10.GL_REPEAT);\n\t gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_WRAP_T,\n\t GL10.GL_REPEAT);\n\t \n\t InputStream is = mContext.getResources().openRawResource(R.raw.hammer);\n\t \n\t Bitmap bitmap;\n\t try {\n\t bitmap = BitmapFactory.decodeStream(is);\n\t } finally {\n\t try {\n\t is.close();\n\t } catch(IOException e) {\n\t // Ignore.\n\t }\n\t }\n\n\t GLUtils.texImage2D(GL10.GL_TEXTURE_2D, 0, bitmap, 0);\n\t bitmap.recycle();\n\n\t \n\t mSmashTexture= textures[1];\n\t\t gl.glBindTexture(GL10.GL_TEXTURE_2D, mSmashTexture);\n\n\t\t gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MIN_FILTER,\n\t\t GL10.GL_NEAREST);\n\t\t gl.glTexParameterf(GL10.GL_TEXTURE_2D,\n\t\t GL10.GL_TEXTURE_MAG_FILTER,\n\t\t GL10.GL_LINEAR);\n\t\t \n\t\t gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_WRAP_S,\n\t\t GL10.GL_REPEAT);\n\t\t gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_WRAP_T,\n\t\t GL10.GL_REPEAT);\n\t\t \n\t\t is = mContext.getResources().openRawResource(R.raw.crack);\n\t\t \n\t\t \n\t\t try {\n\t\t bitmap = BitmapFactory.decodeStream(is);\n\t\t } finally {\n\t\t try {\n\t\t is.close();\n\t\t } catch(IOException e) {\n\t\t // Ignore.\n\t\t }\n\t\t }\n\n\t\t GLUtils.texImage2D(GL10.GL_TEXTURE_2D, 0, bitmap, 0);\n\t\t bitmap.recycle();\n\n\t \n\t \n\t \n\t \n\t }", "title": "" }, { "docid": "f9036542f16323052af0a2e35d00c2a7", "score": "0.61536205", "text": "@Override\r\n public void onSurfaceCreated(GL10 gl, EGLConfig config) {\n TextureLibrary.get().init(gl, GameState.context);\r\n TextureLibrary.get().reload();\r\n\r\n // Enable texture support.\r\n gl.glShadeModel(GL10.GL_SMOOTH);\r\n \r\n // Screen clear color.\r\n gl.glClearColor(0.0f, 0.0f, 0.0f, 1.0f);\r\n \r\n // Blending Options.\r\n gl.glDisable(GL10.GL_DITHER);\r\n gl.glEnable(GL10.GL_BLEND);\r\n gl.glBlendFunc(GL10.GL_SRC_ALPHA, GL10.GL_ONE_MINUS_SRC_ALPHA);\r\n \r\n gl.glHint(GL10.GL_PERSPECTIVE_CORRECTION_HINT, GL10.GL_NICEST); \r\n \r\n // Setup depth tests for proper z-index rendering.\r\n gl.glClearDepthf(1.0f);\r\n gl.glEnable(GL10.GL_DEPTH_TEST);\r\n gl.glDepthFunc(GL10.GL_LEQUAL);\r\n\r\n // Clockwise winding. Note that while CW is specified here, vertices are still\r\n // specified CCW. This is is because we are inverting the y-axis and to match\r\n // the device screen norm of a 0,0 origin as the top left. Due to this inversion\r\n // we are actually looking at the back side of the world. This change also\r\n // requires that any UV texture mappings have their y-component inverted.\r\n gl.glFrontFace(GL10.GL_CW);\r\n gl.glEnable(GL10.GL_CULL_FACE);\r\n gl.glCullFace(GL10.GL_BACK);\r\n }", "title": "" }, { "docid": "6ed5f21fd4d79ea4a376ed927c04979c", "score": "0.61509603", "text": "public void mo24143q() {\n try {\n this.f15541b.position(0);\n GLES20.glVertexAttribPointer(this.f15547h, 2, 5126, false, 8, this.f15541b);\n GLES20.glEnableVertexAttribArray(this.f15547h);\n this.f15542c[this.f15540a].position(0);\n GLES20.glVertexAttribPointer(this.f15548i, 2, 5126, false, 8, this.f15542c[this.f15540a]);\n GLES20.glEnableVertexAttribArray(this.f15548i);\n GLES20.glActiveTexture(33984);\n GLES20.glBindTexture(3553, this.f15549j);\n GLES20.glUniform1i(this.f15546g, 0);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "89da1ff7b311d78e9f3fb324194c45c2", "score": "0.6144481", "text": "public void renderSky(float par1) {\n\t\tif (this.mc.theWorld.provider.dimensionId == 1) {\n\t\t\tEaglerAdapter.glDisable(EaglerAdapter.GL_FOG);\n\t\t\tEaglerAdapter.glDisable(EaglerAdapter.GL_ALPHA_TEST);\n\t\t\tEaglerAdapter.glEnable(EaglerAdapter.GL_BLEND);\n\t\t\tEaglerAdapter.glBlendFunc(EaglerAdapter.GL_SRC_ALPHA, EaglerAdapter.GL_ONE_MINUS_SRC_ALPHA);\n\t\t\tRenderHelper.disableStandardItemLighting();\n\t\t\tEaglerAdapter.glDepthMask(false);\n\t\t\ttunnel.bindTexture();\n\t\t\tTessellator var21 = Tessellator.instance;\n\n\t\t\tfor (int var22 = 0; var22 < 6; ++var22) {\n\t\t\t\tEaglerAdapter.glPushMatrix();\n\n\t\t\t\tif (var22 == 1) {\n\t\t\t\t\tEaglerAdapter.glRotatef(90.0F, 1.0F, 0.0F, 0.0F);\n\t\t\t\t}\n\n\t\t\t\tif (var22 == 2) {\n\t\t\t\t\tEaglerAdapter.glRotatef(-90.0F, 1.0F, 0.0F, 0.0F);\n\t\t\t\t}\n\n\t\t\t\tif (var22 == 3) {\n\t\t\t\t\tEaglerAdapter.glRotatef(180.0F, 1.0F, 0.0F, 0.0F);\n\t\t\t\t}\n\n\t\t\t\tif (var22 == 4) {\n\t\t\t\t\tEaglerAdapter.glRotatef(90.0F, 0.0F, 0.0F, 1.0F);\n\t\t\t\t}\n\n\t\t\t\tif (var22 == 5) {\n\t\t\t\t\tEaglerAdapter.glRotatef(-90.0F, 0.0F, 0.0F, 1.0F);\n\t\t\t\t}\n\n\t\t\t\tvar21.startDrawingQuads();\n\t\t\t\tvar21.setColorOpaque_I(2631720);\n\t\t\t\tvar21.addVertexWithUV(-100.0D, -100.0D, -100.0D, 0.0D, 0.0D);\n\t\t\t\tvar21.addVertexWithUV(-100.0D, -100.0D, 100.0D, 0.0D, 16.0D);\n\t\t\t\tvar21.addVertexWithUV(100.0D, -100.0D, 100.0D, 16.0D, 16.0D);\n\t\t\t\tvar21.addVertexWithUV(100.0D, -100.0D, -100.0D, 16.0D, 0.0D);\n\t\t\t\tvar21.draw();\n\t\t\t\tEaglerAdapter.glPopMatrix();\n\t\t\t}\n\n\t\t\tEaglerAdapter.glDepthMask(true);\n\t\t\tEaglerAdapter.glEnable(EaglerAdapter.GL_TEXTURE_2D);\n\t\t\tEaglerAdapter.glEnable(EaglerAdapter.GL_ALPHA_TEST);\n\t\t} else if (this.mc.theWorld.provider.isSurfaceWorld()) {\n\t\t\tEaglerAdapter.glDisable(EaglerAdapter.GL_TEXTURE_2D);\n\t\t\tVec3 var2 = this.theWorld.getSkyColor(this.mc.renderViewEntity, par1);\n\t\t\tfloat var3 = (float) var2.xCoord;\n\t\t\tfloat var4 = (float) var2.yCoord;\n\t\t\tfloat var5 = (float) var2.zCoord;\n\t\t\tfloat var8;\n\n\t\t\tif (this.mc.gameSettings.anaglyph) {\n\t\t\t\tfloat var6 = (var3 * 30.0F + var4 * 59.0F + var5 * 11.0F) / 100.0F;\n\t\t\t\tfloat var7 = (var3 * 30.0F + var4 * 70.0F) / 100.0F;\n\t\t\t\tvar8 = (var3 * 30.0F + var5 * 70.0F) / 100.0F;\n\t\t\t\tvar3 = var6;\n\t\t\t\tvar4 = var7;\n\t\t\t\tvar5 = var8;\n\t\t\t}\n\n\t\t\tEaglerAdapter.glColor3f(var3, var4, var5);\n\t\t\tTessellator var23 = Tessellator.instance;\n\t\t\tEaglerAdapter.glDepthMask(false);\n\t\t\tEaglerAdapter.glEnable(EaglerAdapter.GL_FOG);\n\t\t\tEaglerAdapter.glColor3f(var3, var4, var5);\n\t\t\tEaglerAdapter.glCallList(this.glSkyList);\n\t\t\tEaglerAdapter.glDisable(EaglerAdapter.GL_FOG);\n\t\t\tEaglerAdapter.glDisable(EaglerAdapter.GL_ALPHA_TEST);\n\t\t\tEaglerAdapter.glEnable(EaglerAdapter.GL_BLEND);\n\t\t\tEaglerAdapter.glBlendFunc(EaglerAdapter.GL_SRC_ALPHA, EaglerAdapter.GL_ONE_MINUS_SRC_ALPHA);\n\t\t\tRenderHelper.disableStandardItemLighting();\n\t\t\tfloat[] var24 = this.theWorld.provider.calcSunriseSunsetColors(this.theWorld.getCelestialAngle(par1), par1);\n\t\t\tfloat var9;\n\t\t\tfloat var10;\n\t\t\tfloat var11;\n\t\t\tfloat var12;\n\n\t\t\tif (var24 != null) {\n\t\t\t\tEaglerAdapter.glDisable(EaglerAdapter.GL_TEXTURE_2D);\n\t\t\t\tEaglerAdapter.glShadeModel(EaglerAdapter.GL_SMOOTH);\n\t\t\t\tEaglerAdapter.glPushMatrix();\n\t\t\t\tEaglerAdapter.glRotatef(90.0F, 1.0F, 0.0F, 0.0F);\n\t\t\t\tEaglerAdapter.glRotatef(MathHelper.sin(this.theWorld.getCelestialAngleRadians(par1)) < 0.0F ? 180.0F : 0.0F, 0.0F, 0.0F, 1.0F);\n\t\t\t\tEaglerAdapter.glRotatef(90.0F, 0.0F, 0.0F, 1.0F);\n\t\t\t\tvar8 = var24[0];\n\t\t\t\tvar9 = var24[1];\n\t\t\t\tvar10 = var24[2];\n\t\t\t\tfloat var13;\n\n\t\t\t\tif (this.mc.gameSettings.anaglyph) {\n\t\t\t\t\tvar11 = (var8 * 30.0F + var9 * 59.0F + var10 * 11.0F) / 100.0F;\n\t\t\t\t\tvar12 = (var8 * 30.0F + var9 * 70.0F) / 100.0F;\n\t\t\t\t\tvar13 = (var8 * 30.0F + var10 * 70.0F) / 100.0F;\n\t\t\t\t\tvar8 = var11;\n\t\t\t\t\tvar9 = var12;\n\t\t\t\t\tvar10 = var13;\n\t\t\t\t}\n\n\t\t\t\tvar23.startDrawing(EaglerAdapter.GL_TRIANGLE_FAN);\n\t\t\t\tvar23.setColorRGBA_F(var8, var9, var10, var24[3]);\n\t\t\t\tvar23.addVertex(0.0D, 100.0D, 0.0D);\n\t\t\t\tbyte var26 = 16;\n\t\t\t\tvar23.setColorRGBA_F(var24[0], var24[1], var24[2], 0.0F);\n\n\t\t\t\tfor (int var27 = 0; var27 <= var26; ++var27) {\n\t\t\t\t\tvar13 = (float) var27 * (float) Math.PI * 2.0F / (float) var26;\n\t\t\t\t\tfloat var14 = MathHelper.sin(var13);\n\t\t\t\t\tfloat var15 = MathHelper.cos(var13);\n\t\t\t\t\tvar23.addVertex((double) (var14 * 120.0F), (double) (var15 * 120.0F), (double) (-var15 * 40.0F * var24[3]));\n\t\t\t\t}\n\n\t\t\t\tvar23.draw();\n\t\t\t\tEaglerAdapter.glPopMatrix();\n\t\t\t\tEaglerAdapter.glShadeModel(EaglerAdapter.GL_FLAT);\n\t\t\t}\n\n\t\t\tEaglerAdapter.glEnable(EaglerAdapter.GL_TEXTURE_2D);\n\t\t\tEaglerAdapter.glBlendFunc(EaglerAdapter.GL_SRC_ALPHA, EaglerAdapter.GL_ONE);\n\t\t\tEaglerAdapter.glPushMatrix();\n\t\t\tvar8 = 1.0F - this.theWorld.getRainStrength(par1);\n\t\t\tvar9 = 0.0F;\n\t\t\tvar10 = 0.0F;\n\t\t\tvar11 = 0.0F;\n\t\t\tEaglerAdapter.glColor4f(1.0F, 1.0F, 1.0F, var8);\n\t\t\tEaglerAdapter.glTranslatef(var9, var10, var11);\n\t\t\tEaglerAdapter.glRotatef(-90.0F, 0.0F, 1.0F, 0.0F);\n\t\t\tEaglerAdapter.glRotatef(this.theWorld.getCelestialAngle(par1) * 360.0F, 1.0F, 0.0F, 0.0F);\n\t\t\tvar12 = 30.0F;\n\t\t\tsun.bindTexture();\n\t\t\tvar23.startDrawingQuads();\n\t\t\tvar23.addVertexWithUV((double) (-var12), 100.0D, (double) (-var12), 0.0D, 0.0D);\n\t\t\tvar23.addVertexWithUV((double) var12, 100.0D, (double) (-var12), 1.0D, 0.0D);\n\t\t\tvar23.addVertexWithUV((double) var12, 100.0D, (double) var12, 1.0D, 1.0D);\n\t\t\tvar23.addVertexWithUV((double) (-var12), 100.0D, (double) var12, 0.0D, 1.0D);\n\t\t\tvar23.draw();\n\t\t\tvar12 = 20.0F;\n\t\t\tmoon.bindTexture();\n\t\t\tint var28 = this.theWorld.getMoonPhase();\n\t\t\tint var29 = var28 % 4;\n\t\t\tint var30 = var28 / 4 % 2;\n\t\t\tfloat var16 = (float) (var29 + 0) / 4.0F;\n\t\t\tfloat var17 = (float) (var30 + 0) / 2.0F;\n\t\t\tfloat var18 = (float) (var29 + 1) / 4.0F;\n\t\t\tfloat var19 = (float) (var30 + 1) / 2.0F;\n\t\t\tvar23.startDrawingQuads();\n\t\t\tvar23.addVertexWithUV((double) (-var12), -100.0D, (double) var12, (double) var18, (double) var19);\n\t\t\tvar23.addVertexWithUV((double) var12, -100.0D, (double) var12, (double) var16, (double) var19);\n\t\t\tvar23.addVertexWithUV((double) var12, -100.0D, (double) (-var12), (double) var16, (double) var17);\n\t\t\tvar23.addVertexWithUV((double) (-var12), -100.0D, (double) (-var12), (double) var18, (double) var17);\n\t\t\tvar23.draw();\n\t\t\tEaglerAdapter.glDisable(EaglerAdapter.GL_TEXTURE_2D);\n\t\t\tfloat var20 = this.theWorld.getStarBrightness(par1) * var8;\n\n\t\t\tif (var20 > 0.0F) {\n\t\t\t\tEaglerAdapter.glColor4f(var20, var20, var20, var20);\n\t\t\t\tEaglerAdapter.glCallList(this.starGLCallList);\n\t\t\t}\n\n\t\t\tEaglerAdapter.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);\n\t\t\tEaglerAdapter.glDisable(EaglerAdapter.GL_BLEND);\n\t\t\tEaglerAdapter.glEnable(EaglerAdapter.GL_ALPHA_TEST);\n\t\t\tEaglerAdapter.glEnable(EaglerAdapter.GL_FOG);\n\t\t\tEaglerAdapter.glPopMatrix();\n\t\t\tEaglerAdapter.glDisable(EaglerAdapter.GL_TEXTURE_2D);\n\t\t\tEaglerAdapter.glColor3f(0.0F, 0.0F, 0.0F);\n\t\t\tdouble var25 = this.mc.thePlayer.getPosition(par1).yCoord - this.theWorld.getHorizon();\n\n\t\t\tif (var25 < 0.0D) {\n\t\t\t\tEaglerAdapter.glPushMatrix();\n\t\t\t\tEaglerAdapter.glTranslatef(0.0F, 12.0F, 0.0F);\n\t\t\t\tEaglerAdapter.glCallList(this.glSkyList2);\n\t\t\t\tEaglerAdapter.glPopMatrix();\n\t\t\t\tvar10 = 1.0F;\n\t\t\t\tvar11 = -((float) (var25 + 65.0D));\n\t\t\t\tvar12 = -var10;\n\t\t\t\tvar23.startDrawingQuads();\n\t\t\t\tvar23.setColorRGBA_I(0, 255);\n\t\t\t\tvar23.addVertex((double) (-var10), (double) var11, (double) var10);\n\t\t\t\tvar23.addVertex((double) var10, (double) var11, (double) var10);\n\t\t\t\tvar23.addVertex((double) var10, (double) var12, (double) var10);\n\t\t\t\tvar23.addVertex((double) (-var10), (double) var12, (double) var10);\n\t\t\t\tvar23.addVertex((double) (-var10), (double) var12, (double) (-var10));\n\t\t\t\tvar23.addVertex((double) var10, (double) var12, (double) (-var10));\n\t\t\t\tvar23.addVertex((double) var10, (double) var11, (double) (-var10));\n\t\t\t\tvar23.addVertex((double) (-var10), (double) var11, (double) (-var10));\n\t\t\t\tvar23.addVertex((double) var10, (double) var12, (double) (-var10));\n\t\t\t\tvar23.addVertex((double) var10, (double) var12, (double) var10);\n\t\t\t\tvar23.addVertex((double) var10, (double) var11, (double) var10);\n\t\t\t\tvar23.addVertex((double) var10, (double) var11, (double) (-var10));\n\t\t\t\tvar23.addVertex((double) (-var10), (double) var11, (double) (-var10));\n\t\t\t\tvar23.addVertex((double) (-var10), (double) var11, (double) var10);\n\t\t\t\tvar23.addVertex((double) (-var10), (double) var12, (double) var10);\n\t\t\t\tvar23.addVertex((double) (-var10), (double) var12, (double) (-var10));\n\t\t\t\tvar23.addVertex((double) (-var10), (double) var12, (double) (-var10));\n\t\t\t\tvar23.addVertex((double) (-var10), (double) var12, (double) var10);\n\t\t\t\tvar23.addVertex((double) var10, (double) var12, (double) var10);\n\t\t\t\tvar23.addVertex((double) var10, (double) var12, (double) (-var10));\n\t\t\t\tvar23.draw();\n\t\t\t}\n\n\t\t\tif (this.theWorld.provider.isSkyColored()) {\n\t\t\t\tEaglerAdapter.glColor3f(var3 * 0.2F + 0.04F, var4 * 0.2F + 0.04F, var5 * 0.6F + 0.1F);\n\t\t\t} else {\n\t\t\t\tEaglerAdapter.glColor3f(var3, var4, var5);\n\t\t\t}\n\n\t\t\tEaglerAdapter.glPushMatrix();\n\t\t\tEaglerAdapter.glTranslatef(0.0F, -((float) (var25 - 16.0D)), 0.0F);\n\t\t\tEaglerAdapter.glCallList(this.glSkyList2);\n\t\t\tEaglerAdapter.glPopMatrix();\n\t\t\tEaglerAdapter.glEnable(EaglerAdapter.GL_TEXTURE_2D);\n\t\t\tEaglerAdapter.glDepthMask(true);\n\t\t}\n\t}", "title": "" }, { "docid": "cca148c5239443dca538722d9150c0b0", "score": "0.612925", "text": "private void makeExtrusion(GL3 gl) {\n \ttexture1 = new Texture(gl, \"res/textures/grass.bmp\",\n \"bmp\", true);\n \ttexture2 = new Texture(gl, \"res/textures/rock.bmp\",\n \"bmp\", true);\n \ttexture3 = new Texture(gl, \"res/textures/BrightPurpleMarble.png\", \"png\", true);\n \t\n List<Point3D> vertices = new ArrayList<>();\n List<Integer> indices = new ArrayList<>();\n List<Point2D> texCoords = new ArrayList<>();\n \n for (int i = 0;i < width;i++) {\n \t for(int j = 0;j < depth;j++) {\n \t\tvertices.add(new Point3D(i, (float) getGridAltitude(i,j), j));\n \t\t \n \t\t//sideTexCoords.add(new Point2D(s,0));\n //sideTexCoords.add(new Point2D(s,1));\n \t\ttexCoords.add(new Point2D(i,j));\n \t\t \n \n \t\t \n \t\t if(i!= width -1 && j != depth -1) {\n \t\t /*\t\t\t j\n \t \t\t * -----\n \t \t\t * i -+*--\n \t \t\t * -*---\n \t\t */\n \t\t //top-left,bottom-left,top-right\n \t\t\t indices.add(depth * i + j);\n \t\t\t indices.add(depth * i + j + 1 );\n \t\t\t indices.add(depth * (i + 1) + j);\n \t\t\t //indices.add(depth * i + j + 1 );\n \t \t\t\n\n \t \t\t /*\t\t\t j\n \t\t \t\t * -----\n \t\t \t\t * i -+*--\n \t\t \t\t * -**--\n \t \t\t */\n \t \t\t //top-right,bottom-left,bottom-right\t\n \t\t \tindices.add(depth * i + j + 1);\n \t\t \tindices.add(depth * (i + 1) + j + 1 );\n \t\t \tindices.add(depth * (i + 1) + j);\n \t\t \t//indices.add(depth * (i + 1) + j + 1 );\n \t\t }\n \t }\n } \n \n //triangleMesh = new TriangleMesh(vertices,indices, true);\n //use vertices nomals\n triangleMesh = new TriangleMesh(vertices,indices,true,texCoords);\n triangleMesh.init(gl);\n //meshes.add(triangleMesh); \n \n \n \n }", "title": "" }, { "docid": "a84a38339e7aa73deaf2033ad94ee0c1", "score": "0.6126355", "text": "public final void mo5123a(GL10 gl10) {\n gl10.glColor4f(1.0f, 0.0f, 0.0f, 0.3f);\n }", "title": "" }, { "docid": "3da28c5acb727a402e788e36a04e2936", "score": "0.6085726", "text": "public void init(GLAutoDrawable gLDrawable) {\n\t GL2 gl = gLDrawable.getGL().getGL2();\n\t //gl.glShadeModel(GL.GL_LINE_SMOOTH); // Enable Smooth Shading\n\t gl.glClearColor(0.0f, 0.0f, 0.0f, 0.5f); // Black Background\n\t gl.glClearDepth(1.0f); // Depth Buffer Setup\n\t gl.glEnable(GL.GL_DEPTH_TEST); // Enables Depth Testing\n\t gl.glDepthFunc(GL.GL_LEQUAL); // The Type Of Depth Testing To Do\n\t // Really Nice Perspective Calculations\n\t //gl.glHint(GL.GL_PERSPECTIVE_CORRECTION_HINT, GL.GL_NICEST); \n\t \n\t // load the texture;\n\t \n\t try {\n\t \t skybox0 = TextureIO.newTexture(new File(\"C:/Users/iPhone/Documents/CS 335/Skybox texture/skybox_pine_forest_front.jpg\"), false);\n\t \t // left\n\t \t skybox1 = TextureIO.newTexture(new File(\"C:/Users/iPhone/Documents/CS 335/Skybox texture/skybox_pine_forest_left.jpg\"), false);\n\t \t // back\n\t \t skybox2 = TextureIO.newTexture(new File(\"C:/Users/iPhone/Documents/CS 335/Skybox texture/skybox_autum_forest_back.jpg\"), false);\n\t \t // right\n\t \t skybox3 = TextureIO.newTexture(new File(\"C:/Users/iPhone/Documents/CS 335/Skybox texture/skybox_autum_forest_right.jpg\"), false);\n\t \t // top\n\t \t skybox4 = TextureIO.newTexture(new File(\"C:/Users/iPhone/Documents/CS 335/Skybox texture/skybox_autum_forest_top.jpg\"), false);\n\t \t // bottom\n\t \t skybox5 = TextureIO.newTexture(new File(\"C:/Users/iPhone/Documents/CS 335/Skybox texture/skybox_autum_forest_bottom.jpg\"), false);\n\t \t woodbox = TextureIO.newTexture(new File(\"C:/Users/iPhone/Documents/CS 335/Skybox texture/box.jpg\"), false);\n\t \t gl.glHint(GL2.GL_PERSPECTIVE_CORRECTION_HINT, GL.GL_NICEST); \n\t gl.glEnable(GL.GL_TEXTURE_2D);\n\t \n\t //gl.glBindTexture(GL.GL_TEXTURE_2D, texID);\n\t \t gl.glTexParameteri(GL.GL_TEXTURE_2D, GL.GL_TEXTURE_MIN_FILTER, GL.GL_LINEAR);\n\t gl.glTexParameteri(GL.GL_TEXTURE_2D, GL.GL_TEXTURE_MAG_FILTER, GL.GL_LINEAR);\n\t gl.glTexParameteri(GL.GL_TEXTURE_2D, GL.GL_TEXTURE_WRAP_S, GL2.GL_CLAMP);\n\t gl.glTexParameteri(GL.GL_TEXTURE_2D, GL.GL_TEXTURE_WRAP_T, GL2.GL_CLAMP);\n\t gl.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_TEXTURE_ENV_MODE, GL2.GL_REPLACE);\n\t \n\t gl.glBlendFunc(GL2.GL_SRC_ALPHA,GL2.GL_ONE);\n\t \n\t } catch (Exception ex) {\n\t ex.printStackTrace();\n\t }\n\n\t \n\t }", "title": "" }, { "docid": "dbfa8662da37031b1f1b7aaa3f232ed3", "score": "0.60761416", "text": "public final void mo5123a(GL10 gl10) {\n gl10.glColor4f(0.0f, 0.0f, 1.0f, 0.3f);\n }", "title": "" }, { "docid": "1484f03293d0dd332053b6f09a4a9253", "score": "0.60706586", "text": "private void prepare() {\r\n\t\tGL11.glClearColor(1f, 1f, 1f, 1f);\r\n\t\tGL11.glClear(GL11.GL_COLOR_BUFFER_BIT | GL11.GL_DEPTH_BUFFER_BIT);\r\n\t\tGL32.glProvokingVertex(GL32.GL_FIRST_VERTEX_CONVENTION);\r\n\t\tOpenGlUtils.cullBackFaces(true);\r\n\t\tOpenGlUtils.enableDepthTesting(true);\r\n\t\tOpenGlUtils.antialias(true);\r\n\t}", "title": "" }, { "docid": "c513baac5dc1bb6bfb7e395ec13072c7", "score": "0.6068104", "text": "private static void initGL(){\n glEnable(GL_COLOR_MATERIAL);\n\n\n matSpecular = BufferUtils.createFloatBuffer(4);\n matSpecular.put(1.0f).put(1.0f).put(1.0f).put(1.0f).flip();\n\n lightPosition = BufferUtils.createFloatBuffer(4);\n lightPosition.put(-1.0f).put(1.0f).put(1.0f).put(0.0f).flip();\n\n whiteLight = BufferUtils.createFloatBuffer(4);\n whiteLight.put(.0f).put(1.0f).put(1.0f).put(1.0f).flip();\n\n lModelAmbient = BufferUtils.createFloatBuffer(4);\n lModelAmbient.put(0.5f).put(0.0f).put(0.1f).put(0.1f).flip();\n\n\n glShadeModel(GL_SMOOTH);\n glMaterial(GL_FRONT, GL_SPECULAR, matSpecular);\t\t\t\t// sets specular material color\n glMaterialf(GL_FRONT, GL_SHININESS, 110.0f);\t\t\t\t\t// sets shininess\n\n glLight(GL_LIGHT0, GL_POSITION, lightPosition);\t\t\t\t// sets light position\n glLight(GL_LIGHT0, GL_SPECULAR, whiteLight);\t\t\t\t// sets specular light to white\n //glLight(GL_LIGHT0, GL_DIFFUSE, whiteLight);\t\t\t\t\t// sets diffuse light to white\n glLightModel(GL_LIGHT_MODEL_AMBIENT, lModelAmbient);\t\t// global ambient light\n\n glEnable(GL_LIGHTING);\t\t\t\t\t\t\t\t\t\t// enables lighting\n glEnable(GL_LIGHT0);\t\t\t\t\t\t\t\t\t\t// enables light0\n\n glEnable(GL_COLOR_MATERIAL);\t\t\t\t\t\t\t\t// enables opengl to use glColor3f to define material color\n glColorMaterial(GL_FRONT, GL_AMBIENT_AND_DIFFUSE);\t\t\t// tell opengl glColor3f effects the ambient and diffuse properties of material\n //----------- END: Variables & method calls added for Lighting Test -----------//\n }", "title": "" }, { "docid": "08486ddb210f64939ffa5980dd4e5583", "score": "0.6067964", "text": "public static void initGraphics() {\r\n glClearColor(0.0f, 0.0f, 0.0f, 0.0f);\r\n \r\n //Every face drawn in clock-wise order will be front face.\r\n glFrontFace(GL_CW);\r\n //Culls (removes) the back face\r\n glCullFace(GL_BACK);\r\n \r\n //glEnable(GL_CULL_FACE);\r\n \r\n //Keeps track of every pixel drawn in z coordinates FROM camera, which\r\n // allows for these pixels to overlap correctly\r\n glEnable(GL_DEPTH_TEST);\r\n \r\n //Enables Textures\r\n glEnable(GL_TEXTURE_2D);\r\n \r\n //TODO: depth clamp\r\n \r\n \r\n //Allows free gamma correction, ie. sends colors in exponential, rather\r\n // then linear\r\n glEnable(GL_FRAMEBUFFER_SRGB);\r\n }", "title": "" }, { "docid": "e3cfdc384f440be0a84a0a82c9b9f97d", "score": "0.60671604", "text": "@Override\n\tpublic void onDrawFrame(GL10 gl) {\n\t\tgl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT);\n\t\tSystem.out.println(\"teste\");\n\t\tgl.glPushMatrix();\n\t gl.glTranslatef(-2.3f, 0, 10f);\n\t\tthis.spaceship.draw(gl);\n\t\t gl.glPopMatrix();\n\t\t \n\t\t gl.glPushMatrix();\n\t\tgl.glMatrixMode(GL10.GL_MODELVIEW);\n\t\tgl.glLoadIdentity();\n\t\t\n\t\tgl.glRotatef(translation, 0, 1, 0);\n\t\tGLU.gluLookAt(gl,x,y,z, vx,vy,vz, 0,1,0);\n\t\t//gl.glPushMatrix();\n\t\tgl.glTranslatef(x3, y3, z3);\n\t\tgl.glRotatef(rotation_1/speed, 0,1 ,0);\n\t\tInitGodMode(aux,gl);\n\t\tInitEarthMode(aux,gl);\n\t\tInitSpaceShipMode(aux1,gl);\n\t\t\n\t\t\n\t\t\n\t System.out.println(angle);System.out.println(x+\" \"+y+\" \"+z);\n\t\t\n\t\t /*Sun*/\n\t\tgl.glPushMatrix();\n\t\tgl.glTranslatef(0.0f, 0.0f, 0);\n\t\tthis.sun.draw(gl);\n\t\t\n\t\t\n\t\t/*Earth*/\n\t gl.glPushMatrix();\n\t gl.glRotatef(this.earthTranslation+=(1/speed), 0, 1, 0);\n\t gl.glTranslatef(-2.3f, 0.0f, 15);\n\t gl.glRotatef(this.earthRotation+= (30/speed), 0, 1, 0);\n\t enable_earth(aux,gl);\n\t /*Moon*/\n\t gl.glPushMatrix();\n\t gl.glRotatef(this.moonTranslation+=(13/speed), 0, 1, 0);\n\t gl.glTranslatef(0.6f, 0.0f, 0);\n\t this.moon.draw(gl);\n\t gl.glPopMatrix();\n\t gl.glPopMatrix();\n\t \n\t /*Mercury*/\n\t gl.glPushMatrix();\n\t gl.glRotatef(mercuryTranslation+= (4/speed), 0, 1, 0);\n\t gl.glTranslatef(-3.5f, 0.0f, 7.5f);\n\t gl.glRotatef(mercuryRotation+= (50/speed), 0, 1, 0);\n\t this.mercury.draw(gl);\n\t gl.glPopMatrix();\n\t \n\t \n\t /*Venus*/\n\t gl.glPushMatrix();\n\t gl.glRotatef(venusTranslation+= (1.6f/speed), 0, 1, 0);\n\t gl.glTranslatef(-3.0f, 0.0f, -12);\n\t gl.glRotatef(venusRotation+= (40/speed), 0, 1, 0);\n\t this.venus.draw(gl);\n\t gl.glPopMatrix();\t \n\t \n\t \n\t /*Mars*/\n\t gl.glPushMatrix();\n\t gl.glRotatef(marsTranslation+= (0.54f/speed), 0, 1, 0);\n\t gl.glTranslatef(-1.5f, 0.0f,19.5f);\n\t gl.glRotatef(marsRotation+= (25/speed), 0, 1, 0);\n\t this.mars.draw(gl);\n\t gl.glPopMatrix();\n\t \n\t \n\t /*Jupter*/\n\t gl.glPushMatrix();\n\t gl.glRotatef(jupterTranslation+= (0.05f/speed), 0, 1, 0);\n\t gl.glTranslatef(-0.5f, 0.0f, -22.5f);\n\t gl.glRotatef(jupterRotation+= (5/speed), 0, 1, 0);\n\t this.jupter.draw(gl);\n\t gl.glPopMatrix();\n\t \n\t \n\t /*Saturn*/\n\t gl.glPushMatrix();\n\t gl.glRotatef(saturnTranslation+= (0.004f/speed), 0, 1, 0);\n\t gl.glTranslatef(1.0f, 0.0f, 24);\n\t gl.glRotatef(saturnRotation+= (0.2f/speed), 0, 1, 0);\n\t this.saturn.draw(gl);\n\t gl.glPopMatrix();\n\t \n\t \n\t /*Uranus*/\n\t gl.glPushMatrix();\n\t gl.glRotatef(uranusTranslation+= (0.002f/speed), 0, 1, 0);\n\t gl.glTranslatef(2.0f, 0.0f,-25.5f);\n\t gl.glRotatef(uranusRotation+= (0.01f/speed), 0, 1, 0);\n\t this.uranus.draw(gl);\n\t gl.glPopMatrix();\n\t \n\t /*Neptune*/\n\t gl.glPushMatrix();\n\t gl.glRotatef(neptuneTranslation+= (0.001f/speed), 0, 1, 0);\n\t gl.glTranslatef(3.0f, 0.0f, 27);\n\t gl.glRotatef(neptuneRotation+= (0.01f/speed), 0, 1, 0);\n\t this.neptune.draw(gl);\n\t gl.glPopMatrix();\n\t \n\t \n\t gl.glPopMatrix();\n\t gl.glPopMatrix();\n\t \n\t \n\t \n\t\t\n\t}", "title": "" }, { "docid": "b6137cb77eafa8af9f8028bca43328b1", "score": "0.60620284", "text": "public interface GL21 {\n\tpublic static final int GL_NONE = 0;\n\t\n\tpublic static final int GL_TRUE = 1;\n\tpublic static final int GL_FALSE = 0;\n\t\n\tpublic static final int GL_POINT = 6912;\n\tpublic static final int GL_LINE = 6913;\n\t\n\tpublic static final int GL_POINTS = 0;\n\tpublic static final int GL_LINES = 2;\n\tpublic static final int GL_LINE_STRIP = 3;\n\tpublic static final int GL_LINE_LOOP = 2;\n\tpublic static final int GL_TRIANGLES = 4;\n\tpublic static final int GL_TRIANGLE_FAN = 6;\n\tpublic static final int GL_TRIANGLE_STRIP = 7;\n\t\n\tpublic static final int GL_CULL_FACE = 2884;\n\tpublic static final int GL_FRONT = 1028;\n\tpublic static final int GL_BACK = 1029;\n\t\n\tpublic static final int GL_DOUBLE = 5130;\n\tpublic static final int GL_FLOAT = 5126;\n\tpublic static final int GL_INT = 5124;\n\tpublic static final int GL_BYTE = 5120;\n\tpublic static final int GL_UNSIGNED_BYTE = 5121;\n\tpublic static final int GL_SHORT = 5122;\n\t\n\tpublic static final int GL_BLEND = 3042;\n\tpublic static final int GL_SRC_COLOR = 768;\n\tpublic static final int GL_ONE_MINUS_SRC_COLOR = 769;\n\tpublic static final int GL_DST_COLOR = 774;\n\tpublic static final int GL_ONE_MINUS_DST_COLOR = 775;\n\tpublic static final int GL_SRC_ALPHA = 770;\n\tpublic static final int GL_ONE_MINUS_SRC_ALPHA = 771;\n\tpublic static final int GL_DST_ALPHA = 772;\n\tpublic static final int GL_ONE_MINUS_DST_ALPHA = 773;\n\tpublic static final int GL_CONSTANT_COLOR = 32769;\n\tpublic static final int GL_ONE_MINUS_CONSTANT_COLOR = 32770;\n\tpublic static final int GL_CONSTANT_ALPHA = 32771;\n\tpublic static final int GL_ONE_MINUS_CONSTANT_ALPHA = 32772;\n\tpublic static final int GL_SRC_ALPHA_SATURATE = 776;\n\t\n\tpublic static final int GL_MAX_TEXTURE_IMAGE_UNITS = 34930;\n\tpublic static final int GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS = 35661;\n\tpublic static final int GL_MAX_VARYING_FLOATS = 35659;\n\tpublic static final int GL_MAX_VERTEX_UNIFORM_COMPONENTS = 35658;\n\tpublic static final int GL_MAX_FRAGMENT_UNIFORM_COMPONENTS = 35657;\n\tpublic static final int GL_MAX_UNIFORM_LOCATIONS = 33390;\n\t\n\tpublic static final int GL_TEXTURE_1D = 3552;\n\tpublic static final int GL_TEXTURE_2D = 3553;\n\tpublic static final int GL_TEXTURE_3D = 32879;\n\t\n\tpublic static final int GL_TEXTURE_RECTANGLE = 34037;\n\t\n\tpublic static final int GL_TEXTURE_CUBE_MAP = 34067;\n\t\n\tpublic static final int GL_DEPTH_STENCIL_TEXTURE_MODE = 37098;\n\tpublic static final int GL_TEXTURE_BASE_LEVEL = 33084;\n\tpublic static final int GL_TEXTURE_BORDER_COLOR = 4100;\n\tpublic static final int GL_TEXTURE_COMPARE_FUNC = 34893;\n\tpublic static final int GL_TEXTURE_COMPARE_MODE = 34892;\n\tpublic static final int GL_TEXTURE_LOD_BIAS = 34049;\n\tpublic static final int GL_TEXTURE_MIN_FILTER = 10241;\n\tpublic static final int GL_TEXTURE_MAG_FILTER = 10240;\n\tpublic static final int GL_TEXTURE_MIN_LOD = 33082;\n\tpublic static final int GL_TEXTURE_MAX_LOD = 33083;\n\tpublic static final int GL_TEXTURE_MAX_LEVEL = 33085;\n\tpublic static final int GL_TEXTURE_WRAP_S = 10242;\n\tpublic static final int GL_TEXTURE_WRAP_T = 10243;\n\tpublic static final int GL_TEXTURE_WRAP_R = 32882;\n\t\n\tpublic static final int GL_LEQUAL = 515;\n\tpublic static final int GL_GEQUAL = 518;\n\tpublic static final int GL_LESS = 513;\n\tpublic static final int GL_GREATER = 516;\n\tpublic static final int GL_EQUAL = 514;\n\tpublic static final int GL_NOTEQUAL = 517;\n\tpublic static final int GL_ALWAYS = 519;\n\tpublic static final int GL_NEVER = 512;\n\t\n\tpublic static final int GL_NEAREST = 9728;\n\tpublic static final int GL_LINEAR = 9729;\n\tpublic static final int GL_NEAREST_MIPMAP_NEAREST = 9984;\n\tpublic static final int GL_LINEAR_MIPMAP_NEAREST = 9985;\n\tpublic static final int GL_NEAREST_MIPMAP_LINEAR = 9986;\n\tpublic static final int GL_LINEAR_MIPMAP_LINEAR = 9987;\n\t\n\tpublic static final int GL_UNPACK_ALIGNMENT = 3317;\n\t\n\tpublic static final int GL_RG = 33319;\n\tpublic static final int GL_RGB = 6407;\n\tpublic static final int GL_RGBA = 6408;\n\t\n\tpublic static final int GL_R8 = 33321;\n\tpublic static final int GL_RG8 = 33323;\n\tpublic static final int GL_RGB8 = 32849;\n\tpublic static final int GL_RGBA8 = 32856;\n\t\n\tpublic static final int GL_R32F = 33326;\n\tpublic static final int GL_RG32F = 33328;\n\tpublic static final int GL_RGB32F = 34837;\n\tpublic static final int GL_RGBA32F = 34836;\n\t\n\tpublic static final int GL_TEXTURE0 = 33984;\n\t\n\tpublic static final int GL_CLAMP_TO_EDGE = 33071;\n\tpublic static final int GL_CLAMP_TO_BORDER = 33069;\n\tpublic static final int GL_REPEAT = 10497;\n\tpublic static final int GL_MIRRORED_REPEAT = 33648;\n\t\n\tpublic static final int GL_RED = 6403;\n\tpublic static final int GL_GREEN = 6404;\n\tpublic static final int GL_BLUE = 6405;\n\tpublic static final int GL_ALPHA = 6406;\n\t\n\tpublic static final int GL_ZERO = 0;\n\tpublic static final int GL_ONE = 1;\n\t\n\tpublic static final int\tGL_COLOR_BUFFER_BIT\t= 16384;\n\tpublic static final int GL_DEPTH_BUFFER_BIT = 256;\n\tpublic static final int\tGL_STENCIL_BUFFER_BIT= 1024;\n\t\n\tpublic static final int\tGL_DEPTH_TEST = 2929;\n\tpublic static final int\tGL_DEPTH_WRITEMASK = 2930;\n\t\n\tpublic static final int GL_COMPILE_STATUS = 35713;\n\t\n\tpublic static final int GL_VERTEX_SHADER = 35633;\n\tpublic static final int GL_FRAGMENT_SHADER = 35632;\n\t\n\tpublic static final int GL_MAX_VERTEX_ATTRIBS = 34921;\n\t\n\tpublic static final int GL_LINK_STATUS = 35714;\n\t\n\tpublic static final int GL_INFO_LOG_LENGTH = 35716;\n\t\n\tpublic static final int GL_ARRAY_BUFFER = 34962;\n\t\n\tpublic static final int GL_STATIC_DRAW = 35044;\n\tpublic static final int GL_DYNAMIC_DRAW = 35048;\n\t\n\tpublic static final int GL_NO_ERROR = 0;\n\t\n\tpublic int glGetError();\n\t\n\tpublic void glEnable(int cap);\n\tpublic void glDisable(int cap);\n\t\n\tpublic boolean glGetBoolean(int pname);\n\tpublic float glGetFloat(int pname);\n\tpublic int glGetInteger(int pname);\n\t\n\tpublic void glCullFace(int mode);\n\t\n\tpublic void glViewport(int x, int y, int width, int height);\n\t\n\tpublic void glClearColor(float red, float green, float blue, float alpha);\n\tpublic void glClear(int mask);\n\t\n\tpublic int glGenBuffers();\n\t\n\tpublic void glBindBuffer(int target, int buffer);\n\t\n\tpublic void glBufferData(int target, ByteBuffer data, int usage);\n\t\n\tpublic void glBufferData(int target, DoubleBuffer data, int usage);\n\t\n\tpublic void glBufferData(int target, FloatBuffer data, int usage);\n\t\n\tpublic void glBufferData(int target, IntBuffer data, int usage);\n\t\n\tpublic void glBufferData(int target, long data_size, int usage);\n\t\n\tpublic void glBufferData(int target, ShortBuffer data, int usage);\n\t\n\tpublic void glBufferSubData(int target, long offset, java.nio.ByteBuffer data);\n\t\n\tpublic void glEnableVertexAttribArray(int index);\n\t\n\tpublic void glDisableVertexAttribArray(int index);\n\t\n\tpublic void glDeleteBuffers(int buffer);\n\t\n\tpublic void glVertexAttribPointer(int index, int size, int type,\n\t\t\tboolean normalized, int stride, long buffer_buffer_offset);\n\t\n\tpublic void glDrawArrays(int mode, int first, int count);\n\t\n\tpublic int glGenTextures();\n\t\n\tpublic void glActiveTexture(int texture);\n\t\n\tpublic void glBindTexture(int target, int texture);\n\t\n\tpublic void glPixelStorei(int pname, int param);\n\t\n\tpublic void glTexImage2D(int target, int level, int internalformat, int width, int height, int border, int format, int type, java.nio.ByteBuffer pixels);\n\t\n\tpublic void glTexParameter(int target, int pname, FloatBuffer param);\n\t\n\tpublic void glTexParameter(int target, int pname, IntBuffer param);\n\t\n\tpublic void glTexParameterf(int target, int pname, float param);\n\t\n\tpublic void glTexParameteri(int target, int pname, int param);\n\t\n\tpublic void glTexImage3D(int target, int level, int internalFormat,\n\t\t\tint width, int height, int depth, int border, int format, int type,\n\t\t\tByteBuffer pixels);\n\t\n\tpublic void glDeleteTextures(int texture);\n\t\n\tpublic int glCreateShader(int type);\n\tpublic void glDeleteShader(int shader);\n\t\n\tpublic void glShaderSource(int shader, java.nio.ByteBuffer string);\n\tpublic void glShaderSource(int shader, java.lang.CharSequence string);\n\tpublic void glShaderSource(int shader, java.lang.CharSequence[] strings);\n\t\n\tpublic void glCompileShader(int shader);\n\t\n\tpublic String glGetShaderInfoLog(int shader, int maxLength);\n\t\n\tpublic int glCreateProgram();\n\tpublic void glLinkProgram(int program);\n\tpublic void glValidateProgram(int program);\n\tpublic void glDeleteProgram(int program);\n\t\n\tpublic void glAttachShader(int program, int shader);\n\t\n\tpublic void glBindAttribLocation(int program, int index, java.nio.ByteBuffer name);\n\tpublic void glBindAttribLocation(int program, int index, java.lang.CharSequence name);\n\t\n\tpublic int glGetShaderi(int shader, int pname);\n\tpublic void glGetShader(int shader, int pname, java.nio.IntBuffer params);\n\t\n\tpublic int glGetProgram(int program, int pname);\n\tpublic void glGetProgram(int program, int pname, java.nio.IntBuffer params);\n\tpublic void glUseProgram(int program);\n\t\n\tpublic int glGetAttribLocation(int program, java.lang.CharSequence name);\n\t\n\tpublic int glGetUniformLocation(int program, java.lang.CharSequence name);\n\t\n\tpublic void glGetUniform(int program, int location, java.nio.IntBuffer params);\n\t\n\tpublic void glUniform1f(int location, float v0);\n\tpublic void glUniform1(int location, java.nio.FloatBuffer value);\n\tpublic void glUniform1i(int location, int v0);\n\tpublic void glUniform1(int location, java.nio.IntBuffer value);\n\tpublic void glUniform2f(int location, float v0, float v1);\n\tpublic void glUniform2(int location, java.nio.FloatBuffer value);\n\tpublic void glUniform2i(int location, int v0, int v1);\n\tpublic void glUniform2(int location, java.nio.IntBuffer value);\n\tpublic void glUniform3f(int location, float v0, float v1, float v2);\n\tpublic void glUniform3(int location, java.nio.FloatBuffer value);\n\tpublic void glUniform3i(int location, int v0, int v1, int v2);\n\tpublic void glUniform3(int location, java.nio.IntBuffer value);\n\tpublic void glUniform4f(int location, float v0, float v1, float v2, float v3);\n\tpublic void glUniform4(int location, java.nio.FloatBuffer value);\n\tpublic void glUniform4i(int location, int v0, int v1, int v2, int v3);\n\tpublic void glUniform4(int location, java.nio.IntBuffer value);\n\t\n\tpublic void\tglUniformMatrix2(int location, boolean transpose, java.nio.FloatBuffer matrices);\n\tpublic void\tglUniformMatrix3(int location, boolean transpose, java.nio.FloatBuffer matrices);\n\tpublic void\tglUniformMatrix4(int location, boolean transpose, java.nio.FloatBuffer matrices);\n\t\n\tpublic void glDrawElements(int mode, java.nio.ByteBuffer indices);\n\tpublic void glDrawElements(int mode, java.nio.IntBuffer indices);\n\tpublic void glDrawElements(int mode, java.nio.ShortBuffer indices);\n\tpublic void glDrawElements(int mode, int indices_count, int type, long indices_buffer_offset);\n\t\n\tpublic void glGetBufferParameter(int target, int pname, java.nio.IntBuffer params);\n\tpublic int glGetBufferParameteri(int target, int pname);\n\t\n\tpublic void glDepthMask(boolean flag);\n\tpublic void glDepthFunc(int func);\n\tpublic void glClearDepth(double depth);\n\t\n\tpublic void\tglColorMask(boolean red, boolean green, boolean blue, boolean alpha);\n\t\n\tpublic void glBlendFunc(int sfactor, int dfactor);\n\t\n\t/**\n\t * @post Obtiene una descripción del código de error especificado\n\t */\n\tpublic String getErrorString(int errorCode);\n}", "title": "" }, { "docid": "b9bee06ced9fecf0e8c1eb1c14ce6942", "score": "0.6052132", "text": "public void display() {\r\n\r\n\t\tfloat boxAmb[] = {0.9F, 0.0F, 0.0F, 1.0F};\r\n\t\tfloat boxDiff[] = {1.0F, 0.0F, 0.0F, 1.0F};\r\n\t\tfloat boxSpec[] = {0.2F, 0.2F, 0.0F, 1.0F};\r\n\t\tfloat cylAmb[] = {0.0F, 0.0F, 0.3F, 1.0F};\r\n\t\tfloat cylDiff[] = {0.0F, 0.0F, 0.3F, 1.0F};\r\n\t\tfloat cylSpec[] = {0.1F, 0.1F, 0.1F, 1.0F};\r\n\t\tfloat sphAmb[] = {1.0F, 1.0F, 0.0F, 0.5F};\r\n\t\tfloat sphDiff[] = {0.5F, 0.5F, 0.0F, 0.5F};\r\n\t\tfloat sphSpec[] = {1.0F, 1.0F, 0.0F, 0.0F};\r\n\t\t\r\n\t\tgl.use();\r\n\t\tgl.clearColor (0.0F, 0.0F, 0.0F, 0.0F);\r\n\t\tgl.clear(GL.COLOR_BUFFER_BIT | GL.DEPTH_BUFFER_BIT);\r\n\r\n\r\n\t\tgl.translate(0.0,0.0,distance);\r\n\t\tgl.rotate(-twist,0.0,0.0,1.0);\r\n\t\tgl.rotate(-elevation,1.0,0.0,0.0);\r\n\t\tgl.rotate(azimuth,0.0,0.0,1.0);\r\n\r\n\t\t// add a box\r\n\t\tgl.pushMatrix();\r\n\t\tgl.material(GL.FRONT_AND_BACK, GL.AMBIENT, boxAmb);\r\n\t\tgl.material(GL.FRONT_AND_BACK, GL.DIFFUSE, boxDiff);\r\n\t\tgl.material(GL.FRONT_AND_BACK, GL.SPECULAR, boxSpec);\r\n\t\tgl.rotate(cubeRoll, 1.0,0.0,0.0);\r\n\t\tgl.rotate(cubePitch, 0.0,1.0,0.0);\r\n\t\tgl.rotate(cubeYaw, 0.0,0.0,1.0);\r\n\t\tgl.callList(1);\r\n\t\tgl.popMatrix();\r\n\t\t\r\n\t\t// add a cylinder. \r\n\t\tgl.pushMatrix();\r\n\t\tgl.material(GL.FRONT_AND_BACK, GL.AMBIENT, cylAmb);\r\n\t\tgl.material(GL.FRONT_AND_BACK, GL.DIFFUSE, cylDiff);\r\n\t\tgl.material(GL.FRONT_AND_BACK, GL.SPECULAR, cylSpec);\r\n\t\tgl.translate(2, 0, 0);\r\n\t\tgl.rotate(cylinderRoll, 1.0,0.0,0.0);\r\n\t\tgl.rotate(cylinderPitch, 0.0,1.0,0.0);\r\n\t\tgl.rotate(cylinderYaw, 0.0,0.0,1.0);\r\n\t\tglu.cylinder(0.0, 1.0, 1.5, 32, 32);\r\n\t\tgl.translate(0, 0.0, 1.5); \r\n\t\tglu.disk(0.0, 1.0, 32, 5);\r\n\t\tgl.popMatrix();\r\n\r\n\t\t// add a sphere. \r\n\t\tgl.pushMatrix();\r\n\t\tgl.material(GL.FRONT_AND_BACK, GL.AMBIENT, sphAmb);\r\n\t\tgl.material(GL.FRONT_AND_BACK, GL.DIFFUSE, sphDiff);\r\n\t\tgl.material(GL.FRONT_AND_BACK, GL.SPECULAR, sphSpec);\r\n\t\tgl.translate(4, 0, 0); \r\n\t\tglu.sphere(0.5, 32, 32);\r\n\t\tgl.popMatrix();\r\n\r\n\t\tgl.flush(); // Make sure all commands have completed.\r\n\t\tgl.swap();\t // Swap the render buffer with the screen buffer\r\n\t}", "title": "" }, { "docid": "113db9b1f93f9a836c67ec1f909659c0", "score": "0.6028647", "text": "public static void setLightmapTextureCoords(int par0, float par1, float par2)\n {\n //MCAndroidPatch: FIXME\n /*if (useMultitextureARB)\n {\n ARBMultitexture.glMultiTexCoord2fARB(par0, par1, par2);\n }\n else\n {\n GL13.glMultiTexCoord2f(par0, par1, par2);\n }*/\n }", "title": "" }, { "docid": "64f588b12cc1e91ab98ff2f9e34f144e", "score": "0.6024704", "text": "WorldImage draw();", "title": "" }, { "docid": "6cc951194c50efb00ea02ed49cf8eb7b", "score": "0.60238785", "text": "@Override\n public void onDrawFrame(GL10 gl) {\n Log.d(\"xulei\",\" onDrawFrame ??\");\n // 清除屏幕和深度缓存\n gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT);\n // 重置当前的模型观察矩阵\n// gl.glLoadIdentity();\n//\n//\n// // 左移 1.5 单位,并移入屏幕 6.0\n// gl.glTranslatef(-1.5f, 0.0f, -6.0f);\n// //设置旋转\n// gl.glRotatef(rotateTri, 0.0f, 1.0f, 0.0f);\n//\n// //设置定点数组\n gl.glEnableClientState(GL10.GL_VERTEX_ARRAY);\n// //设置颜色数组\n// gl.glEnableClientState(GL10.GL_COLOR_ARRAY);\n//\n// gl.glColorPointer(4, GL10.GL_FIXED, 0, mColorBuffer);\n// // 设置三角形顶点\n// gl.glVertexPointer(3, GL10.GL_FIXED, 0, mTriangleBuffer);\n// //绘制三角形\n// gl.glDrawArrays(GL10.GL_TRIANGLES, 0, 3);\n//\n// gl.glDisableClientState(GL10.GL_COLOR_ARRAY);\n//\n// //绘制三角形结束\n// gl.glFinish();\n\n /***********************/\n /* 渲染正方形 */\n // 重置当前的模型观察矩阵\n gl.glLoadIdentity();\n\n // 左移 1.5 单位,并移入屏幕 6.0\n gl.glTranslatef(-1.5f, 0.0f, -1.0f);\n\n // 设置当前色为蓝色\n gl.glColor4f(0.5f, 0.5f, 1.0f, 1.0f);\n //设置旋转\n gl.glRotatef(rotateQuad, 1.0f, 1.0f, 0.0f);\n\n //设置和绘制正方形\n gl.glVertexPointer(3, GL10.GL_FIXED, 0, mQuateBuffer);\n gl.glDrawArrays(GL10.GL_TRIANGLE_STRIP, 0, 4);\n\n //绘制正方形结束\n gl.glFinish();\n\n //取消顶点数组\n gl.glDisableClientState(GL10.GL_VERTEX_ARRAY);\n\n //改变旋转的角度\n //rotateTri += 0.5f;\n rotateQuad -= 0.5f;\n }", "title": "" }, { "docid": "f5c5e0cfd6530b30a22aaa9b84eff107", "score": "0.59955376", "text": "public void render(GL10 gl) {\n\t\tif (isHidden())\n\t\t\treturn;\n\n\t\t//get the coordinates\n\t\tfloat x = (float)getX();\n\t\tfloat y = (float)getY();\n\t\tfloat w = (float)getWidth();\n\t\tfloat h = (float)getHeight();\n\n\t\t//use for quick transformations so it will only apply to this object\n\t\tgl.glPushMatrix();\n\n\t\t//if an angle is set rotate it\n\t\tif (hasRotation()) {\n\n\t\t\t//3. now move it back to complete the operation\n\t\t\tgl.glTranslatef(x + (w/2), y + (h/2), 0.0f);\n\n\t\t\t//2. now rotate the angle\n\t\t\tgl.glRotatef(getAngle(), 0.0f, 0.0f, 1.0f);\n\n\t\t\t//1. reset to origin as this open gl operation is done first (open gl operations done in reverse)\n\t\t\tgl.glTranslatef( -(w/2), -(h/2), 0.0f);\n\t\t} else {\n\n\t\t\t//assign render coordinates\n\t\t\tgl.glTranslatef(x, y, 0.0f);\n\t\t}\n\n\t\t//assign dimensions\n\t\tgl.glScalef(w, h, 0.0f);\n\n\t\t//enable texture rendering\n\t\tgl.glEnable(GL10.GL_TEXTURE_2D);\n\n\t\t//assign texture we want to use\n\t\tgl.glBindTexture(GL10.GL_TEXTURE_2D, getTextureId());\n\n\t\t//enable client state for our render\n\t\tgl.glEnableClientState(GL10.GL_VERTEX_ARRAY);\n\t\tgl.glEnableClientState(GL10.GL_TEXTURE_COORD_ARRAY);\n\n\t\t//provide our array of vertex coordinates\n\t\tgl.glVertexPointer(3, GL10.GL_FLOAT, 0, vertexBuffer);\n\n\t\t//coordinates on texture we want to render\n\t\tgl.glTexCoordPointer(2, GL10.GL_FLOAT, 0, textureBuffer);\n\n\t\t//render our texture based on the texture and vertex coordinates\n\t\tgl.glDrawArrays(GL10.GL_TRIANGLE_STRIP, 0, vertices.length / 3);\n\n\t\t//after rendering remove the transformation since we only needed it for this object\n\t\tgl.glPopMatrix();\n\t}", "title": "" }, { "docid": "5b5932a63e8510caa999889004716243", "score": "0.5988961", "text": "void Draw_GamePlay(GL10 gl)\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "f0b1feebbf28afe9b8e7ad8b651c4884", "score": "0.5981433", "text": "public static final void renderCoordinateSystemDebug() {\n if(ModConfiguration.getInstance().debug()) {\n Tessellator tessellator = Tessellator.getInstance();\n BufferBuilder buffer = tessellator.getBuffer();\n GlStateManager.disableTexture2D();\n GlStateManager.disableLighting();\n\n buffer.begin(3, DefaultVertexFormats.POSITION_COLOR);\n for (int i = 0; i <= 16; i++) {\n buffer.pos(((float) i) / 16.0F, 0, 0).color(255, 0, 0, 255).endVertex();\n }\n tessellator.draw();\n\n buffer.begin(3, DefaultVertexFormats.POSITION_COLOR);\n for (int i = 0; i <= 16; i++) {\n buffer.pos(0, ((float) i) / 16.0F, 0).color(0, 255, 0, 255).endVertex();\n }\n tessellator.draw();\n\n buffer.begin(3, DefaultVertexFormats.POSITION_COLOR);\n for (int i = 0; i <= 16; i++) {\n buffer.pos(0, 0, ((float) i) / 16.0F).color(0, 0, 255, 255).endVertex();\n }\n tessellator.draw();\n\n GlStateManager.enableLighting();\n GlStateManager.enableTexture2D();\n }\n }", "title": "" }, { "docid": "69d74c0a8a0a293191f2b37289db86bb", "score": "0.59793127", "text": "@Override\n\tpublic void onDrawFrame(GL10 arg0) \n\t{\n\t\t\n\t}", "title": "" }, { "docid": "443972a3182dede4c75f3d73ac1539e3", "score": "0.59651715", "text": "public void onDrawFrame(GL10 gl) {\n\t\t\t\tgl.glClear(GL10.GL_COLOR_BUFFER_BIT|GL10.GL_DEPTH_BUFFER_BIT);\n\t\t\t\tfloat[] x = mGLSurfaceView.getXPoints();\n\t\t\t\tfloat[] y = mGLSurfaceView.getYPoints();\n\t\t\t\t\n\t\t\t\tfloat[] vertices = new float[x.length*2];\n\t\t\t\tshort[] indices = new short[x.length];\n\t\t\t\t\n\t\t\t\tfor (int i = 0; i < x.length; i++) {\n\t\t\t\t\tvertices[0+(2*i)] = x[i];\n\t\t\t\t\tvertices[1+(2*i)] = -y[i];\n\t\t\t\t\tindices[i] = (short)i;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tFloatBuffer vertexBuffer;\n\t\t\t\tByteBuffer vbb = ByteBuffer.allocateDirect(vertices.length*4);\n\t\t\t\tvbb.order(ByteOrder.nativeOrder());\n\t\t\t\tvertexBuffer = vbb.asFloatBuffer();\n\t\t\t\tvertexBuffer.put(vertices);\n\t\t\t\tvertexBuffer.position(0);\n\t\t\t\t\n\t\t\t\tShortBuffer indexBuffer;\n\t\t\t\tByteBuffer ibb = ByteBuffer.allocateDirect(indices.length*2);\n\t\t\t\tibb.order(ByteOrder.nativeOrder());\n\t\t\t\tindexBuffer = ibb.asShortBuffer();\n\t\t\t\tindexBuffer.put(indices);\n\t\t\t\tindexBuffer.position(0);\n\t\t\t\t\n\t\t\t\tgl.glLoadIdentity();\n\t\t\t\tgl.glTranslatef(-1.0f, 1.0f, 0);\n\t\t\t\tgl.glPointSize(4.0f);\n\t\t\t\tgl.glColor4f(1.0f, 1.0f, 1.0f, 1.0f);\n\t\t\t\tgl.glEnableClientState(GL10.GL_VERTEX_ARRAY);\n\t\t\t\tgl.glVertexPointer(2, GL10.GL_FLOAT, 0, vertexBuffer);\n\t\t\t\tgl.glDrawElements(GL10.GL_LINES, indices.length, GL10.GL_UNSIGNED_SHORT, indexBuffer);\n\t\t\t\tgl.glDisableClientState(GL10.GL_VERTEX_ARRAY);\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "7d6a77ea399e939427c736120cb72e4c", "score": "0.59612036", "text": "@Override\n\tpublic void display(GL gl) {\n\t}", "title": "" }, { "docid": "ee7cd88bec878b8bf600a194b88f736d", "score": "0.59517753", "text": "private static void render() {\n GL11.glMatrixMode(GL11.GL_PROJECTION);\n\n GL11.glLoadIdentity();\n\n GLU.gluPerspective(30f, aspect, 1f, 1000f);\n\n GLU.gluLookAt(200, 200, systemDimLength * 2, 0, 0, systemDimLength, 0, 0, 1);\n\n // clear the screen\n GL11.glClear(GL11.GL_COLOR_BUFFER_BIT | GL11.GL_STENCIL_BUFFER_BIT | GL11.GL_DEPTH_BUFFER_BIT);\n\n GL11.glPushMatrix();\n {\n // rotate square according to angle\n GL11.glRotatef(angle, 0, 0, 1.0f);\n\n GL11.glColor3f(0.5f, 0.5f, 0.5f);\n\n GL11.glBegin(GL11.GL_QUADS);\n {\n GL11.glVertex3f(-systemDimLength, -systemDimLength, -1);\n GL11.glVertex3f(systemDimLength, -systemDimLength, -1);\n GL11.glVertex3f(systemDimLength, systemDimLength, -1);\n GL11.glVertex3f(-systemDimLength, systemDimLength, -1);\n }\n GL11.glEnd();\n\n GL11.glColor3f(0.0f, 1.0f, 0.0f);\n\n /*\n * Draw the particle in the system\n */\n\n GL11.glPointSize(5.0f);\n\n // Draw the analytical\n GL11.glColor3f(1.0f, 0.0f, 0.0f);\n GL11.glBegin(GL11.GL_POINTS);\n {\n GL11.glVertex3f(simulation.pAnalytical.x.x, simulation.pAnalytical.x.y, simulation.pAnalytical.x.z);\n }\n GL11.glEnd();\n\n // Draw integrators\n GL11.glColor3f(0.0f, 0.0f, 1.0f);\n GL11.glBegin(GL11.GL_POINTS);\n {\n GL11.glVertex3f(simulation.pExplicit.x.x, simulation.pExplicit.x.y, simulation.pExplicit.x.z);\n GL11.glVertex3f(simulation.pBetter.x.x, simulation.pBetter.x.y, simulation.pBetter.x.z);\n }\n GL11.glEnd();\n\n /**\n * Shadows!\n */\n GL11.glColor4f(0.0f, 0.0f, 0.0f, .5f);\n GL11.glBegin(GL11.GL_POINTS);\n {\n if (simulation.pAnalytical.x.z >= 0)\n GL11.glVertex3f(simulation.pAnalytical.x.x, simulation.pAnalytical.x.y, 0);\n if (simulation.pExplicit.x.z >= 0)\n GL11.glVertex3f(simulation.pExplicit.x.x, simulation.pExplicit.x.y, 0);\n if (simulation.pBetter.x.z >= 0)\n GL11.glVertex3f(simulation.pBetter.x.x, simulation.pBetter.x.y, 0);\n }\n GL11.glEnd();\n }\n GL11.glPopMatrix();\n }", "title": "" }, { "docid": "5491cbef27e21c398beec5741b1f113d", "score": "0.5950012", "text": "public boolean Load( Bitmap bitmap ) //rename this to glLoad and don't have it as an initializer parameter\n\t{\n\t /*many thanks to sprite method test if this works*/\n\t if ( gl == null )\n\t {\n\t Log.e(TAG, \"Failed to load resource. Context/GL is NULL\");\n\t return false;\n\t }\n\t int error;\n\t\n\t int textureName = -1;\n\t gl.glGenTextures(1, texture, 0);\n\t textureName = texture[0];\n\t\n\t //Log.d(TAG, \"Generated texture: \" + textureName);\n\t gl.glBindTexture(GL10.GL_TEXTURE_2D, textureName);\n\t gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MIN_FILTER, GL10.GL_NEAREST);\n\t gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MAG_FILTER, GL10.GL_LINEAR);\n\t gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_WRAP_S, GL10.GL_CLAMP_TO_EDGE);\n\t gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_WRAP_T, GL10.GL_CLAMP_TO_EDGE);\n\t //gl.glTexEnvf(GL10.GL_TEXTURE_ENV, GL10.GL_TEXTURE_ENV_MODE, GL10.GL_REPLACE);\n\t gl.glTexEnvf(GL10.GL_TEXTURE_ENV, GL10.GL_TEXTURE_ENV_COLOR, GL10.GL_REPLACE );\n\t\n\t \n\t GLUtils.texImage2D(GL10.GL_TEXTURE_2D, 0, bitmap, 0);\n\t\n\t mCropWorkspace[0] = 0;\n\t mCropWorkspace[1] = bitmap.getHeight();\n\t mCropWorkspace[2] = bitmap.getWidth();\n\t mCropWorkspace[3] = -bitmap.getHeight();\n\t\n\t ((GL11) gl).glTexParameteriv(GL10.GL_TEXTURE_2D, \n\t GL11Ext.GL_TEXTURE_CROP_RECT_OES, mCropWorkspace, 0);\n\t\n\t error = gl.glGetError();\n\t if (error != GL10.GL_NO_ERROR)\n\t { \n\t Log.e(TAG, \"GL Texture Load Error: \" + error);\n\t\n\t }\n\t Log.d(TAG, \"Loaded texture: \" + textureName);\n\t return true;\n\t}", "title": "" }, { "docid": "5c1ff58a51dabf5dcf9f08d52177a647", "score": "0.5944264", "text": "public void init()\r\n {\r\n\t\tfloat lightPos[] = {0.0F, 0.0F, 2.0F, 1.0F};\r\n\t\tfloat lightDir[] = {0.0F, 0.0F, 0.0F, 1.0F};\r\n\t\tfloat lightAmb[] = {0.7F, 0.7F, 0.7F, 1.0F};\r\n\t\tfloat lightDiff[] = {0.8F, 0.8F, 0.8F, 1.0F};\r\n\t\tfloat lightSpec[] = {0.4F, 0.4F, 0.4F, 1.0F};\r\n\r\n\t\tinitLess = false;\r\n\t\t\r\n\t\t/* initialize the widget */\r\n\t\tint width = gl.getWidth();\r\n\t\tint height = gl.getHeight();\r\n\t\tfloat boxCors[][] = { {-0.5F, -0.5F, -0.5F},\r\n\t\t\t\t\t\t\t{0.5F, -0.5F, -0.5F},\r\n\t\t\t\t\t\t\t{0.5F, 0.5F, -0.5F},\r\n\t\t\t\t\t\t\t{-0.5F, 0.5F, -0.5F},\r\n\t\t\t\t\t\t\t{-0.5F, -0.5F, 0.5F},\r\n\t\t\t\t\t\t\t{0.5F, -0.5F, 0.5F},\r\n\t\t\t\t\t\t\t{0.5F, 0.5F, 0.5F},\r\n\t\t\t\t\t\t\t{-0.5F, 0.5F, 0.5F} };\r\n\t\tint boxIndex[] = { 0, 1, 2, 3, // Face 1\r\n\t\t\t\t\t\t\t4, 5, 6, 7, // Face 2\r\n\t\t\t\t\t\t\t0, 1, 5, 4, // Face 3\r\n\t\t\t\t\t\t\t2, 6, 7, 3, // Face 4\r\n\t\t\t\t\t\t\t1, 2, 6, 5, // Face 5\r\n\t\t\t\t\t\t\t0, 3, 7, 4 }; // Face 6\r\n \r\n\t\t// Initialize the rendering viewport size to OpenGL\r\n\t\tgl.viewport( 0, -2, width, height );\r\n\t\tgl.matrixMode( GL.PROJECTION );\t// Set up the camera mode\r\n\t\tgl.loadIdentity();\t\t\t\t\t// Reset the transformation matrix\r\n\t\tgl.ortho(-6.0, 6.0, -6.0, 6.0, -6.0, 6.0); // Set region of interest\r\n\t\tgl.matrixMode( GL.MODELVIEW );\t\t// Reset to model transforms\r\n\t\tgl.translate(0.0,0.0,distance);\r\n\t\tgl.rotate(twist,0.0,0.0,1.0);\r\n\t\tgl.rotate(elevation,1.0,0.0,0.0);\r\n\t\tgl.rotate(azimuth,0.0,0.0,1.0);\r\n\r\n\t\tgl.blendFunc(GL.SRC_ALPHA, GL.ONE_MINUS_SRC_ALPHA);\r\n\t\tgl.depthFunc( GL.LEQUAL );\r\n\t\tgl.texEnv( GL.TEXTURE_ENV, GL.TEXTURE_ENV_MODE, GL.MODULATE );\r\n\r\n//\t\tgl.color(1.0, 0.0, 0.0);\r\n\t\tgl.enable(GL.LIGHTING);\r\n\t\tgl.enable(GL.LIGHT0);\r\n\t\tgl.light(GL.LIGHT0, GL.POSITION, lightPos);\r\n\t\tgl.light(GL.LIGHT0, GL.SPOT_DIRECTION, lightDir);\r\n\t\tgl.light(GL.LIGHT0, GL.AMBIENT, lightAmb);\r\n\t\tgl.light(GL.LIGHT0, GL.DIFFUSE, lightDiff);\r\n\t\tgl.light(GL.LIGHT0, GL.SPECULAR, lightSpec);\r\n\t\tgl.enable(GL.DEPTH_TEST);\r\n\t\tgl.shadeModel (GL.SMOOTH);\r\n\t\tgl.lightModel(GL.LIGHT_MODEL_TWO_SIDE, GL.TRUE);\r\n\t\tgl.enable(GL.DITHER);\r\n\r\n\t\t// Lets draw a box\r\n\t\t\r\n\t\tgl.newList(1, GL.COMPILE);\r\n\t\tfor (int i=0;i<6;i++ ) { // For all faces\r\n\t\t\tgl.begin(GL.POLYGON);\r\n\t\t\tfor (int j=0;j<4;j++) { // for each vertex\r\n\t\t\t\t//Added this as a convenience\r\n\t\t\t\tvertexv(boxCors[boxIndex[(i*4)+j]]);\r\n\t\t\t}\r\n\t\t\tgl.end();\r\n\t\t}\r\n\t\tgl.endList();\r\n\r\n }", "title": "" }, { "docid": "ac1fcff9e81cdb08f526380795367920", "score": "0.5944207", "text": "@Override\n\tpublic void onDrawFrame(GL10 arg0) {\n\t}", "title": "" }, { "docid": "d556821124492cb6fd7ef3cd31dd0193", "score": "0.59435284", "text": "public light() {\n // initialize vertex byte buffer for com.example.android.shape coordinates\n ByteBuffer bb = ByteBuffer.allocateDirect(Vertices.length * 4); // (# of coordinate values * 4 bytes per float)\n bb.order(ByteOrder.nativeOrder());\n vertexBuffer = bb.asFloatBuffer();\n vertexBuffer.put(Vertices);\n vertexBuffer.position(0);\n\n // initialize vertex byte buffer for com.example.android.shape coordinates\n bb = ByteBuffer.allocateDirect(Normals.length * 4);\n bb.order(ByteOrder.nativeOrder());\n normalBuffer = bb.asFloatBuffer();\n normalBuffer.put(Normals);\n normalBuffer.position(0);\n\n // prepare shaders and OpenGL program\n int vertexShader = MyGLRenderer.loadShader(\n GLES20.GL_VERTEX_SHADER,\n vertexShaderCode\n );\n int fragmentShader = MyGLRenderer.loadShader(\n GLES20.GL_FRAGMENT_SHADER,\n fragmentShaderCode\n );\n\n mProgram = GLES20.glCreateProgram(); // create empty OpenGL Program\n GLES20.glAttachShader(mProgram, vertexShader); // add the vertex shader to program\n GLES20.glAttachShader(mProgram, fragmentShader); // add the fragment shader to program\n GLES20.glLinkProgram(mProgram); // create OpenGL program executables\n }", "title": "" }, { "docid": "68fc60f45f182bd5565afdea976f5720", "score": "0.59378964", "text": "private static void createModels(GL3 gl, Camera camera){\n \n// create lights\n Vec3 position = new Vec3(5, 12, 0);\n modelMatrix = Mat4Transform.scale(4, 1, 3);\n modelMatrix = Mat4.multiply(Mat4Transform.translate(position), modelMatrix);\n roomLight1 = new WorldLight(gl, camera, position, modelMatrix);\n \n position = new Vec3(-5, 12, 0);\n modelMatrix = Mat4Transform.scale(4, 1, 3);\n modelMatrix = Mat4.multiply(Mat4Transform.translate(position), modelMatrix);\n roomLight2 = new WorldLight(gl, camera, position, modelMatrix);\n \n position = new Vec3(0, 12, 20);//new Vec3(-20, 12, 0);//new Vec3(-20, 12, -40);\n modelMatrix = Mat4Transform.scale(1,1,1);\n modelMatrix = Mat4.multiply(Mat4Transform.translate(position), modelMatrix);\n sunLight = new SunLight(gl, camera, position, modelMatrix);\n \n modelMatrix = Mat4Transform.scale(1,1,1);\n lampLight = new LampLight(gl, camera, modelMatrix);\n \n// create floor\n int [] texture = TextureLibrary.loadTexture(gl, \"textures/GroundTireTracks diffuse.jpg\");\n int [] texture2 = TextureLibrary.loadTexture(gl, \"textures/GroundTireTracks reflect.jpg\");\n modelMatrix = Mat4Transform.scale(16,1,16);\n floor = new Square(gl, camera, roomLight1, roomLight1, sunLight, lampLight, texture, texture2, modelMatrix);\n \n// create room light holde\n texture = TextureLibrary.loadTexture(gl, \"textures/Metal diffuse.jpg\");\n texture2 = TextureLibrary.loadTexture(gl, \"textures/Metal reflect.jpg\");\n roomLightHolder = new Cube(gl, camera, roomLight1, roomLight2, sunLight, lampLight, texture, texture2, modelMatrix);\n\n// create window\n texture = TextureLibrary.loadTexture(gl, \"textures/outside.jpeg\");\n modelMatrix = Mat4Transform.scale(16, 1, 16);\n window = new Square(gl, camera, sunLight, texture, modelMatrix);\n \n// create wall\n texture = TextureLibrary.loadTexture(gl, \"textures/Marble diffuse.jpg\");\n texture2 = TextureLibrary.loadTexture(gl, \"textures/Marble reflection.jpg\");\n modelMatrix = Mat4Transform.scale(4,1,4);\n wall = new Square(gl, camera, roomLight1, roomLight2, sunLight, lampLight, texture, texture2, modelMatrix);\n\n// create table\n texture = TextureLibrary.loadTexture(gl, \"textures/Wood diffuse.jpg\");\n texture2 = TextureLibrary.loadTexture(gl, \"textures/Wood reflect.jpg\");\n modelMatrix = Mat4Transform.scale(2,4,2);\n table = new Cube(gl, camera, roomLight1, roomLight2, sunLight, lampLight, texture, texture2, modelMatrix);\n \n// create window frame\n texture = TextureLibrary.loadTexture(gl, \"textures/mar0kuu2.jpg\");\n texture2 = TextureLibrary.loadTexture(gl, \"textures/mar0kuu2_specular.jpg\");\n windowFrame = new Cube(gl, camera, roomLight1, roomLight2, sunLight, lampLight, texture, texture2, modelMatrix);\n \n// create lamp\n texture = TextureLibrary.loadTexture(gl, \"textures/Plaster diffuse.jpg\");\n texture2 = TextureLibrary.loadTexture(gl, \"textures/Plaster reflect.jpg\");\n modelMatrix = Mat4Transform.scale(4,4,4);\n lampArm = new Sphere(gl, camera, roomLight1, roomLight2, sunLight, lampLight, texture, texture2, modelMatrix);\n \n lampBase = new Cube(gl, camera, roomLight1, roomLight2, sunLight, lampLight, texture, texture2, modelMatrix);\n \n texture = TextureLibrary.loadTexture(gl, \"textures/Metal diffuse.jpg\");\n texture2 = TextureLibrary.loadTexture(gl, \"textures/Metal reflect.jpg\");\n lampHeadSphere = new Sphere(gl, camera, roomLight1, roomLight2, sunLight, lampLight, texture, texture2, modelMatrix);\n \n lampWire = new Cube(gl, camera, roomLight1, roomLight2, sunLight, lampLight, texture, texture2, modelMatrix);\n \n lampBaseNode = new Sphere(gl, camera, roomLight1, roomLight2, sunLight, lampLight, texture, texture2, modelMatrix);\n \n// create other objects\n texture = TextureLibrary.loadTexture(gl, \"textures/paper.jpg\");\n modelMatrix = Mat4Transform.scale(2, 1, 2);\n paper = new Square(gl, camera, roomLight1, roomLight2, sunLight, lampLight, texture, modelMatrix);\n \n// clock\n texture = TextureLibrary.loadTexture(gl, \"textures/clock.jpg\");\n modelMatrix = new Mat4();\n clock = new Cube(gl, camera, roomLight1, roomLight2, sunLight, lampLight, texture, modelMatrix);\n \n texture = TextureLibrary.loadTexture(gl, \"textures/Metal diffuse.jpg\");\n texture2 = TextureLibrary.loadTexture(gl, \"textures/Metal reflect.jpg\");\n modelMatrix = Mat4Transform.scale(1,1,1); \n clockHand = new Sphere(gl, camera, roomLight1, roomLight2, sunLight, lampLight, texture, texture2, modelMatrix);\n \n texture = TextureLibrary.loadTexture(gl, \"textures/FabricRope diffuse.jpg\");\n texture2 = TextureLibrary.loadTexture(gl, \"textures/FabricRope reflect.jpg\");\n modelMatrix = Mat4Transform.scale(1, 1, 1);\n postBox = new Cube(gl, camera, roomLight1, roomLight2, sunLight, lampLight, texture, texture2, modelMatrix);\n \n// laptop\n texture = TextureLibrary.loadTexture(gl, \"textures/skin.jpg\"); \n modelMatrix = Mat4Transform.scale(1, 1, 1);\n laptop = new Cube(gl, camera, roomLight1, roomLight2, sunLight, lampLight, texture, modelMatrix);\n \n texture = TextureLibrary.loadTexture(gl, \"textures/ven0aaa2.jpg\");\n texture2 = TextureLibrary.loadTexture(gl, \"textures/ven0aaa2_specular.jpg\");\n modelMatrix = Mat4Transform.scale(4,1,4);\n laptopScreen = new Cube(gl, camera, roomLight1, roomLight2, sunLight, lampLight, texture, texture2, modelMatrix);\n \n texture = TextureLibrary.loadTexture(gl, \"textures/GroundForest diffuse.jpg\"); \n texture2 = TextureLibrary.loadTexture(gl, \"textures/GroundForest reflect.jpg\");\n modelMatrix = Mat4Transform.scale(1, 1, 1);\n laptopNode = new Sphere(gl, camera, roomLight1, roomLight2, sunLight, lampLight, texture, texture2, modelMatrix);\n \n texture = TextureLibrary.loadTexture(gl, \"textures/keyboard.jpg\");\n laptopKeyboard = new Cube(gl, camera, roomLight1, roomLight2, sunLight, lampLight, texture, modelMatrix);\n }", "title": "" }, { "docid": "63056898e0500cfc53867a38a2a06bcc", "score": "0.5919332", "text": "static void DrawTexture(GL10 gl,SimplePlane Tex,float x,float y)\n\t{\n\t\tTex.drawPos(gl, x, y);\n\t}", "title": "" }, { "docid": "ae919163dcb579b130d3d0528a98c44c", "score": "0.5900484", "text": "@Override\n public void onDrawFrame(GL10 gl) {\n // Clear color and depth buffers using clear-value set earlier\n gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT);\n\n // You OpenGL|ES rendering code here\n gl.glLoadIdentity(); //Reset model-view matrix\n gl.glRotatef(xrot, 1.0f, 0, 0);\n gl.glRotatef(yrot, 0, 1.0f, 0);\n gl.glTranslatef(-xpos-3,-ypos, -zpos); // Translate left and into the screen\n\n\n // Translate right, relative to the previous translation\n gl.glLoadIdentity(); // Reset the mode-view matrix\n if(zpos < 1.1f) { //blocks the camera to go through the cube\n\n zpos = 1.1f;\n }\n gl.glRotatef(xrot, 1.0f, 0, 0);\n gl.glRotatef(yrot, 0, 1.0f, 0);\n gl.glTranslatef(-xpos,-ypos, -zpos);\n\n Log.d(\"GL\", \"onDrawFrame: xrot:\" + String.valueOf(xrot) + \"yrot:\" + String.valueOf(yrot) + \"xpos:\" + String.valueOf(xpos) + \"ypos:\" + String.valueOf(ypos) + \"zpos\" + String.valueOf(zpos));\n\n kostka.draw(gl, filter);\n }", "title": "" }, { "docid": "60e38c761ba726a5954200087b022d58", "score": "0.58927965", "text": "@Override\r\n\tvoid Draw(GobList gl) {\n\r\n\t}", "title": "" }, { "docid": "c7c3fd4c9dba434c694caf43a3d77d9c", "score": "0.5892477", "text": "public void mo24164b() {\n GLES20.glBindAttribLocation(this.f15543d, 0, \"a_Position\");\n GLES20.glBindAttribLocation(this.f15543d, 1, \"a_TexCoord\");\n }", "title": "" }, { "docid": "adebd57a6cac7fbb1bb447a228d65bd5", "score": "0.58866036", "text": "public void init(GLAutoDrawable canvas)\n {\n GL2 gl = canvas.getGL().getGL2();\n\n // Setting the clear color -- the color which will be used to erase the canvas.\n gl.glClearColor(0, 0, 0, 0);\n\n // Selecting the modelview matrix.\n gl.glMatrixMode(GLMatrixFunc.GL_MODELVIEW);\n\n gl.glEnable(GL.GL_LINE_SMOOTH);\n\n // Activate the GL_BLEND state variable. Means activating blending.\n gl.glEnable(GL.GL_BLEND);\n\n // Set the blend function. For antialiasing it is set to GL_SRC_ALPHA for the source\n // and GL_ONE_MINUS_SRC_ALPHA for the destination pixel.\n gl.glBlendFunc(GL.GL_SRC_ALPHA, GL.GL_ONE_MINUS_SRC_ALPHA);\n\n // Control GL_LINE_SMOOTH_HINT by applying the GL_DONT_CARE behavior.\n // Other behaviours include GL_FASTEST or GL_NICEST.\n gl.glHint(GL.GL_LINE_SMOOTH_HINT, GL.GL_DONT_CARE);\n // Uncomment the following two lines in case of polygon antialiasing\n //gl.glEnable(GL.GL_POLYGON_SMOOTH);\n //glHint(GL_POLYGON_SMOOTH_HINT, GL_NICEST);\n\n }", "title": "" }, { "docid": "0c05501a44b30c34ec0e1d9ce39feb04", "score": "0.58791685", "text": "public void glRender(GLRenderContext glc) {\n glc.glDisable(GLC.GL_BLEND);\n glc.glDepthMask(true);\n glc.glClear(GLC.GL_COLOR_BUFFER_BIT | GLC.GL_DEPTH_BUFFER_BIT | GLC.GL_STENCIL_BUFFER_BIT); // clear the (OpenGL) Background\n glc.glMatrixMode(GLC.GL_MODELVIEW); \n glc.glLoadIdentity(); \n }", "title": "" }, { "docid": "00c6f652e76e925b9bc7c57e655ec129", "score": "0.5876461", "text": "public abstract void render(LightGlContext context);", "title": "" }, { "docid": "be72c2d14e6a68cb418a380aabc5eae3", "score": "0.5873975", "text": "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n thisActivity = this;\n // remove the title and status bars to make it full screen\n requestWindowFeature(Window.FEATURE_NO_TITLE);\n\n getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, \n WindowManager.LayoutParams.FLAG_FULLSCREEN);\n \n par = new TransformationParams();\n par.eyeX = 0f;\n par.eyeY = 20f;\n par.eyeZ = 15f;\n par.litePos[0] = 0f;\n par.litePos[1] = 0f;\n par.litePos[2] = 15f;\n \n mView = new GLView(this);\n mView.setRenderMode(GLSurfaceView.RENDERMODE_CONTINUOUSLY);\n \n \n sm = (SensorManager) getSystemService(SENSOR_SERVICE);\n myDisplay = getWindowManager().getDefaultDisplay();\n setContentView(R.layout.main);\n\n scoreText = (TextView) findViewById(R.id.score);\n gameOver = (TextView) findViewById(R.id.gameOver);\n gameOverScore = (TextView) findViewById(R.id.gameOverScore);\n newGameButton = (Button)findViewById(R.id.newGameButton);\n \n newGameButton.setOnClickListener(new OnClickListener(){\n\t\t\t@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tnewGame();\t\n\t\t\t}\n });\n \n lighting = (ToggleButton) findViewById(R.id.tblight);\n lighting.setOnCheckedChangeListener(new OnCheckedChangeListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n\t\t\t\trender.setLighting(isChecked);\n\t\t\t}\n\t\t});\n accel = (ToggleButton) findViewById(R.id.tbsensor);\n accel.setOnCheckedChangeListener(new OnCheckedChangeListener() {\n @Override\n public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n useSensor = isChecked;\n }\n });\n \n //technique to replace the dummy view as shown in the example\n View dummy = (View) findViewById(R.id.dummy);\n ViewGroup top = (ViewGroup) dummy.getParent();\n \n mView.setLayoutParams(dummy.getLayoutParams());\n int idx = top.indexOfChild(dummy);\n top.removeViewAt(idx);\n top.addView (mView, idx);\n newGame();\n }", "title": "" }, { "docid": "07b86d9d2d410f3ff07057b140b49e4e", "score": "0.58640623", "text": "public void SRU() {\n\t\tgl.glColor3f(1.0f, 0.0f, 0.0f);\n\t\tgl.glLineWidth(1.0f);\n\t\tgl.glBegin(GL.GL_LINES);\n\t\tgl.glVertex2f(-200.0f, 0.0f);\n\t\tgl.glVertex2f(200.0f, 0.0f);\n\t\tgl.glEnd();\n\t\t// eixo y\n\t\tgl.glColor3f(0.0f, 1.0f, 0.0f);\n\t\tgl.glBegin(GL.GL_LINES);\n\t\tgl.glVertex2f(0.0f, -200.0f);\n\t\tgl.glVertex2f(0.0f, 200.0f);\n\t\tgl.glEnd();\n\t}", "title": "" }, { "docid": "653bb029b22dc959a1a2223b863b60d1", "score": "0.58627915", "text": "public void activar() {\r\n gl.glMaterialfv(GL.GL_FRONT, GL.GL_AMBIENT, ambiental, 0);\r\n gl.glMaterialfv(GL.GL_FRONT, GL.GL_DIFFUSE, diffuse, 0);\r\n gl.glMaterialfv(GL.GL_FRONT, GL.GL_SPECULAR, specular, 0);\r\n gl.glMaterialfv(GL.GL_FRONT, GL.GL_EMISSION, emisive, 0);\r\n gl.glMaterialf(GL.GL_FRONT, GL.GL_SHININESS, this.shininess);\r\n }", "title": "" }, { "docid": "13d134530ff7189d16369292f7ea41f4", "score": "0.58405554", "text": "public void SRU() {\n\t\tgl.glColor3f(1.0f, 0.0f, 0.0f);\n\t\tgl.glLineWidth(1.0f);\n\t\tgl.glBegin( GL.GL_LINES );\n\t\t\tgl.glVertex2f( -200.0f, 0.0f );\n\t\t\tgl.glVertex2f( 200.0f, 0.0f );\n\t\t\tgl.glEnd();\n\t\t\t\n\t\t// eixo y\n\t\tgl.glColor3f(0.0f, 1.0f, 0.0f);\n\t\tgl.glBegin( GL.GL_LINES);\n\t\t\tgl.glVertex2f( 0.0f, -200.0f);\n\t\t\tgl.glVertex2f( 0.0f, 200.0f );\n\t\tgl.glEnd();\n\t}", "title": "" }, { "docid": "35b463c8b606d47444a7f23eb4d303b2", "score": "0.5837198", "text": "void enableCulling();", "title": "" }, { "docid": "d3408c217e9642704a6a8165c1e0a132", "score": "0.5835482", "text": "public void onDrawFrame(GL10 unused) {\n GLES20.glClear(GLES20.GL_COLOR_BUFFER_BIT | GLES20.GL_DEPTH_BUFFER_BIT);\n\n // Set the camera position (View matrix)\n //Matrix.setLookAtM(mViewMatrix, 0, 0, 0, -3, 0f, 0f, 0f, 0f, 1.0f, 0.0f);\n Matrix.setRotateM(mRotationMatrix, 0, theta, 0, 0, 1.0f);\n\n // Calculate the projection and view transformation\n Matrix.multiplyMM(mMVPMatrix, 0, mProjectionMatrix, 0, mViewMatrix, 0);\n Matrix.multiplyMM(mMVPMatrix, 0, mMVPMatrix, 0, mRotationMatrix, 0);\n\n // Set the uniform\n mMVPMatrixHandle = GLES20.glGetUniformLocation(mShaderProgram, \"uMVPMatrix\");\n GLES20.glUniformMatrix4fv(mMVPMatrixHandle, 1, false, mMVPMatrix, 0);\n\n // -- DRAW STUFF ---\n\n mVertexColorHandle = GLES20.glGetAttribLocation(mShaderProgram, \"vColor\");\n GLES20.glUniform4fv(mVertexColorHandle, 1, color, 0);\n\n mVertexPositionHandle = GLES20.glGetAttribLocation(mShaderProgram, \"vPosition\");\n GLES20.glEnableVertexAttribArray(mVertexPositionHandle);\n GLES20.glVertexAttribPointer(mVertexPositionHandle, COORDS_PER_VERTEX, GLES20.GL_FLOAT, false, 0, vertexBuffer); // 0 used to be VERTEX_STRIDE???\n\n\n GLES20.glDrawElements(GLES20.GL_TRIANGLES, indices.length,\n GLES20.GL_UNSIGNED_SHORT, drawListBuffer);\n //GLES20.glDrawArrays(GLES20.GL_TRIANGLES, 0, vertexCount);\n\n GLES20.glDisableVertexAttribArray(mVertexPositionHandle);\n // -- END DRAW STUFF --\n }", "title": "" }, { "docid": "2694b1478b713ed2f6e2f6cbeae864dc", "score": "0.58349967", "text": "public void render(GL2 gl)\n { \n \n //set viewport size\n Point aspectRatio = Game.getInstance().getGraphicsWindow().getCurrentAspectRatio();\n float ratio = ((float) aspectRatio.x) / aspectRatio.y;\n int zoom = 0;// -96;\n getViewport().setDimensions(aspectRatio.x + zoom*ratio , aspectRatio.y + zoom);\n\n\n //==================\n // Render the scene\n //==================\n if(this.cutsceneManager.getCutscene() != null)\n { \n this.cutsceneManager.getCutscene().draw(gl, getViewport());\n }\n else\n {\n if(gl.getGLProfile().isGL3bc())\n {\n //GL3bc\n RenderingPipelineGL3.render((GL3bc)gl, getViewport(), getSceneObjectManager(),getSceneEffectsManager()); \n }\n else\n {\n //GL2\n RenderingPipelineGL2.render(gl, getViewport(), getSceneObjectManager(),getSceneEffectsManager()); \n }\n }\n \n //debug viewport feeler rendering\n if(GameplaySettings.getInstance().viewportFeelers)\n {\n EnhancedViewport viewport = (EnhancedViewport)getViewport();\n gl.glMatrixMode(GL3bc.GL_MODELVIEW);\n gl.glDisable(GL3bc.GL_BLEND);\n gl.glDisable(GL3bc.GL_TEXTURE_2D); \n GLU glu = new GLU();\n gl.glLoadIdentity();\n glu.gluLookAt(viewport.getBottomLeftCoordinate().x * Layer.MAIN.coordinateScalingFactor, viewport.getBottomLeftCoordinate().y * Layer.MAIN.coordinateScalingFactor, 1, viewport.getBottomLeftCoordinate().x * Layer.MAIN.coordinateScalingFactor, viewport.getBottomLeftCoordinate().y * Layer.MAIN.coordinateScalingFactor, 0, 0, 1, 0);\n\n\n gl.glColor4f(0,1,0,1);\n gl.glBegin(GL3bc.GL_LINES);\n gl.glVertex2f(viewport.bottomLine.getStart().getX(),viewport.bottomLine.getStart().getY());\n gl.glVertex2f(viewport.bottomLine.getEnd().getX(),viewport.bottomLine.getEnd().getY());\n gl.glEnd();\n\n gl.glColor4f(0,0,1,1);\n gl.glBegin(GL3bc.GL_LINES);\n gl.glVertex2f(viewport.leftLine.getStart().getX(),viewport.leftLine.getStart().getY());\n gl.glVertex2f(viewport.leftLine.getEnd().getX(),viewport.leftLine.getEnd().getY());\n gl.glEnd();\n\n gl.glColor4f(1,1,0,1);\n gl.glBegin(GL3bc.GL_LINES);\n gl.glVertex2f(viewport.rightLine.getStart().getX(),viewport.rightLine.getStart().getY());\n gl.glVertex2f(viewport.rightLine.getEnd().getX(),viewport.rightLine.getEnd().getY());\n gl.glEnd();\n }\n \n }", "title": "" }, { "docid": "422e095323eaf9874bfbd287a67311de", "score": "0.5832466", "text": "private void updateWinLevelGray( ModelLUT kLUT, ModelImage kImage,\r\n float[] afXWin, float[] afYWin )\r\n{\r\n /* Update the HistoLUT and the renderers: */\r\n kLUT.getTransferFunction().importArrays( afXWin, afYWin, 4 );\r\n}", "title": "" }, { "docid": "1c9a9015594ed6dbf96aadf6f69b2ecc", "score": "0.58263147", "text": "@Override\n @SideOnly(Side.CLIENT)\n public void render(EntityLivingBase entity, double x, double y, double z, float entityYaw, float partialTicks)\n {\n double scale = 1D / 6D / 8D;\n\n float lastBrightnessX = OpenGlHelper.lastBrightnessX;\n float lastBrightnessY = OpenGlHelper.lastBrightnessY;\n\n if (!this.lighting)\n {\n OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, 240, 240);\n }\n\n GlStateManager.disableLighting();\n GlStateManager.disableCull();\n GlStateManager.pushMatrix();\n\n GlStateManager.translate(x, y, z);\n GlStateManager.scale(scale, -scale, scale);\n\n if (this.billboard)\n {\n /* Get matrix */\n Matrix4f matrix4f = MatrixUtils.readModelView(matrix);\n Vector4f zero = new Vector4f(0, 0, 0, 1);\n\n matrix4f.transform(zero);\n matrix4f.setIdentity();\n matrix4f.setTranslation(new Vector3f(zero.x, zero.y, zero.z));\n matrix4f.transpose();\n\n MatrixUtils.loadModelView(matrix4f);\n GlStateManager.scale(-scale, scale, scale);\n\n GL11.glRotatef(180.0F, 0.0F, 1.0F, 0.0F);\n GL11.glRotatef(180.0F, 1.0F, 0.0F, 0.0F);\n }\n\n this.renderString();\n\n GlStateManager.popMatrix();\n GlStateManager.enableCull();\n GlStateManager.enableLighting();\n\n if (!this.lighting)\n {\n OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, lastBrightnessX, lastBrightnessY);\n }\n\n }", "title": "" }, { "docid": "db5edf98ef15909d81a195b8d9e855c9", "score": "0.58256066", "text": "public void showWorld()\r\n\t{\r\n\t\tshader.start();\r\n\t\tshader.screenSize.loadVec2(Display.getWidth(), Display.getHeight());\r\n\t\tshader.worldOffset.loadVec2(worldOffsetX, worldOffsetY);\r\n\t\t\r\n\t\tGL30.glBindVertexArray(vao);\r\n\t\t\r\n\t\tfor (int i = 0; i < textures.size(); i++)\r\n\t\t{\r\n\t\t\ttextures.get(i).bind(i);\r\n\t\t}\r\n\t\t\r\n\t\tGL15.glBindBuffer(GL15.GL_ELEMENT_ARRAY_BUFFER, ibo);\r\n\r\n\t\tGL11.glDrawElements(GL11.GL_TRIANGLES, indexCount, GL11.GL_UNSIGNED_INT, 0);\r\n\t\t\r\n\t\tGL15.glBindBuffer(GL15.GL_ELEMENT_ARRAY_BUFFER, 0);\r\n\t\t\r\n\t\tGL30.glBindVertexArray(0);\r\n\t\tshader.stop();\r\n\t}", "title": "" }, { "docid": "e81f2b54f31155cdebf40e6901662bc4", "score": "0.5813277", "text": "void disableCulling();", "title": "" }, { "docid": "57986a63a29b3d3e07c65bc88bc5f8d8", "score": "0.58051825", "text": "void setTexture() {\n\n \t GLUgl2 glugl = new GLUgl2();\n this.rings = new TextureHandler(gl2, glugl, MainFrame.devPath +\"mercury.bmp\", false);\n this.moon = new TextureHandler(gl2, glugl, MainFrame.devPath +\"moontexture.jpg\", false);\n \n\n }", "title": "" }, { "docid": "b1deb6a413dc618803f3f1ea35c283a5", "score": "0.5798805", "text": "public void draw3d()\n {\n \n }", "title": "" }, { "docid": "7f1a405511abbd86bf247adaeec18103", "score": "0.5796044", "text": "void enableBlend();", "title": "" }, { "docid": "e1b18bd25ca4162262755bcb7419def1", "score": "0.5795172", "text": "public void render(GL3 gl, Mat4 model) {\n Mat4 mvpMatrix = Mat4.multiply(perspective, Mat4.multiply(camera.getViewMatrix(), model));\n\n shader.use(gl);\n\n shader.setFloatArray(gl, \"model\", model.toFloatArrayForGLSL());\n shader.setFloatArray(gl, \"mvpMatrix\", mvpMatrix.toFloatArrayForGLSL());\n\n shader.setVec3(gl, \"viewPos\", camera.getPosition());\n\n // For each light source, pass the values to the shader\n for (int i = 0; i < Arty.lightCount; i++) {\n super.setShaderValues(gl, shader, i, SCENE_AMBIENT);\n // For each materail type, set specific values\n shader.setVec3(gl, \"material.diffuse\", material.getDiffusePoint(i));\n shader.setVec3(gl, \"material.specular\", material.getSpecularPoint(i));\n }\n\n shader.setVec3(gl, \"material.ambient\", material.getAmbient());\n shader.setFloat(gl, \"material.shininess\", material.getShininess());\n\n shader.setInt(gl, \"first_texture\", 0);\n gl.glActiveTexture(GL.GL_TEXTURE0);\n gl.glBindTexture(GL.GL_TEXTURE_2D, textureId[0]);\n gl.glBindVertexArray(vertexArrayId[0]);\n gl.glDrawElements(GL.GL_TRIANGLES, indices.length, GL.GL_UNSIGNED_INT, 0);\n gl.glBindVertexArray(0);\n }", "title": "" }, { "docid": "3f4ba78ea34c32c3365a761cbcdc52a1", "score": "0.57907414", "text": "private RenderPass createNoLightScenePass(Geometry geom, Matrix4d geomTransform, Vector4d lightPos)\n {\n \tRenderPass renderPass = new RenderPass();\n \t\n \tDepthBufferState depthState = new DepthBufferState();\n\t\tdepthState.setClearBufferState(true);\n\t\tdepthState.enableDepthTest(true);\n\t\tdepthState.enableDepthWrite(true);\n\t\tdepthState.setDepthFunction(DepthBufferState.FUNCTION_LESS);\n\t\t\n\t\tStencilBufferState stencilState = new StencilBufferState();\n\t\tstencilState.setClearBufferState(true);\n\t\t\n\t\tColorBufferState colorState = new ColorBufferState();\n\t\tcolorState.setClearBufferState(true);\n\t\tcolorState.setClearColor(0, 0, 0, 0);\n\t\tcolorState.setColorMask(true, true, true, true);\n\t\t\n\t\tPolygonAttributes polyAttrib = new PolygonAttributes();\n\t\tpolyAttrib.setCulledFace(PolygonAttributes.CULL_NONE);\n\t\t\n\t\tBlendAttributes blendAttrib = new BlendAttributes();\n\t\t\n\t\trenderPass.setStencilBufferState(stencilState);\n\t\trenderPass.setDepthBufferState(depthState);\n\t\trenderPass.setColorBufferState(colorState);\n\t\t\n\t\t// Setup scene\n Viewpoint vp = new Viewpoint();\n vp.setHeadlightEnabled(false);\n \n Vector3d trans = new Vector3d();\n trans.set(0.0, 0.0, 3);\n\t\t\n Matrix4d mat = new Matrix4d();\n mat.setIdentity();\n mat.setTranslation(trans);\n\n TransformGroup tx = new TransformGroup();\n tx.addChild(vp);\n tx.setTransform(mat);\n\n Group scene_root = new Group();\n scene_root.addChild(tx);\n scene_root.addChild(createGeom(geom, polyAttrib, blendAttrib, geomTransform));\n scene_root.addChild(createRoom(2, 2, 0.01f, polyAttrib, blendAttrib));\n\n\t\trenderPass.setActiveView(vp);\n\t\trenderPass.setRenderedGeometry(scene_root);\n\t\t\n \treturn renderPass;\n }", "title": "" }, { "docid": "82c21f91c013ae438277488ccada95f9", "score": "0.57893157", "text": "BlockProgram(){\n\n program = glCreateProgram();\n\n float vertices[] = {\n 1.0f,\t1.0f,\t1.0f,1.0f,\n 0.0f,\t1.0f,\t1.0f,1.0f,\n 1.0f,\t1.0f,\t0.0f,1.0f,\n 0.0f,\t1.0f,\t0.0f,1.0f,\n 1.0f,\t0.0f,\t1.0f,1.0f,\n 0.0f,\t0.0f,\t1.0f,1.0f,\n 0.0f,\t0.0f,\t0.0f,1.0f,\n 1.0f,\t0.0f,\t0.0f,1.0f\n };\n\n int indices[] = {\n 3, 2, 6, 7, 4, 2, 0,\n 3, 1, 6, 5, 4, 1, 0\n };\n\n float colors[] = {\n 1.0f,0.0f,0.0f,1.0f,\n 0.0f,1.0f,0.0f,1.0f,\n 0.0f,0.0f,1.0f,1.0f,\n 1.0f,1.0f,0.0f,1.0f,\n 1.0f,0.0f,1.0f,1.0f,\n 0.0f,1.0f,1.0f,1.0f,\n 1.0f,0.0f,0.0f,1.0f,\n 0.0f,1.0f,0.0f,1.0f\n };\n\n //create VertexBuffer\n int vertexBuffer = glGenBuffers();\n glBindBuffer(GL_ARRAY_BUFFER, vertexBuffer);\n glBufferData(GL_ARRAY_BUFFER, vertices, GL_STATIC_DRAW);\n \n //create IndexBuffer\n int indexBuffer = glGenBuffers();\n glBindBuffer(GL_ARRAY_BUFFER, indexBuffer);\n glBufferData(GL_ARRAY_BUFFER, indices, GL_STATIC_DRAW);\n\n //create ColorBuffer\n int colorBuffer = glGenBuffers();\n glBindBuffer(GL_ARRAY_BUFFER, colorBuffer);\n glBufferData(GL_ARRAY_BUFFER, colors, GL_STATIC_DRAW);\n\n //VertexShader\n int vertexShader = glCreateShader(GL_VERTEX_SHADER);\n glShaderSource(vertexShader,\n \"attribute vec4 verts; \\n\"+ //TODO make file for shader\n \"attribute vec4 aColor; \\n\"+\n \"varying vec4 vColor; \\n\"+\n \"uniform mat4 trans; \\n\"+\n \"void main() { \\n\"+\n \" vColor = aColor; \\n\"+\n \" gl_Position = trans * verts; \\n\"+\n \"}; \\n\");\n glCompileShader(vertexShader);\n \n //FragmentShader\n int fragmentShader = glCreateShader(GL_FRAGMENT_SHADER);\n glShaderSource(fragmentShader,\n \"precision mediump float; \\n\"+\n \"varying vec4 vColor; \\n\"+\n \"void main() { \\n\"+\n \" gl_FragColor = vec4(1.0) \\n\"+\n \"}; \\n\");\n glCompileShader(fragmentShader);\n \n //Attach Shaders\n glAttachShader(program, vertexShader);\n glAttachShader(program, fragmentShader);\n \n //Compile Program\n glLinkProgram(program);\n\n //Set Positions here once they does not change\n int pos = glGetAttribLocation(program, \"verts\");\n glEnableVertexAttribArray(pos);\n glBindBuffer(GL_ARRAY_BUFFER, vertexBuffer);\n glVertexAttribPointer(pos,4,GL_FLOAT,false,0,0L);\n\n //Set Colors here once they does not change\n int col = glGetAttribLocation(program, \"aColor\");\n glEnableVertexAttribArray(col);\n glBindBuffer(GL_ARRAY_BUFFER, colorBuffer);\n glVertexAttribPointer(col,4,GL_FLOAT,false,0,0L);\n\n }", "title": "" }, { "docid": "a25e48bb5a23bc16815a74a9e94c29aa", "score": "0.57733667", "text": "public static void drawEntityOnScreen ( int posX , int posY , int scale , float mouseX , float mouseY ,\n EntityLivingBase ent ) {\n GlStateManager.enableColorMaterial ( );\n GlStateManager.pushMatrix ( );\n GlStateManager.translate ( ( float ) posX , ( float ) posY , 50.0F );\n GlStateManager.scale ( ( float ) ( -scale ) , ( float ) scale , ( float ) scale );\n GlStateManager.rotate ( 180.0F , 0.0F , 0.0F , 1.0F );\n float f = ent.renderYawOffset;\n float f1 = ent.rotationYaw;\n float f2 = ent.rotationPitch;\n float f3 = ent.prevRotationYawHead;\n float f4 = ent.rotationYawHead;\n GlStateManager.rotate ( 135.0F , 0.0F , 1.0F , 0.0F );\n RenderHelper.enableStandardItemLighting ( );\n GlStateManager.rotate ( -135.0F , 0.0F , 1.0F , 0.0F );\n GlStateManager.rotate ( -( ( float ) Math.atan ( mouseY / 40.0F ) ) * 20.0F , 1.0F , 0.0F , 0.0F );\n ent.renderYawOffset = ( float ) Math.atan ( mouseX / 40.0F ) * 20.0F;\n ent.rotationYaw = ( float ) Math.atan ( mouseX / 40.0F ) * 40.0F;\n ent.rotationPitch = -( ( float ) Math.atan ( mouseY / 40.0F ) ) * 20.0F;\n ent.rotationYawHead = ent.rotationYaw;\n ent.prevRotationYawHead = ent.rotationYaw;\n GlStateManager.translate ( 0.0F , 0.0F , 0.0F );\n RenderManager rendermanager = Minecraft.getMinecraft ( ).getRenderManager ( );\n rendermanager.setPlayerViewY ( 180.0F );\n rendermanager.setRenderShadow ( false );\n rendermanager.renderEntityWithPosYaw ( ent , 0.0D , 0.0D , 0.0D , 0.0F , 1.0F );\n rendermanager.setRenderShadow ( true );\n ent.renderYawOffset = f;\n ent.rotationYaw = f1;\n ent.rotationPitch = f2;\n ent.prevRotationYawHead = f3;\n ent.rotationYawHead = f4;\n GlStateManager.popMatrix ( );\n RenderHelper.disableStandardItemLighting ( );\n GlStateManager.disableRescaleNormal ( );\n GlStateManager.setActiveTexture ( OpenGlHelper.lightmapTexUnit );\n GlStateManager.disableTexture2D ( );\n GlStateManager.setActiveTexture ( OpenGlHelper.defaultTexUnit );\n }", "title": "" }, { "docid": "0001519343d7752862c13ba2365b2dbd", "score": "0.5770335", "text": "public void mo5123a(GL10 gl10) {\n }", "title": "" }, { "docid": "d747508859ea9d5070d7647d77d9a828", "score": "0.5764178", "text": "@Override\n\tpublic void onSurfaceCreated(GL10 gl, EGLConfig config) {\n\t\tthis.earth.loadGLTexture(gl, this.context, R.drawable.earth);\n\t\tgl.glEnable(GL10.GL_TEXTURE_2D);\n\t\tgl.glShadeModel(GL10.GL_SMOOTH);\n\t\tthis.moon.loadGLTexture(gl, this.context, R.drawable.moon);\n\t\tgl.glEnable(GL10.GL_TEXTURE_2D);\n\t\tgl.glShadeModel(GL10.GL_SMOOTH);\n\t\tthis.mercury.loadGLTexture(gl, this.context, R.drawable.mercurio);\n\t\tgl.glEnable(GL10.GL_TEXTURE_2D);\n\t\tgl.glShadeModel(GL10.GL_SMOOTH);\n\t\tthis.venus.loadGLTexture(gl, this.context, R.drawable.mercurio);\n\t\tgl.glEnable(GL10.GL_TEXTURE_2D);\n\t\tgl.glShadeModel(GL10.GL_SMOOTH);\n\t\tthis.mars.loadGLTexture(gl, this.context, R.drawable.mars);\n\t\tgl.glEnable(GL10.GL_TEXTURE_2D);\n\t\tgl.glShadeModel(GL10.GL_SMOOTH);\n\t\tthis.jupter.loadGLTexture(gl, this.context, R.drawable.jupter);\n\t\tgl.glEnable(GL10.GL_TEXTURE_2D);\n\t\tgl.glShadeModel(GL10.GL_SMOOTH);\n\t\tthis.saturn.loadGLTexture(gl, this.context, R.drawable.saturn);\n\t\tgl.glEnable(GL10.GL_TEXTURE_2D);\n\t\tgl.glShadeModel(GL10.GL_SMOOTH);\n\t\tthis.uranus.loadGLTexture(gl, this.context, R.drawable.uranus);\n\t\tgl.glEnable(GL10.GL_TEXTURE_2D);\n\t\tgl.glShadeModel(GL10.GL_SMOOTH);\n\t\tthis.neptune.loadGLTexture(gl, this.context, R.drawable.neptune);\n\t\tgl.glEnable(GL10.GL_TEXTURE_2D);\n\t\tgl.glShadeModel(GL10.GL_SMOOTH);\n\t\tthis.sun.loadGLTexture(gl, this.context, R.drawable.sun);\n\t\tgl.glEnable(GL10.GL_TEXTURE_2D);\n\t\tgl.glShadeModel(GL10.GL_SMOOTH);\n\t\tthis.spaceship.loadGLTexture(gl, this.context, R.drawable.spaceship);\n\t\tgl.glEnable(GL10.GL_TEXTURE_2D);\n\t\tgl.glShadeModel(GL10.GL_SMOOTH);\n\t\t\n\t\tgl.glClearColor(0.0f, 0.0f, 0.0f, 0.0f); // Set color's clear-value to black\n\t\tgl.glClearDepthf(1.0f); // Set depth's clear-value to farthest\n\t\tgl.glEnable(GL10.GL_DEPTH_TEST); // Enables depth-buffer for hidden surface removal\n\t\tgl.glDepthFunc(GL10.GL_LEQUAL); // The type of depth testing to do\n\t\tgl.glHint(GL10.GL_PERSPECTIVE_CORRECTION_HINT, GL10.GL_NICEST); // nice perspective view\n\t\tgl.glShadeModel(GL10.GL_SMOOTH); // Enable smooth shading of color\n\t\tgl.glDisable(GL10.GL_DITHER); // Disable dithering for better performance\n\n\t}", "title": "" }, { "docid": "82ad78a5debf43f9b3d1dbed423430c7", "score": "0.5758852", "text": "public void a(Entity paramwv, float paramFloat1, float paramFloat2, float paramFloat3, float paramFloat4, float paramFloat5, float paramFloat6)\r\n/* 59: */ {\r\n/* 60: 84 */ a(paramFloat1, paramFloat2, paramFloat3, paramFloat4, paramFloat5, paramFloat6, paramwv);\r\n/* 61: 85 */ if (this.r)\r\n/* 62: */ {\r\n/* 63: 86 */ float f1 = 2.0F;\r\n/* 64: 87 */ cjm.glPushMatrix();\r\n/* 65: 88 */ cjm.glScalef(1.5F / f1, 1.5F / f1, 1.5F / f1);\r\n/* 66: 89 */ cjm.glTranslatef(0.0F, 10.0F * paramFloat6, 4.0F * paramFloat6);\r\n/* 67: 90 */ this.g.a(paramFloat6);\r\n/* 68: 91 */ cjm.glPopMatrix();\r\n/* 69: 92 */ cjm.glPushMatrix();\r\n/* 70: 93 */ cjm.glScalef(1.0F / f1, 1.0F / f1, 1.0F / f1);\r\n/* 71: 94 */ cjm.glTranslatef(0.0F, 24.0F * paramFloat6, 0.0F);\r\n/* 72: 95 */ this.h.a(paramFloat6);\r\n/* 73: 96 */ this.a.a(paramFloat6);\r\n/* 74: 97 */ this.b.a(paramFloat6);\r\n/* 75: 98 */ this.c.a(paramFloat6);\r\n/* 76: 99 */ this.d.a(paramFloat6);\r\n/* 77:100 */ this.e.a(paramFloat6);\r\n/* 78:101 */ this.f.a(paramFloat6);\r\n/* 79:102 */ cjm.glPopMatrix();\r\n/* 80: */ }\r\n/* 81: */ else\r\n/* 82: */ {\r\n/* 83:104 */ this.g.a(paramFloat6);\r\n/* 84:105 */ this.h.a(paramFloat6);\r\n/* 85:106 */ this.e.a(paramFloat6);\r\n/* 86:107 */ this.f.a(paramFloat6);\r\n/* 87:108 */ this.a.a(paramFloat6);\r\n/* 88:109 */ this.b.a(paramFloat6);\r\n/* 89:110 */ this.c.a(paramFloat6);\r\n/* 90:111 */ this.d.a(paramFloat6);\r\n/* 91: */ }\r\n/* 92: */ }", "title": "" }, { "docid": "bd2136e4615e6b91bcca179d22e08251", "score": "0.57566386", "text": "public void drawXYZ(GL2 gl) {\t\r\n\t\tgl.glLineWidth(5f);\r\n\t\tgl.glBegin(GL2.GL_LINES);\r\n\t\t\t//draw X in red\r\n\t\t\tgl.glColor3f(1, 0, 0);\r\n\t\t\tgl.glVertex3f(0, 0, 0);\r\n\t\t\tgl.glVertex3f(20, 0, 0);\r\n\t\t\t//draw Y in green\r\n\t\t\tgl.glColor3f(0, 1, 0);\r\n\t\t\tgl.glVertex3f(0, 0, 0);\r\n\t\t\tgl.glVertex3f(0, 20, 0);\r\n\t\t\t//draw Z in blue\r\n\t\t\tgl.glColor3f(0, 0, 1);\r\n\t\t\tgl.glVertex3f(0, 0, 0);\r\n\t\t\tgl.glVertex3f(0, 0, 20);\r\n\t\tgl.glEnd();\r\n\t}", "title": "" }, { "docid": "3ab3a0709a977b4d0318e63cd086ee98", "score": "0.5748811", "text": "public void preRender2D(){}", "title": "" }, { "docid": "1b0adc6ed1a3acf4d07a1422cabaf34c", "score": "0.57450265", "text": "public void render_begin(){\n\n EXTFramebufferObject.glBindFramebufferEXT( EXTFramebufferObject.GL_FRAMEBUFFER_EXT, fbo_id );\n\n glPushAttrib(GL_VIEWPORT_BIT | GL_TRANSFORM_BIT | GL_COLOR_BUFFER_BIT | GL_SCISSOR_BIT);\n glDisable(GL_SCISSOR_TEST);\n glViewport(0, 0, 512, 512);\n\n glMatrixMode(GL_PROJECTION);\n glPushMatrix();\n glLoadIdentity();\n glOrtho(0, 512, 512, 0, -1.0, 1.0);\n glMatrixMode(GL_MODELVIEW);\n glPushMatrix();\n glLoadIdentity();\n glDisable(GL_SCISSOR_TEST);\n }", "title": "" }, { "docid": "d12c857577ecbc79e6091883a9aa5f8a", "score": "0.5741495", "text": "public static void initializeTextures()\n {\n //MCAndroidPatch: FIXME\n /*useMultitextureARB = GLContext.getCapabilities().GL_ARB_multitexture && !GLContext.getCapabilities().OpenGL13;\n\n if (useMultitextureARB)\n {\n lightmapDisabled = 33984;\n lightmapEnabled = 33985;\n }\n else\n {\n lightmapDisabled = 33984;\n lightmapEnabled = 33985;\n }*/\n }", "title": "" }, { "docid": "2c67777d884919e9cdaf8ff509982f2e", "score": "0.5737371", "text": "public void update(BufferedImage bufferedImage, boolean filter) {\n buf = bufferedImage;\n\t\tint[] pixels = new int[bufferedImage.getWidth() * bufferedImage.getHeight()];\n bufferedImage.getRGB(0, 0, bufferedImage.getWidth(), bufferedImage.getHeight(), pixels, 0, bufferedImage.getWidth());\n \n ByteBuffer data = ByteBuffer.allocateDirect((bufferedImage.getWidth() * bufferedImage.getHeight() * 4));\n \n for (int y = 0; y < bufferedImage.getHeight(); y++)\n {\n for (int x = 0; x < bufferedImage.getWidth(); x++)\n {\n int pixel = pixels[y * bufferedImage.getWidth() + x];\n data.put((byte) ((pixel >> 16) & 0xFF));\n data.put((byte) ((pixel >> 8) & 0xFF));\n data.put((byte) (pixel & 0xFF));\n data.put((byte) ((pixel >> 24) & 0xFF)); \n }\n }\n data.flip();\n glBindTexture(GL_TEXTURE_2D, id);\n \n glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL12.GL_CLAMP_TO_EDGE);\n glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL12.GL_CLAMP_TO_EDGE);\n \n if(filter) {\n\t glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);\n\t glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);\n } else {\n\t glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);\n\t glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);\n }\n \n\t\tisFiltered = filter;\n \n glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, bufferedImage.getWidth(), bufferedImage.getHeight(), 0, GL_RGBA, GL_UNSIGNED_BYTE, data);\n \n glBindTexture(GL_TEXTURE_2D, 0);\n\t}", "title": "" }, { "docid": "3216afe733bd9313e60225eb122f5f2c", "score": "0.57343805", "text": "@Override\n\tpublic void render() throws SlimException {\n\t\tfloat width = texture.getWidth();\n\t\tfloat height = texture.getHeight();\n\t\t// the physical width of the texture which will be used in glTexCoord\n\t\t// (generally a float between 0 and 1)\n\t\tfloat textureWidth = texture.getNormalizedWidth();\n\t\tfloat textureHeight = texture.getNormalizedHeight();\n\t\t// texture offsets, for texture atlas purposes. leave at 0 for full\n\t\t// image\n\t\tfloat textureOffsetX = 0, textureOffsetY = 0;\n\t\t// where on screen to draw the image\n\t\tfloat x = 10;\n\t\tfloat y = 10;\n\t\tGL11.glScalef(12f, 12f, 1f);\n\t\t\n\t\tfloat layer = 1;\n\t\t\n\t\tColor.white.bind();\n\t\tTexture.enable(texture.getTarget());\n\t\ttexture.bind();\n\t\tGL11.glBegin(GL11.GL_QUADS);\n\t\tGL11.glTexCoord3f(textureOffsetX, textureOffsetY, layer);\n GL11.glVertex2f(x, y);\n GL11.glTexCoord3f(textureOffsetX, textureOffsetY + textureHeight, layer);\n GL11.glVertex2f(x, y + height);\n GL11.glTexCoord3f(textureOffsetX + textureWidth, textureOffsetY\n + textureHeight, layer);\n GL11.glVertex2f(x + width, y + height);\n GL11.glTexCoord3f(textureOffsetX + textureWidth, textureOffsetY, layer);\n GL11.glVertex2f(x + width, y);\n\t\tGL11.glEnd();\n\t\t\n\t\t\n//\t\tGL11.glBegin(GL11.GL_QUADS);\n//\t\tGL11.glTexCoord2f(textureOffsetX, textureOffsetY);\n// GL11.glVertex2f(x, y);\n// GL11.glTexCoord2f(textureOffsetX, textureOffsetY + textureHeight);\n// GL11.glVertex2f(x, y + height);\n// GL11.glTexCoord2f(textureOffsetX + textureWidth, textureOffsetY\n// + textureHeight);\n// GL11.glVertex2f(x + width, y + height);\n// GL11.glTexCoord2f(textureOffsetX + textureWidth, textureOffsetY);\n// GL11.glVertex2f(x + width, y);\n//\t\tGL11.glEnd();\n\t}", "title": "" }, { "docid": "5453896f6bf0766129b866cba867295c", "score": "0.5733321", "text": "EGLContext mo43410f();", "title": "" }, { "docid": "bea535eeb828867e359503f0725e0ffa", "score": "0.5723305", "text": "public abstract void initGL(GL3 gl);", "title": "" }, { "docid": "4ed5779142fdd0c84acecec1236f1410", "score": "0.57181805", "text": "private void display()\n\t{\n\t\tGdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT | GL20.GL_DEPTH_BUFFER_BIT);\n\n\t\tGdx.gl.glUniform4f(colorLoc, 0.9f, 0.3f, 0.1f, 1.0f);\n\n\t\tModelMatrix.main.loadIdentityMatrix();\n\t\t//ModelMatrix.main.addTranslation(250, 250, 0);\n\t\tModelMatrix.main.pushMatrix();\n\t\tModelMatrix.main.addScale(1.0f, 1.0f, 1.0f);\n\t\tModelMatrix.main.setShaderMatrix(positionLoc);\n\t\tBoxGraphic.drawSolidCube();\n\t\t//BoxGraphic.drawOutlineCube();\n\t\t//SphereGraphic.drawSolidSphere();\n\t\t//SphereGraphic.drawOutlineSphere();\n\t\tModelMatrix.main.popMatrix();\n\n\t}", "title": "" }, { "docid": "43cbb71d1039a22f1d2de965ebf01512", "score": "0.57125723", "text": "public void setup() {\n size(width, height, OPENGL);\n frameRate(60);\n\n// heatmap = loadShader(\"heatFrag.glsl\", \"heatVert.glsl\");\n \n //CNTimg = loadImage(\"cnt.jpg\");\n NASAimg = loadImage(\"nasa.jpg\");\n\n\n addMouseWheelListener(new MouseWheelListener() {\n public void mouseWheelMoved(MouseWheelEvent mwe) {\n mouseWheel(mwe.getWheelRotation());\n }\n });\n\n }", "title": "" }, { "docid": "7c3e42f51b93c0a103948e1058f17df8", "score": "0.5706536", "text": "public void setMainFunctionsDisplay() {\n\t\t//Drawing mode\n\t\tif(wireFrame) {\n\t\t\tgl.glPolygonMode(GL2.GL_FRONT_AND_BACK, GL2.GL_LINE);\n\t\t}else {\n\t\t\tgl.glPolygonMode(GL2.GL_FRONT_AND_BACK, GL2.GL_FILL);\n\t\t}\n\t\t\n\t\t//Select and clear model-view matrix\n\t\tgl.glClear(GL2.GL_COLOR_BUFFER_BIT | GL2.GL_DEPTH_BUFFER_BIT);\n\t\tgl.glEnable(GL2.GL_BLEND);\n\t\tgl.glEnable(GL2.GL_DEPTH_TEST);\n\t\tgl.glLoadIdentity();\n\t}", "title": "" }, { "docid": "2fe28023aadbb6745389aadc900b2ffe", "score": "0.5702407", "text": "void disableBlend();", "title": "" }, { "docid": "cfca62dcc9f34d58ea26d6011d62e171", "score": "0.56666464", "text": "public void init(GLAutoDrawable drawable) {\r\n GL2 gl = drawable.getGL().getGL2();\r\n glu = new GLU();\r\n //\r\n int buf[] = new int[1];\r\n int sbuf[] = new int[1];\r\n\r\n gl.glClearColor(0.0f, 0.0f, 0.0f, 0.0f);\r\n gl.glGetIntegerv(GL2.GL_SAMPLE_BUFFERS, buf, 0);\r\n System.out.println(\"number of sample buffers is \" + buf[0]);\r\n gl.glGetIntegerv(GL2.GL_SAMPLES, sbuf, 0);\r\n System.out.println(\"number of samples is \" + sbuf[0]);\r\n\r\n gl.glNewList(1, GL2.GL_COMPILE);\r\n for (int i = 0; i < 19; i++) {\r\n gl.glPushMatrix();\r\n gl.glRotatef(360.0f * (float) i / 19.0f, 0.0f, 0.0f, 1.0f);\r\n gl.glColor3f(1.0f, 1.0f, 1.0f);\r\n gl.glLineWidth((i % 3) + 1.0f);\r\n gl.glBegin(GL.GL_LINES);\r\n gl.glVertex2f(0.25f, 0.05f);\r\n gl.glVertex2f(0.9f, 0.2f);\r\n gl.glEnd();\r\n gl.glColor3f(0.0f, 1.0f, 1.0f);\r\n gl.glBegin(GL2.GL_TRIANGLES);\r\n gl.glVertex2f(0.25f, 0.0f);\r\n gl.glVertex2f(0.9f, 0.0f);\r\n gl.glVertex2f(0.875f, 0.10f);\r\n gl.glEnd();\r\n gl.glPopMatrix();\r\n }\r\n gl.glEndList();\r\n\r\n gl.glNewList(2, GL2.GL_COMPILE);\r\n gl.glColor3f(1.0f, 0.5f, 0.0f);\r\n gl.glBegin(GL2.GL_QUADS);\r\n for (int i = 0; i < 16; i++)\r\n for (int j = 0; j < 16; j++)\r\n if (((i + j) % 2) == 0) {\r\n gl.glVertex2f(-2.0f + (i * 0.25f), -2.0f + (j * 0.25f));\r\n gl.glVertex2f(-2.0f + (i * 0.25f), -1.75f + (j * 0.25f));\r\n gl.glVertex2f(-1.75f + (i * 0.25f), -1.75f + (j * 0.25f));\r\n gl.glVertex2f(-1.75f + (i * 0.25f), -2.0f + (j * 0.25f));\r\n }\r\n\r\n gl.glEnd();\r\n gl.glEndList();\r\n }", "title": "" }, { "docid": "f6008c15c45a18bd7d560a287ef7a339", "score": "0.56630033", "text": "@Override\n public void onSurfaceCreated(GL10 gl, EGLConfig config) {\n gl.glClearColor(0.0f, 0.0f, 0.0f, 1.0f); // Set color's clear-value to black\n gl.glClearDepthf(1.0f); // Set depth's clear-value to farthest\n gl.glEnable(GL10.GL_DEPTH_TEST); // Enables depth-buffer for hidden surface removal\n gl.glDepthFunc(GL10.GL_LEQUAL); // The type of depth testing to do\n gl.glEnable(GL10.GL_BLEND);\n gl.glHint(GL10.GL_PERSPECTIVE_CORRECTION_HINT, GL10.GL_NICEST); // nice perspective view\n gl.glShadeModel(GL10.GL_SMOOTH); // Enable smooth shading of color\n gl.glDisable(GL10.GL_DITHER); // Disable dithering for better performance\n kostka.loadGLTexture(gl,this.context);\n gl.glEnable(GL10.GL_TEXTURE_2D); // Enable texture\n//\n }", "title": "" }, { "docid": "a7cd0c091ea39c83dbbb2895c7a2da86", "score": "0.5659079", "text": "public MyGLSurfaceView(Context context){\n super(context);\n\n setEGLContextClientVersion(2);\n\n //required to show map behind GLSurfaceView and enable multisampling\n setEGLConfigChooser(new MultisampleConfigChooser());\n\n\n //instantiate and set renderer\n MyGLRenderer mRenderer = new MyGLRenderer();\n\n setRenderer(mRenderer);\n\n //required to show map behind GLSurfaceView\n getHolder().setFormat(PixelFormat.TRANSPARENT);\n\n //only redraw when requestRender() is called\n setRenderMode(GLSurfaceView.RENDERMODE_WHEN_DIRTY);\n\n //required to show map behind GLSurfaceView\n setZOrderOnTop(true);\n\n mSensorManager = (SensorManager) context.getSystemService(Context.SENSOR_SERVICE);\n\n setDebugFlags(GLSurfaceView.DEBUG_CHECK_GL_ERROR | GLSurfaceView.DEBUG_LOG_GL_CALLS);\n }", "title": "" }, { "docid": "b8a36b747faa3191d2c2e6f76d4516bf", "score": "0.56552947", "text": "public void a(int paramInt1, int paramInt2, float paramFloat)\r\n/* 128: */ {\r\n/* 129:139 */ b(paramInt1, paramInt2, paramFloat);\r\n/* 130:140 */ ckx localckx = ckx.getInstance();\r\n/* 131:141 */ VertexBuffer localciv = localckx.getBuffer();\r\n/* 132: */ \r\n/* 133:143 */ int j = 274;\r\n/* 134:144 */ int k = this.l / 2 - j / 2;\r\n/* 135:145 */ int m = this.m + 50;\r\n/* 136: */ \r\n/* 137:147 */ float f1 = -(this.h + paramFloat) * this.s;\r\n/* 138:148 */ cjm.glPushMatrix();\r\n/* 139:149 */ cjm.glTranslatef(0.0F, f1, 0.0F);\r\n/* 140:150 */ this.j.N().a(f);\r\n/* 141:151 */ cjm.c(1.0F, 1.0F, 1.0F, 1.0F);\r\n/* 142:152 */ b(k, m, 0, 0, 155, 44);\r\n/* 143:153 */ b(k + 155, m, 0, 45, 155, 44);\r\n/* 144:154 */ localciv.setColor(16777215);\r\n/* 145:155 */ int n = m + 200;\r\n/* 146:157 */ for (int i1 = 0; i1 < this.i.size(); i1++)\r\n/* 147: */ {\r\n/* 148:158 */ if (i1 == this.i.size() - 1)\r\n/* 149: */ {\r\n/* 150:159 */ float f2 = n + f1 - (this.m / 2 - 6);\r\n/* 151:160 */ if (f2 < 0.0F) {\r\n/* 152:161 */ cjm.glTranslatef(0.0F, -f2, 0.0F);\r\n/* 153: */ }\r\n/* 154: */ }\r\n/* 155:164 */ if ((n + f1 + 12.0F + 8.0F > 0.0F) && (n + f1 < this.m))\r\n/* 156: */ {\r\n/* 157:165 */ String str = (String)this.i.get(i1);\r\n/* 158:166 */ if (str.startsWith(\"[C]\"))\r\n/* 159: */ {\r\n/* 160:167 */ this.q.a(str.substring(3), k + (j - this.q.a(str.substring(3))) / 2, n, 16777215);\r\n/* 161: */ }\r\n/* 162: */ else\r\n/* 163: */ {\r\n/* 164:169 */ this.q.b.setSeed(i1 * 4238972211L + this.h / 4);\r\n/* 165:170 */ this.q.a(str, k, n, 16777215);\r\n/* 166: */ }\r\n/* 167: */ }\r\n/* 168:173 */ n += 12;\r\n/* 169: */ }\r\n/* 170:176 */ cjm.glPopMatrix();\r\n/* 171: */ \r\n/* 172:178 */ this.j.N().a(g);\r\n/* 173:179 */ cjm.enableBlend();\r\n/* 174:180 */ cjm.glBlendFunc(0, 769);\r\n/* 175:181 */ localciv.begin();\r\n/* 176:182 */ localciv.setColor(1.0F, 1.0F, 1.0F, 1.0F);\r\n/* 177:183 */ int i1 = this.l;\r\n/* 178:184 */ int i2 = this.m;\r\n/* 179:185 */ localciv.addVertexWithUV(0.0D, i2, this.e, 0.0D, 1.0D);\r\n/* 180:186 */ localciv.addVertexWithUV(i1, i2, this.e, 1.0D, 1.0D);\r\n/* 181:187 */ localciv.addVertexWithUV(i1, 0.0D, this.e, 1.0D, 0.0D);\r\n/* 182:188 */ localciv.addVertexWithUV(0.0D, 0.0D, this.e, 0.0D, 0.0D);\r\n/* 183:189 */ localckx.draw();\r\n/* 184:190 */ cjm.disableBlend();\r\n/* 185: */ \r\n/* 186:192 */ super.a(paramInt1, paramInt2, paramFloat);\r\n/* 187: */ }", "title": "" }, { "docid": "06a307dbeb2346f87703a18e0c4226ff", "score": "0.5651865", "text": "public void glInit(GLRenderContext glc) {\n //final GL gl = glc.gl;\n\n glc.glEnable(GLC.GL_DEPTH_TEST);\n\n // glc.glCullFace(GLC.GL_FRONT_AND_BACK);\n glc.glCullFace(GLC.GL_FRONT);\n //glc.glEnable(GLC.GL_CULL_FACE);\n glc.glDisable(GLC.GL_CULL_FACE);\n glc.glShadeModel(GLC.GL_SMOOTH);\n //glc.glDisable(GLC.GL_LIGHTING);\n glc.glEnable(GLC.GL_LIGHTING);\n glc.glLightModeli(GLC.GL_LIGHT_MODEL_LOCAL_VIEWER, GLC.GL_TRUE);\n //glc.glPolygonMode(GLC.GL_FRONT, GLC.GL_LINE);\n float[] global_amb = new float[]{ 0.0f, 0.0f, 0.0f, 1.0f }; // default is non-zero!!!\n \n FloatBuffer global_ambient = BufferUtil.directFloatBuffer(4); \n \n global_ambient.put(global_amb);\n global_ambient.rewind();\n glc.glLightModelfv(GLC.GL_LIGHT_MODEL_AMBIENT, global_ambient);\n//\n// glc.glHint(GLC.GL_PERSPECTIVE_CORRECTION_HINT, GLC.GL_NICEST); \n// glc.glDisable(GLC.GL_MULTISAMPLE);\n \n glc.glEnable(GLC.GL_NORMALIZE);\n\n }", "title": "" }, { "docid": "576b7590e66d9fce181bcad342db2183", "score": "0.56501305", "text": "public void mo24142n() {\n this.f15546g = GLES20.glGetUniformLocation(this.f15543d, \"u_Texture0\");\n this.f15547h = GLES20.glGetAttribLocation(this.f15543d, \"a_Position\");\n this.f15548i = GLES20.glGetAttribLocation(this.f15543d, \"a_TexCoord\");\n }", "title": "" }, { "docid": "5eb5c6a3e58409695930a0a068803f27", "score": "0.56501037", "text": "@Override\n public void onDrawFrame(GL10 arg0) {\n bindData();\n updateView();\n glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);\n\n\n glLineWidth(1);\n\n glUniform4f(uPositionLocation, 0, 0, 0, 0);\n\n glUniform4f(uColorLocation, 0.0f, 1.0f, 1.0f, 1.0f);\n glDrawArrays(GL_LINES, 0, 2);\n\n glUniform4f(uColorLocation, 1.0f, 0.0f, 1.0f, 1.0f);\n glDrawArrays(GL_LINES, 2, 2);\n\n glUniform4f(uColorLocation, 1.0f, 0.5f, 0.0f, 1.0f);\n glDrawArrays(GL_LINES, 4, 2);\n\n glUniform4f(uColorLocation, 1, 1, 1, 0);\n glDrawArrays(GL_TRIANGLE_FAN, 6, 4);\n\n// triangle.update();\n// triangle.draw();\n for(Model model: models) {\n model.update();\n model.draw();\n }\n\n// sphere.update();\n// sphere.draw();\n }", "title": "" }, { "docid": "1cbc94b5abbe66eddaf532cf7e1bd7cd", "score": "0.5644082", "text": "public void setMainFunctionsInit() {\n\t\t//enable V-sync\n\t\tgl.setSwapInterval(1);\n\t\t\n\t\t//Set up the drawing area and shading mode\n\t\tgl.glClearColor(0.8f, 0.8f, 0.8f, 1.0f);\n\t\tgl.glBlendFunc(GL2.GL_SRC_ALPHA, GL2.GL_ONE_MINUS_SRC_ALPHA);\n\t\tgl.glMatrixMode(GL2.GL_MODELVIEW);\n\t\tgl.glEnable(GL.GL_CULL_FACE);\n\t\tgl.glCullFace(GL.GL_BACK);\n\t}", "title": "" } ]
7aaa474696b74e0929491163f75cdaa4
Gets a customizable String for the given path with the option to do additional replacements for various variables.
[ { "docid": "53ac456f299bba2e51741f9bc96426a2", "score": "0.5521498", "text": "public String getValue(String path, String defaultValue, boolean addExtraValues) {\n\t\tString value = this.translatedValues.get(path);\n\t\tif (value == null) {\n\t\t\tvalue = defaultValue;\n\t\t\tif (defaultValue.equals(path)) {\n\t\t\t\tdiscord.postReport(\"Invalid lang path: \" + path);\n\t\t\t}\n\t\t}\n\t\tif (addExtraValues) {\n\t\t\treturn value.replace(\"{TIME}\", TIME_24.format(new Date()));\n\t\t}\n\t\treturn value;\n\t}", "title": "" } ]
[ { "docid": "9240edfbf16df1d641b470d06da86ded", "score": "0.5396286", "text": "VariablePath getVariablePath();", "title": "" }, { "docid": "792a56d55c93a575d5a6ac944c3080c0", "score": "0.5361056", "text": "private static String mungify(String path)\n {\n return path.replaceAll(\"\\\\.\", Matcher.quoteReplacement(sep));\n }", "title": "" }, { "docid": "07ead216d5812f812df2cd1a7223f0d1", "score": "0.52703536", "text": "private String asHoconStr(List<String> basePath, String... path) {\n List<String> fullPath = Stream.concat(basePath.stream(), Arrays.stream(path)).collect(Collectors.toList());\n\n ConfigValue hoconCfg = HoconConverter.represent(registry, fullPath);\n\n return hoconCfg.render(ConfigRenderOptions.concise().setJson(false));\n }", "title": "" }, { "docid": "b4f6c0ce3ee1e0f3700f92d31586d300", "score": "0.52555287", "text": "public static String displayablePath(String path) {\n final int DEFAULT_LENGTH = 40;\n return displayablePath(path, DEFAULT_LENGTH);\n }", "title": "" }, { "docid": "9ade0eb0eeb593a18dd775fb1b05b2c3", "score": "0.5248777", "text": "public String solutionPathExtended() {\n String output = solutionPathExtended(this, \"\");\n\n // Remove trailing border.\n String border = \"\";\n for (int i = 0; i < width; i++) {\n border += \"--\";\n }\n String regex = border + \"$\";\n output = output.replaceAll(regex, \"\");\n\n return output;\n }", "title": "" }, { "docid": "13141ca5d020347313304b3fe628944b", "score": "0.5136961", "text": "private static StringBuilder configFileName(String path) {\n StringBuilder linkB = new StringBuilder(path);\n\n for (int i = 0; i < linkB.length(); i++) {\n if (linkB.charAt(i) == '/') {\n linkB.setCharAt(i, '-');\n }\n }\n\n return linkB;\n }", "title": "" }, { "docid": "b20d9b04566cd20b10561a94bbe993ac", "score": "0.512296", "text": "static String stringify(Arg arg, SourcePathResolverAdapter pathResolver) {\n StringBuilder builder = new StringBuilder();\n arg.appendToCommandLine(builder::append, pathResolver);\n return builder.toString();\n }", "title": "" }, { "docid": "34516fe1eed826564409f6c2a61d7b2c", "score": "0.5083578", "text": "public static String replaceVars(Map variables, String src) {\n Iterator it = variables.entrySet().iterator();\n StringBuffer sb = new StringBuffer();\n boolean match = false;\n /* a pattern for variable reference matching */\n Pattern pv = Pattern.compile(\"(\\\\$\\\\{([^${}]+)\\\\})\");\n Matcher m = pv.matcher(src);\n while (m.find()) {\n String vn = m.group(2);\n String vv = (String) variables.get(vn);\n if (vv == null)\n vv = \"\";\n /* replace in string */\n m.appendReplacement(sb, vv);\n match = true;\n }\n m.appendTail(sb);\n return sb.toString();\n }", "title": "" }, { "docid": "31e7c80f8ac543112177c7f1a12c494c", "score": "0.506386", "text": "private static String fetchTemplateString(String key) {\n String templateString = FileManager.getLanguageConfig().getString(key);\n\n // replace & to real color codes (§)\n templateString = templateString.replaceAll(\"&\", \"§\");\n\n // load prefix\n if(prefix == null) {\n prefix = FileManager.getLanguageConfig().getString(\"General.prefix\");\n assert prefix != null;\n prefix = prefix.replaceAll(\"&\", \"§\");\n }\n\n return prefix + templateString;\n }", "title": "" }, { "docid": "613b67f09f91b2f856c194253df97137", "score": "0.5059141", "text": "private String createPathString(Path path, String sep) {\n if(path == null) {\n return null;\n }\n\n final StringBuffer buf= new StringBuffer();\n\n for(int i= 0; i < path.list().length; i++) {\n File file= getProject().resolveFile(path.list()[i]);\n\n if(!file.exists()) {\n log(\"Classpath entry not found: \" + file, Project.MSG_WARN);\n }\n\n buf.append(file.getAbsolutePath()).append(sep);\n }\n\n if(path.list().length > 0) { // cut the last ;\n buf.deleteCharAt(buf.length() - 1);\n }\n\n return buf.toString();\n }", "title": "" }, { "docid": "bea08391cb845a0b5a6e3181221466ba", "score": "0.500398", "text": "private String buildString(String currentDirectory, String arg){\n StringBuilder sb = new StringBuilder();\n sb.append(currentDirectory);\n sb.append(System.getProperty(\"file.separator\"));\n sb.append(arg);\n return sb.toString();\n }", "title": "" }, { "docid": "f844fd012ef166299de1ee91d422b113", "score": "0.49806264", "text": "private static String fixPathString(String path)\n {\n StringBuilder fixpath = new StringBuilder(path);\n for (int q = 0; q < fixpath.length(); q++)\n {\n if (fixpath.charAt(q) == '\\\\')\n {\n fixpath.setCharAt(q, '/');\n }\n }\n return fixpath.toString();\n }", "title": "" }, { "docid": "40885d677c90c6c8ca876683224c5d41", "score": "0.49679253", "text": "public static String GenerateStringFromResource(String path) throws IOException\r\n\t{\n\t\treturn new String(Files.readAllBytes(Paths.get(path)));\r\n\t}", "title": "" }, { "docid": "929c696acf36794fffb3c7f32897def7", "score": "0.4966614", "text": "protected void appendInferredPaths(String path) {\n // We wrap in a list here so we have an Iterable for the\n // Iterables lib.\n List<String> pieces = Lists.newArrayList(path.split(\"\\\\.\"));\n\n // For each path prefix, append.\n for (int i = 0; i < pieces.size(); ++i) {\n\n String cPath = Joiner.on(\".\").join(Iterables.limit(pieces, i + 1));\n\n // Actually append the path if it is needed (i.e. it is not\n // already present OR it is the path given to the method).\n if (i == pieces.size() - 1 || !paths.contains(cPath)) {\n if (i == 0) {\n sb.append(\"var \");\n }\n\n sb.append(cPath);\n\n if (i < pieces.size() - 1) {\n sb.append(\";\\n\");\n }\n\n paths.add(cPath);\n }\n }\n }", "title": "" }, { "docid": "f7335250c5bdf27aa8c9f449ac303a60", "score": "0.49664897", "text": "String resolvePath( String rootPath, String entryPath ) {\n String extraPath = Const.NVL( entryPath, \"/\" );\n if ( needToCheckPathForVariables() ) {\n if ( containsVariables( entryPath ) ) {\n return extraPath;\n }\n }\n String newPath = Const.NVL( rootPath, \"/\" );\n if ( newPath.endsWith( \"/\" ) && extraPath.startsWith( \"/\" ) ) {\n newPath = newPath.substring( 0, newPath.length() - 1 );\n } else if ( !newPath.endsWith( \"/\" ) && !extraPath.startsWith( \"/\" ) ) {\n newPath += \"/\";\n } else if ( extraPath.equals( \"/\" ) ) {\n extraPath = \"\";\n }\n return newPath + extraPath;\n }", "title": "" }, { "docid": "ef25ee57673c69350efad2e522ae3192", "score": "0.4955508", "text": "protected String replaceVariables(final Player player, final String message) {\n\t\treturn message;\n\t}", "title": "" }, { "docid": "53c04cbaf0d9c7b6fb9ac8e2c5d23ffe", "score": "0.49266806", "text": "@NotNull\n public static String getFeatureNameFromPathHack(@NotNull Path path) {\n String fileName = path.getFileName().toString();\n int separatorIndex = fileName.lastIndexOf('-');\n if (separatorIndex < 0) {\n return \"\";\n }\n\n return fileName.substring(0, separatorIndex);\n }", "title": "" }, { "docid": "22e82e69ca34911c79809845a3bd4d51", "score": "0.49183238", "text": "private static String getTemplateFileContents(final String path) throws IOException {\n final InputStream is = FileLocator.openStream(SiriusEditPlugin.getPlugin().getBundle(), new Path(path), false);\n final BufferedReader reader = new BufferedReader(new InputStreamReader(is));\n final StringBuilder sb = new StringBuilder();\n String line = null;\n try {\n while ((line = reader.readLine()) != null) {\n sb.append(line).append(NL);\n }\n } finally {\n is.close();\n }\n return sb.toString();\n }", "title": "" }, { "docid": "50d47ace4f9af4edb01f8e78359622dd", "score": "0.48691472", "text": "public static Optional<String> getStringAsOptWithFilePath(String\n filePath) {\n return getStringAsOptWithFilePath(filePath, UTF_8_CharsetString);\n }", "title": "" }, { "docid": "72e9de4dcc6c09a5b7941cf28afb9e6e", "score": "0.48647612", "text": "private String addPathParams(String path, Map<String, String> pathParams) {\n String updatedBasePath = path;\n for (final Map.Entry<String, String> pathParam : pathParams.entrySet()) {\n final String paramName = pathParam.getKey();\n updatedBasePath = updatedBasePath.replace(\"{\" + paramName + \"}\", pathParam.getValue());\n }\n return updatedBasePath;\n }", "title": "" }, { "docid": "92dbf8de7b4454f287a534a3070e7622", "score": "0.4859417", "text": "String getReplaced();", "title": "" }, { "docid": "06c85e5963a7100358ae92d669cec794", "score": "0.48446614", "text": "private String getDOption(String key, String value)\r\n\t{\n\t\t\treturn \"-D\"+key+\"=\"+value;\r\n\t\t//else\r\n\t\t//\treturn \"-D\"+key+\"=\\\"\"+value+\"\\\"\";\r\n\t}", "title": "" }, { "docid": "18f33ca33d79844555ac33b4da2b7be2", "score": "0.48367026", "text": "protected String getTemplateString(String templatePath) throws IOException {\n logger.info(\"Loading template file...\");\n List<String> lines = Files.readAllLines(Paths.get(templatePath),\n Charset.defaultCharset());\n logger.info(\"Got \"+ lines.size() +\" lines.\");\n // Turn the List into a String and return it.\n String output = \"\";\n for(String line : lines) {\n output += line +\"\\n\";\n }\n return output;\n }", "title": "" }, { "docid": "73979d37a02070f7e0a6333680921067", "score": "0.4832416", "text": "@Override\n public String toString() {\n // We don't StringUtil.jQuote paths here, because on Windows there will be \\\\-s then that some may find\n // confusing.\n return TemplateLoaderUtils.getClassNameForToString(this) + \"(\"\n + \"baseDir=\\\"\" + baseDir + \"\\\"\"\n + (canonicalBasePath != null ? \", canonicalBasePath=\\\"\" + canonicalBasePath + \"\\\"\" : \"\")\n + (emulateCaseSensitiveFileSystem ? \", emulateCaseSensitiveFileSystem=true\" : \"\")\n + \")\";\n }", "title": "" }, { "docid": "4e85a6a4c5c2a378b711e1c1e27f696b", "score": "0.4829834", "text": "public String wrap(String path) {\n return uriPrefix + path;\n }", "title": "" }, { "docid": "552ea8f16e36bdaae3cbbdf6c290b746", "score": "0.48176104", "text": "public static String ellidedPath(String path)\r\n {\n StringTokenizer tokenizer = new StringTokenizer(path, File.separator);\r\n ArrayList parts = new ArrayList();\r\n while (tokenizer.hasMoreTokens()) {\r\n parts.add(tokenizer.nextToken());\r\n }\r\n if (parts.size() < 6) {\r\n return path;\r\n }\r\n \r\n StringBuffer buffer = new StringBuffer();\r\n buffer.append(parts.get(0));\r\n buffer.append(File.separator);\r\n buffer.append(parts.get(1));\r\n buffer.append(File.separator);\r\n buffer.append(\"...\");\r\n buffer.append(File.separator);\r\n buffer.append(parts.get(parts.size() - 2));\r\n buffer.append(File.separator);\r\n buffer.append(parts.get(parts.size() - 1));\r\n return buffer.toString();\r\n }", "title": "" }, { "docid": "a042948117f88af7e597b625a41ad3da", "score": "0.48098037", "text": "private String cP(String path){\n\t\tConfig.set(path, null);\n\t\treturn path;\n\t}", "title": "" }, { "docid": "40f53a6c8237f3a97f51066362b611ff", "score": "0.48086673", "text": "String resolvePath(String path){\n\t\tif (path.charAt(0) != '/')\n\t\t\tpath = currentDir + \"/\" + path;\n\n\t\tStringTokenizer pathSt = new StringTokenizer(path, \"/\");\n\t\tStack segments = new Stack();\n\t\twhile (pathSt.hasMoreTokens())\n\t\t\t{\n\t\t\tString segment = pathSt.nextToken();\n\t\t\tif (segment.equals(\"..\"))\n\t\t\t\t{\n\t\t\t\tif (!segments.empty())\n\t\t\t\t\tsegments.pop();\n\t\t\t\t}\n\t\t\telse if (segment.equals(\".\"))\n\t\t\t\t{\n\t\t\t\t// skip\n\t\t\t\t}\n\t\t\telse\n\t\t\t\t{\n\t\t\t\tsegments.push(segment);\n\t\t\t\t}\n\t\t\t}\n\n\t\tStringBuffer pathBuf = new StringBuffer(\"/\");\n\t\tEnumeration segmentsEn = segments.elements();\n\t\twhile (segmentsEn.hasMoreElements())\n\t\t\t{\n\t\t\tpathBuf.append(segmentsEn.nextElement());\n\t\t\tif (segmentsEn.hasMoreElements())\n\t\t\t\tpathBuf.append(\"/\");\n\t\t\t}\n\n\t\treturn pathBuf.toString();\n\t}", "title": "" }, { "docid": "08c17d053b575abb9fb09a6291cd5ead", "score": "0.4798328", "text": "public static String getMessage(String path) {\n\t\treturn ChatColor.translateAlternateColorCodes('&', getMessageYml().getString(path));\n\t\t\n\t}", "title": "" }, { "docid": "06f213e4c654eacb5706d08b00e1a35c", "score": "0.47970077", "text": "public String getValue(String path, boolean addExtraValues) {\n\t\treturn this.getValue(path, path, addExtraValues);\n\t}", "title": "" }, { "docid": "c513e97dca5933bbcfea7533ef710df8", "score": "0.47915938", "text": "private String ReplacewithString(String key2) {\r\n\t\tswitch (key2) {\r\n\t\tcase \"Slash\":\r\n\t\t\treturn \"?\";\r\n\t\tcase \"Back Slash\":\r\n\t\t\treturn \"\\\\\";\r\n\t\tcase \"Back Quote\":\r\n\t\t\treturn \"~\";\r\n\t\tcase \"Quote\":\r\n\t\t\treturn \"\\\"\";\r\n\t\tcase \"Semicolon\":\r\n\t\t\treturn \":\";\r\n\t\tcase \"Open Bracket\":\r\n\t\t\treturn \"[\";\r\n\t\tcase \"Close Bracket\":\r\n\t\t\treturn \"]\";\r\n\t\tcase \"Minus\":\r\n\t\t\treturn \"-\";\r\n\t\tcase \"Equals\":\r\n\t\t\treturn \"+\";\r\n\t\tcase \"Caps Lock\":\r\n\t\t\treturn \"Caps\";\r\n\t\tcase \"Comma\":\r\n\t\t\treturn \",\";\r\n\t\tcase \"Period\":\r\n\t\t\treturn \".\";\r\n\t\tcase \"Up\":\r\n\t\t\treturn \"^\";\r\n\t\tcase \"Left\":\r\n\t\t\treturn \"<\";\r\n\t\tcase \"Right\":\r\n\t\t\treturn \">\";\r\n\t\tcase \"Space\":\r\n\t\t\treturn \" \";\r\n\t\tcase \"Down\":\r\n\t\t\treturn \" v \"; //Easiest hack this side of Alabama. \r\n\t\tdefault:\r\n\t\t\treturn key2;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "106e67db1d864c28e6c9d06b7664108c", "score": "0.4781318", "text": "private String replaceInTemplate (String input) {\r\n Integer beignIdx = input.indexOf(\"${\");\r\n Integer endIdx = input.indexOf(\"}\", beignIdx);\r\n\r\n if (beignIdx != -1) {\r\n if ( endIdx == -1 ){\r\n Log.error(\"Typo in template! Missing closing bracket }. Can't do variable substitution!\");\r\n }\r\n\r\n String toReplace = input.substring(beignIdx+2, endIdx);\r\n String toCheck = toReplace;\r\n if ( toReplace.startsWith(\"ctx.\") ){\r\n toCheck = toReplace.substring(4);\r\n }\r\n String result = checkIfInputIsVariable(toCheck).toString();\r\n\r\n if ( ! toReplace.equals(\"ctx.\" + result) ) {\r\n return replaceInTemplate(input.replace(\"${\" + toReplace + \"}\", result));\r\n }\r\n }\r\n\r\n return input;\r\n }", "title": "" }, { "docid": "76fd5db42c460a9f55b087065be7520f", "score": "0.4777777", "text": "public static String convert(Path path) {\n return path.getPath();\n }", "title": "" }, { "docid": "f761a67423eaa7f4adee55f09d85b343", "score": "0.47749177", "text": "public static String fileToString(Path path) {\n return fileToString(path.toString());\n }", "title": "" }, { "docid": "ea2976bcfc80b9aa2976755e906f2121", "score": "0.47667345", "text": "public static String displayablePath(String path, int visibleChars) {\n /*\n * use a very simple method: prefix + \"...\" + suffix\n *\n * where prefix is the beginning part of path (as much as we can squeeze in)\n * and suffix is the end path of path\n */\n\n if (path == null || path.length() <= visibleChars) {\n return path;\n }\n\n final String OMITTED = \"...\";\n final int OMITTED_LENGTH = OMITTED.length();\n final int MIN_PREFIX_LENGTH = 4;\n final int MIN_SUFFIX_LENGTH = 4;\n /*\n * we want to show things other than OMITTED. if we have too few for\n * suffix and prefix, then just return as much as we can of the filename\n */\n if (visibleChars < (OMITTED_LENGTH + MIN_PREFIX_LENGTH + MIN_SUFFIX_LENGTH)) {\n return path.substring(path.length() - visibleChars);\n }\n\n int affixLength = (visibleChars - OMITTED_LENGTH) / 2;\n String prefix = path.substring(0, affixLength);\n String suffix = path.substring(path.length() - affixLength);\n\n return prefix + OMITTED + suffix;\n }", "title": "" }, { "docid": "6b555750115221ae3f0b5ae73dc50738", "score": "0.47657922", "text": "protected static String initObjectPathString() {\n\t\t// if -o was not used, consult the AT_OBJECTPATH environment variable instead\n\t\tif (_OBJECTPATH_ARG_ == null) {\n\t\t\t_OBJECTPATH_ARG_ = File.pathSeparator + System.getProperty(_ENV_AT_OBJECTPATH_, \"\");\n\t\t}\n\t\t// always append the root atlib directories\n\t\t// 'iat' automatically passes all of these atlib/* dirs in the 'AT_LIBPATH' env var\n\t\treturn _OBJECTPATH_ARG_ + File.pathSeparator + System.getProperty(_ENV_AT_LIBPATH_, \"\");\n\t}", "title": "" }, { "docid": "6f17be2dda85d7646d66abcc6310d118", "score": "0.4757846", "text": "String getReplaceWith();", "title": "" }, { "docid": "be861da06ef14a2622dfe2f5a33eb992", "score": "0.47447863", "text": "String replaceVariables(String string) {\n var result = string;\n for (var variable : variables.entrySet()) {\n result = result.replace(variable.getKey(), variable.getValue());\n }\n return result;\n }", "title": "" }, { "docid": "a3dcee91026fe04a6327e05363dc4ca4", "score": "0.47440597", "text": "private static String buildFileAddressString(Vector<String> pathVector){\n\n\t\tStringBuilder stringBuilder = new StringBuilder();\n\t\tfor(int i = 0; i < pathVector.size(); i++){\n\t\t\tif(i == pathVector.size()-1){\n\t\t\t\tstringBuilder.append(pathVector.elementAt(i));\n\t\t\t}\n\t\t\telse{\n\t\t\t\tstringBuilder.append(pathVector.elementAt(i));\n\t\t\t\tstringBuilder.append(\"/\");\n\t\t\t}\n\t\t}\n\t\tString finalString = stringBuilder.toString();\n\t\treturn finalString;\n\t}", "title": "" }, { "docid": "944b03fb544ad78d0d40258758031860", "score": "0.47404766", "text": "protected static String addPaths(String base, String path) {\n if (path == null)\n return base;\n String rv = (new File(base, path)).toString();\n if (SystemVersion.isWindows())\n rv = rv.replace(\"\\\\\", \"/\");\n return rv;\n }", "title": "" }, { "docid": "9cabe21c125e830c8e84fff11511cdc4", "score": "0.47061217", "text": "static public String extractAndAdjustEmbedded() {\n\n try {\n String configure = copyResourceToFile(\"mydefaultconfig.yml\");\n String security = copyResourceToFile(\"security.yml\");\n String mongo = getMongoUri();\n System.out.println(\"mongo-uri configuration replaced with : \" + mongo);\n // Substitute selected value in configuration\n List<String> newConf = Files.lines(Paths.get(configure))\n .map((line) -> {\n return line\n .replaceAll(\"conf-file:\\\\s*security.yml\", \"conf-file: \\\"\" + security + \"\\\"\")\n .replaceAll(\"mongo-uri:.*$\", \"mongo-uri: \\\"\" + mongo + \"\\\"\");\n })\n .collect(Collectors.toList());\n\n // Rewrite modified file.\n Files.write(Paths.get(configure), newConf, StandardOpenOption.CREATE, StandardOpenOption.WRITE);\n\n return configure;\n } catch (IOException ex) {\n Logger.getLogger(MyUtils.class.getName()).log(Level.SEVERE, null, ex);\n return null;\n }\n\n }", "title": "" }, { "docid": "a885c05cafce7889542785902e43b219", "score": "0.47054273", "text": "static String substitutionsString(HashMap<Variable,Integer> subst) {\n\t\tString ret = \"\";\n\t\tIterator<Variable> it = subst.keySet().iterator();\n\t\twhile (it.hasNext()) {\n\t\t\tVariable v = it.next();\n\t\t\tret += \",\" + v.toString() + \",\" + subst.get(v);\n\t\t}\n\t\tif (ret.length()>0)\n\t\t\treturn ret.substring(1);\n\t\treturn \"\";\n\t}", "title": "" }, { "docid": "5f84136d3afa77aed5be1d8cbaa09017", "score": "0.46995252", "text": "public void setString(String path, String value)\n {\n int index = path.indexOf('.');\n if (index == - 1)\n {\n this.addTag(new NbtTagString(path, value));\n return;\n }\n this.getOrCreateCompound(path.substring(0, index)).setString(path.substring(index + 1), value);\n }", "title": "" }, { "docid": "3fa3b40972fb4992a5902d84d7f06f8c", "score": "0.46952778", "text": "private static String prependEnvironmentWithPathSeparator(Map<String, String> env, String varName, String prependValue) {\n String v = env.get(varName);\n if(v != null)\n prependValue = prependValue + File.pathSeparatorChar + v;\n env.put(varName, prependValue);\n return v;\n }", "title": "" }, { "docid": "4b3ea29614f9a1e49a070e7f489e6137", "score": "0.46931776", "text": "private String pathString(LinkInfoImpl linkInfo) {\n if (linkInfo.getContext() == LinkInfoImpl.PACKAGE_FRAME) {\n // Not really necessary to do this but we want to be consistent\n // with 1.4.2 output.\n return linkInfo.getBuilder().getName() + HTML_FILE_EXT;\n }\n StringBuilder buf = new StringBuilder( mWriter.getRelativePath() );\n buf.append( DirectoryManager.getPathToLibrary( linkInfo.getBuilder().getOwningLibrary(),\n linkInfo.getBuilder().getName() + HTML_FILE_EXT ) );\n return buf.toString();\n }", "title": "" }, { "docid": "c16b174687d251486d94232f0d548892", "score": "0.4692128", "text": "private String buildString(String message) {\n\t\tPluginDescriptionFile pdFile = plugin.getDescription();\n\t\treturn \"[\" + pdFile.getName() +\"] (\" + pdFile.getVersion() + \") \" + message;\n\t}", "title": "" }, { "docid": "27d5cc331b855bf28e6e8183160a8b3d", "score": "0.4686676", "text": "public static String replaceVars(List variables, String src) {\n StringBuffer sb = new StringBuffer();\n Matcher m = pv.matcher(src);\n while (m.find()) {\n try {\n int vnum = Integer.parseInt(m.group(2));\n String vv = (String) variables.get(vnum);\n if (vv == null)\n vv = \"\";\n /* replace in string */\n m.appendReplacement(sb, vv);\n } catch (NumberFormatException nex) {\n } catch (NoSuchElementException e) {\n }\n }\n m.appendTail(sb);\n return sb.toString();\n }", "title": "" }, { "docid": "968f90a91f7bf72623afe2456faf93e7", "score": "0.4678328", "text": "String PathtoString(Path p) {\r\n\r\n String s=p.head;\r\n\r\n p=p.tail;\r\n\r\n for(;p!=null; p=p.tail)\r\n s=s+\".\"+p.head;\r\n\r\n return s;\r\n }", "title": "" }, { "docid": "a4edb2cc813f1905de4fac20935f9968", "score": "0.46664727", "text": "private static String fromFile(boolean b) {\r\n\t\tif (b) {\r\n\t\t\treturn \" set from property file\";\r\n\t\t}\r\n\t\treturn \"\";\r\n\t}", "title": "" }, { "docid": "c72b8c9533852567fa36ca9d34a08d1b", "score": "0.4665207", "text": "public String getString(String cp) {\n return virPath;\n }", "title": "" }, { "docid": "a624f4ca1cc2b5450b633a8af554010a", "score": "0.46543473", "text": "public static final String formatOperationPathName(String operationPath) {\n return OPERATION_PATH_PATH_TEMPLATE.instantiate(\"operation_path\", operationPath);\n }", "title": "" }, { "docid": "31d676339895ccdbd60554232473a0ce", "score": "0.4651271", "text": "public void printSetting(String path) {\n System.out.println(\"The setting '\" + path + \"' is: \" + config.getString(path));\n }", "title": "" }, { "docid": "3b2fed4fb09acadaf0cad2237bc703fd", "score": "0.46490335", "text": "public String getOption(String path){\r\n\t\treturn options.get(path);\r\n\t}", "title": "" }, { "docid": "430ab2a3dfa960586daef2531528a82a", "score": "0.46411276", "text": "private static String substituteString(String orig, int paramNum,\n String subst){\n String result = orig;\n String paramSubst = \"%\"+ paramNum;\n int len = paramSubst.length();\n int index = result.indexOf (paramSubst);\n String ending = \"\";\n if (index >= 0) {\n if ((index+len) < result.length ())\n ending = result.substring (index+len);\n result = result.substring (0, index) + subst + ending;\n }\n else result += \" \" + subst;\n\n return result;\n }", "title": "" }, { "docid": "839f7d4523e22076b6ff9d94effc5c62", "score": "0.46185476", "text": "@DISPID(5)\r\n\t// = 0x5. The runtime will prefer the VTID if present\r\n\t@VTID(14)\r\n\tjava.lang.String fullPath();", "title": "" }, { "docid": "6ed53c9c4ed71fcd54ee76f9ff26e0ed", "score": "0.46133882", "text": "public static String interpolate(String text, Map vars) {\n HashSubstitution subst = new HashSubstitution(vars);\n Perl5Matcher matcher = new Perl5Matcher();\n Perl5Compiler compiler = new Perl5Compiler();\n StringBuffer result = new StringBuffer();\n PatternMatcherInput input = new PatternMatcherInput(text);\n\n try {\n Util.substitute(result,\n matcher,\n compiler.compile(\"(::(?:\\\\w+(?:\\\\.\\\\w+)*)::)\"),\n subst,\n input,\n Util.SUBSTITUTE_ALL);\n } catch (MalformedPatternException e) {\n throw new UncheckedWrapperException(\"cannot perform substitution\", e);\n }\n return result.toString();\n }", "title": "" }, { "docid": "4997aedf16baecfaff71de7e5b8ed381", "score": "0.45898545", "text": "private String sanitizePath(String p) {\n return p.replaceAll(\"'\", \"%27\");\n }", "title": "" }, { "docid": "6c7818989c31040ba47554795871e096", "score": "0.45798516", "text": "public String toString()\n { \t\n StringBuffer paramText = new StringBuffer();\n \n if (params.size() > 0)\n {\n paramText.append(\"(\"+formatter.format(params.get(0)));\n for (int i=1; i<params.size(); i++)\n {\n paramText.append(\",\"+formatter.format(params.get(i)));\n }\n paramText.append(\")\");\n }\n \n if (type == VariableType.VARIABLE)\n {\n return \"$\"+name+paramText;\n }\n \n // Must be a constant or preset.\n return name+paramText;\n }", "title": "" }, { "docid": "e5f1f4cfb8b447345307418b6cfc858d", "score": "0.45783257", "text": "public String getPathTranslated() {\n\t\t\treturn null;\n\t\t}", "title": "" }, { "docid": "1f4ef7d723fdc590fe872a7b87505471", "score": "0.45776528", "text": "private String fullPath(String path) {\n return getRepository().getUrlBase() + path;\n }", "title": "" }, { "docid": "9bceaacf4f700c567e49da6b22705996", "score": "0.45765325", "text": "@Override\n\tpublic String toString(){\n\t\tString buffer;\n\t\tbuffer = String.format(\"\\\"%s\\\"\", path.toString());\n\t\tbuffer = buffer + String.format(\", %d, %d\",frequency, firstOccurance);\n\t\tbuffer = buffer + \"\\n\";\n\t\treturn buffer;\t\t\n\t}", "title": "" }, { "docid": "9ca93356f99df5b011292be97b7f0eee", "score": "0.45745018", "text": "private String replaceLabel() {\n String s = \"c(\";\n for (int i=1; i< nbfile; i++)\n s += \"'Strategie \" + i + \"', \";\n s += \"'Strategie \" + (nbfile) + \"')\";\n return s;\n }", "title": "" }, { "docid": "3138724ad6a8a1e9581dc959710c23d1", "score": "0.45699129", "text": "public String stringify() {\n return (String) readUniverse(OPTION_STRING);\n }", "title": "" }, { "docid": "912904be0a76def222d9457e60db7430", "score": "0.45671883", "text": "public static Optional<String> getStringAsOptWithFilePath(\n String filePath, String charsetName) {\n return JMOptional\n .getOptional(JMFiles.readString(filePath, charsetName));\n }", "title": "" }, { "docid": "d77d871aa37ceec444ead6fca4261e81", "score": "0.45606074", "text": "protected void setStringInIDE(String value) {\n\t\tif (sourceFile == null) {\n\t\t\treturn;\n\t\t}\n\t\tsourceFile.setText(value);\n\t\tsourceFile = null;\n\t}", "title": "" }, { "docid": "c8d7f20e3599fd410c3a1d18f1eaf8b2", "score": "0.4556328", "text": "protected String commandStr(Vector<String> paths) {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tif (paths.size() > 0) {\n\t\t\tsb.append(OperatingSystem.closingCharacter());\n\t\t\tsb.append(paths.get(0));\n\t\t\tfor (int i = 1; i < paths.size(); i++) {\n\t\t\t\tsb.append(OperatingSystem.pathSeparator());\n\t\t\t\tsb.append(paths.get(i));\n\t\t\t}\n\t\t\tsb.append(OperatingSystem.closingCharacter());\n\t\t}\n\t\treturn sb.toString();\n\t}", "title": "" }, { "docid": "ea9d27c92eb34871ced8380c07574550", "score": "0.45548204", "text": "public String formatPaths(Collection paths, boolean onlyConflicted) {\n StringBuffer sb = new StringBuffer();\n\n for (Iterator i = paths.iterator(); i.hasNext();) {\n ResolvedPath path = (ResolvedPath)i.next();\n sb.append(formatPath(path, onlyConflicted));\n }\n\n return sb.toString();\n }", "title": "" }, { "docid": "1a777e5bd6d65fd4be8c3a2deee291ba", "score": "0.45541915", "text": "private void displaySpecificPath() {\r\n }", "title": "" }, { "docid": "5e407af1ffbf899a938859f30dfd7a7e", "score": "0.45497814", "text": "public static String getMsgStr(String path) {\n\t\treturn getMsgStr(path, \"zh_cn\");\n\t}", "title": "" }, { "docid": "8639512711cac26d1cd4a85696f40e2b", "score": "0.4548325", "text": "@NonNull\n public String toString() {\n if (mCommand == null) {\n return mUtt + \"/\" + mReplacement;\n }\n return mUtt + \"/\" + mReplacement + \"/\" + mCommand + \"(\" + mArgsAsStr + \")\";\n }", "title": "" }, { "docid": "e2d08ee365c73982fcbba80061cbe8ef", "score": "0.45394", "text": "public String getString() {\n return virPath;\n }", "title": "" }, { "docid": "1dd31d818e2dbe5664c5bc3cccc04437", "score": "0.45303696", "text": "private static String path2Package(String path)\n {\n if(path == null)\n return path;\n StringBuilder sb = new StringBuilder();\n StringTokenizer st = new StringTokenizer(path, \"\\\\/\");\n while(st.hasMoreTokens())\n {\n sb.append(st.nextToken());\n if(st.hasMoreTokens())\n sb.append(\".\"); \n }\n return sb.toString();\n }", "title": "" }, { "docid": "f24ef774b8928e7c850c21e9517a3fd0", "score": "0.4530289", "text": "private String getFullProjectPath(String selectedProject) {\n\n String result = projectReaderService.getFullProjectPath(selectedProject);\n\n return result.concat(projectConfigurationPath);\n\n }", "title": "" }, { "docid": "53f67c14ab1ae9db04baa428066db1f7", "score": "0.45274833", "text": "private String ourString(String input) {\n String newPath = input.substring(input.indexOf(\"images\"));\n return newPath.replaceAll(\"\\\\\\\\\", \"/\");\n }", "title": "" }, { "docid": "bc7bf76d4bec3bc6d594c4b917760809", "score": "0.45224065", "text": "java.lang.String getLocalPath();", "title": "" }, { "docid": "8f1926c7c8dea3508b0715ee2a370825", "score": "0.45213714", "text": "public static String getString(String key, String defaultV) { return getProp(key, defaultV); }", "title": "" }, { "docid": "0d90bf4327e4e281207e933ca5582e7f", "score": "0.45101187", "text": "java.lang.String getOpt();", "title": "" }, { "docid": "0ba6f3e94844256345bad5d9e53a56d4", "score": "0.44985074", "text": "private String ourString(String input) {\n\t\tString newPath = input.substring(input.indexOf(\"images\"));\n\t\treturn newPath.replaceAll(\"\\\\\\\\\", \"/\");\n\t}", "title": "" }, { "docid": "fb8f03e7b09988dae73478971caa59be", "score": "0.44962153", "text": "public String formatPath(ResolvedPath path, boolean onlyConflicted) {\n StringBuffer sb = new StringBuffer();\n\n Map roots = new TreeMap();\n\n for (Iterator i = path.getArtifacts().iterator(); i.hasNext();) {\n RepoArtifact artifact = (RepoArtifact)i.next();\n RepoArtifactId declaredBy = getDeclaredBy(artifact.getId());\n\n if (declaredBy == null) { // Find root nodes\n roots.put(artifact.getId(), artifact);\n }\n }\n\n for (Iterator i = roots.values().iterator(); i.hasNext();) {\n RepoArtifact artifact = (RepoArtifact)i.next();\n formatPath(path.getArtifacts(), artifact, onlyConflicted, sb, \" \");\n }\n\n if ((sb.length() != 0) || !onlyConflicted) {\n return path.getId() + \"\\n\" + sb.toString();\n }\n\n return \"\";\n }", "title": "" }, { "docid": "3833bf7c31a473d165cbfb8fa942e6aa", "score": "0.44788718", "text": "@DISPID(4)\r\n\t// = 0x4. The runtime will prefer the VTID if present\r\n\t@VTID(13)\r\n\tjava.lang.String path();", "title": "" }, { "docid": "449fa64951164033bf9943cc150ad90b", "score": "0.4478411", "text": "public void appendPath(String path) {\r\n\t\tString tok;\r\n\t\tif(null == path)\r\n\t\t\treturn;\r\n\t\tString origPath = getProperty(\"PATH\");\r\n\t\tif(null == pathSep || null == origPath) {\r\n\t\t\tsetPath(path);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tStringTokenizer st = new StringTokenizer(origPath, pathSep);\r\n\t\tStringBuffer sb = new StringBuffer();\r\n\t\twhile(st.hasMoreTokens()) {\r\n\t\t\ttok = st.nextToken();\r\n\t\t\tif(tok.equals(path))\r\n\t\t\t\treturn;\r\n\t\t\tsb.append(tok);\r\n\t\t\tsb.append(pathSep);\r\n\t\t}\r\n\t\tsb.append(path);\r\n\t\tsetPath(path);\r\n\t}", "title": "" }, { "docid": "31c4d3b928203d9ac02205645fcca2d5", "score": "0.44772026", "text": "private static String asVariableReference(String value) {\n return String.format(\"(%s)\", value);\n }", "title": "" }, { "docid": "940f21bf69af771644703712ad15ee57", "score": "0.44620058", "text": "public String getReplacement(String tagID) {\n if (usesCdata) {\n return this.getReplacement(tagID, false); // Needn't be well-formed\n }\n else {\n return this.getReplacement(tagID, true); // Must be well-formed\n }\n }", "title": "" }, { "docid": "00e09d677dd422a3776255fa0e7aff0a", "score": "0.4460046", "text": "public String get(String name) {\n return substituteVars(getRaw(name));\n }", "title": "" }, { "docid": "1848fe242c54f77cc47beb3498b2440f", "score": "0.44438893", "text": "String getFullPath();", "title": "" }, { "docid": "4cdb187e25c77326671973f92118eb9b", "score": "0.4434248", "text": "public static File getLocalizedFile(String path){\r\n plasmaSwitchboard switchboard=plasmaSwitchboard.getSwitchboard();\r\n // create htLocaleDefault, htLocalePath\r\n if (htDefaultPath == null) htDefaultPath = new File(switchboard.getRootPath(), switchboard.getConfig(\"htDefaultPath\",\"htroot\"));\r\n if (htLocalePath == null) htLocalePath = new File(switchboard.getRootPath(), switchboard.getConfig(\"htLocalePath\",\"htroot/locale\"));\r\n //htLocaleSelection = switchboard.getConfig(\"htLocaleSelection\",\"default\");\r\n \r\n // find locales or alternatives in htDocsPath\r\n String htLocaleSelection = switchboard.getConfig(\"htLocaleSelection\",\"default\");\r\n // look if we have a localization of that file\r\n if (!(htLocaleSelection.equals(\"default\"))) {\r\n File localePath = new File(htLocalePath, htLocaleSelection + \"/\" + path);\r\n if (localePath.exists())\r\n return localePath;\r\n }\r\n return new File(htDefaultPath, path);\r\n \t}", "title": "" }, { "docid": "39ab7a00820eee0f12f27615de815945", "score": "0.44305366", "text": "public String pathSelected() {\n\n\t\treturn pref.get(selectedLanguage, null);\n\t}", "title": "" }, { "docid": "c2c959f453754a5349222a2886b057c2", "score": "0.4412801", "text": "public static String encodePath(String path) {\n if (path == null || path.length() == 0) {\n return path;\n }\n\n StringBuffer buf = encodePath(null, path);\n return buf == null ? path : buf.toString();\n }", "title": "" }, { "docid": "c81f0b0c0a163a0df2878dda5d2d7798", "score": "0.44008458", "text": "public String readPath(String path);", "title": "" }, { "docid": "8996f823c3fe697b8da1a7fa95ef1c5a", "score": "0.43872103", "text": "@Deprecated\r\n\tpublic static String getString(String bundlePath, String key, Object[] args) {\r\n\t\t// we will throw a MessingResourceException if the bundle name is\r\n\t\t// invalid\r\n\t\tResourceBundle bundle = getBundle(bundlePath);\r\n\t\ttry {\r\n\t\t\tString msg = bundle.getString(key);\r\n\t\t\treturn formatMessage(args, msg);\r\n\t\t} catch (MissingResourceException e) {\r\n\t\t\treturn \"\";\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "30c36c9ffaeca294ebb4a297810720fb", "score": "0.4387051", "text": "String getString(String name, String def);", "title": "" }, { "docid": "cbb3ab2da9cc62c9a4510339c77d1103", "score": "0.43854836", "text": "java.lang.String getFilePath();", "title": "" }, { "docid": "84a6c652ecac988c92cff35a4c7134b8", "score": "0.43846393", "text": "String getContextPath();", "title": "" }, { "docid": "43702688ca993b17355dd1289c8593d4", "score": "0.4374545", "text": "public String optExtraString(String key, String defaultValue) {\n return mExtraData.optString(key, defaultValue);\n }", "title": "" }, { "docid": "c2a24cc55cd19031c4a3544b6262e208", "score": "0.43619847", "text": "private String replaceFileServerWithLocal(String message, String server) {\r\n SilverTrace.info(\"infoLetter\", \"InfoLetterSessionController.replaceFileServerWithLocal()\",\r\n \"root.MSG_GEN_PARAM_VALUE\", \"wysiwygText avant = \" + message);\r\n String retour = replacePermalinkWithServer(message, server);\r\n while (retour.indexOf(\"/FileServer/\") > -1) {\r\n int place = retour.indexOf(\"/FileServer/\");\r\n String debut = retour.substring(0, place);\r\n int srcPlace = debut.lastIndexOf(\"\\\"\");\r\n debut = debut.substring(0, srcPlace + 1);\r\n String suite =\r\n retour.substring(place + (new String(\"/FileServer/\")).length(), retour.length());\r\n int finNom = suite.indexOf(\"?\");\r\n String nomFichier = \"cid:\" + suite.substring(0, finNom);\r\n nomFichier.replace('_', ' ');\r\n int finURL = suite.indexOf(\"\\\"\");\r\n suite = suite.substring(finURL, suite.length());\r\n retour = debut + nomFichier + suite;\r\n }\r\n SilverTrace.info(\"infoLetter\", \"InfoLetterSessionController.replaceFileServerWithLocal()\",\r\n \"root.MSG_GEN_PARAM_VALUE\", \"wysiwygText après = \" + retour);\r\n return retour;\r\n }", "title": "" }, { "docid": "5aa8f8bb203af3d8db1b4c1230afd58b", "score": "0.43619183", "text": "public static String getString( String key )\n {\n try\n {\n Properties bundle = new Properties();\n InputStream in = ComponentConfigurationProvider.class.getResource( BUNDLE_NAME ).openStream();\n bundle.load( in );\n //\n // if there is a system property with the same key, the system property will be used instead of\n // the value from the configuration file.\n //\n String defaultValue = bundle.getProperty( key );\n return System.getProperty( key, defaultValue );\n }\n catch ( Exception e )\n {\n throw new RuntimeException( e );\n // return '!' + key + '!';\n }\n }", "title": "" }, { "docid": "36f7bd4c6dc77b1914bd3d254f097906", "score": "0.43604934", "text": "public abstract String getTemplatePath();", "title": "" }, { "docid": "bbc222a3537912066684c33d7a4d69fb", "score": "0.4358254", "text": "String getPath(String path) {\n\n\t\tString filePath = \"\";\n\t\ttry {\n\t\t\tfilePath = URLDecoder.decode(getClass().getResource(path).getPath(), \"UTF-8\");\n\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn filePath;\n\t}", "title": "" }, { "docid": "415b095f87f6ba5db8545b7e851b501d", "score": "0.43578544", "text": "String localize(String input) {\n input = input.replaceAll(Pattern.quote(mArcsinString), \"asin\");\n input = input.replaceAll(Pattern.quote(mArccosString), \"acos\");\n input = input.replaceAll(Pattern.quote(mArctanString), \"atan\");\n input = input.replaceAll(mSinString, \"sin\");\n input = input.replaceAll(mCosString, \"cos\");\n input = input.replaceAll(mTanString, \"tan\");\n if(!useRadians) {\n input = input.replaceAll(\"sin\", \"sind\");\n input = input.replaceAll(\"cos\", \"cosd\");\n input = input.replaceAll(\"tan\", \"tand\");\n }\n input = input.replaceAll(mLogString, \"log\");\n input = input.replaceAll(mLnString, \"ln\");\n return input;\n }", "title": "" }, { "docid": "5064aa7bef96e1ddfdaf5292ac4bb10e", "score": "0.4343947", "text": "private String getSourceText(Path path) throws IOException {\n StringBuilder text = new StringBuilder();\n File file = path.toFile();\n\n // if the current file is a file (and not a directory)\n if (!file.isDirectory()) {\n // if the current file is a Java file\n if (isJavaFile(file)) {\n try (BufferedReader reader = new BufferedReader(new FileReader(file))) {\n String nextLine = \"\";\n\n // append the text contained within this file to the string builder\n while ((nextLine = reader.readLine()) != null) {\n text.append(nextLine);\n text.append(\"\\n\");\n }\n }\n }\n } else { // if the current file is a directory...\n File[] files = file.listFiles();\n\n // ...recurse for each file contained within this current directory\n for (File f : files) {\n text.append(getSourceText(f.toPath()));\n }\n }\n\n // return the accumulated text, including the text from all recursions\n return text.toString();\n }", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "b8ed1efb54cffe85d338f9bb28e383f9", "score": "0.0", "text": "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tView layout = initView();\n\t\tgetWindow().setContentView(layout);\n\n\t}", "title": "" } ]
[ { "docid": "c4efc9f9911178a27ec9261384d5f141", "score": "0.66616714", "text": "public void mo12644zk() {\n }", "title": "" }, { "docid": "81758c2988d9979c7d4b3fd5b3cce0e5", "score": "0.6566483", "text": "@Override\r\n\tpublic void pular() {\n\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": "80d20df1cc75d8fa96c12c49a757fc43", "score": "0.65278774", "text": "@Override\n\tprotected void getExras() {\n\t\t\n\t}", "title": "" }, { "docid": "5d259e9a9ed31ac29902b25db191acd1", "score": "0.6491197", "text": "@Override\n\tpublic void bewegen() {\n\t\t\n\t}", "title": "" }, { "docid": "d0a79718ff9c5863618b11860674ac5e", "score": "0.64641994", "text": "@Override\n\tpublic void comer() {\n\n\t}", "title": "" }, { "docid": "5697bde38a38a77f3a0bd238fb737c11", "score": "0.6364729", "text": "@Override\n public int getDochody() {\n return 0;\n }", "title": "" }, { "docid": "777efb33041da4779c6ec15b9d85097c", "score": "0.63003165", "text": "@Override\r\n\tpublic void attaque() {\n\t\t\r\n\t}", "title": "" }, { "docid": "85b25c664df01fd0b02e103c9bbc8372", "score": "0.62679124", "text": "@Override\r\n\tpublic void arreter() {\n\r\n\t}", "title": "" }, { "docid": "df89b968807fade64158ed6c7401bc7a", "score": "0.6251392", "text": "@Override\r\n\tpublic void afficher() {\n\t\t\r\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": "27e4479db2c37a2e77fe796119b66d4b", "score": "0.61936283", "text": "@Override\r\n\t\t\tpublic void adelante() {\n\r\n\t\t\t}", "title": "" }, { "docid": "a56ce606ea5cc945279ea9725eed5272", "score": "0.6159551", "text": "@Override\n\tpublic void alearga() {\n\t\t\n\t}", "title": "" }, { "docid": "07779d53803dc6875c03bdee2e1afeb5", "score": "0.6132161", "text": "@Override\n public void ordenar() {\n }", "title": "" }, { "docid": "b9936bc3db0ac97ae50d7643a27379b4", "score": "0.61193323", "text": "@Override\n\tpublic void intercourse() {\n\n\t}", "title": "" }, { "docid": "35e5940d13f06d1f0d6a21cf2739c70a", "score": "0.61117256", "text": "public function() {}", "title": "" }, { "docid": "5c8e848472fb111129ff96ea7e3eea3d", "score": "0.6059389", "text": "@Override\n public void pintar() {\n \n }", "title": "" }, { "docid": "ae645a2585d37e320a8854cbd4c60db8", "score": "0.603307", "text": "@Override\n\tpublic void afficher() {\n\n\t}", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.6025444", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "829bb71476cb87bb452950e0e97007e6", "score": "0.6019835", "text": "@Override\n\tprotected void dataAcquisition() {\n\t\t\n\t}", "title": "" }, { "docid": "23a210590a86717974bed53b741032bf", "score": "0.598976", "text": "@Override\n\tpublic void emi() {\n\t\t\n\t}", "title": "" }, { "docid": "23a210590a86717974bed53b741032bf", "score": "0.598976", "text": "@Override\n\tpublic void emi() {\n\t\t\n\t}", "title": "" }, { "docid": "23a210590a86717974bed53b741032bf", "score": "0.598976", "text": "@Override\n\tpublic void emi() {\n\t\t\n\t}", "title": "" }, { "docid": "23a210590a86717974bed53b741032bf", "score": "0.598976", "text": "@Override\n\tpublic void emi() {\n\t\t\n\t}", "title": "" }, { "docid": "8d2080edd6605bcfb742d32fd1a0091e", "score": "0.59731764", "text": "@Override\n\tpublic void ilerle() {\n\n\t}", "title": "" }, { "docid": "ee0f5f270c3e0eea9f37c3d1e42b1161", "score": "0.5962932", "text": "public void mo12736g() {\n }", "title": "" }, { "docid": "2aee513697daff4bfe2636e5d0fa9a30", "score": "0.5960253", "text": "@Override\n\tpublic void bewegeNachUnten() {\n\n\t}", "title": "" }, { "docid": "ced4b47c7129b2184e6a77b2a8798fd1", "score": "0.5946297", "text": "@Override\n public void annuler() {\n\n }", "title": "" }, { "docid": "cb1c09afbbe0ad234f211aa36d586f4e", "score": "0.59103566", "text": "@Override\r\n\t\tprotected void update() {\n\t\t\t\r\n\t\t}", "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": "15c9cae08ae101b3a04f9ff3b519ae04", "score": "0.5882791", "text": "public void mo8316a() {\n }", "title": "" }, { "docid": "b7288a7694313b8a4d39355a49521e40", "score": "0.5882", "text": "@Override\r\n\tpublic void atras() {\n\t\tsuper.atras();\r\n\t}", "title": "" }, { "docid": "4077955e82cce22d988577ca0a7978fc", "score": "0.5878152", "text": "@Override\n\tpublic void dormir() {\n\n\t}", "title": "" }, { "docid": "833ba2f1d8822ebbb0dddd05020c0c08", "score": "0.58703625", "text": "@Override\n\tpublic void attaque() {\n\t}", "title": "" }, { "docid": "3e9c4de332bfb94422f785054fa63ada", "score": "0.58645976", "text": "@Override\r\n\tpublic void limpiar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "6b0e2e41d411b76c357d16b3eb3a159c", "score": "0.58598334", "text": "protected abstract void entschuldigen();", "title": "" }, { "docid": "4967494f628119c8d3a4740e09278944", "score": "0.5858707", "text": "@Override\r\n\tprotected void initData() {\n\r\n\t}", "title": "" }, { "docid": "8e75ffe6faa994ed57c6ffb8b56296fe", "score": "0.5852322", "text": "public void xiuproof() {\n\t\t\n\t}", "title": "" }, { "docid": "efaf1962840c7f5346e81dc22773c34b", "score": "0.5850078", "text": "@Override\n protected void init() {\n\n }", "title": "" }, { "docid": "39da14b1f6e1adac9c0b748811e78b68", "score": "0.58369607", "text": "public void mo12645zl() {\n }", "title": "" }, { "docid": "d87000313f7b5075ec45a2b0ee7df323", "score": "0.58221865", "text": "@Override\r\n\tprotected void location() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b7e98de900f4657495e91d5ff4bd6bd6", "score": "0.58140445", "text": "@Override\r\n\tpublic void init(){\r\n\t}", "title": "" }, { "docid": "4e86f604c407a96c75671f663064c24b", "score": "0.580598", "text": "public void mo8319b() {\n }", "title": "" }, { "docid": "cc32bfffe770f8a5c5cf88e6af231ff8", "score": "0.5799415", "text": "@Override\n\tpublic void one() {\n\t\t\n\t}", "title": "" }, { "docid": "b17089ec7f3b873adc1ebff906be9241", "score": "0.57941025", "text": "@Override\r\n\tpublic void carregar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "5783648f118108797828ca2085091ef9", "score": "0.57931334", "text": "@Override\n protected void initialize() {\n \n }", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5791594", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\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": "b429c7e890f65a814ea31e6014003667", "score": "0.5782731", "text": "@Override\n public int describeContents(){\n return 0;\n }", "title": "" }, { "docid": "680a0d25967a28e3b7a6643d55703105", "score": "0.57812274", "text": "public void contaaordem() {\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": "5e6804b1ba880a8cc8a98006ca4ba35b", "score": "0.576386", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57589173", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "b901583faeb614d4d67271470c31d36c", "score": "0.5750588", "text": "@Override\n\tpublic void sare() {\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": "92af0f4d75822a6723aebd9fcc92fafb", "score": "0.574232", "text": "@Override\n protected void initData() {\n \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": "94635a88abd93d3624c032aa22ccc337", "score": "0.5731695", "text": "@Override\n\t\t\tpublic void refresh() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "fa729e301b181004ac22fa6a16b19c1b", "score": "0.57202786", "text": "@Override\n public void init()\n {\n }", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5718783", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "0b812af084ac0cb033ab904c49294fed", "score": "0.5685316", "text": "public void mo25703a() {\n }", "title": "" }, { "docid": "9f7ae565c79188ee275e5778abe03250", "score": "0.5684768", "text": "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "title": "" }, { "docid": "dc4ad5d6a5fcdc294379036f367a401b", "score": "0.5684058", "text": "@Override\n public void frenar() {\n\n }", "title": "" }, { "docid": "c0f925eed1b58e6d19fd99e8a3e26d34", "score": "0.5677166", "text": "@Override\r\n public boolean sallittu() {\r\n return false;\r\n }", "title": "" }, { "docid": "322e19fcfb5cfbd6ffce194d7e04df05", "score": "0.5665703", "text": "@Override\n\t\t\tprotected void reInitial() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "fdeab6ca2d3dd91b347a8cc2f5c862c2", "score": "0.56656164", "text": "private static void generateNew() {\n\t\t\t\t\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": "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": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "18c7036dd108c40b7a27469d8b92687c", "score": "0.564357", "text": "@Override\n\tpublic void onLoadComplete() {\n\t\t\n\t}", "title": "" }, { "docid": "18c7036dd108c40b7a27469d8b92687c", "score": "0.564357", "text": "@Override\n\tpublic void onLoadComplete() {\n\t\t\n\t}", "title": "" }, { "docid": "d6d75432f50fcf22c3834bdfb660cd26", "score": "0.5641307", "text": "@Override\n public void use(){\n \n }", "title": "" }, { "docid": "9bcd15a2298e73719d7c7326027b093b", "score": "0.563811", "text": "@Override\n\tprotected void getData() {\n\n\t}", "title": "" }, { "docid": "c54df76b32c9ed90efddc6fd149a38c7", "score": "0.5628332", "text": "@Override\n protected void init() {\n }", "title": "" }, { "docid": "91e98bbf9cac4e38e126d6b5c2a2ecac", "score": "0.5624502", "text": "@Override\n\tprotected void setupData() {\n\n\t}", "title": "" }, { "docid": "e41e83e59c632c7e6180786a0238f944", "score": "0.5618833", "text": "@Override\r\n\tpublic void cry() {\n\t\t\r\n\t}", "title": "" }, { "docid": "290b69adc6f043c0f6d04c952f144b7d", "score": "0.56084245", "text": "@Override\n\tpublic void ImplementRule()\n\t{\n\n\t}", "title": "" }, { "docid": "b78de853138b4d1a9183420c6cd735cc", "score": "0.5607134", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "b78de853138b4d1a9183420c6cd735cc", "score": "0.5607134", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "9fa93751aa3acc716354baf4c9c4b1ff", "score": "0.5604908", "text": "@Override\n\tpublic void NoOftems() {\n\n\t}", "title": "" }, { "docid": "dce285146917b7d4be86c4f1ade0646e", "score": "0.5600153", "text": "@Override\r\n protected void onLoad() {}", "title": "" }, { "docid": "2698e2df29a24b9998ee11e61625c8a0", "score": "0.5599527", "text": "private void method() {\n\t\t\t}", "title": "" }, { "docid": "3767348a298bdbc42a516908dfac0022", "score": "0.5598486", "text": "public final void mo34050B() {\n }", "title": "" }, { "docid": "8436022dbd33301a64633011031cfa7b", "score": "0.55980015", "text": "protected void filtrarHoyDDPF() {\n\t\t\r\n\t}", "title": "" } ]
5321e43835605af9ccc38184b0060c8b
ExecutorService service = Executors.newSingleThreadExecutor();
[ { "docid": "68d0a4414537ab4710df3d504e7841b5", "score": "0.64732206", "text": "public static void main(String[] args) {\n\t\t\n\n\t\tExecutorService service = Executors.newCachedThreadPool();\n\t\tSystem.out.println(service.getClass());\n\n\t\twhile (true) {\n\t\t\tservice.execute(()-> {\n\t\t\t\tlong count = 0;\n\t\t\t\twhile (count < 10_000_000L) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(Thread.currentThread());\n\t\t\t});\n\t\t\tUtils.pause(1);\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "title": "" } ]
[ { "docid": "d215fa0b4dd5a1dcc71ddab726452bbc", "score": "0.70248586", "text": "protected abstract ExecutorService getExecutorService();", "title": "" }, { "docid": "17c98c83664d2244392cc33d1b3f87b0", "score": "0.6893402", "text": "@Override\n public void start() {\n if (_executorService != null) { return; }\n\n _executorService = _createExecutorService();\n }", "title": "" }, { "docid": "5c10f7fa8ec09de54a16495f02edce34", "score": "0.68539876", "text": "@Test\n public void shouldRunThreadWithSingleThreadExecutor() {\n final ExecutorService executorService = Executors.newSingleThreadExecutor();\n executorService.submit(() -> System.out.println(Thread.currentThread().getName()));\n }", "title": "" }, { "docid": "9246f8ee09f1b949094c148b8d0914cb", "score": "0.67400414", "text": "public ExecutorService getExecutorService() {\n return executorService;\n }", "title": "" }, { "docid": "9246f8ee09f1b949094c148b8d0914cb", "score": "0.67400414", "text": "public ExecutorService getExecutorService() {\n return executorService;\n }", "title": "" }, { "docid": "9246f8ee09f1b949094c148b8d0914cb", "score": "0.67400414", "text": "public ExecutorService getExecutorService() {\n return executorService;\n }", "title": "" }, { "docid": "9246f8ee09f1b949094c148b8d0914cb", "score": "0.67400414", "text": "public ExecutorService getExecutorService() {\n return executorService;\n }", "title": "" }, { "docid": "9246f8ee09f1b949094c148b8d0914cb", "score": "0.67400414", "text": "public ExecutorService getExecutorService() {\n return executorService;\n }", "title": "" }, { "docid": "9246f8ee09f1b949094c148b8d0914cb", "score": "0.67400414", "text": "public ExecutorService getExecutorService() {\n return executorService;\n }", "title": "" }, { "docid": "9246f8ee09f1b949094c148b8d0914cb", "score": "0.67400414", "text": "public ExecutorService getExecutorService() {\n return executorService;\n }", "title": "" }, { "docid": "274d102bc2f5a28f71455df73ee3eec6", "score": "0.662878", "text": "protected ExecutorService createExecutorService(IModel model)\n {\n ExecutorService service = Executors\n .newSingleThreadExecutor(new GeneralThreadFactory(model.getName()));\n ExecutorServices.addExecutor(model.getName(), service);\n return service;\n }", "title": "" }, { "docid": "c524d3b3e57b27bc1f34aeeae2a1d626", "score": "0.65617466", "text": "public ExecutorService getExecutorService() {\r\n return controller.getExecutorService();\r\n }", "title": "" }, { "docid": "d9e09d3b078701e12f9cc8eb80905a64", "score": "0.6412773", "text": "public static void main(String[] args) throws ExecutionException, InterruptedException {\n ExecutorService executorService = Executors.newFixedThreadPool(3);\n// ExecutorService executorService = Executors.newCachedThreadPool(); // 60сек. если за это время новый поток не использует, то поток умирает\n\n for (int i = 0; i < 10; i++) {\n executorService.submit(new MyRunnable());\n// System.out.println(executorService.submit(new MyCallable()).get());\n }\n executorService.shutdown();\n }", "title": "" }, { "docid": "a8120e65bff60a015b50b8100368dacd", "score": "0.6370881", "text": "public static void main(String[] args) {\nRunnable r1= ()-> System.out.println(\"th1 Run method executed by\" + Thread.currentThread().getName());\r\nRunnable r2= ()-> System.out.println(\"th2 Run method executed by\" + Thread.currentThread().getName());\r\nRunnable r3= ()-> System.out.println(\"th3 Run method executed by\" + Thread.currentThread().getName());\r\n\r\n//ExecutorService e=Executors.newSingleThreadExecutor();\r\nExecutorService e=Executors.newFixedThreadPool(8);\r\ne.execute(r1);\r\ne.execute(r2);\r\ne.execute(r3);\r\n\r\ne.shutdown();\r\n\t}", "title": "" }, { "docid": "6cffbc1722a9785313b6bf82161a71ce", "score": "0.6343694", "text": "private ThreadPool()\r\n\t{\r\n\t\t\r\n\t}", "title": "" }, { "docid": "3ffa4345e0a9d43346df975cc931d944", "score": "0.6328888", "text": "public ExecutorService getExecutor() {\n return executor;\n }", "title": "" }, { "docid": "3ffa4345e0a9d43346df975cc931d944", "score": "0.6328888", "text": "public ExecutorService getExecutor() {\n return executor;\n }", "title": "" }, { "docid": "b20edeab2c61f4785873b0c1bae7578c", "score": "0.6324238", "text": "public interface ThreadExecutor extends Executor {\n}", "title": "" }, { "docid": "0125a3512043a210a45c5c4b1af5679b", "score": "0.6303154", "text": "public interface Executor {\n void execute(Runnable command);\n}", "title": "" }, { "docid": "9199079df59f7be36d22dc6c2428b0b9", "score": "0.62953526", "text": "@Test\n\tpublic void testCompletionService() {\n\t\tExecutorService es = Executors.newCachedThreadPool();\n\t\tCompletionService<String> cs = new ExecutorCompletionService<String>(es);\n\t\tfor (int i = 0; i < 5; i ++) {\n\t\t\tcs.submit(new Callable<String>() {\n\t\t\t\tpublic String call() {\n\t\t\t\t\tfor (int j = 0; j < 10000000; j ++) {\n\t\t\t\t\t\tSystem.out.println(Thread.currentThread().getName());\n\t\t\t\t\t}\n\t\t\t\t\treturn Thread.currentThread().getName();\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\tSystem.out.println(\"--------------------------------------------------------------------\");\n\t\tfor (int i = 0; i < 5; i ++) {\n\t\t\ttry {\n\t\t\t\tSystem.out.println(cs.take().get() + \" has finished!\");\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (ExecutionException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"=======================================================================\");\n\t\tSystem.out.println(\"I finished!\");\n\t}", "title": "" }, { "docid": "1fd192202a865167dc25b7b6a269ec13", "score": "0.6292104", "text": "public static void main(String[] args) {\n ExecutorService executorService= Executors.newSingleThreadExecutor();\n\n for(int i=0;i<100;i++){\n executorService.execute(new RunnableTask());\n }\n\n System.out.println(\"Thread Name:\"+Thread.currentThread().getName());\n\n executorService.shutdown();\n }", "title": "" }, { "docid": "16c2efab18647bc3eadc9b2858ec17b2", "score": "0.62585175", "text": "private ScheduledExecutorService createExecutorService(NBITask task) {\n executorService = Executors.newSingleThreadScheduledExecutor(new ThreadFactory() {\n @Override\n public Thread newThread(Runnable r) {\n return MoreExecutors.newThread(\"thread-\" + task.taskName, r);\n }\n });\n return MoreExecutors.renamingDecorator(executorService, () -> task.taskName + \"-service\");\n }", "title": "" }, { "docid": "5f13137b8a845fe61801bd4fac80bb0e", "score": "0.62585145", "text": "private void shutdownExecutorService()\n {\n this.execturService.shutdown();\n }", "title": "" }, { "docid": "51228e617836f0e9f96bb9e5a8c424a8", "score": "0.62440455", "text": "static ExecutorService m138861a(ThreadFactory threadFactory) {\n return Executors.newCachedThreadPool(threadFactory);\n }", "title": "" }, { "docid": "5e6b144dbaa1b37175aad52b4da36d68", "score": "0.6207079", "text": "private synchronized ExecutorService getWorker() {\r\n if (worker == null) {\r\n worker = new ImageExecutor(\"Worker\",1,new DismissableBlockingQueue<>(2));\r\n }\r\n return worker;\r\n }", "title": "" }, { "docid": "3a70e9eaa294d1e6870203dd68868d49", "score": "0.6196491", "text": "public static void main(String[] args) throws ExecutionException, InterruptedException {\n Runnable runnable = new Runnable() {\n @Override\n public void run() {\n System.out.printf(\"### %30s -- The current thread name in which i'm executed is : %s%n\", \"Thread\", Thread.currentThread().getName());\n }\n };\n new Thread(runnable).start();\n System.out.printf(\"The main thread name is : %s%n\", Thread.currentThread().getName());\n System.out.printf(\" ---------------------------------- %n\");\n\n // Callable is a functional interface, designed to be implemented by classes whose instances are intended to be executed by another thread\n // The callable interface defines a single abstract method, named call, which takes no arguments, returns a value and may throw a checked exception\n // public interface Callable<V> { V call() throws Exception; }\n // Callable are used by executor service interface\n\n // The executor interface represents objects that execute submitted Runnable tasks, providing a way of decoupling task submission from task execution\n // ExecutorService is a sub-interface of Executor, declaring additional methods to execute Callable tasks and methods to shut down the executor\n\n ExecutorService service1 = Executors.newFixedThreadPool(4);\n ExecutorService service2 = Executors.newSingleThreadExecutor();\n // execute tasks\n // An ExecutorService must be shut down when it is no longer needed to avoid threads keeping running\n service1.shutdown(); // previously submitted tasks will executed and no new tasks will be accepted\n service2.shutdownNow(); // stop all actively executed tasks and terminating the processing of waiting tasks\n\n // submit a runnable task\n ExecutorService singleTread = Executors.newSingleThreadExecutor();\n Runnable runnable2 = () -> System.out.printf(\"### %30s -- The current thread name in which i'm executed is : %s%n\", \"SingleThreadExecutor\", Thread.currentThread().getName());\n // Future<?> submit(Runnable task);\n singleTread.submit(runnable2);\n singleTread.shutdown();\n\n singleTread = Executors.newSingleThreadExecutor();\n Future<?> futureTask = singleTread.submit(runnable2); // even if we pass a runnable, the submit and get methods returns a result and not a void. The generic type will be object here\n singleTread.shutdown(); // the shutdown method initiates the shutdown but it doesn't block the main thread\n Serializable taskResult = (Serializable) futureTask.get();\n // we've used a runnable so the process does not return a value (run method of runnable) but the get method must return one which is null that can be hold by an Object\n // if you choose Object class , you can omit the cast to Serializable but if you choose a type like String, the cast is mandatory\n System.out.printf(\"The result of the last computation is %d%n\", taskResult);\n System.out.printf(\" ---------------------------------- %n\");\n\n // submit a callable task\n singleTread = Executors.newSingleThreadExecutor();\n // <T> Future<T> submit(Callable<T> task);\n Future<Integer> resultFuture = singleTread.submit(() -> {\n System.out.printf(\"### %30s -- The current thread name in which i'm executed is : %s%n\", \"Future#SingleThreadExecutor\", Thread.currentThread().getName());\n return Integer.MAX_VALUE;\n });\n // V get() throws InterruptedException, ExecutionException;\n Integer result = resultFuture.get(); // the main thread is blocked while this method waits to the asynchronous computation result\n System.out.printf(\"The result of the computation is %d%n\", result);\n singleTread.shutdown();\n System.out.printf(\" ---------------------------------- %n\");\n\n ExecutorService executor = Executors.newCachedThreadPool();\n // newCachedThreadPool : Creates a thread pool that creates new threads as needed, but will reuse previously constructed threads when they are available.\n // These pools will typically improve the performance of programs that execute many short-lived asynchronous tasks. Calls to execute will reuse previously\n // constructed threads if available. If no existing thread is available, a new thread will be created and added to the pool.\n // Threads that have not been used for sixty seconds are terminated and removed from the cache (from the calls docs)\n\n Callable<String> task1 = () -> \"Task 1\";\n Callable<String> task2 = () -> \"Task 2\";\n Collection<Callable<String>> tasks = Arrays.asList(task1, task2);\n String resultTask = executor.invokeAny(tasks);\n // by calling invokeAny method, two submitted tasks may be executed by two different working threads. when one of those tasks completes, no matter task1 or task2, the result\n // of that task is returned and the other task will be canceled. So the value of resultTask is not determine, it can be Task 1 or Task 2\n System.out.printf(\"The result of the computation tasks is '%s'%n\", resultTask);\n executor.shutdown();\n System.out.printf(\" ---------------------------------- %n\");\n\n List<Future<String>> futures = Executors.newCachedThreadPool().invokeAll(tasks);\n // the invokeAll method executes a collection of tasks, returning a list of Future instances that hold the result of those tasks when they all complete\n executor.shutdown();\n for (Future<String> future : futures) {\n System.out.println(System.out.printf(\"The result of the computation all tasks is '%s'%n\", future.get()));\n }\n\n // PN : elements of the futures list from an invokeAll method is guaranteed to be in the same order as the submitted tasks\n // PN : invokeAll and invokeAny can only work on callable tasks and not runnable tasks\n }", "title": "" }, { "docid": "87804d91c9844b390bbed5f596ae7017", "score": "0.6191837", "text": "public static void start(Runnable r)\n{\n if (r != null) getPool().execute(r);\n}", "title": "" }, { "docid": "250083b69a7dde1bb8db1986471c221b", "score": "0.616149", "text": "Executor getExecutor()\n {\n return executor;\n }", "title": "" }, { "docid": "cd094ed8f7a834ee423100542a2c5fa5", "score": "0.6156823", "text": "Future<?> submit(Runnable runnable);", "title": "" }, { "docid": "cdee9d08788d8ec4deb89839ed02731b", "score": "0.6144403", "text": "public interface CronExecutorService extends ExecutorService {\n\n ScheduledFuture<?> submit(Task task);\n\n}", "title": "" }, { "docid": "0d1a0f47a2937de3f665e4fa74de7fea", "score": "0.61429465", "text": "public static void main(String[] args) throws ExecutionException, InterruptedException {\n Executor executor = Executors.newSingleThreadExecutor(); // пока не задумываемся о том, как создается. Рассмотрим далее\n executor.execute(() -> System.out.println(\"1 - Hello World from \" + Thread.currentThread().getName()));\n executor.execute(() -> System.out.println(\"2 - Hello World from \" + Thread.currentThread().getName()));\n executor.execute(() -> System.out.println(\"3 - Hello World from \" + Thread.currentThread().getName()));\n\n // Просто выполнять в параллель - это недостаточно. Хотелось бы получать информацию о состоянии и результатах\n // выполнения потока + как-то управлять корректным закрытием по окончанию работы всех потоков в экзекуторе\n // ExecutorService API - controlling the progress of the tasks and managing the termination of the service\n // ExecutorService API - https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/ExecutorService.html\n\n // 1. Callable interface vs Runnable interface (show diff)\n // represents an asynchronous task which can be executed by a separate thread.\n // For instance, it is possible to submit a Callable object to a ExecutorService which will execute it asynchronously.\n // http://tutorials.jenkov.com/java-util-concurrent/java-callable.html\n Callable<String> firstCallable = () -> \"Hello world callable\";\n Callable<String> secondCallable = () -> {\n System.out.println(\"Callable started\");\n TimeUnit.MILLISECONDS.sleep(300L);\n return \"Callable finished\";\n };\n\n // 2. Future interface\n // represents the result of an asynchronous computation. When the asynchronous task is created, a Future object is returned.\n // This Future object functions as a handle to the result of the asynchronous task.\n // ExecutorService, return a Java Future object from some of their methods\n // Docs - https://docs.oracle.com/javase/7/docs/api/java/util/concurrent/Future.html\n // http://tutorials.jenkov.com/java-util-concurrent/java-future.html\n ExecutorService executorService = (ExecutorService) executor;\n // submit() - submits a Callable or a Runnable task to an ExecutorService and returns a result of type Future\n // submit Runnable\n Future<?> runnableFuture = executorService.submit(() -> {\n try {\n TimeUnit.SECONDS.sleep(10);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n System.out.println(\"Hello lesson 29\");\n });\n // get - use to wait until the submitted task is finished and the value is returned\n System.out.println(runnableFuture.get());\n runnableFuture = executorService.submit(() -> System.out.println(\"Hello lesson 29\"), \"12345\");\n System.out.println(runnableFuture.get());\n // submit Callable\n Future<String> callableFuture = executorService.submit(secondCallable);\n System.out.println(callableFuture.get());\n // future.get(200, TimeUnit.MILLISECONDS); - TimeoutException will be thrown\n\n // isDone // isCancel // cancel\n if(callableFuture.isDone()) {\n String result = callableFuture.get();\n } else {\n callableFuture.cancel(true);\n }\n\n // invokeAny() - assigns a collection of tasks to an ExecutorService, causing each to run,\n // and returns the result of a successful execution of one task (if there was a successful execution):\n // If one of the tasks complete (or throws an exception), the rest of the Callable's are cancelled.\n Set<Callable<String>> callables = new HashSet<>();\n callables.add(() -> {\n System.out.println(\"1\");\n return \"Task 1\";\n });\n callables.add(() -> {\n System.out.println(\"2\");\n return \"Task 2\";\n });\n callables.add(() -> {\n System.out.println(\"3\");\n return \"Task 3\";\n });\n\n String result = executorService.invokeAny(callables);\n System.out.println(\"result = \" + result);\n\n // invokeAll() - assigns a collection of tasks to an ExecutorService, causing each to run,\n // and returns the result of all task executions in the form of a list of objects of type Future:\n List<Future<String>> futures = executorService.invokeAll(callables);\n for(Future<String> future : futures){\n System.out.println(\"future.get = \" + future.get());\n }\n\n\n // Factory Methods\n// executorService = Executors.newSingleThreadExecutor();\n executorService = Executors.newFixedThreadPool(10);\n ScheduledExecutorService scheduledExecutorService = Executors.newScheduledThreadPool(10);\n scheduledExecutorService.schedule(secondCallable, 1, TimeUnit.SECONDS);\n // если выполнение таски займет больше времени чем период - период увеличивается\n scheduledExecutorService.scheduleWithFixedDelay(() -> System.out.println(\"123\"), 100, 150, TimeUnit.MILLISECONDS);\n// executorService = Executors.newCachedThreadPool();\n // Directly Create an ExecutorService\n executorService = new ThreadPoolExecutor(4, 10, 1000L, TimeUnit.MILLISECONDS, new LinkedBlockingQueue<>());\n\n\n\n// In general, the ExecutorService will not be automatically destroyed when there is no task to process.\n// It will stay alive and wait for new work to do.\n// In some cases this is very helpful\n// such as when an app needs to process tasks that appear on an irregular basis\n// or the task quantity is not known at compile time.\n // But an app could reach its end but not be stopped because a waiting ExecutorService will cause the JVM to keep running.\n // shutdown() VS shutdownNow() - both don't guarantee that all the running threads will be stopped at the same time\n\n executorService.shutdown();\n try {\n if (!executorService.awaitTermination(800, TimeUnit.MILLISECONDS)) {\n executorService.shutdownNow();\n }\n } catch (InterruptedException e) {\n executorService.shutdownNow();\n }\n\n // how it works + picture in the resources\n // https://www.baeldung.com/thread-pool-java-and-guava#2-threadpoolexecutor\n // ThreadPoolExecutor Docs - https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/ThreadPoolExecutor.html\n\n\n\n // Fork join Pool или автоматическая декомпозиция задачи\n\n }", "title": "" }, { "docid": "1a18c1efaa3aaed502bcbed55a4d88da", "score": "0.6125818", "text": "public interface Executor {\n\n /**\n * This method should call the interactor's run method and thus start the interactor. This should\n * be called\n * on a background thread as interactors might do lengthy operations.\n *\n * @param interactor The interactor to run.\n */\n void execute(final AbstractInteractor interactor);\n}", "title": "" }, { "docid": "2a9f24c057e7191f2770aef249b63a88", "score": "0.61213905", "text": "public ThreadGamme(IExecuteur executeur) {\r\n\t\tthis.executeur = executeur;\r\n\t\tthis.execService = Executors.newSingleThreadExecutor();\r\n\t\tstopper = false;\r\n\t}", "title": "" }, { "docid": "8c6f626acc20c51a5cbe9e496621d99f", "score": "0.6094079", "text": "@Override\r\npublic void run() {\n\t\r\n}", "title": "" }, { "docid": "eb8dcfd773ef1f32c4de9165c5349f3a", "score": "0.60824925", "text": "private NiProxyMonitor() {\n executor = Executors.newCachedThreadPool();\n }", "title": "" }, { "docid": "c4e5c1328293a41f249c4e25f416d43b", "score": "0.6053521", "text": "public static void main(String[] args) throws IOException, ExecutionException, InterruptedException {\n int i=0;\n final ServerSocket serverSocket = new ServerSocket(8080);\n// ExecutorService service = Executors.newCachedThreadPool();\n ExecutorService service = new ThreadPoolExecutor(0, 1000,\n 60L, TimeUnit.SECONDS,\n new SynchronousQueue<Runnable>(),\n// new ThreadPoolExecutor.DiscardPolicy()//connections working no more 1000, another part of connection are throwing away\n new ThreadPoolExecutor.CallerRunsPolicy()//connection with 1000 and waiting before they will finished\n );\n\n try {\n\n while (true) {\n final Socket socket = serverSocket.accept();\n\n service.submit(new Runnable() {\n @Override\n public void run() {\n System.out.println(\"Connct from Socket \" + socket.toString());\n Utils.process(socket);\n }\n });\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }", "title": "" }, { "docid": "c230b4ae2105a1df3f37f88d0bf9621a", "score": "0.6012779", "text": "@Test\n public void shouldRunThreadsWithCachedThreadPool() {\n final ExecutorService executorService = Executors.newCachedThreadPool();\n executorService.submit(() -> System.out.println(Thread.currentThread().getName()));\n executorService.submit(() -> System.out.println(Thread.currentThread().getName()));\n executorService.submit(() -> System.out.println(Thread.currentThread().getName()));\n executorService.submit(() -> System.out.println(Thread.currentThread().getName()));\n }", "title": "" }, { "docid": "d1b3bd78506b2d1aeae9c4c91c5e1aa2", "score": "0.60061914", "text": "private ServiceConnector() {\r\n executor = Executors.newCachedThreadPool();\r\n serviceInfoMap = new ConcurrentHashMap<>();\r\n serviceHandlerMap = new ConcurrentHashMap<>();\r\n serviceCallbacks = new CopyOnWriteArrayList<>();\r\n serviceFailtureCallbacks = new CopyOnWriteArrayList<>();\r\n }", "title": "" }, { "docid": "3fa4ec559fbfde162d931ef65858f35f", "score": "0.5997242", "text": "@Bean(name=\"executor\")\r\n ExecutorService getExecutor() {\r\n\r\n return Executors.newFixedThreadPool(\r\n Integer.parseInt(environment.getProperty(\"executor.threadpool.size\"))\r\n );\r\n }", "title": "" }, { "docid": "a03646787d6a2a7f2303694e33079038", "score": "0.5986091", "text": "public void run(){\n\r\n }", "title": "" }, { "docid": "04b0584dfb08e6bc0036bb9c891a66cf", "score": "0.5965161", "text": "public void run() {\n \n\n }", "title": "" }, { "docid": "797baea7394e2638bc902b5df78fdaae", "score": "0.595818", "text": "@Provides\n\t@Singleton\n\tpublic ExecutorService getExecutorService(UncaughtExceptionHandler uncaughtExceptionHandler, MetricRegistry registry)\n\t{\n\t\tExecutorService es = Executors.newCachedThreadPool(\n\t\t\t\tnew ThreadFactoryBuilder().setNameFormat(\"instrumented-%d\").setDaemon(true)\n\t\t\t\t\t.setUncaughtExceptionHandler(uncaughtExceptionHandler).build());\n\t\tMoreExecutors.addDelayedShutdownHook(es, 30, TimeUnit.SECONDS);\n\t\treturn new InstrumentedExecutorService(es, registry);\n\t}", "title": "" }, { "docid": "68442b1923ecb0f2718f33a23bde7366", "score": "0.594878", "text": "@Test\n public void test () {\n HelloRunnable helloRunnable = new HelloRunnable();\n Thread thread = new Thread(helloRunnable);\n thread.start();\n logger.info(\"job is done !\");\n }", "title": "" }, { "docid": "84045c50fde7b3eb82f7e72bf7dcb25f", "score": "0.5946331", "text": "@Override\r\n\tpublic void run() {\n\r\n\t}", "title": "" }, { "docid": "84045c50fde7b3eb82f7e72bf7dcb25f", "score": "0.5946331", "text": "@Override\r\n\tpublic void run() {\n\r\n\t}", "title": "" }, { "docid": "1bca4b519c0a788abbbe8e098bb13f05", "score": "0.59448713", "text": "public static void main(String args[]){\n\t\tExecutorService executorService= Executors.newFixedThreadPool(NUMBER_OF_THREADS);\r\n \r\n //Submit Tasks using Executor Services\r\n\t\t// Here we are directly submitting the task \r\n\t\t// we have not created any Thread\r\n for(int i=1; i<=100; i++){\r\n executorService.submit(new AccountService(1));\r\n }\r\n System.out.println(\"Submitted All Tasks... \");\r\n \r\n //Calling this method will ensure that no more tasks are submitted now\r\n executorService.shutdown();\r\n \r\n //Calling this method will ensure that we wait until all tasks are completed\r\n while(!executorService.isTerminated()){\r\n \r\n }\r\n }", "title": "" }, { "docid": "ee623d0c440fce4e610ef0fb85d222d3", "score": "0.5931695", "text": "private static void myTest() {\n ListeningExecutorService guavaExecutor = MoreExecutors.listeningDecorator((Executors.newSingleThreadExecutor()));\n final ListenableFuture<String> listenableFuture = guavaExecutor.submit(() -> {\n System.out.println(\"i am work now!\");\n try {\n TimeUnit.SECONDS.sleep(10);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n return \"1\";\n });\n //不指定线程池的话,默认和异步执行的是一个线程\n listenableFuture.addListener(() -> {\n try {\n System.out.println(\"异步执行的结果为\" + listenableFuture.get());\n } catch (Exception e) {\n e.printStackTrace();\n }\n }, Executors.newSingleThreadExecutor());\n }", "title": "" }, { "docid": "5641f5f521161217686d18202d50a74d", "score": "0.5930158", "text": "public void run() {\n\n }", "title": "" }, { "docid": "904ae8d609410c58c56c941687a1a796", "score": "0.5914143", "text": "public static void main(String[] args) throws InterruptedException, ExecutionException {\n\n ExecutorService service = new ThreadPoolExecutor(3, 3,\n 0L, TimeUnit.MILLISECONDS,\n new LinkedBlockingQueue<Runnable>(5),\n r -> {\n Thread t = new Thread(r);\n t.setDaemon(false);\n t.setName(\"demo-pool-%\" + t.getId());\n System.out.println(\"create \" + t);\n return t;\n },\n (r, executor) -> {\n System.out.println(\"rejectedExecution>>>>\" + r.toString() + executor.toString());\n }) {\n @Override\n protected void beforeExecute(Thread t, Runnable r) {\n System.out.println(\"准备执行: \" + ((MyTask) r).name);\n }\n\n @Override\n protected void afterExecute(Runnable r, Throwable t) {\n System.out.println(\"执行任务完成: \" + ((MyTask) r).name);\n }\n\n @Override\n protected void terminated() {\n System.out.println(\"线程池退出\");\n }\n };\n\n\n ExecutorService service2 = new ThreadPoolExecutor(5, 5,\n 0L, TimeUnit.MILLISECONDS,\n new LinkedBlockingQueue<Runnable>(50),\n r -> new Thread(r));\n\n ExecutorService service3 = new TraceThreadPoolExecutor(0, Integer.MAX_VALUE,\n 0L, TimeUnit.SECONDS,\n new SynchronousQueue<>());\n\n List<Future<?>> list = new ArrayList<>();\n for (int i = 0; i < 5; i++) {\n// MyTask myTask2 = new MyTask(\"task-name-\" + i);\n DivTask2 myTask = new DivTask2(100, i);\n// Future<HashMap> submit = service2.submit(myTask2, new HashMap(16));\n// list.add();\n service3.execute(myTask);\n }\n for (Future<?> future : list) {\n try {\n System.out.println(future.get());\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n\n service.shutdown();\n }", "title": "" }, { "docid": "4145ca506b122e6c6830314d9a118d97", "score": "0.5898615", "text": "@Test\n public void testExecutionRequest() {\n executor.submit(new Runnable() {\n public void run() {\n testStartListener();\n }\n });\n sleep(1);\n executor.submit(new Runnable() {\n public void run() {\n testStartClientAndSubmitRunnable();\n }\n });\n sleep(10);\n }", "title": "" }, { "docid": "4f960ac2b88a690bee301b0a7835182a", "score": "0.5896979", "text": "@Override\n public void run()\n {\n\n }", "title": "" }, { "docid": "18df042730c9e267d24904db95588f5b", "score": "0.5895064", "text": "public synchronized void run() \r\n\t{\n\r\n\t\tExecutorService threadPool=new ThreadPoolExecutor(corePoolSize, maxiumPoolSize, keepLiveTime, TimeUnit.SECONDS, new LinkedBlockingDeque<Runnable>(), new ThreadPoolExecutor.CallerRunsPolicy()); \r\n\r\n\t\twhile(true)\r\n\t\t{\r\n\r\n\r\n\t\t\tString folder=\"\";\r\n\r\n\t\t\tif(!sharedQueue.isEmpty())\r\n\t\t\t{\r\n\t\t\t\ttry \r\n\t\t\t\t{\r\n\t\t\t\t\tfolder=sharedQueue.take();\r\n\r\n\t\t\t\t} catch (InterruptedException e) \r\n\t\t\t\t{\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\tfinal String folderName=folder;\r\n\t\t\t\t//\t\t\t Future<String> future = \r\n\t\t\t\t//\t\t\t \t\tthreadPool.submit(new Callable<String>() \r\n\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 public String call() throws Exception \r\n\t\t\t\t//\t\t { \r\n\t\t\t\t//\t\t \tTest1 t=new Test1(folderName);\r\n\t\t\t\t//\t\t \t//IC.start(0); //Here\r\n\t\t\t\t//\t\t \tSystem.out.println(\"submit task \"+folderName);\r\n\t\t\t\t//\t\t\t\t\t\tt.r();\r\n\t\t\t\t//\t\t\t\t\t\treturn folderName+\" is done\";\r\n\t\t\t\t//\t\t } \r\n\t\t\t\t//\t\t });\r\n\r\n\t\t\t\tRunnable run = new Runnable() \r\n\t\t\t\t{\r\n\t\t\t\t\tpublic void run()\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\ttaskLog.info(\"Consuming:\"+folderName);\r\n\t\t\t\t\t\tSystem.out.println(\"Consuming \"+folderName);\r\n\t\t\t\t\t\tTest1 t=new Test1(folderName);\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tt.r();\r\n\t\t\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t};\r\n\t\t\t\t// 在未来某个时间执行给定的命令\r\n\r\n\t\t\t\tthreadPool.execute(run);\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.println(sharedQueue.size());\r\n\r\n\t\t\t}\r\n\t\t\telse if(taskMonitorQueue.peek())\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"-----------------------------------\");\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\r\n\r\n\r\n\r\n\r\n\t\t\t// \tint currentThread=0;\r\n\t\t\t// \twhile(currentThread<maxiumaThreadN)\r\n\t\t\t// \t{\r\n\t\t\t// \t\t\r\n\t\t\t// \t\tString folder=null;\r\n\t\t\t//\t\t\t\t\ttry \r\n\t\t\t//\t\t\t\t\t{\r\n\t\t\t//\t\t\t\t\t\tif(!sharedQueue.isEmpty())\r\n\t\t\t//\t\t\t\t\t\t{\r\n\t\t\t//\t\t\t\t\t\t\tSystem.out.println(\"current sharedQueue has\"+sharedQueue.size());\r\n\t\t\t//\t\t\t\t\t\t\tObject[] queue=sharedQueue.toArray();\r\n\t\t\t//\t\t\t\t\t\t\tfor(int j=0;j<queue.length;j++)\r\n\t\t\t//\t\t\t\t\t\t\t\tSystem.out.println(queue[j].toString());\r\n\t\t\t//\t\t\t\t\t\tfolder = sharedQueue.take();\r\n\t\t\t//\t\t\t\t\t\tcurrentThread++;\r\n\t\t\t//\t\t\t\t\t\t}\r\n\t\t\t//\t\t\t\t\t\t\r\n\t\t\t//\t\t\t\t\t} catch (InterruptedException e) \r\n\t\t\t//\t\t\t\t\t{\r\n\t\t\t//\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t//\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t//\t\t\t\t\t}\r\n\t\t\t//\t\t\t\t\tif(folder!=null)\r\n\t\t\t//\t\t\t\t\t{\r\n\t\t\t//\t\t\t\t\t\t \r\n\t\t\t//\t\t\t\t\t // System.out.println(\"starting thread\" +i+ \"Consumed:\"+ folder);\r\n\t\t\t//\t\t\t\t\t Log.info(\"starting thread\" +currentThread+ \"Consumed:\"+ folder);\r\n\t\t\t//\t\t\t\t\t final String folderName=folder;\r\n\t\t\t//\t\t\t\t\t Future<String> future = threadPool.submit(new Callable<String>() \r\n\t\t\t//\t\t\t\t\t { \r\n\t\t\t//\t\t\t\t public String call() throws Exception \r\n\t\t\t//\t\t\t\t { \r\n\t\t\t//\t\t\t\t \tTest1 t=new Test1(folderName);\r\n\t\t\t//\t\t\t\t \t//IC.start(0); //Here\r\n\t\t\t//\t\t\t\t\t\t\t\tt.r();\r\n\t\t\t//\t\t\t\t\t\t\t\treturn folderName+\" is done\";\r\n\t\t\t// \r\n\t\t\t//\t\t\t\t } \r\n\t\t\t//\t\t\t\t });\r\n\t\t\t//\t\t\t\t\t futureList.add(future);\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}\r\n\t\t\t// \t}\r\n\t\t\t//// \tSystem.out.println(\"-----------------------------------\");\r\n\t\t\t//// \tSystem.out.println(futureList.size());\r\n\t\t\t// for(int i=0;i<futureList.size();i++)\r\n\t\t\t// {\r\n\t\t\t// \t try \r\n\t\t\t// \t{\r\n\t\t\t// \t\t \r\n\t\t\t// \t\t Log.info(futureList.get(i).get(1000*60*60,TimeUnit.MILLISECONDS)+\"is done\");\r\n\t\t\t//// \t\t System.out.println(futureList.get(i).get());\r\n\t\t\t////\t\t\t\t System.out.println(futureList.get(i).get(1000*60*60,TimeUnit.MILLISECONDS)+\"is done\");\r\n\t\t\t//\t \r\n\t\t\t//\t\t\t} \r\n\t\t\t// \t catch (InterruptedException e) \r\n\t\t\t//\t\t\t{\r\n\t\t\t//\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t//\t\t\t\te.printStackTrace();\r\n\t\t\t//\t\t\t} catch (ExecutionException e) {\r\n\t\t\t//\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t//\t\t\t\te.printStackTrace();\r\n\t\t\t//\t\t\t} catch (TimeoutException e) \r\n\t\t\t//\t\t\t{\r\n\t\t\t//\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t//\t\t\t\te.printStackTrace();\r\n\t\t\t//\t\t\t}\r\n\t\t\t// }\r\n\t\t\t// \r\n\t\t\t// futureList=new ArrayList<Future<String>>();\r\n\r\n\r\n\t\t}\r\n\t\ttaskLog.info(\"Consumer has finished\");\r\n\t\tSystem.out.println(\"Consumer has finished\");\r\n\t\tthreadPool.shutdown();\r\n//\t\tnotifyAll();\r\n\t}", "title": "" }, { "docid": "0d5fb77e40b30ea979d7fe8ffa98a747", "score": "0.58838534", "text": "public DefaultThreadPool(){\r\n\t\t\r\n\t}", "title": "" }, { "docid": "ee89046b198e6dcc3c58d3ff2987a9e4", "score": "0.58761734", "text": "@Override\r\n public void run() {\n\r\n }", "title": "" }, { "docid": "04cc0a0f1a5a9f70bda8572f8aa7f90c", "score": "0.5867313", "text": "public interface AtomicThreadPoolTask {\n\n void runTask();\n}", "title": "" }, { "docid": "e71357cc111178c9c216831f4144b84b", "score": "0.5862419", "text": "@Override\n public void run() {\n\n }", "title": "" }, { "docid": "e71357cc111178c9c216831f4144b84b", "score": "0.5862419", "text": "@Override\n public void run() {\n\n }", "title": "" }, { "docid": "f1a5a3c8448f3b038a9888fd914c6fa8", "score": "0.5852008", "text": "public interface ExecutorService {\n void deleteExecutorGroup(String groupName);\n\n void modifyExecutorGroup(TbExecutorGroup group);\n\n TbExecutorGroup createExecutorGroup(TbExecutorGroup group);\n}", "title": "" }, { "docid": "7249a9dd42167dc15841a70ce2ec958a", "score": "0.58472764", "text": "public interface WorkExecutorThread extends Executor{\n}", "title": "" }, { "docid": "48da61f3d3393a1a4ae86782775d0ea3", "score": "0.5836886", "text": "@Override\n\tpublic void start() {\n\t\tfuture = executor.schedule(task, 0, TimeUnit.MILLISECONDS);\n\t}", "title": "" }, { "docid": "77e644130c0ee0f4933eb386cb51278c", "score": "0.58307683", "text": "private static void scheduleExample() {\n ScheduledExecutorService scheduledExecutorService = null;\n try {\n scheduledExecutorService = Executors.newSingleThreadScheduledExecutor();\n\n //ScheduledExecutorService is an descendant of ExecutorService\n //ExecutorService executorService = scheduledExecutorService;\n\n ScheduledFuture<?> runnable = scheduledExecutorService.schedule(() -> System.out.println(\"runnable\"), 10, TimeUnit.SECONDS);\n ScheduledFuture<String> callable = scheduledExecutorService.schedule(() -> {\n System.out.println(\"callable\");\n return \"callable\";}, 5, TimeUnit.SECONDS);\n } finally {\n if(scheduledExecutorService != null){\n scheduledExecutorService.shutdown();\n }\n }\n }", "title": "" }, { "docid": "2eb0d5dc531fd5747c84af631e1765ed", "score": "0.58243096", "text": "@Test\n public void shouldRunThreadsWithScheduledThreadPool() {\n final ExecutorService executorService = Executors.newScheduledThreadPool(2);\n executorService.submit(() -> System.out.println(Thread.currentThread().getName()));\n executorService.submit(() -> System.out.println(Thread.currentThread().getName()));\n executorService.submit(() -> System.out.println(Thread.currentThread().getName()));\n executorService.submit(() -> System.out.println(Thread.currentThread().getName()));\n executorService.submit(() -> System.out.println(Thread.currentThread().getName()));\n }", "title": "" }, { "docid": "cb33f3b08d2ab2084acd2347b7b33770", "score": "0.5821027", "text": "public static void start() {\r\n\t\tif (executorTassadar != null) {\r\n\t\t\texecutorTassadar.shutdownNow();\r\n\t\t}\r\n\t\tstartInternal();\r\n\t}", "title": "" }, { "docid": "c9abcd1d08f82e4f1b1a3b2838f6d087", "score": "0.58207905", "text": "public interface SecurityAwareExecutorFactory extends ExecutorFactory {\n ExecutorService getExecutor(Properties p, AccessControlContext context);\n}", "title": "" }, { "docid": "03a5e93fed7318ac889deae9f0c0e504", "score": "0.581498", "text": "@Override\n\tpublic void run() \n\t{\n\t\t\n\t}", "title": "" }, { "docid": "87fba94723262208a736c7d5e6821a8e", "score": "0.5814247", "text": "public static ServiceAdapter<ExecutorService> forExecutorService() {\n\t\treturn new SimpleServiceAdapter<>(false, true) {\n\t\t\t@Override\n\t\t\tprotected void start(ExecutorService instance) {\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tprotected void stop(ExecutorService instance) throws Exception {\n\t\t\t\tinstance.shutdown();\n\t\t\t\tif (!instance.isTerminated()) {\n\t\t\t\t\tlogger.warn(\"Awaiting termination of {} ...\", instance);\n\t\t\t\t\t//noinspection ResultOfMethodCallIgnored\n\t\t\t\t\tinstance.awaitTermination(Long.MAX_VALUE, TimeUnit.MILLISECONDS);\n\t\t\t\t\tlogger.info(\"Instance {} has been terminated\", instance);\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t}", "title": "" }, { "docid": "240f499194c340b0fd97fb4f7996c581", "score": "0.5795664", "text": "public static void main(String[] args) throws InterruptedException {\n\n Runner runner = new Runner();\n ExecutorService executorService = Executors.newFixedThreadPool(3);\n executorService.submit(runner);\n executorService.submit(runner);\n executorService.submit(runner);\n executorService.shutdown();\n //executorService.shutdownNow();\n System.out.println(executorService.awaitTermination(1, TimeUnit.SECONDS));\n System.out.println(executorService.awaitTermination(1, TimeUnit.SECONDS));\n System.out.println(executorService.awaitTermination(1, TimeUnit.SECONDS));\n System.out.println(executorService.awaitTermination(1, TimeUnit.SECONDS));\n System.out.println(executorService.awaitTermination(1, TimeUnit.SECONDS));\n P.l(\"main is over\");\n\n\n }", "title": "" }, { "docid": "15a68c4fa0c8935d085b21a5bcb9a368", "score": "0.5794937", "text": "private ExecutorService createExecutorService(\n AbfsConfiguration abfsConf) {\n ExecutorService executorService =\n new SemaphoredDelegatingExecutor(BlockingThreadPoolExecutorService.newInstance(\n abfsConf.getWriteMaxConcurrentRequestCount(),\n abfsConf.getMaxWriteRequestsToQueue(),\n 10L, TimeUnit.SECONDS,\n \"abfs-test-bounded\"),\n BLOCK_UPLOAD_ACTIVE_BLOCKS_DEFAULT, true);\n return executorService;\n }", "title": "" }, { "docid": "c5faec7ddbc179d0c0cbaa6798a0a8e6", "score": "0.57872486", "text": "@Override\n public void run() {\n }", "title": "" }, { "docid": "162517a3d60885edc67dae4a0c2c66c6", "score": "0.5783144", "text": "public void run();", "title": "" }, { "docid": "162517a3d60885edc67dae4a0c2c66c6", "score": "0.5783144", "text": "public void run();", "title": "" }, { "docid": "162517a3d60885edc67dae4a0c2c66c6", "score": "0.5783144", "text": "public void run();", "title": "" }, { "docid": "162517a3d60885edc67dae4a0c2c66c6", "score": "0.5783144", "text": "public void run();", "title": "" }, { "docid": "162517a3d60885edc67dae4a0c2c66c6", "score": "0.5783144", "text": "public void run();", "title": "" }, { "docid": "4c5cbceb69443a7e0f8a0c2e5b907c70", "score": "0.5781259", "text": "@Override\r\n public void run() {\n }", "title": "" }, { "docid": "c0b87a443064846da64bd770d5b92de7", "score": "0.57799876", "text": "public interface ExecutionService {\n\n /**\n * Name of the system executor.\n */\n String SYSTEM_EXECUTOR = \"hz:system\";\n\n /**\n * Name of the async executor.\n */\n String ASYNC_EXECUTOR = \"hz:async\";\n\n /**\n * Name of the scheduled executor.\n */\n String SCHEDULED_EXECUTOR = \"hz:scheduled\";\n\n /**\n * Name of the client executor.\n */\n String CLIENT_EXECUTOR = \"hz:client\";\n\n /**\n * Name of the query executor.\n */\n String QUERY_EXECUTOR = \"hz:query\";\n\n /**\n * Name of the io executor.\n */\n String IO_EXECUTOR = \"hz:io\";\n\n /**\n * Name of the map-loader executor that loads the {@link com.hazelcast.core.MapLoader#loadAll(java.util.Collection)}.\n *\n * This is the executor you want to configure when you want to load more data from the database in parallel.\n */\n String MAP_LOADER_EXECUTOR = \"hz:map-load\";\n\n /**\n * The name of the executor that loads the {@link com.hazelcast.core.MapLoader#loadAllKeys()}\n */\n String MAP_LOAD_ALL_KEYS_EXECUTOR = \"hz:map-loadAllKeys\";\n\n ManagedExecutorService register(String name, int poolSize, int queueCapacity, ExecutorType type);\n\n ManagedExecutorService getExecutor(String name);\n\n void shutdownExecutor(String name);\n\n void execute(String name, Runnable command);\n\n Future<?> submit(String name, Runnable task);\n\n <T> Future<T> submit(String name, Callable<T> task);\n\n ScheduledFuture<?> schedule(Runnable command, long delay, TimeUnit unit);\n\n ScheduledFuture<?> schedule(String name, Runnable command, long delay, TimeUnit unit);\n\n ScheduledFuture<?> scheduleWithRepetition(Runnable command, long initialDelay, long period, TimeUnit unit);\n\n ScheduledFuture<?> scheduleWithRepetition(String name, Runnable command, long initialDelay, long period, TimeUnit unit);\n\n TaskScheduler getGlobalTaskScheduler();\n\n TaskScheduler getTaskScheduler(String name);\n\n <V> ICompletableFuture<V> asCompletableFuture(Future<V> future);\n}", "title": "" }, { "docid": "b3a1c7ca506aa74028c2474b89d5b024", "score": "0.57742363", "text": "@Override\n\tpublic ExecutorService getThreadPool() {\n\t\treturn threadPool;\n\t}", "title": "" }, { "docid": "68a7b53c849e61ddcfc0d8b5dc9bf73e", "score": "0.5767065", "text": "public static void main(String[] args) {\n ExecutorService executor = Executors.newScheduledThreadPool(2);\n MyRunable myRunable = new MyRunable();\n executor.submit( myRunable );\n executor.submit( myRunable );\n\n executor.shutdown();\n\n }", "title": "" }, { "docid": "de08e95e23e8186f85aa996a0142140c", "score": "0.57553285", "text": "public interface Crawler extends Runnable{\n}", "title": "" }, { "docid": "dcc59d41a75547d9413b72fd4aeb645e", "score": "0.57501537", "text": "public void run(){\n }", "title": "" }, { "docid": "dcc59d41a75547d9413b72fd4aeb645e", "score": "0.57501537", "text": "public void run(){\n }", "title": "" }, { "docid": "f10e5ad4f822ccc34c6640d3acb2b28c", "score": "0.5748802", "text": "CloseableExecutorService build();", "title": "" }, { "docid": "294747a72c5f9a76dddd38b785bf4ebd", "score": "0.57440376", "text": "public interface Service {\n\n Object doRun();\n\n}", "title": "" }, { "docid": "5c039530b0b14214bc5390b0c4600cb0", "score": "0.5742586", "text": "@Override\r\n\tpublic void run() {\n\t}", "title": "" }, { "docid": "5c039530b0b14214bc5390b0c4600cb0", "score": "0.5742586", "text": "@Override\r\n\tpublic void run() {\n\t}", "title": "" }, { "docid": "5c039530b0b14214bc5390b0c4600cb0", "score": "0.5742586", "text": "@Override\r\n\tpublic void run() {\n\t}", "title": "" }, { "docid": "5c039530b0b14214bc5390b0c4600cb0", "score": "0.5742586", "text": "@Override\r\n\tpublic void run() {\n\t}", "title": "" }, { "docid": "a3e8ed3e4fa58bf2841559fd82a36c91", "score": "0.5739441", "text": "@Override\n\tpublic void run()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "1a8ed2d19a57f331734f311d71377495", "score": "0.5727545", "text": "public interface BackgroundService extends Runnable {\n\n\tpublic void doShutDown();\n}", "title": "" }, { "docid": "81c88f061fd285b9b13ff77a4d03e2e8", "score": "0.5721926", "text": "public static void main(String[] args) {\n\n ThreadFactory namedThreadFactory = new ThreadFactoryBuilder()\n .setNameFormat(\"thread-pool-%d\").build();\n ExecutorService executor = new ThreadPoolExecutor(1, 2, 0L,\n TimeUnit.MILLISECONDS, new ArrayBlockingQueue<>(3), namedThreadFactory, new ThreadPoolExecutor.AbortPolicy()); // 有界队列\n CallableHandle task1 = new CallableHandle(1);\n CallableHandle task2 = new CallableHandle(2);\n CallableHandle task3 = new CallableHandle(3);\n CallableHandle task4 = new CallableHandle(4);\n CallableHandle task5 = new CallableHandle(5);\n\n try {\n // 打印线程池状态\n printThreadPoolState(executor);\n\n Future<Integer> future1 = executor.submit(task1);\n Future<Integer> future2 = executor.submit(task2);\n Future<Integer> future3 = executor.submit(task3);\n Future<Integer> future4 = executor.submit(task4);\n Future<Integer> future5 = executor.submit(task5);\n\n // 打印线程池状态\n printThreadPoolState(executor);\n\n printThreadCountState((ThreadPoolExecutor) executor);\n\n Integer r1 = future1.get();\n\n // 打印线程池状态\n printThreadPoolState(executor);\n\n Integer r2 = future2.get();\n\n // 打印线程池状态\n printThreadPoolState(executor);\n\n Integer r3 = future3.get();\n\n // 打印线程池状态\n printThreadPoolState(executor);\n\n Integer r4 = future4.get();\n\n // 打印线程池状态\n printThreadPoolState(executor);\n\n Integer r5 = future5.get();\n\n System.out.println(\"============result :\" + (r1 + r2 + r3 + r4 + r5));\n // 打印线程池状态\n printThreadPoolState(executor);\n } catch (Exception e) {\n e.printStackTrace();\n // 打印线程池状态\n printThreadPoolState(executor);\n } finally {\n executor.shutdown(); // 关闭线程池\n }\n }", "title": "" }, { "docid": "2d165bb6d3f1a4ce3cb2d6fab372d05f", "score": "0.5713391", "text": "void run();", "title": "" }, { "docid": "2d165bb6d3f1a4ce3cb2d6fab372d05f", "score": "0.5713391", "text": "void run();", "title": "" }, { "docid": "2d165bb6d3f1a4ce3cb2d6fab372d05f", "score": "0.5713391", "text": "void run();", "title": "" }, { "docid": "2d165bb6d3f1a4ce3cb2d6fab372d05f", "score": "0.5713391", "text": "void run();", "title": "" }, { "docid": "2d165bb6d3f1a4ce3cb2d6fab372d05f", "score": "0.5713391", "text": "void run();", "title": "" }, { "docid": "2d165bb6d3f1a4ce3cb2d6fab372d05f", "score": "0.5713391", "text": "void run();", "title": "" }, { "docid": "2d165bb6d3f1a4ce3cb2d6fab372d05f", "score": "0.5713391", "text": "void run();", "title": "" }, { "docid": "88258b4dc0f77ab70e5a821341d32be7", "score": "0.5707598", "text": "public abstract ServiceExecutor getDefaultServiceExecutor();", "title": "" }, { "docid": "03cc66ed26c6b27d75fd1082e84b80ca", "score": "0.5699578", "text": "private static void startInternal() {\r\n\t\texecutorTassadar = Executors.newScheduledThreadPool(1);\r\n\t\tfuture = executorTassadar.scheduleAtFixedRate(probe, 0, 300,\r\n\t\t\t\tTimeUnit.MILLISECONDS);\r\n\t}", "title": "" }, { "docid": "b36a1bb7c77a01655f485324744c7174", "score": "0.56970775", "text": "@Override\n\tpublic void run() {\n\t}", "title": "" } ]
5faa8eacdc1f24a578d80795337f8290
$ANTLR end "T__22" $ANTLR start "T__23"
[ { "docid": "52a20bfa44a3ada3fc37b2eae8f22525", "score": "0.0", "text": "public final void mT__23() throws RecognitionException {\r\n try {\r\n int _type = T__23;\r\n int _channel = DEFAULT_TOKEN_CHANNEL;\r\n // InternalCk2.g:19:7: ( '<=' )\r\n // InternalCk2.g:19:9: '<='\r\n {\r\n match(\"<=\"); \r\n\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": "3d6cfff1e4a7ab7f825d2d0e8b46d0fc", "score": "0.5764157", "text": "private int yyr23() {\n { yyrv = new First(((Expression)yysv[yysp-1])); }\n yysv[yysp-=2] = yyrv;\n return yypexpr();\n }", "title": "" }, { "docid": "26cafa8acf573ef9e800cf3aeb96b9f8", "score": "0.565669", "text": "@Override\n\tpublic void visit(MetaLitPEG n) {\n\n\t}", "title": "" }, { "docid": "4329b44caefc9624d9c468e0e632b9c8", "score": "0.5357134", "text": "private int yyr21() {\n { yyrv = new Sequence(((Expression)yysv[yysp-3]),((Expression)yysv[yysp-1])); }\n yysv[yysp-=3] = yyrv;\n return yypexpr();\n }", "title": "" }, { "docid": "55a7cba39fe87e24f29b6084f99a338b", "score": "0.5342914", "text": "public final void mT__23() throws RecognitionException {\n try {\n int _type = T__23;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // ../com.robotoworks.mechanoid.db/src-gen/com/robotoworks/mechanoid/db/parser/antlr/internal/InternalSqliteModel.g:22:7: ( ')' )\n // ../com.robotoworks.mechanoid.db/src-gen/com/robotoworks/mechanoid/db/parser/antlr/internal/InternalSqliteModel.g:22:9: ')'\n {\n match(')'); \n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "title": "" }, { "docid": "c943d7e4ea7b44b8b76c0dbb05dc2b99", "score": "0.5310229", "text": "public final void mT__23() throws RecognitionException {\n try {\n int _type = T__23;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // /Users/jgf/Documents/Projects/joana/ifc/sdg/joana.ifc.sdg.graph/src/edu/kit/joana/ifc/sdg/graph/SDG_.g:63:7: ( 'v' )\n // /Users/jgf/Documents/Projects/joana/ifc/sdg/joana.ifc.sdg.graph/src/edu/kit/joana/ifc/sdg/graph/SDG_.g:63:9: 'v'\n {\n match('v'); \n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "title": "" }, { "docid": "a60d787b00387cc6a864954d29f31fb5", "score": "0.52998257", "text": "public interface MyNewGrammarConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int SINGLE_LINE_COMMENT = 11;\n /** RegularExpression Id. */\n int FORMAL_COMMENT = 12;\n /** RegularExpression Id. */\n int MULTI_LINE_COMMENT = 13;\n /** RegularExpression Id. */\n int PUBLIC = 15;\n /** RegularExpression Id. */\n int PRIVATE = 16;\n /** RegularExpression Id. */\n int PROTECTED = 17;\n /** RegularExpression Id. */\n int STATIC = 18;\n /** RegularExpression Id. */\n int CLASS = 19;\n /** RegularExpression Id. */\n int INTERFACE = 20;\n /** RegularExpression Id. */\n int EXTENDS = 21;\n /** RegularExpression Id. */\n int IMPLEMENTS = 22;\n /** RegularExpression Id. */\n int PRIMDATATYPE = 23;\n /** RegularExpression Id. */\n int REFDATATYPE = 24;\n /** RegularExpression Id. */\n int OBracket = 25;\n /** RegularExpression Id. */\n int CBracket = 26;\n /** RegularExpression Id. */\n int SEMICOLON = 27;\n /** RegularExpression Id. */\n int COMMA = 28;\n /** RegularExpression Id. */\n int ORB = 29;\n /** RegularExpression Id. */\n int CRB = 30;\n /** RegularExpression Id. */\n int ABSTRACT = 31;\n /** RegularExpression Id. */\n int COLLECTION = 32;\n /** RegularExpression Id. */\n int GT = 33;\n /** RegularExpression Id. */\n int LT = 34;\n /** RegularExpression Id. */\n int OSB = 35;\n /** RegularExpression Id. */\n int STAR = 36;\n /** RegularExpression Id. */\n int CSB = 37;\n /** RegularExpression Id. */\n int RETURN = 38;\n /** RegularExpression Id. */\n int EQUALS = 39;\n /** RegularExpression Id. */\n int BS = 40;\n /** RegularExpression Id. */\n int NEW = 41;\n /** RegularExpression Id. */\n int COLON = 42;\n /** RegularExpression Id. */\n int OPERATORS = 43;\n /** RegularExpression Id. */\n int ASSIGNMENTOPERATORS = 44;\n /** RegularExpression Id. */\n int RSIGNEDSHIFT = 45;\n /** RegularExpression Id. */\n int RUNSIGNEDSHIFT = 46;\n /** RegularExpression Id. */\n int DOT = 47;\n /** RegularExpression Id. */\n int NULLLITERAL = 48;\n /** RegularExpression Id. */\n int SUPER = 49;\n /** RegularExpression Id. */\n int INSTANCEOF = 50;\n /** RegularExpression Id. */\n int IF = 51;\n /** RegularExpression Id. */\n int ELSE = 52;\n /** RegularExpression Id. */\n int SWITCH = 53;\n /** RegularExpression Id. */\n int CASE = 54;\n /** RegularExpression Id. */\n int DEFAULT1 = 55;\n /** RegularExpression Id. */\n int ASSERT = 56;\n /** RegularExpression Id. */\n int FOR = 57;\n /** RegularExpression Id. */\n int DO = 58;\n /** RegularExpression Id. */\n int WHILE = 59;\n /** RegularExpression Id. */\n int BREAK = 60;\n /** RegularExpression Id. */\n int CONTINUE = 61;\n /** RegularExpression Id. */\n int THROW = 62;\n /** RegularExpression Id. */\n int TRY = 63;\n /** RegularExpression Id. */\n int CATCH = 64;\n /** RegularExpression Id. */\n int SYNCHRONIZED = 65;\n /** RegularExpression Id. */\n int FINALLY = 66;\n /** RegularExpression Id. */\n int SYSTEM = 67;\n /** RegularExpression Id. */\n int IMPORT = 68;\n /** RegularExpression Id. */\n int PACKAGE = 69;\n /** RegularExpression Id. */\n int VOLATILE = 70;\n /** RegularExpression Id. */\n int AT = 71;\n /** RegularExpression Id. */\n int ENUM = 72;\n /** RegularExpression Id. */\n int THROWS = 73;\n /** RegularExpression Id. */\n int RETURNSTATEMENT = 74;\n /** RegularExpression Id. */\n int ASSIGNSTATEMENT = 75;\n /** RegularExpression Id. */\n int METHODCALL = 76;\n /** RegularExpression Id. */\n int NAMESPACE = 77;\n /** RegularExpression Id. */\n int VARASSIGN = 78;\n /** RegularExpression Id. */\n int INTEGER_LITERAL = 79;\n /** RegularExpression Id. */\n int DECIMAL_LITERAL = 80;\n /** RegularExpression Id. */\n int HEX_LITERAL = 81;\n /** RegularExpression Id. */\n int OCTAL_LITERAL = 82;\n /** RegularExpression Id. */\n int FLOATING_POINT_LITERAL = 83;\n /** RegularExpression Id. */\n int DECIMAL_FLOATING_POINT_LITERAL = 84;\n /** RegularExpression Id. */\n int DECIMAL_EXPONENT = 85;\n /** RegularExpression Id. */\n int HEXADECIMAL_FLOATING_POINT_LITERAL = 86;\n /** RegularExpression Id. */\n int HEXADECIMAL_EXPONENT = 87;\n /** RegularExpression Id. */\n int CHARACTER_LITERAL = 88;\n /** RegularExpression Id. */\n int STRING_LITERAL = 89;\n /** RegularExpression Id. */\n int BOOLEANLITERAL = 90;\n /** RegularExpression Id. */\n int ID = 91;\n /** RegularExpression Id. */\n int LETTER = 92;\n /** RegularExpression Id. */\n int PART_LETTER = 93;\n /** RegularExpression Id. */\n int THIS = 94;\n\n /** Lexical state. */\n int DEFAULT = 0;\n /** Lexical state. */\n int AFTER_EGEN = 1;\n /** Lexical state. */\n int IN_SINGLE_LINE_COMMENT = 2;\n /** Lexical state. */\n int IN_FORMAL_COMMENT = 3;\n /** Lexical state. */\n int IN_MULTI_LINE_COMMENT = 4;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\" \\\"\",\n \"\\\"\\\\r\\\"\",\n \"\\\"\\\\t\\\"\",\n \"\\\"\\\\n\\\"\",\n \"\\\"/*@egen*/\\\"\",\n \"<token of kind 6>\",\n \"\\\"//\\\"\",\n \"<token of kind 8>\",\n \"\\\"/*\\\"\",\n \"\\\"/*@bgen(jjtree\\\"\",\n \"<SINGLE_LINE_COMMENT>\",\n \"\\\"*/\\\"\",\n \"\\\"*/\\\"\",\n \"<token of kind 14>\",\n \"\\\"public\\\"\",\n \"\\\"private\\\"\",\n \"\\\"protected\\\"\",\n \"\\\"static\\\"\",\n \"\\\"class\\\"\",\n \"\\\"interface\\\"\",\n \"\\\"extends\\\"\",\n \"\\\"implements\\\"\",\n \"<PRIMDATATYPE>\",\n \"<REFDATATYPE>\",\n \"\\\"{\\\"\",\n \"\\\"}\\\"\",\n \"\\\";\\\"\",\n \"\\\",\\\"\",\n \"\\\"(\\\"\",\n \"\\\")\\\"\",\n \"\\\"abstract\\\"\",\n \"<COLLECTION>\",\n \"\\\">\\\"\",\n \"\\\"<\\\"\",\n \"\\\"[\\\"\",\n \"\\\"*\\\"\",\n \"\\\"]\\\"\",\n \"\\\"return\\\"\",\n \"\\\"=\\\"\",\n \"\\\"/\\\"\",\n \"\\\"new\\\"\",\n \"\\\":\\\"\",\n \"<OPERATORS>\",\n \"<ASSIGNMENTOPERATORS>\",\n \"<RSIGNEDSHIFT>\",\n \"<RUNSIGNEDSHIFT>\",\n \"\\\".\\\"\",\n \"\\\"null\\\"\",\n \"\\\"super\\\"\",\n \"\\\"instanceOf\\\"\",\n \"\\\"if\\\"\",\n \"\\\"else\\\"\",\n \"\\\"switch\\\"\",\n \"\\\"case\\\"\",\n \"\\\"default\\\"\",\n \"\\\"assert\\\"\",\n \"\\\"for\\\"\",\n \"\\\"do\\\"\",\n \"\\\"while\\\"\",\n \"\\\"break\\\"\",\n \"\\\"continue\\\"\",\n \"\\\"throw\\\"\",\n \"\\\"try\\\"\",\n \"\\\"catch\\\"\",\n \"\\\"synchronized\\\"\",\n \"\\\"finally\\\"\",\n \"\\\"System.out.println\\\"\",\n \"\\\"import\\\"\",\n \"\\\"package\\\"\",\n \"\\\"volatile\\\"\",\n \"\\\"@\\\"\",\n \"\\\"enum\\\"\",\n \"\\\"throws\\\"\",\n \"<RETURNSTATEMENT>\",\n \"<ASSIGNSTATEMENT>\",\n \"<METHODCALL>\",\n \"<NAMESPACE>\",\n \"<VARASSIGN>\",\n \"<INTEGER_LITERAL>\",\n \"<DECIMAL_LITERAL>\",\n \"<HEX_LITERAL>\",\n \"<OCTAL_LITERAL>\",\n \"<FLOATING_POINT_LITERAL>\",\n \"<DECIMAL_FLOATING_POINT_LITERAL>\",\n \"<DECIMAL_EXPONENT>\",\n \"<HEXADECIMAL_FLOATING_POINT_LITERAL>\",\n \"<HEXADECIMAL_EXPONENT>\",\n \"<CHARACTER_LITERAL>\",\n \"<STRING_LITERAL>\",\n \"<BOOLEANLITERAL>\",\n \"<ID>\",\n \"<LETTER>\",\n \"<PART_LETTER>\",\n \"<THIS>\",\n };\n\n}", "title": "" }, { "docid": "397a190c355e6fa11d36b279123c1050", "score": "0.5284184", "text": "static void parseT() {\n \tSystem.out.println(\"(T)\");\r\n\tparseF();\r\n\tparseT1();\r\n }", "title": "" }, { "docid": "5be862d8600d4b23311e3dc737fd76be", "score": "0.5217251", "text": "@Override\n\tpublic void visit(MetaTyGrammar n) {\n\n\t}", "title": "" }, { "docid": "fd94c982a2c392889fd285e09fdd366d", "score": "0.520734", "text": "@Override\n\tpublic void visit(MetaCharLit n) {\n\n\t}", "title": "" }, { "docid": "7a31ae77803c76a89c6df9273dad1873", "score": "0.512005", "text": "public interface ParserConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int Num = 4;\n /** RegularExpression Id. */\n int PLUS = 5;\n /** RegularExpression Id. */\n int MINUS = 6;\n /** RegularExpression Id. */\n int TIMES = 7;\n /** RegularExpression Id. */\n int DIV = 8;\n /** RegularExpression Id. */\n int LPAR = 9;\n /** RegularExpression Id. */\n int RPAR = 10;\n /** RegularExpression Id. */\n int EL = 11;\n /** RegularExpression Id. */\n int LET = 12;\n /** RegularExpression Id. */\n int IN = 13;\n /** RegularExpression Id. */\n int END = 14;\n /** RegularExpression Id. */\n int COMMA = 15;\n /** RegularExpression Id. */\n int NOT = 16;\n /** RegularExpression Id. */\n int ISEQ = 17;\n /** RegularExpression Id. */\n int AND = 18;\n /** RegularExpression Id. */\n int OR = 19;\n /** RegularExpression Id. */\n int GT = 20;\n /** RegularExpression Id. */\n int LT = 21;\n /** RegularExpression Id. */\n int GE = 22;\n /** RegularExpression Id. */\n int LE = 23;\n /** RegularExpression Id. */\n int EQ = 24;\n /** RegularExpression Id. */\n int NEW = 25;\n /** RegularExpression Id. */\n int SEQ = 26;\n /** RegularExpression Id. */\n int ASSIGN = 27;\n /** RegularExpression Id. */\n int DESREF = 28;\n /** RegularExpression Id. */\n int IF = 29;\n /** RegularExpression Id. */\n int THEN = 30;\n /** RegularExpression Id. */\n int ELSE = 31;\n /** RegularExpression Id. */\n int WHILE = 32;\n /** RegularExpression Id. */\n int DO = 33;\n /** RegularExpression Id. */\n int BOOL = 34;\n /** RegularExpression Id. */\n int FUN = 35;\n /** RegularExpression Id. */\n int IS = 36;\n /** RegularExpression Id. */\n int COLON = 37;\n /** RegularExpression Id. */\n int INT_T = 38;\n /** RegularExpression Id. */\n int BOOL_T = 39;\n /** RegularExpression Id. */\n int REF_T = 40;\n /** RegularExpression Id. */\n int STR_T = 41;\n /** RegularExpression Id. */\n int PRINTLN = 42;\n /** RegularExpression Id. */\n int LCB = 43;\n /** RegularExpression Id. */\n int RCB = 44;\n /** RegularExpression Id. */\n int QUOTE = 45;\n /** RegularExpression Id. */\n int DOT = 46;\n /** RegularExpression Id. */\n int Id = 47;\n\n /** Lexical state. */\n int DEFAULT = 0;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\" \\\"\",\n \"\\\"\\\\t\\\"\",\n \"\\\"\\\\r\\\"\",\n \"<Num>\",\n \"\\\"+\\\"\",\n \"\\\"-\\\"\",\n \"\\\"*\\\"\",\n \"\\\"/\\\"\",\n \"\\\"(\\\"\",\n \"\\\")\\\"\",\n \"\\\"\\\\n\\\"\",\n \"\\\"let\\\"\",\n \"\\\"in\\\"\",\n \"\\\"end\\\"\",\n \"\\\",\\\"\",\n \"\\\"~\\\"\",\n \"\\\"==\\\"\",\n \"\\\"&&\\\"\",\n \"\\\"||\\\"\",\n \"\\\">\\\"\",\n \"\\\"<\\\"\",\n \"\\\">=\\\"\",\n \"\\\"<=\\\"\",\n \"\\\"=\\\"\",\n \"\\\"new\\\"\",\n \"\\\";\\\"\",\n \"\\\":=\\\"\",\n \"\\\"!\\\"\",\n \"\\\"if\\\"\",\n \"\\\"then\\\"\",\n \"\\\"else\\\"\",\n \"\\\"while\\\"\",\n \"\\\"do\\\"\",\n \"<BOOL>\",\n \"\\\"fun\\\"\",\n \"\\\"->\\\"\",\n \"\\\":\\\"\",\n \"\\\"int\\\"\",\n \"\\\"bool\\\"\",\n \"\\\"ref\\\"\",\n \"\\\"string\\\"\",\n \"\\\"println\\\"\",\n \"\\\"{\\\"\",\n \"\\\"}\\\"\",\n \"\\\"\\\\\\\"\\\"\",\n \"\\\".\\\"\",\n \"<Id>\",\n };\n\n}", "title": "" }, { "docid": "3abe9a3195b3c282ec50ce76aca5cdc7", "score": "0.50704885", "text": "@Override\n\tpublic void visit(BindPEG n) {\n\n\n\t}", "title": "" }, { "docid": "4c7060b1460caa23685d969a6fdd7220", "score": "0.5000147", "text": "private static void testAcceptClause3() {\n\n System.out.println(\"-------------------------------------------------\");\n System.out.println(\"INFO in Lexer.testAcceptClause3()\");\n Lexer lex = new Lexer(example4);\n try {\n\n Pattern value = tokenDefs.get(Ident);\n Matcher m = value.matcher(\"5th-6\");\n if (m.lookingAt()) {\n System.out.println(\"parse ok\");\n }\n }\n catch (Exception e) {\n System.out.println(e.getMessage());\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "a1517269fcd54998b5e565afe0c95752", "score": "0.49916673", "text": "protected LL1_Grammar() {}", "title": "" }, { "docid": "b5e0a62cd8f1c74bf008abf5ac2a2cc7", "score": "0.49726936", "text": "public interface ParserConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int SINGLE_LINE_COMMENT = 6;\n /** RegularExpression Id. */\n int MULTI_LINE_COMMENT = 7;\n /** RegularExpression Id. */\n int FUNCTION = 8;\n /** RegularExpression Id. */\n int RETURN = 9;\n /** RegularExpression Id. */\n int IF = 10;\n /** RegularExpression Id. */\n int ELSE = 11;\n /** RegularExpression Id. */\n int WHILE = 12;\n /** RegularExpression Id. */\n int ASSIGN = 13;\n /** RegularExpression Id. */\n int EQUAL = 14;\n /** RegularExpression Id. */\n int NOT_EQUAL = 15;\n /** RegularExpression Id. */\n int GT = 16;\n /** RegularExpression Id. */\n int GE = 17;\n /** RegularExpression Id. */\n int LT = 18;\n /** RegularExpression Id. */\n int LE = 19;\n /** RegularExpression Id. */\n int STAR = 20;\n /** RegularExpression Id. */\n int DIV = 21;\n /** RegularExpression Id. */\n int PLUS = 22;\n /** RegularExpression Id. */\n int MINUS = 23;\n /** RegularExpression Id. */\n int LOR = 24;\n /** RegularExpression Id. */\n int LAND = 25;\n /** RegularExpression Id. */\n int LPAREN = 26;\n /** RegularExpression Id. */\n int RPAREN = 27;\n /** RegularExpression Id. */\n int LCURLY = 28;\n /** RegularExpression Id. */\n int RCURLY = 29;\n /** RegularExpression Id. */\n int LBRACK = 30;\n /** RegularExpression Id. */\n int RBRACK = 31;\n /** RegularExpression Id. */\n int SEMI = 32;\n /** RegularExpression Id. */\n int COMMA = 33;\n /** RegularExpression Id. */\n int DOT = 34;\n /** RegularExpression Id. */\n int IDENTIFIER = 35;\n /** RegularExpression Id. */\n int LETTER = 36;\n /** RegularExpression Id. */\n int DIGIT = 37;\n /** RegularExpression Id. */\n int NON_ZERO_DIGIT = 38;\n /** RegularExpression Id. */\n int INT_LITERAL = 39;\n /** RegularExpression Id. */\n int STRING_LITERAL = 40;\n /** RegularExpression Id. */\n int ESC = 41;\n /** RegularExpression Id. */\n int ERROR = 42;\n\n /** Lexical state. */\n int DEFAULT = 0;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\" \\\"\",\n \"\\\"\\\\t\\\"\",\n \"\\\"\\\\n\\\"\",\n \"\\\"\\\\r\\\"\",\n \"\\\"\\\\f\\\"\",\n \"<SINGLE_LINE_COMMENT>\",\n \"<MULTI_LINE_COMMENT>\",\n \"\\\"function\\\"\",\n \"\\\"return\\\"\",\n \"\\\"if\\\"\",\n \"\\\"else\\\"\",\n \"\\\"while\\\"\",\n \"\\\"=\\\"\",\n \"\\\"==\\\"\",\n \"\\\"!=\\\"\",\n \"\\\">\\\"\",\n \"\\\">=\\\"\",\n \"\\\"<\\\"\",\n \"\\\"<=\\\"\",\n \"\\\"*\\\"\",\n \"\\\"/\\\"\",\n \"\\\"+\\\"\",\n \"\\\"-\\\"\",\n \"\\\"||\\\"\",\n \"\\\"&&\\\"\",\n \"\\\"(\\\"\",\n \"\\\")\\\"\",\n \"\\\"{\\\"\",\n \"\\\"}\\\"\",\n \"\\\"[\\\"\",\n \"\\\"]\\\"\",\n \"\\\";\\\"\",\n \"\\\",\\\"\",\n \"\\\".\\\"\",\n \"<IDENTIFIER>\",\n \"<LETTER>\",\n \"<DIGIT>\",\n \"<NON_ZERO_DIGIT>\",\n \"<INT_LITERAL>\",\n \"<STRING_LITERAL>\",\n \"<ESC>\",\n \"<ERROR>\",\n };\n\n}", "title": "" }, { "docid": "1e585ba7e80ba7f0d2592053052ceb93", "score": "0.49715897", "text": "public String compile(ANTLRFileStream fs) throws RecognitionException;", "title": "" }, { "docid": "ff5e9a4e46871a2640e2ed5350a26a5f", "score": "0.49645925", "text": "@Override\n\tpublic void visit(MetaNonterminalPEG n) {\n\n\t}", "title": "" }, { "docid": "6522c0d07975a815095b75dac9d40b0a", "score": "0.4947185", "text": "public void testStatementGrammar() {\n\t\ttestParse(\"\", \"(begin)\");\n\t\ttestParse(\"a;b;c\",\n\t\t\t\t \"(begin (symbol a) (symbol b) (symbol c))\");\n\t\ttestParse(\"a;b;c;\",\n\t\t \"(begin (symbol a) (symbol b) (symbol c))\");\n\t\ttestParse(\"def x\",\n\t\t \t\t \"(begin (define-field (symbol x)))\");\n\t\ttestParse(\"def x := 5\",\n\t\t\t\t \"(begin (define-field (symbol x) (number 5)))\");\n\t\ttestParse(\"def o.x\",\n\t\t\t\t \"(begin (define-external-field (symbol o) (symbol x)))\");\n\t\ttestParse(\"def o.x := 5\",\n\t\t \"(begin (define-external-field (symbol o) (symbol x) (number 5)))\");\n\t\ttestParse(\"def self.x := 5\",\n \"(begin (define-external-field self (symbol x) (number 5)))\");\n\t\ttestParse(\"def f(a,b)\",\n\t\t\t\t \"(begin (define-function (apply (symbol f) (table (symbol a) (symbol b)))))\");\n\t\ttestParse(\"def f(a,b) { 5 }\",\n\t\t\t\t \"(begin (define-function (apply (symbol f) (table (symbol a) (symbol b))) (begin (number 5))))\");\n\t\ttestParse(\"def foo:=(a)\",\n\t\t \"(begin (define-function (apply (symbol foo:=) (table (symbol a)))))\");\n\t\ttestParse(\"def foo: x bar: y\",\n\t\t\t\t \"(begin (define-function (apply (symbol foo:bar:) (table (symbol x) (symbol y)))))\");\n\t\ttestParse(\"def foo: x bar: y { 5 }\",\n\t\t\t\t \"(begin (define-function (apply (symbol foo:bar:) (table (symbol x) (symbol y))) (begin (number 5))))\");\n\t\ttestParse(\"def o.f(a,b)\",\n\t\t\t\t \"(begin (define-external-method (symbol o) (apply (symbol f) (table (symbol a) (symbol b)))))\");\n\t\ttestParse(\"def self.f(a,b)\",\n\t\t \"(begin (define-external-method self (apply (symbol f) (table (symbol a) (symbol b)))))\");\n\t\ttestParse(\"def o.f(a,b) { 5 }\",\n\t\t \"(begin (define-external-method (symbol o) (apply (symbol f) (table (symbol a) (symbol b))) (begin (number 5))))\");\n\t\ttestParse(\"def o.foo: x bar: y\",\n\t\t\t\t \"(begin (define-external-method (symbol o) (apply (symbol foo:bar:) (table (symbol x) (symbol y)))))\");\t\t\n\t\ttestParse(\"def o.foo: x bar: y { 5 }\",\n\t\t \"(begin (define-external-method (symbol o) (apply (symbol foo:bar:) (table (symbol x) (symbol y))) (begin (number 5))))\");\t\t\n\t\ttestParse(\"def t[5]\",\n\t\t\t\t \"(begin (define-table (symbol t) (number 5)))\");\n\t\ttestParse(\"def t[5] { a }\",\n\t\t\t\t \"(begin (define-table (symbol t) (number 5) (begin (symbol a))))\");\n\t\ttestParse(\"def t[5] { i := i + 1 }\",\n\t\t \"(begin (define-table (symbol t) (number 5) (begin (var-set (symbol i) (+ (symbol i) (number 1))))))\");\n\t\ttestParse(\"def [x, y]\",\n\t\t\t\t \"(begin (multi-def (table (symbol x) (symbol y))))\");\n\t\ttestParse(\"def [x, y] := t\",\n \"(begin (multi-def (table (symbol x) (symbol y)) (symbol t)))\");\n\t\ttestParse(\"x := 7\",\n\t\t\t\t \"(begin (var-set (symbol x) (number 7)))\");\n\t\ttestParse(\"x[5] := 7\",\n\t\t \"(begin (table-set (table-get ( symbol x ) ( number 5 ) ) (number 7)))\");\n\t\ttestParse(\"o.m := 1\",\n \"(begin (field-set (send (symbol o) (field (symbol m))) (number 1)))\");\n\t\ttestParse(\"[x, y] := [ y, x]\",\n \"(begin (multi-set (table (symbol x) (symbol y)) (table (symbol y) (symbol x))))\");\n\t\ttestParse(\"[x, y := 1] := a\",\n \"(begin (multi-set (table (symbol x) (var-set (symbol y) (number 1))) (symbol a)))\");\n\t\ttestParse(\"deftype foo\",\n\t\t\t\t \"(begin (define-type (symbol foo) (table)))\");\n\t\ttestParse(\"deftype foo <: bar\",\n\t\t\t\t \"(begin (define-type (symbol foo) (table (symbol bar))))\");\n\t\ttestParse(\"deftype foo <: bar, x\",\n\t\t \"(begin (define-type (symbol foo) (table (symbol bar) (symbol x))))\");\n\t\ttestParse(\"import o alias a := b, c := d exclude e, f\",\n\t\t\t\t \"(begin (import (symbol o) (table (table (symbol a) (symbol b)) (table (symbol c) (symbol d))) (table (symbol e) (symbol f))))\");\n\t\ttestParse(\"import o.m()\",\n\t\t \"(begin (import (send (symbol o) (message (apply (symbol m) (table)))) (table) (table)))\");\n\t\ttestParse(\"import o alias a: := b:c:\",\n\t\t \"(begin (import (symbol o) (table (table (symbol a:) (symbol b:c:))) (table)))\");\n\t\ttestParse(\"import o exclude e, f:=\",\n\t\t \"(begin (import (symbol o) (table) (table (symbol e) (symbol f:=))))\");\n\t\ttestParse(\"{}\",\n\t\t\t\t \"(begin (closure (table) (begin)))\");\n\t\ttestParse(\"def m() {}\",\n\t\t \"(begin (define-function (apply (symbol m) (table)) (begin)))\");\n\t}", "title": "" }, { "docid": "6b422f22d0cbd7bebcaf084c512f3b80", "score": "0.4924457", "text": "private Token match(Kind kind) throws SyntaxException {\r\n\t\tif (t.isKind(kind)) {\r\n\t\t\treturn consume();\r\n\t\t}\r\n\t\tthrow new SyntaxException(\"saw \" + t.kind + \" expected \" + kind + \" .. text='\"+t.getText()+\"'.. (pos= \" + t.pos+\") .. \"+ t.getLinePos());\r\n\t}", "title": "" }, { "docid": "3255f3edbbb5c6384aadd0e61b2cd186", "score": "0.4907382", "text": "public void testExpressionGrammar() {\n\t\ttestParse(\"o.m(a,b)\",\n\t\t\t\t \"(begin (send (symbol o) (message (apply (symbol m) (table (symbol a) (symbol b))))))\");\n\t\ttestParse(\"o<-m(a,b)\",\n\t\t \"(begin (send (symbol o) (async-message (apply (symbol m) (table (symbol a) (symbol b))))))\");\n\t\ttestParse(\"foo: a bar: b\",\n\t\t \"(begin (apply (symbol foo:bar:) (table (symbol a) (symbol b))))\");\n\t\ttestParse(\"o.foo: a bar: b\",\n\t\t\t\t \"(begin (send (symbol o) (message (apply (symbol foo:bar:) (table (symbol a) (symbol b))))))\");\n\t\ttestParse(\"o<-foo: a bar: b\",\n\t\t \"(begin (send (symbol o) (async-message (apply (symbol foo:bar:) (table (symbol a) (symbol b))))))\");\n\t\ttestParse(\"super.m(a)\",\n\t\t\t\t \"(begin (send (symbol super) (message (apply (symbol m) (table (symbol a))))))\");\n\t\ttestParse(\"m(a,b)\",\n\t\t\t\t \"(begin (apply (symbol m) (table (symbol a) (symbol b))))\");\n\t\ttestParse(\"o.m\",\n\t\t \"(begin (send (symbol o) (field (symbol m))))\");\n\t\ttestParse(\"o.&m\",\n \"(begin (select (symbol o) (symbol m)))\");\n\t\ttestParse(\"o.&m:=\",\n \"(begin (select (symbol o) (symbol m:=)))\");\n\t\ttestParse(\".m(a,b)\",\n\t\t\t\t \"(begin (message (apply (symbol m) (table (symbol a) (symbol b)))))\");\n\t\ttestParse(\".x\",\n\t\t \"(begin (field (symbol x)))\");\n\t\ttestParse(\"<-m(a,b)\",\n\t\t \"(begin (async-message (apply (symbol m) (table (symbol a) (symbol b)))))\");\n\t\ttestParse(\"^m(a,b)\",\n \"(begin (delegate (apply (symbol m) (table (symbol a) (symbol b)))))\");\n\t\ttestParse(\"t[a]\",\n\t\t \"(begin (table-get (symbol t) (symbol a)))\");\n\t\ttestParse(\"f()[a+b]\",\n \"(begin (table-get (apply (symbol f) (table)) (+ (symbol a) (symbol b))))\");\n\t\ttestParse(\"a\",\n \"(begin (symbol a))\");\n\t\ttestParse(\"self\",\n \"(begin self)\");\n\t\ttestParse(\"&x\",\n \"(begin (lookup (symbol x)))\");\n\t\ttestParse(\"&x:=\",\n \"(begin (lookup (symbol x:=)))\");\n\t\ttestParse(\"o.&foo:\",\n \"(begin (select (symbol o) (symbol foo:)))\");\n\t\ttestParse(\"&foo:\",\n \"(begin (lookup (symbol foo:)))\");\n\t}", "title": "" }, { "docid": "b529066f2c602daa3d1c5ea98b9d8edf", "score": "0.4901218", "text": "public void visit (LiteralNode n) {\n \r\n \r\n }", "title": "" }, { "docid": "d8e387f7d5847aa7c519a8e97b8b9e9a", "score": "0.48934677", "text": "public interface v\n{\n\n public abstract r asToken();\n\n public abstract int numberType$72641f5();\n}", "title": "" }, { "docid": "8c81bd0416387f0b8383613d5932a057", "score": "0.48907587", "text": "public void endField(AST f)\r\n {\n\r\n }", "title": "" }, { "docid": "d8089a27a306d8a32625a2e9c0df6ff8", "score": "0.48875406", "text": "@Override\n\tpublic void visit(MetaRulePEG n) {\n\n\t}", "title": "" }, { "docid": "63e7f215d943bcaead3c2177047add92", "score": "0.48692662", "text": "static void parseE() {\n \tSystem.out.println(\"(E)\");\r\n\tparseT();\r\n\tparseE1();\r\n }", "title": "" }, { "docid": "5e1f5e5c7d94a36f36af5db9c0d97540", "score": "0.4861658", "text": "@Override\n\tpublic void visit(MetaStrLit n) {\n\n\t}", "title": "" }, { "docid": "373f77dccd038c67553cf0a36decc1f8", "score": "0.48582014", "text": "private int yyr22() {\n { yyrv = new WhileDoEnd(((Expression)yysv[yysp-4]),((Expression)yysv[yysp-2]));}\n yysv[yysp-=5] = yyrv;\n return yypexpr();\n }", "title": "" }, { "docid": "a1a9e7b12aebbb663afa6b2e73fd3aa6", "score": "0.48220107", "text": "private int yyr24() {\n { yyrv = new Second(((Expression)yysv[yysp-1]));}\n yysv[yysp-=2] = yyrv;\n return yypexpr();\n }", "title": "" }, { "docid": "3c26ed7a7fb1302e1e6043f427049ebd", "score": "0.48213133", "text": "public abstract void next(ASTRE stm, Env env);", "title": "" }, { "docid": "3a50d9e7281988bb31f44c044bd79c0a", "score": "0.48193625", "text": "public interface ALPGParserConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int SINGLE_LINE_COMMENT = 9;\n /** RegularExpression Id. */\n int FORMAL_COMMENT = 10;\n /** RegularExpression Id. */\n int MULTI_LINE_COMMENT = 11;\n /** RegularExpression Id. */\n int TYPEDEF = 13;\n /** RegularExpression Id. */\n int FIXED = 14;\n /** RegularExpression Id. */\n int IN = 15;\n /** RegularExpression Id. */\n int OUT = 16;\n /** RegularExpression Id. */\n int BACK = 17;\n /** RegularExpression Id. */\n int CONST = 18;\n /** RegularExpression Id. */\n int LPAREN = 19;\n /** RegularExpression Id. */\n int RPAREN = 20;\n /** RegularExpression Id. */\n int LBRACE = 21;\n /** RegularExpression Id. */\n int RBRACE = 22;\n /** RegularExpression Id. */\n int LBRACKET = 23;\n /** RegularExpression Id. */\n int RBRACKET = 24;\n /** RegularExpression Id. */\n int ASSIGN = 25;\n /** RegularExpression Id. */\n int SEMICOLON = 26;\n /** RegularExpression Id. */\n int COMMA = 27;\n /** RegularExpression Id. */\n int DOT = 28;\n /** RegularExpression Id. */\n int AT = 29;\n /** RegularExpression Id. */\n int CONST_INTEGER = 30;\n /** RegularExpression Id. */\n int IDENTIFIER = 31;\n\n /** Lexical state. */\n int DEFAULT = 0;\n /** Lexical state. */\n int IN_SINGLE_LINE_COMMENT = 1;\n /** Lexical state. */\n int IN_FORMAL_COMMENT = 2;\n /** Lexical state. */\n int IN_MULTI_LINE_COMMENT = 3;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\" \\\"\",\n \"\\\"\\\\t\\\"\",\n \"\\\"\\\\n\\\"\",\n \"\\\"\\\\r\\\"\",\n \"\\\"\\\\f\\\"\",\n \"\\\"//\\\"\",\n \"<token of kind 7>\",\n \"\\\"/*\\\"\",\n \"<SINGLE_LINE_COMMENT>\",\n \"\\\"*/\\\"\",\n \"\\\"*/\\\"\",\n \"<token of kind 12>\",\n \"\\\"typedef\\\"\",\n \"\\\"fixed\\\"\",\n \"\\\"in\\\"\",\n \"\\\"out\\\"\",\n \"\\\"backward\\\"\",\n \"\\\"const\\\"\",\n \"\\\"(\\\"\",\n \"\\\")\\\"\",\n \"\\\"{\\\"\",\n \"\\\"}\\\"\",\n \"\\\"[\\\"\",\n \"\\\"]\\\"\",\n \"\\\"<-\\\"\",\n \"\\\";\\\"\",\n \"\\\",\\\"\",\n \"\\\".\\\"\",\n \"\\\"@\\\"\",\n \"<CONST_INTEGER>\",\n \"<IDENTIFIER>\",\n \"\\\"=\\\"\",\n \"\\\":\\\"\",\n };\n\n}", "title": "" }, { "docid": "881eed4d4b3775f2ebeb92dcd0b14fa5", "score": "0.48089337", "text": "public final void mT__22() throws RecognitionException {\n try {\n int _type = T__22;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // src\\\\calculator.g:15:7: ( '++' )\n // src\\\\calculator.g:15:9: '++'\n {\n match(\"++\"); \n\n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n \t// do for sure before leaving\n }\n }", "title": "" }, { "docid": "ce3452fd7a78b237ce897405c1d4b163", "score": "0.48079756", "text": "public final void mT__21() throws RecognitionException {\r\n try {\r\n int _type = T__21;\r\n int _channel = DEFAULT_TOKEN_CHANNEL;\r\n // ../org.xtext.commonlang/src-gen/org/xtext/parser/antlr/internal/InternalCommonlang.g:19:7: ( ';' )\r\n // ../org.xtext.commonlang/src-gen/org/xtext/parser/antlr/internal/InternalCommonlang.g:19:9: ';'\r\n {\r\n match(';'); \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": "8489e051967bb8978d66385965f2e18c", "score": "0.48078436", "text": "private Token match(Kind... kinds) throws SyntaxException {\r\n\t\t// TODO. Optional but handy\r\n\t\treturn null; //replace this statement\r\n\t}", "title": "" }, { "docid": "8489e051967bb8978d66385965f2e18c", "score": "0.48078436", "text": "private Token match(Kind... kinds) throws SyntaxException {\r\n\t\t// TODO. Optional but handy\r\n\t\treturn null; //replace this statement\r\n\t}", "title": "" }, { "docid": "7d6330ba578a93df8a70fb0145093174", "score": "0.47817433", "text": "final public Node atom() throws ParseException {\n Node i=new Variable(\"\"),dat=new Variable(\"\");Token t;boolean typecast=false;\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case CHARDEF:\n case STRINGDEF:\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case CHARDEF:\n t = jj_consume_token(CHARDEF);\n {if (true) return new StringOrCharConst(t+\"\",false);}\n break;\n case STRINGDEF:\n t = jj_consume_token(STRINGDEF);\n {if (true) return new StringOrCharConst(t+\"\",true);}\n break;\n default:\n jj_la1[112] = jj_gen;\n jj_consume_token(-1);\n throw new ParseException();\n }\n break;\n case TRUE:\n case FALSE:\n case NULL:\n case MINUS:\n case LPAR:\n case QUEST:\n case CLASSIDENT:\n case VARIDENT:\n case ELEMIDENT:\n case CONSTANTD:\n case CONSTANTF:\n case CONSTANTL:\n case CONSTANTI:\n if (jj_2_4(5)) {\n jj_consume_token(LPAR);\n dat = datdef();\n typecast=true;\n jj_consume_token(RPAR);\n } else {\n ;\n }\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case MINUS:\n case CONSTANTD:\n case CONSTANTF:\n case CONSTANTL:\n case CONSTANTI:\n i = unary(false);\n {if (true) return new Atom(i,dat,false,typecast);}\n break;\n case TRUE:\n case FALSE:\n case NULL:\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case TRUE:\n t = jj_consume_token(TRUE);\n break;\n case FALSE:\n t = jj_consume_token(FALSE);\n break;\n case NULL:\n t = jj_consume_token(NULL);\n break;\n default:\n jj_la1[113] = jj_gen;\n jj_consume_token(-1);\n throw new ParseException();\n }\n {if (true) return new StringOrCharConst(t+\"\",true);}\n break;\n case CLASSIDENT:\n case VARIDENT:\n case ELEMIDENT:\n i = varNameOrFunctionCall();\n {if (true) return new Atom(i,dat,false,typecast);}\n break;\n case QUEST:\n i = ternary(i);\n {if (true) return new Atom(i,dat,false,typecast);}\n break;\n case LPAR:\n jj_consume_token(LPAR);\n i = operators();\n jj_consume_token(RPAR);\n {if (true) return new Atom(i,dat,true,typecast);}\n break;\n default:\n jj_la1[114] = jj_gen;\n jj_consume_token(-1);\n throw new ParseException();\n }\n break;\n default:\n jj_la1[115] = jj_gen;\n jj_consume_token(-1);\n throw new ParseException();\n }\n throw new Error(\"Missing return statement in function\");\n }", "title": "" }, { "docid": "d9be74361dd2dfd871be267f84b38cb4", "score": "0.47730774", "text": "public final void mT__23() throws RecognitionException {\n try {\n int _type = T__23;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // src\\\\calculator.g:16:7: ( '+=' )\n // src\\\\calculator.g:16:9: '+='\n {\n match(\"+=\"); \n\n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n \t// do for sure before leaving\n }\n }", "title": "" }, { "docid": "c7edd06036001d948cded0b380d4e8db", "score": "0.47675672", "text": "@Override\n\tpublic void visit(MetaAndPEG n) {\n\n\t}", "title": "" }, { "docid": "5daf2109a059e9fbefe95afefa273380", "score": "0.47639626", "text": "@Test(timeout = 4000)\n public void test022() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"'WBq:5@*M_\");\n Token token0 = xPathLexer0.doubleColon();\n assertEquals(\"'W\", token0.getTokenText());\n assertEquals(19, token0.getTokenType());\n \n char char0 = xPathLexer0.LA(0);\n assertEquals('W', char0);\n }", "title": "" }, { "docid": "a128d070d1c419ba9bc9fc546f836e76", "score": "0.4763058", "text": "void program()\n\t{\n\t\tids.add(idsOutter);\n\t\tif(lookahead.equals(\"public\") || lookahead.equals(\"private\") )\n\t\t{\n\t\t\tmatch('4');\n\t\t}\n\t\telse {\n\t\t\texit_program(\"ERROR: No class definition\");\n\t\t\t\n\t\t}\n\t\t\t\n\t\tif(lookahead.equals(\"class\"))\n\t\t{\n\t\t\tmatch('.');\n\t\t\tString id = lookahead;\n\t\t\tmatch(';');\n\t\t\tif(lookahead.equals(\"{\")) {\n\t\t\t\tmatch('a');\n\t\t\t\t\n\t\t\t}\n\t\t\tprgm_list();\n\t\t\tif(lookahead.equals(\"}\")) {\n\t\t\t\tmatch('a');\n\t\t\t}\n\t\t}\n\t\telse\n\t\t\texit_program(\"ERROR: No class definition\");\n\t}", "title": "" }, { "docid": "09acb319906eb1e8bdccba3050d088a3", "score": "0.47621918", "text": "public void beginField(AST f)\r\n {\n\r\n }", "title": "" }, { "docid": "f84038552f1fa8dfa7004246821906eb", "score": "0.47561312", "text": "public interface LinguagemScriptVisitor<T> extends ParseTreeVisitor<T> {\n /**\n * Visit start t.\n *\n * @param ctx the ctx\n * @return the t\n */\n T visitStart(LinguagemScriptParser.StartContext ctx);\n\n /**\n * Visit expr t.\n *\n * @param ctx the ctx\n * @return the t\n */\n T visitExpr(LinguagemScriptParser.ExprContext ctx);\n\n /**\n * Visit declaracoes t.\n *\n * @param ctx the ctx\n * @return the t\n */\n T visitDeclaracoes(LinguagemScriptParser.DeclaracoesContext ctx);\n\n /**\n * Visit declaracao variaveis t.\n *\n * @param ctx the ctx\n * @return the t\n */\n T visitDeclaracaoVariaveis(LinguagemScriptParser.DeclaracaoVariaveisContext ctx);\n\n /**\n * Visit tipo t.\n *\n * @param ctx the ctx\n * @return the t\n */\n T visitTipo(LinguagemScriptParser.TipoContext ctx);\n\n /**\n * Visit lista de variaveis t.\n *\n * @param ctx the ctx\n * @return the t\n */\n T visitLista_de_variaveis(LinguagemScriptParser.Lista_de_variaveisContext ctx);\n\n /**\n * Visit variavel t.\n *\n * @param ctx the ctx\n * @return the t\n */\n T visitVariavel(LinguagemScriptParser.VariavelContext ctx);\n\n /**\n * Visit identificador t.\n *\n * @param ctx the ctx\n * @return the t\n */\n T visitIdentificador(LinguagemScriptParser.IdentificadorContext ctx);\n\n /**\n * Visit valor t.\n *\n * @param ctx the ctx\n * @return the t\n */\n T visitValor(LinguagemScriptParser.ValorContext ctx);\n\n /**\n * Visit string t.\n *\n * @param ctx the ctx\n * @return the t\n */\n T visitString(LinguagemScriptParser.StringContext ctx);\n\n /**\n * Visit numeros t.\n *\n * @param ctx the ctx\n * @return the t\n */\n T visitNumeros(LinguagemScriptParser.NumerosContext ctx);\n\n /**\n * Visit palavra t.\n *\n * @param ctx the ctx\n * @return the t\n */\n T visitPalavra(LinguagemScriptParser.PalavraContext ctx);\n\n /**\n * Visit inteiro t.\n *\n * @param ctx the ctx\n * @return the t\n */\n T visitInteiro(LinguagemScriptParser.InteiroContext ctx);\n\n /**\n * Visit real t.\n *\n * @param ctx the ctx\n * @return the t\n */\n T visitReal(LinguagemScriptParser.RealContext ctx);\n\n /**\n * Visit caractere t.\n *\n * @param ctx the ctx\n * @return the t\n */\n T visitCaractere(LinguagemScriptParser.CaractereContext ctx);\n\n /**\n * Visit alfa t.\n *\n * @param ctx the ctx\n * @return the t\n */\n T visitAlfa(LinguagemScriptParser.AlfaContext ctx);\n\n /**\n * Visit alfas t.\n *\n * @param ctx the ctx\n * @return the t\n */\n T visitAlfas(LinguagemScriptParser.AlfasContext ctx);\n\n /**\n * Visit potencias t.\n *\n * @param ctx the ctx\n * @return the t\n */\n T visitPotencias(LinguagemScriptParser.PotenciasContext ctx);\n\n /**\n * Visit base t.\n *\n * @param ctx the ctx\n * @return the t\n */\n T visitBase(LinguagemScriptParser.BaseContext ctx);\n\n /**\n * Visit expoente t.\n *\n * @param ctx the ctx\n * @return the t\n */\n T visitExpoente(LinguagemScriptParser.ExpoenteContext ctx);\n\n /**\n * Visit contas t.\n *\n * @param ctx the ctx\n * @return the t\n */\n T visitContas(LinguagemScriptParser.ContasContext ctx);\n\n /**\n * Visit variavel conta t.\n *\n * @param ctx the ctx\n * @return the t\n */\n T visitVariavel_conta(LinguagemScriptParser.Variavel_contaContext ctx);\n\n /**\n * Visit conta soma t.\n *\n * @param ctx the ctx\n * @return the t\n */\n T visitContaSoma(LinguagemScriptParser.ContaSomaContext ctx);\n\n /**\n * Visit conta mul t.\n *\n * @param ctx the ctx\n * @return the t\n */\n T visitContaMul(LinguagemScriptParser.ContaMulContext ctx);\n\n /**\n * Visit valor conta t.\n *\n * @param ctx the ctx\n * @return the t\n */\n T visitValorConta(LinguagemScriptParser.ValorContaContext ctx);\n\n /**\n * Visit conta sub t.\n *\n * @param ctx the ctx\n * @return the t\n */\n T visitContaSub(LinguagemScriptParser.ContaSubContext ctx);\n\n /**\n * Visit conta div t.\n *\n * @param ctx the ctx\n * @return the t\n */\n T visitContaDiv(LinguagemScriptParser.ContaDivContext ctx);\n\n /**\n * Visit conta fim intrucao t.\n *\n * @param ctx the ctx\n * @return the t\n */\n T visitContaFimIntrucao(LinguagemScriptParser.ContaFimIntrucaoContext ctx);\n\n /**\n * Visit alternativa t.\n *\n * @param ctx the ctx\n * @return the t\n */\n T visitAlternativa(LinguagemScriptParser.AlternativaContext ctx);\n\n /**\n * Visit parenteses t.\n *\n * @param ctx the ctx\n * @return the t\n */\n T visitParenteses(LinguagemScriptParser.ParentesesContext ctx);\n\n /**\n * Visit comparacao t.\n *\n * @param ctx the ctx\n * @return the t\n */\n T visitComparacao(LinguagemScriptParser.ComparacaoContext ctx);\n\n /**\n * Visit comparador t.\n *\n * @param ctx the ctx\n * @return the t\n */\n T visitComparador(LinguagemScriptParser.ComparadorContext ctx);\n\n /**\n * Visit ciclo t.\n *\n * @param ctx the ctx\n * @return the t\n */\n T visitCiclo(LinguagemScriptParser.CicloContext ctx);\n\n /**\n * Visit forloop t.\n *\n * @param ctx the ctx\n * @return the t\n */\n T visitForloop(LinguagemScriptParser.ForloopContext ctx);\n\n /**\n * Visit incremento t.\n *\n * @param ctx the ctx\n * @return the t\n */\n T visitIncremento(LinguagemScriptParser.IncrementoContext ctx);\n\n /**\n * Visit decremento t.\n *\n * @param ctx the ctx\n * @return the t\n */\n T visitDecremento(LinguagemScriptParser.DecrementoContext ctx);\n\n /**\n * Visit for each t.\n *\n * @param ctx the ctx\n * @return the t\n */\n T visitForEach(LinguagemScriptParser.ForEachContext ctx);\n\n /**\n * Visit funcoes especiais t.\n *\n * @param ctx the ctx\n * @return the t\n */\n T visitFuncoesEspeciais(LinguagemScriptParser.FuncoesEspeciaisContext ctx);\n\n /**\n * Visit nome ficheiro t.\n *\n * @param ctx the ctx\n * @return the t\n */\n T visitNome_ficheiro(LinguagemScriptParser.Nome_ficheiroContext ctx);\n\n /**\n * Visit enviar email t.\n *\n * @param ctx the ctx\n * @return the t\n */\n T visitEnviarEmail(LinguagemScriptParser.EnviarEmailContext ctx);\n\n /**\n * Visit lista destinatarios t.\n *\n * @param ctx the ctx\n * @return the t\n */\n T visitListaDestinatarios(LinguagemScriptParser.ListaDestinatariosContext ctx);\n\n /**\n * Visit assunto t.\n *\n * @param ctx the ctx\n * @return the t\n */\n T visitAssunto(LinguagemScriptParser.AssuntoContext ctx);\n\n /**\n * Visit mensagem t.\n *\n * @param ctx the ctx\n * @return the t\n */\n T visitMensagem(LinguagemScriptParser.MensagemContext ctx);\n\n /**\n * Visit palavras t.\n *\n * @param ctx the ctx\n * @return the t\n */\n T visitPalavras(LinguagemScriptParser.PalavrasContext ctx);\n}", "title": "" }, { "docid": "fb1484818d096190f309ad0635d468eb", "score": "0.47522637", "text": "public interface AstNodeTypes {\n\tpublic static final int ERROR = 0;\n\tpublic static final int NDDL = 8;\n\tpublic static final int IDENT = 16;\n\tpublic static final int CLASS_DEF = 48; // 'class'\n\tpublic static final int PREDICATE_DEF = 52; // '::'\n\tpublic static final int LBRACE = 33; // '{'\n\tpublic static final int VARIABLE = 11;\n\tpublic static final int CONSTRUCTOR = 5;\n\tpublic static final int LPAREN = 41; // '('\n\t// mention of predicate in class\n\tpublic static final int PREDICATE_KEYWORD = 50; // 'predicate'\n\tpublic static final int GOAL_KEYWORD = 58;\n\tpublic static final int FACT_KEYWORD = 59;\n\t// instantiation of predicate\n\tpublic static final int PREDICATE_INSTANCE = 9;\n\tpublic static final int CONSTRAINT_INSTANCE = 4;\n\tpublic static final int ENUM_KEYWORD = 32;\n}", "title": "" }, { "docid": "d0383e81dbd007467a220ad794671807", "score": "0.474322", "text": "static final public void IdExp() throws ParseException {/*@bgen(jjtree) IdExp */\n IdExp jjtn000 = new IdExp(JJTIDEXP);\n boolean jjtc000 = true;\n jjtree.openNodeScope(jjtn000);Token t;\n try {\n t = jj_consume_token(ID);\njjtree.closeNodeScope(jjtn000, true);\n jjtc000 = false;\njjtn000.setID(t.image);\n } finally {\nif (jjtc000) {\n jjtree.closeNodeScope(jjtn000, true);\n }\n }\n }", "title": "" }, { "docid": "e3d8903feeb4979ca8f72c513cd7bd44", "score": "0.4742135", "text": "@Override\n\tpublic void visit(MetaSeqPEG n) {\n\n\t}", "title": "" }, { "docid": "8028bf7629d92028ffa838168a2d5497", "score": "0.47410598", "text": "public interface Rule extends Word {}", "title": "" }, { "docid": "b8cb2ef7c701b5b6d2f9a6c219ebc6e9", "score": "0.47396335", "text": "public final void mT__24() throws RecognitionException {\r\n try {\r\n int _type = T__24;\r\n int _channel = DEFAULT_TOKEN_CHANNEL;\r\n // ../org.xtext.commonlang/src-gen/org/xtext/parser/antlr/internal/InternalCommonlang.g:22:7: ( '-' )\r\n // ../org.xtext.commonlang/src-gen/org/xtext/parser/antlr/internal/InternalCommonlang.g:22:9: '-'\r\n {\r\n match('-'); \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": "70972d6b7f3847c6135e8af1fb9b5e4e", "score": "0.4726998", "text": "public interface FunctionListParserConstants {\r\n\r\n /** End of File. */\r\n int EOF = 0;\r\n /** RegularExpression Id. */\r\n int SLASH = 6;\r\n /** RegularExpression Id. */\r\n int PLUS = 7;\r\n /** RegularExpression Id. */\r\n int MINUS = 8;\r\n /** RegularExpression Id. */\r\n int STAR = 9;\r\n /** RegularExpression Id. */\r\n int ASSIGN = 10;\r\n /** RegularExpression Id. */\r\n int VARARGSIDENTIFIER = 11;\r\n /** RegularExpression Id. */\r\n int VARARGS = 12;\r\n /** RegularExpression Id. */\r\n int REF = 13;\r\n /** RegularExpression Id. */\r\n int PIPE = 14;\r\n /** RegularExpression Id. */\r\n int COMMA = 15;\r\n /** RegularExpression Id. */\r\n int LPAREN = 16;\r\n /** RegularExpression Id. */\r\n int RPAREN = 17;\r\n /** RegularExpression Id. */\r\n int LBRACKET = 18;\r\n /** RegularExpression Id. */\r\n int RBRACKET = 19;\r\n /** RegularExpression Id. */\r\n int VOID = 20;\r\n /** RegularExpression Id. */\r\n int STRING = 21;\r\n /** RegularExpression Id. */\r\n int BOOL = 22;\r\n /** RegularExpression Id. */\r\n int INTEGER = 23;\r\n /** RegularExpression Id. */\r\n int NUMBER = 24;\r\n /** RegularExpression Id. */\r\n int DOUBLE = 25;\r\n /** RegularExpression Id. */\r\n int INT = 26;\r\n /** RegularExpression Id. */\r\n int ARRAY = 27;\r\n /** RegularExpression Id. */\r\n int LONG = 28;\r\n /** RegularExpression Id. */\r\n int RESOURCE = 29;\r\n /** RegularExpression Id. */\r\n int OBJECT = 30;\r\n /** RegularExpression Id. */\r\n int MIXED = 31;\r\n /** RegularExpression Id. */\r\n int INTEGER_LITERAL = 32;\r\n /** RegularExpression Id. */\r\n int FLOATING_POINT_LITERAL = 33;\r\n /** RegularExpression Id. */\r\n int FUNCTION_IDENTIFIER = 34;\r\n /** RegularExpression Id. */\r\n int IDENTIFIER = 35;\r\n /** RegularExpression Id. */\r\n int LETTER = 36;\r\n /** RegularExpression Id. */\r\n int DIGIT = 37;\r\n /** RegularExpression Id. */\r\n int LITERAL = 38;\r\n /** RegularExpression Id. */\r\n int SINGLEQUOTE_LITERAL = 39;\r\n\r\n /** Lexical state. */\r\n int DEFAULT = 0;\r\n\r\n /** Literal token values. */\r\n String[] tokenImage = {\r\n \"<EOF>\",\r\n \"\\\" \\\"\",\r\n \"\\\"\\\\t\\\"\",\r\n \"\\\"\\\\n\\\"\",\r\n \"\\\"\\\\r\\\"\",\r\n \"<token of kind 5>\",\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 \"\\\"void\\\"\",\r\n \"\\\"string\\\"\",\r\n \"\\\"bool\\\"\",\r\n \"\\\"integer\\\"\",\r\n \"\\\"number\\\"\",\r\n \"\\\"double\\\"\",\r\n \"\\\"int\\\"\",\r\n \"\\\"array\\\"\",\r\n \"\\\"long\\\"\",\r\n \"\\\"resource\\\"\",\r\n \"\\\"object\\\"\",\r\n \"\\\"mixed\\\"\",\r\n \"<INTEGER_LITERAL>\",\r\n \"<FLOATING_POINT_LITERAL>\",\r\n \"<FUNCTION_IDENTIFIER>\",\r\n \"<IDENTIFIER>\",\r\n \"<LETTER>\",\r\n \"<DIGIT>\",\r\n \"<LITERAL>\",\r\n \"<SINGLEQUOTE_LITERAL>\",\r\n };\r\n\r\n}", "title": "" }, { "docid": "865a4eecc0604aadb4d40ff203fe8b0d", "score": "0.4723464", "text": "private static void testAcceptClause() {\n\n System.out.println(\"-------------------------------------------------\");\n System.out.println(\"INFO in Lexer.testAcceptClause()\");\n Lexer lex = new Lexer(example4);\n try {\n \n Pattern value = tokenDefs.get(Number);\n Matcher m = value.matcher(\"8:30\");\n if (m.lookingAt()) {\n System.out.println(\"parse ok\");\n }\n System.out.println(lex.next());\n System.out.println(lex.next());\n System.out.println(lex.next());\n System.out.println(lex.next());\n System.out.println(lex.next());\n System.out.println(lex.next());\n }\n catch (Exception e) {\n System.out.println(e.getMessage());\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "562a68700f340c31c8d40e1f456155b2", "score": "0.47183424", "text": "void match(int t, Node node) {\n\t\tSystem.err.println(\"Tag to match: \" + t);// debug\n\t\tif (lookahead.tag == Tag.EOF) {\n\t\t\treturn;\n\t\t}\n\t\tif (lookahead.tag == t) {\n\t\t\tnode.addChild(lookahead);\n\t\t\ttry {\n\t\t\t\tnextToken();\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.err.println(e.getMessage());\n\t\t\t\tSystem.exit(1);\n\t\t\t}\n\t\t} else {\n\t\t\terror(\"syntax error: \" + lookahead.tag + \" != \" + t);\n\t\t}\n\t}", "title": "" }, { "docid": "aa29dfa133cae0348a59e29c7ff77cb0", "score": "0.4714832", "text": "private java_cup.runtime.Symbol tok(int k, Object value) {\n return new java_cup.runtime.Symbol(k, yyline, 0, value); \n}", "title": "" }, { "docid": "da77ebe8bc57d4151525ac8dca6c54e2", "score": "0.47119313", "text": "private void parseStatement() {\n\t\tif(expect(Token.LET)) {\n\t\t\tparseAssignment();\n\t\t} else if(expect(Token.CALL)) {\n\t\t\tparseFunctionCall();\n\t\t} else if(expect(Token.IF)) {\n\t\t\tparseIfStatement();\n\t\t} else if(expect(Token.WHILE)) {\n\t\t\tparseWhileStatement();\n\t\t} else if(expect(Token.RETURN)) {\n\t\t\tparseReturnStatement();\n\t\t}\n\t}", "title": "" }, { "docid": "2b034bee79c4edfb595d9a70713cbdfd", "score": "0.47092867", "text": "@Override\n\tpublic void visit(MetaBindPEG n) {\n\n\t}", "title": "" }, { "docid": "6a8a92ebc3af0aef8dfd5647cfb836a9", "score": "0.4709008", "text": "@Override\n\tpublic void visit(MetaTyChar n) {\n\n\t}", "title": "" }, { "docid": "6f40ec29def473896248d5cba3cc56e0", "score": "0.47076264", "text": "@Test(timeout = 4000)\n public void test23() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"\");\n xPathLexer0.nextToken();\n xPathLexer0.identifier();\n xPathLexer0.not();\n xPathLexer0.minus();\n xPathLexer0.setXPath(\"ee Zc?RE\");\n xPathLexer0.dots();\n xPathLexer0.leftParen();\n xPathLexer0.isIdentifierStartChar('4');\n xPathLexer0.comma();\n xPathLexer0.dollar();\n xPathLexer0.hasMoreChars();\n xPathLexer0.relationalOperator();\n xPathLexer0.leftBracket();\n xPathLexer0.setXPath(\"ee Zc?RE\");\n XPathLexer xPathLexer1 = new XPathLexer(\"\");\n xPathLexer1.rightBracket();\n xPathLexer0.nextToken();\n xPathLexer0.identifierOrOperatorName();\n xPathLexer1.endPosition();\n XPathLexer xPathLexer2 = new XPathLexer();\n xPathLexer2.at();\n xPathLexer2.not();\n xPathLexer2.dollar();\n xPathLexer0.getPreviousToken();\n xPathLexer1.dots();\n Token token0 = xPathLexer2.mod();\n assertNull(token0);\n }", "title": "" }, { "docid": "decc4f31426e600a5a1286dfe5602a03", "score": "0.47040072", "text": "public interface CQParserConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int COMMENT = 5;\n /** RegularExpression Id. */\n int EOQ = 6;\n /** RegularExpression Id. */\n int LANGLE = 7;\n /** RegularExpression Id. */\n int RANGLE = 8;\n /** RegularExpression Id. */\n int RULE_SEP = 9;\n /** RegularExpression Id. */\n int LPAREN = 10;\n /** RegularExpression Id. */\n int RPAREN = 11;\n /** RegularExpression Id. */\n int COMMA = 12;\n /** RegularExpression Id. */\n int QUOTE = 13;\n /** RegularExpression Id. */\n int LBRACE = 14;\n /** RegularExpression Id. */\n int RBRACE = 15;\n /** RegularExpression Id. */\n int QUERY_AND_PREDICATE_AND_VARIABLE_NAME = 16;\n /** RegularExpression Id. */\n int STRING_CONSTANT = 17;\n /** RegularExpression Id. */\n int INTEGER_CONSTANT = 18;\n\n /** Lexical state. */\n int DEFAULT = 0;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\" \\\"\",\n \"\\\"\\\\t\\\"\",\n \"\\\"\\\\n\\\"\",\n \"\\\"\\\\r\\\"\",\n \"<COMMENT>\",\n \"\\\";\\\"\",\n \"\\\"<\\\"\",\n \"\\\">\\\"\",\n \"\\\":-\\\"\",\n \"\\\"(\\\"\",\n \"\\\")\\\"\",\n \"\\\",\\\"\",\n \"\\\"\\\\\\\"\\\"\",\n \"\\\"{\\\"\",\n \"\\\"}\\\"\",\n \"<QUERY_AND_PREDICATE_AND_VARIABLE_NAME>\",\n \"<STRING_CONSTANT>\",\n \"<INTEGER_CONSTANT>\",\n };\n\n}", "title": "" }, { "docid": "adfb9dca5e2da265e3646bfa402ab1be", "score": "0.47032484", "text": "public static void funDeclaration() {\n\t\tif(tokensforparser.get(index) == \"int\" || tokensforparser.get(index) == \"void\") {\n\t\t\ttypeSpecifier();\n\t\t\tif(tokensforparser.get(index) == \"ID\") {\n\t\t\t\tindex++;\n\t\t\t\tif(tokensforparser.get(index) == \"(\") {\n\t\t\t\t\tindex++;\n\t\t\t\t\tif(tokensforparser.get(index) == \"int\" || tokensforparser.get(index) == \"void\") {\n\t\t\t\t\t\tparams();\n\t\t\t\t\t\tif(tokensforparser.get(index) == \")\") {\n\t\t\t\t\t\t\tindex++;\n\t\t\t\t\t\t\tif(tokensforparser.get(index) == \"{\") {\n\t\t\t\t\t\t\t\tcompoundStmt();\n\t\t\t\t\t\t\t\tif(tokensforparser.get(index) == \";\") {\n\t\t\t\t\t\t\t\t\tindex++;\n\t\t\t\t\t\t\t\t} else ishouldaccept = false; \n\t\t\t\t\t\t\t} else ishouldaccept = false;\n\t\t\t\t\t\t} else ishouldaccept = false;\n\t\t\t\t\t} else ishouldaccept = false;\n\t\t\t\t} else ishouldaccept = false;\n\t\t\t} else ishouldaccept = false;\n\t\t} else ishouldaccept = false;\n\t}", "title": "" }, { "docid": "e08f01592d91b6502d600fcea9fca3cb", "score": "0.46981722", "text": "final public void CastLookahead() throws JavaParserException\r\n {\r\n if (jj_2_12(2))\r\n {\r\n consumeToken(LPAREN);\r\n PrimitiveType();\r\n } else if (jj_2_13(0x7fffffff))\r\n {\r\n consumeToken(LPAREN);\r\n Name();\r\n consumeToken(LBRACKET);\r\n consumeToken(RBRACKET);\r\n } else\r\n switch ((tokenType == -1) ? getToken() : tokenType)\r\n {\r\n case LPAREN:\r\n consumeToken(LPAREN);\r\n Name();\r\n consumeToken(RPAREN);\r\n switch ((tokenType == -1) ? getToken() : tokenType)\r\n {\r\n case TILDE:\r\n consumeToken(TILDE);\r\n break;\r\n case BANG:\r\n consumeToken(BANG);\r\n break;\r\n case LPAREN:\r\n consumeToken(LPAREN);\r\n break;\r\n case IDENTIFIER:\r\n consumeToken(IDENTIFIER);\r\n break;\r\n case THIS:\r\n consumeToken(THIS);\r\n break;\r\n case SUPER:\r\n consumeToken(SUPER);\r\n break;\r\n case NEW:\r\n consumeToken(NEW);\r\n break;\r\n case FALSE:\r\n case NULL:\r\n case TRUE:\r\n case INTEGER_LITERAL:\r\n case FLOATING_POINT_LITERAL:\r\n case CHARACTER_LITERAL:\r\n case STRING_LITERAL:\r\n Literal();\r\n break;\r\n default:\r\n jj_la1[67] = jj_gen;\r\n consumeToken(-1);\r\n throw new JavaParserException();\r\n }\r\n break;\r\n default:\r\n jj_la1[68] = jj_gen;\r\n consumeToken(-1);\r\n throw new JavaParserException();\r\n }\r\n }", "title": "" }, { "docid": "9409337a89acc2eb9bd3ab31b6a3c976", "score": "0.46694168", "text": "public void testOperatorGrammar() {\n\t\ttestParse(\"1 + 2 + 3\",\n\t\t\t\t \"(begin (+ (+ (number 1) (number 2)) (number 3)))\");\n\t\ttestParse(\"a * b!3 + c < d / e - f\",\n\t\t \"(begin (< (+ (* (symbol a) (! (symbol b) (number 3))) (symbol c)) (- (/ (symbol d) (symbol e)) (symbol f)))) \");\n\t testParse(\"+(1,2)\",\n\t \t\t \"(begin (apply (symbol +) (table (number 1) (number 2))))\");\n\t testParse(\"a.+(2)\",\n\t \"(begin (send (symbol a) (message (apply (symbol +) (table (number 2))))))\");\n\t testParse(\"+.m(1)\",\n \"(begin (send (symbol +) (message (apply (symbol m) (table (number 1))))))\");\n\t testParse(\"+.&m\",\n \"(begin (select (symbol +) (symbol m)))\");\n\t testParse(\"m.&+\",\n \"(begin (select (symbol m) (symbol +)))\");\n\t testParse(\"-1\",\n \"(begin (apply (symbol -) (table (number 1))))\");\n\t testParse(\"-t[5]\",\n \"(begin (apply (symbol -) (table (table-get (symbol t) (number 5)))))\");\n\t testParse(\"-5 + a\",\n \"(begin (+ (apply (symbol -) (table (number 5))) (symbol a)))\");\n\t testParse(\"/\",\n\t \"(begin (symbol /))\");\n\t testParse(\"/.at\",\n\t \t\t \"(begin (send (symbol /) (field (symbol at))))\");\n\t \ttestParse(\"~.test\",\n\t \t\t \"(begin (send (symbol ~) (field (symbol test))))\");\n\t}", "title": "" }, { "docid": "ba95a1dbaced5c7993f48782e2a2bbc6", "score": "0.46680108", "text": "@Override\n\tpublic void visit(MetaConstraintPEG n) {\n\n\t}", "title": "" }, { "docid": "a6002bfee660c7ea77c2d2b352a8e086", "score": "0.46479428", "text": "public final String atom() throws RecognitionException {\n String type = null;\n\n CommonTree ID20=null;\n String funcCall21 = null;\n\n\n try {\n // /home/malagan/Programming/workspace/Wordy/src/WordySemantic.g:526:3: ( ID | STRING | funcCall )\n int alt18=3;\n switch ( input.LA(1) ) {\n case ID:\n {\n alt18=1;\n }\n break;\n case STRING:\n {\n alt18=2;\n }\n break;\n case CALL:\n {\n alt18=3;\n }\n break;\n default:\n if (state.backtracking>0) {state.failed=true; return type;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 18, 0, input);\n\n throw nvae;\n }\n\n switch (alt18) {\n case 1 :\n // /home/malagan/Programming/workspace/Wordy/src/WordySemantic.g:527:3: ID\n {\n ID20=(CommonTree)match(input,ID,FOLLOW_ID_in_atom1785); if (state.failed) return type;\n if ( state.backtracking==0 ) {\n\n VariableScope scope = varHandler.getNearestScopeWithVar((ID20!=null?ID20.getText():null));\n if (scope == null) {\n \tTool.error(this, \"name \" + (ID20!=null?ID20.getText():null) + \" cannot be resolved to a variable\",\n \t\t\tID20);\n \ttype = \"V\";\n \n } else {\n \tscope.get((ID20!=null?ID20.getText():null)).addLineUses((ID20!=null?ID20.getLine():0));\n \ttype = scope.get((ID20!=null?ID20.getText():null)).getType();\n }\n \n }\n\n }\n break;\n case 2 :\n // /home/malagan/Programming/workspace/Wordy/src/WordySemantic.g:540:5: STRING\n {\n match(input,STRING,FOLLOW_STRING_in_atom1798); if (state.failed) return type;\n if ( state.backtracking==0 ) {\n\n type = \"Ljava/lang/String;\";\n \n }\n\n }\n break;\n case 3 :\n // /home/malagan/Programming/workspace/Wordy/src/WordySemantic.g:544:5: funcCall\n {\n pushFollow(FOLLOW_funcCall_in_atom1817);\n funcCall21=funcCall();\n\n state._fsp--;\n if (state.failed) return type;\n if ( state.backtracking==0 ) {\n\n type = funcCall21;\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 return type;\n }", "title": "" }, { "docid": "76712503f3bfe11c33e1ed732b9370f8", "score": "0.46476313", "text": "@Override\n\tpublic void visit(MetaAnyPEG n) {\n\n\t}", "title": "" }, { "docid": "e6f2ee5153721fbafd1341a35f016c1e", "score": "0.4634148", "text": "public interface FormatParser<Model> extends Parser<String, Model> {\n}", "title": "" }, { "docid": "d1f1a90d0eb061de16826f75dec2b56b", "score": "0.46326575", "text": "private int yyr26() {\n { yyrv = new Tail(((Expression)yysv[yysp-1]));}\n yysv[yysp-=2] = yyrv;\n return yypexpr();\n }", "title": "" }, { "docid": "f7cd080adeb51e6ffb629443be97e8c4", "score": "0.46298385", "text": "@Test(timeout = 4000)\n public void test19() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"phOWV+%lJZig'8\");\n xPathLexer0.or();\n Token token0 = xPathLexer0.identifier();\n assertEquals(15, token0.getTokenType());\n assertEquals(\"phOWV\", token0.getTokenText());\n \n xPathLexer0.or();\n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"+\", token1.getTokenText());\n assertEquals(5, token1.getTokenType());\n }", "title": "" }, { "docid": "d336a113b63ff1cecaaa02c5d2ef37de", "score": "0.4627187", "text": "public interface AstDeclarationStatement extends AstStatement, AstExternalUnit {\r\n\tpublic AstDeclaration get_declaration();\r\n\r\n\tpublic AstPunctuator get_semicolon();\r\n}", "title": "" }, { "docid": "3ef691b88b6defdf908fbde5c54f2b19", "score": "0.46259755", "text": "public interface WindParserConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int SINGLE_LINE_COMMENT = 8;\n /** RegularExpression Id. */\n int MULTI_LINE_COMMENT = 9;\n /** RegularExpression Id. */\n int CIRCLE = 11;\n /** RegularExpression Id. */\n int BOX = 12;\n /** RegularExpression Id. */\n int STRAIGHT = 13;\n /** RegularExpression Id. */\n int CURVE = 14;\n /** RegularExpression Id. */\n int POINT = 15;\n /** RegularExpression Id. */\n int TORNADO = 16;\n /** RegularExpression Id. */\n int SNAKE = 17;\n /** RegularExpression Id. */\n int HEIGHT = 18;\n /** RegularExpression Id. */\n int SPEED = 19;\n /** RegularExpression Id. */\n int COMMA = 20;\n /** RegularExpression Id. */\n int SEMICOLON = 21;\n /** RegularExpression Id. */\n int PATTERN_DECIMAL = 22;\n /** RegularExpression Id. */\n int LITERAL_NUMBER = 23;\n /** RegularExpression Id. */\n int IDENTIFIER = 24;\n /** RegularExpression Id. */\n int LETTER = 25;\n /** RegularExpression Id. */\n int DIGIT = 26;\n\n /** Lexical state. */\n int DEFAULT = 0;\n /** Lexical state. */\n int IN_SINGLE_LINE_COMMENT = 1;\n /** Lexical state. */\n int IN_MULTI_LINE_COMMENT = 2;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\" \\\"\",\n \"\\\"\\\\f\\\"\",\n \"\\\"\\\\n\\\"\",\n \"\\\"\\\\r\\\"\",\n \"\\\"\\\\t\\\"\",\n \"\\\"//\\\"\",\n \"\\\"/*\\\"\",\n \"<SINGLE_LINE_COMMENT>\",\n \"\\\"*/\\\"\",\n \"<token of kind 10>\",\n \"\\\"circle\\\"\",\n \"\\\"box\\\"\",\n \"\\\"straight\\\"\",\n \"\\\"curve\\\"\",\n \"\\\"point\\\"\",\n \"\\\"tornado\\\"\",\n \"\\\"snake\\\"\",\n \"\\\"height\\\"\",\n \"\\\"knots\\\"\",\n \"\\\",\\\"\",\n \"\\\";\\\"\",\n \"<PATTERN_DECIMAL>\",\n \"<LITERAL_NUMBER>\",\n \"<IDENTIFIER>\",\n \"<LETTER>\",\n \"<DIGIT>\",\n };\n\n}", "title": "" }, { "docid": "374548b6cc154f753056803cb50da14a", "score": "0.46242446", "text": "@Test public void testQuotedTriple_11() { parseBadNoLift(\"(qtriple :s)\"); }", "title": "" }, { "docid": "f0a73e28526f7287e703a2885d983ac5", "score": "0.4618542", "text": "private Token match(Kind kind) throws SyntaxException {\r\n\t\tif (t.isKind(kind)) {\r\n\t\t\treturn consume();\r\n\t\t}\r\n\t\tthrow new SyntaxException(\"saw \" + t.kind + \"expected \" + kind);\r\n\t}", "title": "" }, { "docid": "046e3f29f1a548761f4375fe37425666", "score": "0.46185014", "text": "final public Modifier moddef() throws ParseException {\n int vis=2,grade=4,state=2,fin=0;\nToken type=new Token();\nString comment=\"\";\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case PUBLIC:\n case PRIVATE:\n case PROTECTED:\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case PUBLIC:\n type = jj_consume_token(PUBLIC);\n vis=1;\n break;\n case PROTECTED:\n type = jj_consume_token(PROTECTED);\n vis=0;\n break;\n case PRIVATE:\n type = jj_consume_token(PRIVATE);\n vis=-1;\n break;\n default:\n jj_la1[10] = jj_gen;\n jj_consume_token(-1);\n throw new ParseException();\n }\n break;\n default:\n jj_la1[11] = jj_gen;\n ;\n }\n if(type.specialToken!=null)\n comment=type.specialToken+\"\";\n label_4:\n while (true) {\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case FINAL:\n case STATIC:\n case ABSTRACT:\n ;\n break;\n default:\n jj_la1[12] = jj_gen;\n break label_4;\n }\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case ABSTRACT:\n type = jj_consume_token(ABSTRACT);\n state=1;\n if(type.specialToken!=null)\n comment=type.specialToken+\"\";\n break;\n case STATIC:\n type = jj_consume_token(STATIC);\n state=-1;\n if(type.specialToken!=null)\n comment=type.specialToken+\"\";\n break;\n case FINAL:\n type = jj_consume_token(FINAL);\n fin=1;\n if(type.specialToken!=null)\n comment=type.specialToken+\"\";\n break;\n default:\n jj_la1[13] = jj_gen;\n jj_consume_token(-1);\n throw new ParseException();\n }\n }\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case TRANSIENT:\n case VOLATILE:\n case SYNCHRONIZED:\n case NATIVE:\n case STRICTFP:\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case TRANSIENT:\n type = jj_consume_token(TRANSIENT);\n grade=-1;\n break;\n case VOLATILE:\n type = jj_consume_token(VOLATILE);\n grade=0;\n break;\n case SYNCHRONIZED:\n type = jj_consume_token(SYNCHRONIZED);\n grade=1;\n break;\n case NATIVE:\n type = jj_consume_token(NATIVE);\n grade=2;\n break;\n case STRICTFP:\n type = jj_consume_token(STRICTFP);\n grade=3;\n break;\n default:\n jj_la1[14] = jj_gen;\n jj_consume_token(-1);\n throw new ParseException();\n }\n break;\n default:\n jj_la1[15] = jj_gen;\n ;\n }\n if(type.specialToken!=null)\n comment=type.specialToken+\"\";\n {if (true) return new Modifier(vis,grade,state,fin,comment);}\n throw new Error(\"Missing return statement in function\");\n }", "title": "" }, { "docid": "2bdbb8e89c1c151fc01dbe10110572c4", "score": "0.4616311", "text": "public static void main(String[] args) throws IOException {\n\t\tANTLRInputStream input = new ANTLRInputStream(\r\n\t\t\t\t \"struct location{int x;int y;};int main()\"\r\n\t\t\t\t+ \"{int snake_length=1;location snake[10];location food;\"\r\n\t\t\t\t+ \"int u=0;char d='L';init_game(snake);while(u!=1)\"\r\n\t\t\t\t+ \"{d=handle_input();u=update(snake,food,d,snake_length);if(u==2){\"\r\n\t\t\t\t+ \"food=make_new_food(snake);snake_length=snake_length+1;}\"\r\n\t\t\t\t+ \"if(snake_length==10){u=1;}}return 0;}\"\t\t\t\t \r\n\t\t\t\t+ \"int update(location snake[],location food,char direction,int snake_length)\" \t\t\t\t\r\n\t\t\t\t+ \"{int i=0;move_snake(snake,direction);\"\r\n\t\t\t\t+ \"while(i<snake_length){if(snake[i].x==food.x&&snake[i].y==food.y)\"\r\n\t\t\t\t+ \"{add_snake_part(snake,direction);}}return 0;}\"\r\n\t\t\t\t\r\n\t\t\t\t);\t\t\r\n\t\t\r\n\t\tHelloLexer lexer = new HelloLexer(input);\r\n\t\tCommonTokenStream tokens = new CommonTokenStream(lexer);\r\n\t\tHelloParser parser = new HelloParser(tokens);\r\n\t\tParseTree tree = parser.p(); // begin parsing at 'p'\r\n\t\tSystem.out.println(tree.toStringTree()); \r\n\r\n\t}", "title": "" }, { "docid": "8a1eedb5a30fa7cbb246829919119ae8", "score": "0.46152112", "text": "void parse() throws SyntaxException {\r\n\t\tprogram();\r\n\t\tmatchEOF();\r\n\t\treturn;\r\n\t}", "title": "" }, { "docid": "06948bc4971f97d9e60464e08d656eec", "score": "0.46038598", "text": "private int yyr18() {\n { yyrv = new LetInEnd(((Variable)yysv[yysp-6]),((Expression)yysv[yysp-4]),((Expression)yysv[yysp-2])); }\n yysv[yysp-=7] = yyrv;\n return yypexpr();\n }", "title": "" }, { "docid": "24deb2ab90361ab03e70378a624a72ed", "score": "0.460333", "text": "public static void main(String[] args) {\r\n\t\r\n\tParser p = new Repetition(new Word());\r\n\tVector v = new Vector();\r\n\tString s = \"41 42 43\";\r\n\tv.addElement(new TokenAssembly(s));\r\n\tSystem.out.println(p.match(v));\r\n}", "title": "" }, { "docid": "8ee2b971ddb17f63f1016c7dd6b89a20", "score": "0.45972475", "text": "public final ANTLRv3Parser.rule_return rule() throws RecognitionException {\n\t\trule_stack.push(new rule_scope());\n\t\tANTLRv3Parser.rule_return retval = new ANTLRv3Parser.rule_return();\n\t\tretval.start = input.LT(1);\n\n\t\tCommonTree root_0 = null;\n\n\t\tToken modifier=null;\n\t\tToken arg=null;\n\t\tToken rt=null;\n\t\tToken DOC_COMMENT39=null;\n\t\tToken char_literal41=null;\n\t\tToken string_literal42=null;\n\t\tToken char_literal47=null;\n\t\tToken char_literal49=null;\n\t\tParserRuleReturnScope id40 =null;\n\t\tParserRuleReturnScope throwsSpec43 =null;\n\t\tParserRuleReturnScope optionsSpec44 =null;\n\t\tParserRuleReturnScope ruleScopeSpec45 =null;\n\t\tParserRuleReturnScope ruleAction46 =null;\n\t\tParserRuleReturnScope altList48 =null;\n\t\tParserRuleReturnScope exceptionGroup50 =null;\n\n\t\tCommonTree modifier_tree=null;\n\t\tCommonTree arg_tree=null;\n\t\tCommonTree rt_tree=null;\n\t\tCommonTree DOC_COMMENT39_tree=null;\n\t\tCommonTree char_literal41_tree=null;\n\t\tCommonTree string_literal42_tree=null;\n\t\tCommonTree char_literal47_tree=null;\n\t\tCommonTree char_literal49_tree=null;\n\t\tRewriteRuleTokenStream stream_88=new RewriteRuleTokenStream(adaptor,\"token 88\");\n\t\tRewriteRuleTokenStream stream_RET=new RewriteRuleTokenStream(adaptor,\"token RET\");\n\t\tRewriteRuleTokenStream stream_BANG=new RewriteRuleTokenStream(adaptor,\"token BANG\");\n\t\tRewriteRuleTokenStream stream_ARG_ACTION=new RewriteRuleTokenStream(adaptor,\"token ARG_ACTION\");\n\t\tRewriteRuleTokenStream stream_FRAGMENT=new RewriteRuleTokenStream(adaptor,\"token FRAGMENT\");\n\t\tRewriteRuleTokenStream stream_DOC_COMMENT=new RewriteRuleTokenStream(adaptor,\"token DOC_COMMENT\");\n\t\tRewriteRuleTokenStream stream_74=new RewriteRuleTokenStream(adaptor,\"token 74\");\n\t\tRewriteRuleTokenStream stream_86=new RewriteRuleTokenStream(adaptor,\"token 86\");\n\t\tRewriteRuleTokenStream stream_76=new RewriteRuleTokenStream(adaptor,\"token 76\");\n\t\tRewriteRuleTokenStream stream_87=new RewriteRuleTokenStream(adaptor,\"token 87\");\n\t\tRewriteRuleSubtreeStream stream_ruleAction=new RewriteRuleSubtreeStream(adaptor,\"rule ruleAction\");\n\t\tRewriteRuleSubtreeStream stream_throwsSpec=new RewriteRuleSubtreeStream(adaptor,\"rule throwsSpec\");\n\t\tRewriteRuleSubtreeStream stream_optionsSpec=new RewriteRuleSubtreeStream(adaptor,\"rule optionsSpec\");\n\t\tRewriteRuleSubtreeStream stream_altList=new RewriteRuleSubtreeStream(adaptor,\"rule altList\");\n\t\tRewriteRuleSubtreeStream stream_id=new RewriteRuleSubtreeStream(adaptor,\"rule id\");\n\t\tRewriteRuleSubtreeStream stream_ruleScopeSpec=new RewriteRuleSubtreeStream(adaptor,\"rule ruleScopeSpec\");\n\t\tRewriteRuleSubtreeStream stream_exceptionGroup=new RewriteRuleSubtreeStream(adaptor,\"rule exceptionGroup\");\n\n\t\ttry {\n\t\t\t// org/antlr/grammar/v3/ANTLRv3.g:158:2: ( ( DOC_COMMENT )? (modifier= ( 'protected' | 'public' | 'private' | 'fragment' ) )? id ( '!' )? (arg= ARG_ACTION )? ( 'returns' rt= ARG_ACTION )? ( throwsSpec )? ( optionsSpec )? ( ruleScopeSpec )? ( ruleAction )* ':' altList ';' ( exceptionGroup )? -> ^( RULE id ( ^( ARG[$arg] $arg) )? ( ^( 'returns' $rt) )? ( throwsSpec )? ( optionsSpec )? ( ruleScopeSpec )? ( ruleAction )* altList ( exceptionGroup )? EOR[\\\"EOR\\\"] ) )\n\t\t\t// org/antlr/grammar/v3/ANTLRv3.g:158:4: ( DOC_COMMENT )? (modifier= ( 'protected' | 'public' | 'private' | 'fragment' ) )? id ( '!' )? (arg= ARG_ACTION )? ( 'returns' rt= ARG_ACTION )? ( throwsSpec )? ( optionsSpec )? ( ruleScopeSpec )? ( ruleAction )* ':' altList ';' ( exceptionGroup )?\n\t\t\t{\n\t\t\t// org/antlr/grammar/v3/ANTLRv3.g:158:4: ( DOC_COMMENT )?\n\t\t\tint alt15=2;\n\t\t\tint LA15_0 = input.LA(1);\n\t\t\tif ( (LA15_0==DOC_COMMENT) ) {\n\t\t\t\talt15=1;\n\t\t\t}\n\t\t\tswitch (alt15) {\n\t\t\t\tcase 1 :\n\t\t\t\t\t// org/antlr/grammar/v3/ANTLRv3.g:158:4: DOC_COMMENT\n\t\t\t\t\t{\n\t\t\t\t\tDOC_COMMENT39=(Token)match(input,DOC_COMMENT,FOLLOW_DOC_COMMENT_in_rule876); if (state.failed) return retval; \n\t\t\t\t\tif ( state.backtracking==0 ) stream_DOC_COMMENT.add(DOC_COMMENT39);\n\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\n\t\t\t}\n\n\t\t\t// org/antlr/grammar/v3/ANTLRv3.g:159:3: (modifier= ( 'protected' | 'public' | 'private' | 'fragment' ) )?\n\t\t\tint alt17=2;\n\t\t\tint LA17_0 = input.LA(1);\n\t\t\tif ( (LA17_0==FRAGMENT||(LA17_0 >= 86 && LA17_0 <= 88)) ) {\n\t\t\t\talt17=1;\n\t\t\t}\n\t\t\tswitch (alt17) {\n\t\t\t\tcase 1 :\n\t\t\t\t\t// org/antlr/grammar/v3/ANTLRv3.g:159:5: modifier= ( 'protected' | 'public' | 'private' | 'fragment' )\n\t\t\t\t\t{\n\t\t\t\t\t// org/antlr/grammar/v3/ANTLRv3.g:159:14: ( 'protected' | 'public' | 'private' | 'fragment' )\n\t\t\t\t\tint alt16=4;\n\t\t\t\t\tswitch ( input.LA(1) ) {\n\t\t\t\t\tcase 87:\n\t\t\t\t\t\t{\n\t\t\t\t\t\talt16=1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 88:\n\t\t\t\t\t\t{\n\t\t\t\t\t\talt16=2;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 86:\n\t\t\t\t\t\t{\n\t\t\t\t\t\talt16=3;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase FRAGMENT:\n\t\t\t\t\t\t{\n\t\t\t\t\t\talt16=4;\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\tif (state.backtracking>0) {state.failed=true; return retval;}\n\t\t\t\t\t\tNoViableAltException nvae =\n\t\t\t\t\t\t\tnew NoViableAltException(\"\", 16, 0, input);\n\t\t\t\t\t\tthrow nvae;\n\t\t\t\t\t}\n\t\t\t\t\tswitch (alt16) {\n\t\t\t\t\t\tcase 1 :\n\t\t\t\t\t\t\t// org/antlr/grammar/v3/ANTLRv3.g:159:15: 'protected'\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\tmodifier=(Token)match(input,87,FOLLOW_87_in_rule886); if (state.failed) return retval; \n\t\t\t\t\t\t\tif ( state.backtracking==0 ) stream_87.add(modifier);\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 2 :\n\t\t\t\t\t\t\t// org/antlr/grammar/v3/ANTLRv3.g:159:27: 'public'\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\tmodifier=(Token)match(input,88,FOLLOW_88_in_rule888); if (state.failed) return retval; \n\t\t\t\t\t\t\tif ( state.backtracking==0 ) stream_88.add(modifier);\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 3 :\n\t\t\t\t\t\t\t// org/antlr/grammar/v3/ANTLRv3.g:159:36: 'private'\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\tmodifier=(Token)match(input,86,FOLLOW_86_in_rule890); if (state.failed) return retval; \n\t\t\t\t\t\t\tif ( state.backtracking==0 ) stream_86.add(modifier);\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 4 :\n\t\t\t\t\t\t\t// org/antlr/grammar/v3/ANTLRv3.g:159:46: 'fragment'\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\tmodifier=(Token)match(input,FRAGMENT,FOLLOW_FRAGMENT_in_rule892); if (state.failed) return retval; \n\t\t\t\t\t\t\tif ( state.backtracking==0 ) stream_FRAGMENT.add(modifier);\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\n\t\t\t}\n\n\t\t\tpushFollow(FOLLOW_id_in_rule900);\n\t\t\tid40=id();\n\t\t\tstate._fsp--;\n\t\t\tif (state.failed) return retval;\n\t\t\tif ( state.backtracking==0 ) stream_id.add(id40.getTree());\n\t\t\tif ( state.backtracking==0 ) {rule_stack.peek().name = (id40!=null?input.toString(id40.start,id40.stop):null);}\n\t\t\t// org/antlr/grammar/v3/ANTLRv3.g:161:3: ( '!' )?\n\t\t\tint alt18=2;\n\t\t\tint LA18_0 = input.LA(1);\n\t\t\tif ( (LA18_0==BANG) ) {\n\t\t\t\talt18=1;\n\t\t\t}\n\t\t\tswitch (alt18) {\n\t\t\t\tcase 1 :\n\t\t\t\t\t// org/antlr/grammar/v3/ANTLRv3.g:161:3: '!'\n\t\t\t\t\t{\n\t\t\t\t\tchar_literal41=(Token)match(input,BANG,FOLLOW_BANG_in_rule906); if (state.failed) return retval; \n\t\t\t\t\tif ( state.backtracking==0 ) stream_BANG.add(char_literal41);\n\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\n\t\t\t}\n\n\t\t\t// org/antlr/grammar/v3/ANTLRv3.g:162:3: (arg= ARG_ACTION )?\n\t\t\tint alt19=2;\n\t\t\tint LA19_0 = input.LA(1);\n\t\t\tif ( (LA19_0==ARG_ACTION) ) {\n\t\t\t\talt19=1;\n\t\t\t}\n\t\t\tswitch (alt19) {\n\t\t\t\tcase 1 :\n\t\t\t\t\t// org/antlr/grammar/v3/ANTLRv3.g:162:5: arg= ARG_ACTION\n\t\t\t\t\t{\n\t\t\t\t\targ=(Token)match(input,ARG_ACTION,FOLLOW_ARG_ACTION_in_rule915); if (state.failed) return retval; \n\t\t\t\t\tif ( state.backtracking==0 ) stream_ARG_ACTION.add(arg);\n\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\n\t\t\t}\n\n\t\t\t// org/antlr/grammar/v3/ANTLRv3.g:163:3: ( 'returns' rt= ARG_ACTION )?\n\t\t\tint alt20=2;\n\t\t\tint LA20_0 = input.LA(1);\n\t\t\tif ( (LA20_0==RET) ) {\n\t\t\t\talt20=1;\n\t\t\t}\n\t\t\tswitch (alt20) {\n\t\t\t\tcase 1 :\n\t\t\t\t\t// org/antlr/grammar/v3/ANTLRv3.g:163:5: 'returns' rt= ARG_ACTION\n\t\t\t\t\t{\n\t\t\t\t\tstring_literal42=(Token)match(input,RET,FOLLOW_RET_in_rule924); if (state.failed) return retval; \n\t\t\t\t\tif ( state.backtracking==0 ) stream_RET.add(string_literal42);\n\n\t\t\t\t\trt=(Token)match(input,ARG_ACTION,FOLLOW_ARG_ACTION_in_rule928); if (state.failed) return retval; \n\t\t\t\t\tif ( state.backtracking==0 ) stream_ARG_ACTION.add(rt);\n\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\n\t\t\t}\n\n\t\t\t// org/antlr/grammar/v3/ANTLRv3.g:164:3: ( throwsSpec )?\n\t\t\tint alt21=2;\n\t\t\tint LA21_0 = input.LA(1);\n\t\t\tif ( (LA21_0==89) ) {\n\t\t\t\talt21=1;\n\t\t\t}\n\t\t\tswitch (alt21) {\n\t\t\t\tcase 1 :\n\t\t\t\t\t// org/antlr/grammar/v3/ANTLRv3.g:164:3: throwsSpec\n\t\t\t\t\t{\n\t\t\t\t\tpushFollow(FOLLOW_throwsSpec_in_rule936);\n\t\t\t\t\tthrowsSpec43=throwsSpec();\n\t\t\t\t\tstate._fsp--;\n\t\t\t\t\tif (state.failed) return retval;\n\t\t\t\t\tif ( state.backtracking==0 ) stream_throwsSpec.add(throwsSpec43.getTree());\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\n\t\t\t}\n\n\t\t\t// org/antlr/grammar/v3/ANTLRv3.g:164:15: ( optionsSpec )?\n\t\t\tint alt22=2;\n\t\t\tint LA22_0 = input.LA(1);\n\t\t\tif ( (LA22_0==OPTIONS) ) {\n\t\t\t\talt22=1;\n\t\t\t}\n\t\t\tswitch (alt22) {\n\t\t\t\tcase 1 :\n\t\t\t\t\t// org/antlr/grammar/v3/ANTLRv3.g:164:15: optionsSpec\n\t\t\t\t\t{\n\t\t\t\t\tpushFollow(FOLLOW_optionsSpec_in_rule939);\n\t\t\t\t\toptionsSpec44=optionsSpec();\n\t\t\t\t\tstate._fsp--;\n\t\t\t\t\tif (state.failed) return retval;\n\t\t\t\t\tif ( state.backtracking==0 ) stream_optionsSpec.add(optionsSpec44.getTree());\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\n\t\t\t}\n\n\t\t\t// org/antlr/grammar/v3/ANTLRv3.g:164:28: ( ruleScopeSpec )?\n\t\t\tint alt23=2;\n\t\t\tint LA23_0 = input.LA(1);\n\t\t\tif ( (LA23_0==SCOPE) ) {\n\t\t\t\talt23=1;\n\t\t\t}\n\t\t\tswitch (alt23) {\n\t\t\t\tcase 1 :\n\t\t\t\t\t// org/antlr/grammar/v3/ANTLRv3.g:164:28: ruleScopeSpec\n\t\t\t\t\t{\n\t\t\t\t\tpushFollow(FOLLOW_ruleScopeSpec_in_rule942);\n\t\t\t\t\truleScopeSpec45=ruleScopeSpec();\n\t\t\t\t\tstate._fsp--;\n\t\t\t\t\tif (state.failed) return retval;\n\t\t\t\t\tif ( state.backtracking==0 ) stream_ruleScopeSpec.add(ruleScopeSpec45.getTree());\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\n\t\t\t}\n\n\t\t\t// org/antlr/grammar/v3/ANTLRv3.g:164:43: ( ruleAction )*\n\t\t\tloop24:\n\t\t\twhile (true) {\n\t\t\t\tint alt24=2;\n\t\t\t\tint LA24_0 = input.LA(1);\n\t\t\t\tif ( (LA24_0==AT) ) {\n\t\t\t\t\talt24=1;\n\t\t\t\t}\n\n\t\t\t\tswitch (alt24) {\n\t\t\t\tcase 1 :\n\t\t\t\t\t// org/antlr/grammar/v3/ANTLRv3.g:164:43: ruleAction\n\t\t\t\t\t{\n\t\t\t\t\tpushFollow(FOLLOW_ruleAction_in_rule945);\n\t\t\t\t\truleAction46=ruleAction();\n\t\t\t\t\tstate._fsp--;\n\t\t\t\t\tif (state.failed) return retval;\n\t\t\t\t\tif ( state.backtracking==0 ) stream_ruleAction.add(ruleAction46.getTree());\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\n\t\t\t\tdefault :\n\t\t\t\t\tbreak loop24;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tchar_literal47=(Token)match(input,74,FOLLOW_74_in_rule950); if (state.failed) return retval; \n\t\t\tif ( state.backtracking==0 ) stream_74.add(char_literal47);\n\n\t\t\tpushFollow(FOLLOW_altList_in_rule952);\n\t\t\taltList48=altList();\n\t\t\tstate._fsp--;\n\t\t\tif (state.failed) return retval;\n\t\t\tif ( state.backtracking==0 ) stream_altList.add(altList48.getTree());\n\t\t\tchar_literal49=(Token)match(input,76,FOLLOW_76_in_rule954); if (state.failed) return retval; \n\t\t\tif ( state.backtracking==0 ) stream_76.add(char_literal49);\n\n\t\t\t// org/antlr/grammar/v3/ANTLRv3.g:166:3: ( exceptionGroup )?\n\t\t\tint alt25=2;\n\t\t\tint LA25_0 = input.LA(1);\n\t\t\tif ( ((LA25_0 >= 81 && LA25_0 <= 82)) ) {\n\t\t\t\talt25=1;\n\t\t\t}\n\t\t\tswitch (alt25) {\n\t\t\t\tcase 1 :\n\t\t\t\t\t// org/antlr/grammar/v3/ANTLRv3.g:166:3: exceptionGroup\n\t\t\t\t\t{\n\t\t\t\t\tpushFollow(FOLLOW_exceptionGroup_in_rule958);\n\t\t\t\t\texceptionGroup50=exceptionGroup();\n\t\t\t\t\tstate._fsp--;\n\t\t\t\t\tif (state.failed) return retval;\n\t\t\t\t\tif ( state.backtracking==0 ) stream_exceptionGroup.add(exceptionGroup50.getTree());\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\n\t\t\t}\n\n\t\t\t// AST REWRITE\n\t\t\t// elements: arg, rt, throwsSpec, exceptionGroup, ruleAction, optionsSpec, ruleScopeSpec, altList, id, RET\n\t\t\t// token labels: rt, arg\n\t\t\t// rule labels: retval\n\t\t\t// token list labels: \n\t\t\t// rule list labels: \n\t\t\t// wildcard labels: \n\t\t\tif ( state.backtracking==0 ) {\n\t\t\tretval.tree = root_0;\n\t\t\tRewriteRuleTokenStream stream_rt=new RewriteRuleTokenStream(adaptor,\"token rt\",rt);\n\t\t\tRewriteRuleTokenStream stream_arg=new RewriteRuleTokenStream(adaptor,\"token arg\",arg);\n\t\t\tRewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.getTree():null);\n\n\t\t\troot_0 = (CommonTree)adaptor.nil();\n\t\t\t// 167:6: -> ^( RULE id ( ^( ARG[$arg] $arg) )? ( ^( 'returns' $rt) )? ( throwsSpec )? ( optionsSpec )? ( ruleScopeSpec )? ( ruleAction )* altList ( exceptionGroup )? EOR[\\\"EOR\\\"] )\n\t\t\t{\n\t\t\t\t// org/antlr/grammar/v3/ANTLRv3.g:167:9: ^( RULE id ( ^( ARG[$arg] $arg) )? ( ^( 'returns' $rt) )? ( throwsSpec )? ( optionsSpec )? ( ruleScopeSpec )? ( ruleAction )* altList ( exceptionGroup )? EOR[\\\"EOR\\\"] )\n\t\t\t\t{\n\t\t\t\tCommonTree root_1 = (CommonTree)adaptor.nil();\n\t\t\t\troot_1 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(RULE, \"RULE\"), root_1);\n\t\t\t\tadaptor.addChild(root_1, stream_id.nextTree());\n\t\t\t\tadaptor.addChild(root_1, modifier!=null?adaptor.create(modifier):null);\n\t\t\t\t// org/antlr/grammar/v3/ANTLRv3.g:167:67: ( ^( ARG[$arg] $arg) )?\n\t\t\t\tif ( stream_arg.hasNext() ) {\n\t\t\t\t\t// org/antlr/grammar/v3/ANTLRv3.g:167:67: ^( ARG[$arg] $arg)\n\t\t\t\t\t{\n\t\t\t\t\tCommonTree root_2 = (CommonTree)adaptor.nil();\n\t\t\t\t\troot_2 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(ARG, arg), root_2);\n\t\t\t\t\tadaptor.addChild(root_2, stream_arg.nextNode());\n\t\t\t\t\tadaptor.addChild(root_1, root_2);\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\tstream_arg.reset();\n\n\t\t\t\t// org/antlr/grammar/v3/ANTLRv3.g:167:86: ( ^( 'returns' $rt) )?\n\t\t\t\tif ( stream_rt.hasNext()||stream_RET.hasNext() ) {\n\t\t\t\t\t// org/antlr/grammar/v3/ANTLRv3.g:167:86: ^( 'returns' $rt)\n\t\t\t\t\t{\n\t\t\t\t\tCommonTree root_2 = (CommonTree)adaptor.nil();\n\t\t\t\t\troot_2 = (CommonTree)adaptor.becomeRoot(stream_RET.nextNode(), root_2);\n\t\t\t\t\tadaptor.addChild(root_2, stream_rt.nextNode());\n\t\t\t\t\tadaptor.addChild(root_1, root_2);\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\tstream_rt.reset();\n\t\t\t\tstream_RET.reset();\n\n\t\t\t\t// org/antlr/grammar/v3/ANTLRv3.g:168:9: ( throwsSpec )?\n\t\t\t\tif ( stream_throwsSpec.hasNext() ) {\n\t\t\t\t\tadaptor.addChild(root_1, stream_throwsSpec.nextTree());\n\t\t\t\t}\n\t\t\t\tstream_throwsSpec.reset();\n\n\t\t\t\t// org/antlr/grammar/v3/ANTLRv3.g:168:21: ( optionsSpec )?\n\t\t\t\tif ( stream_optionsSpec.hasNext() ) {\n\t\t\t\t\tadaptor.addChild(root_1, stream_optionsSpec.nextTree());\n\t\t\t\t}\n\t\t\t\tstream_optionsSpec.reset();\n\n\t\t\t\t// org/antlr/grammar/v3/ANTLRv3.g:168:34: ( ruleScopeSpec )?\n\t\t\t\tif ( stream_ruleScopeSpec.hasNext() ) {\n\t\t\t\t\tadaptor.addChild(root_1, stream_ruleScopeSpec.nextTree());\n\t\t\t\t}\n\t\t\t\tstream_ruleScopeSpec.reset();\n\n\t\t\t\t// org/antlr/grammar/v3/ANTLRv3.g:168:49: ( ruleAction )*\n\t\t\t\twhile ( stream_ruleAction.hasNext() ) {\n\t\t\t\t\tadaptor.addChild(root_1, stream_ruleAction.nextTree());\n\t\t\t\t}\n\t\t\t\tstream_ruleAction.reset();\n\n\t\t\t\tadaptor.addChild(root_1, stream_altList.nextTree());\n\t\t\t\t// org/antlr/grammar/v3/ANTLRv3.g:170:9: ( exceptionGroup )?\n\t\t\t\tif ( stream_exceptionGroup.hasNext() ) {\n\t\t\t\t\tadaptor.addChild(root_1, stream_exceptionGroup.nextTree());\n\t\t\t\t}\n\t\t\t\tstream_exceptionGroup.reset();\n\n\t\t\t\tadaptor.addChild(root_1, (CommonTree)adaptor.create(EOR, \"EOR\"));\n\t\t\t\tadaptor.addChild(root_0, root_1);\n\t\t\t\t}\n\n\t\t\t}\n\n\n\t\t\tretval.tree = root_0;\n\t\t\t}\n\n\t\t\t}\n\n\t\t\tretval.stop = input.LT(-1);\n\n\t\t\tif ( state.backtracking==0 ) {\n\t\t\tretval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n\t\t\tadaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n\t\t\t}\n\t\t}\n\t\tcatch (RecognitionException re) {\n\t\t\treportError(re);\n\t\t\trecover(input,re);\n\t\t\tretval.tree = (CommonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n\t\t}\n\t\tfinally {\n\t\t\t// do for sure before leaving\n\t\t\trule_stack.pop();\n\t\t}\n\t\treturn retval;\n\t}", "title": "" }, { "docid": "6d45cbd93a486f2920e35bfbd548fe16", "score": "0.4596956", "text": "protected void runBegin(AST t){}", "title": "" }, { "docid": "4e14b37f9f9e82d9e5200b1fbd7bc62d", "score": "0.45946595", "text": "@Converted(kind = Converted.Kind.AUTO,\n source = \"${LLVM_SRC}/llvm/tools/clang/lib/Parse/ParseStmtAsm.cpp\", line = 340,\n FQN=\"isTypeQualifier\", NM=\"_ZL15isTypeQualifierRKN5clang5TokenE\",\n cmd=\"jclank.sh -java-options=${SPUTNIK}/modules/org.clang.parse/llvmToClangType ${LLVM_SRC}/llvm/tools/clang/lib/Parse/ParseStmtAsm.cpp -nm=_ZL15isTypeQualifierRKN5clang5TokenE\")\n//</editor-fold>\npublic static boolean isTypeQualifier(/*const*/ Token /*&*/ Tok) {\n switch (Tok.getKind()) {\n default:\n return false;\n case tok.TokenKind.kw_const:\n case tok.TokenKind.kw_volatile:\n case tok.TokenKind.kw_restrict:\n case tok.TokenKind.kw___private:\n case tok.TokenKind.kw___local:\n case tok.TokenKind.kw___global:\n case tok.TokenKind.kw___constant:\n case tok.TokenKind.kw___generic:\n case tok.TokenKind.kw___read_only:\n case tok.TokenKind.kw___read_write:\n case tok.TokenKind.kw___write_only:\n // type-qualifier\n return true;\n }\n}", "title": "" }, { "docid": "3028e5fe38bdb8a5ee17d8a65873302c", "score": "0.45916042", "text": "abstract void tok(Token tok);", "title": "" }, { "docid": "645434bed44f681931b0149540f7e0ef", "score": "0.45913306", "text": "public final void mT__21() throws RecognitionException {\n try {\n int _type = T__21;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // ../com.robotoworks.mechanoid.db/src-gen/com/robotoworks/mechanoid/db/parser/antlr/internal/InternalSqliteModel.g:20:7: ( '(' )\n // ../com.robotoworks.mechanoid.db/src-gen/com/robotoworks/mechanoid/db/parser/antlr/internal/InternalSqliteModel.g:20:9: '('\n {\n match('('); \n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "title": "" }, { "docid": "fd292db961d408ee4c772ae63d6c260c", "score": "0.45909753", "text": "private void z(){\n\n if (lookahead == ID){\n addressLabel = label;// getting the first operand string value from the lexical analyzer\n match(ID);\n index();\n }\n else if (lookahead == HASH){//intermediate mode\n match(HASH);\n format +=2;//instruction line format, if format old value is 3 then format new value is 7 which is indicate (format 3 with intermediate) , otherwise (5) -> 9 which is indicate (format 4 with intermediate)\n imm();// imm for immediate\n // index();\n }\n else if(lookahead == AAT){//indirect mode\n match(AAT);\n format +=3;//instruction line format, if format old value is 3 then format new value is 1 which is indicate (format 3 with indirect) , otherwise (5) -> 13 which is indicate (format 4 with indirect)\n indirect();\n // index();\n ///Solving som Errors\n }\n else if (lookahead == EQUAL) {//literal mod\n literal();\n index();\n }\n\n else if (lookahead == CONST){//Constant address label\n constAddressLabel();\n index();\n }\n else errorWithNext(\"syntax error: un unexpected token After \\'\"+tokensWithStrings.get(lookBack)+\"\\' . Expected: ID or HASH or ATT found: \"+tokensWithStrings.get(lookahead));\n }", "title": "" }, { "docid": "12f8eecf030e503fb4b6e47d7c61e92e", "score": "0.45836294", "text": "@Test(timeout = 4000)\n public void test25() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"com.werken.saxpath.Token\");\n Token token0 = xPathLexer0.not();\n assertEquals(23, token0.getTokenType());\n assertEquals(\"c\", token0.getTokenText());\n \n xPathLexer0.or();\n Token token1 = xPathLexer0.leftBracket();\n assertEquals(\"o\", token1.getTokenText());\n assertEquals(3, token1.getTokenType());\n \n xPathLexer0.mod();\n Token token2 = xPathLexer0.notEquals();\n assertEquals(22, token2.getTokenType());\n assertEquals(\"m.\", token2.getTokenText());\n \n Token token3 = xPathLexer0.rightBracket();\n assertEquals(\"w\", token3.getTokenText());\n assertEquals(4, token3.getTokenType());\n \n Token token4 = xPathLexer0.plus();\n assertEquals(\"e\", token4.getTokenText());\n assertEquals(5, token4.getTokenType());\n \n boolean boolean0 = xPathLexer0.isIdentifierStartChar('S');\n assertTrue(boolean0);\n }", "title": "" }, { "docid": "174fea7feddc15293cf7afe428c89473", "score": "0.45824623", "text": "void mo25287a(C8535t tVar, int i) throws ParserException;", "title": "" }, { "docid": "045c51fc1a49df3f0b7c4a5979f65c9a", "score": "0.4580105", "text": "public final void mT__38() throws RecognitionException {\r\n try {\r\n int _type = T__38;\r\n int _channel = DEFAULT_TOKEN_CHANNEL;\r\n // ../org.openmodelica.modelicaml.editor.xtext.modification/src-gen/org/openmodelica/modelicaml/editor/xtext/modification/parser/antlr/internal/InternalModification.g:35:7: ( 'end' )\r\n // ../org.openmodelica.modelicaml.editor.xtext.modification/src-gen/org/openmodelica/modelicaml/editor/xtext/modification/parser/antlr/internal/InternalModification.g:35:9: 'end'\r\n {\r\n match(\"end\"); \r\n\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": "c3a10a9ad140b534f21aa8b718540965", "score": "0.4571782", "text": "public String visit(TypeDeclaration n,ScopeType st)\n {\n\n n.f0.accept(this,null);\n return null;\n }", "title": "" }, { "docid": "b9b0b13f32e2360c3abdf3ee41cd626d", "score": "0.45687625", "text": "interface Token {}", "title": "" }, { "docid": "77da9857b9d010dfd7289ccac65ed8f8", "score": "0.45665407", "text": "public void testAnnotations() {\n\t testParse(\"o.m(1)@x\",\n\t \t\t \"(begin (send (symbol o) (message (apply (symbol m) (table (number1))) (symbol x))))\");\n\t testParse(\"o^m(1)@x\",\n\t\t \"(begin (send (symbol o) (delegate (apply (symbol m) (table (number1))) (symbol x))))\");\n\t testParse(\"o<-m(1)@x\",\n\t\t \"(begin (send (symbol o) (async-message (apply (symbol m) (table (number1))) (symbol x))))\");\n\t testParse(\"o.m(1)@[x,y]\",\n\t\t \"(begin (send (symbol o) (message (apply (symbol m) (table (number1))) (table (symbol x) (symbol y)))))\");\n\t}", "title": "" }, { "docid": "8a716329a3ca32ae67b80aaf39dc427e", "score": "0.45621598", "text": "@Override public Object visitLet(CoolRulesParser.LetContext ctx) {\n int sz= ctx.stmt().size() - 1;\n //System.out.println(sz);\n for(int i = 0; i < sz; ++i) {\n String id = ctx.IDENTIFIER(i).getText();\n System.out.println(\"\\t\\t\" + id + \" = \" + visit(ctx.stmt(i)) + \";\");\n }\n visit(ctx.stmt(sz));\n //System.out.println(ctx.stmt(sz).getText());\n return \"\";\n }", "title": "" }, { "docid": "856d60512e6843e44e0967f419404e7f", "score": "0.45608643", "text": "public final void mIDENTIFIER() throws RecognitionException {\n try {\n int _type = IDENTIFIER;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // H:\\\\PhD\\\\Articles\\\\DoToT\\\\language\\\\DoToT.g:86:2: ( 'my' | 'his' | 'her' | 'our' | 'their' )\n int alt1=5;\n switch ( input.LA(1) ) {\n case 'm':\n {\n alt1=1;\n }\n break;\n case 'h':\n {\n int LA1_2 = input.LA(2);\n\n if ( (LA1_2=='i') ) {\n alt1=2;\n }\n else if ( (LA1_2=='e') ) {\n alt1=3;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 1, 2, input);\n\n throw nvae;\n\n }\n }\n break;\n case 'o':\n {\n alt1=4;\n }\n break;\n case 't':\n {\n alt1=5;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 1, 0, input);\n\n throw nvae;\n\n }\n\n switch (alt1) {\n case 1 :\n // H:\\\\PhD\\\\Articles\\\\DoToT\\\\language\\\\DoToT.g:86:4: 'my'\n {\n match(\"my\"); \n\n\n\n }\n break;\n case 2 :\n // H:\\\\PhD\\\\Articles\\\\DoToT\\\\language\\\\DoToT.g:86:9: 'his'\n {\n match(\"his\"); \n\n\n\n }\n break;\n case 3 :\n // H:\\\\PhD\\\\Articles\\\\DoToT\\\\language\\\\DoToT.g:86:15: 'her'\n {\n match(\"her\"); \n\n\n\n }\n break;\n case 4 :\n // H:\\\\PhD\\\\Articles\\\\DoToT\\\\language\\\\DoToT.g:86:21: 'our'\n {\n match(\"our\"); \n\n\n\n }\n break;\n case 5 :\n // H:\\\\PhD\\\\Articles\\\\DoToT\\\\language\\\\DoToT.g:86:27: 'their'\n {\n match(\"their\"); \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": "9b54693f8587b7ec473e42a9951a08d4", "score": "0.45606157", "text": "public interface Verifier extends Token {\n}", "title": "" }, { "docid": "28bbb5b3e601a163b02854b44937aea9", "score": "0.456039", "text": "private void typeDecl() {\n\t\tthis.obs.add(\"TypeDecl\");\n\t\tthis.obs.decend();\n\t\tthis.obs.add(this.next());\n\t\twhile (this.peak().getType() == TokenType.IDENTIFIER) {\n\t\t\tString identifier = this.matchIdent();\n\t\t\tthis.hardMatch(\"=\");\n\t\t\tType t = this.type();\n\t\t\tif (t instanceof Array) {\n\t\t\t\tif (((Array) t).getLength() == -1) {\n\t\t\t\t\tthrow new ParserException(\"Declaring Array with no length\");\n\t\t\t\t}\n\t\t\t}\n \t\t\tthis.hardMatch(\";\");\n\t\t\taddType(identifier, t);\n\t\t}\n\t\tthis.obs.accend();\n\t}", "title": "" }, { "docid": "3047950c23b736f68e60043554fa2b69", "score": "0.45570126", "text": "public T parse(GrammarContext inputString);", "title": "" }, { "docid": "c1fc4fe46ea87b19a6d1fc9aad5c3056", "score": "0.45567286", "text": "public int lookAhead ()\n {\n return kind;\n }", "title": "" }, { "docid": "265d7f4e75c7542de6a6ef8022bafbf4", "score": "0.4556264", "text": "@Test(timeout = 4000)\n public void test03() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"Cs{l'LLGYY0r#b\");\n char char0 = 'O';\n int int0 = 31;\n xPathLexer0.dots();\n xPathLexer0.consume(31);\n xPathLexer0.dots();\n xPathLexer0.at();\n xPathLexer0.relationalOperator();\n xPathLexer0.plus();\n xPathLexer0.minus();\n xPathLexer0.literal();\n xPathLexer0.isIdentifierChar('O');\n xPathLexer0.mod();\n Token token0 = xPathLexer0.at();\n xPathLexer0.identifier();\n // Undeclared exception!\n try { \n token0.toString();\n fail(\"Expecting exception: StringIndexOutOfBoundsException\");\n \n } catch(StringIndexOutOfBoundsException e) {\n }\n }", "title": "" }, { "docid": "dd3576c44ddc4d4af31c2e62ff9586b1", "score": "0.4555843", "text": "public final void mT__23() throws RecognitionException {\n try {\n int _type = T__23;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // ../eu.cloud4soa.xtext.dsl/src-gen/eu/cloud4soa/xtext/parser/antlr/internal/InternalDsl.g:21:7: ( 'username' )\n // ../eu.cloud4soa.xtext.dsl/src-gen/eu/cloud4soa/xtext/parser/antlr/internal/InternalDsl.g:21:9: 'username'\n {\n match(\"username\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "title": "" }, { "docid": "3ff1d898e9d6c624c840d50e9711322e", "score": "0.4552591", "text": "@Override\n\tpublic void visit(MetaRangePEG n) {\n\n\t}", "title": "" }, { "docid": "3534d67cb532d66b2b9fbfd0bd1b8c2b", "score": "0.4550393", "text": "private Token matchEOF() throws SyntaxException {\r\n\t\tif (t.isKind(EOF)) {\r\n\t\t\treturn t;\r\n\t\t}\r\n\t\tthrow new SyntaxException(\"expected EOF .. text='\"+t.getText()+\"'.. (pos= \" + t.pos+\") .. \"+ t.getLinePos() );\r\n\t}", "title": "" }, { "docid": "4d99dfd27bc508567463874cc8cbe887", "score": "0.4534079", "text": "private int yyr25() {\n { yyrv = new Head(((Expression)yysv[yysp-1])); }\n yysv[yysp-=2] = yyrv;\n return yypexpr();\n }", "title": "" }, { "docid": "a5f4fb7487abfc90df05fd9dfe161c2f", "score": "0.4527933", "text": "public interface Lexer {\n /** Token returned by the scanner to signal the end of its input. */\n public static final int EOF = 0;\n\n/* Tokens. */\n /** Token number,to be returned by the scanner. */\n static final int NUMBER = 258;\n /** Token number,to be returned by the scanner. */\n static final int BOOLEAN = 259;\n /** Token number,to be returned by the scanner. */\n static final int MULT = 260;\n /** Token number,to be returned by the scanner. */\n static final int DIV = 261;\n /** Token number,to be returned by the scanner. */\n static final int PLUS = 262;\n /** Token number,to be returned by the scanner. */\n static final int MINUS = 263;\n /** Token number,to be returned by the scanner. */\n static final int LPAREN = 264;\n /** Token number,to be returned by the scanner. */\n static final int RPAREN = 265;\n /** Token number,to be returned by the scanner. */\n static final int LBRACE = 266;\n /** Token number,to be returned by the scanner. */\n static final int RBRACE = 267;\n /** Token number,to be returned by the scanner. */\n static final int LSQR = 268;\n /** Token number,to be returned by the scanner. */\n static final int RSQR = 269;\n /** Token number,to be returned by the scanner. */\n static final int PROPTAG = 270;\n /** Token number,to be returned by the scanner. */\n static final int STRING = 271;\n /** Token number,to be returned by the scanner. */\n static final int COMMA = 272;\n /** Token number,to be returned by the scanner. */\n static final int KEYWORD = 273;\n /** Token number,to be returned by the scanner. */\n static final int MATCH = 274;\n /** Token number,to be returned by the scanner. */\n static final int REFERENCE = 275;\n /** Token number,to be returned by the scanner. */\n static final int NEG = 276;\n\n\n \n\n /**\n * Method to retrieve the semantic value of the last scanned token.\n * @return the semantic value of the last scanned token.\n */\n Object getLVal ();\n\n /**\n * Entry point for the scanner. Returns the token identifier corresponding\n * to the next token and prepares to return the semantic value\n * of the token.\n * @return the token identifier corresponding to the next token.\n */\n int yylex () throws LexException;\n\n /**\n * Entry point for error reporting. Emits an error\n * in a user-defined way.\n *\n * \n * @param msg The string for the error message.\n */\n void yyerror (String msg);\n }", "title": "" }, { "docid": "f496fbf36b2da5a2a99a7ac2c3cce9e3", "score": "0.4523185", "text": "public void type() {\n\t\tswitch (lookahead.getType()) {\n\t\t\tcase VOID:\n\t\t\t\tmatch(TokenType.VOID);\n\t\t\t\tbreak;\n\t\t\tcase INT:\n\t\t\t\tmatch(TokenType.INT);\n\t\t\t\tbreak;\n\t\t\tcase FLOAT:\n\t\t\t\tmatch(TokenType.FLOAT);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\terror(\"Type\");\n\t\t}\n\t}", "title": "" }, { "docid": "901ad315844fc3a9306c4097a1857430", "score": "0.45191187", "text": "@Override\r\n public Program parse() throws ParseException {\r\n Program program = new Program();\r\n switch (scanner.viewToken().getType()) {\r\n //First set INT_TOKEN, VOID_TOKEN \r\n case INT_TOKEN:\r\n case VOID_TOKEN:\r\n //Being parsing by parsing Decl-List\r\n program.setDeclarationList(parseDeclList());\r\n match(Token.TokenType.EOF_TOKEN);\r\n this.program = program;\r\n return program;\r\n default:\r\n String message = \"Expected an INT_TOKEN or VOID_TOKEN. Got \" + scanner.viewToken().toString() + \" in parseProgram\";\r\n throw new ParseException(message, 0);\r\n }\r\n }", "title": "" }, { "docid": "ef07954154ec287721cc30bd06436c2a", "score": "0.45188022", "text": "private void Match(TokenType type, Token token)\n {\n if(type.equals(token.Type))\n Consume();\n else\n throw new Error(\"lel\");\n }", "title": "" }, { "docid": "63d108f394897f3c0c101c21dc8bc157", "score": "0.45172298", "text": "@Test(timeout = 4000)\n public void test27() throws Throwable {\n SimpleNode simpleNode0 = new SimpleNode(14);\n simpleNode0.setIdentifier(\"&&\");\n StringWriter stringWriter0 = new StringWriter(14);\n simpleNode0.dump(\"*\", stringWriter0);\n assertEquals(\"<ClassOrInterfaceBody>\\n <identifier>*amp</identifier>\\n</ClassOrInterfaceBody>\\n\", stringWriter0.toString());\n }", "title": "" }, { "docid": "21e98c3237566c8b50c67d2be54cbe60", "score": "0.4516261", "text": "static final public void TPTP_input() throws ParseException {\n label_1:\n while (true) {\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case CNF:\n ;\n break;\n default:\n jj_la1[0] = jj_gen;\n break label_1;\n }\n cnf_annotated();\n }\n }", "title": "" } ]
872441d936466f5c39205b80f83b0fc7
Sets value as attribute value for S_PHOTO using the alias name SPhoto.
[ { "docid": "94d292f748a7d251da51842c2b33cc3d", "score": "0.56781626", "text": "public void setSPhoto(BlobDomain value) {\n setAttributeInternal(SPHOTO, value);\n }", "title": "" } ]
[ { "docid": "6731039daaf5edf3f7abdf75b2e02241", "score": "0.77083725", "text": "public void setPhoto(String value)\r\n {\r\n getSemanticObject().setProperty(social_photo, value);\r\n }", "title": "" }, { "docid": "edd35815256c7296c4aa645b9b52c371", "score": "0.6556252", "text": "public void setPhoto(String photo)\n {\n this.photo = photo;\n }", "title": "" }, { "docid": "3f6f72d92b6e595a50383da2040d4f9e", "score": "0.6554116", "text": "void setPhoto(Context context, Photo photo);", "title": "" }, { "docid": "21467b13bfc9297ad25d53ab28fbeece", "score": "0.6511899", "text": "public void setPhoto(Photo photo){\n\t\tthis.mPhoto = photo;\n\t}", "title": "" }, { "docid": "41908e55c0e4a32efc0a432d6ebac0c6", "score": "0.65080094", "text": "public void setPhotoSize(String value) {\r\n setAttributeInternal(PHOTOSIZE, value);\r\n }", "title": "" }, { "docid": "b862f281fed418d515d97e55287cd9f1", "score": "0.6423702", "text": "public void setPhoto(String photo) {\n this.photo = photo;\n }", "title": "" }, { "docid": "e4c5b8a99f8e9e46665210268123563f", "score": "0.61523765", "text": "public void setPicture(final Media value)\n\t{\n\t\tsetPicture( getSession().getSessionContext(), value );\n\t}", "title": "" }, { "docid": "bb118d350eb7d5c0bd8676aaa297204d", "score": "0.61358434", "text": "public void setPicture(String s){\n this.filepath = s;\n }", "title": "" }, { "docid": "74d07f51d488ea74b261669e6f233408", "score": "0.6122824", "text": "public void setPhoto(Bitmap photo) {\n\t\tthis.photo = encodeTobase64(photo);\n\t}", "title": "" }, { "docid": "e5b9b29c8fe80298456eb53b37105403", "score": "0.6006982", "text": "public E putPhoto(final String key, @Nullable final SharePhoto value) {\n this.bundle.putParcelable(key, value);\n return (E)this;\n }", "title": "" }, { "docid": "401c346fc3756f2c2b47915e06f5e879", "score": "0.58369017", "text": "public void setPhoto(DocumentEntity photo) {\n this.photo = photo;\n }", "title": "" }, { "docid": "fc216ba04379232f90ac5e68b5977ec5", "score": "0.5756723", "text": "public void setPhoto(String location) {\n \tImage image = new Image(location);\n \tphoto=new ImageView(image);\n \tRandom rand=new Random();\n \tphoto.setX(rand.nextInt(500));\n \t\n \tphoto.setY(-100);\n \tphoto.setFitWidth(50);\n \tphoto.setFitHeight(50);\n }", "title": "" }, { "docid": "3f243a565cbfdaebbbc487edf9f78a57", "score": "0.57441217", "text": "public void setGalleryAttribute(String attributeName, String attributeValue);", "title": "" }, { "docid": "76c586f9b7e49ada6f043ae8790f1f56", "score": "0.57184047", "text": "public void setPhoto(String photo) {\n this.photo = photo == null ? null : photo.trim();\n }", "title": "" }, { "docid": "76c586f9b7e49ada6f043ae8790f1f56", "score": "0.57184047", "text": "public void setPhoto(String photo) {\n this.photo = photo == null ? null : photo.trim();\n }", "title": "" }, { "docid": "1802d12581e4b621664e724122126904", "score": "0.570708", "text": "@Override\n\tpublic void setUser_photo(Photo user_photo) {\n\t\tsuper.setUser_photo(user_photo);\n\t}", "title": "" }, { "docid": "a05a5c3741c96e96c10161a4374f078d", "score": "0.56742555", "text": "@Override\r\n\tpublic void setPicture(Object picture) {\n\t\t\r\n\t}", "title": "" }, { "docid": "9c990fcce69c0852772481243a73933d", "score": "0.56695753", "text": "public void setImage(String imageName);", "title": "" }, { "docid": "b73c1a504ff6c794cadb5accdba6c0b4", "score": "0.56571174", "text": "@SimpleProperty(type = SimpleProperty.PROPERTY_TYPE_ASSET,\n initializer = \"\\\"\\\"\")\n void Picture(String imagePath);", "title": "" }, { "docid": "8b6cd448cc062906f97acd3759016cab", "score": "0.5651769", "text": "public String getPhoto() {\r\n\t\treturn photo;\r\n\t}", "title": "" }, { "docid": "f6e013ab1a04dfa6fee28982cdf1162d", "score": "0.5616436", "text": "public void addphoto(Uri Photo) {\n if (photo != null) photo = Photo;\n }", "title": "" }, { "docid": "4a842ab35b45f3b4349da91d02d5809b", "score": "0.5598781", "text": "public Builder setPhotoFeature(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n photoFeature_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "19135f95b6a1710edf471703dfcae87d", "score": "0.55532277", "text": "public String getPhoto()\r\n {\r\n return getSemanticObject().getProperty(social_photo);\r\n }", "title": "" }, { "docid": "9b4caa393547e10fda88dc1f32b6d676", "score": "0.5530846", "text": "protected void changePhoto(){\n Intent intent = new Intent(Intent.ACTION_GET_CONTENT);\n\n //Setto il tipo di file da cercare\n intent.setType(\"image/*\");\n\n //Lancio l'activity dandogli un identificativo che mi servirà a prendermi il risultato\n startActivityForResult(intent, REQUEST_PICK_IMAGE);\n\n }", "title": "" }, { "docid": "51692b834cb6e87d66a2ada9ed7e7450", "score": "0.55100155", "text": "public void setThumbnail(final Object value)\n\t{\n\t\tsetThumbnail( getSession().getSessionContext(), value );\n\t}", "title": "" }, { "docid": "70d7b7be397267e65e0390d25ef65659", "score": "0.5492509", "text": "@Override\n public void set(String value) {\n super.set(value);\n Image icon = IconFlyWeight.INSTANCE.getByName(value);\n this.image.set(icon);\n }", "title": "" }, { "docid": "f86f8d7410cea978e93fe5ae1abe29f7", "score": "0.5490911", "text": "public String getPhoto() {\n return photo;\n }", "title": "" }, { "docid": "f86f8d7410cea978e93fe5ae1abe29f7", "score": "0.5490911", "text": "public String getPhoto() {\n return photo;\n }", "title": "" }, { "docid": "f86f8d7410cea978e93fe5ae1abe29f7", "score": "0.5490911", "text": "public String getPhoto() {\n return photo;\n }", "title": "" }, { "docid": "63baa040ada12b2f4395a1298469e8cc", "score": "0.5448274", "text": "public void setIsPic(boolean value) {\n this.isPic = value;\n }", "title": "" }, { "docid": "0864740ff650063f81d850007085bdec", "score": "0.5439908", "text": "public void setprofileImage(String value) {\r\n setAttributeInternal(PROFILEIMAGE, value);\r\n }", "title": "" }, { "docid": "f7c892ccae1d162f9b6062822ac948b4", "score": "0.5416862", "text": "public void setPicture(File picture) {\n this.picture = picture;\n }", "title": "" }, { "docid": "3bcf5beeb41718aaa786542d28740aa0", "score": "0.5408552", "text": "public void setPicture(Picture pict)\n {\n this.myPic = pict;\n }", "title": "" }, { "docid": "d813f7db820659004d1d28a2ae0a752c", "score": "0.5404123", "text": "public void updatePhoto(String uri) {\n apply(ImmutableProfilePhotoUploaded.builder()\n .id(idGenerator.newUUID())\n .aggregateId(id.id())\n .aggregateName(AGGREGATE_NAME)\n .userId(id.id())\n .version(getVersion() + 1)\n .photoUrl(uri)\n .build());\n }", "title": "" }, { "docid": "118f6315d544b7d8c656a69bad8ea286", "score": "0.5396888", "text": "public void setPicture(final SessionContext ctx, final Media value)\n\t{\n\t\tsetProperty(ctx, PICTURE,value);\n\t}", "title": "" }, { "docid": "cbc6b5ceb406400c272e07bcf7a1e8a1", "score": "0.5396645", "text": "public void setImage(BlobDomain value) {\n setAttributeInternal(IMAGE, value);\n }", "title": "" }, { "docid": "d3d45bf9a7580f9bd9b9fa7a338f6e61", "score": "0.53353345", "text": "public void setPhoto(Bitmap photo) {\n\n photo = Bitmap.createScaledBitmap(photo,190,330,true);\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n photo.compress(Bitmap.CompressFormat.JPEG, 100, baos);\n byte[] b = baos.toByteArray();\n this.base64EncodedImage = Base64.encodeToString(b, Base64.DEFAULT);\n }", "title": "" }, { "docid": "0a4c780c11835bf55344a2b8549b3129", "score": "0.5294632", "text": "public void setPicture(fr.inria.phoenix.diasuite.framework.datatype.file.File picture) {\n this.picture = picture;\n }", "title": "" }, { "docid": "c5f47b725693f29627800fd1e8d5f24d", "score": "0.52909863", "text": "public Photo getPhoto(){\n\t\treturn this.mPhoto;\n\t}", "title": "" }, { "docid": "bb2f06561a4d2b8017b81a6e8b08bf73", "score": "0.52799785", "text": "public void setPicture(String picture) {\n this.picture = picture;\n }", "title": "" }, { "docid": "bb2f06561a4d2b8017b81a6e8b08bf73", "score": "0.52799785", "text": "public void setPicture(String picture) {\n this.picture = picture;\n }", "title": "" }, { "docid": "f5032ed927294e4a65ccb5ef37c98d7d", "score": "0.5268093", "text": "private void updatePhoto(){\n //addPhotosDisplay.setImageBitmap(InternalStorage.loadExternalImage(this, photos.get(currentPhoto)));\n }", "title": "" }, { "docid": "7023a49bacd88d9e991e0a0b255c6895", "score": "0.5263099", "text": "public void setTag(Photo po){\r\n\t\tString[] photo = new String[po.getPeople().size()];\r\n\t\tpo.getPeople().toArray(photo);\r\n\t\tpeoplev.setText(\"People: \" + Arrays.toString(photo).replace(\"[\", \"\").replace(\"]\", \"\"));\r\n\t\t\r\n\t\tString[] loco = new String[po.getLocation().size()];\r\n\t\tpo.getLocation().toArray(loco);\r\n\t\tlocationv.setText(\"Location: \" + Arrays.toString(loco).replace(\"[\", \"\").replace(\"]\", \"\"));\r\n\t\t\r\n\t\tString[] ot = new String[po.getOther().size()];\r\n\t\tpo.getOther().toArray(ot);\r\n\t\totherv.setText(\"Other: \" + Arrays.toString(ot).replace(\"[\", \"\").replace(\"]\", \"\"));\r\n\t}", "title": "" }, { "docid": "9e94e0b513508361e48f946a9a58a098", "score": "0.5261672", "text": "public String getPhotoPath() {\r\n return this.filepath;\r\n }", "title": "" }, { "docid": "45f72f834c87bd985ebe4d769fda5e03", "score": "0.5250393", "text": "public void setLocalPhoto(String localPhoto) {\n\t\tif(localPhoto != null) { this.jsonUser.localPhoto = localPhoto; }\r\n\t}", "title": "" }, { "docid": "0dac9d85f94aa5ae86f10efaf7e34ea6", "score": "0.5214098", "text": "public void setPhoto_id(long photo_id) {\n\t\tthis.photo_id = photo_id;\n\t}", "title": "" }, { "docid": "1126eee1b95e434638d606626edd479a", "score": "0.5207057", "text": "public Builder setUserImg(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n userImg_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "af8fa62b0a9a46fae78c06c7513e7de5", "score": "0.51873076", "text": "@Override\n public void setPicture(final byte[] picture) {\n\n }", "title": "" }, { "docid": "34b95393468c6baab9924edc2745e0c9", "score": "0.5182962", "text": "public Builder setImage(com.tophap.mapbox_gl.proto.Sources.Source.Image value) {\n if (imageBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n type_ = value;\n onChanged();\n } else {\n imageBuilder_.setMessage(value);\n }\n typeCase_ = 3;\n return this;\n }", "title": "" }, { "docid": "e0ffcb3f18eaada0caa1c6378f651e4f", "score": "0.5178788", "text": "public void setImagen (String pImagen)\r\n {\r\n this.imagen = pImagen;\r\n }", "title": "" }, { "docid": "237d2ee438369b44c12be7c79c2dfad1", "score": "0.51715356", "text": "public void setFoto(String foto) {\n\t\tthis.foto = foto;\n\t}", "title": "" }, { "docid": "237d2ee438369b44c12be7c79c2dfad1", "score": "0.51715356", "text": "public void setFoto(String foto) {\n\t\tthis.foto = foto;\n\t}", "title": "" }, { "docid": "1b39df62a59d4a8ba6c7dffface6063a", "score": "0.5169677", "text": "public void setFoto(String foto) {\n this.foto = foto;\n }", "title": "" }, { "docid": "a49152aee29263afc14120ed361b30d4", "score": "0.51523393", "text": "public void setImage(ParseFile parseFile){\n put(KEY_IMAGE, parseFile);\n }", "title": "" }, { "docid": "19e9281c9555a5918833e1b0305f2ad6", "score": "0.5126751", "text": "public Photo getPhoto() {\n return this.photo;\n }", "title": "" }, { "docid": "c26153ef454443921fcdb1dd377a4a2a", "score": "0.51221704", "text": "public void setThumb(byte[] value) {\n this.thumb = value;\n }", "title": "" }, { "docid": "b49dbb5ea5a5292e18e5f2b2b879c011", "score": "0.5116662", "text": "@Override\n\t\tpublic String getValue(Photo object) {\n\t\t\treturn object.getThumbnailUrl();\n\t\t}", "title": "" }, { "docid": "f9fa065eae318b49718984a47420b344", "score": "0.50907034", "text": "public String getProfilePhoto() {\r\n\t\treturn profilePhoto;\r\n\t}", "title": "" }, { "docid": "151d4dbff91bdfeb3ca15c98959cd65c", "score": "0.50770855", "text": "public String getPhotoThumb() {\r\n\t\treturn photoThumb;\r\n\t}", "title": "" }, { "docid": "4884142d2862920d42a52c006a3fa480", "score": "0.50768656", "text": "public void setPhotoManager(PhotoManager photoManager) {\n mPhotoManager = photoManager;\n }", "title": "" }, { "docid": "a2084b03b58253f756ad92e4a3c56f97", "score": "0.5074663", "text": "public void updateGalleryProperty(String sGalleryFile) throws IOException {\n\t\tpropertiesGallery.setProperty(PROP_USER_FILE, sGalleryFile);\n\t\tthis.writeGalleryFile();\n\t}", "title": "" }, { "docid": "b4effc2f5ab844d72c1f24ce2b54ca91", "score": "0.50703007", "text": "public void setImageURL (String newVar) {\n imageURL = newVar;\n }", "title": "" }, { "docid": "7c9b7f03a4cd46ebfae46557d38f7167", "score": "0.5068617", "text": "public void setImagePath(String path) { imagePath = path; }", "title": "" }, { "docid": "a80b95c93f3468a0f93528fd49c43367", "score": "0.5067248", "text": "public void setMedia(final Media value)\r\n\t{\r\n\t\tsetMedia( getSession().getSessionContext(), value );\r\n\t}", "title": "" }, { "docid": "deded19cd4eb1e6e404c72c2d2f277d4", "score": "0.50665927", "text": "public void setImage(ModelImage im) {\r\n image = im;\r\n }", "title": "" }, { "docid": "dacde926e65fce121db7e37d4b0b8d81", "score": "0.50653756", "text": "public Photo(String filepath) {\r\n this.filepath = filepath;\r\n }", "title": "" }, { "docid": "ccdb9de865e5cdfe6d5754c300d66144", "score": "0.50646", "text": "public void setImage(Image image);", "title": "" }, { "docid": "c976b9317a2d8fa5c0a648910872203c", "score": "0.50607854", "text": "public void setPicture(String picture) {\n\t\tthis.picture = picture;\n\t}", "title": "" }, { "docid": "f8ecf4766e03ddc0067a69d4d8d34b63", "score": "0.5052625", "text": "void setImage(Image image);", "title": "" }, { "docid": "1bcd7316a2b1432b521cc1cff0cdaeae", "score": "0.5044193", "text": "public void set_caption(String caption) {\tphoto_caption = caption;\t}", "title": "" }, { "docid": "0d06b8b3b428918721f5c8e2cef04fbd", "score": "0.5037967", "text": "@Generated(hash = 641415871)\n public void setImage(Image image) {\n synchronized (this) {\n this.image = image;\n imageId = image == null ? null : image.getId();\n image__resolvedKey = imageId;\n }\n }", "title": "" }, { "docid": "0fefb0c8400136b984bb52fef5dea93a", "score": "0.50361115", "text": "private void savePic(Activity activity, int value) {\n\t}", "title": "" }, { "docid": "1c7d8eeb4a984345ea8724c3ae28f050", "score": "0.5030182", "text": "public long getPhoto_id() {\n\t\treturn photo_id;\n\t}", "title": "" }, { "docid": "f93a4470d5dceef2ed8ea5296ef899f2", "score": "0.5021601", "text": "public String getUploadPhoto() {\n return uploadPhoto;\n }", "title": "" }, { "docid": "2658d38bf9ff9b250ea07328a28fb425", "score": "0.5017191", "text": "public void setUri(String value) {\n CoreJni.setVaruriCoreResourceManagerCoreResourceInfo(this.agpCptr, this, value);\n }", "title": "" }, { "docid": "777b21772e033d7600abc61bfc857d67", "score": "0.5014319", "text": "private void setPic(Bitmap photo){\n // Get dimensions of photo\n int photoW = photo.getWidth();\n int photoH = photo.getHeight();\n\n // Get height of imageview for scaling\n int targetH = mImageView.getHeight();\n int scaleFactor = photoH/targetH;\n\n // Get new dimensions\n photoW = photoW * scaleFactor;\n photoH = photoH * scaleFactor;\n\n mImageView.setImageBitmap(Bitmap.createScaledBitmap(photo, photoW, photoH, true));\n }", "title": "" }, { "docid": "55604e0ad84f03ff6a5f5792a23d487e", "score": "0.5011829", "text": "public Builder setPictureId(long value) {\n \n pictureId_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "f1d9188d8ee0536cc5457af04b919cd2", "score": "0.5001145", "text": "public void setThumbnail(final SessionContext ctx, final Object value)\n\t{\n\t\tsetProperty(ctx, THUMBNAIL,value);\n\t}", "title": "" }, { "docid": "8b26ab652fa184359f2e8f433696f83f", "score": "0.49979576", "text": "@Override\n\tpublic Photo getUser_photo() {\n\t\treturn super.getUser_photo();\n\t}", "title": "" }, { "docid": "aa816be57ef4bab183301cc9362bbb74", "score": "0.4994482", "text": "public void setImage(File imageFile);", "title": "" }, { "docid": "1fb175cd8a88d8c316506cf1ba5c7258", "score": "0.4989222", "text": "public void setUploadPhoto(String uploadPhoto) {\n this.uploadPhoto = uploadPhoto == null ? null : uploadPhoto.trim();\n }", "title": "" }, { "docid": "2776a639e5d4decb20b90b2d520e901a", "score": "0.49875775", "text": "public interface photo {\n\n public Bitmap setBitmap(Bitmap bitmap);\n}", "title": "" }, { "docid": "578f562ee81dfdcd82a38e2af35984ec", "score": "0.49864078", "text": "public ImageView getPhoto() {\n \treturn photo;\n }", "title": "" }, { "docid": "6ed57c0f8febd277843761bf4ace8050", "score": "0.49795175", "text": "private void setPic(String mCurrentPhotoPath) {\n // Get the dimensions of the View\n int targetW = mImageView.getWidth();\n int targetH = mImageView.getHeight();\n\n // Get the dimensions of the bitmap\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n // Determine how much to scale down the image\n int scaleFactor = Math.min(photoW / targetW, photoH / targetH);\n\n // Decode the image file into a Bitmap sized to fill the View\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n bmOptions.inPurgeable = true;\n\n Bitmap bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n mImageView.setImageBitmap(bitmap);\n }", "title": "" }, { "docid": "e54828a18013919d37cce959983683c7", "score": "0.49699956", "text": "public void setI(Image i) {\r\n\t\tthis.image = i;\r\n\t}", "title": "" }, { "docid": "d00e1bae70f5619e4340ce46edc6e905", "score": "0.49602878", "text": "public void setProfilePic(Bitmap profilePic) {\n\t\tthis.profilePic = profilePic;\n\t\tLog.w(\"User\", \"5\");\n\t}", "title": "" }, { "docid": "a613e60b48556ecf528530aa7eb9dfd1", "score": "0.49599364", "text": "public int updatePromotionPhotoByExample(PromotionPhoto record, PromotionPhotoExample example) throws SQLException {\n\t\tUpdateByExampleParms parms = new UpdateByExampleParms(record, example);\n\t\tint rows = sqlMapClient.update(\"PROMOTION_PHOTO.updateByExample\", parms);\n\t\treturn rows;\n\t}", "title": "" }, { "docid": "eb28e633abb1110e343c2da965ed178e", "score": "0.49574694", "text": "public static java.util.Iterator<org.semanticwb.social.Photo> listPhotoByModifiedBy(org.semanticwb.model.User value)\r\n {\r\n org.semanticwb.model.GenericIterator<org.semanticwb.social.Photo> it=new org.semanticwb.model.GenericIterator(value.getSemanticObject().getModel().listSubjectsByClass(swb_modifiedBy,value.getSemanticObject(),sclass));\r\n return it;\r\n }", "title": "" }, { "docid": "308ba1bb4b2285f756fc467cd8deb60e", "score": "0.49221075", "text": "@Override\n\tpublic void setImage(int value) {\n\n\t}", "title": "" }, { "docid": "a9471c5218d1d9e944485c6fc863737b", "score": "0.49168018", "text": "public ImageInterface setPath(String path);", "title": "" }, { "docid": "039d7e9161d3308807a712647472bf7e", "score": "0.4912669", "text": "@SimpleProperty(\n category = PropertyCategory.BEHAVIOR)\n public String Picture() {\n return ensureNotNull(contactPictureUri);\n }", "title": "" }, { "docid": "126c0632ced59bc101e6d9a3cfe3401c", "score": "0.49073374", "text": "public void setLogo(final ru.cti.oss.iptv.Image value) {\n this.logo = value;\n }", "title": "" }, { "docid": "c75250c60474abce891897a3990147d0", "score": "0.4896795", "text": "public void renamePhoto(String name) {\n\t\tthis.fileName = name;\n\t}", "title": "" }, { "docid": "96e9201974a27b9c263d51322e3bb5bd", "score": "0.4896462", "text": "public void setFile(String value) {\n setattrvalue(\"File\", value);\n }", "title": "" }, { "docid": "dd3c4cf4c7eacb50ea0c9c4d61da31ba", "score": "0.4893578", "text": "private void changeProfileImage() {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"Select Picture\"), PICK_IMAGE_REQUEST);\n }", "title": "" }, { "docid": "78395277ce4e5f7128b728a985d167ab", "score": "0.48910344", "text": "public void setSignatureImageSize(int value) {\r\n this.signatureImageSize = value;\r\n }", "title": "" }, { "docid": "c9462fe5dc60563e623e3febb0b103ec", "score": "0.48873937", "text": "public void setFileName(String value)\r\n {\r\n getSemanticObject().setProperty(swp_fileName, value);\r\n }", "title": "" }, { "docid": "f224dd6c8b6cd863dbf164dd7703ab11", "score": "0.48862252", "text": "public void setUserImage(String userImage) {\n this.userImage = userImage;\n }", "title": "" }, { "docid": "24d1c5b22600e8a76f99aaa67ec7ca10", "score": "0.48828667", "text": "public String getPhotoUrl() {\n return mPhotoUrl;\n }", "title": "" }, { "docid": "ff64b7fc19b14ecf38231d2df5c774a6", "score": "0.48712194", "text": "private void setPic(){\n if(!mCurrentPhotoPath.equals(\"empty\") && mCurrentPhotoPath != null){\n // Get the dimensions of the View\n int targetW = mImageView.getWidth();\n int targetH = mImageView.getHeight();\n\n // Get the dimensions of the bitmap\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n // Determine how much to scale down the image\n int scaleFactor = photoH/targetH; //Math.min(photoW/targetW, photoH/targetH);\n\n // Decode the image file into a Bitmap sized to fill the View\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n bmOptions.inPurgeable = true;\n\n Bitmap bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n mImageView.setImageBitmap(bitmap);\n }\n }", "title": "" } ]
da0f0fa70e36596f350deea52e7c4f75
Return a raw Observable
[ { "docid": "d9960aa29f1075d1731da1c6c3f3e970", "score": "0.64947957", "text": "Observable<T> getObservable(MessageType type);", "title": "" } ]
[ { "docid": "0f4da1302652fb86bb24afdb3d0061a6", "score": "0.7544301", "text": "Observable<T> getObservable();", "title": "" }, { "docid": "76107e36d8fae025c8118c846a5e3abe", "score": "0.6972046", "text": "public interface AsObservable<T> {\n\n /**\n * Return a raw Observable\n * @param type filter message types being delivered via onNext()\n * @see MessageType\n * @see Observable\n * @return Observable that ticks onNext(T);\n */\n Observable<T> getObservable(MessageType type);\n\n /**\n * Return a raw Observable that ticks all message types via onNext(T)\n * @see Observable\n * @return Observable that ticks onNext(T)\n */\n Observable<T> getObservable();\n}", "title": "" }, { "docid": "62b00e62d91004633ecf417cecc05550", "score": "0.68073803", "text": "public Observable<String> getObservable() {\n return Observable.fromCallable(new Callable<String>() {\n @Override\n public String call() throws Exception {\n return \"haha\";\n }\n });\n// return Observable.create(new ObservableOnSubscribe<String>() {\n// @Override\n// public void subscribe(ObservableEmitter<String> e) throws Exception {\n// e.onNext(\"Rxjava第一次上手\");\n// e.onNext(\"希望可以快点学会\");\n// e.onComplete();\n//// e.onError();\n//\n// }\n// });\n\n }", "title": "" }, { "docid": "7ba5507cf13698618e488b392e735b55", "score": "0.6680145", "text": "Observable<Object> getAsync();", "title": "" }, { "docid": "6ca69314888b5dd8f1eeec236c34d9ca", "score": "0.6307453", "text": "private Maybe<Note> getMaybeNoteObservable(){\n return Maybe.create(new MaybeOnSubscribe<Note>() {\n @Override\n public void subscribe(MaybeEmitter<Note> emitter) throws Exception {\n Note note = new Note(1,\"Call brother!\");\n if(!emitter.isDisposed()){\n emitter.onSuccess(note);\n }\n }\n });\n }", "title": "" }, { "docid": "ffbe88d98e6936d788b1cd5047345852", "score": "0.6292274", "text": "private static Observable<String> createSimpleObserver() {\n return new Observable.OnSubscribe<String>() {\n @Override\n public void call(Subscribe<? super String> sub) {\n sub.onNext(\"Hello World!\");\n sub.onCompleted();\n }\n };\n }", "title": "" }, { "docid": "64a56280f52776d2ae92f35c4c13d149", "score": "0.6289005", "text": "public Observable<JsonWhatever> getJsonWhatever() {\n return mWhateverApiServ\n .getJsonWhatever();\n // Apply default behavior.\n// .compose(this.<JsonWhatever>applyDefaultBehavior());\n// .compose(new rx.Observable.Transformer<JsonWhatever, JsonWhatever>() {\n// @Override\n// public rx.Observable<JsonWhatever> call(rx.Observable<JsonWhatever> ob) {\n// return ob\n// .subscribeOn(rx.schedulers.Schedulers.io())\n// // When start.\n// .observeOn(AndroidSchedulers.mainThread())\n// .doOnSubscribe(new Consumer<Disposable>() {\n// @Override\n// public void accept(Disposable disposable) throws Exception {\n// Log.i(TAG, \"API call starts.\");\n// showProgressBar();\n// }\n// })\n// // When error happens.\n// .observeOn(AndroidSchedulers.mainThread())\n// .doOnError(new Consumer<Throwable>() {\n// @Override\n// public void accept(Throwable t) throws Exception {\n// Log.e(TAG, String.format(\"API call error: %s\", t));\n// hideProgressBar();\n// }\n// })\n// // When end.\n// .observeOn(AndroidSchedulers.mainThread())\n// .doOnComplete(new Action() {\n// @Override\n// public void run() throws Exception {\n// Log.i(TAG, \"API call ends.\");\n// hideProgressBar();\n// }\n// })\n// .observeOn(AndroidSchedulers.mainThread());\n// ;\n// }\n// })\n }", "title": "" }, { "docid": "b55c2cca16091d9594c3a90914638a89", "score": "0.61586773", "text": "private void createObservableByJust() {\n\t\tObservable.just(\"Hello Word\").subscribe(new Observer<String>() {\n\t\t\t@Override\n\t\t\tpublic void onCompleted() {\n\t\t\t\tSystem.out.println(\"onCompleted()\");\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onError(Throwable e) {\n\t\t\t\tSystem.out.println(\"onError()\");\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onNext(String str) {\n\t\t\t\tSystem.out.println(\"onNext(),str = \" + str);\n\t\t\t}\n\t\t});\n\t}", "title": "" }, { "docid": "abcd8cac535be18b64de24e6eb35ab67", "score": "0.6156217", "text": "public Observable<Result<T>> mo100103a() {\n return Observable.fromCallable(new Callable() {\n /* class com.zhihu.android.net.cache.$$Lambda$a$42sjKw17aLFEYTdsyVBuTFIZ6t8 */\n\n @Override // java.util.concurrent.Callable\n public final Object call() {\n return AbstractPolicy.this.m109703e();\n }\n }).filter($$Lambda$a$h_LK8iEoQGzyuOpzLKKveexmiNg.INSTANCE).onErrorResumeNext(Observable.empty());\n }", "title": "" }, { "docid": "af9ea04d3dd90179976125f0d374c958", "score": "0.60709494", "text": "public interface CurrencyRepository {\n Observable<Envelope> getResponse();\n}", "title": "" }, { "docid": "934a1efc7b3b4fafa9be1c3c39be4b81", "score": "0.6037186", "text": "@SuppressWarnings(\"unchecked\")\n private Observable<T> castObservable(Observable obs) {\n return (Observable<T>) obs;\n }", "title": "" }, { "docid": "2da5efa6c6e117304d9e5cec803159ba", "score": "0.59943175", "text": "public Observable<MatrimonialModel> getObservable(){\n return RetrofitInstance.getRetrofit().create(ApiInterfaces.class)\n .getMatrimonialMatches(\"10\")\n .subscribeOn(Schedulers.io())\n .observeOn(AndroidSchedulers.mainThread());\n }", "title": "" }, { "docid": "1c999eee7380b57ae2b670bae482db45", "score": "0.59717536", "text": "private void createObservableByFrom() {\n\t\tList<Integer> items = new ArrayList<Integer>();\n\t\titems.add(1);\n\t\titems.add(10);\n\t\titems.add(100);\n\t\titems.add(200);\n\t\tObservable.from(items).subscribe(new Observer<Integer>() {\n\t\t\t@Override\n\t\t\tpublic void onCompleted() {\n\t\t\t\tSystem.out.println(\"onCompleted()\");\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onError(Throwable e) {\n\t\t\t\tSystem.out.println(\"onError()\");\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onNext(Integer integer) {\n\t\t\t\tSystem.out.println(\"onNext(),integer = \" + integer);\n\t\t\t}\n\t\t});\n\t}", "title": "" }, { "docid": "0f94665ff5ecbff7da74787de2169919", "score": "0.5920289", "text": "public Observable<BaseEntity> createRtoForTraining() {\n return doHttp(operatorApiService.createRtoDataFroTraning());\n }", "title": "" }, { "docid": "045860194d4d49c7a3b775185201e881", "score": "0.59073025", "text": "public Observable<Integer> someItems() {\r\n // superfluous use of an Observable, if this was blocking this wold actually be really bad but since\r\n // it's a non-blocking sync I/O it's fine\r\n return Observable.create(s -> {\r\n s.onNext(1);\r\n s.onNext(2);\r\n s.onNext(3);\r\n s.onComplete();\r\n });\r\n }", "title": "" }, { "docid": "20b6755d1a62cdd8a489a8231076bf86", "score": "0.5829833", "text": "@Override\n public ObservableSource<? extends String> call() throws Exception {\n SystemClock.sleep(2000);\n return Observable.just(\"one\", \"two\", \"three\", \"four\", \"five\");\n }", "title": "" }, { "docid": "37e1815d00d82b7413e9a5f5dc8a581f", "score": "0.5773065", "text": "public abstract Observable<Response<Result<T>>> mo100104a(Observable<Response<T>> observable);", "title": "" }, { "docid": "7f5181bea031f6a1cb8018e956e2ad9c", "score": "0.5727538", "text": "public Observable<VideoList> asObservable(){\n return notifier;\n }", "title": "" }, { "docid": "a8fec15c834bc0868be50c1d75d51db3", "score": "0.5717407", "text": "public ObservableTransformer<Response<T>, Response<Result<T>>> mo100105b() {\n return new ObservableTransformer() {\n /* class com.zhihu.android.net.cache.$$Lambda$a$OXEFLZXbwPKYS_PVXyYTNExrMM */\n\n @Override // p2189io.reactivex.ObservableTransformer\n public final ObservableSource apply(Observable observable) {\n return AbstractPolicy.this.m109702b(observable);\n }\n };\n }", "title": "" }, { "docid": "a5686ba4641d990b103e965d09dfc7be", "score": "0.5696982", "text": "@Override\n public Observable<ArrayList<Person>> getPeopleRx() {\n return Observable.just(null);\n }", "title": "" }, { "docid": "de588321b4562112153240b21b246d8f", "score": "0.5638406", "text": "@Test\n public void testMakeObservable() throws Exception {\n final AtomicBoolean called = new AtomicBoolean(false);\n final Callable<Integer> original = new Callable<Integer>() {\n @Override\n public Integer call() throws Exception {\n called.set(true);\n return 1;\n }\n };\n final Callable<Observable<Integer>> callableObservable = TrialUtil.makeObservable(original);\n assertFalse(called.get());\n final Observable<Integer> observable = callableObservable.call();\n assertFalse(called.get());\n assertEquals((Integer) 1, observable.toBlocking().single());\n assertTrue(called.get());\n }", "title": "" }, { "docid": "effea408e38f88e2e7ea84a626d24df3", "score": "0.5611388", "text": "static <T> SuiStream<T, T> from(final ObservableValue<T> observable) {\n\t\treturn new ObservableStreamSource<>(observable);\n\t}", "title": "" }, { "docid": "da9a9e18b8b1f07961a57b01224e51ed", "score": "0.5566495", "text": "public Object getObjectFromObservable() {\n\t\treturn this.clock;\n\t}", "title": "" }, { "docid": "1fff7e1f6e60f6d58b77f74a2119f566", "score": "0.54273605", "text": "private /* synthetic */ ObservableSource m109702b(Observable observable) {\n return observable.compose(mo100107d()).compose(mo100106c());\n }", "title": "" }, { "docid": "fb04b57a3795edd01bf7543cee9034c4", "score": "0.5395613", "text": "public interface Repository {\n\n Observable<Result> getResultsFromMemory();\n\n Observable<Result> getResultsFromNetwork();\n\n Observable<String> getCountriesFromMemory();\n\n Observable<String> getCountriesFromNetwork();\n\n Observable<String> getCountryData();\n\n Observable<String> getResultData();\n}", "title": "" }, { "docid": "feb0838cbd5b61a5689af17aa34d5b40", "score": "0.53716344", "text": "public void test(){\n //single observable and singleobserver\n getNoteObservable().observeOn(Schedulers.io())\n .subscribeOn(AndroidSchedulers.mainThread())\n .subscribe(getSingleObserver());\n\n //Maybe observable may or may not emits a value. This observable can be used when you are\n // expecting an item to be emitted optionally.\n getMaybeNoteObservable().subscribeOn(Schedulers.io())\n .observeOn(AndroidSchedulers.mainThread())\n .subscribe(getMaybeNoteObserver());\n\n /*\n Completable observable won’t emit any data instead it notifies the status of the task either\n success or failure. This observable can be used when you want to perform some task and not\n expect any value. A use case would be updating some data on the server by making PUT request.\n */\n Note note = new Note(1,\"home work!\");\n updateNote(note).subscribeOn(Schedulers.io())\n .observeOn(AndroidSchedulers.mainThread())\n .subscribe(getCompletableObserver());\n\n /*\n Flowable observable should be used when an Observable is generating huge amount of\n events/data than the Observer can handle. As per doc, Flowable can be used when the source\n is generating 10k+ events and subscriber can’t consume it all.\n */\n /*\n When Flowable is used, the overflown emissions has to be handled using a strategy called\n Backpressure. Otherwise it throws an exception such as MissingBackpressureException or\n OutOfMemoryError\n */\n getFlowableObservable().subscribeOn(Schedulers.io())\n .observeOn(AndroidSchedulers.mainThread())\n .reduce(0,new BiFunction<Integer, Integer, Integer>() {\n @Override\n public Integer apply(Integer integer, Integer integer2) throws Exception {\n return integer+integer2;\n }\n })\n .subscribe(getFlowableObserver());\n\n\n\n\n }", "title": "" }, { "docid": "3cc4036be5cd97dfa22fe9cfaa448646", "score": "0.534751", "text": "Observable<Project> project();", "title": "" }, { "docid": "4a18ce3605bfda7a6c25c362fe9585a4", "score": "0.5313935", "text": "public interface Repository {\n Observable<TramaEntity> getTrama (final String trama);\n}", "title": "" }, { "docid": "c1935c3e4ce0fb1886a0df91631b6b5e", "score": "0.529989", "text": "public interface RxGetHouseKeeperDetailService {\n\n @GET(\"/\"+IHttpUrlConstants.PROJECT_PINGAN+\"/\"+ IHttpUrlConstants.REQUEST_GET+\"?handler=services&action=housekeeperdetail\")\n rx.Observable<GetHouseKeeperDetailEntity> doGetHouseKeeperDetail(@Query(IParamsName.PARAMS_COMMON_PLATFORM) String platform,\n @Query(IParamsName.PARAMS_COMMON_TOKEN) String token,\n @Query(IParamsName.PARAMS_HOUSE_KEEPER_DETAIL_ID) String page\n );\n}", "title": "" }, { "docid": "9096407eb8c4ee88e020227dca574189", "score": "0.52703273", "text": "public static <A> ObservableTValue<A> fromAnyM(AnyMValue<A> anyM) {\n return of(anyM.map(Observable::just));\n }", "title": "" }, { "docid": "fe15eb47b41d8fa65997a3ccf28688ee", "score": "0.5258974", "text": "private List<Observable<Word>> createObservables() {\n\t\tList<Observable<Word>> observables = new ArrayList<>();\n\t\tobservables.add(wordService.getVerb());\n\t\tobservables.add(wordService.getAdjective());\n\t\treturn observables;\n\t}", "title": "" }, { "docid": "0764217aab79bc415d43e8d5b661e782", "score": "0.5241337", "text": "Observable<ServiceResponse<Object>> getWithServiceResponseAsync();", "title": "" }, { "docid": "27722506b1026b4eb03aadc3de3e122a", "score": "0.5232621", "text": "public ObservableList<ReceiptContent> getObservable(){\n return this.receipt;\n }", "title": "" }, { "docid": "0987604c6d15bfd46c43b23f8b2175b7", "score": "0.52240866", "text": "public Observable getObservable() {\n return observerConfigOptions;\n }", "title": "" }, { "docid": "e4d7d13379d623cd11f7c6cd457963ca", "score": "0.52195996", "text": "private Observable<List<City>> fromMemory() {\n return Observable.just(cities).doOnNext(new Action1<List<City>>() {\n @Override\n public void call(List<City> cities) {\n Timber.w(\"Loading from memory...\");\n }\n });\n }", "title": "" }, { "docid": "6925f8f4ef6c6cb8c57df834bdd17bff", "score": "0.52043855", "text": "public interface YahooWInterface {\r\n //dar RX Call ro Observable mikonim\r\n @GET(\"yql/\")\r\n Observable<YahooWeatherPojo> getWeather(@Query(\"q\") String query,\r\n @Query(\"format\") String format);\r\n}", "title": "" }, { "docid": "8404a5d111a8f8e7af233c7b3bdac923", "score": "0.5194506", "text": "@Override\n public Observable<Conversion> convert(String from, String to) {\n return null;\n }", "title": "" }, { "docid": "4008dd821b2844434d7b229fd1a45aac", "score": "0.51923317", "text": "private void CreateExample() {\n Observer<String> animalsObserver = getNumberObserver();\n String[] al = {\"one\", \"two\", \"three\", \"four\", \"five\", \"six\", \"seven\"};\n final List<String> alphabets = Arrays.asList(al);\n\n Observable<String> testObservable = Observable.create(new ObservableOnSubscribe<String>() {\n @Override\n public void subscribe(ObservableEmitter<String> emitter) {\n try {\n for (String alphabet : alphabets) {\n emitter.onNext(alphabet);\n }\n emitter.onComplete();\n }catch (Exception e){\n emitter.onError(e);\n }\n\n }\n });\n testObservable.subscribeOn(Schedulers.io()).observeOn(AndroidSchedulers.mainThread()).subscribe(animalsObserver);\n txtOuput.append(\"\\n\\nObservable<String> testObservable = Observable.just(\\\"one\\\", \\\"two\\\", \\\"three\\\", \\\"four\\\");\\n\" +\n \"Observer<String> animalsObserver = getNumberObserver();\\n\" +\n \"testObservable.subscribeOn(Schedulers.io()).observeOn(AndroidSchedulers.mainThread()).subscribe(animalsObserver); \\n\\nOutput:=>\\n\");\n }", "title": "" }, { "docid": "5377cd4447910e1685bbeceb63af121a", "score": "0.51689166", "text": "public Observable<String> startPopulatingATextView() {\r\n return Observable.create(s -> {\r\n String output = \"Stop observing me thanks\";\r\n Random random = new Random();\r\n output.chars().forEach(in -> {\r\n try {\r\n s.onNext(\"\" + (char)in);\r\n Thread.sleep(random.nextInt(25) * 100);\r\n } catch (InterruptedException e) {\r\n s.onError(e);\r\n }\r\n });\r\n s.onComplete();\r\n });\r\n }", "title": "" }, { "docid": "fa8acaee1cca2cc03084aa89e790b695", "score": "0.51551735", "text": "public interface Model {\n\n Observable<Boolean> signIn(String login, String password);\n\n Observable<Boolean> signInVk(String token, String userId);\n\n Observable<List<Show>> getShows();\n\n Observable<Show> getShowById(int id);\n\n Observable<List<ShowTmp>> findShowByName(String title);\n\n Observable<List<List<Episode>>> getNextEpisodes();\n\n Observable<UserProfile> getUserInfo();\n\n Observable<Boolean> updateRateShow(int showId, int rate);\n\n}", "title": "" }, { "docid": "bbe853aa009ff9696d34595fcffaa51c", "score": "0.5148278", "text": "Observable<String> getSubject() {\n return publishSubject;\n }", "title": "" }, { "docid": "221cd42256e4fd518b04658019648999", "score": "0.51477355", "text": "public PublishSubject<String> getObservables() {\n return Observables;\n }", "title": "" }, { "docid": "4c40baf50a3ba23c9fe23df188e8f4ae", "score": "0.51415557", "text": "public interface ObservableOnSubscribe<T> {\n void subscribe( ObservableEmitter<T> e) throws Exception;\n}", "title": "" }, { "docid": "f274cb3d7b0b6b3d50f27a921045c0b1", "score": "0.5140387", "text": "public interface IGetDataBase {\n @GET(\"/umIPmfS6c83237d9c70c7c9510c9b0f97171a308d13b611?uri=homepage\")\n Observable<ShopBean> get();\n}", "title": "" }, { "docid": "b3aadb9a47d40aacd6ccbbe2b5e21efe", "score": "0.51308435", "text": "public Observable()\n {\n observers = new ArrayList<Observer>();\n }", "title": "" }, { "docid": "d40cd3c7685b7818042b23fe6781803b", "score": "0.5124411", "text": "public interface Observable {\n\n public void addObserver(Observer observer);\n\n public void notifyObserver(JSONObject data);\n}", "title": "" }, { "docid": "beb2ad5f5724346fa0c407282d4a0b89", "score": "0.50850207", "text": "Subject getActiveSubject();", "title": "" }, { "docid": "aef195352dd1de3042419bb0e52adc5d", "score": "0.5074105", "text": "@NonNull\n public <T> Observable.Transformer<T, T> networkOperation() {\n return observable -> observable.subscribeOn(Schedulers.io()).unsubscribeOn(Schedulers.io())\n .observeOn(AndroidSchedulers.mainThread()).retry(DEFAULT_RETRY_COUNT);\n }", "title": "" }, { "docid": "a6606345845a04ae160e75520bc5cbbf", "score": "0.5064671", "text": "public ObservableTransformer<Response<T>, Response<T>> mo100107d() {\n return OperatorNetwork.m109758a(this.f78469a);\n }", "title": "" }, { "docid": "9bf58d937965359d5a7c60851209936b", "score": "0.50473505", "text": "public interface IProjectionRepository {\n Observable<Void> store(Object projection);\n <T> Observable<T> observe(Class<T> clazz);\n <T> Observable<T> get(Class<T> clazz);\n}", "title": "" }, { "docid": "02f51a5ba10614a7e7ea25454924455c", "score": "0.5044835", "text": "public interface WeatherStation\n{\n\n Observable<Temperature> temperature();\n Observable<Wind> wind();\n}", "title": "" }, { "docid": "0a882d3a765847e25e1b0b0a0dcdefc0", "score": "0.50354713", "text": "public interface GetDTData{\n String Query = \"Get DT Data\";\n @Headers(\"Cache-Control: no-cache\")\n @POST(\"/\")\n Observable<String> sendRequest(@Body Map<String,String> body);\n}", "title": "" }, { "docid": "a6f53bfb92e1ac203671dc94669f9aed", "score": "0.5013938", "text": "void sampleCall() {\n Observable.just(1).to(autoDisposable(ScopeProvider.UNBOUND)).subscribe();\n }", "title": "" }, { "docid": "0136af95c5bc35531a6f6457dbee7bfd", "score": "0.5010867", "text": "public interface Observable<T> {\n\t/**\n\t * Adds an observer.\n\t * \n\t * @param o An observer\n\t */\n\tpublic void addObserver(T o);\n\n\t/**\n\t * Removes an observer.\n\t * \n\t * @param o An observer\n\t */\n\tpublic void removeObserver(T o);\n}", "title": "" }, { "docid": "a44367224bca0f2870143e39f8c0abd3", "score": "0.5001514", "text": "public interface TimeSeriesRepository {\n\n Observable<List<TimeSeriesModel>> getTimeSeries(String thingId, String key, long lastMillis);\n}", "title": "" }, { "docid": "10763118079cb68102bebe8c7e97e2d0", "score": "0.49953085", "text": "public LiveData<List<Item>> getOneObservable() {\n return repository.getOne();\n }", "title": "" }, { "docid": "a80eb747e6015a81d2e1ab8e63310dd9", "score": "0.49933898", "text": "public static <K, V> ObservableMap<K, V> observableMap(Map<K, V> map) {\n if (map == null) {\n throw new NullPointerException();\n }\n return new ObservableMapWrapper<K, V>(map);\n }", "title": "" }, { "docid": "5e2ad8199cd5f3ee7d8ae2cea2519f57", "score": "0.49920583", "text": "@Override // io.reactivex.ObservableTransformer\n public ObservableSource<RxBleInternalScanResult> apply(Observable<RxBleInternalScanResult> observable) {\n return observable.compose(emulateCallbackType);\n }", "title": "" }, { "docid": "c983d55e8c14b036ef5b9d5877f3233c", "score": "0.49823397", "text": "public interface MessagesRepository {\n Observable<List<MessageModel>> getMessages(boolean isForceUpdate);\n}", "title": "" }, { "docid": "39efba8fe1aab351acecac9ed8d3d269", "score": "0.49699", "text": "@NotThreadSafe\r\npublic interface Observable<T> {\r\n\r\n /**\r\n * Adds the observer if it wasn't added already. It is safe to add observers inside observer's callback but newly\r\n * added observers will not be notified until the next callback cycle.\r\n *\r\n * @param observer the non-null observer to add.\r\n */\r\n void addObserver(T observer);\r\n\r\n /**\r\n * Removes observer if it was registered. It the observer wasn't registered or was already removed or is null then\r\n * this is a no-op. It is safe to remove observers inside observer's callback and the changes are applied\r\n * immediately.\r\n *\r\n * @param observer the observer to remove\r\n */\r\n void removeObserver(T observer);\r\n}", "title": "" }, { "docid": "1708244f2bfe61bbb5986c1a645b073d", "score": "0.4968588", "text": "public static Observable<String> fromKeyboard() {\n Observable<String> keys = Observable.create(subscriber -> {\n\n Scanner scan = new Scanner(System.in);\n String line = scan.next();\n while (!\"END\".equalsIgnoreCase(line)) {\n subscriber.onNext(line);\n line = scan.next();\n }\n subscriber.onCompleted();\n\n });\n return keys.subscribeOn(Schedulers.newThread());\n }", "title": "" }, { "docid": "7932e138dba28a64b98a60801fcd8e36", "score": "0.49684903", "text": "private void peticionesAnidadesServidorRx() {\n compositeDisposable.add(WebService\n .getInstance()\n .createService()\n .getReposForUserRx(\"JakeWharton\")\n .subscribeOn(Schedulers.io())\n .observeOn(AndroidSchedulers.mainThread())\n .toObservable()\n /*\n Si un observable nos devuelve como respuesta un Observable<List<Object>>\n pero nosotros en vez de como una lista queremos trabajar independiente\n con cada objeto de la lista, para ello podemos utilizar flatMapIterable\n o flatMap.\n Que nos devuelve en cada caso un objeto Observable por separado.\n */\n .flatMap(new Function<List<GitHubRepo>, ObservableSource<GitHubRepo>>() {\n @Override\n public ObservableSource<GitHubRepo> apply(List<GitHubRepo> gitHubRepos) throws Exception {\n return Observable.fromIterable(gitHubRepos);\n }\n })\n /*\n Hacemos un flatMap en que hacemos por cada repositorio una nueva petición al\n servidor para obtener la lista de personas que han contribuido a ese repositirio.\n Es decir que si JakeWharton tiene 30 repositirios, vamos a hacer 30 llamadas al\n servidor y nos devolvera los que contribuyen a cada uno de los 30 repositiros.\n */\n .flatMap(new Function<GitHubRepo, ObservableSource<List<Contributor>>>() {\n @Override\n public ObservableSource<List<Contributor>> apply(GitHubRepo gitHubRepo) throws Exception {\n return WebService\n .getInstance()\n .createService()\n .getReposContributorsRx(\"JakeWharton\", gitHubRepo.getName())\n .subscribeOn(Schedulers.io());\n }\n })\n /*\n En vez de una Lista de Observables, queremos trabajar independiente con cada Observable de\n dicha lista\n */\n .flatMap(new Function<List<Contributor>, ObservableSource<Contributor>>() {\n @Override\n public ObservableSource<Contributor> apply(List<Contributor> contributors) throws Exception {\n return Observable.fromIterable(contributors);\n }\n }).subscribe(\n e -> Log.d(\"TAG1\", e.getLogin() + \" -> \" + e.getContributions())\n )\n );\n\n }", "title": "" }, { "docid": "cabdaefa1445be701e03e66725db97ad", "score": "0.496698", "text": "public Observable<DataEvent> chainTheRequest(Observable<?> observable) {\n return observable.flatMap(i ->\n Observable.concat(\n Observable.just(new RequestFormedEvent()),\n makeRequest()\n .timeout(30, TimeUnit.SECONDS)\n .doOnError(log::error)\n .cast(DataEvent.class)\n .doOnError(NetworkErrorEvent::new),///better to change side effects\n Observable.just(new RequestFinishedEvent())\n ));\n }", "title": "" }, { "docid": "a10a79352c173ef2928688954abdedfb", "score": "0.49294296", "text": "public interface WeatherApi {\n //\"http://api.openweathermap.org/data/2.5/weather?q=11237&units=imperial&appid=726214b63da745beaf2dcd7eda63442a\"\n @GET(\"data/2.5/weather?q=11237&units=imperial&appid=726214b63da745beaf2dcd7eda63442a\")\n Observable<Weather> getWeather();\n\n\n}", "title": "" }, { "docid": "ab6eb9bb2d9c5d8dfff8848755eaa520", "score": "0.49235904", "text": "private Observable<PayOrderResult> getPayOrderResult(String orderSerial) {\n return mPayOrderUseCase.run(new PayOrderUseCase.RequestValues(orderSerial))\n .map(new Func1<PayOrderUseCase.ResponseValue, PayOrderResult>() {\n @Override\n public PayOrderResult call(PayOrderUseCase.ResponseValue responseValue) {\n return responseValue.getPayOrderResult();\n }\n });\n }", "title": "" }, { "docid": "cdbeb5224e1c7465a4b19c955b06f719", "score": "0.49177727", "text": "public interface IMessagePoller {\n\n Observable poll();\n}", "title": "" }, { "docid": "2bbdedf8c6d54cbe002102778bffba7b", "score": "0.4906633", "text": "@GET(\"syncup/check/\")\n Single<JsonObject> getServerStateJSONRx();", "title": "" }, { "docid": "badeb251f442f7a458bcc369a4c07486", "score": "0.49028695", "text": "Mono<I> initialResult();", "title": "" }, { "docid": "04468838714b1883553a3eeb6908692e", "score": "0.4901441", "text": "public interface HttpService {\n\n\n @GET(\"weather/index\")\n Observable<WeatherEntuty> getWeather(@Query(\"cityname\") String cityname,\n @Query(\"dtype\") String dtype,\n @Query(\"key\") String key,\n @Query(\"format\") int format);\n\n @POST(\"toutiao/index\")\n Observable<NewsEntitiy> getNew(@Query(\"type\") String type,\n @Query(\"key\") String key);\n\n\n @POST(\"toutiao/index\")\n Observable<String> getNewStringString(@Query(\"type\") String type,\n @Query(\"key\") String key);\n\n\n\n\n}", "title": "" }, { "docid": "fb31f5d0788c7a47e58ebdb881c977a4", "score": "0.4891984", "text": "@Override\n public IObservable createObservable(SimpleNode element) {\n if (element == tree.getInput()) {\n // Set of hardcoded nodes\n WritableSet<SimpleNode> topElements = new WritableSet();\n topElements.add(new SimpleNode(\"Random Set 1\", set1));\n topElements.add(new SimpleNode(\"Random Set 2\", set2));\n topElements.add(new SimpleNode(\"Random Set 3\", set3));\n topElements.add(new SimpleNode(\"Union of the other sets\", union));\n return topElements;\n }\n // original from being disposed.\n return Observables.proxyObservableSet(element.getChildren());\n }", "title": "" }, { "docid": "19130631656ee02c27309b28e474c797", "score": "0.4884138", "text": "public interface SourceInterface {\n void onCompleted();\n void onFetchError(String error);\n void onSuccessfullyFetched(Sources sources);\n Observable<Sources> getSources();\n\n}", "title": "" }, { "docid": "578783760bbb6320c7f205eff69d342a", "score": "0.48774564", "text": "public UnmodifiableObservableList<Entry> asObservableList() {\n return new UnmodifiableObservableList<>(internalList);\n }", "title": "" }, { "docid": "2c4957cc1d4cc2801eb0acb2aebff4cb", "score": "0.48539174", "text": "@Override\n public ObservableSource<? extends MovieCollection> call() throws Exception {\n Cursor cursor = null;\n MovieCollection collection;\n try {\n cursor = mContext.getContentResolver().query(DatabaseContract.MovieEntry.CONTENT_URI,\n DatabaseContract.MovieEntry.ALL_COLUMNS,\n null,\n null,\n null);\n\n List<Movie> results = new ArrayList<>(0);\n\n while (cursor != null && cursor.moveToNext()) {\n results.add(Movie.fromCursor(cursor));\n }\n\n collection = MovieCollection.builder()\n .setPage(page)\n .setResults(results)\n .setTotal_pages(1)\n .setTotal_results(results.size())\n .build();\n\n return Observable.just(collection);\n } finally {\n if (cursor != null) {\n cursor.close();\n }\n }\n }", "title": "" }, { "docid": "73e39d0282a245258218e516d85a1dc2", "score": "0.48504534", "text": "public interface ItemsRepository {\n Observable<List<com.rkpattanaik.democlean.data.model.Item>> getAll(int fileNo);\n}", "title": "" }, { "docid": "e71afd2c5f308d5c5733b4df2b655b82", "score": "0.48462942", "text": "public void update(Observable p_Observable);", "title": "" }, { "docid": "0e49131d68457792e419478bdf06e97d", "score": "0.48343349", "text": "private Observable<List<City>> fromDatabase() {\n return Observable.just(\n Select.from(City.class).list()\n )\n .doOnNext(new Action1<List<City>>() {\n @Override\n public void call(List<City> cities) {\n Timber.w(\"Loading from database...\");\n toMemory(cities);\n }\n })\n .subscribeOn(Schedulers.io())\n .observeOn(AndroidSchedulers.mainThread());\n }", "title": "" }, { "docid": "0bd38442e73ae850f18ca0546e08a4ac", "score": "0.4823012", "text": "public static <E> ObservableList<E> observableList(List<E> list) {\n if (list == null) {\n throw new NullPointerException();\n }\n return list instanceof RandomAccess ? new ObservableListWrapper<E>(list) :\n new ObservableSequentialListWrapper<E>(list);\n }", "title": "" }, { "docid": "dac915d12d63c06b423af35821a7a655", "score": "0.48147553", "text": "@Test\n public void exercise5() {\n playerA\n .subscribeOn(Schedulers.newThread())\n .contains(specialCard) // Single<Boolean>\n .flatMapObservable(b -> {\n System.out.println(\"Does A have the special card? \" + b);\n return b ? poker.getCardsByName(\"Bob\") : Observable.empty();\n })\n .doOnComplete(() -> System.out.println())\n .subscribe(card -> System.out.print(card + \" \"));\n }", "title": "" }, { "docid": "828b1645c99d36f1839044def62bace2", "score": "0.48138732", "text": "public ObservableTransformer<Response<T>, Response<Result<T>>> mo100106c() {\n return OperatorNetwork.m109760a(this.f78469a.f78470b, this.f78469a.f78471c);\n }", "title": "" }, { "docid": "da702c6c5306af417e87959a038b6f4f", "score": "0.48110205", "text": "@SuppressWarnings(\"unchecked\")\n public static <E> ObservableList<E> observableArrayList() {\n return observableList(new ArrayList());\n }", "title": "" }, { "docid": "afa939daa94041fa403a63333a8e9f78", "score": "0.4806922", "text": "public Single<CurrentResponse> currentFromDb(){\n return currentDao.getCurrent()\n .subscribeOn(provider.io())\n .observeOn(provider.io());\n }", "title": "" }, { "docid": "648e7a2d60be360ba4af98998fdca00a", "score": "0.48057878", "text": "public interface IObservable<T> {\n void addObserver(IObserver<T> observer);\n boolean removeObserver(IObserver<T> observer);\n\n void notifyObservers(T argument);\n}", "title": "" }, { "docid": "c3916cff8ec7833b99440a0752932a30", "score": "0.47997126", "text": "public Observable<DataEvent> startStream() {\n return Observable.\n interval(initialDelay,pollingInterval, TimeUnit.SECONDS, Schedulers.io())\n .compose(this::chainTheRequest)\n .mergeWith(EventMerger.getUiEvents().compose(this::chainTheRequest))\n .publish().refCount();\n }", "title": "" }, { "docid": "26394d03270acbb13aa204003e0990b9", "score": "0.4790247", "text": "public interface RaceP {\n Observable<IRaceM> getResult(Race race);\n}", "title": "" }, { "docid": "0205ecbf16e894e157188c81a0456843", "score": "0.47884256", "text": "public final Observable<Response<LiveRoom>> mo120791a(String str) {\n C32569u.m150519b(str, C6969H.m41409d(\"G7D8BD01BAB35B916EF0A\"));\n return ((AbstractC27934b) Net.createService(AbstractC27934b.class)).mo116075a(str, \"\");\n }", "title": "" }, { "docid": "b618c1286458fb6e79e9991fb8700b43", "score": "0.47773334", "text": "public interface IMainModel {\n\n void FindItems(boolean isLoadmoreData, OnFinishedListener onFinishedListener);\n\n Observable<? extends Object> getData();\n\n Observable<List<? extends Object>> getItems();\n\n}", "title": "" }, { "docid": "223de2bc3529fc7052800a7afb18d3a5", "score": "0.4765839", "text": "private static Subscriber<String> createSimpleSubscriber() {\n return new Subscriber<String> () {\n @Override\n public void onNext(String s) { System.out.println(s); }\n \n @Override\n public void onCompleted() { }\n \n @Override\n public void onError(Throwable e) { }\n };\n }", "title": "" }, { "docid": "0fd6efa367ea7407730a5923dff33aff", "score": "0.47642457", "text": "public interface LiveApiService {\n\n @GET(\"AppNewIndex/common?_device=android\" +\n \"&appkey=1d8b6e7d45233436&build=502000\" +\n \"&mobi_app=android\" +\n \"&platform=android\" +\n \"&scale=xxhdpi\" +\n \"&ts=1494921155000\" +\n \"&sign=2461e5390b2f23c7f89c10295525b763\")\n Observable<LiveAppIndexBean> getLiveAppIndex();\n}", "title": "" }, { "docid": "1ebe6c197d90c6614c33e662a674bc81", "score": "0.4757584", "text": "public Mono<ParsedData> getParsedData() {\n getWeatherFromApi();\n return Mono.fromCallable(() -> parsedData);\n\n }", "title": "" }, { "docid": "f98ab4f0764b54767ae3e9cea5b676a1", "score": "0.47533682", "text": "public Observable<DataSetInsertResult> getNextObservable() {\n return mNextSubject.asObservable();\n }", "title": "" }, { "docid": "a1592f01dd2a85d7b171d544529a07c4", "score": "0.47530624", "text": "public interface Publish {\n\n @GET(DataAddress.URL_PUBLISH)\n Observable<ResponseBody> publish(\n @Query(\"topicTitle\") String topicTitle,\n @Query(\"topicContent\") String topicContent,\n @Query(\"typeDiv\") String typeDiv,\n @Query(\"topicLabel\") String topicLabel,\n @Query(\"contentDiv\") String contentDiv\n );\n\n @GET(DataAddress.URL_GET_PUBLISH_MORE)\n Observable<PublishData> getPublish(\n @Query(\"pageNum\") String pageNum\n );\n\n}", "title": "" }, { "docid": "155f580fb62a1852e847b4c73e378eb4", "score": "0.47526282", "text": "public SAFObservable() {\r\n obs = new HashSet<SAFObserver>();\r\n }", "title": "" }, { "docid": "d801220fcf1cf95843dcc282cf5ab99c", "score": "0.47420138", "text": "@Override\n public void update(Observable observable, Object o) {\n }", "title": "" }, { "docid": "e0d392419bce6f34a8db8e2767c67c2e", "score": "0.4735472", "text": "@GET(\"yql/\")\r\n Observable<YahooWeatherPojo> getWeather(@Query(\"q\") String query,\r\n @Query(\"format\") String format);", "title": "" }, { "docid": "32542906fffda234c3d976bde9c9bd90", "score": "0.4725916", "text": "Object raw();", "title": "" }, { "docid": "38ea99befaa180786f23204e3079b3c6", "score": "0.47257453", "text": "String emit();", "title": "" }, { "docid": "a64f7fbd22407fb6177c97e719a549c3", "score": "0.47219133", "text": "public static void main(String[] args) {\n Observable<String> myObservable = createSimpleObserver();\n\n // Create a simple subscriber\n Subscriber<String> mySubscriber = createSimpleSubscriber();\n\n // Make the subscription, once the subscription is made, myObservable calls the \n // subscriber's onNext() and onComplete() methods.\n myObservable.subscribe(mySubscriber);\n\n // Simple Version\n // Observable.just() emits a single item then completes just like the example above\n Observable<String> myObservable2 = Observable.just(\"Hello, World!\");\n\n // Consumers can define each part of a Subscriber. Observable.subscribe can handle 1 - 3 Consumer\n // parameters that take the place of onNext(), onError(), and onComplete(). Replicating our Subscriber \n // from before\n Consumer<String> onNextConsumer = new Consumer<String>() {\n @Override\n public void accept(String t) {\n System.out.println(t);\n }\n };\n Consumer<String> onCompleteConsumer = new Consumer<String>() {\n @Override\n public void accept(String t) {\n\n }\n };\n Consumer<String> onErrorConsumer = new Consumer<String>() {\n @Override\n public void accept(String t) {\n\n }\n };\n myObservable2.subscribe(onNextConsumer, onErrorConsumer, onCompleteConsumer);\n // or through chaining\n Observable.just(\"Hello, World\").subscribe(new Consumer<String>() {\n @Override\n public void accept(String s) {\n System.out.println(s);\n }\n });\n // use lambda\n Observable.just(\"Hello, World\").subscribe(s -> System.out.println(s));\n }", "title": "" }, { "docid": "561ae5955acf29e6038a357ec884a61f", "score": "0.4720219", "text": "interface IStoriesBiz {\n Observable<LatestStories> getLatestStories();\n\n Observable<BeforeStories> getBeforeStories(String date);\n}", "title": "" }, { "docid": "7547171cf9e1c23a95f627645a924a32", "score": "0.47182322", "text": "private Observable<Order> getCreateOrderResult(\n CreateOrderUseCase.RequestValues getOrderRequest) {\n return mCreateOrderUseCase.run(getOrderRequest)\n .map(new Func1<CreateOrderUseCase.ResponseValue, Order>() {\n @Override\n public Order call(CreateOrderUseCase.ResponseValue o) {\n return o.getOrder();\n }\n });\n }", "title": "" }, { "docid": "aab07c1b6e3a6c96b02d5e9b3acd5a3f", "score": "0.47084183", "text": "public interface ObservableSource<T> {\n\n void subscribe(Observer<? super T> observer);\n}", "title": "" } ]
287cb6a5add81c4caa988131d3e4d65f
Getting DDL of Table.
[ { "docid": "c9b25fc74331946c4b09ea6fb48bcea9", "score": "0.66282725", "text": "public static String getTableDDL(String schemaName, String tableName) {\n\n Statement statement = null;\n String result = null;\n ResultSet resultSet = null;\n try {\n statement = DataBaseManager.getConnection().createStatement();\n resultSet = statement.executeQuery(Requests.DDL_OF_TABLE + schemaName + \".\" + tableName + \";\");\n while (resultSet.next()) {\n result = resultSet.getString(\"Create Table\");\n }\n resultSet.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n return result;\n }", "title": "" } ]
[ { "docid": "19108f428472c260f3f24560e540f433", "score": "0.66825414", "text": "public Document getDDL() {\n return ddl;\n }", "title": "" }, { "docid": "8c9723f3e029817b3d64c9b0b6ce11c4", "score": "0.6413636", "text": "public static String getDropTable() {\n\n String sqltblCreate = \"DROP TABLE IF EXISTS \" + Table.TABLE_CONTACTS;\n\n return sqltblCreate;\n }", "title": "" }, { "docid": "b219470112f2fee942c3ed0c4d139a25", "score": "0.63925576", "text": "@Override\n public String getCreateTableStatement() {\n return \"CREATE TABLE \";\n }", "title": "" }, { "docid": "3407b11f6d0b1f668bb96a1fe4f58021", "score": "0.6300551", "text": "public String getSQLTable() {\n\t\treturn tfTable.getText();\n\t}", "title": "" }, { "docid": "2e378dcc33fea770b2b423f53ce619c8", "score": "0.6275237", "text": "private String getCreateTableSQL(DstTableDef dtd) {\n\t\tString result = \"CREATE TABLE \" + dtd.getName() + \" (\\n\";\n\t\tString primaryKeys = \"\";\n\t\tboolean first = true;\n\t\t\n\t\tfor (DstColumn column : dtd.getDstColumn()) {\n\t\t\tresult = result + getTableColumnSQL(column,dtd.getName(),first);\n\t\t\tif ((column.isPrimaryKey()!=null)&&(column.isPrimaryKey()))\n\t\t\t\tprimaryKeys= primaryKeys+column.getName()+\",\";\n\t\t\t\n\t\t\tif (first)\n\t\t\t\tfirst = false;\n\t\t}\n\t\t\n\t\tif (!primaryKeys.equals(\"\"))\n\t\t\tprimaryKeys = \",\\n\\tPRIMARY KEY (\"+primaryKeys.substring(0,primaryKeys.length()-1)+\")\";\n\t\t\n\t\tresult = result + primaryKeys + \"\\n)\";\n\t\t\n\t\tif ((dtd.getInherits() != null) && (!dtd.getInherits().equals(\"\"))) {\n\t\t\tresult = result + \" INHERITS (\" + dtd.getInherits() + \")\";\n\t\t}\n\n\t\treturn result + \";\\n\";\n\t}", "title": "" }, { "docid": "2f4d0f6738733b938b4b09e573f905e6", "score": "0.62643677", "text": "public String getDbTable() {\n\t\treturn SqlFieldConstants.ATT_TABLE_PREFIX + mId;\n\t}", "title": "" }, { "docid": "8621faab99afc82b2ffe6b0d2760927b", "score": "0.61501575", "text": "public void createDDL() {\n EdgeConvertGUI.setReadSuccess(true);\n databaseName = generateDatabaseName();\n \n sb.append(\"This is sample output!\\r\\n\");\n sb.append(\"Number of tables: \"+tables.length+\"\\r\\n\");\n sb.append(\"Number of fields: \"+fields.length+\"\\r\\n\\r\\n\");\n \n sb.append(\"Outputting Tables:\\r\\n\");\n for (int i=0; i<tables.length; i++){\n sb.append(tables[i].toString() +\"\\r\\n\");\n }\n sb.append(\"Outputting Fields:\\r\\n\");\n for (int i=0; i<fields.length; i++){\n sb.append(fields[i].toString() +\"\\r\\n\");\n }\n }", "title": "" }, { "docid": "2473ce7ab79bf0fca0554b1523626e22", "score": "0.6103411", "text": "@Override\n public String getDataTablespaceDDL(IVariables variables, DatabaseMeta databaseMeta) {\n return getTablespaceDDL(\n variables, databaseMeta, databaseMeta.getIDatabase().getDataTablespace());\n }", "title": "" }, { "docid": "8e364831a559bbb5eba16328097d0361", "score": "0.60600656", "text": "public String getCreateTable() \r\n {\r\n String statement = \"CREATE TABLE \" + name;\r\n statement += \" (\\n\"; // next line\r\n Collection<Column> columns = this.columns.values();\r\n\r\n // add the name of the column the type and check if the value can't be NULL\r\n for(Column column : columns) \r\n {\r\n statement += \" \" + column.getName() + \" \" + column.getType()\r\n +this.nullable(column) + \",\\n\";\r\n }\r\n\r\n // check for column with primary key\r\n Column[] array = new Column[columns.size()];\r\n array = columns.toArray(array);\r\n statement += \" PRIMARY KEY (\";\r\n for(int i = 0; i < columns.size(); i++) \r\n {\r\n Column column = array[i];\r\n\r\n if(column.isPrimary()) \r\n {\r\n statement += column.getName() + \", \";\r\n }\r\n }\r\n\r\n statement = statement.substring(0, statement.lastIndexOf(\", \")); // removing unwanded ,\r\n statement += \"),\\n\"; // next line\r\n\r\n // check for the foreign key and show the connection between the tables\r\n for(Column column : columns) \r\n {\r\n if(column.hasReference()) \r\n {\r\n statement += \" FOREIGN KEY (\" + column.getName() + \") REFERENCES \" + column.getReference() + \",\\n\";\r\n }\r\n }\r\n\r\n statement = statement.substring(0, statement.lastIndexOf(\",\")); // remove unwanted ,\r\n statement += \"\\n);\"; // next line\r\n\r\n return statement; // return the final string\r\n }", "title": "" }, { "docid": "62330c74027d707eb78eba32dc81dc27", "score": "0.6026298", "text": "String getTableName();", "title": "" }, { "docid": "1589f2f887b1ffd11db0b5778d3adfb9", "score": "0.5992997", "text": "public DataTableDef getDataTableDef() {\n checkSafeOperation(); // safe op\n\n return data_source.getDataTableDef();\n }", "title": "" }, { "docid": "e94ceb6783eb5869c14750848baf2d62", "score": "0.59690416", "text": "java.lang.String getTableName();", "title": "" }, { "docid": "46c2a51275bbb1a916d228fb321704e0", "score": "0.5968913", "text": "private String getDDL() {\n String response = (String) JOptionPane.showInputDialog(\n null,\n \"Select a product:\",\n \"Create DDL\",\n JOptionPane.PLAIN_MESSAGE,\n null,\n productNames.toArray(),\n null); // prompt\n\n if (response == null) return \"CANCELLED\"; // return cancel if cancelled\n\n int selected;\n for (selected = 0; selected < productNames.size(); selected++) { // get the product name\n if (response.equals(productNames.get(selected))) {\n break;\n }\n }\n\n builder = builders.get(selected); // get the builder\n builder.setTables(mediator.getSchema().getTables()); // set tables in the builder\n if (builder.requiresDatabaseName()) { // check to see if database name is required\n String databaseName = getDatabaseName(); // ask for database name\n if (databaseName == null) {\n return \"CANCELLED\";\n }\n builder.setDatabaseName(databaseName);// set the database name\n }\n return builder.buildDDL(); // build ddl\n }", "title": "" }, { "docid": "a40d27abf65b7ea82cd44b825a8a81f6", "score": "0.5944441", "text": "private TableSchema getTableSchema() {\n String tableName = tableDesc.name();\n return dbSchema.getTableSchema(tableName);\n }", "title": "" }, { "docid": "53c62d71a8f2cc0ecf05ef1b9ca88432", "score": "0.5918963", "text": "abstract @Nullable String getTableDescription();", "title": "" }, { "docid": "bf459b2b682b7efdd0caa35fc2da1eae", "score": "0.59119725", "text": "public String getTableName();", "title": "" }, { "docid": "bf459b2b682b7efdd0caa35fc2da1eae", "score": "0.59119725", "text": "public String getTableName();", "title": "" }, { "docid": "bf459b2b682b7efdd0caa35fc2da1eae", "score": "0.59119725", "text": "public String getTableName();", "title": "" }, { "docid": "bf459b2b682b7efdd0caa35fc2da1eae", "score": "0.59119725", "text": "public String getTableName();", "title": "" }, { "docid": "8ea46aefdcff2ed8f5703a3c472aadc3", "score": "0.5908559", "text": "public static String getCreateTableQuery() {\n return MakeCreateTableQuery.makeString(NOME_TABELA, new StringsCampo[]{\n new StringsCampo(BD_ID, BD_ID_TIPO),\n new StringsCampo(BD_CREATE_TIME, BD_CREATE_TIME_TIPO),\n new StringsCampo(BD_UPDATE_TIME, BD_UPDATE_TIME_TIPO)\n });\n }", "title": "" }, { "docid": "c88ce7ff0944872990ae74921ba8c22d", "score": "0.5818233", "text": "public tinySQLTableView getTable()\n {\n return table;\n }", "title": "" }, { "docid": "eacd1f4cd9d56c6f41c76610ac7988ed", "score": "0.58016324", "text": "public abstract String buildDropColumnString(String table, String columnName);", "title": "" }, { "docid": "d85e8238e32eb063c9c77d57cf5a5966", "score": "0.5796043", "text": "@Override\n public Table<?> getTable() {\n return TABLE;\n }", "title": "" }, { "docid": "9ead9f704f5b40a67a86ef0d36c5bdbe", "score": "0.5775621", "text": "public DbDdlSyntax getDdlSyntax() {\r\n\t\treturn ddlSyntax;\r\n\t}", "title": "" }, { "docid": "20e2371fc1603a1c3a5f8426e45a1da1", "score": "0.57707214", "text": "public CreateTableData createTable() {\r\n lex.eatKeyword(\"table\");\r\n String tblname = lex.eatId();\r\n lex.eatDelim('(');\r\n Schema sch = fieldDefs();\r\n lex.eatDelim(')');\r\n return new CreateTableData(tblname, sch);\r\n }", "title": "" }, { "docid": "9af493873577e5b1e9e768c877f1253c", "score": "0.5736451", "text": "public ArrayList<String> getTableDefinition(String tableName, DatabaseMetaData md){\n \tArrayList<String> tableDefinition = new ArrayList<String>();\n \ttry(ResultSet rs = md.getColumns(null, null, tableName, \"%\");){\n\t\t\twhile(rs.next()){\n\t\t\t\ttableDefinition.add(rs.getString(4));\n\t\t\t}\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n \treturn tableDefinition; \t\n }", "title": "" }, { "docid": "154ce7c428737b38eb3133fb6e075a57", "score": "0.5735745", "text": "public java.lang.String getTable() {\n\t\treturn table;\n\t}", "title": "" }, { "docid": "0b9398bb48944dd391c9549c05367825", "score": "0.5731613", "text": "@NonNull\n public static String getCreateTableQuery() {\n return \"CREATE TABLE \" + TABLE + \"(\"\n + COLUMN_ID + \" INTEGER PRIMARY KEY AUTOINCREMENT , \"\n + COLUMN_AUTHOR + \" TEXT NOT NULL, \"\n // + COLUMN_READER + \" INTEGER NOT NULL, \"\n + COLUMN_TITLE + \" TEXT NOT NULL\"\n + \");\";\n }", "title": "" }, { "docid": "1a651634a1ad53310bb40c34fa4a90ad", "score": "0.56948936", "text": "Table getTable();", "title": "" }, { "docid": "34385f3381dd21e9d145dc6c8ca49488", "score": "0.56816417", "text": "public Table getTable();", "title": "" }, { "docid": "dc779d064777c14b0c96db01e18afbd8", "score": "0.5679282", "text": "String getTable() {\n return this.table;\n }", "title": "" }, { "docid": "a82a711e177338c2db3f4169c2a7691a", "score": "0.5668448", "text": "public interface DDL {\n\n\t//TODO : finalize the drop protocol (and test it), this requires the capacity to 'idify cursors. Tables are by \"class\", what about cursor ?\n\t\n\t<T> void dropTable(Class<T> table);\n\t\n\t<T> void atomicCreateTable(Class<T> table, Column<T, ?>... columns);\n\n}", "title": "" }, { "docid": "8ecf0b2092eb443e10ed106f76c0e6d5", "score": "0.5640849", "text": "String getTable();", "title": "" }, { "docid": "13226d2553ac57f716637d8e529e8e0d", "score": "0.5635626", "text": "public abstract String tableName();", "title": "" }, { "docid": "8aa46bc53fb210ba39b79cde7c66e74d", "score": "0.56353486", "text": "Table createTable();", "title": "" }, { "docid": "435fbc3f88eea080fe8706d2ab7fba61", "score": "0.5612052", "text": "public String getCreateTable(String schemaAndTableName) throws SQLException;", "title": "" }, { "docid": "97e11bfe06eb09b35e34e8073050d76e", "score": "0.5595722", "text": "public TextField getCreateTableInput() {\n return createTableInput;\n }", "title": "" }, { "docid": "4f8f16b89c23b697f2c7f8d2d32bbb22", "score": "0.558243", "text": "ISqlTableDefinition define();", "title": "" }, { "docid": "00a42039c81241108f0e529786ce43c9", "score": "0.55749196", "text": "public String getTablespaceDDL(\n IVariables variables, DatabaseMeta databaseMeta, String tablespaceName) {\n return \"\";\n }", "title": "" }, { "docid": "54f1856cc32f0db495081527a0bc07a5", "score": "0.5566236", "text": "@Override\n public String getIndexTablespaceDDL(IVariables variables, DatabaseMeta databaseMeta) {\n return getTablespaceDDL(\n variables, databaseMeta, databaseMeta.getIDatabase().getIndexTablespace());\n }", "title": "" }, { "docid": "4e96b9dacbd8c3c3d6b9f32becc961ef", "score": "0.5537556", "text": "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder(\"CREATE TABLE \").append(name).append(\" (\");\n\n for (ColumnInfo ci: columnInfos) {\n sb.append(ci);\n sb.append(\", \");\n }\n if (columnInfos.size() > 0)\n sb.delete(sb.length() - 2, sb.length());\n\n sb.append(\")\");\n\n return sb.toString();\n }", "title": "" }, { "docid": "cbae6950cdce37ad8a4ea4699d954ed8", "score": "0.55289733", "text": "private String getCreateTableSql() {\n StringBuffer stringBuffer = new StringBuffer();\n stringBuffer.append(\"create table if not exists \");\n stringBuffer.append(tableName + \"(\");\n //反射得到所有的成员变量\n Field[] fields = entityClass.getDeclaredFields();\n for (Field field : fields) {\n Class type = field.getType();//拿到成员的类型\n if (field.getAnnotation(DbField.class) != null) {\n if (type == String.class) {\n stringBuffer.append(field.getAnnotation(DbField.class).value() + \" TEXT,\");\n } else if (type == Integer.class) {\n stringBuffer.append(field.getAnnotation(DbField.class).value() + \" INTEGER,\");\n } else if (type == Long.class) {\n stringBuffer.append(field.getAnnotation(DbField.class).value() + \" BIGINT,\");\n } else if (type == Double.class) {\n stringBuffer.append(field.getAnnotation(DbField.class).value() + \" DOUBLE,\");\n } else if (type == byte[].class) {\n stringBuffer.append(field.getAnnotation(DbField.class).value() + \" BLOB,\");\n } else {\n //不支持的类型号\n continue;\n }\n } else {\n if (type == String.class) {\n stringBuffer.append(field.getName() + \" TEXT,\");\n } else if (type == Integer.class) {\n stringBuffer.append(field.getName() + \" INTEGER,\");\n } else if (type == Long.class) {\n stringBuffer.append(field.getName() + \" BIGINT,\");\n } else if (type == Double.class) {\n stringBuffer.append(field.getName() + \" DOUBLE,\");\n } else if (type == byte[].class) {\n stringBuffer.append(field.getName() + \" BLOB,\");\n } else {\n //不支持的类型号\n continue;\n }\n }\n\n }\n if (stringBuffer.charAt(stringBuffer.length() - 1) == ',') {\n stringBuffer.deleteCharAt(stringBuffer.length() - 1);\n }\n stringBuffer.append(\")\");\n return stringBuffer.toString();\n }", "title": "" }, { "docid": "d2a2fe8ee8c2be2a0860bd3a50f42769", "score": "0.55223536", "text": "public abstract CreateTableRequest getTableSchema();", "title": "" }, { "docid": "d659615ea294be4b20503aac14213f03", "score": "0.5516888", "text": "public Table getTable() {\n return table;\n }", "title": "" }, { "docid": "d659615ea294be4b20503aac14213f03", "score": "0.5516888", "text": "public Table getTable() {\n return table;\n }", "title": "" }, { "docid": "d5a168a93f3d262eda0c86bdd35b235b", "score": "0.548772", "text": "public String getTableName() {\n return tableName;\n }", "title": "" }, { "docid": "17f75db61ab075bf02c9f8e022bf529d", "score": "0.5482878", "text": "public String getTableName()\n {\n return (m_tableName);\n }", "title": "" }, { "docid": "ace2897534e60ba690bceb363c2849dc", "score": "0.54773784", "text": "public String getName() {\n return table_name;\n }", "title": "" }, { "docid": "a80c57da70d64e318ca134bd41aed664", "score": "0.54568815", "text": "public String getTableName() {\n return _tableName;\n }", "title": "" }, { "docid": "e5c47a86334ebcac892dbd65a162ad66", "score": "0.5434753", "text": "public String getTableName() {\r\n return this.tableName;\r\n }", "title": "" }, { "docid": "7a500b05ca71120e50a4be73e6dd056a", "score": "0.542971", "text": "static String getCreateDataVersionTableSQL() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"CREATE TABLE IF NOT EXISTS \")\n .append(YellowDataVersionTable.TABLE_NAME).append(\" (\");\n sb.append(YellowDataVersionTable._ID).append(\" INTEGER PRIMARY KEY autoincrement,\");\n sb.append(YellowDataVersionTable.TAG_DATA).append(\" TEXT,\"); // add by zjh 2014-12-05\n sb.append(YellowDataVersionTable.VERSION_DATA).append(\" INTEGER\");\n sb.append(\");\");\n return sb.toString();\n }", "title": "" }, { "docid": "6abfa9cbe3ab006261b0c70687c65298", "score": "0.54292876", "text": "public String getTableName() {return this.tableName;}", "title": "" }, { "docid": "53345fcdec3fdf866a309f3612910690", "score": "0.5424031", "text": "@Override\r\n\tpublic String getTableName() {\n\t\treturn TABLE_NAME;\r\n\t}", "title": "" }, { "docid": "53345fcdec3fdf866a309f3612910690", "score": "0.5424031", "text": "@Override\r\n\tpublic String getTableName() {\n\t\treturn TABLE_NAME;\r\n\t}", "title": "" }, { "docid": "de85dc68cc400de9e72acb07ec96b8f4", "score": "0.54219294", "text": "public String getBuilderType() {\n return \"Table\";\n }", "title": "" }, { "docid": "7ffe427bcfa2bf18ba73695cc2c5fd86", "score": "0.5420388", "text": "String getTableName_java_lang_String_();", "title": "" }, { "docid": "8f7b8fb33ea6159e28a4772f5b5586dc", "score": "0.5420117", "text": "public String getTableName() {\n return tableName;\n }", "title": "" }, { "docid": "8f7b8fb33ea6159e28a4772f5b5586dc", "score": "0.5420117", "text": "public String getTableName() {\n return tableName;\n }", "title": "" }, { "docid": "8f7b8fb33ea6159e28a4772f5b5586dc", "score": "0.5420117", "text": "public String getTableName() {\n return tableName;\n }", "title": "" }, { "docid": "8f7b8fb33ea6159e28a4772f5b5586dc", "score": "0.5420117", "text": "public String getTableName() {\n return tableName;\n }", "title": "" }, { "docid": "d1dfd93b6627f1929126e1c157bad568", "score": "0.54163826", "text": "public String getTableName() {\n return this.tableName;\n }", "title": "" }, { "docid": "3e3d6dd9cbbd16f8f022d95cd0396b8f", "score": "0.5409394", "text": "String generateCreateTableQuery(Entity entity);", "title": "" }, { "docid": "a1bef40c9e2c713d25877a0e109580b4", "score": "0.5406777", "text": "public TableMetadata getTable() {\n return table;\n }", "title": "" }, { "docid": "c8cef746b7bb8a0a638feb04f0286eb2", "score": "0.5393531", "text": "static String getCreateHabitDataTableSQL() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"CREATE TABLE IF NOT EXISTS \")\n .append(HabitDataTable.TABLE_NAME).append(\" (\");\n sb.append(HabitDataTable._ID).append(\" INTEGER PRIMARY KEY autoincrement,\");\n sb.append(HabitDataTable.SERVICE_ID).append(\" LONG,\");\n sb.append(HabitDataTable.SOURCE_TYPE).append(\" TEXT,\");\n sb.append(HabitDataTable.CONTENT_TYPE).append(\" TEXT,\");\n sb.append(HabitDataTable.CONTENT_DATA).append(\" TEXT,\");\n sb.append(HabitDataTable.ISUPLOAD).append(\" INTEGER,\");\n sb.append(HabitDataTable.TIME).append(\" TEXT\");\n sb.append(\");\");\n return sb.toString();\n }", "title": "" }, { "docid": "023d913ce8f728fc6e983500ff6d9cd1", "score": "0.5390032", "text": "TABLE createTABLE();", "title": "" }, { "docid": "1c3db7509f8ca8062f24cd31f21f24c2", "score": "0.538838", "text": "public TableDefinition getTableDefinition() throws ReportExecutorException;", "title": "" }, { "docid": "7e8d89ade1bc784b5822b20e4423377b", "score": "0.53864306", "text": "@Override\n\tpublic String getTableName() {\n\t\treturn SHOWDETAIL.TABLE;\n\t}", "title": "" }, { "docid": "b47cffc85af5db4ae1adde8ae7388554", "score": "0.5384093", "text": "public CreateDDLExample() { //default constructor with empty arg list for to allow output dir to be set before there are table and field objects\n \n }", "title": "" }, { "docid": "ce528bb0fa18d70bdc5e89d7bf333b75", "score": "0.53839165", "text": "@Override\r\n\tpublic String getTableName() {\n\t\treturn \"ZZ5_DA_BZDRZJB\";\r\n//\t\treturn \"LCSW.ZZ5_DA_BZDRZJB\";\r\n\t}", "title": "" }, { "docid": "2a61c8c7c5868840e5e2f05364a95a1f", "score": "0.53770196", "text": "public String getTable_name() {\n\t\treturn table_name;\n\t}", "title": "" }, { "docid": "fa0e2afd44e9b1014fe2ddbf791ee448", "score": "0.5374213", "text": "public String getTableName() {\r\n return TABLE_NAME;\r\n }", "title": "" }, { "docid": "956ad4644f2c604b741667261ae6d070", "score": "0.5372199", "text": "public DynamicTable getDynamicTable() {\n return (DynamicTable)getTable();\n }", "title": "" }, { "docid": "d246ff0caf602730f464eae04d71e415", "score": "0.5371642", "text": "public ResultSet complete_dept_table() {\n\t\tif (init()) {\n\t\t\tString read = \"SELECT * FROM dept_db\";\n\t\t\ttry {\n\t\t\t\tStatement create_statement = connection.createStatement();\n\t\t\t\tResultSet result = create_statement.executeQuery(read);\n\t\t\t\tconnection.close();\n\t\t\t\treturn result;\n\t\t\t} catch (SQLException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "252d1413a39890b0f16d77ce07138382", "score": "0.5347958", "text": "public String getTableName (){\n\t\treturn tableName;\n\t}", "title": "" }, { "docid": "d4ee783b31259d7c1b350fd8a9d96f45", "score": "0.53451544", "text": "public String dapDescription() {return EDStatic.EDDTableDapDescription; }", "title": "" }, { "docid": "bcf5df846d22863b9072352b4aee6c6c", "score": "0.5337403", "text": "@Override\n public List<TableDefinition> getTableDefinitions()\n {\n return tableDefinitions;\n }", "title": "" }, { "docid": "d60270c92114a201ca93e393d75a4bad", "score": "0.5328929", "text": "public String getTableName()\r\n/* 15: */ {\r\n/* 16:13 */ return this.tableName;\r\n/* 17: */ }", "title": "" }, { "docid": "84df7adca6e8f67ed3387f398b18ce57", "score": "0.53244126", "text": "@Override\n public String getDropColumnStatement(\n String tableName,\n IValueMeta v,\n String tk,\n boolean useAutoIncrement,\n String pk,\n boolean semicolon) {\n return \"ALTER TABLE \" + tableName + \" DROP \" + v.getName() + Const.CR;\n }", "title": "" }, { "docid": "1cddb0008104a31f36a6982468eb199b", "score": "0.5322806", "text": "@Override\n public String getSqlQueryFields(String tableName) {\n return \"SELECT * FROM \" + tableName;\n }", "title": "" }, { "docid": "dd7561cb14224830f59c3b56f42e77d8", "score": "0.5322591", "text": "public static String getTriggerDDL(String schemaName, String triggerName) {\n\n Statement statement = null;\n String result = null;\n ResultSet resultSet = null;\n try {\n statement = DataBaseManager.getConnection().createStatement();\n // Execute the query.\n resultSet = statement.executeQuery(Requests.DDL_OF_TRIGGER + schemaName + \".\" + triggerName + \";\");\n while (resultSet.next()) {\n result = resultSet.getString(\"SQL Original Statement\");\n }\n resultSet.close();\n } catch (SQLException e) {\n e.printStackTrace();\n //log.error(e);\n }\n return result;\n }", "title": "" }, { "docid": "cafe75abe14556f6826cdaf9b9888b9a", "score": "0.53074044", "text": "public /*sealed*/ interface DropTable\n extends\n DDLQuery\n //permits\n // DropTableImpl\n {\n boolean $temporary();\n @NotNull Table<?> $table();\n boolean $ifExists();\n @Nullable Cascade $cascade();\n @NotNull DropTable $temporary(boolean temporary);\n @NotNull DropTable $table(Table<?> table);\n @NotNull DropTable $ifExists(boolean ifExists);\n @NotNull DropTable $cascade(Cascade cascade);\n }", "title": "" }, { "docid": "72d514138c746da3f30638cda0bd4946", "score": "0.5303459", "text": "public static String getCreateTable() {\n\n String sqltblCreate = \"CREATE TABLE \" + Table.TABLE_CONTACTS + \"(\" + Table.KEY_ID\n + \" INTEGER PRIMARY KEY AUTOINCREMENT,\" + Table.KEY_NAME + \" TEXT,\" + Table.KEY_CONTACT + \" TEXT,\"\n + Table.KEY_COMPANY + \" TEXT,\" + Table.KEY_ADDRESS + \" TEXT,\" + Table.KEY_EMAIL + \" TEXT,\"\n + Table.KEY_IMAGE + \" BLOB,\" + Table.KEY_IMAGETWO + \" BLOB\" + \");\";\n\n return sqltblCreate;\n }", "title": "" }, { "docid": "cddcd9206a028e025b27b99429d2b064", "score": "0.52960664", "text": "public String getTableName(){\n return this.tableName;\n }", "title": "" }, { "docid": "4d1def208fbb666a8c3c04ad78576ff1", "score": "0.5290967", "text": "@Override\r\n\tpublic Table createTable() {\n\t\treturn new WoodTable();\r\n\t}", "title": "" }, { "docid": "1f02786577b2d9ed940c4cb6f62cf187", "score": "0.5280535", "text": "public String getTableName()\n {\n return m_tableName;\n }", "title": "" }, { "docid": "3c580eef31313a88a9f5ccd4e2f6aaff", "score": "0.5275209", "text": "@Override\r\n\tpublic String getTableName() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "cfe22f504712b5ffed81d69bcb22c075", "score": "0.5275016", "text": "public int SelectTable() {\n\t\treturn postContentDao.SelectTable();\r\n\t}", "title": "" }, { "docid": "a6e0376407bf53193791658fefca9b89", "score": "0.5257072", "text": "public String getTableName() {\n\t\treturn this.name;\n\t}", "title": "" }, { "docid": "fb23dfa7aa92b047f68ec8cb6f46830f", "score": "0.5256674", "text": "public String getSQLTableName() {\n return sqlTableName;\n }", "title": "" }, { "docid": "5edcfdb5a242b66e94746973c124c791", "score": "0.5254338", "text": "public Table getTable() {\n return this.table;\n }", "title": "" }, { "docid": "28d7c468d673b2013d903ece7acdb393", "score": "0.5252756", "text": "TableName createTableName();", "title": "" }, { "docid": "dabeb10bc07a5cba84460c0ca83d8c13", "score": "0.5246415", "text": "@Override\n\tpublic String table() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "dabeb10bc07a5cba84460c0ca83d8c13", "score": "0.5246415", "text": "@Override\n\tpublic String table() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "01889c500bb5da0474d42af07bfa6467", "score": "0.5228044", "text": "public String getTableDbName();", "title": "" }, { "docid": "548146de1baf22c5355038e6b0d56c99", "score": "0.52028507", "text": "public ArrayList<String> tableNames(){\r\n\t\treturn (tableSpecs.getName());\r\n\t}", "title": "" }, { "docid": "4cf5f8ecc4a6eed0e7148be859b724eb", "score": "0.5202612", "text": "public static String CREATE_TABLE() {\n String CREATE_TABLE = \"CREATE TABLE \" + Outlet.TABLE + \" ( \"\n + Outlet.ID + \" INTEGER PRIMARY KEY AUTOINCREMENT, \"\n + Outlet.GUID + \" TEXT, \"\n + Outlet.KODE + \" TEXT, \"\n + Outlet.NAME + \" TEXT ) \";\n\n return CREATE_TABLE;\n }", "title": "" }, { "docid": "aa5e0181c2b472402fa97d8b652fe873", "score": "0.51969755", "text": "@Override\n\tpublic String getTableName() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "9d3b6c9402b390253eaac2b07a581752", "score": "0.5192857", "text": "public String getTableDbName() {\r\n return \"t_diagramobjects\";\r\n }", "title": "" }, { "docid": "57eb7cbd7d1ac945cc48d9a9fb0a95f3", "score": "0.5188961", "text": "public String getTableName() {\n Table table = getTableAnnotation();\n return table != null ? table.name() : null;\n }", "title": "" }, { "docid": "6ebedc60ef0a4c58c8c8af00e87f6f55", "score": "0.5182245", "text": "private static TableSchema getSchema() {\n List<TableFieldSchema> fields = new ArrayList<>();\n fields.add(new TableFieldSchema().setName(\"word\").setType(\"STRING\"));\n fields.add(new TableFieldSchema().setName(\"count\").setType(\"INTEGER\"));\n fields.add(new TableFieldSchema().setName(\"window_timestamp\").setType(\"TIMESTAMP\"));\n TableSchema schema = new TableSchema().setFields(fields);\n return schema;\n }", "title": "" } ]
29a9ce362db20aa72bb0e8cbd2a8098f
if it is a pawn and moves 2 spaces then it will mark if it moved2
[ { "docid": "2e9d0f5dcc32a1cab063f1690a36a575", "score": "0.6473594", "text": "public void setMoved2(boolean inpt){\n moved2 = inpt;\n }", "title": "" } ]
[ { "docid": "8fc9f051c5e0224ffedf95004c79c1a5", "score": "0.69599193", "text": "public boolean movePawn(Deck d,Pawn p) {\n\t\treturn true;\n\t}", "title": "" }, { "docid": "6affc00d27bdd15d970232c0eee3b647", "score": "0.6918824", "text": "private boolean checkPawnMove_OneSpace(Coordinate from, Coordinate to, Board b)\n\t{\n\t\tPlayerColor movingPieceColor = ((ChessPieceDescriptor) b.getPieceAt(from).getDescriptor()).getColor();\n\t\t\n\t\t// verifying that the pawn is moving one space forward\n\t\tif (from.getRowDistance(to) == 1)\n\t\t{\n\t\t\t// making a vertical move\n\t\t\tif (from.getColumnDistance(to) == 0) \n\t\t\t{\n\t\t\t\t\n\t\t\t\t// verifying that there are no pieces at the \n\t\t\t\t// destination\n\t\t\t\tif (b.getPieceAt(to) == null)\n\t\t\t\t{\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// if there is, not a pawn move\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// pawn is attempting to capture an enemy\n\t\t\telse if (from.getColumnDistance(to) == 1)\n\t\t\t{\n\t\t\t\t// checking movement for a black pawn\n\t\t\t\tif (movingPieceColor.equals(PlayerColor.BLACK))\n\t\t\t\t{\n\t\t\t\t\tif (from.getRow() - 1 == to.getRow())\n\t\t\t\t\t{\n\t\t\t\t\t\t// verifying that the captured piece is not the same color\n\t\t\t\t\t\treturn checkForPieceAtDestination(to, b, movingPieceColor);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// checking movement for a white pawn\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif (from.getRow() + 1 == to.getRow())\n\t\t\t\t\t{\n\t\t\t\t\t\t// verifying that the captured piece is not the same color\n\t\t\t\t\t\treturn checkForPieceAtDestination(to, b, movingPieceColor);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t// conditions were not met to make a one space move\n\t\treturn false;\n\t}", "title": "" }, { "docid": "e3790fbf558d0222d38179a27ac3fcfc", "score": "0.6899923", "text": "public Boolean movePawn(int posX, int posY)\n {\n return true;\n }", "title": "" }, { "docid": "8613f15e3803656c511e60f62e8901e6", "score": "0.6753325", "text": "public void move(int x1, int y1, int x2, int y2, BoardGame bg){\r\n System.out.println(\"pawn moving\");\r\n if(bg.getPiece(x2,y2) == null) {\r\n Piece p = bg.getPiece(x1, y1);\r\n bg.setPiece(x2, y2, p);\r\n bg.setPiece(x1, y1, null);\r\n }else{\r\n eat(x1,y1,x2,y2,bg);\r\n }\r\n }", "title": "" }, { "docid": "ae959a33686478ed5b20ea5e84b4efde", "score": "0.6737557", "text": "private boolean lookMovementPawn2(int i, int j) \n\t{\t\n\t\tif(!checkoutofbounds(i, j) && pieces[i][j] != null)\n\t\t{\n\t\t\tif(pieces[i][j].getColor() != piece.getColor())\n\t\t\t\treturn true;\n\t\t\telse \n\t\t\t\treturn false;\n\t\t}\n\t\telse return false;\n\t}", "title": "" }, { "docid": "213767ad12ea1cf17366c3267dfe81f5", "score": "0.664148", "text": "private boolean lookMovementPawn1(int i, int j) {\n\t\tif(!checkoutofbounds(i, j) && pieces[i][j] == null)\n\t\t\treturn true;\n\t\telse \n\t\t\treturn false;\n\t}", "title": "" }, { "docid": "68334a788c1277e0bbd346f133f67efd", "score": "0.66342777", "text": "private boolean movePawn(int curX, int curY, int newX, int newY, boolean turn) {\n\tif(!getPawnMoves(curX, curY, turn).contains(new Pair(newX, newY)))\n\t\treturn false;\n\telse {\n\t\tif(turn && newX==5 && newY==empAble)\n\t\t\tboard[curX][newY]=0;\n\t\tboard[newX][newY]=board[curX][curY];\n\t\tboard[curX][curY]=0;\n\t\tif(newX==(curX+2) || newX==(curX-2))\n\t\t\tempAble=newY;\n\t\telse\n\t\t\tempAble=-2;\n\t\treturn true;\n\t}\n}", "title": "" }, { "docid": "03a95f86d029885e6c961c6b6fda8337", "score": "0.6590714", "text": "public void movePiece(int pos1, int pos2) {\n board[pos1].select();\n if (pos2 < 8 | pos2 > 54) {\n board[pos1].setKing(true);\n }\n if (pos2 < 0 | pos2 > 63) {\n Toast.makeText(context, \"Piece out of bounds\", Toast.LENGTH_SHORT).show();\n } else {\n board[pos2] = board[pos1];\n board[pos1] = EMPTY_CELL;\n }\n\n }", "title": "" }, { "docid": "930e41df30293017b4fdcef8dc92f9f9", "score": "0.65841717", "text": "boolean hasMove();", "title": "" }, { "docid": "03d468959022d127e5eacabbf4a47f8e", "score": "0.65307176", "text": "public boolean canMove(int x1, int y1, int x2, int y2, BoardGame bg){\r\n System.out.println(\"checking if Pawn can move\");\r\n\r\n if(!super.checkCanMoveGeneral(x1,y1,x2,y2,bg)) return false;\r\n if(y1 != y2) return canEat(x1,y1,x2,y2,bg);\r\n\r\n int bigger, smaller;\r\n if(bg.getPiece(x1,y1).getColor() == Color.black){\r\n bigger = x2; smaller = x1;\r\n }else{\r\n bigger = x1; smaller = x2;\r\n }\r\n\r\n if(firstTurn){\r\n if(bigger-smaller!=1 && bigger-smaller!=2) return false;\r\n for(int i = smaller; i <= bigger; i++){\r\n if(i == x1) continue;\r\n if(bg.checkPiece(i, y1)) return false;\r\n }\r\n return true;\r\n }\r\n\r\n return (bigger-smaller==1 && !bg.checkPiece(x2,y2)); //|| canEat(x1,y1,x2,y2,bg);\r\n }", "title": "" }, { "docid": "ad165fac25bb5ae87c69ccc5b6db08d1", "score": "0.6528117", "text": "boolean isAllowMove();", "title": "" }, { "docid": "78513ab56fa4bfbfe2a80ee507c0e9e0", "score": "0.6514972", "text": "public boolean move();", "title": "" }, { "docid": "1cc18f335ecdf4f48e141a66102db87d", "score": "0.65073764", "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": "69dad868d89332f4b89208e6fbe910b4", "score": "0.6491028", "text": "public int legalMove(int pos1, int pos2){\n switch(pos1 - pos2){\n case -16: //moving down\n if(pos1<48){\n if ((board[pos1].isKing() | board[pos1].getTeam() == TEAM_BLACK) && board[pos2] == EMPTY_CELL\n && checkTeam(board[pos1 + 8].getTeam(), board[pos1].getTeam())) { // take a piece down\n board[pos2].makePossibility();\n return pos1+8;\n }\n }\n break;\n case -2: //moving left\n int[] right = {6, 7, 14, 15, 22, 23, 30, 31, 38, 39, 46, 47, 54, 55, 62, 63};\n if(edges(pos1, right)){\n if (checkTeam(board[pos1].getTeam(), board[pos2+1].getTeam()) &&\n board[pos2] == EMPTY_CELL) { // take a piece right\n board[pos2].makePossibility();\n return pos1+1;\n }\n }\n break;\n case 2: //moving right\n\n int[] left = {0, 1, 8, 9, 16, 17, 24, 25, 32, 33, 40, 41, 48, 47, 56, 57};\n if(edges(pos1,left)){\n if (checkTeam(board[pos1].getTeam(), board[pos2-1].getTeam()) &&\n board[pos2] == EMPTY_CELL) { // take a piece left\n board[pos2].makePossibility();\n return pos1-1;\n }\n }\n break;\n case 16: //moving up\n if(pos1>15) {\n if ((board[pos1].isKing() | board[pos1].getTeam() == TEAM_WHITE) && board[pos2] == EMPTY_CELL\n && checkTeam(board[pos1 - 8].getTeam(), board[pos1].getTeam())) { // take a piece up\n board[pos2].makePossibility();\n return pos1-8;\n }\n }\n break;\n }\n return -1;\n }", "title": "" }, { "docid": "4aca88d94a65e6e76a8a3ef8f1ead488", "score": "0.6423719", "text": "public void move(int row2, int col2) {\r\n \r\n // getting a random spot to spawn the doctor on \r\n int randRow = (int) (Math.random() * 12);\r\n int randCol = (int) (Math.random() * 12);\r\n\r\n // finding a difference between the two coordinates to determine how the doctor will be moving \r\n int row3 = this.row - row2;\r\n int col3 = this.col - col2;\r\n\r\n //if difference of the two coordinates is 1 in any direction of the doctor do the following \r\n if (row3 <= 1 && row3 >= -1 && col3 <= 1 && col3 >= -1) {\r\n this.row = row2; // the old row is now equal to the new one \r\n this.col = col2; // the old col is now equal to the new one \r\n // if the difference of the two coordinates is more then one teleport the doctor to a random row and col\r\n } else {\r\n this.row = randRow;\r\n this.col = randCol;\r\n }\r\n }", "title": "" }, { "docid": "b9d7aa1645b7bce0d813565cbb082eba", "score": "0.6421396", "text": "public void move() {\r\n/* 506 */ if (this.y < 0) {\r\n/* */ \r\n/* 508 */ this.Isdead = true;\r\n/* */ \r\n/* */ }\r\n/* */ else {\r\n/* */ \r\n/* */ \r\n/* 514 */ this.y -= 3;\r\n/* 515 */ this.playerFireRec.setRect(this.x, this.y, this.width, this.height);\r\n/* */ } \r\n/* */ }", "title": "" }, { "docid": "ae93fd19e12e00072126ba47320458dc", "score": "0.64132506", "text": "private void moveOnce() {\n\t\tint x = getPieceX(getCurrentPlayer());\n\t\tint y = getPieceY(getCurrentPlayer());\n\t\tif (y % 2 == 0) {// If y is even\n\t\t\tif (x == 9) {\n\t\t\t\ty++;\n\t\t\t\tsetPiece(getCurrentPlayer(), x, y);// Move up the y\n\t\t\t} else {\n\t\t\t\tx++;\n\t\t\t\tsetPiece(getCurrentPlayer(), x, y);// Move up the x\n\t\t\t}\n\t\t} else {\n\t\t\tif (x == 0 && y != 0) {\n\t\t\t\ty++;\n\t\t\t\tsetPiece(getCurrentPlayer(), x, y);// Move up the y\n\t\t\t} else {\n\t\t\t\tx--;\n\t\t\t\tsetPiece(getCurrentPlayer(), x, y);// Move up the x\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "745ba13c8bab449b831efe6708d8855d", "score": "0.6401243", "text": "private void move() {\n if(this.getPosition().y < 2) {\n this.setPosition(new Point2D.Float(this.getPosition().x, (float) (this.getPosition().y + speed *Time.deltaTime)));\n }\n if(lastMove == 2) {\n lastMove = random.nextInt(2);\n }\n\n if ((lastMove == 0) && moveCounter <= MOVE_DISTANCE) {\n if(this.getPosition().x > 1) {\n this.setPosition(new Point2D.Float(this.getPosition().x - (float)((speed * Time.deltaTime) / 2f), this.getPosition().y));\n }\n else {\n this.setPosition(new Point2D.Float(this.getPosition().x, this.getPosition().y));\n }\n moveCounter++;\n }\n if ((lastMove == 1) && (moveCounter <= MOVE_DISTANCE)) {\n if(this.getPosition().x < 9) {\n this.setPosition(new Point2D.Float(this.getPosition().x + (float)((speed * Time.deltaTime) / 2f), this.getPosition().y));\n }\n else {\n this.setPosition(new Point2D.Float(this.getPosition().x, this.getPosition().y));\n }\n moveCounter++;\n }\n\n if(moveCounter > MOVE_DISTANCE) {\n\n lastMove = 2;\n moveCounter = 0;\n }\n\n }", "title": "" }, { "docid": "4da4864dabeaf0b8ef9d0e5fbbcb3fb8", "score": "0.6398684", "text": "public void moveCheckerPiece(){\n\n }", "title": "" }, { "docid": "7c29193105cd0d44f075b315c5878766", "score": "0.63894236", "text": "public boolean place(int x, int y) {\n\t\tif (moleGrid[x][y] == 'M') return false;\n\t\tmoleGrid[x][y] = 'M';\n\t\tmolesLeft += 1;\n\t\treturn true;\n\t}", "title": "" }, { "docid": "39e9aa2e43fb3af7db7eb480a532626f", "score": "0.63878393", "text": "@Override\n protected void alternativeMove() {\n if(this.mySquare.actionDigging(this.direction)) {\n }\n else normalMove();\n }", "title": "" }, { "docid": "ca58d969f1508eeb046d07b78b8ac0de", "score": "0.638749", "text": "@Override\r\n\tboolean checkLegal(int x1, int y1, int x2, int y2) {\n\t\tif(!(board[x2][y2] == null || board[x2][y2].getColor() != this.getColor())) return false;\r\n\t\t\r\n\t\t//Check normal move\r\n\t\tif((Math.abs(x2-x1)==1 && Math.abs(y2-y1) == 2) || (Math.abs(x2-x1) == 2 && Math.abs(y2-y1) == 1)){\r\n\t\t\treturn true;\r\n\t\t\t\t\t\r\n\t\t}else return false;\r\n\t}", "title": "" }, { "docid": "31a121cd2f5102c0ec048758dc33d417", "score": "0.6386873", "text": "public void doItsThing()\n {\n //this will run if a player has landed on this space\n //send the player to location index \n getPList().get(getTurn()).toggleImprison(true);\n getPList().get(getTurn()).move(10);\n //badabing badaboom\n }", "title": "" }, { "docid": "1ecdee9164e76bbc5f394802db15a92f", "score": "0.63853145", "text": "@Override\n public boolean isValidMove(Tile startTile, Tile endTile) {\n int changeY = Math.abs(endTile.getRow() - startTile.getRow());\n int changeX = Math.abs(endTile.getColumn() - startTile.getColumn());\n\n //checks for overlap\n if (isAllianceOverlap(startTile, endTile))\n return false;\n else\n return (changeX == 2 && changeY == 1) || (changeX == 1 && changeY == 2); //motion for knight\n }", "title": "" }, { "docid": "2b084644a6ca2b1946484dc910cbaeef", "score": "0.6372685", "text": "@Override\r\n public LinkedList<Coordinate> moves(int x, int y, Piece[][] board) {\r\n LinkedList<Coordinate> moveset = new LinkedList<>();\r\n if (team) {//if the moving piece is white\r\n //moving\r\n if (y + 1 <= 7) {\r\n if (board[x][y + 1] == null) {//if the space forward is empty\r\n Coordinate curr = new Coordinate(x, y + 1);\r\n moveset.add(curr);\r\n if (y == 1) {//if the pawn is at the starting position\r\n if ((board[x][y + 2] == null)) {//if the space 2 forward is empty\r\n Coordinate curr2 = new Coordinate(x, y + 2);\r\n moveset.add(curr2);\r\n }\r\n }\r\n }\r\n //attacking\r\n if (x + 1 <= 7) {//if moving down is possible\r\n if (board[x + 1][y + 1] != null) {\r\n if (board[x + 1][y + 1].getName() > 96) {//if there's a black piece in that position\r\n Coordinate curr = new Coordinate(x + 1, y + 1);\r\n moveset.add(curr);\r\n }\r\n }\r\n }\r\n if (x - 1 >= 0) {//if moving up is possible\r\n if (board[x - 1][y + 1] != null) {\r\n if (board[x - 1][y + 1].getName() > 96) {//if there's a black piece in that position\r\n Coordinate curr = new Coordinate(x - 1, y + 1);\r\n moveset.add(curr);\r\n }\r\n }\r\n }\r\n }\r\n } else if (y-1 >= 0) {//else, moving piece is black\r\n //moving\r\n if (board[x][y - 1] == null) {//if the space forward is empty\r\n Coordinate curr = new Coordinate(x, y - 1);\r\n moveset.add(curr);\r\n if (y == 6) {//if the pawn is at the starting position\r\n if ((board[x][y - 2] == null)) {//if the space 2 forward is empty\r\n Coordinate curr2 = new Coordinate(x, y - 2);\r\n moveset.add(curr2);\r\n }\r\n }\r\n }\r\n //attacking\r\n if (x + 1 <= 7) {//if moving down is possible\r\n if (board[x + 1][y - 1] != null) {\r\n if (board[x + 1][y - 1].getName() < 91) {//if there's a black piece in that position\r\n Coordinate curr = new Coordinate(x + 1, y - 1);\r\n moveset.add(curr);\r\n }\r\n }\r\n\r\n }\r\n if (x - 1 >= 0) {//if moving up is possible\r\n if (board[x - 1][y - 1] != null) {\r\n if (board[x - 1][y - 1].getName() < 91) {//if there's a black piece in that position\r\n Coordinate curr = new Coordinate(x - 1, y - 1);\r\n moveset.add(curr);\r\n }\r\n }\r\n }\r\n }\r\n return moveset;\r\n }", "title": "" }, { "docid": "46aea8b6dfdd9b07bb89c0e0527e48a4", "score": "0.63613427", "text": "public abstract boolean isValidMove(Tile fromTile, Tile toTile);", "title": "" }, { "docid": "35220834fa1cd6c818c00e2dcdf433f4", "score": "0.63389015", "text": "private ArrayList<Move> checkMoveFrom(boolean used1, boolean used2) {\n ArrayList<Move> moves = new ArrayList<>();\n int mulplayer = playertomove(hasToMove);\n boolean find = false;\n boolean findleft = false;\n \n /*\n * Nel caso in cui mi trovi nello stato finale del gioco e che quindi \n * possa effettivamente far uscire le pedine dalla tavola\n */\n if (playboard.canMoveHome(hasToMove)) {\n\n if (playboard.getOnBar(hasToMove).isEmpty()) {\n /*\n * In base al player che sta giocando, devo adattare il valore del dado al senso di marcia.\n */\n int tmpdc1 = (hasToMove == Board.WHITE) ? dice1 : (Board.NUM_BOARD - dice1 + 1);\n int tmpdc2 = (hasToMove == Board.WHITE) ? dice2 : (Board.NUM_BOARD - dice2 + 1);\n if (used1) {\n /*\n * Controllo se posso far uscire i checkers contenuti nella board di posizione dice\n * importante nella fase finale del gioco.\n */\n if (playboard.getBoard()[tmpdc1].isplayerandnonEmpty(hasToMove)) {\n moves.add(new Move(hasToMove, tmpdc1, playertoOtherhome(hasToMove), dice1));\n } else {\n \n for (int i = tmpdc1; (((hasToMove == Board.BLACK) && (i >= endIndexBoard(hasToMove))) || ((hasToMove == Board.WHITE) && (i <= endIndexBoard(hasToMove)))); i = i + (1 * mulplayer * -1)) {\n if (playboard.getBoard()[i].isplayerandnonEmpty(hasToMove)) {\n moves.add(new Move(hasToMove, i, i + (dice1 * mulplayer), dice1));\n find = true;\n }\n }\n\n if (!find) {\n for (int i = tmpdc1; (((hasToMove == Board.BLACK) && (i <= startIndexBoard(hasToMove))) || ((hasToMove == Board.WHITE) && (i >= startIndexBoard(hasToMove)))); i = i - (1 * mulplayer * -1)) {\n if (playboard.getBoard()[i].isplayerandnonEmpty(hasToMove) && !findleft) {\n moves.add(new Move(hasToMove, i, playertoOtherhome(hasToMove), dice1));\n findleft = true;\n }\n }\n\n }\n\n }\n\n }\n\n if (used2) {\n /*\n * Controllo se posso far uscire i checkers contenuti nella board = dice\n */\n if (playboard.getBoard()[tmpdc2].isplayerandnonEmpty(hasToMove)) {\n moves.add(new Move(hasToMove, tmpdc2, playertoOtherhome(hasToMove), dice2));\n } else {\n\n\n for (int i = tmpdc2; (((hasToMove == Board.BLACK) && (i >= endIndexBoard(hasToMove))) || ((hasToMove == Board.WHITE) && (i <= endIndexBoard(hasToMove)))); i = i + (1 * mulplayer * -1)) {\n if (playboard.getBoard()[i].isplayerandnonEmpty(hasToMove)) {\n moves.add(new Move(hasToMove, i, i + (dice2 * mulplayer), dice2));\n find = true;\n }\n }\n\n if (!find) {\n for (int i = tmpdc2; (((hasToMove == Board.BLACK) && (i <= startIndexBoard(hasToMove))) || ((hasToMove == Board.WHITE) && (i >= startIndexBoard(hasToMove)))); i = i - (1 * mulplayer * -1)) {\n if (playboard.getBoard()[i].isplayerandnonEmpty(hasToMove) && !findleft) {\n moves.add(new Move(hasToMove, i, playertoOtherhome(hasToMove), dice2));\n findleft = true;\n }\n }\n }\n\n }\n\n }\n\n }\n } else {\n\n for (int i = 1; (i <= 24 && playboard.getOnBar(hasToMove).isEmpty()); i++) {\n if (playboard.getBoard()[i].getPlayer() == hasToMove) {\n /*\n * Creo le 2 mosse relative ai dadi\n */\n\n if (used1) {\n moves.add(new Move(hasToMove, i, i + (dice1 * mulplayer), dice1));\n }\n if (used2) {\n moves.add(new Move(hasToMove, i, i + (dice2 * mulplayer), dice2));\n }\n\n }\n }\n }\n\n /*\n * Creo 2 move proventi dal bar\n */\n int bar = playboard.getOnBar(hasToMove).getNumofcheckers();\n\n if ((bar > 0) && (used1)) {\n moves.add(new Move(hasToMove, playertobar(hasToMove), playertoOtherobar(hasToMove) + (dice1 * mulplayer), dice1));\n\n }\n if ((bar > 0) && (used2)) {\n moves.add(new Move(hasToMove, playertobar(hasToMove), playertoOtherobar(hasToMove) + (dice2 * mulplayer), dice2));\n }\n\n if (verbose) {\n for (Move move : moves) {\n System.out.println(\"checkfrom - \" + move.toString());\n }\n }\n\n return moves;\n }", "title": "" }, { "docid": "9e5b7a9ac6bd35d76dcd0456f3ac4771", "score": "0.6336714", "text": "private boolean checkPawnTwoSpacesForward(Coordinate from, Coordinate to, Board b)\n\t{\n\t\tif ( (from.getRowDistance(to) == 2) && (from.getColumnDistance(to) == 0) )\n\t\t{\n\t\t\t// just make sure no pieces in the way\n\t\t\tCoordinate oneSpaceForward = Coordinate.makeCoordinate(from.getRow() + 1, from.getColumn());\n\t\t\t\n\t\t\tif (b.getPieceAt(oneSpaceForward) == null && \n\t\t\t\t\tb.getPieceAt(to) == null)\n\t\t\t{\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// conditions were not met to make a one space move\n\t\treturn false;\n\t}", "title": "" }, { "docid": "ed81422e7c91afc4ea6937e3f45526ca", "score": "0.6322206", "text": "public boolean getMoved2(){\n return moved2;\n }", "title": "" }, { "docid": "bac71ccc942237ab3c599882d3289245", "score": "0.6309973", "text": "private static boolean attemptMove(BorderPane destTile, Piece piece, int destRow, int destCol) {\n BorderPane currTile = findTile(piece.getCurrRow(), piece.getCurrCol());\n LinkedList<int[]> possibleAttacks = searchForAttacks(piece);\n Text capturedBlackCount = boardGUI.getCapturedBlackCount();\n\n if (possibleAttacks.size() > 0) {\n\n for (int[] attack : possibleAttacks) {\n if ((attack[0] - 1) == destRow && (attack[1] - 1) == destCol) {\n addPieceToSidePanel(board.getPieceGUILoc(attack[2] - 1, attack[3] - 1));\n capturedBlackCount.setText((Integer.parseInt(capturedBlackCount.getText()) + 1) + \"\");\n board.removePieceAbstractionLoc(attack[2], attack[3]);\n BorderPane capturedPieceTile = findTile(attack[2] - 1, attack[3] - 1);\n\n capturedPieceTile.getChildren().clear();\n currTile.getChildren().clear();\n board.movePiece(piece.getCurrRow(), piece.getCurrCol(), destRow, destCol);\n piece.setLocation(destRow, destCol);\n\n possibleAttacks = searchForAttacks(piece);\n\n if (possibleAttacks.size() > 0) {\n destTile.setCenter(piece.getGUIpiece());\n additionalAttack = true;\n return false;\n\n } else {\n\n if (piece.getType() == REGULAR && currentPlayer == RED && destRow == 0) {\n makeKing(piece, currentPlayer);\n } else if (piece.getType() == REGULAR && currentPlayer == BLACK && destRow == 7) {\n makeKing(piece, currentPlayer);\n }\n\n unselectPiece(piece, piece.getGUIpiece());\n destTile.setCenter(piece.getGUIpiece());\n selectedPiece = null;\n selected = false;\n currentPlayer = currentPlayer.opposite();\n additionalAttack = false;\n return true;\n }\n }\n\n }\n } else if (legalMove(piece, destTile, destRow, destCol)) {\n\n if (piece.getType() == REGULAR && currentPlayer == RED && destRow == 0) {\n makeKing(piece, currentPlayer);\n } else if (piece.getType() == REGULAR && currentPlayer == BLACK && destRow == 7) {\n makeKing(piece, currentPlayer);\n }\n\n currTile.getChildren().clear();\n unselectPiece(piece, piece.getGUIpiece());\n destTile.setCenter(piece.getGUIpiece());\n board.movePiece(piece.getCurrRow(), piece.getCurrCol(), destRow, destCol);\n piece.setLocation(destRow, destCol);\n selectedPiece = null;\n selected = false;\n currentPlayer = currentPlayer.opposite();\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "992e703ecfe33d987f762227637d689c", "score": "0.62816536", "text": "protected abstract boolean isMoveCorrect();", "title": "" }, { "docid": "de07148b22e381ce9b584497cd5cc12d", "score": "0.6277694", "text": "public void move() {\r\n\r\n\t\tRandom rand = new Random();\r\n\r\n\t\tif(stepsTaken >= stop){\r\n\t\t\tstepsTaken = 0;\r\n\t\t\tstop = rand.nextInt(20)+11;\r\n\t\t\tdirection = rand.nextInt(5);\r\n\t\t}\r\n\r\n\r\n\t\t// Move orc\r\n\t\tint xa = 0;\r\n\t\tint ya = 0;\r\n\r\n\r\n\t\tif(direction == 0){\r\n\t\t\tya++;\r\n\t\t\tstepsTaken++;\r\n\t\t}\r\n\t\telse if(direction == 1){\r\n\t\t\tya--;\r\n\t\t\tstepsTaken++;\r\n\t\t}\r\n\t\telse if(direction == 2){\r\n\t\t\txa--;\r\n\t\t\tstepsTaken++;\r\n\t\t}\r\n\t\telse if(direction == 3){\r\n\t\t\txa++;\r\n\t\t\tstepsTaken++;\r\n\t\t}\r\n\t\telse if(direction == 4){\r\n\t\t\tstepsTaken++;\r\n\t\t}\r\n\r\n\t\tif (xa != 0 || ya != 0) {\r\n\t\t\tmove(xa, ya);\r\n\t\t\tisMoving = true;\r\n\t\t} else {\r\n\t\t\tisMoving = false;\r\n\t\t}\r\n\r\n\t\tif (level.getTile(this.x >> 3, this.y >> 3).getId() == 3) {\r\n\t\t\tisSwimming = true;\r\n\t\t}\r\n\t\tif (isSwimming && level.getTile(this.x >> 3, this.y >> 3).getId() != 3) {\r\n\t\t\tisSwimming = false;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "79f1174abae9545cb57e8ae7e9b936a5", "score": "0.62771314", "text": "public void move(){\n Random rand = new Random();\r\n int randx = rand.nextInt(3)-1;\r\n int randy = rand.nextInt(3)-1; \r\n int newx = this.mX + randx;\r\n int newy = this.mY + randy;\r\n \r\n if(!GlobalVariables.getInstance().mFishTank.isOccupied(newx, newy)){ \r\n //if the value is outside of the tank return it to the previous spot\r\n //other wise change it to the new spot in the tank.\r\n if(newx >=20 || newx <=0){\r\n return;\r\n }\r\n if(newy >= 20 || newy <=0){\r\n return;\r\n }\r\n else{\r\n this.mX = newx;\r\n this.mY = newy; \r\n }\r\n } \r\n }", "title": "" }, { "docid": "306cde9e952ffe374ad81fd6f2cdca2f", "score": "0.626692", "text": "@Test\n public void ableToMoveTest() {\n /*\n At current position and out of bound\n */\n boolean case1 = bishopTestPiece.ableToMove(3, 3);\n assertEquals(case1, false);\n boolean case2 = bishopTestPiece.ableToMove(8, 8);\n assertEquals(case2, false);\n /*\n Possible moving position\n */\n boolean case3 = bishopTestPiece.ableToMove(5, 1);\n assertEquals(case3, true);\n boolean case4 = bishopTestPiece.ableToMove(1, 5);\n assertEquals(case4, true);\n boolean case5 = bishopTestPiece.ableToMove(1, 1);\n assertEquals(case5, true);\n boolean case6 = bishopTestPiece.ableToMove(5, 5);\n assertEquals(case6, true);\n /*\n Not possible moving position\n */\n boolean case7 = bishopTestPiece.ableToMove(0, 3);\n assertEquals(case7, false);\n boolean case8 = bishopTestPiece.ableToMove(6, 3);\n assertEquals(case8, false);\n boolean case9 = bishopTestPiece.ableToMove(3, 0);\n assertEquals(case9, false);\n boolean case10 = bishopTestPiece.ableToMove(3, 6);\n assertEquals(case10, false);\n\n }", "title": "" }, { "docid": "91b544baec4149e40c17d84303950561", "score": "0.6254522", "text": "@Test\n\tpublic void testAlienMoveTwo() {\n\t\tCoordinate curr = new Coordinate(12, 5);\n\t\tSector s = model.getMap().getSector(curr);\n\t\talien.setSector(s);\n\t\ts.addPlayer(alien);\n\n\t\tGameStatus status = new GameStatus(model, alien);\n\t\t\n\t\tCoordinate dest = new Coordinate(12, 3);\n\t\tassertTrue(new Move(status).moveCheck(dest));\n\t}", "title": "" }, { "docid": "8d342a9a62189dea6f51ba70cbb22592", "score": "0.6250173", "text": "public boolean checkClickMovement() {\n if (selectedPiece != null && board.getSquare(clickedSquare) != null) { // Check that there was a piece selected and click is on the board\n if (squareList.contains(board.getSquare(clickedSquare))) { // Check if clicked square was valid move to empty square\n movePiece(selectedPiece, board.getSquare(clickedSquare), selectedPiece.getSquare()); // Move piece in game logic and graphics\n highlightsOff(); // Turn off all the highlights\n if (callForPromote()) // Check if made move allows pawn promoting\n return false;\n turn = !turn;\n updateFen(); // Update FEN before changing board layout\n checkDraw(selectedPiece, board.getSquare(clickedSquare), false); //checks for 50 move rule\n if (selectedPiece.getPieceType().equals(\"King\")) // Check castling for kings\n if (castlingSquares.contains(board.getSquare(clickedSquare))) // Target square is one of the castling rules squares. Make move for rook also\n movePiece(rookForSquare.get(board.getSquare(clickedSquare)), squareForRook.get(rookForSquare.get(board.getSquare(clickedSquare))), rookForSquare.get(board.getSquare(clickedSquare)).getSquare());\n // Check if the move caused check\n if (checkKingsForCheckmate() || checkForStalemate() || (modeKingOfTheHill && checkKingOfTheHill()))\n return false; // One king in checkmate, break here\n checkRotating(); // Check if playerTwo is AI and rotate\n return true;\n } else if (squareListTwo.contains(board.getSquare(clickedSquare))) { // Check if clicked square was valid capture movement\n int tempPieceId; // Temporarily stores id for texture\n Square enPassSquare; // Replaces square when enPassant is active\n if (board.getSquare(clickedSquare).isEnPassSquare() && // Check if the square clicked is an enPassant move\n selectedPiece.getPieceType().equals(\"Pawn\")) { // And selected piece is pawn\n if (selectedPiece.getPlayer().isFirst()) // Checks if player one\n enPassSquare = board.getSquare(clickedSquare.charAt(0) + \"\" + 5); // Show piece on doubled move\n else // Or player 2\n enPassSquare = board.getSquare(clickedSquare.charAt(0) + \"\" + 4); // Show piece on doubled move (other side of board)\n tempPieceId = enPassSquare.getPiece().getTextureId(); //set texture id to the square with the piece on it\n board.getEnPassPiece().getSquare().setPiece(null); // Eliminate piece from en pass square\n movePiece(selectedPiece, board.getSquare(clickedSquare), selectedPiece.getSquare()); // Move piece to chosen square\n graphics.eliminatePiece(tempPieceId, enPassSquare.getId()); // Eliminate old piece from graphics\n } else { // Normal capture move - not enPassantCapture\n tempPieceId = board.getSquare(clickedSquare).getPiece().getTextureId(); // Catch old piece id safe temporary\n board.getSquare(clickedSquare).getPiece().remove(false); // Eliminate old piece from game logic\n movePiece(selectedPiece, board.getSquare(clickedSquare), selectedPiece.getSquare()); // Move piece to chosen square\n graphics.eliminatePiece(tempPieceId, board.getSquare(clickedSquare).getId()); // Eliminate old piece from graphics\n }\n highlightsOff(); // Turn off all the highlights\n if (callForPromote()) // Check if made move allows pawn promoting\n return false;\n turn = !turn;\n updateFen(); // Update FEN before changing board layout\n checkDraw(null, null, true); //checks for 50 move rule\n // Check if the move caused check\n if (checkKingsForCheckmate() || checkForStalemate() || (modeKingOfTheHill && checkKingOfTheHill()))\n return false; // One king in checkmate, break here\n checkRotating(); // Check if playerTwo is AI and rotate\n return true;\n }\n }\n return false; // No move was made\n }", "title": "" }, { "docid": "da00347e8dc017d1bbd4cdda80fe0522", "score": "0.6247596", "text": "private boolean isMovablePiece(int x, int y) {\n\t\treturn gameState.hasMove(new Point(x, y));\n\t}", "title": "" }, { "docid": "d6c76d3e189976ebd492e963475c4076", "score": "0.6236263", "text": "@Test\n public void testIsValidMovement() throws Exception {\n white_king.setPosition(new Position(7, 5));\n white_bishop.setPosition(new Position(6, 4));\n //now if we move bishop to (5,5), then king is in danger\n assertEquals(white_bishop.isValidMovement(new Position(5, 5)), false);\n // but can move it to the 5,3\n assertEquals(white_bishop.isValidMovement(new Position(5, 3)), true);\n }", "title": "" }, { "docid": "6625571558daa4bdebf163f9bcbab369", "score": "0.62328684", "text": "public void act() \n {\n if(enemyWalk3 < 125 && enemyWalk3 >= 0)\n {\n setLocation(getX() - 2, getY());\n enemyWalk3 = enemyWalk3 + 1;\n enemyMove3 = enemyMove3 + 1;\n }\n if(enemyWalk3 >= -125 && enemyWalk3 < 0)\n {\n setLocation(getX() + 2, getY());\n enemyWalk3 = enemyWalk3 + 1;\n enemyMove3 = enemyMove3 + 1;\n }\n if (enemyMove3 > 0)\n {\n setImage(\"enemy1.png\");\n }\n if (enemyMove3 > 20)\n {\n setImage(\"enemy2.png\");\n }\n if (enemyMove3 > 40)\n {\n enemyMove3 = 0;\n }\n if(enemyWalk3 == 125)\n {\n enemyWalk3 = -125;\n }\n }", "title": "" }, { "docid": "1c98e6f47c64dcc85ea3b329bfa0ceec", "score": "0.62316847", "text": "public boolean movePawn(int player, Direction dir, boolean jump) {\n //moving player is in first slot of bothPlayers[]\n int[][] bothPlayers = new int[][]{p1Pos, p2Pos};\n //check bounds\n if (player < 0 || player > 1) {\n return false;\n }\n //make sure the player can move\n if (player != turn) {\n return false;\n }\n //check if valid move\n //ie, check for walls, other players\n switch (dir) {\n case UP:\n moveUp(bothPlayers[player], bothPlayers[1 - player], jump);\n Log.i(\"movePawn\", \"moved player up\");\n break;\n case DOWN:\n moveDown(bothPlayers[player], bothPlayers[1 - player], jump);\n Log.i(\"movePawn\", \"moved down\");\n break;\n case RIGHT:\n moveRight(bothPlayers[player], bothPlayers[1 - player], jump);\n break;\n case LEFT:\n moveLeft(bothPlayers[player], bothPlayers[1 - player], jump);\n break;\n default:\n Log.i(\"movePawn\", \"Something went wrong\");\n }\n return false;\n }", "title": "" }, { "docid": "749a02580d19035e2974142d462dc9f6", "score": "0.6227389", "text": "private boolean validMove(int xi, int yi, int xf, int yf) {\n\t\tif((xf-xi==1 || xf-xi == -1) && (yf-yi ==1 || yf-yi ==-1) && moved == false) { //Checks within neighboring squares\n\t\t\tif(pieceAt(xf,yf)!=null){//checks if piece exists on target square\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tif(pieceAt(xi,yi).isKing()){//checks if king (can move backwards)\n\t\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse if(pieceAt(xi,yi).isFire()){//for orientation of movement\n\t\t\t\tif(yf-yi>0)//moving upwards\n\t\t\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse{//water pieces\n\t\t\t\tif(yf-yi<0)//moving downwards\n\t\t\t\t\treturn true;\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n\t\t//case 2: moving two squares\n\t\telse if((xf-xi==2 || xf-xi == -2) && (yf-yi ==2 || yf-yi ==-2)) { //check within distance two diagonally away from square\n\t\t\tif(pieceAt(xf,yf)!=null){//checks if piece exists on target square\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tif(pieceAt(xi,yi).isKing()){//checks for king\n\t\t\t\tif(pieceAt((xi+xf)/2,(yi+yf)/2)!=null) //if there is a piece in between\n\t\t\t\t\tif(pieceAt((xi+xf)/2,(yi+yf)/2).side() != pieceAt(xi,yi).side()) // if that piece's side is different\n\t\t\t\t\t\treturn true;\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\telse if(pieceAt(xi,yi).isFire()){\n\t\t\t\tif(yf-yi>0){//moving upwards\n\t\t\t\t\tif(pieceAt((xi+xf)/2,(yi+yf)/2)!=null) //if there is a piece in between\n\t\t\t\t\t\tif(pieceAt((xi+xf)/2,(yi+yf)/2).side() != pieceAt(xi,yi).side()) // if that piece's side is different\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse{\n\t\t\t\tif(yf-yi<0){//moving downwards\n\t\t\t\t\tif(pieceAt((xi+xf)/2,(yi+yf)/2)!=null) //if there is a piece in between\n\t\t\t\t\t\tif(pieceAt((xi+xf)/2,(yi+yf)/2).side() != pieceAt(xi,yi).side()) // if that piece's side is different\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "235931c5cb42633bc01cb97e349d2b6a", "score": "0.62239206", "text": "@Override\r\n\tpublic boolean set_location(int x, int y)\r\n\t{\r\n\t\t\r\n\t\t//would moving cause the king to be on threat?\r\n\t\t\r\n\t\tif (isValidForwardMove(x, y) == true)\r\n\t\t{\r\n\t\t\t//extra condition when your king is on threat, return false when so, unless this move blocks the threat, if so, move and recalculate threat\r\n\t\t\tmoveTo(x,y);\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\telse if (isValidEat(x, y) == true)\r\n\t\t{\r\n\t\t\tBoard.KILL(Board.isTherePieceAt(x, y));\r\n\t\t\tmoveTo(x,y);\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\t\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "d54f3c9b028e997f2b3dabb7f55fc791", "score": "0.6193262", "text": "public boolean isValidMove(int x, int y) {\r\n\t\tif(x >= 0 && x < 30)\r\n\t\t\tif(y>= 0 && y < 30)\r\n\t\t\t\tif(oceanMap.getMap()[x][y] == 0)\r\n\t\t\t\t\treturn true;\r\n\t\t\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "230e7ff36384a2837ca44e316e79904c", "score": "0.61864984", "text": "public boolean isLegitMove(int iOri, int jOri, int iDes, int jDes) {\n boolean isLegit = false;\n boolean isDestCoordLegit = false;\n boolean isDestPlaceble = false;\n boolean noObstacles = false;\n\n //Should the pawn capture?\n boolean shouldDouble = false;\n boolean shouldCapture = false;\n\n\n //Coordinates adequates to piece\n //Depends on colour\n if (this.colour == PieceColour.WHITE) {\n //Moving forward\n if ((jOri-jDes == 0) && (iOri-iDes == 1)) {\n isDestCoordLegit = true;\n } else if ((Math.abs(jOri-jDes) == 1) && (iOri-iDes == 1)) {\n //Captures in this case\n shouldCapture = true;\n isDestCoordLegit = true;\n } else if ((iOri == 6) && (Math.abs(iOri-iDes) == 2)) {\n //First move allows double the distance\n shouldDouble = true;\n isDestCoordLegit = true;\n }\n\n } else if (this.colour == PieceColour.BLACK) {\n //Moving forward\n if ((jOri-jDes == 0) && (iOri-iDes == -1)) {\n isDestCoordLegit = true;\n } else if ((Math.abs(jOri-jDes) == 1) && (iOri-iDes == -1)) {\n //Captures in this case\n shouldCapture = true;\n isDestCoordLegit = true;\n } else if ((iOri == 1) && (Math.abs(iOri-iDes) == 2)) {\n //First move allows double the distance\n shouldDouble = true;\n isDestCoordLegit = true;\n }\n \n }\n\n //Destination should not have our own piece\n\n //Case which destination has no piece and pawn shouldn't capture because of moving diagonally\n if (!Board.hasPiece(iDes, jDes) && (!shouldCapture)) {\n isDestPlaceble = true;\n } \n //Case which destination has piece (not same colour), and pawn should capture as moves digonally\n else if (Board.hasPiece(iDes, jDes)) {\n if ((Board.getPiece(iDes, jDes).colour != this.colour) && shouldCapture) {\n isDestPlaceble = true;\n }\n }\n\n //No pieces in the trajectory\n if (shouldCapture || !shouldDouble) {\n noObstacles = true;\n } else if (shouldDouble) {\n\n //Depending on the colour\n //If white\n if ((iOri == 6) && (!Board.hasPiece(iOri-1, jOri))) {\n noObstacles = true;\n } else if ((iOri == 1) && (!Board.hasPiece(iOri+1, jOri))) {\n //If black\n noObstacles = true;\n }\n \n }\n \n //Is legit if all true\n if (isDestCoordLegit && isDestPlaceble && noObstacles) {\n isLegit = true;\n }\n\n\t\treturn isLegit;\n\n\t}", "title": "" }, { "docid": "0d64250d744307308064a6184d0482d4", "score": "0.6186204", "text": "public void onSuccessfulMove(double x, double y);", "title": "" }, { "docid": "6251f9bd727a4f65100181f49e014ad0", "score": "0.6175562", "text": "public abstract boolean tryMove(String move, Player player);", "title": "" }, { "docid": "a28a528c16ecd210fe2ce5f336ec511e", "score": "0.6172034", "text": "public boolean makeMove()\r\n\t{\r\n\t\tif(players.size() == 0)\r\n\t\t\treturn false;\r\n\t\t\r\n\t\tPlayer currPlayer = players.get(currPlayerIdx);\r\n\t\t\r\n\t\tTileCoord coord = currPlayer.getController().makeMove( this );\r\n\t\tif(coord == null)\r\n\t\t\treturn false;\r\n\t\t\r\n\t\tTile tile = lookupTile(coord); // getting tile object\r\n\t\t\r\n\t\tif(tile.getOwner() != null) // this tile already has piece\r\n\t\t\treturn false;\r\n\r\n\t\tmovesList.add( coord );\r\n\t\t\r\n\t\tfor(Player player : players)\r\n\t\t\tif(player != currPlayer)\r\n\t\t\t\tplayer.getController().enemyMoved( this, coord );\r\n\t\t\r\n\t\t// testing previously claimed tile;\r\n\t\t// making it owned if current player does not claims the same one:\r\n\t\tif(lastClaimedTile != null && tile != lastClaimedTile)\r\n\t\t{\r\n\t\t\tlastClaimedTile.setOwned();\r\n\t\t\tcheckVictory( lastClaimedTile.getParent() );\r\n\t\t\tlastClaimedTile = null;\r\n\t\t}\r\n\t\t\r\n\t\t// splitting if current player claims the same tile:\r\n\t\tif(tile.getClaimedBy() == null) \r\n\t\t{\r\n\t\t\ttile.setClaimedBy( currPlayer.getMark() );\r\n\t\t\tlastClaimedTile = tile;\r\n\t\t}\r\n\t\telse \r\n\t\t\tsplit( tile, 3 );\r\n\t\t\r\n\t\tcurrPlayerIdx = getNextPlayerIdx();\r\n\t\t\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "0e44b8583f23752567e56028de2469a3", "score": "0.6170906", "text": "public boolean move(String dir){\n if(getCurrentRoom().getExit().contains(dir)) {//can go\n if (\"north\".equals(dir)) {\n this.x -= 1;\n\n return true;\n\n } else if (\"east\".equals(dir)) {\n this.y += 1;\n\n return true;\n\n } else if (\"west\".equals(dir)) {\n this.y -= 1;\n\n return true;\n\n } else if (\"south\".equals(dir)) {\n this.x += 1;\n\n return true;\n }\n return false;\n }\n else{ // room can't go that dir\n return false;\n\n }\n\n\n\n\n }", "title": "" }, { "docid": "209c61f84b074ef4c5062e689c2ac477", "score": "0.6168318", "text": "public int moveFigure(Point from, Point to, boolean isTurnPlayersOne){\n\n int fromX = from.getPositionX();\n int fromY = from.getPositionY();\n\n int toX = to.getPositionX();\n int toY = to.getPositionY();\n\n boolean canMove = canMove(from, to);\n\n if(canMove){\n recalculatePseudoMovements();\n Figure figureToMove = boardFields[fromY][fromX];\n\n boolean itIsNotFigureTheSameColor = isTurnPlayersOne == figureToMove.isWhite();\n\n if(itIsNotFigureTheSameColor){\n return -1;\n }\n\n boolean figureIsBeatenUp = boardFields[toY][toX].getTypeOfFigure() != \"EMPTY\";\n\n\n\n boolean isCastling = figureToMove.getTypeOfFigure() == \"KING\";\n\n if(isCastling && Math.abs(from.getPositionX() - to.getPositionX()) == 2 && from.getPositionY() == from.getPositionY()){\n int substract = from.getPositionX() - to.getPositionX();\n\n System.out.println(\"Start \");\n if(substract > 0 ){\n move(new Point(0, from.getPositionY()), new Point(3, from.getPositionY()));\n castledRook[0] = new Point(0, from.getPositionY());\n castledRook[1] = new Point(3, from.getPositionY());\n }else{\n move(new Point(7, from.getPositionY()), new Point(5, from.getPositionY()));\n castledRook[0] = new Point(7, from.getPositionY());\n castledRook[1] = new Point(5, from.getPositionY());\n }\n\n boardFields[toY][toX] = boardFields[fromY][fromX];\n boardFields[toY][toX].setPosition(to);\n boardFields[fromY][fromX] = new Figure(from, \"EMPTY\");\n\n return 2;\n\n }\n\n boolean isPawn = figureToMove.getTypeOfFigure() == \"PAWN\";\n boolean pawnArrived = false;\n if(isPawn){\n boolean whitePawnArrived = figureToMove.isWhite() && figureToMove.getPosition().getPositionY() == 7;\n boolean whiteBlackArrived = figureToMove.isWhite() && figureToMove.getPosition().getPositionY() == 0;\n\n if(whiteBlackArrived || whitePawnArrived){\n pawnArrived = true;\n }\n\n\n }\n\n boardFields[toY][toX] = boardFields[fromY][fromX];\n boardFields[toY][toX].setPosition(to);\n boardFields[fromY][fromX] = new Figure(from, \"EMPTY\");\n\n\n\n return figureIsBeatenUp ? 1 : pawnArrived ? 3 : 0;\n }\n\n return -1;\n }", "title": "" }, { "docid": "249e09703a838cbf134c0aab8f494b25", "score": "0.6166752", "text": "public void move() {\r\n \tif(this.timeM>2000) {\r\n \t\tif(this.log==\"log\") {\r\n\t \t\tif(move1==false) {\r\n\t \t\t\tmove1=true;\r\n\t\t \t\tx += World.tileSize;\r\n\t\t \t\tthis.timeM=0;\r\n\t \t\t}\r\n\t \t\telse if(move2==false) {\r\n\t \t\t\tmove2=true;\r\n\t\t \t\tx -= World.tileSize;\r\n\t\t \t\tthis.timeM=0;\r\n\t \t\t}\r\n\t \t\telse if(move3==false) {\r\n\t \t\t\tmove3=true;\r\n\t\t \t\tx -= World.tileSize;\r\n\t\t \t\tthis.timeM=0;\r\n\t \t\t}\r\n\t \t\telse if(move4==false) {\r\n\t \t\t\tmove4=true;\r\n\t\t \t\tx += World.tileSize;\r\n\t\t \t\tthis.timeM=0;\r\n\t \t\t}\r\n\t \t\telse if(move5==false) {\r\n\t \t\t\tmove5=true;\r\n\t\t \t\tx += World.tileSize;\r\n\t\t \t\tthis.timeM=0;\r\n\t \t\t}\r\n\t \t\telse if(move6==false) {\r\n\t \t\t\tmove6=true;\r\n\t\t \t\tx -= World.tileSize;\r\n\t\t \t\tthis.timeM=0;\r\n\t \t\t}\r\n \t\t}\r\n \t\telse {\r\n\t \t\tif(move1==false) {\r\n\t \t\t\tmove1=true;\r\n\t\t \t\tx += World.tileSize;\r\n\t\t \t\tthis.timeM=0;\r\n\t \t\t}\r\n\t \t\telse if(move2==false) {\r\n\t \t\t\tmove2=true;\r\n\t\t \t\tx += World.tileSize;\r\n\t\t \t\tthis.timeM=0;\r\n\t \t\t}\r\n\t \t\telse if(move3==false) {\r\n\t \t\t\tmove3=true;\r\n\t\t \t\tx -= World.tileSize;\r\n\t\t \t\tthis.timeM=0;\r\n\t \t\t}\r\n\t \t\telse if(move4==false) {\r\n\t \t\t\tmove4=true;\r\n\t\t \t\tx -= World.tileSize;\r\n\t\t \t\tthis.timeM=0;\r\n\t \t\t}\r\n\t \t\telse if(move5==false) {\r\n\t \t\t\tmove5=true;\r\n\t\t \t\tx -= World.tileSize;\r\n\t\t \t\tthis.timeM=0;\r\n\t \t\t}\r\n\t \t\telse if(move6==false) {\r\n\t \t\t\tmove6=true;\r\n\t\t \t\tx -= World.tileSize;\r\n\t\t \t\tthis.timeM=0;\r\n\t \t\t}\t\r\n \t\t\t\r\n \t\t}\r\n \t\t\r\n \t}\r\n }", "title": "" }, { "docid": "f3f347bc1d5506a9c1dc0b419649cf2d", "score": "0.61630106", "text": "public void move() {}", "title": "" }, { "docid": "806264cfdc898fef551d8a8c49a73a0f", "score": "0.6157311", "text": "public void processMovements() {\n squareList.clear(); // Empty all moves\n squareListTwo.clear();\n bothSquareLists = board.getValidMoves(selectedPiece);\n if (!selectedPiece.getPieceType().equals(\"King\"))\n board.checkPinningMoves(bothSquareLists, selectedPiece); // Check piece and moves for pinning moves\n squareList = bothSquareLists[0]; // Valid moves\n squareListTwo = bothSquareLists[1]; // Valid capture moves\n\n // Revalidate king's movements - remove the ones that expose it\n if (selectedPiece.getPieceType().equals(\"King\")) {\n castlingCheck();\n preventExposeMove(selectedPiece, squareList, true); // Check if valid moves expose king\n preventExposeMove(selectedPiece, squareListTwo, true); // Check if valid capture moves expose king\n }\n\n // When king is in check use list of allowed squares when picking valid moves and capture moves\n if ((kingInCheck(playerOne) || kingInCheck(playerTwo)) && !selectedPiece.getPieceType().equals(\"King\")) { // Don't apply it to king\n for (int i = 0; i < squareList.size(); i++)\n if (!allowedSquares.contains(squareList.get(i))) {\n squareList.remove(i);\n i = -1; // Reset counter;\n }\n for (int i = 0; i < squareListTwo.size(); i++)\n if (!allowedSquares.contains(squareListTwo.get(i))) {\n squareListTwo.remove(i);\n i = -1; // Reset counter\n }\n }\n highlights.add(new String[]{clickedSquare, \"square\", \"green\"}); // Highlight clicked square\n\n // Highlight valid moves\n for (int i = 0; i < squareList.size(); i++)\n if (squareList.get(i) != null)\n highlights.add(new String[]{squareList.get(i).getId(), \"circle\", \"green\"});\n // Highlight valid capture moves\n for (int i = 0; i < squareListTwo.size(); i++)\n if (squareListTwo.get(i) != null)\n highlights.add(new String[]{squareListTwo.get(i).getId(), \"cross\", \"red\"});\n graphics.highlight(highlights);\n }", "title": "" }, { "docid": "ca68d91886fc6fb54ac3e78dcc854e66", "score": "0.61546004", "text": "public boolean isMoving();", "title": "" }, { "docid": "8318285eaf5c45ee8d636ba20e0edc38", "score": "0.61517596", "text": "public boolean moveUnit( Position from, Position to );", "title": "" }, { "docid": "864a8ffe101cc86bc9dedcc51f6a1914", "score": "0.61501515", "text": "public void movePiece(Board temp, int x, int y) {\n if ((y == getY() + 1) || (y == getY() - 1)) {\n if((temp.getChessboard()[x][y].getPiece()==temp.arrofKings[0])||(temp.getChessboard()[x][y].getPiece()==temp.arrofKings[0])){\n if(temp.getChessboard()[getX()][getY()].getTileColor()==PieceColor.BLACK){\n if((temp.getChessboard()[x][y].getPiece()==temp.arrofKings[1])){\n System.out.println(\"This move endangers the white king\");\n return;\n }\n }\n else{\n if((temp.getChessboard()[x][y].getPiece()==temp.arrofKings[0])){\n System.out.println(\"This move endangers the black king\");\n return;\n }\n }\n\n }\n attackPiece(temp, x, y);\n return;\n }\n if (getX() == getOriginalPlacement()) {\n if (!temp.getChessboard()[getX() + getZ()][getY()].isPieceOn()) {\n int doubleJump = 1;\n if ((x == (getOriginalPlacement() + getZ() * 2)) && !temp.getChessboard()[getX() + getZ() * 2][getY()].isPieceOn()) {\n doubleJump = 2;\n temp.getChessboard()[getX() + (getZ() * 2)][getY()] = temp.getChessboard()[getX()][getY()];\n temp.getChessboard()[getX()][getY()] = new Tiles(false, null, temp.getChessboard()[getX()][getY()].getTileColor());\n temp.getChessboard()[getX() + (getZ() * 2)][getY()].setPieceOn(true);\n setX(getX() + (getZ() * 2));\n } else if ((x == (getOriginalPlacement() + getZ())) && !temp.getChessboard()[getX() + getZ()][getY()].isPieceOn()) {\n temp.getChessboard()[getX() + (getZ())][getY()] = temp.getChessboard()[getX()][getY()];\n temp.getChessboard()[getX()][getY()] = new Tiles(false, null, temp.getChessboard()[getX()][getY()].getTileColor());\n temp.getChessboard()[getX() + (getZ())][getY()].setPieceOn(true);\n setX(getX() + (getZ()));\n } else {\n System.out.println(\"illegal move\");\n }\n }\n\n } else {\n if (!temp.getChessboard()[getX() + getZ()][getY()].isPieceOn()) {\n temp.getChessboard()[getX() + (getZ())][getY()] = temp.getChessboard()[getX()][getY()];\n temp.getChessboard()[getX()][getY()] = new Tiles(false, null, temp.getChessboard()[getX()][getY()].getTileColor());\n temp.getChessboard()[getX() + (getZ())][getY()].setPieceOn(true);\n setX(getX() + (getZ()));\n } else {\n System.out.println(\"illegal move\");\n }\n }\n }", "title": "" }, { "docid": "8ab62dbcc0f4925329b5e4602cd332ed", "score": "0.6149663", "text": "private void movement() {\n if(Greenfoot.isKeyDown(\"w\")){\n player.climbRope(2);\n }\n if(Greenfoot.isKeyDown(\"s\")){\n player.climbRope(-2);\n }\n if (Greenfoot.isKeyDown(\"a\")){\n player.moveX(-2);\n }\n if (Greenfoot.isKeyDown(\"d\")){\n player.moveX(2);\n }\n }", "title": "" }, { "docid": "66d146b8b14d15a0ff259767587434f2", "score": "0.61477643", "text": "public void movingPlayer(model.IDirection.Direction direction, int posX, int posY){\r\n\t\tif(playerAlive){\r\n\t\t\tswitch(direction){\r\n\t\t\tcase DOWN:\r\n\t\t\t\tif(this.grid[posX][posY+1].getType() == model.IEnvironment.Environment.WALL || this.grid[posX][posY+1].getType() == model.IEnvironment.Environment.ROCK){\r\n\t\t\t\t\tthis.grid[posX][posY] = new Element(direction);\r\n\t\t\t\t}else if(this.grid[posX][posY+1].getType() == model.IEnvironment.Environment.MONSTER){\r\n\t\t\t\t\tthis.playerAlive = false;\r\n\t\t\t\t}else{\r\n\t\t\t\t\tif(this.grid[posX][posY+1].getType() == model.IEnvironment.Environment.DIAMOND){\r\n\t\t\t\t\t\tthis.diamondNumber++;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthis.grid[posX][posY+1] = new Element(direction);\r\n\t\t\t\t\tthis.grid[posX][posY] = new Element(model.IEnvironment.Environment.NOTHING);\r\n\t\t\t\t\tplayerY++;\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\tcase UP:\r\n\t\t\t\tif(this.grid[posX][posY-1].getType() == model.IEnvironment.Environment.WALL|| this.grid[posX][posY-1].getType() == model.IEnvironment.Environment.ROCK){\r\n\t\t\t\t\tthis.grid[posX][posY] = new Element(direction);\r\n\t\t\t\t}else if(this.grid[posX][posY-1].getType() == model.IEnvironment.Environment.MONSTER){\r\n\t\t\t\t\tthis.playerAlive = false;\r\n\t\t\t\t}else{\r\n\t\t\t\t\tif(this.grid[posX][posY-1].getType() == model.IEnvironment.Environment.DIAMOND){\r\n\t\t\t\t\t\tthis.diamondNumber++;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthis.grid[posX][posY-1] = new Element(direction);\r\n\t\t\t\t\tthis.grid[posX][posY] = new Element(model.IEnvironment.Environment.NOTHING);\r\n\t\t\t\t\tplayerY--;\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\tcase RIGHT:\r\n\t\t\t\tif(this.grid[posX+1][posY].getType() == model.IEnvironment.Environment.WALL){\r\n\t\t\t\t\tthis.grid[posX][posY] = new Element(direction);\r\n\t\t\t\t}else if(this.grid[posX+1][posY].getType() == model.IEnvironment.Environment.MONSTER){\r\n\t\t\t\t\tthis.playerAlive = false;\r\n\t\t\t\t}else if(this.grid[posX+1][posY].getType() == model.IEnvironment.Environment.ROCK){\r\n\t\t\t\t\tif(this.grid[posX+2][posY].getType() == model.IEnvironment.Environment.NOTHING || this.grid[posX+2][posY].getType() == model.IEnvironment.Environment.MONSTER){\r\n\t\t\t\t\t\tthis.grid[posX+2][posY] = this.grid[posX+1][posY];\r\n\t\t\t\t\t\tthis.grid[posX+1][posY] = new Element(direction);\r\n\t\t\t\t\t\tthis.grid[posX][posY] = new Element(model.IEnvironment.Environment.NOTHING);\r\n\t\t\t\t\t\tplayerX++;\r\n\t\t\t\t\t}\r\n\t\t\t\t}else{\r\n\t\t\t\t\tif(this.grid[posX+1][posY].getType() == model.IEnvironment.Environment.DIAMOND){\r\n\t\t\t\t\t\tthis.diamondNumber++;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthis.grid[posX+1][posY] = new Element(direction);\r\n\t\t\t\t\tthis.grid[posX][posY] = new Element(model.IEnvironment.Environment.NOTHING);\r\n\t\t\t\t\tplayerX++;\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\tcase LEFT:\r\n\t\t\t\tif(this.grid[posX-1][posY].getType() == model.IEnvironment.Environment.WALL){\r\n\t\t\t\t\tthis.grid[posX][posY] = new Element(direction);\r\n\t\t\t\t}else if(this.grid[posX-1][posY].getType() == model.IEnvironment.Environment.MONSTER){\r\n\t\t\t\t\tthis.playerAlive = false;\r\n\t\t\t\t}else if(this.grid[posX-1][posY].getType() == model.IEnvironment.Environment.ROCK){\r\n\t\t\t\t\tif(this.grid[posX-2][posY].getType() == model.IEnvironment.Environment.NOTHING || this.grid[posX-2][posY].getType() == model.IEnvironment.Environment.MONSTER){\r\n\t\t\t\t\t\tthis.grid[posX-2][posY] = this.grid[posX-1][posY];\r\n\t\t\t\t\t\tthis.grid[posX-1][posY] = new Element(direction);\r\n\t\t\t\t\t\tthis.grid[posX][posY] = new Element(model.IEnvironment.Environment.NOTHING);\r\n\t\t\t\t\t\tplayerX--;\r\n\t\t\t\t\t}\r\n\t\t\t\t}else{\r\n\t\t\t\t\tif(this.grid[posX-1][posY].getType() == model.IEnvironment.Environment.DIAMOND){\r\n\t\t\t\t\t\tthis.diamondNumber++;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthis.grid[posX-1][posY] = new Element(direction);\r\n\t\t\t\t\tthis.grid[posX][posY] = new Element(model.IEnvironment.Environment.NOTHING);\r\n\t\t\t\t\tplayerX--;\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "b9921db71e315f184a29ddb51d7dfa8b", "score": "0.6146952", "text": "public void move() {\t\r\n\t\t\t//create an integer variable called newX and newY \r\n\t\t\tint newX;\r\n\t\t\tint newY;\t\r\n\t\t\t//set the newX and Y to the sum of the corresponding X and Y \r\n\t\t\tnewX = Xpos + Xdir;\t\r\n\t\t\tnewY = Ypos + Ydir;\t\r\n\t\t\t//while the touchwall function is true \r\n\t\t\twhile(Roombrahtouchwall(newX, newY)) {\t\r\n\t\t\t\t//call the changeDirection function \r\n\t\t\t\tchangeDirection();\t \r\n\t\t\t\t//update the newX and newY with the positions and direction \r\n\t\t\t\tnewX = Xpos + Xdir;\t\r\n\t\t\t\tnewY = Ypos + Ydir;\t\r\n\t\t\t}\r\n\t\t\t//while the function touchdirt is true \r\n\t\t\twhile(Roombrahtouchdirt(Xpos, Ypos)) {\t\r\n\t\t\t\t//update the newX and newY with the positions and direction \r\n\t\t\t\tnewX = Xpos + Xdir;\t\r\n\t\t\t\tnewY = Ypos + Ydir;\t\r\n\t\t\t}\r\n\t\t\t//update the position with the sum of itself and direction\r\n\t\t\tXpos = Xpos + Xdir;\t\r\n\t\t\tYpos = Ypos + Ydir;\t\r\n\t\t\t//increase the distance by an increment of 10 \r\n\t\t\tdmoved+=10;\t\r\n\t\t\t//if the distance moved is greater than the maximum distance \r\n\t\t\tif (dmoved > max_d) {\t\r\n\t\t\t\t//call upon the changeDirection function \r\n\t\t\t\tchangeDirection();\t\r\n\t\t\t\t//reset the dmoved to 0 \r\n\t\t\t\tdmoved = 0;\t\r\n\t\t\t}\r\n\t\t\t//have the icon translate to Xpos and Ypos \r\n\t\t\ticon.translateTo(Xpos, Ypos);\t \r\n\t\t}", "title": "" }, { "docid": "7634be009a1c51924e81081768114026", "score": "0.61374503", "text": "private boolean isMovePossible(int x, int y, boolean isPlayer)\r\n\t{\r\n\t\tchar element = matrix.getElementAtPosition(x, y);\r\n\r\n\t\tif(element == 'X' || element == 'E')\r\n\t\t\treturn false;\r\n\t\telse if(element == 'I' && thePlayer.hasPlayerPickedTheKey() && isPlayer)\r\n\t\t{\r\n\t\t\tmatrix.playerHasReachedTheKey();\r\n\r\n\t\t\tsetGameMessage(\"You unlocked the door!\");\r\n\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\telse if(element == 'I')\r\n\t\t\treturn false;\r\n\t\telse if(element == 'S')\r\n\t\t\treturn true;\r\n\t\telse\r\n\t\t\treturn true;\r\n\t}", "title": "" }, { "docid": "5073c3a89876e96bb620fe6d15176f31", "score": "0.6132363", "text": "public boolean move(int x, int y, Node.OccupiedBy player) {\r\n\t\tboolean result = true;\r\n\t\tif (this.getLocation(x, y) == Node.OccupiedBy.EMPTY) {\r\n\t\t\tthis.grid[x][y].setValue(player);\r\n\r\n\t\t\tint newScore = this.grid[x][y].getMaximumChain(this.grid, INROW);\r\n\t\t\t\r\n\t\t\tif (newScore > this.points.get(player)) {\r\n\t\t\t\tthis.points.put(player, newScore);\r\n\t\t\t}\r\n\r\n\t\t\tthis.updateNeighbors(x, y);\r\n\t\t\tthis.setChanged();\r\n\t\t\tthis.notifyObservers();\r\n\t\t} else {\r\n\t\t\tresult = false;\r\n\t\t}\r\n\r\n\t\treturn result;\r\n\t}", "title": "" }, { "docid": "0e28bc8466f648c5d8a3f2ed67a33014", "score": "0.6129176", "text": "public boolean ValidMoveseq(int col1, int row1, int col2, int row2){\n if(col1 > 8 || col2 > 8 || row1 > 9 || row2 > 9){\n System.out.println(\"Position out of range\\n\");\n return false;\n }else if(col1 < 0 || row1 < 0 || col2 < 0 || row2 < 0){\n System.out.println(\"Position out of range negative\\n\");\n return false;\n }\n //Invalid from position\n if(chessboard[row1][col1] instanceof EmptySlotComponent){\n System.out.println(\"start Position is empty\\n\");\n return false;\n }\n //no piece of current player\n if(getNumberofMove() % 2 == 0){\n if(!chessboard[row1][col1].getChessColor().equals(ChessColor.BLACK)){\n System.out.println(\"start position have no player black piece\\n\");\n return false;\n }\n }else{\n if(!chessboard[row1][col1].getChessColor().equals(ChessColor.RED)){\n System.out.println(\"Start position have no player red piece\\n\");\n return false;\n }\n }\n //invalid destination\n if(getNumberofMove() % 2 == 0){\n if(chessboard[row2][col2].getChessColor().equals(ChessColor.BLACK)){\n System.out.println(\"destination have player black piece\\n\");\n return false;\n }\n }else{\n if(chessboard[row2][col2].getChessColor().equals(ChessColor.RED)){\n System.out.println(\"destination have player red piece\\n\");\n return false;\n }\n }\n //invalid move pattern\n if(!chessboard[row1][col1].canMoveTo(chessboard,chessboard[row2][col2].getChessboardPoint())){\n System.out.println(\"Invalid move pattern\" + ((getNumberofMove()%2 == 0) ? \" black\\n\" : \" red\\n\"));\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "3843a357702eb7247a9420235f937681", "score": "0.6127139", "text": "public abstract boolean isValidMovement(Board chessBoard, Position destination);", "title": "" }, { "docid": "5fbbed56a488e684209d5bd97a4c8740", "score": "0.6123514", "text": "@Test\n\tpublic void testDoActionMoveAlreadyMoved() {\n\t\tCoordinate curr = new Coordinate(12, 5);\n\t\tSector start = model.getMap().getSector(curr);\n\t\talien.setSector(start);\n\t\tstart.addPlayer(alien);\n\t\t\n\t\tGameStatus status = new GameStatus(model, alien);\n\t\t\n\t\tstatus.setMoved(true);\n\n\t\tDTOTurn dtoTurn = new DTOTurn(new Coordinate(12, 3), null, null);\n\t\tnew Move(status).doAction(dtoTurn);\n\t\tassertEquals(status.getPlayer().getSector(), start);\n\t}", "title": "" }, { "docid": "eb52739f21c0be989be572fbffb285a2", "score": "0.61218685", "text": "public boolean move()\r\n\t{\r\n\t\tboolean crash = false;\r\n\t\tString dir = this.commands.dequeue();\r\n\t\tif(dir.equals(\"Move Right\"))\r\n\t\t{\r\n\t\t\tthis.col++;\r\n\t\t}\r\n\t\tif(dir.equals(\"Move Left\"))\r\n\t\t{\r\n\t\t\tthis.col--;\r\n\t\t}\r\n\t\tif(dir.equals(\"Move Down\"))\r\n\t\t{\r\n\t\t\tthis.row++;\r\n\t\t}\r\n\t\tif(dir.equals(\"Move Up\"))\r\n\t\t{\r\n\t\t\tthis.row--;\r\n\t\t}\r\n\t\t\r\n\t\tcrash = checkCrash();\r\n\t\tsetLocOnBoard();\r\n\t\t\r\n\t\treturn crash;// if did not crash\r\n\t}", "title": "" }, { "docid": "0dc86c0fd0b919d0b571a34ed425af0d", "score": "0.6114219", "text": "boolean makeMove(char c) {\n\t\tb.board[super.getXLocation()][super.getYLocation()] = ' ';\r\n\t\tswitch (c) {\r\n\t\tcase 'W':\r\n\t\t\tif (super.mover(0) == false) {\r\n\t\t\t\t// System.out.println(\"Invalid move\");\r\n\t\t\t\treturn false;\r\n\t\t\t} else {\r\n\t\t\t\tif (b.board[super.getXLocation()][super.getYLocation()] == 'o') {\r\n\t\t\t\t\tn = turnCount + 5;\r\n\r\n\t\t\t\t}\r\n\t\t\t\tblueTrue(n);\r\n\t\t\t\tdir = 0;\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\tcase 'S':\r\n\t\t\tif (super.mover(1) == false) {\r\n\t\t\t\t// System.out.println(\"Invalid move\");\r\n\t\t\t\treturn false;\r\n\t\t\t} else {\r\n\t\t\t\tif (b.board[super.getXLocation()][super.getYLocation()] == 'o') {\r\n\t\t\t\t\tn = turnCount + 5;\r\n\r\n\t\t\t\t}\r\n\t\t\t\tblueTrue(n);\r\n\t\t\t\tdir = 1;\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\tcase 'D':\r\n\t\t\tif (super.mover(2) == false) {\r\n\t\t\t\t// System.out.println(\"Invalid move\");\r\n\t\t\t\treturn false;\r\n\t\t\t} else {\r\n\t\t\t\tif (b.board[super.getXLocation()][super.getYLocation()] == 'o') {\r\n\t\t\t\t\tn = turnCount + 5;\r\n\r\n\t\t\t\t}\r\n\t\t\t\tblueTrue(n);\r\n\t\t\t\tdir = 2;\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\tcase 'A':\r\n\t\t\tif (super.mover(3) == false) {\r\n\t\t\t\t// System.out.println(\"Invalid move\");\r\n\t\t\t\treturn false;\r\n\t\t\t} else {\r\n\t\t\t\tif (b.board[super.getXLocation()][super.getYLocation()] == 'o') {\r\n\t\t\t\t\tn = turnCount + 5;\r\n\r\n\t\t\t\t}\r\n\t\t\t\tblueTrue(n);\r\n\t\t\t\tdir = 3;\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\tdefault:\r\n\t\t\t// System.out.println(\"Invalid move\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "b4766ec4fa14d16854e7202cdaa5860b", "score": "0.6109094", "text": "void move(Board b, boolean flag) {\n\t\tmove.removeAll(this.move);\n\t\tattack.removeAll(this.attack);\n\t\tif(side == false){\n\t\t\tint tmpPos[];\n\t\t\tif(pos[1] <= 4){\n\t\t\t\ttmpPos = new int[2];\n\t\t\t\ttmpPos[0] = pos[0] + movePath[0][0];\ttmpPos[1] = pos[1] + movePath[0][1];\n\t\t\t\tmove.add(tmpPos);\n\t\t\t}else{\n\t\t\t\ttmpPos = new int[2];\n\t\t\t\ttmpPos[0] = pos[0] + movePath[0][0];\ttmpPos[1] = pos[1] + movePath[0][1];\n\t\t\t\tmove.add(tmpPos);\n\t\t\t\ttmpPos = new int[2];\n\t\t\t\ttmpPos[0] = pos[0] + movePath[2][0];\ttmpPos[1] = pos[1] + movePath[2][1];\n\t\t\t\tmove.add(tmpPos);\n\t\t\t\ttmpPos = new int[2];\n\t\t\t\ttmpPos[0] = pos[0] + movePath[3][0];\ttmpPos[1] = pos[1] + movePath[3][1];\n\t\t\t\tmove.add(tmpPos);\t\t\t\n\t\t\t}\n\t\t}else{\n\t\t\tint tmpPos[];\n\t\t\tif(pos[1] >= 5){\n\t\t\t\ttmpPos = new int[2];\n\t\t\t\ttmpPos[0] = pos[0] + movePath[1][0];\ttmpPos[1] = pos[1] + movePath[1][1];\n\t\t\t\tmove.add(tmpPos);\n\t\t\t}else{\n\t\t\t\ttmpPos = new int[2];\n\t\t\t\ttmpPos[0] = pos[0] + movePath[1][0];\ttmpPos[1] = pos[1] + movePath[1][1];\n\t\t\t\tmove.add(tmpPos);\n\t\t\t\ttmpPos = new int[2];\n\t\t\t\ttmpPos[0] = pos[0] + movePath[2][0];\ttmpPos[1] = pos[1] + movePath[2][1];\n\t\t\t\tmove.add(tmpPos);\n\t\t\t\ttmpPos = new int[2];\n\t\t\t\ttmpPos[0] = pos[0] + movePath[3][0];\ttmpPos[1] = pos[1] + movePath[3][1];\n\t\t\t\tmove.add(tmpPos);\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < move.size(); i++){\n\t\t\tint tmpMov[] = move.get(i);\n\t\t\t\n\t\t\tif(tmpMov[0] < 0 || tmpMov[1] < 0 || tmpMov[0] > 8 || tmpMov [1] > 9){\n\t\t\t\tmove.remove(i);\n\t\t\t\ti--;\n\t\t\t}\n\t\t\tChess tmpC = b.findChess(tmpMov);\n\t\t\tif (tmpC != null){\n\t\t\t\tif(tmpC.side != this.side){\n\t\t\t\t\tattack.add(tmpMov);\n\t\t\t\t}else{\n\t\t\t\t\tprotect.add(tmpMov);\n\t\t\t\t}\n\t\t\t\tmove.remove(i);\n\t\t\t\ti--;\n\t\t\t}\n\t\t}\n\n\t\tif(flag){\n\t\t\tthis.AI(b);\n\t\t}else{\n\t\t\tthis.userInter(b);\n\t\t}\n\t}", "title": "" }, { "docid": "df9964aaf3df1a0032874e978522115f", "score": "0.61079043", "text": "public void move() {\n\t\t\r\n\t}", "title": "" }, { "docid": "3fc4f5b5de2f7ddf74a0744a1d6a649e", "score": "0.6105153", "text": "@Override\r\n\tpublic void move() {\r\n\t\t\r\n\t\tint xMove = getX() + random.nextInt(3)-1;\r\n\t\tint yMove = getY() + 1;\r\n\t\tif(isValidMove(xMove, yMove)) {\r\n\t\t\tsetX(xMove);\r\n\t\t\tsetY(yMove);\r\n\t\t}\r\n\t\tif(yMove >= oceanMap.dimension)\r\n\t\t\tsetY(0);\r\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "272cd0548a67f5a72cd111c8d2fcaaae", "score": "0.61023664", "text": "@Override\n\tboolean moveTo(Location newLoc, Board b) {\n\t\t// TODO Auto-generated method stub\n\t\tif (b.check==false)\n\t\t{\n\t\tBoard copy = b.boardcopy();\n\t\tcopy.board[newLoc.getY()][newLoc.convertX()] = this;\n\t\tcopy.board[location.getY()][location.convertX()]=null;\n\t\tPiece checkPiece = this.getCheckPiece(copy);\n\t\tfor(int r = 0;r < copy.board.length;r++){//new check\n\t\t\tfor(int c = 0;c < copy.board[r].length;c++){\n\t\t\t\tPiece piece = copy.board[r][c];\n\t\t\t\tif(piece != null && !(piece.getColor().equals(this.color))){\n\t\t\t\t\tLocation opposKingsLoc = piece.getKingLocation(piece.getColor(), copy);\n\t\t\t\t\tif(piece.canMove(opposKingsLoc, copy)){\n\t\t\t\t\t\tcopy = null;\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (checkPiece!=null && !(this.getColor().equals(checkPiece.getColor())))\n\t\t{\n\t\t\tcopy = null;\n\t\t\t/*System.out.println();\n\t\t\tSystem.out.println(\"Illegal move, try again\");\n\t\t\tSystem.out.println();*/\n\t\t\t//System.out.println(1);\n\t\t\treturn false;\n\t\t}\n\t\t}\n\t\tPiece checkPiece = this.getCheckPiece(b);\n\t\t//System.out.println(checkPiece);\n\t\t/*if (b.check==true)\n\t\t{\n\t\t\treturn false;\n\t\t}*/\n\t\tif (checkPiece!=null )\n\t\t{\n\t\t\tLocation checkLoc = checkPiece.getLocation();\n\t\t\t//boolean flag = false;\n\t\t\tBoard copy = b.boardcopy();\n\t\t\t//Piece checkPiece2 = this.getCheckPiece(copy);\n\t\t\tPiece checkPiece2 = copy.board[checkLoc.getY()][checkLoc.convertX()];\n\t\t\t//System.out.println(checkPiece2);\n\t\t\tif(canMove(newLoc, copy)){\n\t\t\t\tif(copy.board[newLoc.getY()][newLoc.convertX()] != null && this.getColor().equals(copy.board[newLoc.getY()][newLoc.convertX()] .getColor()))//same color\n\t\t\t\t\treturn false;//new\n\t\t\t\tcopy.board[newLoc.getY()][newLoc.convertX()] = this;\n\t\t\t\tcopy.board[location.getY()][location.convertX()]=null;\n\t\t\t\tcheckPiece2 = this.getCheckPiece(copy);\n\t\t\t\tif(checkPiece2 == null)\n\t\t\t\t\treturn true;\n\t\t\t\tLocation opposKingsLoc = checkPiece2.getKingLocation(checkPiece2.getColor(), copy);\n\t\t\t\t//System.out.println(\"copy: \");\n\t\t\t\t//copy.draw();\n\t\t\t\t//System.out.println(checkPiece2);\n\t\t\t\tif (checkPiece2.canMove(opposKingsLoc,copy))\n\t\t\t\t{\n\t\t\t\t\tcopy = null;\n\t\t\t\t\t//System.out.println(\"about to return false\");\n\t\t\t\t\t//System.out.println(2);\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\t//System.out.println(\"about to return true\");\n\t\t\t\t\treturn true;\n\t\t\t}\n\t\t\tif (b.check == true &&!(this.canMove(checkLoc, b)) )\n\t\t\t{\n\t\t\t\t//System.out.println(\"can't move\");\n\t\t\t\t/*System.out.println(\"Illegal movie, try again\");\n\t\t\t\tSystem.out.println();*/\n\t\t\t\t//System.out.println(3);\n\t\t\t\t//System.out.println(\"Check\");\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\telse if(b.check == true && this.canMove(checkLoc, b) && !(newLoc.equals(checkLoc))){\n\t\t\t\t/*System.out.println(\"Illegal movie, try again\");\n\t\t\t\tSystem.out.println();*/\n\t\t\t\t//System.out.println(4);\n\t\t\t\t//System.out.println(\"Check\");\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\tBoard copy = b.boardcopy();\n\t\t\tcopy.board[newLoc.getY()][newLoc.convertX()] = this;\n\t\t\tcopy.board[location.getY()][location.convertX()]=null;\n\t\t\tfor(int r = 0;r < copy.board.length;r++){//new check\n\t\t\t\tfor(int c = 0;c < copy.board[r].length;c++){\n\t\t\t\t\tPiece p = copy.board[r][c];\n\t\t\t\t\tif(p == null)\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tif(p.getColor().equals(this.color))\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tLocation opposKingsLoc = p.getKingLocation(p.getColor(), copy);\n\t\t\t\t\tif(p.canMove(opposKingsLoc, b)){\n\t\t\t\t\t\tcopy = null;\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//return super.moveTo(newLoc, b);\n\t\tif(canMove(newLoc, b)){\n\t\t\t//this.location = newLoc;\n\t\t\tLocation opposKingsLoc = this.getKingLocation(this.color, b);\n\t\t\t//System.out.println(\"Bishop's loc: \" + this.getLocation().getX()+ \" \" + this.getLocation().getY());\n\t\t\t//System.out.println(\"King's Loc: \" + opposKingsLoc.getX() + \" \" + opposKingsLoc.getY());\n\t\t\t//System.out.println(\"called getKingLoc\");\n\t\t\tif (canMove(opposKingsLoc,b))\n\t\t\t{\n\t\t\t\t//System.out.println(\"entered\");\n\t\t\t\tb.check = true;\n\t\t\t\t//System.out.println(\"Check\");\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t\t/*System.out.println(\"Illegal move, try again\");\n\t\tSystem.out.println();*/\n\t\t//System.out.println(5);\n\t\treturn false;\n\t}", "title": "" }, { "docid": "301c8c0fa46372bad7c2a411759a34aa", "score": "0.6102091", "text": "@Override\n\tpublic boolean move(Posiciones origen, Posiciones dest) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "18273ced0f1603a4e3b8d50b46bee4e0", "score": "0.60994166", "text": "@Override\r\n\tpublic boolean checkIfValidMove() {\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "8d1c97165e8dfc6af6a66ced60dbbb5f", "score": "0.60982955", "text": "static final boolean isMoveable(final int iLocation) {\n return iLocation == 2 || iLocation == 4;\n }", "title": "" }, { "docid": "003f3b2ca853f05fcbd73f414d824f38", "score": "0.609696", "text": "public void move() \n\t{\n\t\tx += 3;\n\t\tif(x > 637)\n\t\t{\n\t\t\tvisible = false;\n\t\t}\n\t}", "title": "" }, { "docid": "98f3a439a0a602a0facc8caacf4b0f87", "score": "0.60929585", "text": "public abstract boolean isMove(Node node);", "title": "" }, { "docid": "927eaba4c076d263200fc5b7de45f72c", "score": "0.60887027", "text": "private boolean canMovePawn(int curX, int curY, int newX, int newY, boolean turn) {\n\tif(!getPawnMoves(curX, curY, turn).contains(new Pair(newX, newY)))\n\t\treturn false;\n\telse {\n\t\treturn true;\n\t}\n}", "title": "" }, { "docid": "40f2526cf71cc9cb8ca1bf71138aed60", "score": "0.60884184", "text": "@Override\n\tpublic boolean sePuedeMover(int i, int j) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "a475784fce52ed237cf29f4ec9d809a6", "score": "0.60832715", "text": "@Override\n\tpublic boolean validMove(int xEnd, int yEnd,board b){\n\t\tif(b.occupied(xEnd, yEnd)&&b.getPiece(xEnd, yEnd).getColor()==color){\n\t\t\treturn false;\n\t\t}\n\t\tif(y==yEnd){\n\t\t\tif(x>xEnd){\n\t\t\t\tfor(int i = x-1; i>=xEnd;i--){\n\t\t\t\tif(b.occupied(i, y)&&i!=xEnd){\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(b.occupied(xEnd, yEnd)){\n\t\t\t\t\t//set the enpass flage back\n\t\t\t\t\tb.setFlag(color, 100, 100);\n\t\t\t\t\tb.recycle(xEnd, yEnd);\n\t\t\t\t\tthis.setPosition(xEnd, yEnd);\n\t\t\t\t\tb.update();\n\t\t\t\t\tc=0;\n\t\t\t\t\treturn true;\n\t\t\t\t}else{\n\t\t\t\t\t//set the enpass flage back\n\t\t\t\t\tb.setFlag(color, 100, 100);\n\t\t\t\t\tthis.setPosition(xEnd, yEnd);\n\t\t\t\t\tb.update();\n\t\t\t\t\tc=0;\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}else if(x<xEnd){\n\t\t\t\tfor(int i = x+1; i<=xEnd;i++){\n\t\t\t\t\tif(b.occupied(i, y)&&i!=xEnd){\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(b.occupied(xEnd, yEnd)){\n\t\t\t\t\t//set the enpass flage back\n\t\t\t\t\tb.setFlag(color, 100, 100);\n\t\t\t\t\tb.recycle(xEnd, yEnd);\n\t\t\t\t\tthis.setPosition(xEnd, yEnd);\n\t\t\t\t\tb.update();\n\t\t\t\t\tc=0;\n\t\t\t\t\treturn true;\n\t\t\t\t}else{\n\t\t\t\t\t//set the enpass flage back\n\t\t\t\t\tb.setFlag(color, 100, 100);\n\t\t\t\t\tthis.setPosition(xEnd, yEnd);\n\t\t\t\t\tb.update();\n\t\t\t\t\tc=0;\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}else if(x==xEnd){\n\t\t\tif(y>yEnd){\n\t\t\t\tfor(int i = y-1; i>=yEnd;i--){\n\t\t\t\t\tif(b.occupied(x, i)&&i!=yEnd){\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(b.occupied(xEnd, yEnd)){\n\t\t\t\t\t//set the enpass flage back\n\t\t\t\t\tb.setFlag(color, 100, 100);\n\t\t\t\t\tb.recycle(xEnd, yEnd);\n\t\t\t\t\tthis.setPosition(xEnd, yEnd);\n\t\t\t\t\tb.update();\n\t\t\t\t\tc=0;\n\t\t\t\t\treturn true;\n\t\t\t\t}else{\n\t\t\t\t\t//set the enpass flage back\n\t\t\t\t\tb.setFlag(color, 100, 100);\n\t\t\t\t\tthis.setPosition(xEnd, yEnd);\n\t\t\t\t\tb.update();\n\t\t\t\t\tc=0;\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}else if(y<yEnd){\n\t\t\t\tfor(int i = y+1; i<=yEnd;i++){\n\t\t\t\t\tif(b.occupied(x, i)&&i!=yEnd){\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(b.occupied(xEnd, yEnd)){\n\t\t\t\t\t//set the enpass flage back\n\t\t\t\t\tb.setFlag(color, 100, 100);\n\t\t\t\t\tb.recycle(xEnd, yEnd);\n\t\t\t\t\tthis.setPosition(xEnd, yEnd);\n\t\t\t\t\tb.update();\n\t\t\t\t\tc=0;\n\t\t\t\t\treturn true;\n\t\t\t\t}else{\n\t\t\t\t\t//set the enpass flage back\n\t\t\t\t\tb.setFlag(color, 100, 100);\n\t\t\t\t\tthis.setPosition(xEnd, yEnd);\n\t\t\t\t\tb.update();\n\t\t\t\t\tc=0;\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}else{\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "b62e8d697f8e109bd0e29b12e9726575", "score": "0.60826826", "text": "public void makeMove(){}", "title": "" }, { "docid": "eb2f63a51c51a5d6aeb5b2f71d5b025c", "score": "0.60765135", "text": "public void otherPlayerMoved(int position) {\r\n out.println(\"OPPONENT_MOVED \" + position);\r\n out.println(winCheck() ? \"DEFEAT\" : checkFilled() ? \"TIE\" : \"\");\r\n }", "title": "" }, { "docid": "72a2f0d54999c10ac1a6a9c231c22a63", "score": "0.60751617", "text": "private void doMove(Point to) {\n if (to.y == 0 && moving instanceof Pawn) {\n final String text = \"What would you like to promote your pawn to?\";\n final String[] options = {\"QUEEN\", \"KNIGHT\", \"ROOK\", \"BISHOP\"};\n final int promotion = customText(text, options);\n final Piece piece;\n switch (promotion) {\n case 0:\n piece = new Queen(moving.isWhite());\n break;\n case 1:\n piece = new Knight(moving.isWhite());\n break;\n case 2:\n piece = new Rook(moving.isWhite());\n break;\n case 3:\n piece = new Bishop(moving.isWhite());\n break;\n default:\n piece = moving;\n break;\n }\n move(piece, from, to);\n } else {\n move(moving, from, to);\n }\n isWhiteTurn = !isWhiteTurn;\n chess.flipBoard();\n checkEndgame();\n }", "title": "" }, { "docid": "436b900e49e68a31ceeed14bb74dc987", "score": "0.6065779", "text": "public boolean moveOneStep(int down, int right){\n\n locateTheComPlayer();\n\n boolean flag=false;\n\n if(playerRow+down<0||playerRow+down>numRows-1||playerColumn+right<0||playerColumn+right>numCols-1)\n return flag;\n\n if(map[playerRow+down][playerColumn+right].getTileType() == TileType.GROUND){\n map[playerRow][playerColumn] = new Cells(TileType.GROUND, numRows, numCols, new Ground(TileType.GROUND));\n map[playerRow+down][playerColumn+right] = new Cells(TileType.HERO, numRows, numCols,theComPlayer);\n flag=true;\n }\n else if(map[playerRow+down][playerColumn+right].getTileType() == TileType.CHEST){\n Items item = map[playerRow+down][playerColumn+right].getItems();\n //lootItem(item,hero);\n theComPlayer.lootItem(item);\n map[playerRow][playerColumn] = new Cells(TileType.GROUND, numRows, numCols, new Ground(TileType.GROUND));\n map[playerRow+down][playerColumn+right] = new Cells(TileType.HERO, numRows, numCols,theComPlayer);\n }\n else if(map[playerRow+down][playerColumn+right].getTileType() == TileType.MONSTER){\n Characters target=map[playerRow+down][playerColumn+right].getCharacters();\n if(target.getOrient()==Orientation.HOSTILE){\n //attackOrLootDead the target\n boolean ifLive=theComPlayer.attackOrLootDead(target);\n if(!ifLive){\n map[playerRow][playerColumn] = new Cells(TileType.GROUND, numRows, numCols, new Ground(TileType.GROUND));\n map[playerRow+down][playerColumn+right]=new Cells(TileType.HERO, numRows, numCols,theComPlayer);\n mapFrame.updateCharacterList();\n flag=true;\n }\n else{\n attackTime--;\n }\n }\n }\n else if (map[playerRow+down][playerColumn+right].getTileType() == TileType.EXIT) {\n if(!searchForHostiles()){\n map[playerRow][playerColumn]=new Cells(TileType.GROUND, numRows, numCols, new Ground(TileType.GROUND));\n JOptionPane.showMessageDialog(null, \"objective is achieved,you are going to next map\", \"Prompt\", JOptionPane.INFORMATION_MESSAGE);\n exitFromMap(theComPlayer);\n steps=0;\n }\n }\n\n\n if(flag){\n recoverTheEntry(playerRow,playerColumn);\n System.out.println(\"[ \"+theComPlayer.getName()+\" ] move to \"+playerRow+\",\"+playerColumn);\n mapFrame.setMap(map,numRows,numCols);\n mapFrame.drawMap(2);\n }\n return flag;\n }", "title": "" }, { "docid": "2643cc00aa47a6ee77fec3de25e40e8a", "score": "0.6064541", "text": "public ArrayList<Position> checkPawn() \n\t{\n\t\tArrayList<Position> possible_move = new ArrayList<Position>() ;\n\n\t\t\n\t\tif(piece.getColor())//Checks if the Pawn is White\n\t\t{\n\t\t\tif(lookMovementPawn1(x-1,y))\n\t\t\t{\n\t\t\t\tpossible_move.add(new Position(x-1,y));\n\t\t\t\t\tif(lookMovementPawn1(x-2,y))\n\t\t\t\t\t\tpossible_move.add(new Position(x-2,y));\n\t\t\t\t\t\n\t\t\t}\n\t\t\t\tif(lookMovementPawn2(x-1,y-1))\n\t\t\t\t\tpossible_move.add(new Position(x-1,y-1));\n\t\t\t\tif(lookMovementPawn2(x-1,y+1))\n\t\t\t\t\tpossible_move.add(new Position(x-1,y+1));\n\t\t}\n\t\telse//Pawn is Black\n\t\t{\n\t\t\tif(lookMovementPawn1(x+1,y))\n\t\t\t{\n\t\t\t\tpossible_move.add(new Position(x+1,y));\n\t\t\t\t\tif(lookMovementPawn1(x+2,y))//only if position 1 is free checks position 2\n\t\t\t\t\t\tpossible_move.add(new Position(x+2,y));\n\t\t\t\t\t\n\t\t\t}\n\t\t\t\tif(lookMovementPawn2(x+1,y-1))\n\t\t\t\t\tpossible_move.add(new Position(x+1,y-1));\n\t\t\t\tif(lookMovementPawn2(x+1,y+1))\n\t\t\t\t\tpossible_move.add(new Position(x+1,y+1));\n\t\t}\n\t\treturn possible_move;\n\t}", "title": "" }, { "docid": "006d2349e5871441b97f8501bc9a9789", "score": "0.6063098", "text": "protected void makeMove() {\n boolean badMove = true;\n int row = -1;\n int col = -1;\n\n while (badMove) {\n row = rg.discrete(0, 2);\n col = rg.discrete(0, 2);\n if (board.getMark(row, col) == SPACE_CHAR) {\n board.addMark(row, col, this.mark);\n badMove = false;\n }\n }\n reportMove(row, col);\n return;\n }", "title": "" }, { "docid": "2fb1f9a03fac2ce70fe9d3c72738116c", "score": "0.6062903", "text": "public void testPawnMove2()\n {\n }", "title": "" }, { "docid": "e6798e9d0f3f79c69b256b691678b979", "score": "0.6058027", "text": "@Test\n public void testMove() throws InvalidMoveException {\n ManantialesFicha f1 = new ManantialesFicha(0,4, bob.getColor(),\n TokenType.MODERATE_PASTURE);\n ManantialesFicha f2 = new ManantialesFicha(1,4, bob.getColor(),\n TokenType.MODERATE_PASTURE);\n SetIds(f1, f2);\n ManantialesMove move = new ManantialesMove(alice, f1);\n game.move(move);\n /* Cleanup players */\n removeTurns();\n alice.setTurn(true);\n /* Do new move */\n move = new ManantialesMove (alice, f1, f2);\n game.move(move);\n assertNull(game.getGrid().getLocation(f1));\n assertEquals(MoveStatus.EVALUATED, move.getStatus());\n }", "title": "" }, { "docid": "f5595d3388f656edd9da6f9fc5c942f0", "score": "0.6053464", "text": "public void makeMoves()\r\n {\r\n if (showStuff == true)\r\n {\r\n System.out.println(toString());\r\n }\r\n isRunning = p1.canMove(theBoard, '$');\r\n theBoard = p1.move(theBoard, '$');\r\n maintenence();\r\n incrementTurn();\r\n // System.out.println(timeSinceJump);\r\n isRunning = p2.canMove(theBoard, '@');\r\n\r\n if (runs() == 0)\r\n {\r\n if (showStuff == true)\r\n {\r\n System.out.println(toString());\r\n }\r\n\r\n theBoard = p2.move(theBoard, '@');\r\n incrementTurn();\r\n maintenence();\r\n }\r\n }", "title": "" }, { "docid": "d2da27323f0ac0877a498311fc9c981c", "score": "0.6046124", "text": "private int checkMove(Position p){\n if(mPrevPos!=null) {\n if ((int) p.getPositionX() > (int) mPrevPos.getPositionX()) {\n return MOVE_RIGHT;\n } else if ((int) p.getPositionX() < (int) mPrevPos.getPositionX()) {\n return MOVE_LEFT;\n } else {\n return MOVE_STILL;\n }\n } else {\n return MOVE_STILL;\n }\n }", "title": "" }, { "docid": "e88f661f3b37cd305adf489c30e6d213", "score": "0.6045805", "text": "public void computerMove() {\n\t\tBoolean cornerResult = true;\n\t\tBoolean centreResult = true;\n\t\tSystem.out.println(\"Computer will make a move\");\n\n\t\tchar stratergyOut = computerStratergy();\n\t\tif (stratergyOut == 'n') {\n\t\t\tcornerResult = cornerSelect();\n\t\t}\n\t\tif (!cornerResult) {\n\t\t\tcentreResult = centreSelect();\n\n\t\t}\n\n\t\tif (!centreResult) {\n\t\t\twhile (true) {\n\n\t\t\t\tint index = (int) (Math.floor(Math.random() * 10) % 9);\n\t\t\t\tif (board[index + 1] == ' ') {\n\t\t\t\t\tboard[index + 1] = player2;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\n\t\tshowBoard();\n\t\tcheckWinner();\n\n\t}", "title": "" }, { "docid": "427d28c0b972d7ec4b22663569f0cca6", "score": "0.60453254", "text": "private boolean validMove(int row, int column){\n \treturn !(this.grid.getCell(row, column).toString().equals(String.valueOf(Constants.WALL)) \n \t\t\t|| this.grid.getCell(row, column).toString().equals(String.valueOf(Constants.P1)) \n \t\t\t|| this.grid.getCell(row, column).toString().equals(String.valueOf(Constants.P2)));\n }", "title": "" }, { "docid": "b55ace131413cc865ab7a24112226624", "score": "0.60451585", "text": "public void makeMove(int startingSpace, int numSpacesToMove, int player) {\n\t\t//--------------------\n\t\t// TODO: insert your code here.\n\n\n\t\tif (player == 1) {\n\t\t\tplayerlocations[startingSpace] -= 1;\n\t\t\tif (startingSpace + numSpacesToMove < 25) { //verifies that the move is a standard move, not a bearing off move\n\t\t\t\tif (playerlocations[startingSpace + numSpacesToMove] == -1) { //bumping piece\n\t\t\t\t\tplayerlocations[startingSpace + numSpacesToMove] += 2; // add a checker to bar\n\t\t\t\t\tplayerlocations[25] -= 1;\n\t\t\t\t} else { //simply moving the piece\n\t\t\t\t\tplayerlocations[startingSpace + numSpacesToMove] += 1;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//the lack of else condition means that since makeMove was called yet the first if statement in player==1 was not true, we know that the player is currently bearing off and no further action is required\n\n\t\t} else {\n\t\t\tplayerlocations[startingSpace] += 1;\n\t\t\tif (startingSpace - numSpacesToMove > 0) {\n\t\t\t\tif (playerlocations[startingSpace - numSpacesToMove] == 1) {\n\t\t\t\t\tplayerlocations[startingSpace - numSpacesToMove] -= 2; // add a checker to bar\n\t\t\t\t\tplayerlocations[0] += 1;\n\t\t\t\t} else {\n\t\t\t\t\tplayerlocations[startingSpace - numSpacesToMove] -= 1;\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t}", "title": "" }, { "docid": "5014ed42b608122f5b954b2ad72c180d", "score": "0.6044639", "text": "public static boolean isSafe(Piece p, String POS, int XI, int YI, int freeMoves) {\n if(p.isExit) {\n return true;\n }\n // System.err.println(\"isSafe(2)->\" +p.isExit);\n int nextX =XI;\n int nextY =YI;\n switch(p.type) {\n case 1: nextY++;\n break;\n case 2:if(\"LEFT\".equals(POS)) nextX++;\n else nextX--;\n break;\n case 3: nextY++;\n break;\n case 4:if(\"TOP\".equals(POS)) nextX--;\n else nextY++;\n break;\n case 5:if(\"TOP\".equals(POS)) nextX++;\n else nextY++;\n break;\n case 6:if(\"LEFT\".equals(POS)) nextX++;\n else nextX--;\n break;\n case 7:nextY++;\n break;\n case 8:nextY++;\n break;\n case 9:nextY++;\n break;\n case 10:nextX--;\n break;\n case 11:nextX++;\n break;\n case 12:nextY++;\n break;\n case 13:nextY++;\n break;\n }\n // System.err.println(\"isSafe(4)->\" +nextX +\" \" +nextY);\n if(nextX>=0 && nextX <W && nextY >= 0 && nextY <H) {\n Piece nextType = matrix[nextY][nextX];\n boolean canEnter = nextType.canEnter(p.exit(POS));\n // System.err.println(\"isSafe(3)->\" +nextType +\" \" +canEnter);\n if(canEnter && isSafe(nextType, p.exit(POS), nextX, nextY, freeMoves+1)) {\n return true;\n }\n if(nextType.moveable) {\n nextType.rotateClockwise();\n canEnter = nextType.canEnter(p.exit(POS));\n if(canEnter && isSafe(nextType, p.exit(POS), nextX, nextY, freeMoves - 1)) {\n nextType.rotateCounterClockwise();\n\n return true;\n }\n nextType.rotateCounterClockwise();\n nextType.rotateCounterClockwise();\n canEnter = nextType.canEnter(p.exit(POS));\n if(canEnter && isSafe(nextType, p.exit(POS), nextX, nextY, freeMoves -1 )) {\n nextType.rotateClockwise();\n return true;\n }\n nextType.rotateClockwise();\n if(nextType.canRotateMany() && freeMoves >1) {\n nextType.rotateClockwise(2);\n canEnter = nextType.canEnter(p.exit(POS));\n if(canEnter && isSafe(nextType, p.exit(POS), nextX, nextY, freeMoves - 2)) {\n nextType.rotateCounterClockwise(2);\n moves.add(new Move(nextX, nextY, \"RIGHT\"));\n return true;\n }\n nextType.rotateCounterClockwise(2);\n nextType.rotateCounterClockwise(2);\n canEnter = nextType.canEnter(p.exit(POS));\n if(canEnter && isSafe(nextType, p.exit(POS), nextX, nextY, freeMoves -2 )) {\n nextType.rotateClockwise(2);\n moves.add(new Move(nextX, nextY, \"LEFT\"));\n return true;\n }\n nextType.rotateClockwise(2);\n if(freeMoves >2) {\n nextType.rotateClockwise(3);\n canEnter = nextType.canEnter(p.exit(POS));\n if(canEnter && isSafe(nextType, p.exit(POS), nextX, nextY, freeMoves - 3)) {\n nextType.rotateCounterClockwise(3);\n return true;\n }\n nextType.rotateCounterClockwise(3);\n nextType.rotateCounterClockwise(3);\n canEnter = nextType.canEnter(p.exit(POS));\n if(canEnter && isSafe(nextType, p.exit(POS), nextX, nextY, freeMoves -3 )) {\n nextType.rotateClockwise(3);\n return true;\n }\n nextType.rotateClockwise(3);\n }\n }\n }\n }else{\n return false;\n }\n return false;\n }", "title": "" }, { "docid": "d5bb56ed86aeeb1f2d7506eec586d2bd", "score": "0.6040388", "text": "public boolean isMoveValid(int[] position1, int[] position2) {\r\n\t\tboolean fly = false;\r\n\t\t//if fly mode is on\r\n\t\tif(myOptions.getFlyRule() != 3){\r\n\t\t\t//check if fly mode has started for the player\r\n\t\t\tif ((myOptions.getFlyRule() == 1) && myBoard.piecesOnSide(currentPlayer) >= 6){\r\n\t\t\t\tfly = true;\r\n\t\t\t}\r\n\t\t\telse if ((myOptions.getFlyRule() == 2) && myBoard.piecesOnSide(currentPlayer) >= 5){\r\n\t\t\t\tfly = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(myBoard.getPiece(position1) == null){\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\t//check if piece is owned by the current player\r\n\t\tif(!(myBoard.getPiece(position1).getOwner().equals(players[currentPlayer]))){\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t//check if fly mode has started for the player\r\n\t\tif(!fly){\r\n\t\t\t//fly mode is not enabled yet for player\r\n\t\t\t//check that its one step away on a path\r\n\t\t\t//if a corner piece is selected\r\n\t\t\tif(position1[1] % 2 == 0){\r\n\t\t\t\t//piece cannot move to different square\r\n\t\t\t\t//this would change for a advance game board type\r\n\t\t\t\tif(position1[0] != position2[0]){\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t\t//piece must move only 1 space away\r\n\t\t\t\tif( (position1[1]+1) % 8 != position2[1] &&\r\n\t\t\t\t\t(position1[1]+7) % 8 != position2[1])\r\n\t\t\t\t{\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t//a middle piece is selected\r\n\t\t\telse{\r\n\t\t\t\t//if piece changes squares\r\n\t\t\t\tif(position1[0] != position2[0]){\r\n\t\t\t\t\t//piece can not change position on square number\r\n\t\t\t\t\tif(position1[1] != position2[1]){\r\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t//square must be plus or minus on square\r\n\t\t\t\t\tif( (position1[0]+1) != position2[0] &&\r\n\t\t\t\t\t\t(position1[0]-1) != position2[0])\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t//piece stays on same square\r\n\t\t\t\t//piece must move only 1 space away\r\n\t\t\t\telse if( (position1[1]+1) % 8 != position2[1] &&\r\n\t\t\t\t\t\t (position1[1]+7) % 8 != position2[1])\r\n\t\t\t\t{\r\n\t\t\t\t\t\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\t//else doesn't matter where it's placed and ownership is checked earlier\r\n\t\t//System.out.println(fly);\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "022f3ff1c2986cbeab5f2e24fbb46047", "score": "0.6039068", "text": "private void moveIt() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "689b2f5898b745667602c4b46ae8c02f", "score": "0.60298324", "text": "private boolean tryMove(Shape newPiece, int x, int y){\n for (int i = 0; i < 4; ++i) {\n \t\n int newX = x + newPiece.getX(i);\n int newY = y - newPiece.getY(i);\n \n if (newX < 0 || newX >= WIDTH || newY < 0 || newY >= HEIGHT)\n return false;\n \n if (shapeInArray(newX, newY) != Shape.Mino.NONE)\n return false;\n }\n\n curr = newPiece;\n \n currX = x;\n currY = y;\n repaint();\n return true;\n }", "title": "" }, { "docid": "2a2ed28eabc194cd0ab89955c8d3c3f8", "score": "0.6025301", "text": "public boolean setMove(int x, int y, int playerNum) {\n boolean aMove = false;\n \n if(isPosOpen(move))\n {\n Coordinates tempCor = new Coordinates(x,y);\n this.move = tempCor;\n placeInPosition(tempCor, playerNum);\n aMove = true;\n }\n \n return aMove;\n }", "title": "" }, { "docid": "c230301540e83be109d779d2e1aab73c", "score": "0.6023617", "text": "void cantMove();", "title": "" }, { "docid": "875d38f19ebe84f08b6bc1708111459a", "score": "0.6022787", "text": "private void moveGates() {\n\n }", "title": "" }, { "docid": "a8535fc05deaf3ac623ab240ce7a51d2", "score": "0.60221994", "text": "private boolean opportunityToMove(int newX, int newY) {\n if (newX < 0 || newY < 0) {\n return false;\n }\n\n if (newX > game.board.length || newY > game.board[0].length) {\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "c3ee34c6de15ac5edef5c74f72e8a126", "score": "0.60193723", "text": "public void makeMove() {\n\t\tif (game.getCurrentPlayer().equals(this)) {\n\t\t\tif (move[0].equals(\"place\")) {\n\t\t\t\tMap<Steen, int[]> placingmap = new HashMap<Steen, int[]>();\n\t\t\t\tString[] steenenplaatsen = move[1].split(\" \");\n\t\t\t\tif ((steenenplaatsen.length % 2) != 0) {\n\t\t\t\t\twrite(\"error 0, invalid move\");\n\t\t\t\t} else {\n\t\t\t\t\tfor (int i = 0; i < steenenplaatsen.length; i = i + 2) {\n\t\t\t\t\t\tString[] steen = steenenplaatsen[i].split(\",\");\n\t\t\t\t\t\tif (!(steen.length == 2)) {\n\t\t\t\t\t\t\twrite(\"error 0, invalid stone\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.println(\"Trying to place the tiles...\");\n\t\t\t\t\t\t\tString[] plaatss = steenenplaatsen[i + 1].split(\",\");\n\t\t\t\t\t\t\tint[] plaatsi = new int[2];\n\t\t\t\t\t\t\tplaatsi[0] = Integer.parseInt(plaatss[0]);\n\t\t\t\t\t\t\tplaatsi[1] = Integer.parseInt(plaatss[1]);\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tplacingmap.put(getSteen(Integer.parseInt(steen[0]), Integer.parseInt(steen[1])),\n\t\t\t\t\t\t\t\t\t\tplaatsi);\n\t\t\t\t\t\t\t\tstenen.remove(getSteen(Integer.parseInt(steen[0]), Integer.parseInt(steen[1])));\n\t\t\t\t\t\t\t\tstenen.add(game.takeSteen());\n\t\t\t\t\t\t\t} catch (InvalidArgumentException e) {\n\t\t\t\t\t\t\t\twrite(\"error 0, stone not in your possession\");\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\tboolean isplaced = game.place(placingmap);\n\t\t\t\t\tif (isplaced) {\n\t\t\t\t\t\tmovesucceed = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (move[0].equals(\"trade\")) {\n\t\t\t\tList<Steen> tstenen = new ArrayList<Steen>();\n\t\t\t\tString[] sstenen = move[1].split(\" \");\n\t\t\t\tfor (int i = 0; i < sstenen.length; i++) {\n\t\t\t\t\tString[] ssteen = sstenen[i].split(\",\");\n\t\t\t\t\ttry {\n\t\t\t\t\t\ttstenen.add(getSteen(Integer.parseInt(ssteen[0]), Integer.parseInt(ssteen[1])));\n\t\t\t\t\t\tstenen.remove(getSteen(Integer.parseInt(ssteen[0]), Integer.parseInt(ssteen[1])));\n\t\t\t\t\t\tmovesucceed = true;\n\t\t\t\t\t}\n\t\t\t\t\tcatch (InvalidArgumentException e) {\n\t\t\t\t\t\twrite(\"error 0\");\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\tstenen.addAll(game.tradeStenen(tstenen));\n\t\t\t}\n\t\t\tif (stenen.isEmpty()) {\n\t\t\t\tgame.noStonesLeft(this);\n\t\t\t}\n\t\t} else {\n\t\t\twrite(\"error 0, checking if it goes wrong here\");\n\t\t}\n\t}", "title": "" }, { "docid": "d2815d335015baf10ad314ed8e3224af", "score": "0.6018001", "text": "public void checkMove() {\n\n\t\t// this is the current highlighted move being checked for possible moves\n\t\tArrayList<Point> legalList = board[xBox][yBox].getMoves(board, xBox,\n\t\t\t\tyBox);\n\n\t\t// check if the new move is within the legal move lists\n\t\t// checking if the list is not empty\n\n\t\tif (!legalList.isEmpty()) {\n\t\t\t// iterating through the legal list of moves\n\n\t\t\tfor (Point points : legalList) {\n\t\t\t\tint pointX = (int) points.getX();\n\t\t\t\tint pointY = (int) points.getY();\n\n\t\t\t\tif (pointX == newxBox && pointY == newyBox) {\n\n\t\t\t\t\t// the move is legal, perform it\n\t\t\t\t\tmove(xBox, yBox, newxBox, newyBox);\n\n\t\t\t\t} else {\n\t\t\t\t\t// the move is illegal\n\t\t\t\t\thighlight = false;\n\t\t\t\t\trepaint();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" } ]
cb5d00070bd5ac94cf97546fe65f8698
Metodo toString della classe Medico. Restituisce una breve descrizione delle sue principali caratteristiche.
[ { "docid": "5ae961c2edfca72063c6ecea735fc9b8", "score": "0.84957504", "text": "public String toString(){\n\t\tStringBuilder descrizioneMedico = new StringBuilder();\n\t\tdescrizioneMedico.append(\"Nome: \").append(nome).append(\"\\nCognome: \").append(cognome)\n\t\t.append(\"\\nID: \").append(ID).append(\"\\nAnno laurea: \").append(annoLaurea)\n\t\t.append(\"\\nAnno assunzione: \").append(annoAssunzione);\n\t\treturn descrizioneMedico.toString();\n\t}", "title": "" } ]
[ { "docid": "68d7cae4bf5da6eac8ac09ac4c695987", "score": "0.7217367", "text": "@Override\n public String toString() {\n return \"moto: \"+super.toString();\n }", "title": "" }, { "docid": "9e45ca8b2da2b60866024173e945d513", "score": "0.71987873", "text": "@Override\n public String toString() {\n String msg = \"Aluno matriculado: \" + this.nome + \"\\nMatricula: \" + this.matricula + \"\\nBem vindo!!\"; // Questao 2\n return msg;\n }", "title": "" }, { "docid": "2391a8205e0bcf335e960cf054d98575", "score": "0.71114403", "text": "public String toString()\n\t{\n\t\treturn \"Matricola: \"+getMatricola()+\". Data e ora: \"+getDataOra()+\" Id Accesso: \"+getIdAccesso();\n\t}", "title": "" }, { "docid": "bf10358339737682c606473f4cbaab1e", "score": "0.71012026", "text": "@Override\r\n\tpublic String toString() {\n\t\treturn descricao;\r\n\t}", "title": "" }, { "docid": "adc0b6f09daa4e3c967e13255129ac2d", "score": "0.70452076", "text": "@Override\r\n\tpublic String toString() {\n\t\treturn mobil;\r\n\t}", "title": "" }, { "docid": "577f4ffe2ffc0a8a48ec734547fb5124", "score": "0.70007354", "text": "public String toString() {\n\t\treturn \"Otros \" + super.toString()+ \" \" + StringUtils.replace(descripcion, \" \", \"_\");\n\t}", "title": "" }, { "docid": "fd9502a03fabb8b86dfaa42fa9095e39", "score": "0.69531244", "text": "public String toString() {\n\t\treturn descricao;\n\t}", "title": "" }, { "docid": "364cf7fdc92d2b0f39d840ea90909ef9", "score": "0.6899744", "text": "@Override\r\n public String toString() {\r\n return getClass().getSimpleName()+\r\n \" ID=\" + getID() +\r\n \", medicineType='\" + getMedicineType() + '\\'' +\r\n \", expirationDateMounth=\" + getExpirationDateMounth() +\r\n \", expirationDateYear=\" + getExpirationDateYear() +\r\n \", name='\" + getName() + '\\'' +\r\n \", stock=\" + getStock() +\r\n \", price=\" + getPrice() +\r\n '}';\r\n }", "title": "" }, { "docid": "0faa09d80528b9b8621d3e192de92f4e", "score": "0.68842065", "text": "@Override\n public String toString()\n {\n return this.getClass().getSimpleName() + \"_\" + poradi;\n }", "title": "" }, { "docid": "a9ce8f4a6e939b6d3cabd5c858439a98", "score": "0.6865566", "text": "@Override\n\tpublic String toString() {\n\t\tString stringa = \" • ID: \"+idStrumentazione + \" - \" + nome + \"\\n\" \n\t\t\t\t+ \" - Modello: \" + modello + \"\\n\"\n\t\t\t\t+ \" - Marca: \" + marca + \"\\n\" \n\t\t\t\t+ \" - Tipologia: \" + tipologia + \"\\n\" \n\t\t\t\t+ \" - Data di acquisto: \" + Utility.sqlToStringFormat(dataAcquisto);\n\t\treturn stringa;\n\t}", "title": "" }, { "docid": "090a1edec2f902d9dad7bfd5eb54de85", "score": "0.685936", "text": "public String toString(){\n \n String descripcion = new String(this.instant.toString() + \" \" + this.link + \" \" + this.echoedBy + \" (\" + this.type + \")\");\n \n return descripcion;\n}", "title": "" }, { "docid": "76a60d826ad436bcc2557971437a1ca8", "score": "0.683589", "text": "public String toString() {\n\t\treturn name() + \", \" + getMarca();\n\n\t}", "title": "" }, { "docid": "48ebe70004fe5ae95887093838811192", "score": "0.6826473", "text": "public String toString() {\n\t\treturn nome + \" \" + horasTrabalhadas + \" \" + calculaMedia() + \" \" + Arrays.toString(notas);\n\t}", "title": "" }, { "docid": "0dd2c89b4cc8581292c44354d47d8a6d", "score": "0.6824816", "text": "@Override\r\n\tpublic String toString() {\n\t\treturn new String(id+\" \"+descricao+\" \"+valorMensal+\" \"+minutosDeFranquia+\" \"+valorDaChamada);\r\n\t}", "title": "" }, { "docid": "3f348a04be7f4b58bcaaf8da0036be64", "score": "0.6758305", "text": "@Override\n public String toString() {\n return \"Nome:\" + contato + \" Idade:\" + idade + \" Altura:\" + altura + \"\\n\";\n }", "title": "" }, { "docid": "efaa821de89f93b1b229b572e148c997", "score": "0.67453784", "text": "public String toString()\n {\n String s = \"\\nCD :\\n\";\n s += \"Titre : \" + this.titre + \"\\n\";\n s += \"Duree : \" + this.duree + \"\\n\";\n s += \"Etat : \";\n if (this.presentEnRayon)\n {\n s += \"disponible\\n\";\n }\n else\n {\n s += \"emprunte\\n\";\n }\n s += \"Commentaires : \" + this.commentaires + \"\\n\";\n s += \"Artiste : \" + this.artiste + \"\\npistes : \" + this.nbPistes;\n return s;\n }", "title": "" }, { "docid": "da695ece0e68da32227ddcbf35203e05", "score": "0.67385113", "text": "@Override\n\tpublic String toString() {\n\t\tString cadena=\"Potencia: \"+this.getMotor().getPotenciaMaxima()+\" HP\"+'\\n'+\n\t\t \"Revoluciones Maximas: \"+this.getMotor().getRevolucionesMaximas()+\"RPM\"+'\\n'+\n\t\t \"Cilindrada: \"+this.getMotor().getCilindrada()/1000+\" litros\"+'\\n'+\n\t\t \"Cilindros: \"+this.getMotor().getCantidadCilindros()+'\\n'+\n\t\t \"Peso \"+this.getPeso()+\" Kg Caja de \"+this.getCaja().getCantidadCambios();\n\t\treturn(cadena);\n\t}", "title": "" }, { "docid": "35f0a63c3cd8c9e68ff26ad68f39b5c6", "score": "0.67195946", "text": "public String toString() {\n\t\t\treturn this.id+\" - \"+this.nom+\" (\"+this.largeur+\";\"+this.hauteur+\")\";\n\t\t}", "title": "" }, { "docid": "70fc09658ba10a6df596dc59b8ea8c09", "score": "0.66755515", "text": "@Override\r\n public String toString() {\n return getNom() + \" \" + getPrenom();\r\n }", "title": "" }, { "docid": "c691e17ce87c12297bea5bcb30ada9b9", "score": "0.66729736", "text": "@Override\n public String toString() {\n return String.format(\"%04d %s %s %s\", id, getName(), getSurname(), getMedalCount());\n }", "title": "" }, { "docid": "818a583a48de1e3c8f771bd5c4485573", "score": "0.6663791", "text": "@Override\n public String toString() {\n return \"Articulo Codigo:\" + codigo + \"\\n-------------------------------\" + \"\\nUnidades: \" + unidades\n + \"\\nPrecio de Compra: \" + precioCompra + \"\\nPrecio de Venta: \" + precioVenta + \"\\nIva: \" + iva\n + \"\\nDescripcion: \" + descripcion + \"\\n-------------------------------\";\n }", "title": "" }, { "docid": "343bf467246e2dcd3ea5f9d5d3e2d6ef", "score": "0.6655748", "text": "public String toString(){\n\t return description ;\n }", "title": "" }, { "docid": "8617ae3fea268d677be7bc1005c6ea58", "score": "0.6652805", "text": "@Override\n\tpublic String toString() {\n\t\treturn MENSAJE;\n\t}", "title": "" }, { "docid": "f6897b75ea59fb9be6bb05d6120d748c", "score": "0.66434455", "text": "@Override\r\n\t\tpublic String toString() { return description; }", "title": "" }, { "docid": "a3df902ad677e9194e478fcf10b0d03b", "score": "0.66218644", "text": "@Override\r\n public String toString(){\r\n return \"Nombre titular \"+titular.getNombre()+\" Saldo \"+saldo+\" Códig cuenta \"+codigo;\r\n }", "title": "" }, { "docid": "ebea30b99500ede9a16049654513f56d", "score": "0.6618665", "text": "@Override\n public String toString() {\n return primerNombre + \" \" + cedula;\n }", "title": "" }, { "docid": "8c39e447c0057b12dec846433abd874c", "score": "0.6614788", "text": "public String toString() //lets us print out information about any object\n\t{\n\t\tString description = \"This instrument has \" + numStrings + \" strings. \"\n\t\t\t\t+ \"\\nThe pitch of its highest string is \" + highestStringPitch + \". \"\n\t\t\t\t+ \"\\nIt is \" + hasEndPin + \" that it has an end pin. \"\n\t\t\t\t+ \"\\nIt is probably a\" + instrumentType + \". \";\n\t\treturn description;\n\t}", "title": "" }, { "docid": "787d78d55cc7400b77a95bfc8942c33c", "score": "0.65965456", "text": "public String toString() {\n\t\treturn super.toString()+\" \"+this.prenom ;\n\t}", "title": "" }, { "docid": "5a0b6d6f20199b0f3390286a0578f5f2", "score": "0.6595138", "text": "@Override\n public String toString() {\n return getDescription();\n }", "title": "" }, { "docid": "c101e5afdde04ac7101aa43161cf2e83", "score": "0.6593056", "text": "public String toString(){\n return this.nombre + \" \" + this.apellido1 + \" \" + this.apellido2 + \", NIF = \" + this.NIF;\n }", "title": "" }, { "docid": "1e95caa0ee771c39afb6d2faa3460f1c", "score": "0.65926707", "text": "public String toString() {\r\n\t\tString toRet = super.toString();\r\n\t\ttoRet += \"Appartiene alla categoria armi\"+ System.getProperty(\"line.separator\");\r\n\t\treturn toRet;\r\n\t}", "title": "" }, { "docid": "1d124062a47438e2f2496e73ef3322f2", "score": "0.65918165", "text": "@Override\n public String toString() {\n return getName()+\";\"+getDescription()+\";\"\n +frequency+\";\"+isGluten()+\";\"+isMilk()+\";\"\n +isNuts()+\";\"+isEgg()+\";\"+calories+\";\"+carbohydrates+\";\"+fat+\";\";\n }", "title": "" }, { "docid": "a6f53a273be58a9808e4bd95c1ec6b65", "score": "0.6586537", "text": "public String toString() {\n\t\treturn (this.nome + \" - \" + this.descricao + \" - \" + \"R$\" + String.format(\"%.2f\", preco));\n\t}", "title": "" }, { "docid": "4d69f943a3e5931201e8d2fda68b7418", "score": "0.6586421", "text": "@Override\n public String toString() {\n String manuInfo = \"\";\n //add all the important things\n //this is the has-a clause being used\n manuInfo += \"\\n Manufacturer:\\t\" + getManuName();\n manuInfo += \"\\n Manufacturer contact Info:\\t\" + getContactInfo();\n manuInfo += \"\\n Items Sold:\\t\" + getItemsSold();\n\n return manuInfo;\n }", "title": "" }, { "docid": "2f206d54b9a56f0833d6b49f261424f2", "score": "0.6586343", "text": "@Override\r\n\tpublic String getMetaData() {\n\t\treturn toString();\r\n\t}", "title": "" }, { "docid": "aa3f1cdbe7e8a71eb3b9338f7597ee69", "score": "0.65803456", "text": "public java.lang.String toString(){\r\n\t\treturn this.id + \": \"+ this.description; //+ this.usar + this.times;\r\n\t}", "title": "" }, { "docid": "9ffd10948a34496c065ab3f0af086b58", "score": "0.6577488", "text": "public String toString(){\r\n return \"Description: \"+getDescription();\r\n }", "title": "" }, { "docid": "20055c6cce181c82578188b011cc2dca", "score": "0.6568563", "text": "@Override\n\tpublic String toString() {\n\t\treturn super.toString() + \", Meses de ida: \" + mesesDeVida + \", Estacion de plantacion: \" + estacionPlantacion\n\t\t\t\t+ \", Habitat: \" + habitat + \", Altura: \" + altura + \"\\n\" + \", Posee flor: \" + flor\n\t\t\t\t+ \", Nivel de Exposicion Solar: \" + nivelExposicionSolar + \", Tipo de raiz: \" + tipoRaiz\n\t\t\t\t+ \", Es aromatica: \" + aromatica + \", Cantidad de fertilizante: \" + cantidadFertilizante;\n\t}", "title": "" }, { "docid": "2de9a85ed98b14af8dd4e86512f59814", "score": "0.65623534", "text": "@Override\n public String toString() {\n \treturn this.idItem + \". \" + this.nome + \", \" + this.categoria;\n }", "title": "" }, { "docid": "9d2149fb5cc0694af5c939939ab77573", "score": "0.65378547", "text": "@Override\r\n public String toString(){\r\n return \"EL autor: \" + this.getAutor() + \r\n \", Ha escrito el libro: \" + this.getNom() +\r\n \", Cada unidad cuesta: \" + this.getPrecio() +\r\n \" Y tiene un total de: \" + this.getCantidad() + \r\n \" Unidades\";\r\n \r\n }", "title": "" }, { "docid": "114194b212c3fedef9a5a375ad09e571", "score": "0.6537227", "text": "@Override\r\n\tpublic String toString() {\r\n\t\treturn description;\r\n\t}", "title": "" }, { "docid": "266fcc3ee71dde8924e4764a9fe04583", "score": "0.6533429", "text": "@Override\n\tpublic String toString() {\n\t\treturn getNome();\n\t}", "title": "" }, { "docid": "b2639268d535ed89952d425c3597eb59", "score": "0.65226966", "text": "@Override\r\n public String toString() {\n return nomtypebeneficiaire;\r\n }", "title": "" }, { "docid": "b27dee4e119760d773906b347ae86732", "score": "0.6513736", "text": "public String toString() { \n StringBuffer sb = new StringBuffer(); \n sb.append(\"[\"); \n sb.append(idtipoFecha);\n sb.append(\"]:\"); \n sb.append(descripcion);\n return sb.toString(); \n }", "title": "" }, { "docid": "5487a883eb84426b9ddcb49ad8e23239", "score": "0.65120274", "text": "public java.lang.String getCuenta_O_Medio() {\r\n return cuenta_O_Medio;\r\n }", "title": "" }, { "docid": "0c1c8eacc3a095a22713cdfaa38ea2fe", "score": "0.65119135", "text": "@Override\n\tpublic String toString() {\n\t\treturn this.nome;\n\t}", "title": "" }, { "docid": "28d64f3defe4bd7733eb78b79c356020", "score": "0.6504207", "text": "@Override\r\n public String toString() {\n return tdispDescripcion;\r\n \r\n }", "title": "" }, { "docid": "3405c4c59d9070c3a7c21a9e3922788d", "score": "0.65034926", "text": "public String mostra() {\n return \"Reserva{\" + \"cod=\" + cod + \", date=\" + date + \", valor=\" + valor + \",\\n passageiro=\" + passageiro.mostra() + \",\\n voo=\" + voo.mostra() + '}';\n }", "title": "" }, { "docid": "8f365b52506a56ed0f3517935f9c9597", "score": "0.6491298", "text": "@Override\n public String toString(){\n return obtenerCara() + \" de \" + obtenerPalo();\n }", "title": "" }, { "docid": "c69c90705db55c7b0641bf7cc71822b2", "score": "0.6487726", "text": "@Override\n public String toString() {\n return description;\n }", "title": "" }, { "docid": "c69c90705db55c7b0641bf7cc71822b2", "score": "0.6487726", "text": "@Override\n public String toString() {\n return description;\n }", "title": "" }, { "docid": "9292b8d900f844caaa21cc53cca43aef", "score": "0.6485849", "text": "public String toString() {\n return description;\n }", "title": "" }, { "docid": "fb1b09106bc61f11276592ef5fa2eaa4", "score": "0.6485231", "text": "@Override\n\tpublic String toString() {\n\t\treturn this.getNome();\n\t}", "title": "" }, { "docid": "3742434deaaf16d519fc0e4cd920cd19", "score": "0.6479467", "text": "@Override\n\tpublic String toString() {\n\t\treturn \"nome=\" + this.nome + \" id=\" + this.id + \"\";\n\t}", "title": "" }, { "docid": "57fa6c939cfccf691ef03b7396cb318a", "score": "0.647195", "text": "@Override\n public String toString(){\n return getNombre();\n }", "title": "" }, { "docid": "77d5f1c0bf01d7f09397a889cebb6f5a", "score": "0.6466325", "text": "public String getDescr() {\n\t\treturn (this.name+\" has\"+this.account.getMoney()+\" yuans and a \"+this.motorcycle.getColor()+\" motorcycle with \"+this.motorcycle.getGasoline()+\" liters of gasoline\");\n\t}", "title": "" }, { "docid": "41629c02c59c75a3385c6e98ae6edc24", "score": "0.64616215", "text": "public String toString( )\n {\n return nombre + \" (\" + codigo + \") - \" + unidades + \" unidades ($\" + precio + \")\";\n }", "title": "" }, { "docid": "1f14470b0324897f73aa58d0ae72401d", "score": "0.6453991", "text": "public String toString() {\n return getDescription();\n }", "title": "" }, { "docid": "29100a2799a76dac038cdd6250f5605d", "score": "0.6450886", "text": "public String toString() {\n String original = super.toString();\n String neu = original + \"\\tArtist: \"+artist+ \"\\tTitel: \"+titel + \"\\tAnzahl \"+anzahl;\n return neu;\n }", "title": "" }, { "docid": "4b6e9ae63ec3406177d5f6b8f5085c89", "score": "0.6431589", "text": "@Override\n public String toString() {\n String str = \"-Notificação \" + tipo + \": \\n\" + this.getConta().getOperacoes().get(this.getConta().getOperacoes().size() - 1) + \"\\n\";\n if (tipo == TipoNotificacao.JMS) {\n ClientePessoaJuridica c = (ClientePessoaJuridica)this.getConta().getCliente();\n return str + \"Servidor JMS: \" + c.getServidorJMS();\n\n } else {\n return str;\n }\n\n }", "title": "" }, { "docid": "0c473d4f052bae6abf45944b67e8db9e", "score": "0.6426049", "text": "public String toString(){\n String vHilera=\"\";\n vHilera += \"Identificación\" + this.identificacion + \"Nombre Completo\"+this.nombre+this.primerApellido+this.segundoApellido+\n \"Direccion\"+this.provincia+this.canton+this.distrito+this.direccionSennas +\"Teléfono\"+this.telefonoCasa;\n return vHilera;\n }", "title": "" }, { "docid": "8e3b19346706c5085dd1aaa2e344f3cd", "score": "0.64236444", "text": "public java.lang.String getDescripcion();", "title": "" }, { "docid": "84096dfc2765f13bb485da18b4ed4471", "score": "0.6422183", "text": "@Override\n\tpublic String toString() {\n\t\tStringBuilder builder = new StringBuilder();\n\t\tbuilder.append(\"\\nTipo: \");\n\t\tbuilder.append(getTipo());\n\t\tbuilder.append(super.toString());\n\t\treturn builder.toString();\n\t}", "title": "" }, { "docid": "430629c07dfc33cca6b12d93ff14f4a9", "score": "0.64183307", "text": "@Override\n public String toString() {\n String dato = \"Sistema Operativo: \"+so\n + \"\\nArquitectura del Sistema Operativo: \"+arquitecturaSO +\"\\n\"\n +\"\\nDescripcion :\"+descripcionSO+\"\\n\"\n + \"\\nUsuario: \"+usuario+\"\\n\"+\n \"\\nCantidad de Ram: \"+ram+\"\\n\"+\n \"\\nProcesador: \"+this.procesador+\"\\n\"+\n \"\\nnumero de nucleos: \"+this.nucleoProcesador+\"\\n\"+\n \"\\nFabricante: \"+this.fabricanteProcesador+\"\\n\"+\n \"\\nIP: \"+this.ip+\"\\n\"+\n \"\\nMac: \"+this.Mac+\"\\n\";\n return dato;\n }", "title": "" }, { "docid": "df4eda11819644f1a5c14d57b308e5d6", "score": "0.6414189", "text": "public String toString()\n\t\t{\n String description;\n description = \"\\t\\tSong: \" + title + \" |||||| \" + \"Duration: \" + durationMinutes + \" minutes\" + \" |||||| \" + \"File: \" + fileNameandPath;\n\n return description;\n \t\t}", "title": "" }, { "docid": "154d0df3e8c05c87ed6da708892aa48e", "score": "0.64141685", "text": "public String toString() {\n return super.toString() + \"\\t\" + revista + \"\\t\" + volumen + \"\\t\" + numero;\n }", "title": "" }, { "docid": "e491ebb65b562df258c5f73f110ab8d6", "score": "0.64139587", "text": "public String toString() {\n return _description ;\n }", "title": "" }, { "docid": "d19aaee47d4a51b38c047991a8b9356c", "score": "0.6410654", "text": "public String toString() {\n \tString space = \" \";\n String pesoStr = Integer.toString(this.getPeso());\n return this.getId() + space + extremoInicial.getId() + space + extremoFinal.getId() + space + pesoStr;\n }", "title": "" }, { "docid": "3bce02e90f2e8b0e9043028545140353", "score": "0.64099306", "text": "public String toString() {\n String titolo = this.titolo;\n return \" \" + titolo + \"\\n\";\n }", "title": "" }, { "docid": "bff5b7356be89e87b1319449ae23aed9", "score": "0.6390962", "text": "public String getInfo() {\n\t\treturn this.nome + \", \" + this.categoria;\n\t}", "title": "" }, { "docid": "65f3c90b23fc607e19ff46777620b099", "score": "0.6383873", "text": "@Override\n\tpublic String toStringToView() {\n\t\treturn this.codigo + \" - \" + this.nomeFantasia;\n\t}", "title": "" }, { "docid": "877be325bb3881426b5e0ba17dc62112", "score": "0.6381899", "text": "public String toString(){\n\t\tString msj;\n\t\tmsj=getfEstadoAbanico()+\"\\n\";\n\t\tmsj+= aumentarDecreVelocidadAbanico()+\"\\n\";\n\t\tmsj+=verifMovAjusteAbanico()+\"\\n\";\n\t\t\n\t\tif(onOffIluminacion==false){\n\t\t msj+=quitarIluminacion();\n\t\t}else{\n\t\t\tmsj+=iluminacion();\n\t\t}\n\t\t\n\t\t return msj;\n\t\t \n\t}", "title": "" }, { "docid": "d448d55472aa79e8c39fd4d03630c0fb", "score": "0.63726526", "text": "public String toString() {\n if (this.mType == -1) {\n return String.valueOf(this.mObj1);\n }\n StringBuilder sb = new StringBuilder(\"Icon(typ=\");\n sb.append(typeToString(this.mType));\n int i = this.mType;\n if (i != 1) {\n if (i == 2) {\n sb.append(\" pkg=\");\n sb.append(getResPackage());\n sb.append(\" id=\");\n sb.append(String.format(\"0x%08x\", Integer.valueOf(getResId())));\n } else if (i == 3) {\n sb.append(\" len=\");\n sb.append(this.mInt1);\n if (this.mInt2 != 0) {\n sb.append(\" off=\");\n sb.append(this.mInt2);\n }\n } else if (i == 4) {\n sb.append(\" uri=\");\n sb.append(this.mObj1);\n }\n if (this.mTintList != null) {\n sb.append(\" tint=\");\n sb.append(this.mTintList);\n }\n if (this.mTintMode != DEFAULT_TINT_MODE) {\n sb.append(\" mode=\");\n sb.append(this.mTintMode);\n }\n sb.append(\")\");\n return sb.toString();\n }\n sb.append(\" size=\");\n sb.append(((Bitmap) this.mObj1).getWidth());\n sb.append(AvidJSONUtil.KEY_X);\n sb.append(((Bitmap) this.mObj1).getHeight());\n if (this.mTintList != null) {\n }\n if (this.mTintMode != DEFAULT_TINT_MODE) {\n }\n sb.append(\")\");\n return sb.toString();\n }", "title": "" }, { "docid": "8aefe52929dc3d59fa1844d27f74c385", "score": "0.6370281", "text": "@Override\n\tpublic String getDescrizione() {\n\t\treturn this.getName();\n\t}", "title": "" }, { "docid": "dcbe68bc2154af6caee95da227968d09", "score": "0.6365749", "text": "public String getDescrizione() {\r\n return descrizione;\r\n }", "title": "" }, { "docid": "527e991cea9ac165e21bc5388c5ff6ee", "score": "0.63642377", "text": "public String toString() {\t\t\t\t\t\n\t\tString spacePlagueCure = \"No\";\n\t\tif (isSpacePlagueCure()) {\n\t\t\tspacePlagueCure = \"Yes\";\n\t\t}\n\t\treturn \"Medicine: \" + getName() + \"\\nPrice: \" + Double.toString(getPrice()) + \"\\nHealing Amount: \" + Integer.toString(healingAmount) + \"\\nSpace Plague Cure: \" + spacePlagueCure;\n\t}", "title": "" }, { "docid": "6ec07853a50bc5cb84bc5a88bd47ed54", "score": "0.63435394", "text": "@Override\n\tpublic String toString() {\n\t\treturn \"(\" + numeroOrden + \") \" + texto;\n\t}", "title": "" }, { "docid": "1256fcd0be5e9021c6a54783dad3b00b", "score": "0.63377833", "text": "public String toString()\n\t{\n\t\treturn String.valueOf(this.id) \n\t\t\t\t+ \". \" \n\t\t\t\t+ this.nombre;\n\t}", "title": "" }, { "docid": "869c8a3d8c08a6fc399e162165bd3166", "score": "0.6333756", "text": "public String toString(){\n StringBuilder sb = new StringBuilder();\n sb.append(this.nome);\n return sb.toString();\n }", "title": "" }, { "docid": "d08797d6bd28ef65dcea88b08eab32e9", "score": "0.6329058", "text": "public String toString() {\n StringBuffer sb = new StringBuffer();\n int i = 1;\n\n List<Produto> medicamentos = this.stock.values().parallelStream().filter(Produto::isMedicamento).collect(Collectors.toList());\n List<Produto> produtos = this.stock.values().parallelStream().filter(p->!p.isMedicamento()).collect(Collectors.toList());\n\n if(!medicamentos.isEmpty()){\n sb.append(\"Medicamentos:\\n\");\n for (Produto m : medicamentos) {\n sb.append(i + \"º -> \").append(m.getCodigoProduto() + \" | \").append(m.toString() + \"\\n\");\n i++;\n }\n\n i=1;\n sb.append(\"\\n\");\n }\n\n if(!produtos.isEmpty()){\n sb.append(\"Produtos:\\n\");\n for (Produto p : produtos) {\n sb.append(i + \"º -> \").append(p.getCodigoProduto() + \" | \").append(p.toString() + \"\\n\");\n i++;\n }\n }\n\n if(produtos.isEmpty() && medicamentos.isEmpty()){\n sb.append(\"Não existem produtos disponiveis na loja\\n\");\n }\n\n return sb.toString();\n }", "title": "" }, { "docid": "385b0ead831a59e0cf6fa99f067328d3", "score": "0.63250214", "text": "@Override\n\tpublic String toString() {\n\t\treturn autor+\" - \"+titulo;\n\t}", "title": "" }, { "docid": "d8c9351fbf5643700e55fcae6432abd6", "score": "0.6323991", "text": "@Override\n public String toString() {\n String aux = \"\" + this.denumireReteta;\n for (int i = 0; i < materiale.values().length; i++) {\n aux = aux + \",\" + materiale.values()[i] + \",\" + Volume[i];\n }\n return aux;\n }", "title": "" }, { "docid": "a9fa0f5d3a97c93ef5095bb5dfb873d1", "score": "0.63234967", "text": "@Override\r\n public String toString() {\r\n SimpleDateFormat formato = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n return \"Libro :\" + \"\\ncodigo = \" + codigo + \"\\ntitulo = \" + titulo\r\n + \"\\nautor = \" + autor + \"\\npaginas = \" + paginas\r\n + \"\\nfechaEdicion = \" + formato.format(fechaEdicion) + \"\\n precio = \" + precio\r\n + \"\\n Disponibilidad :\" + tipo;\r\n }", "title": "" }, { "docid": "7920ced1eaa173aee6b541f78b29701a", "score": "0.6313471", "text": "public String toString() {\n\n return this.getmTitle() + \" \\n \" + getmLink() + \" \\n \" + getmPhoneNo();\n }", "title": "" }, { "docid": "12b8043d574562ab9be5830c8bd4181d", "score": "0.63120764", "text": "public String toString() {\n return nom;\n }", "title": "" }, { "docid": "4f0055ec455c9d14f12033e9acfb2e9e", "score": "0.6309067", "text": "public String getInfo()\n\t{\n\t\treturn getMedientyp() + \" '\" + getTitel() + \"' von '\" + getUrheber() + \"' \" + getEigenschaft();\n\t}", "title": "" }, { "docid": "faaa4fd5b2602a1fe6f84b67b91b5c29", "score": "0.63071537", "text": "public String toString() {\n String s = \"\";\n s += \"Valor: \" + -getValor();\n for(int i = 0; i < tamGenes.length; ++i){\n s += \" Fenotipo \" + i + \": \" + getFenotipo(i);\n }\n return s;\n\t}", "title": "" }, { "docid": "c685ebfce78612aa122bf676715140c2", "score": "0.6305917", "text": "@Override\n\tpublic String toString() {\n\t\treturn super.toString()+\"\\n\"+contrat;\n\t}", "title": "" }, { "docid": "a7278b7ab6cbba169d133f8a585462b1", "score": "0.6305329", "text": "@Override\n\tpublic String toString() {\n\t\tString stringa=\"\";\n\t\tstringa+=\"Prestazione ricetta: \"+this.prestazione;\n\t\tstringa+=\"\\nReparto: \"+this.reparto;\n\t\tstringa+=\"\\nCodice ricetta: \"+this.codiceRicetta;\n\t\tstringa+=\"\\nCodice fiscale richiedente: \"+this.getCodiceFiscale();\n\t\tstringa+=\"\\nLivello di esenzione: \";\n\t\tif(esenzione){\n\t\t\tstringa+=\"esente\";\n\t\t}else{\n\t\t\tstringa+=\"non esente\";\n\t\t}\n\t\tstringa+=\"\\nUrgenza: \"+this.urgenza;\n\t\tstringa+=\"\\nDiagnosi: \"+this.diagnosi;\n\t\treturn stringa;\n\t}", "title": "" }, { "docid": "ac80b3cdeb5bb643e95645d510c83a59", "score": "0.6305049", "text": "public String toString() {\n String aId = getId();\n String aPeso = new Double(getPeso()).toString();\n String vInicial = vI.toString();\n String vFinal = vF.toString();\n\n //String str = \"Arco id: \"+aId+\". Arco peso: \"+aPeso+\" ( \"+vInicial+\" -> \"+vFinal+\" )\";\n String str = vInicial+\"------>\"+vFinal;\n\n return str;\n }", "title": "" }, { "docid": "68e629133b7dcfc0a0832775beb2785e", "score": "0.6298695", "text": "public String toString(){\n\t\t\tMedicationNode curr = head;\n\t\t\tString str = \"\";\n\t\t\twhile( head != null){\n\t\t\t\tstr += curr.item;\n\t\t\t\tcurr = curr.next;\n\t\t\t}\n\t\t\treturn str;\n\t\n\t}", "title": "" }, { "docid": "1851a5f992403d3f18c571d25c20a9d1", "score": "0.6296824", "text": "@Override\n public String toString(){\n \n NodoEntero aux = cabeza; //Inicializa el nodo auxiliar con el valor de la cabeza\n String resultado = \"\";\n \n for(int i = 0; i < size; i++){\n \n resultado +=\"[\" + aux.getDato()+ \"] \"; //Toma el dato del auxiliar y lo agrega al string\n \n if(aux.getSig() == null){\n \n break;\n \n }else{\n \n aux = aux.getSig(); //le da un nuevo valor al auxiliar, el valor dado es del nodo que sigue, osea se corre un campo\n \n }\n\n \n }\n \n return resultado;\n }", "title": "" }, { "docid": "0d718f3c47a2d94982a6c2844afd2c87", "score": "0.6295058", "text": "public String toString() {\n\t\treturn nom;\n\t}", "title": "" }, { "docid": "386a8337a10385a84e93887d43d570c3", "score": "0.62949944", "text": "public String toString1() {\n\t\tString info;\n\t\tinfo = super.getName()+\" \"+super.getYear()+\" \"+super.getGenre()+\" \"+super.getDirector()+\" \"+super.getDuration()+\"season \"+season+ \" \"+getTypeName();\n\t\treturn (info);\n\t}", "title": "" }, { "docid": "2005472f84d22e54a139bda10fb0f685", "score": "0.62941223", "text": "@Override\n public String toString(){\n return(\"worek{pojemność=\"+pojemność + \", l. prez.=\"+ilePrezentów()+\"/\"+ileMaks+\" , zawartość= \" + \n wypiszZawartość()+\"}\");\n }", "title": "" }, { "docid": "a5def0e75aaba1dd09e5fc8da5d0e4a3", "score": "0.6292962", "text": "public String toString() {\r\n StringBuffer out = new StringBuffer(this.getDaogenVersion());\r\n out.append(\"\\nclass RuntPrendaModificada, mapping to table RUNT_PRENDAMODIFICADA\\n\");\r\n out.append(\"Persistent attributes: \\n\"); \r\n out.append(\"ID_PRENDAMODIFICADA = \" + this.ID_PRENDAMODIFICADA + \"\\n\"); \r\n out.append(\"FECHAREGISTRO = \" + this.FECHAREGISTRO + \"\\n\"); \r\n out.append(\"FECHALEVANTAMIENTO = \" + this.FECHALEVANTAMIENTO + \"\\n\"); \r\n out.append(\"ID_DOCTO = \" + this.ID_DOCTO + \"\\n\"); \r\n out.append(\"IDENTIFICACION = \" + this.IDENTIFICACION + \"\\n\"); \r\n out.append(\"ID_GRADOALERTA = \" + this.ID_GRADOALERTA + \"\\n\"); \r\n out.append(\"FECHAMODIFICACION = \" + this.FECHAMODIFICACION + \"\\n\"); \r\n out.append(\"FECHAINSCRIPCION = \" + this.FECHAINSCRIPCION + \"\\n\"); \r\n out.append(\"ESTADOPRENDA = \" + this.ESTADOPRENDA + \"\\n\"); \r\n out.append(\"ID_RUNTMODIFICACION = \" + this.ID_RUNTMODIFICACION + \"\\n\"); \r\n out.append(\"RAZONSOCIALACREEDORPRENDARIO = \" + this.RAZONSOCIALACREEDORPRENDARIO + \"\\n\"); \r\n return out.toString();\r\n }", "title": "" }, { "docid": "1fcf2ed6ae83e56509a452af2c44b5df", "score": "0.62916297", "text": "public String toString(){\n return \" \"+clave+\".- \"+termino;\n }", "title": "" }, { "docid": "67352d0688500d25087ab5f9875e7cc6", "score": "0.6291286", "text": "public String toString()\r\n/* 461: */ {\r\n/* 462:576 */ return this.numero;\r\n/* 463: */ }", "title": "" }, { "docid": "e831257549736697ea4a7636af85f0bd", "score": "0.62874675", "text": "@Override\n\tpublic String toString() {\n\t\treturn \"Voorraad [materiaalnr=\" + materiaalnr.get() + \", naam=\" + naam.get()\n\t\t\t\t+ \", prijs=\" + prijs.get()+ \"]\";\n\t}", "title": "" }, { "docid": "a677b32ad8da54d483869d5989456d3b", "score": "0.62769985", "text": "public String toString()\n {\n \tString s = \" Name: \" + getName() + \", Multiplicity: \" + getDescription() + \", ID: \" + identifier + \", Impact: \" + getInfluences();\n \treturn s;\n }", "title": "" } ]
10d9477b12eca3c4b4af5cec36813bee
Find one by categoria and chiave.
[ { "docid": "d688f67316f515cfd501353d968ad004", "score": "0.55452955", "text": "Optional<AppSettingsDTO> findOneByCategoriaAndChiave(String categoria, String chiave);", "title": "" } ]
[ { "docid": "560926e59ff4aa65fb9a2e7b146ff04f", "score": "0.5551154", "text": "abstract public CategoricalResults classify(double a);", "title": "" }, { "docid": "1f907a2268c2f3f009b0fdf76c117bce", "score": "0.54197985", "text": "String selectExactlyOneCategory();", "title": "" }, { "docid": "3767dd0ee4ddbd41dc4fcbfbfc4c3a0e", "score": "0.5321746", "text": "@Override\r\n\tpublic Categorie getById(int id) {\n\t\tint idx = donnees.indexOf(new Categorie(id, \"test\", \"test.png\"));\r\n\t\tif (idx == -1) {\r\n\t\t\tthrow new IllegalArgumentException(\"Aucune categorie ne possede cet identifiant\");\r\n\t\t} else {\r\n\t\t\treturn donnees.get(idx);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "5d6e4b3e5d9ad5def353213d75f58466", "score": "0.510494", "text": "@Override\n\tpublic C classification(final I item, final boolean useThreshold)\n\t{\n\t\tfinal Map<C, Double> categoryProbabilities = new HashMap<C, Double>();\n\n\t\tC topCategory = null;\n\t\tdouble topProbability = 0.0;\n\t\tfor(final C category : this.getCategories())\n\t\t{\n\t\t\tfinal double currentProbability = this.classificationProbability(item, category);\n\t\t\tcategoryProbabilities.put(category, currentProbability);\n\t\t\tif( topProbability < currentProbability )\n\t\t\t{\n\t\t\t\ttopCategory = category;\n\t\t\t\ttopProbability = currentProbability;\n\t\t\t}\n\t\t}\n\n\t\tif( useThreshold )\n\t\t{\n\t\t\tfor(final Entry<C, Double> probability : categoryProbabilities.entrySet())\n\t\t\t\tif( probability.getValue() > this.getMinimum(probability.getKey()) )\n\t\t\t\t\treturn probability.getKey();\n\t\t\treturn null;\n\t\t}\n\t\telse\n\t\t\treturn topCategory;\n\t}", "title": "" }, { "docid": "3ce3e66abf569e42dc6f769ff60f2b13", "score": "0.5063824", "text": "int classify(Instance instance);", "title": "" }, { "docid": "73847db84ebff87f41cd09c60805e037", "score": "0.49618003", "text": "public CategorySecond findCategorySecond(Integer csid);", "title": "" }, { "docid": "1b5f3863fae2dcda17e10bc2bbcc6a33", "score": "0.49407637", "text": "String selectSomeCategory();", "title": "" }, { "docid": "55f29839f47e8846458c38234979e15d", "score": "0.49238133", "text": "Theater find(String id);", "title": "" }, { "docid": "d04632e4e5fe42bcb39099eec972c64f", "score": "0.49017492", "text": "Category findByName(String name);", "title": "" }, { "docid": "86f3ac26dc119c0c49b24ae07a0f1105", "score": "0.48157498", "text": "public Categoria buscaCategoria(Integer id) throws Exception{\r\n\t\treturn (Categoria) dao.getById(Categoria.class, id);\r\n\t}", "title": "" }, { "docid": "ac5262b8e91d5aebb6ac0c2acad01c0b", "score": "0.48030022", "text": "public Categorytwo findCoid(String category) {\n\t\treturn (Categorytwo) HibernateSessionFactory.getSession().get(Categorytwo.class, Integer.parseInt(category));\n\t}", "title": "" }, { "docid": "2ec48b3e16c0b63a32350c4f3f103ab5", "score": "0.47959134", "text": "public Integer countCategorySecond();", "title": "" }, { "docid": "26e34f1bc99bc31911958c9eab14e403", "score": "0.47921973", "text": "@Override\n\tpublic Categoria buscarPorId(Integer idCategoria) {\n\t\tfor(Categoria categoria : obtenerTodas()) {\n\t\t\tif(categoria.getId()==idCategoria) {\n\t\t\t\treturn categoria;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "10e8d186fdbd1831e80f70f7947e79cb", "score": "0.47889122", "text": "@When(\"seleciona {string}\")\r\n\tpublic void seleciona(String categoria) {\n\t\tWebElement categoriaLink = driver.findElement(By.xpath(\"//span[text()=\\\"\" + categoria + \"\\\"]\"));\r\n\t\tcategoriaLink.click();\r\n\t}", "title": "" }, { "docid": "def8393d41c1fb90614ffbf833a32a79", "score": "0.47636303", "text": "private int calculateCategory(int category) {\n\t\tscore = 0;\n\t\tswitch (category) {\n\t\t\tcase ONES: score = scoreUpperCategory(ONES); break;\n\t\t\tcase TWOS: score = scoreUpperCategory(TWOS); break;\n\t\t\tcase THREES: score = scoreUpperCategory(THREES); break;\n\t\t\tcase FOURS: score = scoreUpperCategory(FOURS); break;\n\t\t\tcase FIVES: score = scoreUpperCategory(FIVES); break;\n\t\t\tcase SIXES: score = scoreUpperCategory(SIXES); break;\n\t\t\tcase THREE_OF_A_KIND: score = ofAKindOrChance(); break;\n\t\t\tcase FOUR_OF_A_KIND: score = ofAKindOrChance(); break;\n\t\t\tcase FULL_HOUSE: score = 25; break;\n\t\t\tcase SMALL_STRAIGHT: score = 30; break;\n\t\t\tcase LARGE_STRAIGHT: score = 40; break;\n\t\t\tcase YAHTZEE: score = 50; break;\n\t\t\tcase CHANCE: score = ofAKindOrChance(); break;\n\t\t}\n\t\treturn score;\n\t}", "title": "" }, { "docid": "c9359c9f32e38b72886b67daff90c07c", "score": "0.4760522", "text": "public int getCategorie() {\n\t\treturn categorie;\n\t}", "title": "" }, { "docid": "c040ebf8fd4b9d571a011b05a6b879d5", "score": "0.4754172", "text": "public Dataset getTest(int k);", "title": "" }, { "docid": "052518c9ff0339f4da3890890d6516b6", "score": "0.474175", "text": "private CategoryDataset dataSetDeathGenotype() {\n if (this.label.equals(\"Variants\")) {\n final DefaultCategoryDataset dataset = new DefaultCategoryDataset();\n for (String key : RuntimeAttributes.virusvariantLog.keySet()) {\n dataset.addValue(RuntimeAttributes.virusvariantLog.get(key), \"Fitness\", key);\n }\n return dataset;\n }\n final String series1;\n // row keys...\n if (this.label.equals(\"Deaths Based on Genotype\")) {\n series1 = \"Deaths\";\n } else if (this.label.equals(\"Recovered Based on Genotype\")) {\n series1 = \"Recovered\";\n } else {\n series1 = \"Population\";\n }\n\n // column keys...\n final String category1 = \"A1 Genotype\";\n final String category2 = \"B1 Genotype\";\n final String category3 = \"A2 Genotype\";\n final String category4 = \"B2 Genotype\";\n\n // create the dataset...\n final DefaultCategoryDataset dataset = new DefaultCategoryDataset();\n if (this.label.equals(\"Deaths Based on Genotype\")) {\n dataset.addValue(this.deathGenotype.get(0), series1, category1);\n dataset.addValue(this.deathGenotype.get(1), series1, category2);\n dataset.addValue(this.deathGenotype.get(2), series1, category3);\n dataset.addValue(this.deathGenotype.get(3), series1, category4);\n } else if (this.label.equals(\"Recovered Based on Genotype\")) {\n dataset.addValue(this.recoveredGenotype.get(0), series1, category1);\n dataset.addValue(this.recoveredGenotype.get(1), series1, category2);\n dataset.addValue(this.recoveredGenotype.get(2), series1, category3);\n dataset.addValue(this.recoveredGenotype.get(3), series1, category4);\n } else {\n dataset.addValue(this.popGenotype.get(0), series1, category1);\n dataset.addValue(this.popGenotype.get(1), series1, category2);\n dataset.addValue(this.popGenotype.get(2), series1, category3);\n dataset.addValue(this.popGenotype.get(3), series1, category4);\n }\n\n return dataset;\n\n }", "title": "" }, { "docid": "3e0fff9e288f800912d9805e613daa45", "score": "0.4735337", "text": "@Override\r\n public double classify(double[] testExample) {\r\n double cluster[]=new double[iterations];\r\n for(int i=0; i<iterations; i++){\r\n classifier.setWeights(w[i]);\r\n cluster[i]=classifier.classify(testExample);\r\n }\r\n double div=0;\r\n double categoryOfExample=0.0;\r\n for(int i=0; i<iterations; i++){\r\n categoryOfExample+=cluster[i]*z[i];\r\n div+=z[i];\r\n }\r\n categoryOfExample/=div;\r\n \r\n return (categoryOfExample)>0.5 ? 1.0 : 0.0;\r\n }", "title": "" }, { "docid": "f22337236ae80cdc6c7ff1ebf2c98492", "score": "0.4723666", "text": "public Categoria carregar(Integer id) {\r\n\t\tconnection = new ConnectionFactory().getConnection();\r\n\t\tcategoriaDAO = new CategoriaDAO(connection);\r\n\t\tCategoria categoria = categoriaDAO.carregar(id);\r\n\t\tcategoriaDAO.fecharConexao();\r\n\t\treturn categoria;\r\n\t}", "title": "" }, { "docid": "c57f4eecd2cba0adef4c3f88d010df80", "score": "0.4689121", "text": "int getXpCategory();", "title": "" }, { "docid": "94f182ef4230f1346ea3dc94ee71fea7", "score": "0.4678607", "text": "@Override\n\tpublic CategoriaOperacion findById(Integer id) {\n\t\treturn em.find(CategoriaOperacion.class, id);\n\n\t}", "title": "" }, { "docid": "69f7291f594706c2d858cb2c64e96eab", "score": "0.4672455", "text": "public T caseKategorie(Kategorie object) {\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "74805992a2c23bb84680c8cf40961dac", "score": "0.46479404", "text": "public interface TesteRepository extends JpaRepository<TestePO, Long> {\r\n\r\n\t\r\n\tTestePO findByCategoria(Integer categoria);\r\n\t\r\n}", "title": "" }, { "docid": "225c13a0e2223aa73f055ce50bdf3cd8", "score": "0.45849428", "text": "DecisionDefinitionQuery decisionDefinitionCategory(String decisionDefinitionCategory);", "title": "" }, { "docid": "ac7c6c5c48f8fefc2b7bfac65cbe551f", "score": "0.45805708", "text": "public int classify(String[] Observation) {\n\n\t\tBigDecimal sum = BigDecimal.ZERO;\n\t\tfor (DecisionStump classifier : model) {\n\n\t\t\tsum = sum.add(BigDecimal.valueOf(classifier.classify(Observation))\n\t\t\t\t\t.multiply(classifier.getAlpha()));\n\t\t}\n\n\t\tif (sum.compareTo(BigDecimal.ZERO) == 1)\n\t\t\treturn 1;\n\n\t\treturn -1;\n\n\t}", "title": "" }, { "docid": "ce4fad4f9d19dc149781134401fe39b1", "score": "0.45738158", "text": "public Cat findById(Long id) {\n\n\t\t\tfor (Cat cat : cats) {\n\t\t\t\tif (cat.getId().equals(id)) {\n\t\t\t\t\t// foundCat = cats.get(i);\n\t\t\t\t\t// break;\n\t\t\t\t\treturn cat;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tthrow new IllegalArgumentException(\"Cat by Id: \" + id + \"not found\");\n\n\t\t}", "title": "" }, { "docid": "3b537649ffdc5f535b5fa653c5b7defd", "score": "0.4561659", "text": "public Serializable getMajorityClass(String feature, Serializable value) {\n\t\t\tint majorityClass = 0;\n\t\t\tint highestSum = 0;\n\t\t\tint featureIndex = this.remainingFeatures.indexOf(feature);\n\t\t\tint valueIndex = HoeffdingTree.this.featureValuePairs.get(feature).indexOf(value);\n\t\t\tfor (int label = 0; label < HoeffdingTree.this.labels.size(); label++) {\n\t\t\t\tif (this.counter[featureIndex][valueIndex][label] > highestSum) {\n\t\t\t\t\thighestSum = this.counter[featureIndex][valueIndex][label];\n\t\t\t\t\tmajorityClass = label;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn HoeffdingTree.this.labels.get(majorityClass);\n\t\t}", "title": "" }, { "docid": "a393892f0c0c1fc23f00364525401800", "score": "0.4559793", "text": "long countByExample(FoodExample example);", "title": "" }, { "docid": "28c231bf4e1f75850a4c753f4a3df8e1", "score": "0.45583168", "text": "private Metric<AsciiImage> choseMetric(String name) throws FactoryException {\n if(\"pixelcount\".equals(name)) {\n return new PixelCountMetric();\n } else if(\"uniquechars\".equals(name)) {\n return new UniqueCharsMetric();\n }\n\n throw new FactoryException(\"Unknown Metric\");\n\n }", "title": "" }, { "docid": "2d85332a8aca2c79c9795b9ed342fe60", "score": "0.4554019", "text": "private Question findQuestion(String message) {\n\t\tdouble currentMax = CONFIDENCE_THRESHOLD;\n\t\tQuestion currentBest = null;\n\t\tSet<String> keys = this.questionList.keySet();\n\t\tString[] allTopics = keys.toArray(new String[keys.size()]);//array of all topics\n\t\tArrayList<String> allTopicsSorted = sortByVisited(allTopics);\n\t\tfor(int i = 0; i < allTopicsSorted.size(); i++) {\n\t\t\tArrayList<Question> topicQs = this.questionList.get(allTopicsSorted.get(i));\n\t\t\tfor(int j = 0; j < topicQs.size(); j++) {\n\t\t\t\tdouble currentVal = topicQs.get(j).evaluate(message);\n\t\t\t\tif(currentVal > FOUND_QUESTION_THRESHOLD) {//this would suggest we are certain\n\t\t\t\t\treturn topicQs.get(j);\n\t\t\t\t} else if(currentVal > currentMax) {//standard maximum search\n\t\t\t\t\tcurrentMax = currentVal;\n\t\t\t\t\tcurrentBest = topicQs.get(j);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn currentBest;\n\t}", "title": "" }, { "docid": "f839821d2144c2290210f94cd57e131f", "score": "0.4549401", "text": "public void weighted_majority(){\r\n for(int j=0; j<trainData.size(); j++){\r\n double div=0.0000001;\r\n category[j]=0;\r\n for(int i=0; i<iterations; i++){\r\n category[j]+=h[i][j]*z[i];\r\n div+=z[i];\r\n }\r\n category[j]/=div;\r\n \r\n \r\n category[j]=(category[j])>0.5 ? 1.0 : 0.0;\r\n \r\n }\r\n }", "title": "" }, { "docid": "6ef772a7c4d8927a982563c09d8fd60e", "score": "0.45493114", "text": "@Override\n\tpublic int chooseChild(Instance instance) {\n\t\treturn (boolean) instance.getFeatureValue(feature.getName()) ? 1 : 0;\n\t}", "title": "" }, { "docid": "528db754f257b698b196f0d8f8ced41b", "score": "0.45423934", "text": "public Product getCategory(Category category);", "title": "" }, { "docid": "fdc421c6a2c5d6c1f4be547c8880941b", "score": "0.45360383", "text": "protected abstract Category getCategory(String nomCat);", "title": "" }, { "docid": "51eeb205229c485b1d036605fafc3994", "score": "0.45250544", "text": "DecisionDefinitionQuery decisionDefinitionCategoryLike(String decisionDefinitionCategoryLike);", "title": "" }, { "docid": "a4ef7f3d53221761e770efe1c805315b", "score": "0.45181435", "text": "public void graba(Categoria categoria, Usuario usuario);", "title": "" }, { "docid": "9609c3cae4db19c56a80519364cd5ba4", "score": "0.4511788", "text": "public Optional<categorie> findByIdcategorieService(Integer id)\n {\n return categorieRepository.findById(id);\n }", "title": "" }, { "docid": "5b27477067f16d6582a1349cea3a8a81", "score": "0.45059448", "text": "DaEveryColorData selectOneByExample(DaEveryColorDataExample example);", "title": "" }, { "docid": "dc30312027240d8f8ba64c7a6e41ceba", "score": "0.45043805", "text": "public int get_cell_first_category(int index)\n {\n if (index < 0 || index >= size()*size())\n {\n throw new RuntimeException(\"Index out of range.\");\n }\n return category_assignments.get(index) / size();\n }", "title": "" }, { "docid": "e3788aca7af944019f7b74569088ef2e", "score": "0.4503223", "text": "public static DefaultPieDataset getDataSet(String s) \n\t{ \n\t\t DefaultPieDataset dataset = new DefaultPieDataset(); \n\t\t DefaultCategoryDataset dataset1 = new DefaultCategoryDataset();\n\t\t Entity_Report repo = new Entity_Report();\n\t\t Report_Storer.csvforstatistic(repo.getrepoDate());\n\t\t repo=Report_Reader.creatRepo();\n\t\t Set<Entry<String,Integer>> e = repo.getSoup().entrySet();\n\t\t Iterator<Entry<String, Integer>> it = e.iterator();\n\t\t \n\t\t if(s==\"Spiciness\") { //choice of spiciness\n\t\t e = repo.getSpiciness().entrySet();\n\t\t it = e.iterator();\n\t\t while(it.hasNext()){\n\t\t\t Entry<String, Integer> entry = it.next();\n\t\t\t String type = entry.getKey();\n\t\t\t int number = entry.getValue();\n\t\t\t dataset.setValue(type, number); \n\t\t\t }\n\t\t }\n\t\t if(s==\"Soup\") { //choice of soup\n\t\t\t while(it.hasNext()){\n\t\t\t\t Entry<String, Integer> entry = it.next();\n\t\t\t\t String type = entry.getKey();\n\t\t\t\t int number = entry.getValue();\n\t\t\t\t dataset.setValue(type, number); \n\t\t\t }\n\t\t\t }\n\t\t if(s==\"Noodle\") { //choice of noodle\n\t\t\t e = repo.getNoodle().entrySet();\n\t\t\t it = e.iterator();\n\t\t\t while(it.hasNext()){\n\t\t\t\t Entry<String, Integer> entry = it.next();\n\t\t\t\t String type = entry.getKey();\n\t\t\t\t int number = entry.getValue();\n\t\t\t\t dataset.setValue(type, number); \n\t\t\t }\n\t\t }\n\t\t if(s==\"Spring\") { //choice of spring onion\n\t\t\t e = repo.getOnion().entrySet();\n\t\t\t it = e.iterator();\n\t\t\t while(it.hasNext()){\n\t\t\t\t Entry<String, Integer> entry = it.next();\n\t\t\t\t String type = entry.getKey();\n\t\t\t\t int number = entry.getValue();\n\t\t\t\t dataset.setValue(type, number); \n\t\t\t }\n\t\t }\n\t\t \n\t return dataset; \n\t }", "title": "" }, { "docid": "30c7094e9e6214f895b3848a8a60d494", "score": "0.4502969", "text": "public float featureProbability(T feature, K category);", "title": "" }, { "docid": "a63ac1cd8027b9a063483c7721f31fcc", "score": "0.44991434", "text": "public double inferCategoryProbabilityMoreStable(int category, String[] words, int[] features){\n double[] logProbs = inferLogJointProbability(words, features);\n\n double denominator=0;\n for (int c=0; c < numberCategories; c++) {\n denominator += Math.exp(logProbs[c] - logProbs[category]);\n }\n\n return 1/denominator;\n\n }", "title": "" }, { "docid": "95c913073742d7f390512c43e9ce9b7d", "score": "0.4494845", "text": "public double getClassification(){return classification;}", "title": "" }, { "docid": "62a36c90e82e4363a355654f00d91413", "score": "0.4492558", "text": "public static String classify(Category C, String site, double tc, double ts, double ESparent) throws EncoderException, JSONException{\n\t\tString result=\"\";\n\t\t//for all subset Ci of C, calculate ECoverage(D,ci) and ESpecificity(D,ci)\n\t\tString mainCategory=C.getCategory();\n\t\tHashMap<String, ArrayList<String>> queryMap=getQueryMap(mainCategory);\n\t\tHashMap<String, Long> ECoverage=C.getECoverage();\n\t\tHashMap<String, Double> ESpecificity=C.getESpecificity();\n\t\tArrayList<Category> subSet=C.getSubCategories();\n\t\t\n\t\t//base case, there are no subcategories, return this category\n\t\tif(subSet.size()==0){\n\t\t\treturn mainCategory;\n\t\t}\n\t\t\n\t\tlong total=0;\n\t\tfor(Category c:subSet){ // go through each of the category's subcategories\n\t\t\tArrayList<String> queryList=queryMap.get(c.getCategory());\n\t\t\t// have \"AND\" list and \"AND NOT\" list (to ignore docs that have been included in the previous query)\n\t\t\t// look at http://vlaurie.com/computers2/Articles/bing_advanced_search.htm\n\t\t\tlong count=0;\n\t\t\t//String NOTList=\"\";\n\t\t\tfor(String query:queryList){\n\t\t\t\t//Exclude the queries that have already been done, doesn't influence much\n\t\t\t\tString andQuery=QueryHelper.queryAND(query);\n\t\t\t\t//System.out.println(\"AND QUERY: \" + andQuery);\n\t\t\t\t//String notQuery=\"(\"+QueryHelper.queryAND(NOTList)+\")\";\n\t\t\t\t//System.out.println(\"NOT QUERY: \" + notQuery);\n\t\t\t\tString q=andQuery;\n\t\t\t\t/*if(!NOTList.isEmpty()){\n\t\t\t\t\tq=q+\" AND NOT \"+notQuery;\n\t\t\t\t}*/\n\t\t\n\t\t\t\t//using a And b AND NOT(c) not very good\n \t\t\t\tcount+=getCount(query, site, mainCategory);\n\t\t\t\t//System.out.println(\"query:\"+ q +\" count:\"+count);\n\t\t\t\t//NOTList+=query+\" \";\t\n\t\t\t}\n\t\t\tString sub=c.getCategory();\n\t\t\ttotal+=count;\n\t\t\tECoverage.put(sub, count); // Record coverage in the DB for this category\n\t\t}\n\t\t\n\t\tfor(Category c:subSet){\n\t\t\tString sub=c.getCategory();\n\t\t\tlong coverage=ECoverage.get(sub);\n\t\t\tdouble specificity=(double)ESparent*coverage/total;\n\t\t\tESpecificity.put(sub,specificity);\n\t\t\tSystem.out.println(\"subCategory:\"+sub+\" coverage:\"+coverage+\" specificity:\"+specificity);\n\t\t\t\n\t\t\t// If coverage, specificity criteria met, go one level deeper\n\t\t\tif(coverage>=tc && specificity>=ts){\n\t\t\t\tresult+=mainCategory+\"/\"+classify(c,site, tc,ts, specificity);\n\t\t\t}\n\t\t}\n\t\tif(result.isEmpty()){ // Cannot classify more specifically than this category \n\t\t\treturn mainCategory;\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "title": "" }, { "docid": "9b3f9384f6c92caba506d28e0d5223bd", "score": "0.44794586", "text": "private double getChiTableValue(Instances data, int attributeIndex) {\r\n\r\n\r\n\t\tint degreeOfFreedom = 0;\r\n\t\tfor (int i = 0; i < data.attribute(attributeIndex).numValues(); i++) {\r\n\t\t\tif(getAllInstancesWithSameValue(data, attributeIndex, (double)i).size() != 0)\r\n\t\t\t\tdegreeOfFreedom++;\r\n\t\t}\r\n\r\n\t\t//converet pValue into the right colom of the table \r\n\t\tint pValueIndex = 0;\r\n\r\n\t\t//posiible to move to enum or swich case \r\n\t\tif(pValue == 0.005)\r\n\t\t\tpValueIndex = 5;\r\n\t\telse if(pValue == 0.05)\r\n\t\t\tpValueIndex = 4;\r\n\t\telse if(pValue == 0.25)\r\n\t\t\tpValueIndex = 3;\r\n\t\telse if(pValue == 0.5)\r\n\t\t\tpValueIndex = 2;\r\n\t\telse if(pValue == 0.75)\r\n\t\t\tpValueIndex = 1;\r\n\t\telse if(pValue == 1)\r\n\t\t\tpValueIndex = 0;\r\n\r\n\t\treturn chiSqureTable[degreeOfFreedom - 1][pValueIndex];\r\n\r\n\t}", "title": "" }, { "docid": "84f814801e78f395e71bbb78f9713509", "score": "0.4477836", "text": "private static Theory bestTheory(Collection<DataPoint> data, Collection<Theory> theories,\r\n GoodnessOfFitCalculator gofCalculator) {\r\n boolean first = true;\r\n double bestGoodnessOfFit = 0.0;\r\n Theory bestTheory = null;\r\n for (Theory theory : theories) { // Performs calculation for each Theory\r\n double gof = gofCalculator.goodnessOfFit(data, theory); // Finds chi^2\r\n if (first) { // Sets bestTheory to current theory if it is the 1st one tested\r\n bestTheory = theory;\r\n bestGoodnessOfFit = gof;\r\n first = false;\r\n } else if (gof < bestGoodnessOfFit) { // Sets bestTheory to current Theory if it fits better\r\n bestTheory = theory;\r\n bestGoodnessOfFit = gof;\r\n }\r\n }\r\n return bestTheory;\r\n }", "title": "" }, { "docid": "ba1d31abb7e805dceb53d02685424125", "score": "0.4476301", "text": "private static CategoryDataset createDataset(dao_GridChegada chegada) throws exception_RegistroJaExisteException, ClassNotFoundException, SQLException {\n String[][] dados;\n dados = chegada.selectPontosPiloto();\n\n DefaultCategoryDataset dataset = new DefaultCategoryDataset();\n for (int i = 0; i < dados[0].length; i++){\n dataset.addValue(Integer.parseInt(dados[4][i]), dados[3][i], dados[1][i]);\n }\n\n return dataset;\n }", "title": "" }, { "docid": "4aa2643e796f0751a14ac41b5c74568d", "score": "0.44692698", "text": "public void setCategoria(String string) {\n\t\t\n\t}", "title": "" }, { "docid": "73828037797e9a4bc4d3fcac78e8ef84", "score": "0.44523436", "text": "@Ignore(\"takes to long...\")\n @Test\n public void testAllRecordingsWithDifferentFilterValuesWithLogistic() throws Exception {\n List<Recording> trainList = recordingService.findAll();\n List<Gesture> gestures = gestureService.findAll();\n double bestPct = 0;\n Pair<Integer, Integer> bestFilterValues = null;\n for (int j = 2; j < 20; j++) {\n for (int k = 2; k < 20; k++) {\n double temp = classifyAllRecordings(trainList, gestures, new Logistic(), j, k);\n if (temp >= bestPct) {\n bestPct = temp;\n bestFilterValues = Pair.of(j, k);\n }\n\n }\n }\n System.out.println(\"testAllRecordingsWithDifferentFilterValuesWithLogistic bestFilterValues: \" + bestFilterValues + \" = \" + bestPct + \"%\");\n detailWriter.println(\"testAllRecordingsWithDifferentFilterValuesWithLogistic bestFilterValues: \" + bestFilterValues + \" = \" + bestPct + \"%\");\n }", "title": "" }, { "docid": "e7f258f80392172821227eb12fb7e956", "score": "0.44517437", "text": "public double estimateSelectivity(final int field, final Predicate.Op op, final Field constant) {\n if (tupleDesc.getFieldType(field).equals(Type.INT_TYPE)) {\n return intHistograms.get(field).estimateSelectivity(op, ((IntField) constant).getValue());\n } else {\n return stringHistograms.get(field).estimateSelectivity(op, ((StringField) constant).getValue());\n }\n }", "title": "" }, { "docid": "907a397df1b3fd377cc8d07efaa94114", "score": "0.44497415", "text": "public void testRandomEvaluate()\n {\n System.out.println( \"random evaluate\" );\n\n Categorizer<InputType,CategoryType> instance = this.createInstance();\n\n for( int n = 0; n < NUM_TESTS; n++ )\n {\n InputType input = this.createRandomInput();\n CategoryType category = instance.evaluate(input);\n assertNotNull( category );\n assertTrue( instance.getCategories().contains(category) );\n }\n }", "title": "" }, { "docid": "66d35f847e02793f3b05ca06dad0ab7b", "score": "0.4447695", "text": "V afegir(K clau);", "title": "" }, { "docid": "b231b6470d7e40ef3ccaea94c30e81d9", "score": "0.44467476", "text": "private int calculateScore(int[] dice, int category) {\n\t\tint[] distribution = {0, 0, 0, 0, 0, 0};\n\t\tdiceDistribution(distribution, dice);\n\t\tint sequenceCount = 0;\n\t\t\n\t\t\tswitch (category) {\n\t\t\t\tcase ONES:\n\t\t\t\t\treturn sumMatchingDice(dice, ONES);\n\t\t\t\t\t\n\t\t\t\tcase TWOS:\n\t\t\t\t\treturn sumMatchingDice(dice, TWOS);\n\t\t\t\t\t\n\t\t\t\tcase THREES:\n\t\t\t\t\treturn sumMatchingDice(dice, THREES);\n\t\t\t\t\t\n\t\t\t\tcase FOURS:\n\t\t\t\t\treturn sumMatchingDice(dice, FOURS);\n\t\t\t\t\t\n\t\t\t\tcase FIVES:\n\t\t\t\t\treturn sumMatchingDice(dice, FIVES);\n\t\t\t\t\t\n\t\t\t\tcase SIXES:\n\t\t\t\t\treturn sumMatchingDice(dice, SIXES);\n\t\t\t\t\t\n\t\t\t\tcase THREE_OF_A_KIND:\n\t\t\t\t\tfor (int i = 0; i < 6; i++) {\n\t\t\t\t\t\tif (distribution[i] >= 3) {\n\t\t\t\t\t\t\treturn sumDice(dice);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase FOUR_OF_A_KIND:\n\t\t\t\t\tfor (int i = 0; i < 6; i++) {\n\t\t\t\t\t\tif (distribution[i] >= 4) {\n\t\t\t\t\t\t\treturn sumDice(dice);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase FULL_HOUSE:\n\t\t\t\t\tfor (int i = 0; i < 6; i++) {\n\t\t\t\t\t\tif (distribution[i] == 3) {\n\t\t\t\t\t\t\tfor (int j = 0; j < 6; j++) {\n\t\t\t\t\t\t\t\tif (distribution[j] == 2) {\n\t\t\t\t\t\t\t\t\treturn 25;\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\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase SMALL_STRAIGHT:\n\t\t\t\t\tfor (int i = 0; i < 6; i++) {\n\t\t\t\t\t\tif (distribution[i] != 0) {\n\t\t\t\t\t\t\tsequenceCount += 1;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tsequenceCount = 0;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (sequenceCount == 4) {\n\t\t\t\t\t\t\treturn 30;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase LARGE_STRAIGHT:\n\t\t\t\t\tfor (int i = 0; i < 6; i++) {\n\t\t\t\t\t\tif (distribution[i] != 0) {\n\t\t\t\t\t\t\tsequenceCount += 1;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tsequenceCount = 0;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (sequenceCount == 4) {\n\t\t\t\t\t\t\treturn 40;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase YAHTZEE:\n\t\t\t\t\tfor (int i = 0; i < 6; i++) {\n\t\t\t\t\t\tif (distribution[i] == 5) {\n\t\t\t\t\t\t\treturn 50;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase CHANCE:\n\t\t\t\t\treturn sumDice(dice);\n\t\t\t}\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "8af1173d7c2549cf797e2c71bb8699e5", "score": "0.4443654", "text": "@Test\n\tpublic void checktipoBeneByCategoriaTipoBene() {\n\t\ttipoBeneCespiteDad.countTipoBeneByCategoria(create(CategoriaCespiti.class, 982));\n\t}", "title": "" }, { "docid": "8754e872ab768b438cf3e06fed3abd57", "score": "0.44408658", "text": "public void obtenerCategoriasEspecificas(int categoria){\n\t\tSessionFactory sesionF = SessionFactoryUtil.getSessionFactory();\n\t\tSession sesion = sesionF.openSession();\n\t\tTransaction trans = sesion.beginTransaction();\n\t\t\t\t\n\t\tCatEspecifica nuevaCategoria = new CatEspecifica();\n\t\t\n\t\tQuery q = sesion.createQuery(\"from CatEspecifica ce where ce.catPiezas = :numCategoria\").setInteger(\"numCategoria\", categoria);\n\t\t\n\t\t\n\t\tList<CatEspecifica> lista = q.list();\n\t\tIterator<CatEspecifica> iter = lista.iterator();\n\t\t\n\t\tq.setFetchSize(20);\n\t\t\n\t\titer=q.iterate();\n\t\t\n\t\twhile(iter.hasNext()){\n\t\t\t\n\t\t\tnuevaCategoria=(CatEspecifica) iter.next();\n\t\t\t\n\t\t\tcomboBoxSubcategorias.addItem(nuevaCategoria.getCatEspNombre());\n\t\t}\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "fd37f853ac1abdbd634a67d9006ff11d", "score": "0.4440232", "text": "@Override\n public Chip find(String id) {\n return mongoTemplateAnalysisDB.findOne(new Query(Criteria.where(\"id\").is(id)), Chip.class);\n }", "title": "" }, { "docid": "49e4298f5c1e7b0df5338f915ea60f54", "score": "0.44392887", "text": "public int seleccionarClase(int k, Double u) {\t\t// aqui se deberia poder elegir que tipo de votacion se quiere\r\n\t\tif (k == 1) return mayoriaAbsoluta();\r\n\t\tif (k == 2) return votacion(u);\r\n\t\treturn mayoriaSimple();\r\n\t\t\r\n\t}", "title": "" }, { "docid": "f1215ae3d662c2b6021085c4b2150791", "score": "0.44385222", "text": "@Override\n public Category find(String id) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "title": "" }, { "docid": "0ad8c0897ac642c337b2ef1713a6ed3a", "score": "0.4432001", "text": "Category category();", "title": "" }, { "docid": "30c2cf121dcf3da597143dd1582cf43d", "score": "0.44293964", "text": "@Test\r\n\tpublic void testGetCategory_id_1()\r\n\t\tthrows Exception {\r\n\t\tCategory fixture = new Category(1, \"\", \"\");\r\n\t\tfixture.setProducts(new HashSet<>());\r\n\r\n\t\tint result = fixture.getCategory_id();\r\n\r\n\t\t// add additional test code here\r\n\t\tassertEquals(1, result);\r\n\t}", "title": "" }, { "docid": "403283bdbabe9813a646497c7c7f944c", "score": "0.442924", "text": "public void obtenerCategoriasEspecificas(int categoria){\n\t\tSessionFactory sesionF = SessionFactoryUtil.getSessionFactory();\n\t\tSession sesion = sesionF.openSession();\n\t\tTransaction trans = sesion.beginTransaction();\n\t\t\t\t\n\t\tCatEspecifica nuevaCategoria = new CatEspecifica();\n\t\t\n\t\tQuery q = sesion.createQuery(\"from CatEspecifica ce where ce.catPiezas = :numCategoria\").setInteger(\"numCategoria\", categoria);\n\t\t\n\t\t\n\t\tList<CatEspecifica> lista = q.list();\n\t\tIterator<CatEspecifica> iter = lista.iterator();\n\t\t\n\t\tq.setFetchSize(20);\n\t\t\n\t\titer=q.iterate();\n\t\t\n\t\twhile(iter.hasNext()){\n\t\t\t\n\t\t\tnuevaCategoria=(CatEspecifica) iter.next();\n\t\t\t\n\t\t\tcomboBoxSubcategorias.addItem(nuevaCategoria.getCatEspNombre());\n\t\t}\n\t\t\n\t\tsesion.close();\n\t}", "title": "" }, { "docid": "b6bfc0463289c502432ea0045597795e", "score": "0.44281322", "text": "<K> Map<K, int[]> groupBy(IntFunction<? extends K> classifier);", "title": "" }, { "docid": "65e1042f8b830cfadb499dae8e94a082", "score": "0.44173712", "text": "private int select(int[] fitnesses) {\n int best = random.nextInt(GEN_SIZE);\n\n for (int i = 1; i < SELECTION_T; i++) {\n int other = random.nextInt(GEN_SIZE);\n // By our definition of the fitness function, lower values are better\n if (fitnesses[other] < fitnesses[best])\n best = other;\n }\n\n return best;\n }", "title": "" }, { "docid": "1478827103227d7da1ee1f003226cd24", "score": "0.4405256", "text": "private int select() {\n // prepares for roulette wheel selection\n double[] roulette = new double[POPULATION_SIZE];\n double total = 0;\n \n for (int i = 0; i < POPULATION_SIZE; i++) {\n total += fitness[i];\n }\n \n double cumulative = 0.0;\n \n for (int i = 0; i < POPULATION_SIZE; i++) {\n roulette[i] = cumulative + (fitness[i] / total);\n cumulative = roulette[i];\n }\n \n roulette[POPULATION_SIZE - 1] = 1.0;\n \n int parent = -1;\n double probability = random.nextDouble();\n \n //selects a parent individual\n for (int i = 0; i < POPULATION_SIZE; i++) {\n if (probability <= roulette[i]) {\n parent = i;\n break;\n }\n }\n\n return parent;\n }", "title": "" }, { "docid": "508f82ef3a2a909759641e6f3a481cb2", "score": "0.44025007", "text": "public static String insertar(String categoria) {\r\n\t\t\r\n\t\tint retorno;\r\n\t\t\r\n\t\ttry{\r\n\t\t\t\r\n\t\t\tString sql = \"SELECT max(`cod_categoria`) FROM categoria\";\r\n\t\t\tresultado = sentencia.executeQuery(sql);\r\n\t\t\t\r\n\t\t\tint nuevaId = -1;\r\n\t\t\t\r\n\t\t\twhile(resultado.next()) {\r\n\t\t\t\t\r\n\t\t\t\tnuevaId = (resultado.getInt(1) + 1);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tsql = \"INSERT INTO categoria (cod_categoria, nombre) VALUES (\" + nuevaId + \", '\" + categoria + \"')\";\r\n\t\t\tretorno = sentencia.executeUpdate(sql);\r\n\t\t\t\r\n\t\t}catch(SQLException e) {\r\n\t\t\t\r\n\t\t\tretorno = 0;\r\n\t\t}\r\n\t\t\r\n\t\treturn (retorno > 0) ? \"Categoría \" + categoria + \" añadida correctamente.\" : \"Error al añadir la categoría.\";\r\n\t}", "title": "" }, { "docid": "cefc960d1601a80361506af31c2d6f83", "score": "0.44017908", "text": "public T caseCategorizer(Categorizer object) {\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "ef6446de77cd2186bdb4f737c56f2d59", "score": "0.44002837", "text": "public double compute() {\n if(categorizedVector.getDimensionality() != testingVector.getDimensionality()) {\n throw new RuntimeException(\"Dimension mismatch.\");\n }\n \n double sumCat = categorizedVector.norm1();\n double sumTest = testingVector.norm1();\n double h = sumCat + sumTest;\n \n if(sumCat == 0 || sumTest == 0) {\n throw new RuntimeException(\"One of the vectors is the 0 vector.\");\n }\n \n double total = 0.;\n \n for (int ii = 0; ii < categorizedVector.getDimensionality(); ii++) {\n double catii = Math.abs(categorizedVector.getElement(ii));\n double testii = Math.abs(testingVector.getElement(ii));\n double pairSum = catii + testii;\n \n if (pairSum == 0) {\n continue;\n }\n \n double firstTerm = (catii*catii)/(sumCat*pairSum);\n double secondTerm = (testii*testii)/(sumTest*pairSum);\n \n total += firstTerm + secondTerm; \n }\n \n double chiSquaredStat = h*total - h;\n \n return chiSquaredStat;\n }", "title": "" }, { "docid": "5ca51e3717d83ee4d481e692a49f3708", "score": "0.43993863", "text": "public CatDist score(Instance inst, boolean addLoss)\r\n {\r\n CatDist dist = categorizer.score(inst);\r\n\r\n if (addLoss)\r\n add_instance_loss(inst, dist);\r\n\r\n return dist;\r\n }", "title": "" }, { "docid": "7a8d46806589efd43bdbca966691cf05", "score": "0.4393054", "text": "@Test\n public void testGetCategorie() {\n System.out.println(\"getCategorie\");\n PatientBean instance = new PatientBean();\n CategoriePatientEntite expResult = null;\n CategoriePatientEntite result = instance.getCategorie();\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "title": "" }, { "docid": "7cb01d1d902d433ca5e4b636191bfe74", "score": "0.43886095", "text": "public double findChol(int food_id, int cnt) {\n\t\tsetDataSource();\n\t\tString sql=\"SELECT cholesterol FROM food_details where id=\"+food_id+\"\";\n\t\tSqlRowSet srs= template1.queryForRowSet(sql);\n\t\tsrs.next();\n\t\treturn srs.getDouble(\"cholesterol\")*cnt;\n\t}", "title": "" }, { "docid": "5749b712b30017fba0d0921f11f00306", "score": "0.43885836", "text": "public String categoriaCorrecta (String categoria) {\r\n\t\t\r\n\t\tswitch (categoria.toUpperCase()) {\r\n\t\t\tcase \"MANAGER\":\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"BOSS\":\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"EMPLOYEE\":\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"VOLUNTEER\":\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tcategoria = CATEGORIA_DEFAULT;\r\n\t\t}\r\n\t\t\r\n\t\treturn categoria.toUpperCase();\r\n\t\t\r\n\t}", "title": "" }, { "docid": "1d03f59f6fd24a4f0cf071fbedd7163e", "score": "0.43868774", "text": "default R primaryRepresentative(BiFunction<R, R, Double> distance) {\n return getRepresentatives().get(0).index;\n }", "title": "" }, { "docid": "2a351121fc585d15b19d4d9e8b005782", "score": "0.43821132", "text": "private boolean duplicata(Categorie categorie) {\r\n\t\tString titre = categorie.getTitre();\r\n\t\t\r\n\t\tfor (int i = 0; i < donnees.size(); i++) {\r\n\t\t\tif (donnees.get(i).getTitre().equals(titre))\r\n\t\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "8684c709956413a2483994255b1da193", "score": "0.4381403", "text": "public HashMap<String, String> searchbyCategory(String searchValue,\r\n\t\t\tString type) {\r\n\t\tSystem.out.println(\"in \" + type);\r\n\t\tHashMap<String, String> list = new HashMap<String, String>();\r\n\t\tDBCollection coll = db.getCollection(type);\r\n\t\tBasicDBObject regex = new BasicDBObject();\r\n\t\tregex.put(\"$regex\",\r\n\t\t\t\tPattern.compile(searchValue, Pattern.CASE_INSENSITIVE));\r\n\t\tBasicDBObject obj = new BasicDBObject();\r\n\t\tobj.put(\"category\", regex);\r\n\t\tSystem.out.println(obj.toString());\r\n\t\tfor (DBObject document : coll.find(obj)) {\r\n\t\t\tString id = (String) document.get(\"id\");\r\n\t\t\tString name = (String) document.get(\"name\");\r\n\t\t\t/*System.out.println(id);\r\n\t\t\tSystem.out.println(document.get(\"category\"));*/\r\n\t\t\tlist.put(id, name);\r\n\t\t}\r\n\t\treturn list;\r\n\t}", "title": "" }, { "docid": "1b9dcf3cf0f575b49774a777a8841b9f", "score": "0.43733975", "text": "public ClassificationSolution getPredictedSolution(Collection<RetrievalResult> cases)\r\n {\r\n Map<Object, Integer> votes = new HashMap<Object, Integer>();\r\n Map<Object, ClassificationSolution> values = new HashMap<Object, ClassificationSolution>();\r\n \r\n for (RetrievalResult result: cases)\r\n {\r\n ClassificationSolution solution = (ClassificationSolution)result.get_case().getSolution();\r\n \r\n Object classif = solution.getClassification();\r\n \r\n if (votes.containsKey(classif))\r\n {\r\n votes.put(classif, votes.get(classif) + 1);\r\n }\r\n else\r\n {\r\n votes.put(classif, 1);\r\n }\r\n values.put(classif, solution);\r\n }\r\n \r\n int highestVoteSoFar = 0;\r\n Object predictedClass = null;\r\n for (Map.Entry<Object, Integer> e : votes.entrySet())\r\n {\r\n if (e.getValue() >= highestVoteSoFar)\r\n {\r\n highestVoteSoFar = e.getValue();\r\n predictedClass = e.getKey();\r\n }\r\n }\r\n \r\n \r\n return values.get(predictedClass);\r\n }", "title": "" }, { "docid": "afa465d9fe780f4a07469ad75353e40d", "score": "0.43722016", "text": "public X find(K key);", "title": "" }, { "docid": "bdadf74475b71f5a000bac6e978d1941", "score": "0.43716606", "text": "private fruit_group find_pachman_fruits(pachman pach) {\r\n\t\tfruit_group min_group = null;\r\n\t\tdouble min_dist = Double.MAX_VALUE;\r\n\t\tMyCoords MC = new MyCoords();\r\n\t\tIterator<fruit_group> IterGroup = this.iterator();\r\n\t\twhile (IterGroup.hasNext()) {\r\n\t\t\tfruit_group curr_group = IterGroup.next();\r\n\t\t\tIterator<fruit> Iterfruit = curr_group.iterator();\r\n\t\t\twhile (Iterfruit.hasNext()) {\r\n\t\t\t\tfruit curr_fruit = Iterfruit.next();\r\n\t\t\t\tPoint3D curr_P = ((geom)curr_fruit.getGeom()).getP();\r\n\t\t\t\tPoint3D pach_P = ((geom)pach.getGeom()).getP();\r\n\t\t\t\tdouble curr_dist = MC.distance3d(curr_P, pach_P);\r\n\t\t\t\tif (curr_dist<min_dist) {\r\n\t\t\t\t\tmin_dist = curr_dist;\r\n\t\t\t\t\tmin_group = curr_group;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tif ((min_group==null)|| (min_dist>MAX_DIS_TO_ASSOCIATE_PACH)) return null;//there is no fruits or the pachmnan is too far from the closet fruits group\r\n\t\treturn min_group;\r\n\t}", "title": "" }, { "docid": "9da4c44c06e8aec59c16c750c32540d0", "score": "0.43634313", "text": "int binarySearch(Animal a);", "title": "" }, { "docid": "1377570baeeca8a2afd141697f4db465", "score": "0.43618405", "text": "@Override\r\n\tpublic Question getByCategoryAndDiffculty(String category,int difficulty) {\n\t\tRandom rand = new Random(); \r\n\t\tList<Question> questions = questionDao.findAllByCategoryAndDifficulty(category,difficulty);\r\n\t\tint randNum = rand.nextInt(questions.size());\r\n\t\tQuestion selected = questions.get(randNum);\r\n\t\treturn selected;\r\n\t}", "title": "" }, { "docid": "1454d5f5d6000e0b7ad0eeaff4e1c41e", "score": "0.43602777", "text": "abstract public int getCategoryOfSite(int site, UltrametricTree tree, TNode node);", "title": "" }, { "docid": "d6f1a0893966f7b43faf1491d3b583fd", "score": "0.4357039", "text": "public boolean choose(String type, Set set);", "title": "" }, { "docid": "f39af400a444fb97e54dfd46483c8174", "score": "0.43563932", "text": "long countByExample(TipificacionCriteria example);", "title": "" }, { "docid": "8bed0aeb72942ed8c9cbd6e8aa82621f", "score": "0.43507564", "text": "@Override\r\n\tpublic boolean delete(Categorie objet) {\n\t\tboolean idx = donnees.remove(objet);\r\n\t\tif (!idx) \r\n\t\t\tthrow new IllegalArgumentException(\"Tentative de suppression d'une categorie inexistante\");\r\n\t\t\r\n\t\treturn idx;\r\n\t}", "title": "" }, { "docid": "7a842ea39d86420fee0146deae7650f5", "score": "0.43502346", "text": "public static TypeDictionaryDicoTypeCapteurSousCategorie get(String literal) {\n\t\tfor (int i = 0; i < VALUES_ARRAY.length; ++i) {\n\t\t\tTypeDictionaryDicoTypeCapteurSousCategorie result = VALUES_ARRAY[i];\n\t\t\tif (result.toString().equals(literal)) {\n\t\t\t\treturn result;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "53d91f2b2eb989542646df5fb1329eec", "score": "0.43500283", "text": "public void testGetCategoryByEvent() {\r\n Event event7 = new Event(\"Matrix\",\"2012-11-08\",\"2012-11-08\",\"22:00\",\"23:45\",\"Worth to watch\",\"OFF\");\r\n long event7_id = dbTest.createEvent(event7, new long[] { 59 });\r\n event7.setId(event7_id);\r\n Category test = dbTest.getCategoryByEvent(event7_id);\r\n assertEquals(\"Traveling\",test.getName());\r\n }", "title": "" }, { "docid": "069eb2c6fb54f596c20e0a24c368dc0c", "score": "0.43495658", "text": "public int getIdCategoriastf() {\n return idCategoriastf;\n }", "title": "" }, { "docid": "e7dff4d0a098bae6ccf4382e02a62a1d", "score": "0.4347217", "text": "public int pilih(int kondisi) {\n int t = 0;\n if (kondisi == 0) {//fitness terbaik\n double besar = fitness_chromosom[0][fitness_chromosom[0].length - 1];\n for (int i = 1; i < fitness_chromosom.length; i++) {\n if (fitness_chromosom[i][fitness_chromosom[0].length - 1] > besar) {\n besar = fitness_chromosom[i][fitness_chromosom[0].length - 1];\n t = i;\n }\n }\n } else if (kondisi == 1) {//fitness terburuk\n double kecil = fitness_chromosom[0][fitness_chromosom[0].length - 1];\n for (int i = 1; i < fitness_chromosom.length; i++) {\n if (fitness_chromosom[i][fitness_chromosom[0].length - 1] < kecil) {\n kecil = fitness_chromosom[i][fitness_chromosom[0].length - 1];\n t = i;\n }\n }\n } else if (kondisi == 2) {//random\n double random = Math.random() * (chromosom.length);\n Double tt = new Double(random);\n t = tt.intValue();\n }\n return t;\n }", "title": "" }, { "docid": "c218e30cd2e3d97758b088260a07304a", "score": "0.43466377", "text": "public Categoria insert(Categoria obj ) {\n\t\tobj.setId_categoria(null);\n\t\treturn repo.save(obj);\n\t}", "title": "" }, { "docid": "12bc486a993a6da5f6248e5c992ed110", "score": "0.43464193", "text": "Label selectOneByExample(LabelExample example);", "title": "" }, { "docid": "16e4cc692d0cec5209823b78aaa9ce76", "score": "0.4343406", "text": "public Categoria buscarCategoriaPorId(Long idCategoria) throws SQLException, Exception \n\t{\n\t\tCategoria categoria = null;\n\n\t\tString sql = \"SELECT * FROM CATEGORIA WHERE ID_CATEGORIA =\" + idCategoria;\n\n\t\tPreparedStatement prepStmt = conn.prepareStatement(sql);\n\t\tcategorias.add(prepStmt);\n\t\tResultSet rs = prepStmt.executeQuery();\n\n\t\tif(rs.next()) {\n\t\t\tLong idCategoria2 = rs.getLong(\"ID_CATEGORIA\");\n\t\t\tString categoria2= rs.getString(\"CATEGORIA\");\n\n\t\t\tcategoria = new Categoria(idCategoria2, categoria2);\n\t\t}\n\n\t\treturn categoria;\n\t}", "title": "" }, { "docid": "7534bb0c001ec378b76939d713215981", "score": "0.43412176", "text": "public static int clusterDecide(int a){ // int a is the new record \n int dis=0;\n int clst=0;\n\n \n\n return clst;\n }", "title": "" }, { "docid": "80b3e904308e5378518c37881075b859", "score": "0.43387482", "text": "Forest findByName(String name);", "title": "" }, { "docid": "51d99fd7211a35c126adaeb5868da691", "score": "0.43301862", "text": "public static TypeDictionaryDicoTypeCapteurSousCategorie getByName(String name) {\n\t\tfor (int i = 0; i < VALUES_ARRAY.length; ++i) {\n\t\t\tTypeDictionaryDicoTypeCapteurSousCategorie result = VALUES_ARRAY[i];\n\t\t\tif (result.getName().equals(name)) {\n\t\t\t\treturn result;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "4789a3e8eac43693f1678cb397baf231", "score": "0.43186662", "text": "public RecipeBo getCategorieOfRecipe(RecipeBo recipe) {\n\t\t// FIXME 2 mal implementiert???? Diese Funktion wird nicht verwendet!!\n\t\tString blsCode = recipe.getBlsCode();\n\n\t\tblsCode = blsCode.substring(0, 1);\n\t\tblsCode += \"00000\";\n\t\tList<RecipeBo> recipes = searchRecipe(blsCode, null);\n\n\t\tif (recipes.size() >= 1) {\n\t\t\treturn (RecipeBo) recipes.toArray()[0];\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "title": "" }, { "docid": "82a2926014145cfab25833d52317a6bb", "score": "0.43174914", "text": "public Categoria convert(Object element) {\r\n\t\tInteger id = Integer.parseInt((String)element);\r\n\t\tCategoria categoria= categoriaService.findById(id);\r\n\t\tSystem.out.println(\"Categoria : \"+categoria);\r\n\t\treturn categoria;\r\n\t}", "title": "" }, { "docid": "98d2370b3a87348ae9021678cd1d9808", "score": "0.43138325", "text": "public Category selectCategory(String id_category){\n LOG.log(Level.INFO, \"selectCategory()\");\n Category category = null;\n try{\n this.iniciaOperacion();\n category = (Category) session.get(Category.class, id_category);\n }catch(HibernateException he){\n this.manejaException(he);\n throw he;\n }finally{\n session.close();\n }\n return category;\n }", "title": "" }, { "docid": "6cbffaa3411c34d6deda6a49f7b3193e", "score": "0.43137646", "text": "@Override\n public Chip findByName(String name) {\n return mongoTemplateAnalysisDB.findOne(new Query(Criteria.where(\"name\").is(name)), Chip.class);\n }", "title": "" }, { "docid": "4cc2a5f531548b64db38d3aea709a62d", "score": "0.43090037", "text": "public int getExamplesClass(int value){\r\n\r\n int conta=0;\r\n\r\n for(int i=0; i<datos.size(); i++){\r\n Instance m = (Instance) datos.get(i);\r\n if(m.getClas()==value){\r\n conta++;\r\n }\r\n\r\n }\r\n return conta;\r\n }", "title": "" }, { "docid": "2016b64c4c6ddbb5ea41ef659e8a8bf6", "score": "0.4304132", "text": "public abstract Category getCategoryByName(String name);", "title": "" } ]
b221746ca0bf194bfe703c5f8072b9ac
Issues an error message to the ImageJ log window, plus an exception stack trace to an ImageJ exception window.
[ { "docid": "3f8368e839d5b802fd21e1fcb4f8e444", "score": "0.55273175", "text": "public static void error(final String message, final Throwable t) {\n\t\tif (t != null) t.printStackTrace();\n\t\tfinal String logMessage = message != null ? message : message(t);\n\t\tif (logMessage != null) IJ.log(\"ERROR: \" + logMessage);\n\t\tif (t != null) IJ.handleException(t);\n\t}", "title": "" } ]
[ { "docid": "d31ad6eabd9c5347cb884676619d5a41", "score": "0.62836254", "text": "public void showMessageError(String usrMsg, Throwable e)\r\n { logger.debug(\"\");\r\n // Craft message\r\n String logMsg = usrMsg;\r\n if (e != null)\r\n { usrMsg = usrMsg + \"\\n \\n\" +\r\n \"Infos techniques : \\n\" +\r\n ExceptionUtils.getRootCauseMessage(e); // short description\r\n\r\n logMsg = logMsg + \"\\n\\n\" +\r\n \"Infos techniques : \\n\" +\r\n MyExceptionUtils.getStackMessages(e); // longer description\r\n }\r\n // Display message in popup\r\n JOptionPane.showMessageDialog(rootPanel, usrMsg, \"ERREUR\", JOptionPane.ERROR_MESSAGE);\r\n\r\n // Also display in GUI log pane\r\n loggerGui.error(usrMsg);\r\n\r\n // And through conventional logger\r\n logger.error(logMsg);\r\n }", "title": "" }, { "docid": "40fb29602b3ca5f0bba04df058cd5f70", "score": "0.62485045", "text": "public static void error(String title, String texte, Exception ex) {\n\t\t// create the popup\n\t\tMessageDialog.openError(new Shell(), title,\n\t\t\t\ttexte + \" :\\n\\n\" + ex.toString() +\n\t\t\"\\n (detailed information in .log file)\");\n\t\t\n\t\t// write the error in the log\n\t\teditLog(title, texte, ex);\n\t}", "title": "" }, { "docid": "c0031de630ae46fdf436a871af14afd6", "score": "0.6209449", "text": "void showReportError();", "title": "" }, { "docid": "662d3c747599b92224d5430503f42e88", "score": "0.6073766", "text": "void error(String message, Exception e) {\n JOptionPane.showMessageDialog(this, message);\n Logger.getLogger(ImportNGSDialog.class.getName()).log(\n Level.WARNING, message, e);\n\n }", "title": "" }, { "docid": "b60905dd8a113a5ba6efd1f07a4efe83", "score": "0.60417247", "text": "private static void logException(final Exception exception)\n {\n if (exception instanceof ImageReaderException)\n {\n LOG.error(\"Unable to read image format: ImageReadException\");\n }\n else if (exception instanceof IOException)\n {\n LOG.error(\"Uable to read image source: IOException\");\n }\n LOG.error(exception);\n }", "title": "" }, { "docid": "65002df2fe2cb67f3f5e5290f1f6634a", "score": "0.5996758", "text": "public static void logError( String inMessage, Throwable ex ) {\n System.err.println( inMessage );\n if ( ex != null )\n ex.printStackTrace( System.err );\n }", "title": "" }, { "docid": "c740404b782dda4542b98927347c205f", "score": "0.5987641", "text": "private void addError(String message) {\n exceptionStack.addElement(message + \" at line \" +\n currentLocator.getLineNumber() + \", column \" +\n currentLocator.getColumnNumber() + \"\\n\");\n }", "title": "" }, { "docid": "b749c7fbd36c9b99807dc825eba33a9b", "score": "0.598085", "text": "public void displayErrorImage() {\r\n\t\terrorFrame = new JPEGImage(target);\r\n\r\n\t\tfor (int y = 0; y < targetImage.getH(); y += 16) {\r\n\t\t\tfor (int x = 0; x < targetImage.getW(); x += 16) {\r\n\t\t\t\tMacroBlock block = blocks.poll();\r\n\r\n\t\t\t\tdouble[] mv = new double[2];\r\n\t\t\t\tmv[0] = block.dx;\r\n\t\t\t\tmv[1] = block.dy;\r\n\r\n\t\t\t\tmvs.add(mv);\r\n\r\n\t\t\t\tfor (int j = 0; j < 16; j ++) {\r\n\t\t\t\t\tfor (int i = 0; i < 16; i ++) {\r\n\t\t\t\t\t\tint[] rgb = new int[3];\r\n\r\n\t\t\t\t\t\tint afterShift = (int) ( ( block.residuals[i][j] - min ) * step );\r\n\r\n\t\t\t\t\t\trgb = new int[]{afterShift, afterShift, afterShift};\r\n\r\n\t\t\t\t\t\terrorFrame.setPixel(x+i, y+j, rgb);\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}", "title": "" }, { "docid": "36347692fcdd9aea708073b0c38ac583", "score": "0.5968187", "text": "public void logError(String message) {\n logAnnot(\"[Unik] ERROR: \", message);\n }", "title": "" }, { "docid": "e34c427e2fec6b4f844107f089da5228", "score": "0.59608036", "text": "void error(String message, Throwable exception);", "title": "" }, { "docid": "668a7e7ffb8401a338d95148c03cbc4e", "score": "0.5860614", "text": "public static void report(Throwable ex) {\n StringWriter sw = new StringWriter();\n try (PrintWriter pw = new PrintWriter(sw)) {\n ex.printStackTrace(pw);\n }\n\n JOptionPane.showMessageDialog(MainFrame.frame, sw.toString(),\n \"Unhandeled Exception\", JOptionPane.ERROR_MESSAGE);\n\n }", "title": "" }, { "docid": "f9c6291228538445fc7a701b03eff8c1", "score": "0.5839518", "text": "static public void openError(final String title, final String message, final Exception e) {\n\t\tUIJob uiJob = new UIJob(\"open error\") { //$NON-NLS-1$\n\n\t\t\t@Override\n\t\t\tpublic IStatus runInUIThread(IProgressMonitor monitor) {\n\t\t\t\t// open error for the exception\n\t\t\t\tString detail = IInternalDebugCoreConstants.EMPTY_STRING;\n\t\t\t\tif (e != null)\n\t\t\t\t\tdetail = e.getMessage();\n\n\t\t\t\tShell shell = DebugUIPlugin.getDefault().getWorkbench().getActiveWorkbenchWindow().getShell();\n\n\t\t\t\tMessageDialog.openError(shell, title, message + \"\\n\" + detail); //$NON-NLS-1$\n\t\t\t\treturn Status.OK_STATUS;\n\t\t\t}\n\t\t};\n\t\tuiJob.setSystem(true);\n\t\tuiJob.schedule();\n\t}", "title": "" }, { "docid": "b33089039c928ef116f0b15a380c8605", "score": "0.58219445", "text": "public static void showException(Exception ex) {\r\n showMessage(ex.getMessage());\r\n ex.printStackTrace(System.err); //Programmer's side\r\n }", "title": "" }, { "docid": "170897e33f07778800959693b85d0e84", "score": "0.5819052", "text": "void showError(String message);", "title": "" }, { "docid": "170897e33f07778800959693b85d0e84", "score": "0.5819052", "text": "void showError(String message);", "title": "" }, { "docid": "ca3b9a44caa4a4d6f1d3140095e228e6", "score": "0.5758078", "text": "public void showExceptionMessage(String message) {\n StringBuilder sb = new StringBuilder(\"\\n\");\n sb.append(createTime());\n sb.append(\", ERROR: \");\n sb.append(message);\n System.out.println(sb);\n }", "title": "" }, { "docid": "63854bc5c7061155ca85391507dbfe74", "score": "0.572735", "text": "private final\n\tvoid visualizeErrors(Execution exec, UiVisualizer uv, List errs) {\n\t\tfinal StringBuffer sb = new StringBuffer(128);\n\t\tfor (Iterator it = errs.iterator(); it.hasNext();) {\n\t\t\tfinal Throwable t = (Throwable)it.next();\n\t\t\tif (sb.length() > 0) sb.append('\\n');\n\t\t\tsb.append(Exceptions.getMessage(t));\n\t\t}\n\t\tfinal String msg = sb.toString();\n\n\t\tfinal Throwable err = (Throwable)errs.get(0);\n\t\tfinal Desktop desktop = exec.getDesktop();\n\t\tfinal Configuration config = desktop.getWebApp().getConfiguration();\n\t\tfinal String location = config.getErrorPage(desktop.getDeviceType(), err);\n\t\tif (location != null) {\n\t\t\ttry {\n\t\t\t\texec.setAttribute(\"javax.servlet.error.message\", msg);\n\t\t\t\texec.setAttribute(\"javax.servlet.error.exception\", err);\n\t\t\t\texec.setAttribute(\"javax.servlet.error.exception_type\", err.getClass());\n\t\t\t\texec.setAttribute(\"javax.servlet.error.status_code\", new Integer(500));\n\t\t\t\texec.setAttribute(\"javax.servlet.error.error_page\", location);\n\n\t\t\t\t//Future: consider to go thru UiFactory for the richlet\n\t\t\t\t//for the error page.\n\t\t\t\t//Challenge: how to call UiFactory.isRichlet\n\t\t\t\tfinal Richlet richlet = config.getRichletByPath(location);\n\t\t\t\tif (richlet != null)\n\t\t\t\t\trichlet.service(((ExecutionCtrl)exec).getCurrentPage());\n\t\t\t\telse\n\t\t\t\t\texec.createComponents(location, null, null);\n\n\t\t\t\t//process pending events\n\t\t\t\t//the execution is aborted if an exception is thrown\n\t\t\t\tEvent event = nextEvent(uv);\n\t\t\t\tdo {\n\t\t\t\t\tfor (; event != null; event = nextEvent(uv)) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tprocess(desktop, event);\n\t\t\t\t\t\t} catch (SuspendNotAllowedException ex) {\n\t\t\t\t\t\t\t//ignore it (possible and reasonable)\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tresumeAll(desktop, uv, null);\n\t\t\t\t} while ((event = nextEvent(uv)) != null);\n\t\t\t\treturn; //done\n\t\t\t} catch (Throwable ex) {\n\t\t\t\tlog.realCause(\"Unable to generate custom error page, \"+location, ex);\n\t\t\t}\n\t\t}\n\n\t\tuv.addResponse(new AuAlert(msg)); //default handling\n\t}", "title": "" }, { "docid": "95109743541ed0df6b72d65b9755afa5", "score": "0.5704524", "text": "void logError(String message);", "title": "" }, { "docid": "c0c51565b75e5a7c760e40adc7ec7cd5", "score": "0.5693564", "text": "public void mostrarError(){\r\n\t\tdiagmsg.ponerMensaje(explorador.mensaje);\r\n\t\tdiagmsg.setVisible(true);\r\n\t\t\r\n\t}", "title": "" }, { "docid": "8d2519e64ff2b2c38b1b86cbfd5c98a4", "score": "0.5684303", "text": "void displayError(String message);", "title": "" }, { "docid": "0360701c9f6bbba3498e856506b8a026", "score": "0.5674578", "text": "public void uncaughtExceptionHandlingActions(Throwable e)\n {\n //get window position and size for centering error box\n int width = 0,height = 0;\n javax.media.nativewindow.util.Point windowLocation = new javax.media.nativewindow.util.Point();\n try\n { \n windowLocation = this.getGraphicsWindow().getLocationOnScreen();\n width =this.getGraphicsWindow().getWidth();\n height = this.getGraphicsWindow().getHeight();\n\n //hide glwindow\n this.getGraphicsWindow().setVisible(false);\n this.getGraphicsWindow().setPointerVisible(true);\n }\n catch(Exception ex){ ex.printStackTrace(System.err);}\n \n\n //log error to console\n StringWriter sw = new StringWriter();\n PrintWriter pw = new PrintWriter(sw);\n e.printStackTrace(pw);\n String stackTrace = sw.toString(); // stack trace as a string\n\n Log.error( \"GAME CRASH: {0}\", e.toString() + \" : \" +stackTrace);\n \n try\n {\n //cleanup audio \n this.audioRenderer.cleanupAudioRenderer();\n }\n catch(Exception ex){ex.printStackTrace(System.err);}\n \n\n //show error window\n JWindow frame = new JWindow();\n frame.setLocation(windowLocation.getX() + width/2, windowLocation.getY() + height/2);\n frame.setAlwaysOnTop(true);\n frame.setVisible(true);\n \n JOptionPane.showMessageDialog(frame, e.toString() + \" : \" +stackTrace);\n\n //shutdown\n try\n {\n this.performSystemShutdown();\n }\n catch(Exception ex){System.exit(1);}\n }", "title": "" }, { "docid": "a6ebe36ea26ec3425a41ac40181bc759", "score": "0.5666302", "text": "public void error(String msg, Throwable t);", "title": "" }, { "docid": "2b3013a159aec7aadf16b370ba8aadf1", "score": "0.56542265", "text": "public static void showError(final Exception e) {\n\t\tLOG.warn(\"Error occurred\", e);\n\n\t\tJOptionPane.showMessageDialog(null, e.getLocalizedMessage(), null, JOptionPane.ERROR_MESSAGE);\n\t}", "title": "" }, { "docid": "a9fee28cac41a9790c86550e7fb6d21f", "score": "0.56447965", "text": "private void showError(Exception ex)\r\n {\r\n if (DEBUG_MODE)\r\n {\r\n System.out.println(\" Error: \" + ex.toString());\r\n }\r\n }", "title": "" }, { "docid": "98120cf07081920b2e19938697d782fe", "score": "0.5643752", "text": "public final static JComponent createErrorPanel(final Resources res,\n final Throwable throwable) {\n final JComponent container = new JPanel();\n container.setLayout(new BorderLayout());\n\n Border emptyBorder = new EmptyBorder(8, 8, 8, 6);\n Border lineBorder = BorderFactory.createMatteBorder(0, 0, 1, 0,\n TangoColorScheme.ScarletRed3.color);\n container.setBorder(BorderFactory.createCompoundBorder(lineBorder, emptyBorder));\n container.setBackground(TangoColorScheme.ScarletRed1.color);\n\n\n JLabel text = new JLabel();\n container.add(text, BorderLayout.CENTER);\n\n String message = throwable.getLocalizedMessage();\n //message = message.replaceFirst(\".*?\\\\:(.*?)\\\\(\\\\<Unknown.*\", \"$1\");\n\n text.setText(message);\n\n JButton inspectButton = res.register(new JButton(), \"inspect\");\n //inspectButton.setBorder(BorderFactory.createEmptyBorder(1, 1, 1, 12));\n inspectButton.setPreferredSize(new Dimension((int) inspectButton.getPreferredSize().getWidth(), (int) text.getMinimumSize().getHeight()));\n inspectButton.setMargin(null);\n JButton closeButton = IconButton.createCloseButton(new ActionListener() {\n\n @Override\n public void actionPerformed(ActionEvent e) {\n new FadeComponent(container);\n }\n });\n\n inspectButton.addActionListener(new ActionListener() {\n\n @Override\n public void actionPerformed(ActionEvent e) {\n JLabel msg = new JLabel(\"<html><p>\"\n + throwable.getLocalizedMessage() + \"</p></html>\");\n msg.setPreferredSize(new Dimension(300, 60));\n JList trace = new JList(throwable.getStackTrace());\n JOptionPane.showMessageDialog(container,\n ColumnLayout.createPanel(msg, trace));\n }\n });\n container.add(PanelFactory.createFlowPanel(FlowLayout.LEFT, 0, 0, inspectButton, closeButton), BorderLayout.EAST);\n //container.add(inspectButton, BorderLayout.WEST);\n container.add(text, BorderLayout.WEST);\n //container.add(closeButton, BorderLayout.EAST);\n\n return container;\n }", "title": "" }, { "docid": "f494e2cebfaa6554a63ffd745ddf9e22", "score": "0.5617475", "text": "public void error(String s) {\n Messages.showMessageDialog(s, \"Binding Layout\", Messages.getErrorIcon());\n\n }", "title": "" }, { "docid": "035f2922675f78a74538430b72dc0916", "score": "0.5611901", "text": "public static void display(Exception e) {\r\n\t\te.printStackTrace();\r\n\t}", "title": "" }, { "docid": "4620d46112b664ac99fcbc987bcf80a5", "score": "0.5611601", "text": "public void showErrorMessage() {\n try {\n FXMLLoader loader = new FXMLLoader();\n loader.setLocation(this.getClass().getResource(\"/views/ipError.fxml\"));\n Parent ipError = loader.load();\n Scene ipErrorScene = new Scene(ipError);\n Stage window = new Stage();\n window.initModality(Modality.APPLICATION_MODAL);\n window.setTitle(\"ipError\");\n window.setScene(ipErrorScene);\n window.setWidth(210);\n window.setHeight(180);\n window.show();\n Rectangle2D bounds = Screen.getPrimary().getVisualBounds();\n double x = bounds.getMinX() + (bounds.getWidth() - window.getWidth()) * 0.5;\n double y = bounds.getMinY() + (bounds.getHeight() - window.getHeight()) * 0.7;\n window.setX(x);\n window.setY(y);\n window.show();\n } catch (IOException i) {\n client.showError(i.getMessage());\n }\n }", "title": "" }, { "docid": "29f5aa139ceb0c18481ff27f8defea3d", "score": "0.5611318", "text": "public void showScriptError(ScriptException e) {\r\n StringBuilder totalMsg = new StringBuilder();\r\n // NOTE: see AppMain.evaluateScriptCode() for this string\r\n if (!e.getFileName().equals(\"(inline script)\")) {\r\n totalMsg.append(\"File: \");\r\n totalMsg.append(e.getFileName());\r\n totalMsg.append(\"\\n\");\r\n }\r\n if (e.getLineNumber() != 1) {\r\n totalMsg.append(\"Line: \");\r\n totalMsg.append(\"\" + e.getLineNumber());\r\n totalMsg.append(\"\\n\");\r\n }\r\n String sanitizedMessage = e.getMessage();\r\n // try to remove stupid stuff from the JavaScript runtime that just\r\n // makes error messages longer without adding any useful information\r\n final String garbage[] = new String[] {\r\n \"sun\\\\.org\\\\.mozilla\\\\.javascript\\\\.internal\\\\.EcmaError: \",\r\n \"sun\\\\.org\\\\.mozilla\\\\.javascript\\\\.internal\\\\.EvaluatorException: \",\r\n \"sun\\\\.org\\\\.mozilla\\\\.javascript\\\\.internal\\\\.WrappedException: \",\r\n \"Wrapped javax\\\\.script\\\\.ScriptException: \"\r\n };\r\n for (String regex : garbage) {\r\n sanitizedMessage = sanitizedMessage.replaceFirst(regex, \"\");\r\n }\r\n totalMsg.append(sanitizedMessage);\r\n showMessage(totalMsg.toString(), \"Error Running Script\",\r\n JOptionPane.ERROR_MESSAGE);\r\n }", "title": "" }, { "docid": "3fbd564e06259eafb4362d60df237782", "score": "0.55977345", "text": "private static void error(Exception e){\n if (OhWild.debug) e.printStackTrace();\n }", "title": "" }, { "docid": "0c55c3ac0802356bae15684735e92152", "score": "0.5584815", "text": "public void logError(String msg, Exception e) {\n }", "title": "" }, { "docid": "882f918934ce0be440005ae8406fff19", "score": "0.55824983", "text": "public static void display(String message,Exception e) {\r\n\t\tdisplay(message);\r\n\t\te.printStackTrace();\r\n\t}", "title": "" }, { "docid": "4f1332d13d5b0d84ca8d1106de6d44f2", "score": "0.55801713", "text": "public static void error(String cls, String msg){\n System.err.println(\"[ERR]::\" + cls + \" \" + msg);\n /* TODO: Log event to file. */\n }", "title": "" }, { "docid": "41aaa6eaa39bae771dd7ba7170422d77", "score": "0.55792576", "text": "public void error(String message, Throwable throwable);", "title": "" }, { "docid": "f4c969c44fc58fc21c52bf4f2e97a214", "score": "0.557537", "text": "@Override\n\tpublic void error(String message, Exception exception) {\n\n\t}", "title": "" }, { "docid": "84df2ea9a6fc231c513e73e62c699bdc", "score": "0.5567784", "text": "public void displayKBError(LSException e, String id)\r\n {\r\n String s;\r\n long term, errorList;\r\n\r\n try\r\n {\r\n // KBI errors return a detailed list of attributes\r\n if (e.GetMsg().indexOf(\"kwi_error(\") >= 0)\r\n {\r\n s = \"kwi(\" + id + \", get_error, _ERROR)\";\r\n term = ls.ExecStr(s);\r\n\r\n // If we can't get error information, don't die\r\n if (term == 0)\r\n {\r\n JOptionPane.showMessageDialog(this, \"Unable to call kwi / get_error for: \" + e.GetMsg(),\r\n \"Logic Server Error\", JOptionPane.ERROR_MESSAGE);\r\n return;\r\n }\r\n\r\n // Get all the attributes of the error into a Properties object\r\n Properties info = Utils.prologListToProperties(ls, ls.GetArg(term, 3), 10000);\r\n Enumeration propNames = info.propertyNames();\r\n\r\n // Build a nicely formatted message\r\n String msg = \"\";\r\n while (propNames.hasMoreElements())\r\n {\r\n String name = (String)propNames.nextElement();\r\n if (name.equals(\"callstack\")) continue;\r\n if (name.equals(\"rc\"))\r\n msg = msg + \"Error #\" + info.getProperty(name) + \"\\n\";\r\n else if (name.equals(\"type\"))\r\n msg = msg + \"Type: \" + info.getProperty(name) + \"\\n\";\r\n else if (name.equals(\"message\"))\r\n msg = msg + info.getProperty(name) + \"\\n\";\r\n else if (name.equals(\"error\"))\r\n msg = msg + info.getProperty(name) + \"\\n\";\r\n else\r\n msg = msg + name + \": \" + info.getProperty(name) + \"\\n\";\r\n }\r\n JOptionPane.showMessageDialog(this, msg,\r\n \"Logicbase Execution Error\", JOptionPane.ERROR_MESSAGE);\r\n }\r\n // Consult errors (outside the KWI)\r\n else if (e.GetType() == LSException.READ /*read*/)\r\n {\r\n String lineno = new Integer(e.GetLineno()).toString();\r\n String msg = e.GetMsg() + \"\\n in file \" + e.GetReadFileName() +\r\n \"\\n at line \" + lineno + \"\\n\" + e.GetReadBuffer();\r\n JOptionPane.showMessageDialog(this, msg,\r\n \"Syntax Error\", JOptionPane.ERROR_MESSAGE);\r\n }\r\n\r\n // Unrecognized Logic Server error\r\n else\r\n JOptionPane.showMessageDialog(this, e.GetMsg(),\r\n \"Logic Server Error\", JOptionPane.ERROR_MESSAGE);\r\n }\r\n catch (LSException e2)\r\n {\r\n System.out.println(\"Error catching error\");\r\n e.printStackTrace();\r\n }\r\n }", "title": "" }, { "docid": "01a8e122bd0dfe3205c26527797e4791", "score": "0.5565688", "text": "private void showErrorMessage(String exceptionInformation)\n\t{\n\t\tJOptionPane.showMessageDialog(null, exceptionInformation, \"Aten��o\",\n\t\t\t\t\t\t\t\t\t JOptionPane.INFORMATION_MESSAGE);\n\t}", "title": "" }, { "docid": "eb06aa0656c52ce8406f88b38273f6ff", "score": "0.5521452", "text": "protected void throwException(Exception except){\n d = new JDialog(this.frame, \"Game Over\");\n \n System.out.println(\"prompt - throw exception\");\n if(d != null){\n d.setVisible(false);\n }\n\n if ( except.getMessage().equals(winString)){\n String filePath = new File(\"\").getAbsolutePath();\n String path = filePath +\"/../images/winnerwinnerchickendinnner.png\"; \n System.out.println(path);\n BufferedImage img = null;\n try {\n img = ImageIO.read(new File(path));\n } catch(Exception exception){\n exception.printStackTrace();\n }\n // load image panel\n ImageIcon imageMap = new ImageIcon(img);\n JLabel imageLabel = new JLabel(imageMap);\n imageLabel.setBounds(30, 50, 173, 213);\n d.add(imageLabel);\n } \n\n // setsize of dialog \n d.setLayout(null);\n d.setSize(300, 300);\n // create a label\n JLabel l = new JLabel(\"<html>\"+except.getMessage()+\"</html>\"); \n l.setBounds(0,0,300,50);\n d.add(l); \n\n\n // set visibility of dialog \n d.setVisible(true); \n except.printStackTrace();\n }", "title": "" }, { "docid": "ecb76bb9b7886642859b104753180b83", "score": "0.5514875", "text": "public void logError(Exception e) {\n\t\tAssemblyMachine.LogError(e);\n\n\t}", "title": "" }, { "docid": "e6c7ef14dacc234160bbc4d18b61200e", "score": "0.5496926", "text": "public static void errorMessage(Component owner, String message)\r\n {\r\n JOptionPane.showMessageDialog(owner, message, \"Error\", JOptionPane.ERROR_MESSAGE);\r\n }", "title": "" }, { "docid": "ad292f1aa5d160d62cac686952b0637a", "score": "0.5496058", "text": "public void error(Exception ex);", "title": "" }, { "docid": "a8b87dbef25c283c0e4e2aa6c2f12782", "score": "0.54698926", "text": "public void error(String message){\r\n\t\tint id = Printer.nextErrorInstanceId++;\r\n\t\tSystem.out.println(this.clock()+\" ERROR #\"+id+\"\\n \"+this.user+\" : \"+message);\r\n\t}", "title": "" }, { "docid": "61a82a92f5bcc25d3a57d2e87fc26d78", "score": "0.5467178", "text": "public void displayError()\r\n\t{\r\n\t\tStage errorWindow = new Stage();\r\n\t\terrorWindow.setTitle(\"Error\");\r\n\r\n\t\tButton closeErrorButton = new Button(\"CLOSE\");\r\n\t\tcloseErrorButton.setMaxSize(200, 20);\r\n\t\tcloseErrorButton.setMinSize(200, 40);\r\n\r\n\t\tcloseErrorButton.setOnAction(e -> errorWindow.close());\r\n\r\n\t\tText errorTextTitle = new Text(\"An Error has occurred, Try again\");\r\n\t\terrorTextTitle.setStyle(\"-fx-font-size: 15pt;\"\r\n\t\t\t\t+ \"-fx-font-weight: bold;\");\r\n\t\tText errorTextBody = new Text(\"Select more than one tile from your rack to form a word\");\r\n\t\terrorTextBody.setStyle(\"-fx-font-size: 10pt;\");\r\n\r\n\t\tVBox layout = new VBox(10);\r\n\t\tlayout.getChildren().addAll(errorTextTitle, errorTextBody, closeErrorButton);\r\n\t\tlayout.setAlignment(Pos.CENTER);\r\n\r\n\t\tScene scene = new Scene(layout, 350, 150);\r\n\t\tscene.getStylesheets().add(getClass().getResource(\"application.css\").toExternalForm());\r\n\r\n\t\terrorWindow.setScene(scene);\r\n\t\terrorWindow.showAndWait();\r\n\t}", "title": "" }, { "docid": "03e69ca9d6f5509f83607e5013b5c732", "score": "0.54642546", "text": "public static void error ( final Throwable msg )\r\n {\r\n _defaultLogger.error ( getMessage ( msg, true ) );\r\n }", "title": "" }, { "docid": "821469cc1e682f1f64587c0c557f8fda", "score": "0.54594356", "text": "public ScreenException(Throwable excep, String message) {\n super(excep,message);\n }", "title": "" }, { "docid": "ae4268f59ee22032527939116e5a2413", "score": "0.5458796", "text": "private void error(String sMessage) throws ProcessException\n\t\t{\n\t\t\tannotateParameter(rTargetParam, null, ERROR_MESSAGE, sMessage);\n\t\t\tthrow new ProcessException(getProcessStep(), sMessage);\n\t\t}", "title": "" }, { "docid": "7016f899ab9ba20487bdf4da6d855e8f", "score": "0.54552704", "text": "void error(String message, Throwable t);", "title": "" }, { "docid": "5ad9f93d0efd8a283146983dc2a7c17f", "score": "0.54542994", "text": "public void showMessageError(String usrMsg)\r\n { logger.debug(\"\");\r\n showMessageError(usrMsg, null);\r\n }", "title": "" }, { "docid": "094fc48b951681b91c19292cf184b4c0", "score": "0.54475456", "text": "private static void logError(final String message) {\n System.err.println(message);\n System.exit(1);\n }", "title": "" }, { "docid": "59d4749b57277b01da08ae98872dd9cc", "score": "0.5432315", "text": "public static void Log(Exception exception)\n {\n try \n {\n if (filesHelper == null)\n filesHelper = new FilesHelper();\n \n System.out.println(\"ERROR: \" + exception);\n filesHelper.SaveFile(GlobalData.path + \"Log.txt\", \n \"------------------------------------------------------------\", false);\n filesHelper.SaveFile(GlobalData.path + \"Log.txt\", \n GlobalData.simpleDateFormat.format(new Date()), false);\n filesHelper.SaveFile(GlobalData.path + \"Log.txt\", exception.toString(), false);\n }\n catch (Exception ex)\n {\n System.out.println(ex);\n }\n }", "title": "" }, { "docid": "d80c4d03256bf51c791337886513c979", "score": "0.54290617", "text": "void errorOccurred(Exception e);", "title": "" }, { "docid": "cba12ad54693745526d5a527d91b0ad8", "score": "0.54272205", "text": "public void showError(String message) {\n System.out.println(message);\n }", "title": "" }, { "docid": "c3ef466ef1c03f4634a1730760ea7483", "score": "0.54207265", "text": "public ExceptionReporter(final Throwable exception) {\n this.exception = exception;\n trace = new Text(getStackTrace(exception));\n final ScrollPane pane = new ScrollPane(trace);\n pane.setFitToWidth(true);\n pane.setFitToHeight(true);\n pane.setPadding(MARGIN);\n\n final Resources localized = Resources.getInstance();\n final Menu sendTo = new Menu(localized.getString(Resources.Keys.SendTo));\n sendTo.getItems().add(localized.menu(Resources.Keys.StandardErrorStream, this::printStackTrace));\n final ContextMenu menu = new ContextMenu(localized.menu(Resources.Keys.Copy, this::copy), sendTo);\n pane.setContextMenu(menu);\n\n final Label header = new Label(localized.getString(Resources.Keys.ErrorAt));\n view = new VBox(header, pane);\n VBox.setVgrow(pane, Priority.ALWAYS);\n VBox.setMargin(pane, PADDING);\n VBox.setMargin(header, PADDING);\n view.setPrefHeight(400);\n }", "title": "" }, { "docid": "93cac3402b4841fda24e83ec64baa9e9", "score": "0.54173195", "text": "public static void errorEx ( final String logger, final String msg )\r\n {\r\n LoggerFactory.getLogger ( logger ).error ( msg );\r\n }", "title": "" }, { "docid": "c983b793231b0aeb80604409ca6c032a", "score": "0.5413828", "text": "public void passHotPotato(Throwable aThrowable, String aMessage) {\n logger.error(aThrowable.getMessage(), aThrowable);\n JOptionPane.showMessageDialog(this, new String[]{\"An error occurred while attempting to process your data:\", aMessage}, \"Error occurred!\", JOptionPane.ERROR_MESSAGE);\n }", "title": "" }, { "docid": "1752dfa22af004183dd5e0f95f27d3ac", "score": "0.54128873", "text": "public static void displayError(String title, String msg) throws AWTException, MalformedURLException {\n SystemTray tray = SystemTray.getSystemTray();\n\n // If the icon is a file\n Image image = Toolkit.getDefaultToolkit().createImage(\"icon.png\");\n // Alternative (if the icon is on the classpath):\n // Image image =\n // Toolkit.getDefaultToolkit().createImage(getClass().getResource(\"icon.png\"));\n\n TrayIcon trayIcon = new TrayIcon(image, \"Tray Demo\");\n // Let the system resize the image if needed\n trayIcon.setImageAutoSize(true);\n // Set tooltip text for the tray icon\n trayIcon.setToolTip(\"System tray icon demo\");\n tray.add(trayIcon);\n\n trayIcon.displayMessage(title, msg, MessageType.ERROR);\n }", "title": "" }, { "docid": "bda9655a354d2c68cc1c2aabfec0de42", "score": "0.5411344", "text": "public void statusError() {\n \tImageIcon status = new ImageIcon(\"src//StatusIcon.png\");\n \tImageIcon error = new ImageIcon(\"src//ErrorIcon.png\");\n \t\n \tString[] columnNames = {\"Icon\", \"Message\"};\n \tObject[][] data = {\n \t\t\t{status, \"Succesfully Opened Program.\"}\n \t};\n \ttableModel = new DefaultTableModel(data, columnNames);\n \tstatusErrorTable = new JTable(tableModel)\n \t{\n \t\tpublic Class getColumnClass(int column) {\n \t\t\treturn getValueAt(0, column).getClass();\n \t\t}\n \t};\n \tstatusScroll = new JScrollPane(statusErrorTable);\n \tstatusScroll.setPreferredSize(new Dimension(700, 240));\n }", "title": "" }, { "docid": "3f5e0407a431f0458d8a42bda27b591d", "score": "0.54096055", "text": "public void error(String message) { \n\t\tlogger.warning(message);\n\t}", "title": "" }, { "docid": "551b97c2b9adf15c0a3571028c3ac56e", "score": "0.5408523", "text": "public static void errorEx ( final String logger, final String msg, final Object... params )\r\n {\r\n LoggerFactory.getLogger ( logger ).error ( MessageFormat.format ( msg, params ) );\r\n }", "title": "" }, { "docid": "6c8bdc4ec2c90a64383d7dde012206fd", "score": "0.54031223", "text": "public void error(String msg);", "title": "" }, { "docid": "6c8bdc4ec2c90a64383d7dde012206fd", "score": "0.54031223", "text": "public void error(String msg);", "title": "" }, { "docid": "93e2b852902b16f12c97a64150c4f20b", "score": "0.5402002", "text": "public void writeError(String message);", "title": "" }, { "docid": "a4be96c6493d18c252b29c3f01b484d1", "score": "0.54008275", "text": "public void mostrarError(String mensage){\r\n JOptionPane.showMessageDialog(this.getParent(), mensage);\r\n }", "title": "" }, { "docid": "9198b48b0cf6f1a379ed9b96453d9fcd", "score": "0.5400674", "text": "public void reportException(Exception e) {\n String msg = translator.getString(\"Exception.Occured\");\n setStatus(msg);\n JOptionPane.showMessageDialog(\n getContentPane(),\n \"<html><b>\" + msg + \":</b><br>\"\n + e.getClass().getName() + \"<br>\"\n + e.getMessage() + \"</html>\",\n translator.getString(\"Exception.Error\"),\n JOptionPane.ERROR_MESSAGE\n );\n }", "title": "" }, { "docid": "502b4ad3f431f64802fa678dc97c3b5b", "score": "0.5400415", "text": "public static void err(String msg) {\n\t\tlog(Level.SEVERE, msg);\n\t}", "title": "" }, { "docid": "072f306d5add62b24fbf2440df0267dd", "score": "0.5399862", "text": "public void errorMessage(String message) {\n System.out.println(message);\n }", "title": "" }, { "docid": "636ee9cae364d5a12539578361e4fe6e", "score": "0.539865", "text": "public static void printError(Object clase, Throwable ex) {\r\n\t\tlog.error(clase, ex);\r\n\t\t\r\n\t}", "title": "" }, { "docid": "c986091e8597f670ff6ec6b15ad99069", "score": "0.53852314", "text": "public static void error ( final String msg, final Object... params )\r\n {\r\n _defaultLogger.error ( MessageFormat.format ( msg, params ) );\r\n }", "title": "" }, { "docid": "c4b866f79f0a4719430906b73121250a", "score": "0.53839535", "text": "public final static void showErrorLog(String tag, String message) {\r\n if (showLogs)\r\n Log.e(tag, message);\r\n }", "title": "" }, { "docid": "b04c6a78137de2ac1e4ef86322774593", "score": "0.53832275", "text": "public void showError(String toShow)\n {\n System.err.print(toShow);\n }", "title": "" }, { "docid": "3ecea1c24596f1f2922fa471155b8da5", "score": "0.5382122", "text": "public static void printError(String message) {\r\n\t\tlog.error(message);\r\n\t}", "title": "" }, { "docid": "13d9d9c0aa28c92df532825f3921336a", "score": "0.53734607", "text": "public static void errorDialog(Shell parent, String title, String message,\n\t\t\tThrowable e) {\n\t\t// Log the error.\n\t\tAutoCVSPlugin.getPlugin().getEventLog()\n\t\t\t\t.logError(title + \": \" + message, e);\n\n\t\t// If e is an InvocationTargetException, then the wrapped\n\t\t// exception is much more likely to have useful information in it\n\t\t// than the outer exception.\n\t\tif (e instanceof InvocationTargetException)\n\t\t\te = ((InvocationTargetException) e).getTargetException();\n\t\tDebug.print(\"Error dialog:\");\n\t\tDebug.print(\" title: \" + title);\n\t\tDebug.print(\" message: \" + message);\n\t\tDebug.print(\" exception:\", e);\n\t\t// Create IStatus object describing the error.\n\t\t// Hopefully we're looking at a CoreException where the\n\t\t// status object is already present. If not, we just\n\t\t// use in a generic message to describe the error.\n\t\tIStatus status;\n\t\tif (e instanceof CoreException) {\n\t\t\tfinal IStatus exceptionStatus = ((CoreException) e).getStatus();\n\t\t\t// Reported status should have a severity less than errors\n\t\t\tif (exceptionStatus.getSeverity() != IStatus.ERROR) {\n\t\t\t\tstatus = exceptionStatus;\n\t\t\t} else {\n\t\t\t\t// Wrap the IStatus to turn it into a warning\n\t\t\t\tstatus = new IStatus() {\n\t\t\t\t\tpublic IStatus[] getChildren() {\n\t\t\t\t\t\treturn exceptionStatus.getChildren();\n\t\t\t\t\t}\n\n\t\t\t\t\tpublic int getCode() {\n\t\t\t\t\t\treturn exceptionStatus.getCode();\n\t\t\t\t\t}\n\n\t\t\t\t\tpublic Throwable getException() {\n\t\t\t\t\t\treturn exceptionStatus.getException();\n\t\t\t\t\t}\n\n\t\t\t\t\tpublic String getMessage() {\n\t\t\t\t\t\treturn exceptionStatus.getMessage();\n\t\t\t\t\t}\n\n\t\t\t\t\tpublic String getPlugin() {\n\t\t\t\t\t\treturn exceptionStatus.getPlugin();\n\t\t\t\t\t}\n\n\t\t\t\t\tpublic int getSeverity() {\n\t\t\t\t\t\treturn IStatus.WARNING;\n\t\t\t\t\t}\n\n\t\t\t\t\tpublic boolean isMultiStatus() {\n\t\t\t\t\t\treturn exceptionStatus.isMultiStatus();\n\t\t\t\t\t}\n\n\t\t\t\t\tpublic boolean isOK() {\n\t\t\t\t\t\treturn exceptionStatus.isOK();\n\t\t\t\t\t}\n\n\t\t\t\t\tpublic boolean matches(int severityMask) {\n\t\t\t\t\t\treturn exceptionStatus.matches(severityMask);\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t}\n\t\t} else {\n\t\t\tstatus = new Status(IStatus.ERROR, AutoCVSPlugin.getPlugin()\n\t\t\t\t\t.getBundle().getSymbolicName(), 0, // TODO: need a\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// code here?\n\t\t\t\t\tmessage, e);\n\t\t}\n\t\tAutoCVSPlugin.getPlugin().getLog().log(status);\n\t\t// Create a nice obnoxious dialog to inform the user.\n\t\tnew ErrorDialog(parent, title, message, status, IStatus.CANCEL\n\t\t\t\t| IStatus.ERROR | IStatus.INFO | IStatus.WARNING).open();\n\n\t}", "title": "" }, { "docid": "cad0432466ff79c99a43ef88607a6e07", "score": "0.5364483", "text": "void showError(int resMsg);", "title": "" }, { "docid": "cf734bb2ba2835dbd057fa0e9a48a205", "score": "0.53628844", "text": "@Override\n public void error(final String message, final Throwable exception) {\n createMessage(LogLevel.ERROR, message, exception);\n }", "title": "" }, { "docid": "213a17fe937a66cb0f832b639f72c34a", "score": "0.5362664", "text": "public void printError(RubyException excp) {\n if (excp == null || excp.isNil()) {\n return;\n }\n \n PrintStream errorStream = getErrorStream();\n errorStream.print(RubyInstanceConfig.TRACE_TYPE.printBacktrace(excp));\n }", "title": "" }, { "docid": "b0b01723cde5edf14a6616e3c950f583", "score": "0.5361627", "text": "@Override\n\tpublic void log(String message) {\n\t\tSystem.out.println(\"Exception details: \"+message);\n\t}", "title": "" }, { "docid": "ff1a2479f638783c1b16f7b3422b28c3", "score": "0.5361231", "text": "private void errorLog(String s) {\n\t\tSystem.out.println(NAME + \" ERROR: \" + s);\n\t}", "title": "" }, { "docid": "a4057c9ae4d48c6256d22770004cacb9", "score": "0.5353843", "text": "private void logStackTrace(String pMessage, Exception pE)\n{\n\n Logger.getLogger(getClass().getName()).log(Level.SEVERE, pMessage, pE);\n\n}", "title": "" }, { "docid": "324e06311ea953e5aaa5095d808f4644", "score": "0.53510225", "text": "public void writeError(String text) {\n if (currentProgressLog == null)\n createLog();\n\n currentProgressLog.addError(text);\n }", "title": "" }, { "docid": "268089c3e384f33036d08bc8d7f05894", "score": "0.5350987", "text": "public void error(String message);", "title": "" }, { "docid": "d2acadfe3fe3b4aa6a53a0c34279df37", "score": "0.534837", "text": "public final void displayError(final String text)\r\n {\r\n display(text, Type.ERROR);\r\n }", "title": "" }, { "docid": "fe17c200b7b409436c21e23e82369d4b", "score": "0.5346241", "text": "public void errorMessage(String message) {\n JOptionPane.showMessageDialog(this,\n message, \"Error\",\n JOptionPane.ERROR_MESSAGE);\n }", "title": "" }, { "docid": "8afcffeef70021098a3286cbd652e8a0", "score": "0.53445244", "text": "public void showError(String text, String title) {\r\n showMessage(text, title, JOptionPane.ERROR_MESSAGE);\r\n }", "title": "" }, { "docid": "a028fb03e80367ed2269461605922072", "score": "0.5337872", "text": "@Override\n public void showError(String message) {\n \n }", "title": "" }, { "docid": "219841862be78775d279a113be4fef81", "score": "0.53366446", "text": "protected void showError(String message){\n\t\terrorLabel.setText(\"Error (\"+new Date().getTime()+\") :\"+message);\n\t\terrorLabel.setVisible(true);\n\t\t// TODO : virer le errorPanel après X seconds\n\t}", "title": "" }, { "docid": "1de5f54fb816dcf95f1df2b1b421ca83", "score": "0.5327028", "text": "public static void error(String message) {\n\t\tLog.e(\"DiveTracker\", message);\n\t}", "title": "" }, { "docid": "746b81a6479246f318d957f8e8ca2810", "score": "0.5325494", "text": "public static void error(String title, String text) {\n\t\tMessageDialog.openError(new Shell(), title, text);\n\t}", "title": "" }, { "docid": "bf435caabb807e2adb5680f5738c6eb4", "score": "0.53231394", "text": "private void showErrors(ActionEvent event, String errorMessage) {\n Alert alert = new Alert(ERROR, errorMessage, OK);\n alert.initOwner(((Node) event.getTarget()).getScene().getWindow());\n alert.initModality(WINDOW_MODAL);\n\n Text text = new Text(errorMessage);\n TextFlow textFlow = new TextFlow();\n textFlow.setTextAlignment(CENTER);\n\n textFlow.getChildren().addAll(text);\n\n alert.getDialogPane().setContent(textFlow);\n alert.getDialogPane().setMinHeight(ALERT_PANE_MIN_HEIGHT);\n alert.getDialogPane().setMinWidth(ALERT_PANE_MIN_WIDTH);\n\n DialogPane dialogPane = alert.getDialogPane();\n dialogPane.setHeader(new GridPane());\n dialogPane.setGraphic(null);\n dialogPane.setCenterShape(true);\n\n alert.setX(alert.getOwner().getX() + (alert.getOwner().getWidth() - alert.getDialogPane().getWidth()) / 2);\n alert.setY(alert.getOwner().getY() + ALERT_PANE_Y_OFFSET);\n\n alert.showAndWait();\n }", "title": "" }, { "docid": "2dcf32806a46b781e8afd40a0c26f11d", "score": "0.531617", "text": "public void showError(String title, String message) {\n\t\tJOptionPane.showMessageDialog(this, message, title, JOptionPane.ERROR_MESSAGE);\n\t}", "title": "" }, { "docid": "4c0b5d1e365fd29ed766b93b45c7362e", "score": "0.53071666", "text": "public void showError(){\n\t\tFacesMessageHelper.sendGrowlMessage(FacesMessage.SEVERITY_WARN, \"Registro\",\"Campos resaltados invalidos\", growlPath\n\t\t\t\t,\"Error\");\t\t\n\t}", "title": "" }, { "docid": "73dc6722cbf3c78238dba26d99feedf0", "score": "0.53050727", "text": "void logStackTrace(String pMessage, Exception pE)\n{\n\n Logger.getLogger(getClass().getName()).log(Level.SEVERE, pMessage, pE);\n\n}", "title": "" }, { "docid": "46914f607d9ccb8a5349609ddae173d0", "score": "0.5304848", "text": "public void error( String message ) {\n\t\tJOptionPane.showMessageDialog( this, message, \"Input Error\", JOptionPane.ERROR_MESSAGE );\n\t}", "title": "" }, { "docid": "5d90238fa1e954eadde2cbe471c33ff1", "score": "0.53047985", "text": "public static void showError(String message) {\r\n\t\tmessage = addNewLines(message);\r\n\t\tJOptionPane.showMessageDialog(null, message, \"Error Display\", JOptionPane.ERROR_MESSAGE);\r\n\t}", "title": "" }, { "docid": "23fc2c70a8c816f7d75dc64fd9ecb130", "score": "0.5303092", "text": "public static void errorEx ( final String logger, final Throwable msg )\r\n {\r\n LoggerFactory.getLogger ( logger ).error ( getMessage ( msg, true ) );\r\n }", "title": "" }, { "docid": "b0573debb300b10010dee53608eb1ac0", "score": "0.5300021", "text": "protected void error(String message)\n {\n System.err.println(\"-->Error: \" + message);\n basicDiagnostic.add(new BasicDiagnostic(Diagnostic.ERROR, JavaImporterPlugin.getPlugin().getBundle().getSymbolicName(), 0, message, null));\n }", "title": "" }, { "docid": "d4cc035301336af40b4e9e6c44f5cfdf", "score": "0.529926", "text": "private void printError() {\n outputForUser.println(params.getError());\n }", "title": "" }, { "docid": "30ad0e350293101872e1cdf2e9659807", "score": "0.52976596", "text": "public void errlog(String msg) {\n if (logger != null) logger.errlog(\"[\" + identifier + \"] \" + msg);\n }", "title": "" }, { "docid": "579941c2de63b957c86dd92d250ec383", "score": "0.5281295", "text": "public static void error(String message) {\n LOG.error(String.format(\"[%s] %s\", DateProvider.getLocalDateTime().format(DateProvider.DASH_MMddyyyy_HHmmss), message));\n }", "title": "" }, { "docid": "cad296ec5c161edc703734b3f5d73d69", "score": "0.52796835", "text": "public void logError(@NotNull String message) {\n\t\tplugin.getLogger().error(message);\n\t\t\n\t\tif (saveToFile) {\n\t\t\tsaveLogToFile(message);\n\t\t}\n\t}", "title": "" }, { "docid": "7cc58b888cdcb8a1c2e667b1d22ca81f", "score": "0.52785635", "text": "public static void showError(Throwable caught) {\n\t\tif (caught.getCause() != null) {\n\t\t\tshowAlert(caught.getCause().getMessage());\n\t\t} else {\n\t\t\tshowAlert(caught.getMessage());\n\t\t}\n\t\tcaught.printStackTrace();\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": "bb695718efc879b667c07a763b5615b5", "score": "0.0", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n g1p5 = new javax.swing.ButtonGroup();\n jLabel6 = new javax.swing.JLabel();\n p5rb1 = new javax.swing.JRadioButton();\n p5rb2 = new javax.swing.JRadioButton();\n p5rb3 = new javax.swing.JRadioButton();\n p5rb4 = new javax.swing.JRadioButton();\n jLabel7 = new javax.swing.JLabel();\n\n setBackground(new java.awt.Color(102, 0, 0));\n\n jLabel6.setFont(new java.awt.Font(\"Trebuchet MS\", 0, 24)); // NOI18N\n jLabel6.setForeground(new java.awt.Color(255, 255, 255));\n jLabel6.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel6.setText(\"5.¿Existen casos de ictus (derrame cerebral)\");\n\n g1p5.add(p5rb1);\n p5rb1.setFont(new java.awt.Font(\"Trebuchet MS\", 0, 18)); // NOI18N\n p5rb1.setForeground(new java.awt.Color(255, 255, 255));\n p5rb1.setText(\"No\");\n p5rb1.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n p5rb1.setOpaque(false);\n p5rb1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n p5rb1ActionPerformed(evt);\n }\n });\n\n g1p5.add(p5rb2);\n p5rb2.setFont(new java.awt.Font(\"Trebuchet MS\", 0, 18)); // NOI18N\n p5rb2.setForeground(new java.awt.Color(255, 255, 255));\n p5rb2.setText(\"Si, cuando tenía entre 56 y 70 años\");\n p5rb2.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n p5rb2.setOpaque(false);\n\n g1p5.add(p5rb3);\n p5rb3.setFont(new java.awt.Font(\"Trebuchet MS\", 0, 18)); // NOI18N\n p5rb3.setForeground(new java.awt.Color(255, 255, 255));\n p5rb3.setText(\"Si, cuando tenía entre 41 y 55 años\");\n p5rb3.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n p5rb3.setOpaque(false);\n\n g1p5.add(p5rb4);\n p5rb4.setFont(new java.awt.Font(\"Trebuchet MS\", 0, 18)); // NOI18N\n p5rb4.setForeground(new java.awt.Color(255, 255, 255));\n p5rb4.setText(\"Si, antes de los 41 años\");\n p5rb4.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n p5rb4.setOpaque(false);\n p5rb4.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n p5rb4ActionPerformed(evt);\n }\n });\n\n jLabel7.setFont(new java.awt.Font(\"Trebuchet MS\", 0, 24)); // NOI18N\n jLabel7.setForeground(new java.awt.Color(255, 255, 255));\n jLabel7.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel7.setText(\" en algún familiar cercano?\");\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(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 548, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGap(21, 21, 21)\n .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 548, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGap(68, 68, 68)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(p5rb1)\n .addComponent(p5rb2)\n .addComponent(p5rb3)\n .addComponent(p5rb4, javax.swing.GroupLayout.PREFERRED_SIZE, 215, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addContainerGap(61, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap(12, Short.MAX_VALUE)\n .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(p5rb1, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(10, 10, 10)\n .addComponent(p5rb2)\n .addGap(5, 5, 5)\n .addComponent(p5rb3)\n .addGap(5, 5, 5)\n .addComponent(p5rb4)\n .addGap(18, 18, 18))\n );\n }", "title": "" } ]
[ { "docid": "cd0b28bea46d143fe752578508c201dc", "score": "0.77281517", "text": "private void initComponents() {//GEN-BEGIN:initComponents\n }", "title": "" }, { "docid": "e8b4768b3e3c4c6ca716dae9d0c39df9", "score": "0.7493432", "text": "public RealEstatesForm() {\n initComponents();\n }", "title": "" }, { "docid": "4bbfe05cc175e36d651bc35bf0039652", "score": "0.7436121", "text": "public Mainform() {\n initComponents();\n \n }", "title": "" }, { "docid": "17113ab7a06544a62482637e283ac13d", "score": "0.7393751", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n }", "title": "" }, { "docid": "17113ab7a06544a62482637e283ac13d", "score": "0.7393751", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n }", "title": "" }, { "docid": "b431c293f27700e21b92be92177c04a2", "score": "0.73469025", "text": "public UIForm() {\n initComponents();\n }", "title": "" }, { "docid": "37a5472d5b0f35cf64a077bc1dd978c4", "score": "0.73185146", "text": "public Form() {\n initComponents();\n }", "title": "" }, { "docid": "2901c5027f800c57f8efe188557aec1f", "score": "0.7290127", "text": "public MainForm() {\n initComponents();\n }", "title": "" }, { "docid": "2901c5027f800c57f8efe188557aec1f", "score": "0.7290127", "text": "public MainForm() {\n initComponents();\n }", "title": "" }, { "docid": "2901c5027f800c57f8efe188557aec1f", "score": "0.7290127", "text": "public MainForm() {\n initComponents();\n }", "title": "" }, { "docid": "d3a53f58370a794f26006a784930f8b8", "score": "0.72627413", "text": "public PatDetails_GUI() {\n initComponents();\n }", "title": "" }, { "docid": "5db94d450d3a61db9bf0919e0a4c9e47", "score": "0.72585744", "text": "public Settings_Form() {\n\t\tinitComponents();\n\t\tthis.setLocationRelativeTo(null);\n\t\tsetTextFields();\n\t}", "title": "" }, { "docid": "a2932c04e2171d72b51775e937c4c541", "score": "0.7211923", "text": "public Form1() {\n initComponents();\n }", "title": "" }, { "docid": "81d45a20ed732bcd6dedf7f2b0b279c4", "score": "0.7182768", "text": "public BookingFinalForm() {\n\n //setting bounds of frame\n this.setBounds(100,100,600,500);\n \n }", "title": "" }, { "docid": "28425600ef9ec80e82f03c8c1fc97f1d", "score": "0.71193546", "text": "public STD_VERWALTUNG_GUI() {\n initComponents();\n }", "title": "" }, { "docid": "6772005bb57f5d51b0486dfb4df53996", "score": "0.7071571", "text": "public Editorial() {\n initComponents();\n }", "title": "" }, { "docid": "8e6426acec09bd7d8941839da3b4ae8f", "score": "0.70703226", "text": "public AlapForm() {\n initComponents();\n }", "title": "" }, { "docid": "5404bd5b48c01940ff09ecf78aff0f75", "score": "0.70681834", "text": "public form() {\r\n\t\t// TODO Auto-generated constructor stub\r\n\t}", "title": "" }, { "docid": "c58a3c50604b103bf527bda149ca82f1", "score": "0.70492244", "text": "public CambiarContra_Form() {\n initComponents();\n }", "title": "" }, { "docid": "3a50f1029d74ca3be461298e0a51ec1e", "score": "0.7020694", "text": "public frmDoktorTanimlari() {\n initComponents();\n }", "title": "" }, { "docid": "f4b759b0eabda5922df2c2fb08ab2d21", "score": "0.6996581", "text": "public Newpatientform() {\n initComponents();\n }", "title": "" }, { "docid": "c847654ce9a8d1508110ef4143b7f57b", "score": "0.6988327", "text": "public SiParkirUI() {\n initComponents();\n }", "title": "" }, { "docid": "9b0cb168fcd80af9f1fa25903df601f1", "score": "0.69541305", "text": "public ItemForm() {\n initComponents();\n }", "title": "" }, { "docid": "485a92304965cba5e32a2a56fc95993c", "score": "0.69470227", "text": "public MainForm() {\r\n super(\"Main Form\");\r\n setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);\r\n initComponents();\r\n }", "title": "" }, { "docid": "5f10421a33305da5756d42032ef779d1", "score": "0.69467294", "text": "public FrmBarang() {\n initComponents();\n }", "title": "" }, { "docid": "abca895b2170b8f8186464c00859db0a", "score": "0.69377667", "text": "public Kuis1() {\n initComponents();\n }", "title": "" }, { "docid": "f7498ded95c7459dad1aa1125436d930", "score": "0.69262046", "text": "public GUI_ThemSuaQuanAo() {\n initComponents();\n }", "title": "" }, { "docid": "f9a87b0b8df9ff1f04c283119bcf5f01", "score": "0.69260377", "text": "public displayform() {\n initComponents();\n }", "title": "" }, { "docid": "5cdd76d5cc764a2b816720f953a7027a", "score": "0.69254905", "text": "public PetunjukPenggunaan() {\n initComponents();\n }", "title": "" }, { "docid": "37b6840ba0594794d42cdb8f710d4395", "score": "0.69201297", "text": "public ur06b1() {\n initComponents();\n }", "title": "" }, { "docid": "50b81da83b435c4121d8d36034eabcb0", "score": "0.6913068", "text": "public pizzaordergui() {\n initComponents();\n }", "title": "" }, { "docid": "3d68e2c2d1cb4e5a084cff9b2c57447f", "score": "0.6892153", "text": "public myForm() {\n\t\t\tinitComponents();\n\t\t}", "title": "" }, { "docid": "a5e2982f7d19fbd7905607eb8b5483fa", "score": "0.68690145", "text": "public frmMenu() {\n initComponents();\n }", "title": "" }, { "docid": "a5e2982f7d19fbd7905607eb8b5483fa", "score": "0.68690145", "text": "public frmMenu() {\n initComponents();\n }", "title": "" }, { "docid": "a5e2982f7d19fbd7905607eb8b5483fa", "score": "0.68690145", "text": "public frmMenu() {\n initComponents();\n }", "title": "" }, { "docid": "10137775cb07cc0e8d53a42ec1680054", "score": "0.6864587", "text": "public FormPerson() {\n initComponents();\n prepareForm();\n setLocationRelativeTo(null);\n setVisible(true);\n }", "title": "" }, { "docid": "13eb432242a170ba8bb6ab65a6067512", "score": "0.6851622", "text": "public frmMain() {\n initComponents();\n }", "title": "" }, { "docid": "13eb432242a170ba8bb6ab65a6067512", "score": "0.6851622", "text": "public frmMain() {\n initComponents();\n }", "title": "" }, { "docid": "13eb432242a170ba8bb6ab65a6067512", "score": "0.6851622", "text": "public frmMain() {\n initComponents();\n }", "title": "" }, { "docid": "e3dfb0c2f82437c8d72117b1150c77e6", "score": "0.68448234", "text": "public formSoma() {\n initComponents();\n }", "title": "" }, { "docid": "152f657dec90d8015f1e16ee7ea6854b", "score": "0.6838376", "text": "public chiefp21() {\n initComponents();\n }", "title": "" }, { "docid": "7233c2c898544f3f6abd4cb82768ee82", "score": "0.683776", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 496, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 496, Short.MAX_VALUE)\n );\n }", "title": "" }, { "docid": "f9a62b34de062f3fdfe71ded48f6aa83", "score": "0.68273747", "text": "public FrmMenu() {\n initComponents();\n }", "title": "" }, { "docid": "426c4c46dea4d1dcaa78976eaa6a16ce", "score": "0.68266326", "text": "public formGoiMon() {\n initComponents();\n }", "title": "" }, { "docid": "f00f3f9815468f9c3ded201ed26737a4", "score": "0.6819222", "text": "public ResultsForm() {\n initComponents();\n }", "title": "" }, { "docid": "894693ac5a5e798f40dc439e479f7e5e", "score": "0.68135965", "text": "public HangmanUI()\n {\n initComponents();\n }", "title": "" }, { "docid": "051a55aa53cf1aaaeb6dc20c1a7b737b", "score": "0.68085474", "text": "public lcChemMD() {\n initComponents();\n }", "title": "" }, { "docid": "7a4a0fb3bd294fd5796bb13ba405fd3d", "score": "0.6807266", "text": "public SHAS_GUI() {\n initComponents();\n }", "title": "" }, { "docid": "fad22554042e1b8a318b01286577b06a", "score": "0.6800044", "text": "public AddSongFrm() {\n initComponents();\n }", "title": "" }, { "docid": "ce231278c5415b58a1ca52dc82d54e4f", "score": "0.6792832", "text": "public DesignGUI() {\n initComponents();\n }", "title": "" }, { "docid": "c824c290917e23b543552924ff5ca7ff", "score": "0.67894036", "text": "public Flight_Information() {\n initComponents();\n }", "title": "" }, { "docid": "122000e89363123e51e320eec8a37f1c", "score": "0.678441", "text": "public PatientForm() {\n initComponents();\n }", "title": "" }, { "docid": "9c130aefb85466c73aded825b084df44", "score": "0.67833006", "text": "public MoviesForm() {\n initComponents();\n }", "title": "" }, { "docid": "9dd96efaf9432449e9a8e04f5a1c9e4d", "score": "0.67568547", "text": "public Old_FrameCadastroAvl() {\n initComponents();\n }", "title": "" }, { "docid": "41af56a3df9a40a1a17cc3881f2fa044", "score": "0.6753386", "text": "public ProductsForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "title": "" }, { "docid": "2a7abfdc3eb3de312f8992e65907394e", "score": "0.6749901", "text": "public Cwk() {\n initComponents();\n }", "title": "" }, { "docid": "4b7e1ef9075f78ad5a3b1752a9d9d22b", "score": "0.67476207", "text": "public d_Main() {\n initComponents();\n \n }", "title": "" }, { "docid": "15ce48f40675d6343e5b61362bb9f832", "score": "0.6747599", "text": "public StudentUI() {\n initComponents();\n }", "title": "" }, { "docid": "8d6cfb05c40166aad916761121d49b51", "score": "0.67445827", "text": "public ServiceDetailsGUI() {\n initComponents();\n }", "title": "" }, { "docid": "4e106ae7a7b0c0cfe394c917a9b32bdf", "score": "0.6741037", "text": "public NewCarForm() {\n super(\"Add New Car\");\n initComponents();\n setLocationRelativeTo(null);\n conn = JavaConnect.connectDb();\n }", "title": "" }, { "docid": "1b3dee170a39d75443ee085bc72d6c94", "score": "0.6739417", "text": "@SuppressWarnings(\"unchecked\")\r\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\r\n private void initComponents()\r\n {\r\n\r\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\r\n this.setLayout(layout);\r\n layout.setHorizontalGroup(\r\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGap(0, 684, Short.MAX_VALUE)\r\n );\r\n layout.setVerticalGroup(\r\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGap(0, 483, Short.MAX_VALUE)\r\n );\r\n }", "title": "" }, { "docid": "fd485bdfb087f52829ceea57b4655cbc", "score": "0.67370725", "text": "public UpdateForm() {\n initComponents();\n jLabel1.setVisible(false);\n jLabel2.setVisible(false);\n jLabel3.setVisible(false);\n txtName.setVisible(false);\n txtHomeTown.setVisible(false);\n txtPhone.setVisible(false);\n }", "title": "" }, { "docid": "130e2ee7095a33015a483b40d2c5f423", "score": "0.67323005", "text": "public AddFrame() {\n initComponents();\n\n jTextField1.setText(null);\n jTextField2.setText(null);\n jTextField4.setText(null);\n \n }", "title": "" }, { "docid": "f53b8cb13594faba8eea0453cb92ba36", "score": "0.6731177", "text": "public WhatWeOfferFrame() {\n initComponents();\n }", "title": "" }, { "docid": "cf6097dcf2ff572b1142ca9458aab7a3", "score": "0.67305374", "text": "public frmCustomer() {\n initComponents();\n }", "title": "" }, { "docid": "90a6f56ddaf85cb99025c57ed7a906c4", "score": "0.6728816", "text": "public FormUser() {\n initComponents();\n this.setLocation(0, 150);\n }", "title": "" }, { "docid": "b1dc49e68642392f5a24c1f8b56230f6", "score": "0.6728709", "text": "public Racun() {\n initComponents();\n }", "title": "" }, { "docid": "f34b058ac0206ba07aac79347505d8a6", "score": "0.6727801", "text": "public EhhsistantGUI() {\n initComponents();\n }", "title": "" }, { "docid": "4b1b16b647a7f02f62eb4b2d4d957647", "score": "0.67251515", "text": "public Pregunta5() {\n initComponents();\n }", "title": "" }, { "docid": "cf01e40ca73a7c25909e63f5afad0871", "score": "0.67196923", "text": "public Tugas1() {\n initComponents();\n }", "title": "" }, { "docid": "215de132ed2b69437c537e57e3358be9", "score": "0.67188334", "text": "public LaundryFrame() {\n initComponents();\n }", "title": "" }, { "docid": "cd28b35499f064da0634bd647583b159", "score": "0.6714423", "text": "public Studentframe() {\n initComponents();\n }", "title": "" }, { "docid": "2326a6ff6073efbea2b151e3efc84e80", "score": "0.6712313", "text": "public GUIPagtos() {\n initComponents();\n }", "title": "" }, { "docid": "621411ac09401e2363ffb7152b508b83", "score": "0.6707844", "text": "public UserListForm() {\n initComponents();\n }", "title": "" }, { "docid": "a747df9e716eccdf556b0df271bdb10f", "score": "0.6699657", "text": "public jpLecuyer() {\n initComponents();\n }", "title": "" }, { "docid": "f23a8913333f237ffbaf21d9c70deb48", "score": "0.6699403", "text": "public suhu() {\n initComponents();\n }", "title": "" }, { "docid": "f23a8913333f237ffbaf21d9c70deb48", "score": "0.6699403", "text": "public suhu() {\n initComponents();\n }", "title": "" }, { "docid": "45467e91bb851f8133584e37cba9866a", "score": "0.66933054", "text": "public MPframe() {\n initComponents();\n }", "title": "" }, { "docid": "8c540e4ea7d722be6f768d8b45ec8965", "score": "0.6687722", "text": "public FrmMain() {\n initComponents();\n }", "title": "" }, { "docid": "8c540e4ea7d722be6f768d8b45ec8965", "score": "0.6687722", "text": "public FrmMain() {\n initComponents();\n }", "title": "" }, { "docid": "2fc720f850f9d115252430cc8455c87e", "score": "0.668746", "text": "public BasePanelForm() {\n initComponents();\n }", "title": "" }, { "docid": "e9c667e330af9f292639de982df07f01", "score": "0.668737", "text": "public DreamGUI() {\n initComponents();\n }", "title": "" }, { "docid": "068aaa41811215ad82f63ce6d6db0e90", "score": "0.66843367", "text": "public frmPrincipall() {\n initComponents();\n }", "title": "" }, { "docid": "320512266a4f36eff0842389b089768f", "score": "0.668367", "text": "public nhanVienForm() {\n initComponents();\n init();\n\n }", "title": "" }, { "docid": "82b91be09cfa9974003384049dcd30a6", "score": "0.6682636", "text": "public Frhosobenhan() {\n initComponents();\n }", "title": "" }, { "docid": "15428cb69f877c12dec0a8afa57c4999", "score": "0.6681617", "text": "public frmDescricaoAtendimento() {\n initComponents();\n }", "title": "" }, { "docid": "676139c62ce639e43ccb839239e111d7", "score": "0.6681541", "text": "public New_Librarian() {\n initComponents();\n }", "title": "" }, { "docid": "9c710eea7ae348d99ee55ec7265da139", "score": "0.66809595", "text": "public UI() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "title": "" }, { "docid": "5b5a055f2223a1ffd95c2733e2d69a0e", "score": "0.66786635", "text": "public JFormPassageiro() {\n initComponents();\n }", "title": "" }, { "docid": "083b4b6b69b02db07fa2d867b9b7decf", "score": "0.66772693", "text": "public FormPetugas() {\n initComponents();\n }", "title": "" }, { "docid": "904042565319552d05b540cc4c71b6d1", "score": "0.6674997", "text": "public MainJFormGUI() {\r\n initComponents();\r\n setEvent();\r\n setTitle(\"QUẢN LÝ QUÁN ĂN\");\r\n jlbTenNhanVien.setText(NhanVienBus.nhanVienDangNhap.getTenNV());\r\n ChucVuBUS chucVuBUS = new ChucVuBUS();\r\n jlbChucVu.setText(chucVuBUS.getChucVuByMaChucVu(NhanVienBus.nhanVienDangNhap.getMaCV()).getTenChucVu());\r\n }", "title": "" }, { "docid": "d56b2a2923a71ba164e1dbe6774308ed", "score": "0.6673788", "text": "public Ques12() {\n initComponents();\n }", "title": "" }, { "docid": "52d9b3cc58c6fc26455839a43ecaddcf", "score": "0.6673425", "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\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, 703, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 535, Short.MAX_VALUE)\n );\n\n pack();\n }", "title": "" }, { "docid": "40f19e8a2ec781de929c8389a58c7116", "score": "0.6672896", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setLayout(new java.awt.BorderLayout());\n }", "title": "" }, { "docid": "bf6fe12ebdf7306560f672e4f7c09871", "score": "0.66697", "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\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, 224, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 266, Short.MAX_VALUE)\n );\n\n pack();\n }", "title": "" }, { "docid": "0c5905ced98324f5893dec823438988c", "score": "0.6667649", "text": "public PhoneNumberGUI() {\n initComponents();\n this.setSize(400,300);\n this.setLocationRelativeTo(null);\n }", "title": "" }, { "docid": "0ad1ce74acfc509e1a85d3aa588a495d", "score": "0.6663462", "text": "public frmCalculadora() {\n initComponents();\n }", "title": "" }, { "docid": "0ad1ce74acfc509e1a85d3aa588a495d", "score": "0.6663462", "text": "public frmCalculadora() {\n initComponents();\n }", "title": "" }, { "docid": "f062d655931b31f9b0b47b4bb36beb49", "score": "0.66631913", "text": "public StoreHouseFrame() {\n initComponents();\n }", "title": "" }, { "docid": "72e9407f2a8c77e1ec604d30d1cc45db", "score": "0.66631687", "text": "public UI() {\n initComponents();\n }", "title": "" }, { "docid": "d1246ccaf67de5ba4c5db7d584ae3006", "score": "0.66624427", "text": "public frmBackup() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "title": "" } ]
25553fd49e5cee7c4b8d7c94169b59d6
method used for explicit testsuite definition
[ { "docid": "89f4df9d9a2c3e67ea24bfea9ead1754", "score": "0.61319864", "text": "public static Test suite() {\n return createModuleTest(HelpOperatorTest.class, tests);\n }", "title": "" } ]
[ { "docid": "0251ffbc2e6fdd2f664133343e1c3d74", "score": "0.69100463", "text": "TestSuite createTestSuite();", "title": "" }, { "docid": "793eb586ca8a714aed78600ebf10aab0", "score": "0.66541284", "text": "public static Test suite() {\r\n\t\treturn new IOMdlGlobalsTestSuiteGenerics();\r\n\t}", "title": "" }, { "docid": "2cc44717b7e6b24109475db1ed87475e", "score": "0.6630538", "text": "@Test\n public void bstAddVisualization(){\n }", "title": "" }, { "docid": "88f898d2d9ac3a5054151531319f5ef5", "score": "0.65110874", "text": "public void testSuite()\n {\n System.out.println(\"suite\");\n \n Test expResult = null;\n Test result = Builder.suite();\n assertEquals(expResult, result);\n \n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "title": "" }, { "docid": "27606a37aaf96a83947b208df06849c9", "score": "0.6509236", "text": "@Parameters({ \"suite-param\" })\n @Test\n public void prameterTestOne(String param) {\n\t System.out.println(\"Test one suite parma is: \" + param);\n }", "title": "" }, { "docid": "0013be44acfa6ba7af3371d2656e9515", "score": "0.648431", "text": "@Test\n\tpublic void mainTest() {\n\t\t\n\t}", "title": "" }, { "docid": "101405c5834eddb64cf6ebd52e96df1f", "score": "0.6478563", "text": "public void writeTestSuite(ValidationSuite vs);", "title": "" }, { "docid": "3b846cb3d5fdd89c2afbf8190e9d2db5", "score": "0.64736843", "text": "@Override\n\t\t\tpublic void test() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "61f1bccaad9e539e3dafb7e80be81ad7", "score": "0.6472393", "text": "@BeforeSuite(alwaysRun = true)\n\t\tpublic void suiteSetup() {\n\t\t\n\t\t\tlogger.info(\"Test Framework for Mosip api Initialized\");\n\t\t\tlogger.info(\"Logging initialized: All logs are located at \" + \"src/logs/mosip-api-test.log\");\n\t\t\tinitialize();\n\t\t\tlogger.info(\"Done with BeforeSuite and test case setup! BEGINNING TEST EXECUTION!\\n\\n\");\n\n\t\t\tPreRegistrationLibrary pil=new PreRegistrationLibrary();\n\t\t\tpil.PreRegistrationResourceIntialize();\n\t\t\tAuthTestsUtil.initiateAuthTest();\n\t\t\t//new PreregistrationDAO().makeAllRegistartionCenterActive();\n\t\t\t//authToken=pil.getToken();\n\t\t\t/*htmlReporter=new ExtentHtmlReporter(System.getProperty(\"user.dir\")+\"/test-output/MyOwnReport.html\");\n\t\t\textent=new ExtentReports();\n\t\t\textent.setSystemInfo(\"Build Number\", buildNumber);\n\t\t\textent.attachReporter(htmlReporter);*/\n\n\t\t\t\n\t\t\t/*htmlReporter.config().setDocumentTitle(\"MosipAutomationTesting Report\");\n\t\t\thtmlReporter.config().setReportName(\"Mosip Automation Report\");\n\t\t\thtmlReporter.config().setTheme(Theme.STANDARD);*/\n\t\t\t/*TokenGeneration generateToken = new TokenGeneration();\n\t\t\tTokenGenerationEntity tokenEntity = new TokenGenerationEntity();\n\t\t\tString tokenGenerationProperties = generateToken.readPropertyFile(\"syncTokenGenerationFilePath\");\n\t\t\ttokenEntity = generateToken.createTokenGeneratorDto(tokenGenerationProperties);\n\t\t\tregProcAuthToken = generateToken.getToken(tokenEntity);\n\t\t\tTokenGenerationEntity adminTokenEntity = new TokenGenerationEntity();\n\t\t\tString adminTokenGenerationProperties = generateToken.readPropertyFile(\"getStatusTokenGenerationFilePath\");\n\t\t\tadminTokenEntity = generateToken.createTokenGeneratorDto(adminTokenGenerationProperties);\n\t\t\tadminRegProcAuthToken = generateToken.getToken(adminTokenEntity);*/\n\t\t\t\n\n\n\t\t}", "title": "" }, { "docid": "be66782988ca05355015d23d097e1cd0", "score": "0.6469445", "text": "public static Test suite() {\n\t\tTestSuite suite = new TestSuite(\"TestAnatomyFind\");\n\t\t\n\t\tsuite.addTest(new TestAnatomyFind(\"TestAnatomyFind_SeriesDescription\"));\n\t\tsuite.addTest(new TestAnatomyFind(\"TestAnatomyFind_BodyPartExaminedOverridesSeriesDescription\"));\n\t\tsuite.addTest(new TestAnatomyFind(\"TestAnatomyFind_SeriesDescriptionOverridesStudyDescription\"));\n\t\t\n\t\treturn suite;\n\t}", "title": "" }, { "docid": "4788f7ceaed8293708e2aeef727558fa", "score": "0.64408475", "text": "protected abstract void setUp();", "title": "" }, { "docid": "29bf8968b4970af9b8d778eafc1c5888", "score": "0.6437449", "text": "public static Test suite() {\n \r\n TestSuite suite = new TestSuite( \"JSR 94 Test Compatability Kit\" );\r\n suite.addTestSuite( ApiSignatureTest.class );\r\n //suite.addTestSuite( ClassLoaderTest.class );\r\n suite.addTestSuite( ConfigurationExceptionTest.class );\r\n suite.addTestSuite( HandleTest.class );\r\n suite.addTestSuite( InvalidHandleExceptionTest.class );\r\n suite.addTestSuite( InvalidRuleSessionExceptionTest.class );\r\n suite.addTestSuite( ObjectFilterTest.class );\r\n suite.addTestSuite( RuleExceptionTest.class );\r\n suite.addTestSuite( RuleExecutionExceptionTest.class );\r\n suite.addTestSuite( RuleExecutionSetMetadataTest.class );\r\n suite.addTestSuite( RuleExecutionSetNotFoundExceptionTest.class );\r\n suite.addTestSuite( RuleRuntimeTest.class );\r\n suite.addTestSuite( RuleServiceProviderManagerTest.class );\r\n suite.addTestSuite( RuleServiceProviderTest.class );\r\n suite.addTestSuite( RuleSessionCreateExceptionTest.class );\r\n suite.addTestSuite( RuleSessionTest.class );\r\n suite.addTestSuite( RuleSessionTypeUnsupportedExceptionTest.class );\r\n suite.addTestSuite( StatefulRuleSessionTest.class );\r\n suite.addTestSuite( StatelessRuleSessionTest.class );\r\n suite.addTestSuite( LocalRuleExecutionSetProviderTest.class );\r\n suite.addTestSuite( RuleAdministrationExceptionTest.class );\r\n suite.addTestSuite( RuleAdministratorTest.class );\r\n suite.addTestSuite( RuleExecutionSetCreateExceptionTest.class );\r\n // suite.addTestSuite(RuleExecutionSetProviderTest.class);\r\n suite.addTestSuite( RuleExecutionSetRegisterExceptionTest.class );\r\n suite.addTestSuite( RuleExecutionSetTest.class );\r\n suite.addTestSuite( RuleExecutionSetDeregistrationExceptionTest.class );\r\n suite.addTestSuite( RuleTest.class );\r\n return suite;\r\n }", "title": "" }, { "docid": "d48b6e87e58607c327509f793377521a", "score": "0.6416497", "text": "public interface ISuite extends IAttributes {\n\n /**\n * @return the name of this suite.\n */\n public String getName();\n\n /**\n * @return The results for this suite.\n */\n public Map<String, ISuiteResult> getResults();\n\n /**\n * @return The object factory used to create all test instances.\n */\n public IObjectFactory getObjectFactory();\n public IObjectFactory2 getObjectFactory2();\n\n /**\n * @return The output directory used for the reports.\n */\n public String getOutputDirectory();\n\n /**\n * @return true if the tests must be run in parallel.\n */\n public String getParallel();\n\n public String getParentModule();\n\n public String getGuiceStage();\n\n /**\n * @return The value of this parameter, or null if none was specified.\n */\n public String getParameter(String parameterName);\n\n /**\n * Retrieves the map of groups and their associated test methods.\n *\n * @return A map where the key is the group and the value is a list\n * of methods used by this group.\n */\n public Map<String, Collection<ITestNGMethod>> getMethodsByGroups();\n\n /**\n * Retrieves the list of all the methods that were invoked during this run.\n * @return a collection of ITestNGMethods belonging to all tests included in the suite.\n * @deprecated Use getAllInvokedMethods().\n */\n @Deprecated\n public Collection<ITestNGMethod> getInvokedMethods();\n\n /**\n * @return a list of all the methods that were invoked in this suite.\n */\n public List<IInvokedMethod> getAllInvokedMethods();\n\n /**\n * @return All the methods that were not included in this test run.\n */\n public Collection<ITestNGMethod> getExcludedMethods();\n\n /**\n * Triggers the start of running tests included in the suite.\n */\n public void run();\n\n /**\n * @return The host where this suite was run, or null if it was run locally. The\n * returned string has the form: host:port\n */\n public String getHost();\n\n /**\n * Retrieves the shared state for a suite.\n *\n * @return the share state of the current suite.\n */\n public SuiteRunState getSuiteState();\n\n /**\n * @return the annotation finder used for the specified type (JDK5 or javadoc)\n */\n public IAnnotationFinder getAnnotationFinder();\n\n /**\n * @return The representation of the current XML suite file.\n */\n public XmlSuite getXmlSuite();\n\n public void addListener(ITestNGListener listener);\n\n public Injector getParentInjector();\n\n public void setParentInjector(Injector injector);\n\n /**\n * @return the total number of methods found in this suite. The presence of\n * factories or data providers might cause the actual number of test methods\n * run be bigger than this list.\n */\n List<ITestNGMethod> getAllMethods();\n}", "title": "" }, { "docid": "031df9d570a7259e81d21da01f1fe1ad", "score": "0.6411365", "text": "public abstract void setUp();", "title": "" }, { "docid": "4974bf46e630ada507acb34161a822b3", "score": "0.6378026", "text": "protected void doStartSuite(File suite) {\n }", "title": "" }, { "docid": "eafa2e2b568b23587827c7cef9432ba7", "score": "0.6362886", "text": "public TestSuiteImpl(TestSuiteElement ts) {\n _testSuiteElement = ts;\n \n _name = ts.getName();\n\n // Serialize description and store in variable\n _description = marshalDescription(_testSuiteElement.getDescription());\n \n // Set global properties by traversing JAXB's model\n List<ParamElement> params = createParamList(ts.getParamOrParamGroup());\n\n if (params != null) {\n for (ParamElement pt : params) {\n String name = pt.getName();\n String value = pt.getValue();\n String oldValue = getParam(name);\n\n // If japex.classPath, append to existing value\n setParam(name,\n name.equals(Constants.CLASS_PATH) && oldValue != null ?\n (oldValue + PATH_SEPARATOR + value) : value);\n }\n }\n\n // Override config props using system properties\n readAndSetSystemProperties();\n\n // Set default global params if necessary\n if (!hasParam(Constants.WARMUP_TIME) &&\n !hasParam(Constants.WARMUP_ITERATIONS))\n {\n setParam(Constants.WARMUP_ITERATIONS,\n Constants.DEFAULT_WARMUP_ITERATIONS);\n }\n if (!hasParam(Constants.RUN_TIME) &&\n !hasParam(Constants.RUN_ITERATIONS))\n {\n setParam(Constants.RUN_ITERATIONS,\n Constants.DEFAULT_RUN_ITERATIONS);\n }\n\n // Check output directory\n if (!hasParam(Constants.REPORTS_DIRECTORY)) {\n setParam(Constants.REPORTS_DIRECTORY,\n Constants.DEFAULT_REPORTS_DIRECTORY);\n }\n\n // Check chart type\n if (!hasParam(Constants.CHART_TYPE)) {\n setParam(Constants.CHART_TYPE,\n Constants.DEFAULT_CHART_TYPE);\n }\n else {\n String chartType = getParam(Constants.CHART_TYPE);\n if (!chartType.equalsIgnoreCase(\"barchart\") &&\n !chartType.equalsIgnoreCase(\"scatterchart\") &&\n !chartType.equalsIgnoreCase(\"linechart\"))\n {\n throw new RuntimeException(\n \"Parameter 'japex.chartType' must be set to \" +\n \"'barchart', 'scatterchart' or 'linechart'\");\n }\n }\n\n // Check result axis\n if (!checkResultAxis(Constants.RESULT_AXIS) ||\n !checkResultAxis(Constants.RESULT_AXIS_X))\n {\n throw new RuntimeException(\n \"Parameter 'japex.resultAxis' and 'japex.resultAxisX' \" +\n \"must be set to either 'normal' or 'logarithmic'\");\n }\n\n // Check result unit and set default if necessary \n if (!hasParam(Constants.RESULT_UNIT)) {\n setParam(Constants.RESULT_UNIT, \"TPS\");\n }\n\n // Check plot drivers flag and set default if necessary\n if (!hasParam(Constants.PLOT_DRIVERS)) {\n setParam(Constants.PLOT_DRIVERS, Constants.DEFAULT_PLOT_DRIVERS);\n }\n\n // Check plot drivers flag and set default if necessary\n if (!hasParam(Constants.PLOT_GROUP_SIZE)) {\n setParam(Constants.PLOT_GROUP_SIZE, Constants.DEFAULT_PLOT_GROUP_SIZE);\n }\n\n // Check single class loader flag and set default if necessary\n if (!hasParam(Constants.SINGLE_CLASS_LOADER)) {\n setParam(Constants.SINGLE_CLASS_LOADER, \n Constants.DEFAULT_SINGLE_CLASS_LOADER);\n }\n \n // Check number of threads \n if (!hasParam(Constants.NUMBER_OF_THREADS)) {\n setParam(Constants.NUMBER_OF_THREADS,\n Constants.DEFAULT_NUMBER_OF_THREADS);\n }\n else {\n int nOfThreads = getIntParam(Constants.NUMBER_OF_THREADS);\n if (nOfThreads < 1) {\n throw new RuntimeException(\n \"Parameter 'japex.numberOfThreads' must be at least 1\");\n }\n }\n\n // Check runs per driver\n if (!hasParam(Constants.RUNS_PER_DRIVER)) {\n setParam(Constants.RUNS_PER_DRIVER,\n Constants.DEFAULT_RUNS_PER_DRIVER);\n }\n int runsPerDriver = getIntParam(Constants.RUNS_PER_DRIVER);\n if (runsPerDriver < 1) {\n throw new RuntimeException(\n \"Parameter 'japex.runsPerDriver' must be at least 1\");\n }\n\n // Report error for deprecated parameter but continue\n if (hasParam(\"japex.includeWarmupRun\")) {\n System.err.print(\"Warning: Parameter 'japex.includeWarmupRun' is deprecated, \" +\n \"use 'japex.warmupsPerDriver' instead.\");\n }\n\n // Set default japex.warmupsPerDriver based on japex.runsPerDriver\n if (!hasParam(Constants.WARMUPS_PER_DRIVER)) {\n setIntParam(Constants.WARMUPS_PER_DRIVER, (runsPerDriver > 1) ? 1 : 0);\n }\n\n // Set other global params\n setParam(Constants.VERSION, Constants.VERSION_VALUE);\n setParam(Constants.OS_NAME, System.getProperty(\"os.name\"));\n setParam(Constants.OS_ARCHITECTURE, System.getProperty(\"os.arch\"));\n DateFormat df = new SimpleDateFormat(Constants.DEFAULT_DATE_TIME_FORMAT,Locale.ENGLISH);\n setParam(Constants.DATE_TIME, df.format(Japex.TODAY));\n setParam(Constants.VM_INFO,\n System.getProperty(\"java.vendor\") + \" \" +\n System.getProperty(\"java.vm.version\"));\n setIntParam(Constants.NUMBER_OF_CPUS,\n Runtime.getRuntime().availableProcessors());\n String hostName = \"localhost\";\n try {\n hostName = java.net.InetAddress.getLocalHost().getHostName();\n }\n catch (java.net.UnknownHostException e) {\n // falls through\n }\n setParam(Constants.HOST_NAME, hostName);\n\n // Create and populate list of drivers and base drivers used\n _driverList = createDriverList(ts.getDriverOrDriverGroup(), this);\n\n // Remove base drivers in use so that they are ignored\n for (DriverImpl driverInfo : _baseDriversUsed) {\n _driverList.remove(driverInfo);\n }\n\n // Create and populate list of test cases\n TestCaseArrayList testCases = createTestCaseList(\n ts.getTestCaseOrTestCaseGroup(), this);\n\n // If running in test mode just do one iteration\n if (Japex.test) {\n setIntParam(Constants.WARMUPS_PER_DRIVER, 0);\n setIntParam(Constants.RUNS_PER_DRIVER, 1);\n removeParam(Constants.WARMUP_TIME);\n removeParam(Constants.RUN_TIME);\n\n for (TestCaseImpl tc : testCases) {\n tc.removeParam(Constants.WARMUP_TIME);\n tc.removeParam(Constants.RUN_TIME);\n tc.setIntParam(Constants.WARMUP_ITERATIONS, 0);\n tc.setIntParam(Constants.RUN_ITERATIONS, 1);\n }\n }\n\n // Set list of test cases on each driver\n for (DriverImpl di: _driverList) {\n di.setTestCases(testCases);\n }\n }", "title": "" }, { "docid": "4897a4abd774f5f22d229c8bfd92ff52", "score": "0.6362774", "text": "@Override\n\t\tpublic void test() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "4897a4abd774f5f22d229c8bfd92ff52", "score": "0.6362774", "text": "@Override\n\t\tpublic void test() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "2e8ef6a861497db8ead6f3e99ef50a9f", "score": "0.63397706", "text": "public interface DemoSuite {\n\n /**\n * Run the demo suite.\n */\n void run();\n}", "title": "" }, { "docid": "39d0015a015c8636de0501d894fac09d", "score": "0.6309334", "text": "protected TestEnvironment createTestEnvironment(\n TestParameters Param, PrintWriter log) {\n\n // get a soffice factory object\n SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory) Param.getMSF());\n\n try {\n log.println(\"creating a spreadsheetdocument\");\n xSpreadsheetDoc = SOF.createCalcDoc(null);\n } catch (com.sun.star.uno.Exception e) {\n e.printStackTrace( log );\n throw new StatusException( \"Couldn't create document \", e );\n }\n\n XInterface oObj = null;\n\n XModel aModel = (XModel)\n UnoRuntime.queryInterface(XModel.class, xSpreadsheetDoc);\n\n XWindow xWindow = AccessibilityTools.getCurrentWindow( (XMultiServiceFactory) Param.getMSF(), aModel);\n XAccessible xRoot = AccessibilityTools.getAccessibleObject(xWindow);\n\n oObj = AccessibilityTools.getAccessibleObjectForRole\n (xRoot, AccessibleRole.TABLE_CELL, \"B1\");\n\n log.println(\"ImplementationName \" + utils.getImplName(oObj));\n\n TestEnvironment tEnv = new TestEnvironment(oObj); \n\n // relation for XAccessibleEventBroadcaster\n XCell xCell = null;\n final String text = \"XAccessibleText\";\n try {\n XSpreadsheets oSheets = xSpreadsheetDoc.getSheets() ;\n XIndexAccess oIndexSheets = (XIndexAccess)\n UnoRuntime.queryInterface(XIndexAccess.class, oSheets);\n XSpreadsheet oSheet = null;\n try {\n oSheet = (XSpreadsheet) AnyConverter.toObject(\n new Type(XSpreadsheet.class),oIndexSheets.getByIndex(0));\n } catch (com.sun.star.lang.IllegalArgumentException iae) {\n throw new StatusException(\"couldn't get sheet\",iae);\n }\n xCell = oSheet.getCellByPosition(1, 0) ;\n xCell.setFormula(text);\n XColumnRowRange oColumnRowRange = (XColumnRowRange)\n UnoRuntime.queryInterface(XColumnRowRange.class, oSheet);\n XTableColumns oColumns = (XTableColumns) oColumnRowRange.getColumns();\n XIndexAccess oIndexAccess = (XIndexAccess)\n UnoRuntime.queryInterface(XIndexAccess.class, oColumns);\n XPropertySet column = (XPropertySet) UnoRuntime.queryInterface(\n XPropertySet.class,oIndexAccess.getByIndex(1)); \n column.setPropertyValue(\"OptimalWidth\", new Boolean(true));\n } catch(com.sun.star.lang.WrappedTargetException e) {\n log.println(\"Exception ceating relation :\");\n e.printStackTrace(log);\n } catch(com.sun.star.lang.IndexOutOfBoundsException e) {\n log.println(\"Exception ceating relation :\");\n e.printStackTrace(log);\n } catch(com.sun.star.beans.UnknownPropertyException e) {\n log.println(\"Exception ceating relation :\");\n e.printStackTrace(log);\n } catch(com.sun.star.beans.PropertyVetoException e) {\n log.println(\"Exception ceating relation :\");\n e.printStackTrace(log);\n } catch(com.sun.star.lang.IllegalArgumentException e) {\n log.println(\"Exception ceating relation :\");\n e.printStackTrace(log);\n } \n \n tEnv.addObjRelation(\"EditOnly\", \n \"This method is only supported if the Cell is in edit mode\");\n\n final XCell fCell = xCell ;\n\n tEnv.addObjRelation(\"EventProducer\",\n new ifc.accessibility._XAccessibleEventBroadcaster.EventProducer(){\n public void fireEvent() {\n fCell.setFormula(\"firing event\");\n fCell.setFormula(text);\n }\n });\n\n tEnv.addObjRelation(\"XAccessibleText.Text\", text);\n\n return tEnv;\n\n }", "title": "" }, { "docid": "95a9de5026ac76a9fe4e7c910fdc57c0", "score": "0.628348", "text": "@Test\n\tpublic void TC001() {\n\t\t\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "cfa4bd7739ab01cde94703123f70a1aa", "score": "0.62743264", "text": "void setTestUnit();", "title": "" }, { "docid": "cfa4bd7739ab01cde94703123f70a1aa", "score": "0.62743264", "text": "void setTestUnit();", "title": "" }, { "docid": "b3f96e3e25703b681a1ed2f36c46423d", "score": "0.6260242", "text": "@BeforeClass\r\n\tpublic static void setupClass () throws UnsupportedEncodingException {\n\t\tdefinitions = BpmnTestHelper.getDefinitions();\t\t\r\n\t}", "title": "" }, { "docid": "1166112973e76d88b1d9874081c79d52", "score": "0.6253051", "text": "public void setUp() {}", "title": "" }, { "docid": "e9a5c5ef04c8aafbaa2995df0b6d533b", "score": "0.62485826", "text": "@BeforeClass // runs before all test cases; runs only once\n public static void setUpSuite() {\n\n }", "title": "" }, { "docid": "c9c9d2440b8db68326ff41b5c818eb77", "score": "0.6228108", "text": "RobotSuiteFile getSuiteFile();", "title": "" }, { "docid": "104924f1a80609b2cf37fa9111709c62", "score": "0.6227814", "text": "@BeforeClass()\n\t\tpublic void setData(){\n\t\t\tbrowserName = \"chrome\";\n\t\t\tUrl = \"urlName\" ;\n\t\t\ttestCaseName = \"Document Search Test\";\n\t\t\ttestDescription = \"Testing Document Search Functionality\";\n\t\t\tcategory = \"Regression\";\n\t\t\tauthors = \"Bharanidharan\";\n\t\t\tdataSheetName = \"TC001\";\n\t\t\t\n\t\t}", "title": "" }, { "docid": "a169d94fa835871fb9871e838db88584", "score": "0.6222783", "text": "@Override\n\n public void generateReport(List<XmlSuite> xmlSuites, List<ISuite> suites,String outputDirectory) {\n for (ISuite iSuite : suites) {\n \t//Following the code gets suite name\n \tString suiteName = iSuite.getName();\n //Get a map of result of a single suite at a time\n Map<String,ISuiteResult> results = iSuite.getResults();\n //Go to each map value one by one\n for (ISuiteResult sr : results.values()) {\n //The Context object of current result\n ITestContext tc = sr.getTestContext();\n System.out.println(\"Passed tests for suite '\"+ suiteName + \"' is:\" + tc.getPassedTests().getAllMethods().size());\n System.out.println(\"Failed tests for suite '\"+ suiteName + \"' is:\" + tc.getFailedTests().getAllMethods().size());\n System.out.println(\"Skipped tests for suite '\"+ suiteName + \"' is:\" + tc.getSkippedTests().getAllMethods().size());\n }\n}\n}", "title": "" }, { "docid": "fefbf649ae8f65a4625ed866c7181fd5", "score": "0.62085754", "text": "@Test\r\n public void testSetName() {\r\n }", "title": "" }, { "docid": "c3f979061fa11261e2c27e98c9faecd3", "score": "0.62054837", "text": "@Test\r\n public void testMain() {\r\n \r\n }", "title": "" }, { "docid": "eb6474e1139a71f1cd99de00563f0838", "score": "0.6189413", "text": "@Override\n public void testInit() {}", "title": "" }, { "docid": "39e407281b6bbfe05416dd538711dd44", "score": "0.61725646", "text": "@BeforeMethod\n public void init(ITestResult result)\n {\n rep = ExtentManager.getReports();// We can set the path of the reports in getRports().\n test = rep.createTest(result.getMethod().getMethodName().toUpperCase());\n\n }", "title": "" }, { "docid": "83087ce1a9774064b57c4718845cea88", "score": "0.61572665", "text": "@Override\n public void testExecute()\n {\n }", "title": "" }, { "docid": "e2e9723a9e3f2c69c017249b5e04b264", "score": "0.6152353", "text": "public testReformat() {\n}", "title": "" }, { "docid": "417a6bba6108123da99b570651f6b372", "score": "0.6150654", "text": "protected abstract void setUpFixture();", "title": "" }, { "docid": "6cae2c5e152b552be6b9a4f3ffaf9d71", "score": "0.61404437", "text": "private EstructuraBDD() {}", "title": "" }, { "docid": "505ad790e61a5332fa9d76241bddf6db", "score": "0.6139463", "text": "@Test\r\n\tpublic void createExamTest() {\r\n\t}", "title": "" }, { "docid": "bbbffd8df1c456fce781534d586553f7", "score": "0.61354333", "text": "@Override\n public void testDescribeOutput()\n {\n }", "title": "" }, { "docid": "55db6651033d31fa2e8661a8059c3655", "score": "0.6131787", "text": "protected abstract void setUpSUT();", "title": "" }, { "docid": "d19e373750f55b7aee289d6bb02d2800", "score": "0.612695", "text": "@Override\r\n\tpublic void test() {\n\t\t\r\n\t}", "title": "" }, { "docid": "d19e373750f55b7aee289d6bb02d2800", "score": "0.612695", "text": "@Override\r\n\tpublic void test() {\n\t\t\r\n\t}", "title": "" }, { "docid": "117bb0356cda17000fc4ba41b0bea156", "score": "0.612174", "text": "@Test\n public void locators(){\n\n\n\n }", "title": "" }, { "docid": "12ce4e23c29048cc43f521fe6298069b", "score": "0.61141896", "text": "@Test\r\n public void testMain() {\r\n\r\n }", "title": "" }, { "docid": "78e1a10e835b7d6fe3e711e04a0ddc4c", "score": "0.6110124", "text": "@BeforeClass\r\n\t public static void setup () {\n\t }", "title": "" }, { "docid": "799b6cf3615164a19bf4049e584e778c", "score": "0.61020756", "text": "@Test\n\tpublic void test() {\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "2bc8f7ab91052e30173182fadff9ddb0", "score": "0.60922563", "text": "@Override\n public void setUp(List<String> args) {\n\n }", "title": "" }, { "docid": "f41d0aa2b761a9d27b52c9074f115b6c", "score": "0.6084617", "text": "public void setUp()\n {\n }", "title": "" }, { "docid": "25887eb8d70ee8248a46dbb214fdeac7", "score": "0.6082037", "text": "public static Test suite() {\n return new OneTimeTestSetup(new WFSServiceExceptionTest());\n }", "title": "" }, { "docid": "ad718fa354b80e7d3cf82346492ca388", "score": "0.6073834", "text": "@Test(description = \"Requirement 33\" , groups = \"PhysicalSystem\" , dependsOnMethods = { \"Definition\" , \"DependencyCore\" })\n\tpublic void PackageFullyImplemented()\n\t{\n\t}", "title": "" }, { "docid": "5cb57900398636d1d61594a7b26a655b", "score": "0.6071837", "text": "@Test\n\tvoid test() {\n\t\t\n\n\t}", "title": "" }, { "docid": "6939777a924532409680b7a6b8b4d9b2", "score": "0.6070906", "text": "@Override\n public void testExecuteUsing()\n {\n }", "title": "" }, { "docid": "beb1c0dbd050bbf0ecb1ae0b1de5aa4e", "score": "0.6065454", "text": "@BeforeClass\n public static void setUp() {\n setUp(\"NoMAM View Details Window\", \"Liliya Gafurova\", true);\n }", "title": "" }, { "docid": "0a57c2cd0b0385a63703b60d91b79c85", "score": "0.60629416", "text": "public TestAll(String name)\r\n {\r\n super(name);\r\n }", "title": "" }, { "docid": "ce108bce08fff11db29f2fc1b7d43e23", "score": "0.6059018", "text": "@Test\r\n public void testNewTMSMainDocumentExamples(){\r\n try {\r\n\r\n new ClassificationTester(\"4.2 Proprietary Information\")\r\n .withParser(englishParser)\r\n .withHeadline(\"4.2 Proprietary Information\")\r\n .withProject(mockProject, mockDocument)\r\n .withClassifier(new NumberClassifierEN())\r\n .withClassifier(new DefinitionUsageClassifierEN())\r\n .withClassifier(new IPRClassifierEN())\r\n .expectingClassification(new ClassificationAssertion(FeatureTypeTree.IPR, 1)\r\n .withTag(\"\")\r\n )\r\n .test();\r\n\r\n\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n assertTrue(false);\r\n }\r\n }", "title": "" }, { "docid": "1429a06417f759208e2803dcafe87773", "score": "0.6049639", "text": "@BeforeClass\n public static void setup() {\n }", "title": "" }, { "docid": "32d098639fe2219e8d3ef31a8efc27ef", "score": "0.6045358", "text": "@Test\n\tpublic void firstTestCase() {\n\n\t}", "title": "" }, { "docid": "174a2d1f1f5ee49dbb89c2680e86ff7a", "score": "0.6045331", "text": "@Override\r\n\tpublic void test7() {\n\t\t\r\n\t}", "title": "" }, { "docid": "0d5c1d43945f34767cc0aa7384716a9f", "score": "0.6044638", "text": "JUnitTest createJUnitTest();", "title": "" }, { "docid": "c5816589a75733487254601536936f46", "score": "0.603874", "text": "public static Test suite() {\n BaseTestSuite suite = new BaseTestSuite(\"importExportIJ\");\n\t\t\n // only run with embedded\n // network server makes slightly different output\n // ('statement executed' instead of '# rows inserted/deteled', etc.)\n // and this test would never work if the server were on \n // a remote system because the export file would be on the\n // server side, and import would be looking on the client.\n // Also, running client & embedded would require some cleanup magic to\n // remove the exported files (see e.g. ImportExportTest).\n\t\tTest test = new ImportExportIJTest(\"importExportIJ\");\n\t\t\n // This test should run in English locale since it compares error\n // messages against a canon based on the English message text. Also,\n // run the test in a fresh database, since the language of the message\n // text is determined when the database is created. \n test = new LocaleTestSetup(test, Locale.ENGLISH);\t\n test = TestConfiguration.singleUseDatabaseDecorator(test);\n\t\t\n\t\tsuite.addTest(new CleanDatabaseTestSetup(test));\n\n return new SupportFilesSetup(suite, new String[] {\n \"functionTests/testData/ImportExport/TwoLineBadEOF.dat\",\n \"functionTests/testData/ImportExport/NoEOR.dat\",\n \"functionTests/testData/ImportExport/Access1.txt\",\n \"functionTests/testData/ImportExport/AccountData_defaultformat.dat\",\n \"functionTests/testData/ImportExport/AccountData_format1.dat\",\n \"functionTests/testData/ImportExport/AccountData_format2.dat\",\n \"functionTests/testData/ImportExport/AccountData_format2oops.dat\",\n \"functionTests/testData/ImportExport/AccountData_NullFields.dat\",\n \"functionTests/testData/ImportExport/UnsupportedFormat1.dat\",\n \"functionTests/testData/ImportExport/UnsupportedFormat2.dat\",\n \"functionTests/testData/ImportExport/derby-2193.txt\",\n \"functionTests/testData/ImportExport/derby-2193-linenumber.txt\"\n }\n );\n\t}", "title": "" }, { "docid": "357b20adf8c8c611638786f5c4dae128", "score": "0.60267335", "text": "public void test () {\n\t\t\n\t}", "title": "" }, { "docid": "1f74b0700d93dc27074db35caf01ccfa", "score": "0.6021834", "text": "public interface TestScenario {\n\n public void prepare(String testClass, String testMethod);\n\n public default String getName() {\n return getClass().getSimpleName().toLowerCase();\n }\n\n /**\n * Just create a new test project object - with a random identifier (but related\n * to scenario)\n *\n * @return test project object - not persisted\n */\n public TestProject newTestProject();\n\n /**\n * Just create a new test project object - with a project id part inside ide\n * (but related to scenario)\n *\n * @return test project object - not persisted\n */\n public TestProject newTestProject(String projectIdPart);\n\n}", "title": "" }, { "docid": "007d02c2bf242d50447e1002df40a5fe", "score": "0.60130733", "text": "@Before\n\tpublic void setUp() {\n\t\t\n\t}", "title": "" }, { "docid": "5dcb5e19ec177e60b83b2435997235ac", "score": "0.601067", "text": "public static Test suite() {\n return TestConfiguration.defaultSuite(CastingTest.class);\n }", "title": "" }, { "docid": "63123dc16ae68785acae23a3674d4f13", "score": "0.6010108", "text": "@Test\n void letusaddthistodolistnow()\n {\n }", "title": "" }, { "docid": "c51e6d879ff9891c18d5acbde47cfd88", "score": "0.60034335", "text": "@Parameters({\"groupName\", \"ptestName\", \"tinitor\", \"tbind\", \"nidInitor\", \"nidBind\"})\n @BeforeClass(groups = {\"ds_ds\", \"ds_ds_sec\", \"ff_ds\", \"ff_ds_sec\"})\n public void setup(String strGroupName, String ptestName, String tinitor,\n String tbind, String nidInitor, String nidBind )\n throws Exception {\n HtmlPage page;\n ArrayList list;\n try {\n testName = ptestName;\n termInit = tinitor;\n termBind = tbind;\n newIdInit = nidInitor;\n newIdBind = nidBind;\n ResourceBundle rb_amconfig = ResourceBundle.getBundle(\n TestConstants.TEST_PROPERTY_AMCONFIG);\n baseDir = getBaseDir() + SAMLv2Common.fileseparator\n + rb_amconfig.getString(TestConstants.KEY_ATT_SERVER_NAME)\n + SAMLv2Common.fileseparator + \"built\"\n + SAMLv2Common.fileseparator + \"classes\"\n + SAMLv2Common.fileseparator;\n configMap = new HashMap<String, String>();\n SAMLv2Common.getEntriesFromResourceBundle(\"samlv2TestData\",\n configMap);\n SAMLv2Common.getEntriesFromResourceBundle(\"samlv2TestConfigData\",\n configMap);\n // assign SP and IDP user to be unique for each test for federation\n spuser = \"SP\" + testName;\n spuserpwd = \"SP\" + testName;\n idpuser = \"IDP\" + testName;\n idpuserpwd = \"IDP\" + testName;\n configMap.put(TestConstants.KEY_SP_USER, spuser);\n configMap.put(TestConstants.KEY_SP_USER_PASSWORD, spuserpwd);\n configMap.put(TestConstants.KEY_IDP_USER, idpuser);\n configMap.put(TestConstants.KEY_IDP_USER_PASSWORD, idpuserpwd);\n spurl = configMap.get(TestConstants.KEY_SP_PROTOCOL) +\n \"://\" + configMap.get(TestConstants.KEY_SP_HOST) + \":\" +\n configMap.get(TestConstants.KEY_SP_PORT) +\n configMap.get(TestConstants.KEY_SP_DEPLOYMENT_URI);\n getWebClient();\n // Create sp users\n consoleLogin(spWebClient, spurl + \"/UI/Login\",\n configMap.get(TestConstants.KEY_SP_AMADMIN_USER),\n configMap.get(TestConstants.KEY_SP_AMADMIN_PASSWORD));\n fmSP = new FederationManager(spurl);\n list = new ArrayList();\n list.add(\"sn=\" + configMap.get(TestConstants.KEY_SP_USER));\n list.add(\"cn=\" + configMap.get(TestConstants.KEY_SP_USER));\n list.add(\"userpassword=\" +\n configMap.get(TestConstants.KEY_SP_USER_PASSWORD));\n list.add(\"inetuserstatus=Active\");\n if (FederationManager.getExitCode(fmSP.createIdentity(spWebClient,\n configMap.get(TestConstants.KEY_SP_EXECUTION_REALM),\n configMap.get(TestConstants.KEY_SP_USER), \"User\", list))\n != 0) {\n log(Level.SEVERE, \"setup\", \"createIdentity famadm command\" +\n \" failed\");\n assert false;\n }\n // Create idp users\n idpurl = configMap.get(TestConstants.KEY_IDP_PROTOCOL) +\n \"://\" + configMap.get(TestConstants.KEY_IDP_HOST) + \":\" +\n configMap.get(TestConstants.KEY_IDP_PORT) +\n configMap.get(TestConstants.KEY_IDP_DEPLOYMENT_URI);\n \n consoleLogin(idpWebClient, idpurl + \"/UI/Login\",\n configMap.get(TestConstants.KEY_IDP_AMADMIN_USER),\n configMap.get(TestConstants.KEY_IDP_AMADMIN_PASSWORD));\n fmIDP = new FederationManager(idpurl);\n list.clear();\n list.add(\"sn=\" + configMap.get(TestConstants.KEY_IDP_USER));\n list.add(\"cn=\" + configMap.get(TestConstants.KEY_IDP_USER));\n list.add(\"userpassword=\" +\n configMap.get(TestConstants.KEY_IDP_USER_PASSWORD));\n list.add(\"inetuserstatus=Active\");\n if (FederationManager.getExitCode(fmIDP.createIdentity(idpWebClient,\n configMap.get(TestConstants.KEY_IDP_EXECUTION_REALM),\n configMap.get(TestConstants.KEY_IDP_USER), \"User\", list))\n != 0) {\n log(Level.SEVERE, \"setup\", \"createIdentity famadm command \" +\n \"failed\");\n assert false;\n }\n //Federated SSO URL\n fedSSOURL = spurl + \"/saml2/jsp/spSSOInit.jsp?metaAlias=\" +\n configMap.get(TestConstants.KEY_SP_METAALIAS) +\n \"&idpEntityID=\" +\n configMap.get(TestConstants.KEY_IDP_ENTITY_NAME);\n } catch(Exception e) {\n log(Level.SEVERE, \"setup\", e.getMessage());\n e.printStackTrace();\n throw e;\n } finally {\n consoleLogout(spWebClient, spurl + \"/UI/Logout\");\n consoleLogout(idpWebClient, idpurl + \"/UI/Logout\");\n }\n exiting(\"setup\");\n }", "title": "" }, { "docid": "2a15196c54f8bc7d949560e59b06ee04", "score": "0.59994435", "text": "@Override\n\tprotected List<ISuite> runSuites() {\n\t\treturn super.runSuites();\n\t}", "title": "" }, { "docid": "bae3ac027deec08c674056b7e7e05fd5", "score": "0.5997587", "text": "@BeforeClass\r\n\tpublic static void setup() {\n\t}", "title": "" }, { "docid": "4be7acdeadc06063d488990e1c01bbd0", "score": "0.5997401", "text": "@Test\n public void startup() {\n }", "title": "" }, { "docid": "5977d6d0b7de99a3a4b1e3fd6314350b", "score": "0.599725", "text": "@Test\n public void demo1() {\n }", "title": "" }, { "docid": "a24b2c4a17d66ff48567e058358cbcb3", "score": "0.5993436", "text": "public void describe();", "title": "" }, { "docid": "662dc399f303c997c9d32b718cdb9c37", "score": "0.59903526", "text": "@Override\n\tpublic void test() {\n\n\t}", "title": "" }, { "docid": "662dc399f303c997c9d32b718cdb9c37", "score": "0.59903526", "text": "@Override\n\tpublic void test() {\n\n\t}", "title": "" }, { "docid": "662dc399f303c997c9d32b718cdb9c37", "score": "0.59903526", "text": "@Override\n\tpublic void test() {\n\n\t}", "title": "" }, { "docid": "b79399b31db861dd7574a300b103e2d1", "score": "0.5988714", "text": "@Test\n void equipDarkBookTest();", "title": "" }, { "docid": "87dd1b2a7ddb7ce0071574295ea6f5ec", "score": "0.5986949", "text": "public void setUp(){\n\n }", "title": "" }, { "docid": "31bbdb7ad640c77d3e55df55148c1786", "score": "0.5978939", "text": "public void Setup();", "title": "" }, { "docid": "fceca1cc74880906cc6c3a3d67885be9", "score": "0.5971672", "text": "@Override\r\n\tpublic void onStart(ISuite suite) {\n\t\t\r\n\t}", "title": "" }, { "docid": "f8957ed6a4b9a3f6359265342a2bfe87", "score": "0.59677476", "text": "public void testToXML()\n {\n }", "title": "" }, { "docid": "f935fc77e1d9024f8ea2dd428cfa7731", "score": "0.59653795", "text": "@Test\n public void testMain() {\n }", "title": "" }, { "docid": "f935fc77e1d9024f8ea2dd428cfa7731", "score": "0.59653795", "text": "@Test\n public void testMain() {\n }", "title": "" }, { "docid": "b6e64db27d8dfdffd1983084c223a7b0", "score": "0.59639186", "text": "void graphMiscTestData(){\n }", "title": "" }, { "docid": "a2b94fd90093f35c133efb0bede94965", "score": "0.5955349", "text": "@Test\n public void testRunner(){\n }", "title": "" }, { "docid": "311aab3b34ea81a2d55109385f790938", "score": "0.5954156", "text": "public interface TestGroup {\n static String SMOKE_TEST_SUITE = \"SMOKE_TEST_SUITE\";\n static String REGRESSION_SUITE = \"REGRESSION_SUITE\";\n static String E2E_SUITE = \"E2E_SUITE\";\n}", "title": "" }, { "docid": "cc84c01d1576624e0085b5435e3bcc2c", "score": "0.5950535", "text": "public IOMdlGlobalsTestSuiteGenerics()\r\n { \r\n\t\tCorePlugin.getDefault().getPreferenceStore().setValue(BridgePointPreferencesStore.USE_DEFAULT_NAME_FOR_CREATION,true);\r\n addTest(new TestSuite(IOMdlGlobalsTestGenerics.class));\r\n addTest(new TestSuite(IOMdlNestedTestGenerics.class));\r\n addTest(new TestSuite(IOMdlTestGenerics.class));\r\n addTest(new TestSuite(IOMdlUnicodeTestGenerics.class));\r\n addTest(new TestSuite(ImportReferencedIPRModelTest.class));\r\n\t\taddTest(new TestSuite(ImportPasteElementsWithIPRTest.class));\r\n addTest(new TestSuite(ProxyTestsGenerics.class));\r\n addTest(new TestSuite(StaleProxyExportTestGenerics.class)); \r\n }", "title": "" }, { "docid": "3f409fa4c5859244d1a6ad34c5952bb3", "score": "0.5949124", "text": "@BeforeClass\n\tpublic static void oneTimeSetUp() {\n\t}", "title": "" }, { "docid": "2c17b40858ab053e3b6de76da18258c5", "score": "0.5947243", "text": "public abstract void runTestCase();", "title": "" }, { "docid": "7bbd7ed88e51a2632fcea2378571d40f", "score": "0.59455144", "text": "public static junit.framework.Test suite() {\n\treturn new junit.framework.JUnit4TestAdapter(VehiculeTest.class);\n }", "title": "" }, { "docid": "dcf726ffcc135b75e421cf7479ab7d25", "score": "0.5945461", "text": "@Before\n public void testInstantiation() {\n }", "title": "" }, { "docid": "c0df116c18201d5581fbfb35ecc80faa", "score": "0.5944304", "text": "TestLocalDDECompExamplesHome() {\n this(\"testCreate\");\n }", "title": "" }, { "docid": "293515959507ec67d2e28d87d561d77e", "score": "0.59419817", "text": "@Test\n\tpublic void test() {\n\t}", "title": "" }, { "docid": "293515959507ec67d2e28d87d561d77e", "score": "0.59419817", "text": "@Test\n\tpublic void test() {\n\t}", "title": "" }, { "docid": "293515959507ec67d2e28d87d561d77e", "score": "0.59419817", "text": "@Test\n\tpublic void test() {\n\t}", "title": "" }, { "docid": "293515959507ec67d2e28d87d561d77e", "score": "0.59419817", "text": "@Test\n\tpublic void test() {\n\t}", "title": "" }, { "docid": "293515959507ec67d2e28d87d561d77e", "score": "0.59419817", "text": "@Test\n\tpublic void test() {\n\t}", "title": "" }, { "docid": "21f1d38b7f390dcafbeef0a0c6bd1d15", "score": "0.59413874", "text": "@Before\n\tpublic void setUp() {\n\t}", "title": "" }, { "docid": "21f1d38b7f390dcafbeef0a0c6bd1d15", "score": "0.59413874", "text": "@Before\n\tpublic void setUp() {\n\t}", "title": "" }, { "docid": "21f1d38b7f390dcafbeef0a0c6bd1d15", "score": "0.59413874", "text": "@Before\n\tpublic void setUp() {\n\t}", "title": "" }, { "docid": "b33b8308a84fac9255b3f894b5d0967d", "score": "0.5937961", "text": "@Before\r\n public void setUp()\r\n {\r\n }", "title": "" }, { "docid": "3b24d8939a088b91c174b139e3abd4f9", "score": "0.5935432", "text": "public void setUp()\n {\n /*# Insert your own setup code here */\n }", "title": "" } ]
bdb343e23dcd5534dd4ee9de2156613b
Clears the value of the 'secondaryAlignment' field
[ { "docid": "5e938c416163cd4a2e313caa8fca01ce", "score": "0.816708", "text": "public org.ga4gh.models.ReadAlignment.Builder clearSecondaryAlignment() {\n secondaryAlignment = null;\n fieldSetFlags()[10] = false;\n return this;\n }", "title": "" } ]
[ { "docid": "34a104a8a8c0485c4d348db1336d6cc3", "score": "0.7065442", "text": "public org.ga4gh.models.ReadAlignment.Builder clearAlignment() {\n alignment = null;\n fieldSetFlags()[9] = false;\n return this;\n }", "title": "" }, { "docid": "844edd4c0bb68254bc09dc1bd1eecca5", "score": "0.6623389", "text": "public org.ga4gh.models.ReadAlignment.Builder clearSupplementaryAlignment() {\n supplementaryAlignment = null;\n fieldSetFlags()[11] = false;\n return this;\n }", "title": "" }, { "docid": "0b79e6c268dd7a12dcc11e6601f41e7c", "score": "0.65320194", "text": "public void setSecondaryAlignment(java.lang.Boolean value) {\n this.secondaryAlignment = value;\n }", "title": "" }, { "docid": "73c06f2eca4bd6b3756eab85f5997762", "score": "0.6520926", "text": "public org.ga4gh.models.ReadAlignment.Builder clearProperPlacement() {\n properPlacement = null;\n fieldSetFlags()[3] = false;\n return this;\n }", "title": "" }, { "docid": "4e08ff3ca8e90acd8af6132d3a421df8", "score": "0.62151873", "text": "public org.ga4gh.models.ReadAlignment.Builder clearAlignedQuality() {\n alignedQuality = null;\n fieldSetFlags()[13] = false;\n return this;\n }", "title": "" }, { "docid": "a21176b47d70b7d147a308b41c461bbb", "score": "0.62149537", "text": "public org.ga4gh.models.ReadAlignment.Builder clearAlignedSequence() {\n alignedSequence = null;\n fieldSetFlags()[12] = false;\n return this;\n }", "title": "" }, { "docid": "16ef98738f2203793ce94ae3c842ff7c", "score": "0.5959001", "text": "public org.ga4gh.models.ReadAlignment.Builder setSecondaryAlignment(java.lang.Boolean value) {\n validate(fields()[10], value);\n this.secondaryAlignment = value;\n fieldSetFlags()[10] = true;\n return this; \n }", "title": "" }, { "docid": "c68fda3d9f9cb10fd46e0c613d525a09", "score": "0.5869157", "text": "public void resetToDefault(){\n\t\tsetInverse(false);\n\t\tsetBold(false);\n\t\tsetUnderline(0);\n\t\tsetJustification(0);\n\t}", "title": "" }, { "docid": "d5406c047b79e6353ae5f39968c37f37", "score": "0.5805393", "text": "public org.ga4gh.models.ReadAlignment.Builder clearInfo() {\n info = null;\n fieldSetFlags()[15] = false;\n return this;\n }", "title": "" }, { "docid": "183c2b309834e8cf06f24b1aea5cd60d", "score": "0.5803074", "text": "public void setAlignment(java.lang.Object value) {\n this.alignment = value;\n }", "title": "" }, { "docid": "bf435df3225ec079224ea9ac62e65bfd", "score": "0.5644929", "text": "public boolean hasSecondaryAlignment() {\n return fieldSetFlags()[10];\n }", "title": "" }, { "docid": "a15f999e1881f2877801a9a585bd4ab9", "score": "0.55036664", "text": "public void unsetOffset()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_attribute(OFFSET$20);\n }\n }", "title": "" }, { "docid": "9a2f40a304dae9af66892cfb4d99f013", "score": "0.5488874", "text": "public java.lang.Boolean getSecondaryAlignment() {\n return secondaryAlignment;\n }", "title": "" }, { "docid": "367888370818b61951c2c4d6f1406b4b", "score": "0.54840755", "text": "public void setSupplementaryAlignment(java.lang.Boolean value) {\n this.supplementaryAlignment = value;\n }", "title": "" }, { "docid": "bb5276410ccb62a5d069515bf3ad2991", "score": "0.5465995", "text": "void resetResolvedLayoutProperties();", "title": "" }, { "docid": "50951ed013d86b81edb0f055d863720a", "score": "0.54629207", "text": "public PositionAlignmentOptions setVerticalAlignment(PositionRelation verticalAlignment)\n\t{\n\t\treturn setVerticalAlignment(verticalAlignment, 0);\n\t}", "title": "" }, { "docid": "2eb162450e1ce72269a3a9b5b6826774", "score": "0.54601824", "text": "public java.lang.Boolean getSecondaryAlignment() {\n return secondaryAlignment;\n }", "title": "" }, { "docid": "e7e90f11afa8875ca769fc6b4a323e8f", "score": "0.5445947", "text": "public void setAlignment(String alignment) {\r\r\n\t\tthis.alignment = alignment;\r\r\n\t}", "title": "" }, { "docid": "607fad92c3f19a3b403f7e61193a62a2", "score": "0.5438767", "text": "public void setTextAlign(int align) {\n \tsAlignArray[0] = align;\n }", "title": "" }, { "docid": "48db141797ab5f544a231d92a50ac8d4", "score": "0.54159266", "text": "protected void resetPosGreyText() {\n xyzTextField.setText(\"-----\");\n valueTextField.setText(\"-\");\n }", "title": "" }, { "docid": "508c5393844f542469fb8742be56d589", "score": "0.54031366", "text": "public void setAlignment(int alignment) \n\t{\n\t\tthis.alignment = alignment;\n\t}", "title": "" }, { "docid": "643d044cc98196be7c5faf6da8d8561b", "score": "0.5377572", "text": "public void setAlign( String value ) throws Jaxception\n {\n setProperty( \"align\", value );\n }", "title": "" }, { "docid": "c1027460ddd6759ae5adc5457fafcb97", "score": "0.5377256", "text": "private void avoidArabicAlignmentProblem()\n\t\t{\n\t\t\tif(LanguageOptions.isRightToLeftLanguage())\n\t\t\t\taddComponents(new JLabel(\"\"), new JLabel(\"\"));\n\t\t}", "title": "" }, { "docid": "8784ba85de0fb966ae64d8509da3016d", "score": "0.5375925", "text": "public void setAlign(String align) throws WrongValueException;", "title": "" }, { "docid": "bd39858b9b229dde21a825920b4a1d7a", "score": "0.5369825", "text": "public void clearOCLocation() {\n\t\tsetOCLocation(\"\");\n\t}", "title": "" }, { "docid": "07be27a83a1e317dd0c808bf9c9b0f96", "score": "0.5334357", "text": "public org.ga4gh.models.ReadAlignment.Builder clearNextMatePosition() {\n nextMatePosition = null;\n fieldSetFlags()[14] = false;\n return this;\n }", "title": "" }, { "docid": "9969a6456551d646627e6cb8a1ee139e", "score": "0.5308882", "text": "public void setAlign(String align);", "title": "" }, { "docid": "9969a6456551d646627e6cb8a1ee139e", "score": "0.5308882", "text": "public void setAlign(String align);", "title": "" }, { "docid": "3565b09686107714f6b9da466061d3da", "score": "0.52728176", "text": "public void setAlignment(Alignment newValue) {\n set(PROPERTY_ALIGNMENT, newValue);\n }", "title": "" }, { "docid": "16e7eb19d6ca6ba92e08281a63b96cb3", "score": "0.52641785", "text": "public final void setAligment(LegendAlignment alignment) {\n\t\tsetAlignment(alignment.getName());\n\t}", "title": "" }, { "docid": "1c904659dacf78acf91c7f69cb70ab1c", "score": "0.52317494", "text": "public void unsetText()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(TEXT$10, 0);\n }\n }", "title": "" }, { "docid": "4c62f23d4d9a41d9c62fc5bfce493077", "score": "0.52112633", "text": "public void unsetEndOffset()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_attribute(ENDOFFSET$6);\n }\n }", "title": "" }, { "docid": "3157cf86723d02bf44ed189044435728", "score": "0.5210401", "text": "public void unsetMeasure2()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_attribute(MEASURE2$4);\r\n }\r\n }", "title": "" }, { "docid": "0eaedc34c54e3b0f7e5d905eb58b7049", "score": "0.5206427", "text": "public void clear() {\n this.boxed = null;\n }", "title": "" }, { "docid": "cb810df5c9152efde0a0ee56950111b6", "score": "0.51982206", "text": "public void setPrimaryAlignment(final int primaryAlignmentIndex) {\n if (primaryAlignmentIndex < 0 || primaryAlignmentIndex >= this.numHits()) {\n throw new IllegalArgumentException(\"primaryAlignmentIndex(\" + primaryAlignmentIndex +\n \") out of range for numHits(\" + numHits() + \")\");\n }\n // Set all alignment to be not primary except the selected one.\n for (int i = 0; i < this.numHits(); ++i) {\n final boolean notPrimary = (i != primaryAlignmentIndex);\n if (this.getFirstOfPair(i) != null) {\n this.getFirstOfPair(i).setNotPrimaryAlignmentFlag(notPrimary);\n }\n if (this.getSecondOfPair(i) != null) {\n this.getSecondOfPair(i).setNotPrimaryAlignmentFlag(notPrimary);\n }\n }\n }", "title": "" }, { "docid": "79e141bb741e214a65cc770b9b62bc79", "score": "0.5189233", "text": "public void setVerticalAlignment(int arg0) {\n\n\t}", "title": "" }, { "docid": "79e141bb741e214a65cc770b9b62bc79", "score": "0.5189233", "text": "public void setVerticalAlignment(int arg0) {\n\n\t}", "title": "" }, { "docid": "51fd94551e78571833790ec1871c6123", "score": "0.5173328", "text": "public void setAlign(TextHAlign align)\n{\n\t_align = align;\n}", "title": "" }, { "docid": "06bd57c3900116274347cbeb8fa308d7", "score": "0.51239765", "text": "public void resetValue() {\r\n\t\tvalue=0;\r\n\t\tupdateFont();\r\n\t}", "title": "" }, { "docid": "fa8587e486ff7bb7e5f748a68f0c29a9", "score": "0.5114571", "text": "public void remDefaultValue(){\n rem(DmdgpbDMSAG.__defaultValue);\n }", "title": "" }, { "docid": "9cc107759a47f3a58a1d2a133a63ee21", "score": "0.5114107", "text": "public void unBook() {\n\t\tname = \"\";\n\t\tgroup = \"\";\n\t\toccupency = false;\n\t}", "title": "" }, { "docid": "356a277fc4273add35dc7d8ff972dcdf", "score": "0.5112584", "text": "void setGroupalign(String groupalign);", "title": "" }, { "docid": "0131e0805df80f8ace6d57b75c0f7f93", "score": "0.5110051", "text": "private void clearEntryFields()\n {\n // Clear user entered values.\n tf_SquareFeetNeeded.setText(\"\");\n tf_PricePerSquareYard.setText(\"\");\n cb_RoomCount.setSelectedIndex(0);\n cb_MoveFurniture.setSelectedIndex(0);\n rb_PaddingType_Regular.setSelected(true);\n\n // Clear calculated values.\n tf_CarpetCost.setText(\"\");\n tf_PaddingCost.setText(\"\");\n tf_LaborCost.setText(\"\");\n tf_Subtotal.setText(\"\");\n tf_TaxCost.setText(\"\");\n tf_GrandTotal.setText(\"\");\n\n // Blank out Applet status bar.\n this.showStatus(\"\");\n }", "title": "" }, { "docid": "01be3628ed1c8753279e044df7e8f6ab", "score": "0.5107533", "text": "private void clear() {\n annotations.clear();\n getRTComponent().render();\n }", "title": "" }, { "docid": "7490e6e5da4287818807ba37f128f2fe", "score": "0.5106512", "text": "public void clearFormattingElementsToLastMarker() {\n /*\n r1 = this;\n L_0x0000:\n java.util.ArrayList<org.jsoup.nodes.Element> r0 = r1.formattingElements\n boolean r0 = r0.isEmpty()\n if (r0 != 0) goto L_0x000e\n org.jsoup.nodes.Element r0 = r1.removeLastFormattingElement()\n if (r0 != 0) goto L_0x0000\n L_0x000e:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.jsoup.parser.HtmlTreeBuilder.clearFormattingElementsToLastMarker():void\");\n }", "title": "" }, { "docid": "d0a69922d2b4a5ccad902b8a00c221b2", "score": "0.5101465", "text": "public void clear() {\n\t\tsynchronized (this.overlayTexts) {\n\t\t\tthis.overlayTexts.clear();\n\t\t}\n\t}", "title": "" }, { "docid": "6692b7e18eec62896da13025826c8562", "score": "0.509974", "text": "public void clear() {\n\t\tthis.b_InPosition = false; \r\n\t}", "title": "" }, { "docid": "a07eab9eff84ef1f473b659f92e7965e", "score": "0.5087539", "text": "public void clear() {\n for (int i = 0; i < offset.length; i++) {\n offset[i] = 0;\n }\n count = 0;\n }", "title": "" }, { "docid": "2f2b6f895d93c6430b4960529a0473dc", "score": "0.5085901", "text": "public void setVerticalAlignment(short align)\n {\n format.setVerticalAlignment(align);\n }", "title": "" }, { "docid": "e3bc889a353c0f2d803a07aeb3ed3ce0", "score": "0.5081861", "text": "public void clearTextField (){\n\n\t\tfor ( int i = 0 ; i < this.getInformationTextField().length ; i++ ){\n\n\t\t\tif ( i != 2 ){\n\n\t\t\t\tthis.getInformationTextField()[i].setText( null );\n\n\t\t\t}else{\n\t\t\t\t// No action\n\t\t\t}\n\t\t\tthis.getTxtFinePerDay().setText( null );\n\t\t\tthis.getTxtTotalFineAmt().setText( null );\n\t\t}\n\t}", "title": "" }, { "docid": "86709a2ac6378eb6cd4d4268f7ce9478", "score": "0.50765914", "text": "public void revertGridCell() { this.shapeCell = null;}", "title": "" }, { "docid": "07192294f626593bd859dcea1ba23eae", "score": "0.5073296", "text": "public void unsetAggregation()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_attribute(AGGREGATION$12);\r\n }\r\n }", "title": "" }, { "docid": "13fb3f2e291e2bba236bcd9abf5a8e96", "score": "0.5068779", "text": "public void setAlign(String pAlign) {\n mAlign = pAlign;\n }", "title": "" }, { "docid": "1543bbbc8b75b3c137969f40d0c96e2e", "score": "0.5035848", "text": "public void setTextAlignment(BitmapFont.Align alignment) {\r\n this.textAlignment = alignment;\r\n }", "title": "" }, { "docid": "580d155af1bb4330410bcd61a3672a54", "score": "0.50341", "text": "public void setHorizontalAlignment(int arg0) {\n\n\t}", "title": "" }, { "docid": "580d155af1bb4330410bcd61a3672a54", "score": "0.50341", "text": "public void setHorizontalAlignment(int arg0) {\n\n\t}", "title": "" }, { "docid": "e2f1ac4094f051653db3c64648374046", "score": "0.50312054", "text": "public org.ga4gh.models.ReadAlignment.Builder clearId() {\n id = null;\n fieldSetFlags()[0] = false;\n return this;\n }", "title": "" }, { "docid": "f1171426a1b51e253644f5110afa00bb", "score": "0.5028546", "text": "final void setAlignment(int alignment) {\n\tgeomLock.getLock();\n this.alignment = alignment;\n updateTransformData();\n\tgeomLock.unLock();\n sendTransformChangedMessage();\n }", "title": "" }, { "docid": "516e828bccf8073de3bb8257b298dd08", "score": "0.5025435", "text": "public void displayAlignment() {\n System.out.println(\"The alignment is displayed below\");\n System.out.println(firstStr);\n System.out.println(secondStr);\n System.out.println(\"The maximal contiguous alignment score\" + maxContiguousTonalCommonality);\n }", "title": "" }, { "docid": "3b961aca4e3bfe976fc4348f90968833", "score": "0.50229245", "text": "public final void reset() {\n this.offset = 0;\n }", "title": "" }, { "docid": "1a2f062086f2661614fb7f8539dc8616", "score": "0.502236", "text": "public void clearDist() {\n }", "title": "" }, { "docid": "2406c0d2083936db3c5943d08093fcc3", "score": "0.5020872", "text": "public org.ga4gh.models.ReadAlignment.Builder setAlignment(java.lang.Object value) {\n validate(fields()[9], value);\n this.alignment = value;\n fieldSetFlags()[9] = true;\n return this; \n }", "title": "" }, { "docid": "51f7a4dda61548fff03f4f160b9f31b4", "score": "0.5014511", "text": "public void remove(Mapping map)\r\n\t{\r\n\t\talign.remove(map);\t\t\r\n\t}", "title": "" }, { "docid": "3eaa1fe3677d6658ad00069a885cfd3a", "score": "0.50075436", "text": "public void unsetDrawingorder()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_attribute(DRAWINGORDER$36);\r\n }\r\n }", "title": "" }, { "docid": "939b099c6e0f6694534bb14de5978a4e", "score": "0.5007113", "text": "public void clearFixed() {\r\n _fixed = null;\r\n }", "title": "" }, { "docid": "fac8f8bfac0169e6eaf535d229718426", "score": "0.5004557", "text": "private void reset(){\n Point clear;\n clear = new Point(0,0);\n textArea1.setText(\"\");\n box1 = clear; box2 = clear; submit = clear;\n }", "title": "" }, { "docid": "b5b3d137c932db298ae57d4df3a4b1a6", "score": "0.49882573", "text": "public void resetTipoLayoutBuscador()\r\n {\r\n this.tipoLayoutBuscador = null;\r\n }", "title": "" }, { "docid": "54c59a4d3caf5e92cae1355c88c6804e", "score": "0.49866912", "text": "void clearAlts() {\n _alts = null;\n }", "title": "" }, { "docid": "f130db2be36ff5553ea85b7a9ae86330", "score": "0.4977228", "text": "public void clear() {\n setValue(\"\");\n }", "title": "" }, { "docid": "acbc24d6acfc443866f4f76c70293391", "score": "0.49646294", "text": "public void clearOrganisms();", "title": "" }, { "docid": "3a6c42c0357cd45cf391e6d68f5bfd55", "score": "0.49640757", "text": "public void unsetMarked() {\n\t\tmarked = false;\n\t}", "title": "" }, { "docid": "5078c09303baa01d69b75f5943dc612e", "score": "0.4963594", "text": "public void unsetNegationInd()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_attribute(NEGATIONIND$44);\n }\n }", "title": "" }, { "docid": "f865e06dcaa488ae3cbb65598058da49", "score": "0.49628252", "text": "public void clear()\n {\n displayString = \"\";\n }", "title": "" }, { "docid": "9d58109a550da6f52fcb6067ca8463c8", "score": "0.49479124", "text": "public void clearFamily()\n{\n\tsetValueAt(getValueAt(0, \"entityid\"), 0, findColumn(\"primaryentityid\"));\n}", "title": "" }, { "docid": "eda35b848be1dc78f7a2bb833f767b15", "score": "0.49443808", "text": "public org.ga4gh.models.ReadAlignment.Builder clearReadNumber() {\n readNumber = null;\n fieldSetFlags()[7] = false;\n return this;\n }", "title": "" }, { "docid": "d14385364b658b4e03a5ddd68cdf049f", "score": "0.49384552", "text": "public void clear() {\n labelFromName.clear();\n labelUsersFromName.clear();\n currLineNum = 0;\n }", "title": "" }, { "docid": "f757c6f7d3efa31422adefb9251c8507", "score": "0.49355933", "text": "private void clearText() {\n bitField0_ &= ~0x00000020;\n text_ = getDefaultInstance().getText();\n }", "title": "" }, { "docid": "a02206f009d91156ead0a4e776afe682", "score": "0.49291953", "text": "protected void resetNullAppearanceStream() {\n if (!hasAppearanceStream()) {\n Object tmp = getObject(RECTANGLE_KEY);\n Rectangle2D.Float rectangle = null;\n if (tmp instanceof java.util.List) {\n rectangle = library.getRectangle(entries, RECTANGLE_KEY);\n }\n if (rectangle != null) {\n setBBox(rectangle.getBounds());\n }\n resetAppearanceStream(new AffineTransform());\n }\n }", "title": "" }, { "docid": "f6e8e292206599e5eef3e203dc72d32a", "score": "0.49228838", "text": "public void reset() {\n\t\t\tdock_on_editor_y_offset_ = 0;\n\t\t\tdock_on_editor_x_offset_ = 0;\n\t\t\tdocking_border = 0;\n\t\t}", "title": "" }, { "docid": "6a38c055c0e333cc9810928b7dfc653f", "score": "0.4922002", "text": "public PositionAlignmentOptions setHorizontalAlignment(PositionRelation horizontalAlignment)\n\t{\n\t\treturn setHorizontalAlignment(horizontalAlignment, 0);\n\t}", "title": "" }, { "docid": "51ae345b673208049260abb9de00379e", "score": "0.49201968", "text": "public void clearStyle() {\n\t\tif (this.getStyleClass().size() > 0) {\n\t\t\tthis.getStyleClass().remove(0, this.getStyleClass().size());\n\t\t}\n\t}", "title": "" }, { "docid": "b824c0b27cc44914827b2de207d1a340", "score": "0.49165842", "text": "public void reset() {\n \t\tsetSelection(null);\n \t\t\n \t\tdraw(draw_mode, animation_mode, getFirstUsefulNode());\n \t\tif (! (draw_mode == StapGraph.CONSTANT_DRAWMODE_AGGREGATE)){\n \t\t\tgetNode(getFirstUsefulNode()).unhighlight();\t\t\t\n \t\t}\n \t\tif (treeViewer!=null) {\n \t\t\ttreeViewer.collapseAll();\n \t\t\ttreeViewer.expandToLevel(2);\n \t\t}\n \t\tscale = 1;\n \t\tnextMarkedNode = -1;\n \t}", "title": "" }, { "docid": "9213b2e99ac23c0de81a36b83ef9505a", "score": "0.49125203", "text": "private void clearFields()\n\t{\n\t\t//Set the value of each entry field to blank\n\t\tenterRow.setText(\"\");\n\t\tenterColumn.setText(\"\");\n\t\tenterValue.setText(\"\");\n\t\tdisplayRow.setText(\"\");\n\t\tdisplayColumn.setText(\"\");\n\t\tpossibleValues.setText(\"\");\n\t}", "title": "" }, { "docid": "256630d550cf43570cf67fc29c83bdf2", "score": "0.49109727", "text": "@JSProperty\n\tvoid setTextAlign(String textAlign);", "title": "" }, { "docid": "f2d792b4a50b60b305f2e34f69dc99eb", "score": "0.49107605", "text": "public void doClear() {\n beginMarker = new Node<>( null, null, null );\n endMarker = new Node<>( null, beginMarker, null );\n beginMarker.next = endMarker;\n \n theSize = 0;\n modCount++;\n }", "title": "" }, { "docid": "92583d362580f5d8472627183fbab9dc", "score": "0.49076995", "text": "void setRealmAlignment(RealmAlignment realmAlignment) {\n realmDoorTitle.changeText(realmAlignment.getAlignment(), 1);\n }", "title": "" }, { "docid": "5863473287855472845a346a05c0abc2", "score": "0.49031103", "text": "public void reset() {\n\t init();\n\t\tsetFlags(DEFAULT_PAINT_FLAGS);\n\t\tmHasCompatScaling = false;\n\t\tmCompatScaling = mInvCompatScaling = 1;\n\t}", "title": "" }, { "docid": "c1b1ae4a96db4fea1b8df5cd159dd26b", "score": "0.4894287", "text": "public void unsetSize()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_attribute(SIZE$2);\n }\n }", "title": "" }, { "docid": "1338441803b03a9076a0d0ee057acd9d", "score": "0.48940864", "text": "private void clearData() {\n\t\taddressET.setText(null);\n\t\tremarksET.setText(null);\n\t\tbtn_assessment.setText(R.string.msg_breedingsite_assessment);\n\t\timv_image.setImageResource(R.drawable.bg_forms);\n\n\t\tclearMemory();\n\t}", "title": "" }, { "docid": "736ae0d81d568735b4a422d11730c643", "score": "0.48935425", "text": "public void resetLayout() {\n\t\t\n\t}", "title": "" }, { "docid": "e00d4ef8ac4d2578f3f5dc1a9461de93", "score": "0.4883981", "text": "private void clearFields() {\r\n\t\tlblId.setText(\"\");\r\n\t\ttxtDescription.setText(\"\");\r\n\t\ttxtAddress.setText(\"\");\r\n\t\tcbxQuadrant.setSelectedIndex(0);\r\n\t\tcbxZone.setSelectedIndex(0);\r\n\t\ttxtPrice.setText(\"\");\r\n\t\ttxtFootage.setText(\"\");\r\n\t\ttxtBathrooms.setText(\"\");\r\n\t\ttxtBedrooms.setText(\"\");\r\n\t\tcbxType.setSelectedIndex(0);\r\n\t\ttxtComments.setText(\"\");\r\n\t}", "title": "" }, { "docid": "2e883b614d3e18d951ec912115973037", "score": "0.48808712", "text": "public void clear() {\n\t\tsum = 0;\n\t\tcorrection = 0;\n\t}", "title": "" }, { "docid": "4a8fb8cce13fe8ca33219af9493bb8ee", "score": "0.4880198", "text": "public final void setAlign(NativeCallback alignCallback) {\n\t\t// resets callback\n\t\tsetAlign((AlignCallback) null);\n\t\t// stores value\n\t\tsetValueAndAddToParent(Property.ALIGN, alignCallback);\n\t}", "title": "" }, { "docid": "b37e240373ce6df384bdaffe59119d1d", "score": "0.48793003", "text": "public void clearAllAnnotations() {\r\n\t\tcp.getChart().getXYPlot().clearAnnotations();\r\n\t\tuserHAList.clear();\r\n\t\tuserVAList.clear();\r\n\t\tdlgAList.clear();\r\n\t\trestoreAllAnnotations();\r\n\t}", "title": "" }, { "docid": "4d5d793ec502254cd0d8398e9e45ff77", "score": "0.4877648", "text": "public void reset() {\n position.set(0, 0);\n size.set(800, 600);\n offset.set(0, 0);\n zoom.set(1, 1);\n bounds.set(new Rect2());\n followed = null;\n followBox.set(new Rect2());\n stretchMode = StretchMode.DISABLED;\n }", "title": "" }, { "docid": "b407bb4792190f7e898102fad7f2eeb0", "score": "0.48748302", "text": "public void clearMax() {\r\n _maxInclusive = null;\r\n _maxExclusive = null;\r\n }", "title": "" }, { "docid": "0fc73d12bd01e2e9db662fed026f1616", "score": "0.48733962", "text": "private void reset() {\r\n\t\twarning.setVisible(false);\r\n\t\twarning.setText(\"\");\r\n\r\n\t\tkey.setValue(\"\");\r\n\t\tvalue.setValue(\"\");\r\n\t}", "title": "" }, { "docid": "b10a679f9e7f18026497dfc3ca5b957a", "score": "0.4869716", "text": "public void setVerticalAlignment(java.lang.String param){\r\n localVerticalAlignmentTracker = param != null;\r\n \r\n this.localVerticalAlignment=param;\r\n \r\n\r\n }", "title": "" }, { "docid": "be284063a396d7ac48624e63804971d7", "score": "0.48695442", "text": "public void unsetLocation()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_attribute(LOCATION$16);\n }\n }", "title": "" }, { "docid": "ec55b1503abb1031f6ffe7235f6454c7", "score": "0.48685947", "text": "public void clearTextFields() {\r\n\t\tfor (int i = 0; i < 6; i++)\r\n\t\t\tmouseStates[i].setBackground(Color.lightGray);\r\n\t}", "title": "" } ]
0b30e0bd2126a6c38c1f23b847ee3ad1
Returns a sphere with normals and y tex coord rightisde up.
[ { "docid": "1a9d8f2aaf33227a34cde454179dbe20", "score": "0.4601742", "text": "public int getNmlSphereIndex(int level)\r\n\t{\r\n\t\treturn list_base + level * 4 + 2;\r\n\t}", "title": "" } ]
[ { "docid": "230012c6686a65a25bf2ed681016f777", "score": "0.61561847", "text": "private float[] getSphereVector(float radius, float x, float y) {\n // flip around the y coordinate; y increases in value towards the bottom of the screen.\n y *= -1;\n // for storing the final coordinates.\n float[] result = new float[3];\n\n float sphereX;\n float sphereY;\n float sphereZ;\n\n float length = (float)Math.sqrt(x*x + y*y);\n // if the touch falls within the sphere, we're in good shape.\n if (length <= radius) {\n sphereZ = (float)Math.sqrt((radius*radius) - (length*length));\n sphereX = x;\n sphereY = y;\n } else {\n // the touch was outside the sphere.\n // scale down the x and y coordinates to be on the edge of the sphere\n float ratio = radius / length;\n x *= ratio;\n y *= ratio;\n\n sphereX = x;\n sphereY = y;\n sphereZ = 0;\n }\n\n result[0] = sphereX;\n result[1] = sphereY;\n result[2] = sphereZ;\n return result;\n }", "title": "" }, { "docid": "bf891f6fd092db712b3cb6a6b23dc03d", "score": "0.6103085", "text": "public void generateSphereData(int totalRings, int totalSectors, float radius)\n {\n mVertices = new float[totalRings * totalSectors * 3];\n mNormals = new float[totalRings * totalSectors * 3];\n mTexture = new float[totalRings * totalSectors * 2];\n mIndexes = new char[totalRings * totalSectors * 6];\n\n float R = 1f / (float)(totalRings-1);\n float S = 1f / (float)(totalSectors-1);\n int r, s;\n\n int vertexIndex = 0, textureIndex = 0, indexIndex = 0, normalIndex = 0;\n\n for(r = 0; r < totalRings; r++)\n {\n for(s = 0; s < totalSectors; s++)\n {\n y = (float)Math.sin((-Math.PI / 2f) + Math.PI * r * R );\n x = (float)Math.cos(2f * Math.PI * s * S) * (float)Math.sin(Math.PI * r * R );\n z = (float)Math.sin(2f * Math.PI * s * S) * (float)Math.sin(Math.PI * r * R );\n\n if (mTexture != null)\n {\n mTexture[textureIndex] = s * S;\n mTexture[textureIndex + 1] = r * R;\n\n textureIndex += 2;\n }\n\n mVertices[vertexIndex] = x * radius;\n mVertices[vertexIndex + 1] = y * radius;\n mVertices[vertexIndex + 2] = z * radius;\n\n vertexIndex += 3;\n\n mNormals[normalIndex] = x;\n mNormals[normalIndex + 1] = y;\n mNormals[normalIndex + 2] = z;\n\n normalIndex += 3;\n }\n\n }\n\n\n int r1, s1;\n for(r = 0; r < totalRings ; r++)\n {\n for(s = 0; s < totalSectors ; s++)\n {\n r1 = (r + 1 == totalRings) ? 0 : r + 1;\n s1 = (s + 1 == totalSectors) ? 0 : s + 1;\n\n mIndexes[indexIndex] = (char)(r * totalSectors + s);\n mIndexes[indexIndex + 1] = (char)(r * totalSectors + (s1));\n mIndexes[indexIndex + 2] = (char)((r1) * totalSectors + (s1));\n\n mIndexes[indexIndex + 3] = (char)((r1) * totalSectors + s);\n mIndexes[indexIndex + 4] = (char)((r1) * totalSectors + (s1));\n mIndexes[indexIndex + 5] = (char)(r * totalSectors + s);\n indexIndex += 6;\n }\n }\n }", "title": "" }, { "docid": "1d2e0e9faa86798a3756a7271b4e4de3", "score": "0.5787128", "text": "public void drawSphere() {\n GLES20.glUseProgram(sphereProgram);\n GLES20.glActiveTexture(GLES20.GL_TEXTURE0);\n GLES20.glBindTexture(GLES20.GL_TEXTURE_2D, sphereTexture);\n\n // Set ModelView, MVP, position, normals, and color.\n GLES20.glUniform3fv(sphereLightPosParam, 1, lightPosInEyeSpace, 0);\n GLES20.glUniformMatrix4fv(sphereModelParam, 1, false, modelSphere, 0);\n GLES20.glUniformMatrix4fv(sphereModelViewParam, 1, false, modelView, 0);\n GLES20.glUniformMatrix4fv(sphereModelViewProjectionParam, 1, false, modelViewProjection, 0);\n GLES20.glUniform1i(sphereSamplerParam, 0);\n\n GLES20.glVertexAttribPointer(spherePositionParam, 3, GLES20.GL_FLOAT, false, 12, coordBuffer);\n\n GLES20.glDrawElements(GLES20.GL_TRIANGLES, 192 * 3, GLES20.GL_UNSIGNED_SHORT, indexBuffer);\n\n Helper.checkGLError(\"drawing sphere\");\n }", "title": "" }, { "docid": "0e7b2f8ee5f515cf97370210fff681a6", "score": "0.56355524", "text": "public Sphere() {\r\n setRadius(0.0);\r\n }", "title": "" }, { "docid": "ac56ea8fe1c9f6a8b0776964177049ef", "score": "0.56092894", "text": "public void DrawSphere(float radius,float nSlices,float nSegments) {\nGL11.glBegin(GL11.GL_QUADS);\n\t\t\n\t\tfloat inctheta = (float) ((2.0f*Math.PI)/nSlices);\n\t\tfloat incphi = (float) (Math.PI/nSegments);\n\t\tfor(float theta = -(float) Math.PI;theta<=Math.PI;theta+=inctheta)\n\t\t{\n\t\t\tfor(float phi = -(float) (Math.PI/2.0f);phi<=(Math.PI/2.0f);phi+=incphi)\n\t\t\t{\n\t\t\t\tfloat x =(float) (radius * Math.cos(phi) * Math.cos(theta));\n\t\t\t\tfloat y = (float) (radius * Math.cos(phi)*Math.sin(theta));\n\t\t\t\tfloat z= (float) (radius * Math.sin(phi));\n\t\t\t\tGL11.glNormal3f(x, y, z);//normal the point first\n\t\t\t\tGL11.glVertex3f(x, y, z);//each quad has four points draw each vertices\n\t\t\t\t\n\t\t\t\t \n\t\t\t\tfloat x2 =(float) (radius * Math.cos(phi) * Math.cos(theta+inctheta));//use cos(theta+inctheta) to convert the distance\n\t\t\t\tfloat y2 = (float) (radius * Math.cos(phi)*Math.sin(theta+inctheta));\n\t\t\t\tfloat z2= (float) (radius * Math.sin(phi));\n\t\t\t\tGL11.glNormal3f(x2, y2, z2);\n\t\t\t\tGL11.glVertex3f(x2, y2, z2);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tfloat x3 = (float) (radius * Math.cos(phi+incphi) * Math.cos(theta+inctheta));\n\t\t\t\tfloat y3 = (float) (radius * Math.cos(phi+incphi)*Math.sin(theta+inctheta));\n\t\t\t\tfloat z3= (float) (radius * Math.sin(phi+incphi));\n\t\t\t\tGL11.glNormal3f(x3, y3, z3);\n\t\t\t\tGL11.glVertex3f(x3, y3, z3);\n\t\t\t\t\n\t\t\t\tfloat x4 = (float) (radius * Math.cos(phi+incphi) * Math.cos(theta));\n\t\t\t\tfloat y4 = (float) (radius * Math.cos(phi+incphi)*Math.sin(theta));\n\t\t\t\tfloat z4= (float) (radius * Math.sin(phi+incphi));\n\t\t\t\tGL11.glNormal3f(x4, y4, z4);\n\t\t\t\tGL11.glVertex3f(x4, y4, z4);\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tGL11.glEnd();\n\t}", "title": "" }, { "docid": "cc50941a3f31ee0d414260eaec420d3b", "score": "0.5604942", "text": "public Sphere(Map<String, String> sphereAttributes) {\r\n\t\tsuper(Color.BLACK, Double.valueOf(sphereAttributes.get(\"radius\")));\r\n\r\n\t\tString[] center = sphereAttributes.get(\"center\").split(\"\\\\s+\");\r\n\t\t_center = new Point3D(Double.valueOf(center[0]), Double.valueOf(center[1]), Double.valueOf(center[2]));\r\n\t}", "title": "" }, { "docid": "c290ae82ba7ca22df9071e3c901b3751", "score": "0.5533665", "text": "Sphere(Vec3 center,\n double radius, RGB surfaceColor, double reflection,\n double transparency, RGB emissionColor) {\n this.center = center ;\n this.radius = radius ;\n radius2 = radius * radius ;\n this.surfaceColor = surfaceColor ;\n this.emissionColor = emissionColor ;\n this.transparency = transparency;\n this.reflection = reflection ;\n }", "title": "" }, { "docid": "29e2e3268d3016ed77ea88d853048d01", "score": "0.55329597", "text": "public float getRNormal(float x, float y){\n\t\tint xi, yi, size;\n\t\tfloat xa, ya;\n\t\tsize = terrain.getWidth();\n\t\txa = x * (size - 1);\n\t\tya = y * (size - 1);\n\t\t//System.out.println(\"xa = \" + xa + \", ya = \" + ya);\n\t\txi = (int)xa;\n\t\tyi = (int)ya;\n\t\t//System.out.println(\"xi = \" + xi + \", yi = \" + yi);\n\t\txa -= xi;\n\t\tya -= yi;\n\n\t\tif(xi >= size - 1){\n\t\t\txi = size - 2;\n\t\t\txa = 0.9f;\n\t\t}\n\t\t\n\t\tif(yi >= size - 1){\n\t\t\tyi = size - 2;\n\t\t\tya = 0.9f;\n\t\t}\n\t\t\n\t\tfloat v00, v01, v10, v11;\n\t\tv00 = normals[3 * (yi * size + xi) + 1];\n\t\tv01 = normals[3 * (yi * size + xi + 1) + 1];\n\t\tv10 = normals[3 * ((yi + 1) * size + xi) + 1];\n\t\tv11 = normals[3 * ((yi + 1) * size + xi + 1) + 1];\n\t\treturn (xa * ((ya * v11) + ((1 - ya) * v01))) +\n\t\t\t\t((1 - xa) * ((ya * v10) + ((1 - ya) * v00)));\n\t}", "title": "" }, { "docid": "549582fae0e05e48857cf0d7cd2060c4", "score": "0.55088025", "text": "private double getSphereArea() {\n\t\t\t\treturn (double) (4 * Math.PI * (radius*radius));\t\t\r\n\t\t\t}", "title": "" }, { "docid": "21a876ba2420d785c97cb72158d409cf", "score": "0.54939663", "text": "private double getSphereVolume(){\n\t\t\t\treturn (double) ((4/3)* Math.PI * (radius*radius*radius));\r\n\t\t\t}", "title": "" }, { "docid": "ea7fbe12cf572db2ae0261ecf0d69a1b", "score": "0.5481004", "text": "public static final R4toR3 RotationZForSphere(double h) {\r\n return PhiFactory.RotationZ(h).velocity;\r\n }", "title": "" }, { "docid": "009a3486deb66eda126bd771387095fb", "score": "0.544378", "text": "public Sphere(Point3D _center, double _radius) {\n super(_radius);\n this._center = new Point3D(_center);\n\n }", "title": "" }, { "docid": "7320a213fd23374706901f6929b42ad0", "score": "0.5425157", "text": "@Override\n\tpublic String toString()\n {\n\t\treturn \"Sphere [radius=\" + radius + \"]\";\n\t}", "title": "" }, { "docid": "e3a08bca60b46f1d4747bc3fbb6c17bd", "score": "0.5418962", "text": "public void calcHemisphere( double params[] ) {\n setR( params[1] );\n vol = Math.PI * r * r * r * 2 / 3;\n }", "title": "" }, { "docid": "e84b2c4de503dfa19ee387aab8540237", "score": "0.5418215", "text": "@Test\n public void getNormal()\n {\n Sphere sphere=new Sphere(5,new Point3D(1,2,2));\n Vector normal=new Vector(0,-4d/5,-3d/5).normalize();\n assertTrue(sphere.getNormal(new Point3D(1,-2,-1)).equals(normal));\n\n\n }", "title": "" }, { "docid": "1202082c5063037c7c44c47823bc58b5", "score": "0.5415928", "text": "public Sphere getPlayerSphere()\n {\n return m_playerSphere;\n\n }", "title": "" }, { "docid": "bc72fbcafb0de488784e8844fb16a5a2", "score": "0.54157215", "text": "public Sphere(Point3D p, double radus)\n {\n super(radus);\n _center = new Point3D(p);\n }", "title": "" }, { "docid": "fe6708051f122ec78458c00cb73c14f4", "score": "0.5415048", "text": "public Sphere()\n {\n\t\tthis(0.0);\n\t}", "title": "" }, { "docid": "2fd58549c6c0892bf9aa57155d1323b5", "score": "0.5396929", "text": "public BoundingSphere getBoundingSphere() {\n BoundingSphere bs = new BoundingSphere();\n bs.expandBy(getBoundingBox());\n return bs;\n }", "title": "" }, { "docid": "d5d3ad8791625c3fba6f79ed51699a13", "score": "0.5381944", "text": "public static double sphereSurface(double r) {\r\n final double MULTIPLIER = 4;\r\n return MULTIPLIER * Math.PI * Math.pow(r, 2);\r\n }", "title": "" }, { "docid": "a265557b8ba433fda8c2569d17de2721", "score": "0.5376362", "text": "public Sphere(Color _emmision, Material _material, Point3D _center, double _radius) {\n super(_emmision, _material, _radius);\n this._center = new Point3D(_center);\n\n }", "title": "" }, { "docid": "178aced3d9a9d867a270718bd668d546", "score": "0.5368266", "text": "@Override\r\n\tpublic float[] getNormals() {\n\t\treturn cubeNormalData;\r\n\t}", "title": "" }, { "docid": "799422153f2f1f2442fb08a3fbf7ad42", "score": "0.53520393", "text": "public Jvector mouse2sphere(double x, double y) {\n Jvector v = new Jvector((x - center_x) / radius, (y - center_y) / radius, 0);\n double mag_sq = v.x * v.x + v.y * v.y;\n if (mag_sq > 1.0) {\n v.normalize();\n } else {\n v.z = Math.sqrt(1.0 - mag_sq);\n }\n if (axis != Constrain.FREE) {\n v = constrainVector(v, axisSet[axis.index()]);\n }\n return v;\n }", "title": "" }, { "docid": "acd1557537a3b44207c9035448b4e8b3", "score": "0.5304589", "text": "public int getHemiSphereIndex(int level)\r\n\t{\r\n\t\treturn list_base + level * 4 + 3;\r\n\t}", "title": "" }, { "docid": "bd4af9e3a2b273ff2ae1521881eedb80", "score": "0.52704525", "text": "public static void main(String[] args) throws Exception{\r\n\t int i, j, k; /* voxel index in x,y,z */\r\n\t double x0, y0, z0; /* sphere center position */\r\n\t double x, y, z; /* current cell position */\r\n\t double cellsize = BOXSIZE/NDIV; /* current cell size */\r\n\t \r\n\t \r\n\t /*\r\n\t * Create a buffered reader to read the user input from the console\r\n\t * User will enter three doubles to specify the sphere's center\r\n\t */\r\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\r\n\t \r\n\t System.out.println(\"Input coordinates (e.g. 2 0 0):\");\r\n\t StringTokenizer st = new StringTokenizer(br.readLine());\r\n\t \r\n\t x0 = Double.parseDouble(st.nextToken());\r\n\t y0 = Double.parseDouble(st.nextToken());\r\n\t z0 = Double.parseDouble(st.nextToken());\r\n\t\r\n\t /* open the target VRML file, \"voxel.wrl\" */\r\n\t PrintStream output = new PrintStream(new FileOutputStream(new File(\"voxel.wrl\")));\r\n\t\r\n\t output.print(\"#VRML V2.0 utf8\\n\\n\");\r\n\t /* draw the cube and the sphere */\r\n\t output.print(\"Background { skyColor 1 1 1 }\\n\");\r\n\t output.print(\"NavigationInfo { type \\\"EXAMINE\\\"}\\n\");\r\n\t\r\n\t output.print(\"Shape {\\n\");\r\n\t output.print(\"\\tappearance Appearance { material Material { diffuseColor 0 0 1 }}\\n\");\r\n\t output.print(\"\\tgeometry Box { size \" + WIDTH + \" \" + HEIGHT + \" \" + DEPTH + \"}\\n\");\r\n\t output.print(\"}\\n\");\r\n\t\r\n\t output.print(\"Transform {\\n\");\r\n\t output.print(\"\\ttranslation \" + x0 + \" \" + y0 + \" \" + z0 + \"\\n\");\r\n\t output.print(\"\\tchildren Shape {\\n\");\r\n\t output.print(\"\\t\\tgeometry Sphere { radius \" + RADIUS + \"}\\n\");\r\n\t output.print(\"\\t\\tappearance Appearance { material Material { diffuseColor 1 0 0 }}\\n\");\r\n\t output.print(\"\\t}\\n\");\r\n\t output.print(\"}\\n\");\r\n\t\r\n\t output.print(\"Transform {\\n\");\r\n\t output.print(\"\\ttranslation 0.0 \" + 1.5*BOXSIZE + \"0.0\\n\");\r\n\t output.print(\"\\tchildren [\\n\");\r\n\t\r\n\t \r\n\t /*\r\n\t * visit each voxel and draw a cube if the voxel center is inside\r\n\t * the solid defined as: Solid = Cube -* Sphere.\r\n\t */\r\n\t for(k=0; k<NDIV; k++){\r\n\t for(j=0; j<NDIV; j++){\r\n\t for(i=0; i<NDIV; i++){\r\n\t x = BOXPOSX + i*cellsize;\r\n\t y = BOXPOSY + j*cellsize;\r\n\t z = BOXPOSZ + k*cellsize;\r\n\t if ( in_cube(x,y,z) == 1 && in_sphere(x,y,z,x0,y0,z0) == 0 ) {\r\n\t\t\t output.print(\"\\tTransform {\\n\");\r\n\t\t\t output.print(\"\\t\\ttranslation \" + x + \" \" + y + \" \" + z + \"\\n\");\r\n\t\t\t output.print(\"\\t\\tchildren Shape {\\n\");\r\n\t\t\t output.print(\"\\t\\t\\tappearance Appearance { material Material { diffuseColor 0 0 1 }}\\n\");\r\n\t\t\t output.print(\"\\t\\t\\tgeometry Box {size \" + 0.9*cellsize + \" \" + 0.9*cellsize + \" \" + 0.9*cellsize + \"}\\n\");\r\n\t output.print(\"\\t\\t}\\n\");\r\n\t output.print(\"\\t},\\n\");\r\n\t }\r\n\t }\r\n\t }\r\n\t }\r\n\t\r\n\t output.print(\"\\t]\\n\"); // close children\r\n\t output.print(\"}\\n\"); // close Transform\r\n\t\r\n\t\r\n\t /* close the target VRML file \"output.wrl\" */\r\n\t output.close();\r\n\t}", "title": "" }, { "docid": "9bb6b17fdac6c2cdec4e447231589733", "score": "0.5255103", "text": "protected void calcTerrainNormals(){\n\t\t\n\t\tint size = terrain.getWidth();\n\t\tnormals = new float[size * size * 3];\n\t\t\n\t\tfloat[] v1 = new float[3];\n\t\tfloat[] v2 = new float[3];\n\t\tfloat[] norm = new float[3];\n\t\t//System.out.println(\"starting to calulate unscaled normals.\");\n\t\tfor(int y = 0; y + 1 < size; y++){\n\t\t\t//System.out.println(\"y = \" + y);\n\t\t\tfor(int x = 0; x + 1 < size; x++){\n\t\t\t\tv1[0] = 0;\n\t\t\t\tv1[1] = vertices[3 * (size * (y + 1) + x) + 1] - vertices[3 * (size * y + x) + 1];\n\t\t\t\tv1[2] = scale;\n\n\t\t\t\tv2[0] = scale;\n\t\t\t\tv2[1] = vertices[3 * (size * y + x + 1) + 1] - vertices[3 * (size * y + x) + 1];\n\t\t\t\tv2[2] = 0;\n\n\t\t\t\tnorm = normal(v1, v2);\n\t\t\t\tnorm = normalize(norm[0], norm[1], norm[2]);\n\n\t\t\t\tnormals[3 * (y * size + x) + 0] += norm[0];\n\t\t\t\tnormals[3 * (y * size + x) + 1] += norm[1];\n\t\t\t\tnormals[3 * (y * size + x) + 2] += norm[2];\n\t\t\t\tnormals[3 * ((y + 1) * size + x) + 0] += norm[0];\n\t\t\t\tnormals[3 * ((y + 1) * size + x) + 1] += norm[1];\n\t\t\t\tnormals[3 * ((y + 1) * size + x) + 2] += norm[2];\n\t\t\t\tnormals[3 * (y * size + (x + 1)) + 0] += norm[0];\n\t\t\t\tnormals[3 * (y * size + (x + 1)) + 1] += norm[1];\n\t\t\t\tnormals[3 * (y * size + (x + 1)) + 2] += norm[2];\n\t\t\t\t\n\t\t\t\tv1[0] = 0;\n\t\t\t\tv1[1] = vertices[3 * (size * (y + 1) + x + 1) + 1] - vertices[3 * (size * y + x + 1) + 1];\n\t\t\t\tv1[2] = scale;\n\t\t\t\t\n\t\t\t\tv2[0] = scale;\n\t\t\t\tv2[1] = vertices[3 * (size * (y + 1) + x + 1) + 1] - vertices[3 * (size * (y + 1) + x) + 1];\n\t\t\t\tv2[2] = 0;\n\n\t\t\t\tnorm = normal(v1, v2);\n\t\t\t\tnorm = normalize(norm[0], norm[1], norm[2]);\n\n\t\t\t\tnormals[3 * ((y + 1) * size + x) + 0] += norm[0];\n\t\t\t\tnormals[3 * ((y + 1) * size + x) + 1] += norm[1];\n\t\t\t\tnormals[3 * ((y + 1) * size + x) + 2] += norm[2];\n\t\t\t\tnormals[3 * (y * size + (x + 1)) + 0] += norm[0];\n\t\t\t\tnormals[3 * (y * size + (x + 1)) + 1] += norm[1];\n\t\t\t\tnormals[3 * (y * size + (x + 1)) + 2] += norm[2];\n\t\t\t\tnormals[3 * ((y + 1) * size + (x + 1)) + 0] += norm[0];\n\t\t\t\tnormals[3 * ((y + 1) * size + (x + 1)) + 1] += norm[1];\n\t\t\t\tnormals[3 * ((y + 1) * size + (x + 1)) + 2] += norm[2];\n\t\t\t}\n\t\t}\n\t\t//System.out.println(\"unscaled normals, ok!\");\n\t\tfloat[] nized;\n\t\tfor(int i = 0; i < size * size; i++){\n\t\t\tnized = normalize(normals[3 * i],\n\t\t\t\t\tnormals[3 * i + 1],\n\t\t\t\t\tnormals[3 * i + 2]);\n\t\t\tnormals[3 * i + 0] = nized[0];\n\t\t\tnormals[3 * i + 1] = nized[1];\n\t\t\tnormals[3 * i + 2] = nized[2];\n\t\t\t//System.out.println(\"Sample normal = \" + nized[1]);\n\t\t}\n\t\tnormalsB.put(normals);\n\t\tnormalsB.rewind();\n\t}", "title": "" }, { "docid": "414283ba055294aa80bbc69cc0dc548d", "score": "0.5194591", "text": "public SbVec3fArray getGeneratedNormals()\n { return generator.getNormals(); }", "title": "" }, { "docid": "4e7a4875bae5fc0669afda471c312b86", "score": "0.51771986", "text": "public static double volumeHemisphere(double radius) {\n return (2 * Math.PI * radius * radius * radius) / 3;\n }", "title": "" }, { "docid": "5dc5651a459b163cd50e961fe629b47d", "score": "0.5165233", "text": "public Sphere(Color _emmision, Point3D _center, double _radius) {\n this(_emmision, new Material(0, 0, 0), _center, _radius);\n\n }", "title": "" }, { "docid": "4466f3eb6cb468b7d6d4db853920b5f6", "score": "0.51617837", "text": "@Override\n UnitVector3DBasics getNormal();", "title": "" }, { "docid": "670a078152d3d4638d1069164c77bfe7", "score": "0.51439613", "text": "public static List<BlockPos> generateSolidSphere(float radius) {\n List<BlockPos> posList = new ArrayList<>();\n\n // Checks distance away from the center to see if the point is within the circle\n for (int x = (int) -radius; x < radius; x++) {\n for (int y = (int) -radius; y < radius; y++) {\n for (int z = (int) -radius; z < radius; z++) {\n if ((x * x) + (y * y) + (z * z) <= (radius * radius)) {\n posList.add(new BlockPos(x, y, z));\n }\n }\n }\n }\n\n return posList;\n }", "title": "" }, { "docid": "49c305fdb4256b941a454bf1c3d83f78", "score": "0.51402915", "text": "private List<Float3Vector> createTexCoords() {\r\n ArrayList<Float3Vector> result = new ArrayList<Float3Vector>();\r\n\r\n result.add(new Float3Vector(0, 0, 0));\r\n result.add(new Float3Vector(0, 1, 0));\r\n result.add(new Float3Vector(1, 1, 0));\r\n result.add(new Float3Vector(0, 0, 0));\r\n result.add(new Float3Vector(1, 1, 0));\r\n result.add(new Float3Vector(1, 0, 0));\r\n\r\n return result;\r\n }", "title": "" }, { "docid": "503f1e1183a863bde5fd626041ff8ef9", "score": "0.5133834", "text": "IModelData getNormals();", "title": "" }, { "docid": "6ca8a76801ff72a8e87fbdec647986b9", "score": "0.50735015", "text": "public Sphere_old(float radius, double step) {\n this.mRaduis = radius;\n this.mStep = step;\n\n //ByteBuffer bb = ByteBuffer.wrap(new byte[] { 0, 0, 0, 0, 0, 0, 0, 'a' });\n // ByteBuffer bb = ByteBuffer.wrap(new byte[40000]);\n //bb.rewind();\n //FloatBuffer fb = ((ByteBuffer) bb.rewind()).asFloatBuffer();\n //sphereVertex = FloatBuffer.allocate(40000);\n // sphereVertex =((ByteBuffer) bb.rewind()).asFloatBuffer();\n\n // sphereVertex.allocateDirect(40000).order(ByteOrder.nativeOrder()).asFloatBuffer();\n // sphereVertex = FloatBuffer.allocate(1000).\n\n int NrOfBytes = 4000;\n // in voorbeeld:\n // NrOfBytes = 2 * 2 * 3 * 4 = 48\n\n ByteBuffer bb = ByteBuffer.allocateDirect(NrOfBytes); //!!!!!!!!!!\n bb.order(ByteOrder.nativeOrder());\n sphereVertex = bb.asFloatBuffer();\n // sphereVertex.put(arrayVertecesLines);\n bb.position(0);\n // sphereVertex.position(0);\n\n\n mPoints = build();\n Log.d(\"ALIS CHECK!!!!!!\", \" COUNT:\" + mPoints);\n }", "title": "" }, { "docid": "d606bc66873d929730ae76670c9a6f3e", "score": "0.50710154", "text": "@Override\n public void onSurfaceCreated(EGLConfig config) {\n Log.i(TAG, \"onSurfaceCreated\");\n\n sphereTexture = Helper.loadGLTexture(getApplicationContext(), R.drawable.sample);\n Log.e(TAG, sphereTexture + \" is the texture id\");\n\n GLES20.glClearColor(0.1f, 0.1f, 0.1f, 0.5f); // Dark background so text shows up well.\n\n coordBuffer = null;\n indexBuffer = null;\n\n coordBuffer = ByteBuffer.allocateDirect(WorldLayoutData.SPHERE_COORDS.length * 4).order(ByteOrder.nativeOrder()).asFloatBuffer();\n coordBuffer.put(WorldLayoutData.SPHERE_COORDS);\n coordBuffer.position(0);\n\n indexBuffer = ByteBuffer.allocateDirect(WorldLayoutData.SPHERE_INDICES.length * 2).order(ByteOrder.nativeOrder()).asShortBuffer();\n indexBuffer.put(WorldLayoutData.SPHERE_INDICES);\n indexBuffer.position(0);\n\n int sphereVertexShader = Helper.loadGLShader(getApplicationContext(), GLES20.GL_VERTEX_SHADER, R.raw.sphere_vertex);\n int sphereFragmentShader = Helper.loadGLShader(getApplicationContext(), GLES20.GL_FRAGMENT_SHADER, R.raw.sphere_fragment);\n\n sphereProgram = GLES20.glCreateProgram();\n GLES20.glAttachShader(sphereProgram, sphereVertexShader);\n GLES20.glAttachShader(sphereProgram, sphereFragmentShader);\n GLES20.glLinkProgram(sphereProgram);\n GLES20.glUseProgram(sphereProgram);\n\n Helper.checkGLError(\"Sphere program\");\n\n sphereModelParam = GLES20.glGetUniformLocation(sphereProgram, \"u_Model\");\n sphereModelViewParam = GLES20.glGetUniformLocation(sphereProgram, \"u_MVMatrix\");\n sphereModelViewProjectionParam = GLES20.glGetUniformLocation(sphereProgram, \"u_MVP\");\n sphereLightPosParam = GLES20.glGetUniformLocation(sphereProgram, \"u_LightPos\");\n\n sphereSamplerParam = GLES20.glGetUniformLocation(sphereProgram, \"s_Texture\");\n if (sphereSamplerParam == -1)\n Log.e(TAG, \"sampler is null\");\n\n spherePositionParam = GLES20.glGetAttribLocation(sphereProgram, \"a_Position\");\n GLES20.glEnableVertexAttribArray(spherePositionParam);\n\n Helper.checkGLError(\"Sphere program params\");\n\n\n Matrix.setIdentityM(modelSphere, 0);\n Matrix.rotateM(modelSphere, 0, 90, 1, 0, 0);\n Matrix.scaleM(modelSphere, 0, 50, 50, 50);\n\n Helper.checkGLError(\"onSurfaceCreated\");\n }", "title": "" }, { "docid": "164f196c9f2821b59757610ff1892d5d", "score": "0.50475085", "text": "@Override\r\n public void add(Sphere3D s, DrawAttributes attrs) {\n\r\n }", "title": "" }, { "docid": "1f5b5074a3f9fa855aeb6eb438e32636", "score": "0.50305504", "text": "private List<Float3Vector> createNormals(Float3Vector normalToCreate) {\r\n ArrayList<Float3Vector> result = new ArrayList<Float3Vector>();\r\n\r\n for (int i = 0; i < VERTICES_PER_QUAD; i++) {\r\n result.add(new Float3Vector(normalToCreate));\r\n }\r\n\r\n return result;\r\n }", "title": "" }, { "docid": "5dc332cc15a260f47abb2e9939fe6dab", "score": "0.50295264", "text": "public Box(float width, float height, float depth, boolean bottom) {\r\n super(VertexFormat.TRIANGLES);\r\n\r\n Point4[] vertices = makeVertices(width, height, depth);\r\n\r\n List<Float4Vector> allPoints = new ArrayList<Float4Vector>();\r\n List<Float3Vector> allNormals = new ArrayList<Float3Vector>();\r\n List<Float3Vector> allTexCoords = new ArrayList<Float3Vector>();\r\n\r\n // FRONT QUAD\r\n List<Point4> points = tesselate(vertices, 1, 0, 3, 2);\r\n List<Float3Vector> normals = createNormals(new Float3Vector(0, 0, -1));\r\n List<Float3Vector> tCoords = createTexCoords();\r\n\r\n allPoints.addAll(points);\r\n allNormals.addAll(normals);\r\n allTexCoords.addAll(tCoords);\r\n\r\n // RIGHT QUAD\r\n points = tesselate(vertices, 2, 3, 7, 6);\r\n normals = createNormals(new Float3Vector(1, 0, 0));\r\n tCoords = createTexCoords();\r\n\r\n allPoints.addAll(points);\r\n allNormals.addAll(normals);\r\n allTexCoords.addAll(tCoords);\r\n\r\n if (bottom) {\r\n // BOTTOM QUAD\r\n points = tesselate(vertices, 3, 0, 4, 7);\r\n normals = createNormals(new Float3Vector(0, -1, 0));\r\n tCoords = createTexCoords();\r\n\r\n allPoints.addAll(points);\r\n allNormals.addAll(normals);\r\n allTexCoords.addAll(tCoords);\r\n }\r\n\r\n // TOP QUAD\r\n points = tesselate(vertices, 6, 5, 1, 2);\r\n normals = createNormals(new Float3Vector(0, 1, 0));\r\n tCoords = createTexCoords();\r\n\r\n allPoints.addAll(points);\r\n allNormals.addAll(normals);\r\n allTexCoords.addAll(tCoords);\r\n\r\n // BACK QUAD\r\n points = tesselate(vertices, 4, 5, 6, 7);\r\n normals = createNormals(new Float3Vector(0, 0, 1));\r\n tCoords = createTexCoords();\r\n\r\n allPoints.addAll(points);\r\n allNormals.addAll(normals);\r\n allTexCoords.addAll(tCoords);\r\n\r\n // LEFT QUAD\r\n points = tesselate(vertices, 5, 4, 0, 1);\r\n normals = createNormals(new Float3Vector(-1, 0, 0));\r\n tCoords = createTexCoords();\r\n\r\n allPoints.addAll(points);\r\n allNormals.addAll(normals);\r\n allTexCoords.addAll(tCoords);\r\n\r\n final int floatsPerFloat4Vector = 4;\r\n this.setNumVertices(allPoints.size() / floatsPerFloat4Vector);\r\n\r\n this.setVertices(FloatVectorMath.vec4ListToBuffer(allPoints));\r\n this.setNormals(FloatVectorMath.vec3ListToBuffer(allNormals));\r\n this.setTexCoords(FloatVectorMath.vec3ListToBuffer(allTexCoords));\r\n }", "title": "" }, { "docid": "2d7717a050e211c3e87695c3daa93395", "score": "0.50284684", "text": "public static final R4toR3 RotationForSphere(Vector axis, double h) {\r\n return PhiFactory.Rotation(axis.unitVector(), h).velocity;\r\n }", "title": "" }, { "docid": "cd45671c59f7d025116c5296ea312fb6", "score": "0.5020255", "text": "@Test\n public void trianglesTransparentSphere() {\n Scene scene = new Scene(\"Test scene\");\n scene.set_camera(new Camera(new Point3D(0, 0, -1000), new Vector(0, 0, 1), new Vector(0, -1, 0)));\n scene.set_distance(1000);\n scene.set_background(Color.BLACK);\n scene.set_ambientLight(new AmbientLight(new Color(java.awt.Color.WHITE), 0.15));\n\n scene.addGeometries( //\n new Triangle(Color.BLACK, new Material(0.5, 0.5, 60), //\n new Point3D(-150, 150, 115), new Point3D(150, 150, 135), new Point3D(75, -75, 150)), //\n new Triangle(Color.BLACK, new Material(0.5, 0.5, 60), //\n new Point3D(-150, 150, 115), new Point3D(-70, -70, 140), new Point3D(75, -75, 150)), //\n new Sphere(new Color(java.awt.Color.BLUE), new Material(0.2, 0.2, 30, 0.6, 0), // )\n 30, new Point3D(60, -50, 50)));\n\n scene.addLights(new SpotLight(new Color(700, 400, 400), //\n new Point3D(60, -50, 0), 1, 4E-5, 2E-7, new Vector(0, 0, 1)));\n\n ImageWriter imageWriter = new ImageWriter(\"shadow with transparency2\", 200, 200, 600, 600);\n Render render = new Render(imageWriter, scene).setAmountOfRaysForSoftShadow(300).setMultithreading(3).setDebugPrint().setRadiusOfLightSource(5);\n\n render.renderImage();\n render.writeToImage();\n }", "title": "" }, { "docid": "a3565fc7a9c4022eb5ce5d8d09c8c047", "score": "0.499718", "text": "public Sphere(Color emmission, double rad, Point3D cen) {\r\n\t\tsuper(emmission, rad);\r\n\t\t_center = cen;\r\n\t}", "title": "" }, { "docid": "a583ab01aef312b58c3e384bca1aeddd", "score": "0.49935144", "text": "public VectorXZ getNorthUnit();", "title": "" }, { "docid": "8bd1e0a759dab7a96234b456e7d42834", "score": "0.4985972", "text": "private void makeColumn(final double x, final double y){\n world.addGeometry(new AxisAlignedBox(new Point3(x - 0.75, y - 0.75, 5.7), new Point3(x + 0.75, y + 0.75 , 6), new PhongMaterial(new SingleColorTexture(new Color(0.8, 0.8, 0.7)), new SingleColorTexture(new Color(1, 1, 1)), 32)));\n world.addGeometry(new AxisAlignedBox(new Point3(x - 0.6, y - 0.6, 5.5), new Point3(x + 0.6, y + 0.6 , 5.7), new PhongMaterial(new SingleColorTexture(new Color(0.8, 0.8, 0.7)), new SingleColorTexture(new Color(1, 1, 1)), 32)));\n world.addGeometry(new Sphere(new Point3(x, y, 5.5), 0.55, new PhongMaterial(new SingleColorTexture(new Color(0.8, 0.8, 0.7)), new SingleColorTexture(new Color(1, 1, 1)), 32)));\n world.addGeometry(new ZAxisAlignedCylinder(new Point3(x, y, 0.5), 5, 0.5, new PhongMaterial(new SingleColorTexture(new Color(0.8, 0.8, 0.7)), new SingleColorTexture(new Color(1, 1, 1)), 32)));\n world.addGeometry(new AxisAlignedBox(new Point3(x - 0.6, y - 0.6, 0.3), new Point3(x + 0.6, y + 0.6 , 0.5), new PhongMaterial(new SingleColorTexture(new Color(0.8, 0.8, 0.7)), new SingleColorTexture(new Color(1, 1, 1)), 32)));\n world.addGeometry(new AxisAlignedBox(new Point3(x - 0.75, y - 0.75, 0), new Point3(x + 0.75, y + 0.75 , 0.3), new PhongMaterial(new SingleColorTexture(new Color(0.8, 0.8, 0.7)), new SingleColorTexture(new Color(1, 1, 1)), 32)));\n }", "title": "" }, { "docid": "2e619a2bdd18fdb9a620fc2727d852c2", "score": "0.49615598", "text": "public static Vec3f axisZ() {\n return new Vec3f(0, 0, 1);\n }", "title": "" }, { "docid": "74bc41a094c89b09b8befee405b5f8e7", "score": "0.49593922", "text": "public Sphere(Vec3f position, float radius, Material material) {\n\t\tm_position = position;\n\t\tm_radius = radius;\n\t\tm_material = material;\n\t}", "title": "" }, { "docid": "4f4d7ae4bed3f61a41e7b2d703283c84", "score": "0.4954447", "text": "public double phi() {\n\t\tdouble r = Math.sqrt( x * x + y * y );\n\t\tif( r == 0 ) {\n\t\t\tif( z > 0 )\n\t\t\t\treturn Math.PI / 2;\n\t\t\telse if( z < 0 )\n\t\t\t\treturn -Math.PI / 2;\n\t\t\telse\n\t\t\t\treturn 0;\n\t\t} else\n\t\t\treturn Math.atan( z / r );\n\t}", "title": "" }, { "docid": "b5b1d8eb90ced3fb1e23a4629927f761", "score": "0.49459374", "text": "@Override\n public double surface()\n {\n double s = 4 * Math.PI * Math.pow(this.radius, 3);\n return s;\n }", "title": "" }, { "docid": "07495a45fe8de2518ce697f43f2a61f0", "score": "0.49446437", "text": "public Sphere(Color emmission, Material material, double rad, Point3D cen) {\r\n\t\tsuper(emmission, material, rad);\r\n\t\t_center = cen;\r\n\t}", "title": "" }, { "docid": "05554eafb9831d8f263da2004067158c", "score": "0.49315205", "text": "public static void sphereSector(\r\n\t\tGL gl,\r\n\t\tint slices,\r\n\t\tint stacks,\r\n\t\tint loslice,\r\n\t\tint hislice,\r\n\t\tint lostack,\r\n\t\tint histack,\r\n\t\tboolean nmls,\r\n\t\tboolean hemi,\r\n\t\tfloat txs,\r\n\t\tfloat tys,\r\n\t\tfloat tx0,\r\n\t\tfloat ty0)\r\n\t{\n\t\tdouble sintab[] = new double[slices + 1];\r\n\t\tdouble costab[] = new double[slices + 1];\r\n\t\tfor (int i = 0; i <= slices; i++)\r\n\t\t{\r\n\t\t\tdouble ii = i * 1d / slices;\r\n\t\t\tdouble ti = (hislice - i) * 1d / (hislice - loslice);\r\n\t\t\tdouble theta = Math.PI * 2 * ii;\r\n\t\t\tsintab[i] = Math.sin(theta);\r\n\t\t\tcostab[i] = Math.cos(theta);\r\n\t\t}\r\n\r\n\t\tdouble cx, sx, cy, sy, cy2, sy2, jj, jj2, theta;\r\n\t\tdouble tj, tj2;\r\n\t\tjj = lostack * 1d / stacks;\r\n\t\ttj = 0;\r\n\t\tcy = Math.cos(Math.PI * jj);\r\n\t\tsy = Math.sin(Math.PI * jj);\r\n\r\n\t\t// iterate over stacks\r\n\t\tint endstack = hemi ? histack / 2 + 1 : histack;\r\n\t\tfor (int j = lostack + 1; j <= endstack; j++)\r\n\t\t{\r\n\t\t\tjj2 = jj;\r\n\t\t\tjj = j * 1d / stacks;\r\n\t\t\ttj2 = tj;\r\n\t\t\ttj = (j - lostack) * 1d / (histack - lostack);\r\n\t\t\tcy2 = cy;\r\n\t\t\tsy2 = sy;\r\n\t\t\tcy = Math.cos(Math.PI * jj);\r\n\t\t\tsy = Math.sin(Math.PI * jj);\r\n\r\n\t\t\t// don't make degenerate quads -- use triangles\r\n\t\t\tboolean atTop = (j == 1);\r\n\t\t\tboolean atBottom = (j == stacks);\r\n\t\t\tint p = 0;\r\n\t\t\tgl.glBegin(/* (atTop||atBottom) ? GL.GL_TRIANGLES : */\r\n\t\t\tGL.GL_QUAD_STRIP);\r\n\t\t\tfor (int i = loslice; i <= hislice; i++)\r\n\t\t\t{\r\n\t\t\t\tdouble texx, texy;\r\n\t\t\t\tdouble ti = (hislice - i) * 1d / (hislice - loslice);\r\n\t\t\t\tsx = sintab[i];\r\n\t\t\t\tcx = costab[i];\r\n\r\n\t\t\t\ttexx = ti * txs + tx0;\r\n\t\t\t\ttexy = tj * tys + ty0;\r\n\t\t\t\t//\t\t\t\tif (hemi)\r\n\t\t\t\t//\t\t\t\t\ttexy = expcorrect(texy);\r\n\t\t\t\tgl.glTexCoord2d(texx, texy);\r\n\t\t\t\tif (nmls)\r\n\t\t\t\t\tgl.glNormal3d(-sy * cx, sy * sx, cy);\r\n\t\t\t\tgl.glVertex3d(-sy * cx, sy * sx, cy);\r\n\r\n\t\t\t\ttexy = tj2 * tys + ty0;\r\n\t\t\t\t//\t\t\t\tif (hemi)\r\n\t\t\t\t//\t\t\t\t\ttexy = expcorrect(texy);\r\n\t\t\t\tgl.glTexCoord2d(texx, texy);\r\n\t\t\t\tif (nmls)\r\n\t\t\t\t\tgl.glNormal3d(-sy2 * cx, sy2 * sx, cy2);\r\n\t\t\t\tgl.glVertex3d(-sy2 * cx, sy2 * sx, cy2);\r\n\t\t\t}\r\n\t\t\tgl.glEnd();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "b2791fe0d8ec7a72ad0674b1d03b476c", "score": "0.49296445", "text": "public int getSphereIndex(int level)\r\n\t{\r\n\t\treturn list_base + level * 4;\r\n\t}", "title": "" }, { "docid": "6ffce936596eba14759977a5431d2e08", "score": "0.4922732", "text": "@Override\r\n\tpublic FloatBuffer getNormalsBuffer() {\n\t\treturn mCubeNormals;\r\n\t}", "title": "" }, { "docid": "8f35c66eeffdf6aefc0dfff9f11c3753", "score": "0.4920369", "text": "public SphereCoords ()\n {\n }", "title": "" }, { "docid": "4baebd3a60f24a9540387b93bb0b92fc", "score": "0.48736057", "text": "public Sphere(Point3D center, double radius, double kdr, double kdg, double kdb, double krr, double krg, double krb,\n\t\t\tdouble krn) {\n\t\tsuper();\n\t\tthis.center = center;\n\t\tthis.radius = radius;\n\t\tthis.kdr = kdr;\n\t\tthis.kdg = kdg;\n\t\tthis.kdb = kdb;\n\t\tthis.krr = krr;\n\t\tthis.krg = krg;\n\t\tthis.krb = krb;\n\t\tthis.krn = krn;\n\t}", "title": "" }, { "docid": "356a4e0876fd4047f11c5737f873075d", "score": "0.48691952", "text": "public Sphere(Point3D center, double radius, double kdr, double kdg, double kdb, double krr,\n\t\t\tdouble krg, double krb, double krn) {\n\t\tsuper();\n\t\tthis.center = center;\n\t\tthis.radius = radius;\n\t\tthis.krr = krr;\n\t\tthis.krg = krg;\n\t\tthis.krb = krb;\n\t\tthis.kdb = kdb;\n\t\tthis.kdg = kdg;\n\t\tthis.kdr = kdr;\n\t\tthis.krn = krn;\n\t}", "title": "" }, { "docid": "eb778c0f4b4a2adad3870d9e945d3b3e", "score": "0.48558238", "text": "public static double sphereVolume(double r) {\r\n final double MULTIPLIER = 4 / 3;\r\n return MULTIPLIER * Math.PI * Math.pow(r, 3);\r\n }", "title": "" }, { "docid": "fddcede1e46d6e1edb5adaf2583d809d", "score": "0.484495", "text": "@Override\n protected float zCoord(float radius, float angle)\n {\n return (float)( radius * cos(lathe3DSettings.k * angle) * sin(angle) );\n }", "title": "" }, { "docid": "864159a4ad064325d894b760e0ab115a", "score": "0.48338065", "text": "public IndexedTriangleArray tessellateSphere(float radius, int subdivisions)\n {\n if (radius < 0)\n {\n String message = Logging.getMessage(\"generic.ArgumentOutOfRange\", \"radius < 0\");\n Logging.logger().severe(message);\n throw new IllegalArgumentException(message);\n }\n if (subdivisions < 0)\n {\n String message = Logging.getMessage(\"generic.ArgumentOutOfRange\", \"subdivisions < 0\");\n Logging.logger().severe(message);\n throw new IllegalArgumentException(message);\n }\n\n int[] indexArray = new int[ICOSAHEDRON_INDEX_COUNT];\n float[] vertexArray = new float[3 * ICOSAHEDRON_VERTEX_COUNT];\n System.arraycopy(icosahedronIndexArray, 0, indexArray, 0, ICOSAHEDRON_INDEX_COUNT);\n System.arraycopy(icosahedronVertexArray, 0, vertexArray, 0, 3 * ICOSAHEDRON_VERTEX_COUNT);\n\n // The static icosahedron tessellation is assumed to be viewed from the outside. If the orientation is set to\n // inside, then we must reverse the winding order for each triangle's indices.\n if (this.orientation == INSIDE)\n {\n for (int index = 0; index < ICOSAHEDRON_INDEX_COUNT; index += 3)\n {\n int tmp = indexArray[index];\n indexArray[index] = indexArray[index + 2];\n indexArray[index + 2] = tmp;\n }\n }\n\n // Start with a triangular tessellated icosahedron.\n IndexedTriangleArray ita = new IndexedTriangleArray(\n ICOSAHEDRON_INDEX_COUNT, indexArray, ICOSAHEDRON_VERTEX_COUNT, vertexArray);\n\n // Subdivide the icosahedron a specified number of times. The subdivison step computes midpoints between\n // adjacent vertices. These midpoints are not on the sphere, but must be moved onto the sphere. We normalize\n // each midpoint vertex to acheive this.\n for (int i = 0; i < subdivisions; i++)\n {\n this.subdivideIndexedTriangleArray(ita);\n\n vertexArray = ita.getVertices();\n for (int vertex = 0; vertex < ita.vertexCount; vertex++)\n {\n norm3AndSet(vertexArray, 3 * vertex);\n }\n }\n\n // Scale each vertex by the specified radius.\n if (radius != 1)\n {\n vertexArray = ita.getVertices();\n for (int vertex = 0; vertex < ita.vertexCount; vertex++)\n {\n mul3AndSet(vertexArray, 3 * vertex, radius);\n }\n }\n\n return ita;\n }", "title": "" }, { "docid": "a4204daf96e28da6d790d78d6cc11b5d", "score": "0.4829922", "text": "public static int in_sphere(double x, double y, double z, double x0, double y0, double z0){\r\n\t if ( ((x-x0)*(x-x0) + (y-y0)*(y-y0) + (z-z0)*(z-z0) ) < RADIUS2 )\r\n\t return 1;\r\n\t else return 0;\r\n\t}", "title": "" }, { "docid": "9d86ac18cd1b100abe00b4fe4ca505f6", "score": "0.48214802", "text": "@Test\n public void twoSpheres() {\n Scene scene = new Scene(\"Test scene\");\n scene.set_camera(new Camera(new Point3D(0, 0, -1000), new Vector(0, 0, 1), new Vector(0, -1, 0)));\n scene.set_distance(1000);\n scene.set_background(Color.BLACK);\n scene.set_ambientLight(new AmbientLight(Color.BLACK, 0));\n\n scene.addGeometries(\n new Sphere(new Color(java.awt.Color.BLUE), new Material(0.4, 0.3, 100, 0.3, 0), 50,\n new Point3D(0, 0, 50)),\n new Sphere(new Color(java.awt.Color.RED), new Material(0.5, 0.5, 100), 25, new Point3D(0, 0, 50)));\n\n scene.addLights(new SpotLight(new Color(1000, 600, 0), new Point3D(-100, 100, -500), 1,\n 0.0004, 0.0000006, new Vector(-1, 1, 2)));\n\n ImageWriter imageWriter = new ImageWriter(\"twoSpheres\", 150, 150, 500, 500);\n Render render = new Render(imageWriter, scene);\n\n render.renderImage();\n render.writeToImage();\n }", "title": "" }, { "docid": "1621537631dc2a37eb81a86cc0f88c92", "score": "0.4811395", "text": "public Point3D getNormal(){\n \t\tdouble ax = points.get(1).getX()-points.get(0).getX();\n \t\tdouble ay = points.get(1).getY()-points.get(0).getY();\n \t\tdouble az = points.get(1).getZ()-points.get(0).getZ();\n \t\tdouble bx = points.get(2).getX()-points.get(1).getX();\n \t\tdouble by = points.get(2).getY()-points.get(1).getY();\n \t\tdouble bz = points.get(2).getZ()-points.get(1).getZ();\n \t\tdouble x = (ay*bz - az*by);\n \t\tdouble y = (az*bx - ax*bz);\n \t\tdouble z = (ax*by - ay*bx);\n \t\treturn new Point3D(x, y, z);\n \n \t}", "title": "" }, { "docid": "ea953a8a2481afa496427612f5826095", "score": "0.48085642", "text": "public Vec3d getPosition();", "title": "" }, { "docid": "c19a8389acb7a0734cd4b47543fd5b34", "score": "0.47900862", "text": "MicrosphereSurfaceElement(double[] n)\r\n/* 34: */ {\r\n/* 35: 78 */ this.normal = new ArrayRealVector(n);\r\n/* 36: */ }", "title": "" }, { "docid": "d5771f80a84f6538189180234d3b2f95", "score": "0.47889107", "text": "@java.lang.Override\n public Vector getNormal(Point3D p)\n {\n return new Vector(_center.subtract(p).normalize());\n }", "title": "" }, { "docid": "7a2e9ee37ef64045c9923dbfe73eb042", "score": "0.4781614", "text": "Vector3d position();", "title": "" }, { "docid": "8a490b2fdbec2ad3e2f000936574183e", "score": "0.47761706", "text": "public Vector getFoot();", "title": "" }, { "docid": "9d25d42ae445b94fb1d6eb2385c7bec3", "score": "0.47743395", "text": "public abstract Vector getNormal(Point3D p);", "title": "" }, { "docid": "fdb2b91072cb6595e46f060539c63025", "score": "0.47705266", "text": "private float[] createTextCoords(float[] positions) {\n \t\tfloat[] tmp = new float[(positions.length/3)*2];\n \t\tfor (int i=0;i<tmp.length;i+=12){\n \t\t\ttmp[i] = 0;\n \t\t\ttmp[i+1] = 0;\n \t\t\t\n \t\t\ttmp[i+2] = 0;\n \t\t\ttmp[i+3] = textureScaling;\n \t\t\t\n \t\t\ttmp[i+4] = textureScaling;\n \t\t\ttmp[i+5] = 0;\n \t\t\t\n \t\t\ttmp[i+6] = 0;\n \t\t\ttmp[i+7] = textureScaling;\n \t\t\t\n \t\t\ttmp[i+8] = textureScaling;\n \t\t\ttmp[i+9] = textureScaling;\n \t\t\t\n \t\t\ttmp[i+10] = textureScaling;\n \t\t\ttmp[i+11] = 0;\n \t\t\t\n \t\t}\n \t\treturn tmp;\n \t}", "title": "" }, { "docid": "3c9438867024d6decb019b765765952f", "score": "0.47505492", "text": "private void createTexMesh(GfxEngine engine) {\n MeshFactory.MeshConstructionInfo info = new MeshFactory.MeshConstructionInfo();\n // vertex positions\n info.positions = new float[] {\n -1.0f, -1.0f, 0.0f,\n 1.0f, -1.0f, 0.0f,\n 1.0f, 1.0f, 0.0f,\n -1.0f, 1.0f, 0.0f\n };\n // texture coordinates\n info.texCoords = new float[] {\n 0.0f, 0.0f,\n 1.0f, 0.0f,\n 1.0f, 1.0f,\n 0.0f, 1.0f\n };\n // vertex indices\n info.indices = new int[] {\n 0, 1, 2, 0, 2, 3\n };\n mTexMesh = MeshFactory.createStaticMesh(info);\n mTexMesh.setShader(new FramebufferShader(engine.getShaderManager()));\n }", "title": "" }, { "docid": "b54e03e414571336066986d16cbba5fe", "score": "0.4727839", "text": "public static Vector3f Ones()\r\n\t{\r\n\t\treturn new Vector3f(1.0, 1.0, 1.0);\r\n\t}", "title": "" }, { "docid": "72fb9f7b6fc541ca9d4768ad45b2139c", "score": "0.47240686", "text": "public Normal3(double x,double y,double z){\n \n this.x = x;\n this.y = y;\n this.z = z;\n }", "title": "" }, { "docid": "f1d4c9121c68e5c258c6adeeb87bc496", "score": "0.47026044", "text": "private void makeBottomTextured() {\n JOGL.gl.glBegin( GL2.GL_POLYGON );\n\n JOGL.gl.glNormal3f( 0, -1f, 0 );\n\n JOGL.gl.glTexCoord2f( 0f, -1f );\n JOGL.gl.glVertex3f( ( 0 + ( length / 2f ) ), ( 0 - ( length / 2f ) ), ( 0 + ( length / 2f ) ) );\n\n\n JOGL.gl.glTexCoord2f( 0f, 0f );\n JOGL.gl.glVertex3f( ( 0 + ( length / 2f ) ), ( 0 - ( length / 2f ) ), ( 0 - ( length / 2f ) ) );\n\n JOGL.gl.glTexCoord2f( 1f, 0f );\n JOGL.gl.glVertex3f( ( 0 - ( length / 2f ) ), ( 0 - ( length / 2f ) ), ( 0 - ( length / 2f ) ) );\n\n\n JOGL.gl.glTexCoord2f( 1f, -1f );\n JOGL.gl.glVertex3f( ( 0 - ( length / 2f ) ), ( 0 - ( length / 2f ) ), ( 0 + ( length / 2f ) ) );\n\n JOGL.gl.glEnd();\n }", "title": "" }, { "docid": "eb5ac3387b690b0df2a43d20ed0336ee", "score": "0.46958315", "text": "public Vector normal(Point p, boolean inside) {\r\n\t\tif(!inside) {\r\n\t\t\tdouble x = (p.getX() - center.getX()) / radius;\r\n\t\t\tdouble y = (p.getY() - center.getY()) / radius;\r\n\t\t\tdouble z = (p.getZ() - center.getZ()) / radius;\r\n\t\t\treturn new Vector(x,y,z);\r\n\t\t} else {\r\n\t\t\tdouble x = (center.getX() - p.getX()) / radius;\r\n\t\t\tdouble y = (center.getY() - p.getY()) / radius;\r\n\t\t\tdouble z = (center.getZ() - p.getZ()) / radius;\r\n\t\t\treturn new Vector(x,y,z);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "efe531c991559c030875ecf948e97899", "score": "0.46956587", "text": "public void drawSphere(float[] mMVPMatrix, float[] mViewMatrix, float[] mModelMatrix, float[] mProjectionMatrix, float[] mLightPosInEyeSpace){\n GLES20.glVertexAttribPointer(mPositionHandle, mPositionDataSize, GLES20.GL_FLOAT, false,\n 0, mVerticesBuffer);\n GLES20.glEnableVertexAttribArray(mPositionHandle);\n\n\n\n // Pass in the color information\n //mCubeColors.position(0);\n //GLES20.glVertexAttribPointer(mColorHandle, mColorDataSize, GLES20.GL_FLOAT, false,\n // 0, mCubeColors);\n\n // GLES20.glEnableVertexAttribArray(mColorHandle);\n\n // Pass in the normal information\n mNormalsBuffer.position(0);\n GLES20.glVertexAttribPointer(mNormalHandle, mNormalDataSize, GLES20.GL_FLOAT, false,\n 0, mNormalsBuffer);\n\n GLES20.glEnableVertexAttribArray(mNormalHandle);\n\n // Pass in the texture coordinate information\n mTextureCoordinatesBuffer.position(0);\n GLES20.glVertexAttribPointer(mTextureCoordinateHandle, mTextureCoordinateDataSize, GLES20.GL_FLOAT, false,\n 0, mTextureCoordinatesBuffer);\n\n GLES20.glEnableVertexAttribArray(mTextureCoordinateHandle);\n\n // This multiplies the view matrix by the model matrix, and stores the result in the MVP matrix\n // (which currently contains model * view).\n Matrix.multiplyMM(mMVPMatrix, 0, mViewMatrix, 0, mModelMatrix, 0);\n\n // Pass in the modelview matrix.\n GLES20.glUniformMatrix4fv(mMVMatrixHandle, 1, false, mMVPMatrix, 0);\n\n // This multiplies the modelview matrix by the projection matrix, and stores the result in the MVP matrix\n // (which now contains model * view * projection).\n Matrix.multiplyMM(mMVPMatrix, 0, mProjectionMatrix, 0, mMVPMatrix, 0);\n\n // Pass in the combined matrix.\n GLES20.glUniformMatrix4fv(mMVPMatrixHandle, 1, false, mMVPMatrix, 0);\n\n // Pass in the light position in eye space.\n GLES20.glUniform3f(mLightPosHandle, mLightPosInEyeSpace[0], mLightPosInEyeSpace[1], mLightPosInEyeSpace[2]);\n\n GLES20.glDrawElements(GLES20.GL_TRIANGLES, mIndexes.length, GLES20.GL_UNSIGNED_SHORT, mIndicesBuffer);\n }", "title": "" }, { "docid": "e2790e730205e193d6a0130f872fda50", "score": "0.46906123", "text": "@Override\n\tpublic double getSurface() {\n\t\treturn 2*radius*3.14*getHeight();\n\t}", "title": "" }, { "docid": "d02fd2b66b9e567d8e663b9d5c04d592", "score": "0.4686526", "text": "@Override\n public Vector getNormal(Point3D point) {\n //The vector from the point of the cylinder to the given point\n Point3D o = _ray.get_P0(); // at this point o = p0\n Vector v = _ray.get_direction();\n\n Vector vector1 = point.subtract(o);\n\n //We need the projection to multiply the _direction unit vector\n double projection = vector1.dotProduct(v);\n if (!isZero(projection)) {\n // projection of P-O on the ray:\n o = o.add(v.scale(projection));\n }\n\n //This vector is orthogonal to the _direction vector.\n Vector check = point.subtract(o);\n return check.normalize();\n }", "title": "" }, { "docid": "38f06cef6927547dade379529ce0a99c", "score": "0.467879", "text": "public static double volumeSphere(double radius) {\n return (4 * Math.PI * radius * radius * radius) / 3;\n }", "title": "" }, { "docid": "77c1dd8529b32da978fafb18c457739c", "score": "0.4673385", "text": "public static double sphereSurfaceArea(double radius) {\n return 4 * (Math.PI * radius * radius);\n }", "title": "" }, { "docid": "7f9a9f23ca5ce0641e00f360ccc8e19f", "score": "0.4672248", "text": "@Override\r\n\tpublic float[] getVertices() {\n\t\treturn squareCoords;\r\n\t}", "title": "" }, { "docid": "cc08f71d4fe0518ce86debb113adcd26", "score": "0.46608585", "text": "@Test\n public void getNormal() {\n Point3D point = new Point3D(3, 1, 2);\n\n //Test point on the sphere\n Sphere sp1 = new Sphere(3, point);\n assertEquals(\"not a good normal\",\n new Vector(1, 2, 2).normalized(),\n sp1.getNormal(new Point3D(4, 3, 4)));\n //Test radius < 1\n Sphere sp2 = new Sphere(0.5, point);\n assertEquals(\"not a good normal\",\n new Vector(0, 1, 0),\n sp2.getNormal(new Point3D(3, 1.5, 2)));\n // =============== Boundary Values Tests ==================\n\n /* //Test point in the sphere\n try{\n sp1.getNormal(new Point3D(3,0,0));\n fail(\"point in the sphere\");\n }catch (Exception e){\n assertTrue(e instanceof IllegalArgumentException);\n }\n\n //Test point is outside of the sphere\n try{\n sp1.getNormal(new Point3D(0,0,4));\n fail(\"point is outside of the sphere\");\n }catch (Exception e){\n assertTrue(e instanceof IllegalArgumentException);\n }*/\n\n //Test null point argument\n try {\n sp1.getNormal(null);\n fail(\"point is null.\");\n } catch (Exception e) {\n assertTrue(e instanceof NullPointerException);\n }\n }", "title": "" }, { "docid": "ed90b1b600a9d3fc747fe39cddf76f02", "score": "0.4659862", "text": "private int build() {\n double dTheta = mStep * DEG;\n double dPhi = dTheta;\n int points = 0;\n for(double phi = -(Math.PI); phi <= Math.PI; phi+=dPhi){\n //for(double phi = -(Math.PI/2); phi <= Math.PI/2; phi+=dPhi) {\n //for each stage calculating the slices\n for(double theta = 0.0; theta <= (Math.PI * 2); theta+=dTheta) {\n sphereVertex.put((float) (mRaduis * Math.sin(phi) * Math.cos(theta)) );\n sphereVertex.put((float) (mRaduis * Math.sin(phi) * Math.sin(theta)) );\n sphereVertex.put((float) (mRaduis * Math.cos(phi)) );\n points++;\n\n }\n }\n sphereVertex.position(0);\n return points;\n }", "title": "" }, { "docid": "4e3470fe61fb6ef280e87f21b15b6824", "score": "0.46582285", "text": "public cbit.vcell.render.Vect3d getNormal() {\r\n\treturn (area == AREA_UNDEFINED?null:new cbit.vcell.render.Vect3d(normalX,normalY,normalZ));\r\n}", "title": "" }, { "docid": "61d0770010289dcee9ffd9e115f8471a", "score": "0.46519077", "text": "public SphereCoords (float[] values)\n {\n set(values);\n }", "title": "" }, { "docid": "dd5f319c409fbae51b42815b7d7f205a", "score": "0.46509296", "text": "public abstract double getHomZ();", "title": "" }, { "docid": "4bd5a9c6f32504595ae5a229af453858", "score": "0.46391645", "text": "public int generateSphere(CoreEcs ecs, String name, CoreResourceHandle material, float radius, long rings, long sectors) {\n return CoreJni.generateSphereInCoreMeshUtil(this.agpCptr, this, CoreEcs.getCptr(ecs), ecs, name, CoreResourceHandle.getCptr(material), material, radius, rings, sectors);\n }", "title": "" }, { "docid": "a781d2a41ad58244871c721e8eeeef5f", "score": "0.4632421", "text": "private void makeTopTextured() {\n JOGL.gl.glBegin( GL2.GL_POLYGON );\n\n JOGL.gl.glNormal3f( 0, 1f, 0 );\n\n JOGL.gl.glTexCoord2f( 1f, 1f );\n JOGL.gl.glVertex3f( ( 0 + ( length / 2f ) ), ( 0 + ( length / 2f ) ), ( 0 + ( length / 2f ) ) );\n\n\n JOGL.gl.glTexCoord2f( 1f, 2f );\n JOGL.gl.glVertex3f( ( 0 + ( length / 2f ) ), ( 0 + ( length / 2f ) ), ( 0 - ( length / 2f ) ) );\n\n\n JOGL.gl.glTexCoord2f( 0f, 2f );\n JOGL.gl.glVertex3f( ( 0 - ( length / 2f ) ), ( 0 + ( length / 2f ) ), ( 0 - ( length / 2f ) ) );\n\n\n JOGL.gl.glTexCoord2f( 0f, 1f );\n JOGL.gl.glVertex3f( ( 0 - ( length / 2f ) ), ( 0 + ( length / 2f ) ), ( 0 + ( length / 2f ) ) );\n\n JOGL.gl.glEnd();\n }", "title": "" }, { "docid": "e08dba081e8fbbf7735b6cc9ed2c3c43", "score": "0.4629831", "text": "public static void sphere(PVector center, float radius, int col) {\n\t\tfloat res = 30;\n\t\tfor (float m = 0; m < res; m++)\n\t\t\tfor (float n = 0; n < res; n++)\n\t\t\t\tsetVoxel(\n\t\t\t\t\t\tcenter.x + radius * Math.sin((float) Math.PI * m / res)\n\t\t\t\t\t\t\t\t* Math.cos((float) 2 * Math.PI * n / res),\n\t\t\t\t\t\tcenter.y + radius * Math.sin((float) Math.PI * m / res)\n\t\t\t\t\t\t\t\t* Math.sin((float) 2 * Math.PI * n / res),\n\t\t\t\t\t\tcenter.z + radius * Math.cos((float) Math.PI * m / res),\n\t\t\t\t\t\tcol);\n\t}", "title": "" }, { "docid": "e8d48b629aaf65c1590e8106715f11d9", "score": "0.46287608", "text": "public Sphere(Point pos, int radius, Color color) {\n super(pos, new Point(), radius, color);\n }", "title": "" }, { "docid": "62988da73ddef217bb0f9b328e8a9e57", "score": "0.4628048", "text": "public VAO getVAO() {\n\t\tfloat[] vertices = new float[] {\n\t\t\t\tminx, miny, minz,// 0\n\t\t\t\tminx, miny, maxz,// 1\n\t\t\t\tmaxx, miny, maxz,// 2\n\t\t\t\tmaxx, miny, minz,// 3\n\t\t\t\tminx, maxy, minz,// 4\n\t\t\t\tmaxx, maxy, minz,// 5\n\t\t\t\t\n\t\t\t\tminx, miny, minz,// 6\n\t\t\t\tminx, miny, maxz,// 7\n\t\t\t\tminx, maxy, maxz,// 8\n\t\t\t\tminx, maxy, minz,// 9\n\t\t\t\tmaxx, miny, maxz,// 10\n\t\t\t\tmaxx, maxy, maxz,// 11\n\t\t\t\t\n\t\t\t\tmaxx, miny, minz,// 12\n\t\t\t\tmaxx, miny, maxz,// 13\n\t\t\t\tmaxx, maxy, maxz,// 14\n\t\t\t\tmaxx, maxy, minz,// 15\n\t\t\t\tminx, maxy, minz,// 16\n\t\t\t\tminx, maxy, maxz,// 17\n\t\t};\n\t\tfloat[] textureCoordinates = new float[] {\n\t\t\t\t0.5f, 1f/3f,// 0\n\t\t\t\t0f , 1f/3f,// 1\n\t\t\t\t0f , 0f ,// 2\n\t\t\t\t0.5f, 0f ,// 3\n\t\t\t\t1f , 1f/3f,// 4\n\t\t\t\t1f , 0f ,// 5\n\t\t\t\t\n\t\t\t\t0f , 1f/3f,// 6\n\t\t\t\t0.5f, 1f/3f,// 7\n\t\t\t\t0.5f, 2f/3f,// 8\n\t\t\t\t0f , 2f/3f,// 9\n\t\t\t\t1f , 1f/3f,// 10\n\t\t\t\t1f , 2f/3f,// 11\n\t\t\t\t\n\t\t\t\t0f , 2f/3f,// 12\n\t\t\t\t0f , 1f ,// 13\n\t\t\t\t0.5f, 1f ,// 14\n\t\t\t\t0.5f, 2f/3f,// 15\n\t\t\t\t1f , 2f/3f,// 16\n\t\t\t\t1f , 1f ,// 17\n\t\t};\n\t\tint[] indices = new int[] {\n\t\t\t\t0, 2, 1,\n\t\t\t\t0, 3, 2,\n\t\t\t\t4, 5, 0,\n\t\t\t\t5, 3, 0,\n\t\t\t\t\n\t\t\t\t8, 6, 7,\n\t\t\t\t9, 6, 8,\n\t\t\t\t8, 10, 11,\n\t\t\t\t8, 7, 10,\n\t\t\t\t\n\t\t\t\t15, 14, 13,\n\t\t\t\t15, 13, 12,\n\t\t\t\t17, 14, 15,\n\t\t\t\t17, 15, 16,\n\t\t};\n\t\tVAO ret = new VAO(vertices, indices);\n\t\tret.addVBO(textureCoordinates, 2);\n\t\treturn ret;\n\t}", "title": "" }, { "docid": "c30674eeb054ddef87ec59f5e1159684", "score": "0.46209115", "text": "public static double sphereVolume(double radius) {\n return 4 * (Math.PI * Math.pow(radius, 3)) / 3;\n }", "title": "" }, { "docid": "942452b6f6e9472adbd4b5cde3607efc", "score": "0.46053833", "text": "public double getVertexZ() {\n\t\treturn _zo;\n\t}", "title": "" }, { "docid": "ade24b11a16c01de17cd2a79cfde84c7", "score": "0.45998436", "text": "public float magnitude() {\n return (float) Math.sqrt(X * X + Y * Y + Z * Z); // Return The Length Of The Vector ( NEW )\r\n }", "title": "" }, { "docid": "88d3098874ed344031efd80ff950e8fc", "score": "0.45970634", "text": "public Vec3 getUV(Vec3 p){\n\t\tVec3 p1 = p;\n\t\t// Los casos en los que la X es cero dan error. \n\t\t// Desplazarlos ligeramente los soluciona\n\t\tif (p.x==0){\n\t\t\tp1 = p.add(this.normal2.scale(Ray.EPSILON));\n\t\t\tif (p1.x == 0)\n\t\t\t\tp1.setToAdd(new Vec3(Ray.EPSILON,0,0));\n\t\t}\n\t\t// altura respecto de la base\n\t\tdouble EPT_C1 = this.normal2.dot(p1.sub(this.center1));\n\t\tVec3 uv = new Vec3();\n\t\tVec3 pnb2 = null;\n\t\t// Eje en vertical\n\t\tif (Math.abs(normal2.y) > 1-Ray.EPSILON ){ \n\t\t\tpnb2 = p1.sub(center1);\n\t\t}else{ // Eje no vertical. Cambiar la orientación\n\t\t\tVec3 pn = p1.add(normal1.scale(EPT_C1)).sub(center1);\n\t\t\tpnb2 = new Vec3();\n\t\t\tVec3 base2[] = new Vec3[3];\n\t\t\tbase2[0] = new Vec3(0,1,0);\n\t\t\tbase2[1] = this.normal2;\n\t\t\tbase2[2] = base2[0].cross(base2[1]).normalize();\n\t\t\tpnb2.x = pn.dot(base2[0]);\n\t\t\tpnb2.y = pn.dot(base2[1]);\n\t\t\tpnb2.z = pn.dot(base2[2]);\n\t\t}\n\t\t// El ángulo es U\n\t\tif (pnb2.z > 0)\n\t\t\tuv.x = Math.atan(pnb2.x/pnb2.z)/(2*Math.PI);\n\t\telse\n\t\t\tuv.x = 0.5+Math.atan(pnb2.x/pnb2.z)/(2*Math.PI);\n\t\tuv.x *= -1.0;\n\n\t\t// La altura es V\n\t\tuv.y = EPT_C1/this.height;\n\t\tif (uv.y > 1) uv.y = 1;\n\t\tif (uv.y < 0) uv.y = 0;\n\t\treturn (uv);\n\t}", "title": "" }, { "docid": "c6e8e4f05b2185d996432100e762721e", "score": "0.45864394", "text": "@Override\n public Coord3d getCenter() {\n return new Coord3d(boundingBox.getXmin(), boundingBox.getYmin(), boundingBox.getZmin());\n }", "title": "" }, { "docid": "4067d8fbc192088199aeb3ecc30528e9", "score": "0.45846748", "text": "@Pure\n\tFunctionalVector3D getNormal();", "title": "" }, { "docid": "d9736a1885add95f009771c720f7efc2", "score": "0.45808485", "text": "public float r(){\n\t\treturn (float)Math.sqrt(x*x+y*y+z*z);\n\t}", "title": "" }, { "docid": "635d60b9549a7fc0b1fb06aed985ff57", "score": "0.4576117", "text": "public static Vec3f axisY() {\n return new Vec3f(0, 1, 0);\n }", "title": "" }, { "docid": "042999c811bb703b16ff8bebf1886061", "score": "0.4562941", "text": "public float[] getQuat() {\n/* 797 */ float[] q = new float[4];\n/* 798 */ q[0] = this.x;\n/* 799 */ q[1] = this.y;\n/* 800 */ q[2] = this.z;\n/* 801 */ q[3] = 1.0F;\n/* 802 */ return q;\n/* */ }", "title": "" }, { "docid": "50047b0b428210003deaac9756b5b1c6", "score": "0.45603117", "text": "public void Normaliza() {\n double N; //Norma\n N = Math.sqrt((x * x) + (y * y) + (z * z));\n x = x / N;\n y = y / N;\n z = z / N;\n }", "title": "" }, { "docid": "f90ef1f87c8d4f6430d282f38fb06e5e", "score": "0.45599777", "text": "public float magnitude() {\n\t\treturn (float)Math.sqrt( Math.pow(w, 2f) + Math.pow(x, 2f) + Math.pow(y, 2f) + Math.pow(z, 2f) );\n\t}", "title": "" }, { "docid": "6ecb28a8801b6dd02520def0586a069e", "score": "0.4556499", "text": "public float intersectSphere(Sphere s) {\n\t\tnTuple q = this.camera.subtract(s.getCenter());\r\n\r\n\t\tfloat a = 1.0f;\t\t// dot product of normalized vector with itself \r\n\t\tfloat b = 2.0f * (q.dot(this.vector));\r\n\t\tfloat c = q.dot(q) - (s.getRadius() * s.getRadius());\r\n\t\tfloat discriminant = (b*b) - 4*a*c;\r\n\r\n\t\tif (discriminant < 0.0f) {\t\t// no intersection\r\n\t\t\treturn -1.0f;\r\n\t\t} else {\t\t\t// no need to check both solutions, this is always largest \r\n\t\t\treturn (0.5f * (-b - (float) Math.sqrt(discriminant)));\r\n\t\t}\r\n\t}", "title": "" } ]
7a70673cd1ff3425a1a5c450ed8153fc
$ANTLR end T30 $ANTLR start T31
[ { "docid": "0a09abc718860f50284cdd0a6118655c", "score": "0.0", "text": "public final void mT31() throws RecognitionException {\n try {\n int _type = T31;\n // ../org.ow2.mindEd.adl/src-gen/org/ow2/mind/parser/antlr/internal/InternalAdl.g:29:5: ( ']' )\n // ../org.ow2.mindEd.adl/src-gen/org/ow2/mind/parser/antlr/internal/InternalAdl.g:29:7: ']'\n {\n match(']'); \n\n }\n\n this.type = _type;\n }\n finally {\n }\n }", "title": "" } ]
[ { "docid": "4d8020efd0bb990e159bb521f92a98d8", "score": "0.60059017", "text": "private int yyr31() {\n yysp -= 4;\n return yypStatement();\n }", "title": "" }, { "docid": "58e9169159b7b4f879f415f287ee7e02", "score": "0.5993115", "text": "private int yyr30() {\n yysp -= 3;\n return yypStatement();\n }", "title": "" }, { "docid": "15294d9cf41cb9b0854851f4f6a6daad", "score": "0.5759544", "text": "public interface LanguageConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int False = 5;\n /** RegularExpression Id. */\n int Var = 6;\n /** RegularExpression Id. */\n int NUM = 7;\n /** RegularExpression Id. */\n int symbA = 8;\n /** RegularExpression Id. */\n int equality = 9;\n /** RegularExpression Id. */\n int and = 10;\n /** RegularExpression Id. */\n int neg = 11;\n /** RegularExpression Id. */\n int skipp = 12;\n /** RegularExpression Id. */\n int equal = 13;\n /** RegularExpression Id. */\n int semicolon = 14;\n /** RegularExpression Id. */\n int If = 15;\n /** RegularExpression Id. */\n int Else = 16;\n /** RegularExpression Id. */\n int While = 17;\n /** RegularExpression Id. */\n int Do = 18;\n /** RegularExpression Id. */\n int Then = 19;\n /** RegularExpression Id. */\n int True = 20;\n /** RegularExpression Id. */\n int left = 21;\n /** RegularExpression Id. */\n int right = 22;\n\n /** Lexical state. */\n int DEFAULT = 0;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\" \\\"\",\n \"\\\"\\\\t\\\"\",\n \"\\\"\\\\n\\\"\",\n \"\\\"\\\\r\\\"\",\n \"\\\"ff\\\"\",\n \"<Var>\",\n \"<NUM>\",\n \"<symbA>\",\n \"\\\"==\\\"\",\n \"\\\"^\\\"\",\n \"\\\"!\\\"\",\n \"\\\"skip\\\"\",\n \"\\\":=\\\"\",\n \"\\\";\\\"\",\n \"\\\"if\\\"\",\n \"\\\"else\\\"\",\n \"\\\"while\\\"\",\n \"\\\"do\\\"\",\n \"\\\"then\\\"\",\n \"\\\"tt\\\"\",\n \"\\\"(\\\"\",\n \"\\\")\\\"\",\n };\n\n}", "title": "" }, { "docid": "dc4f812e03e6c13a9367d66530dad3a0", "score": "0.5595068", "text": "public interface KReSRuleParserConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int LARROW = 5;\n /** RegularExpression Id. */\n int COLON = 6;\n /** RegularExpression Id. */\n int EQUAL = 7;\n /** RegularExpression Id. */\n int AND = 8;\n /** RegularExpression Id. */\n int COMMA = 9;\n /** RegularExpression Id. */\n int SAME = 10;\n /** RegularExpression Id. */\n int DIFFERENT = 11;\n /** RegularExpression Id. */\n int IS = 12;\n /** RegularExpression Id. */\n int HAS = 13;\n /** RegularExpression Id. */\n int RANGE = 14;\n /** RegularExpression Id. */\n int VALUES = 15;\n /** RegularExpression Id. */\n int LPAR = 16;\n /** RegularExpression Id. */\n int RPAR = 17;\n /** RegularExpression Id. */\n int DQUOT = 18;\n /** RegularExpression Id. */\n int LQUAD = 19;\n /** RegularExpression Id. */\n int RQUAD = 20;\n /** RegularExpression Id. */\n int NUM = 21;\n /** RegularExpression Id. */\n int VAR = 22;\n /** RegularExpression Id. */\n int VARIABLE = 23;\n /** RegularExpression Id. */\n int URI = 24;\n\n /** Lexical state. */\n int DEFAULT = 0;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\" \\\"\",\n \"\\\"\\\\r\\\"\",\n \"\\\"\\\\t\\\"\",\n \"\\\"\\\\n\\\"\",\n \"\\\"->\\\"\",\n \"\\\":\\\"\",\n \"\\\"=\\\"\",\n \"\\\".\\\"\",\n \"\\\",\\\"\",\n \"\\\"same\\\"\",\n \"\\\"different\\\"\",\n \"\\\"is\\\"\",\n \"\\\"has\\\"\",\n \"\\\"range\\\"\",\n \"\\\"values\\\"\",\n \"\\\"(\\\"\",\n \"\\\")\\\"\",\n \"\\\"\\\\\\\"\\\"\",\n \"\\\"[\\\"\",\n \"\\\"]\\\"\",\n \"<NUM>\",\n \"<VAR>\",\n \"<VARIABLE>\",\n \"<URI>\",\n };\n\n}", "title": "" }, { "docid": "0b6e4663826b70f37bd098e48fb3c3a9", "score": "0.5575798", "text": "public interface NEMOparserConstants {\r\n\r\n /** End of File. */\r\n int EOF = 0;\r\n /** RegularExpression Id. */\r\n int COLON = 5;\r\n /** RegularExpression Id. */\r\n int COMMA = 6;\r\n /** RegularExpression Id. */\r\n int SEMICOLON = 7;\r\n /** RegularExpression Id. */\r\n int LPAREN = 8;\r\n /** RegularExpression Id. */\r\n int RPAREN = 9;\r\n /** RegularExpression Id. */\r\n int LBRACKET = 10;\r\n /** RegularExpression Id. */\r\n int RBRACKET = 11;\r\n /** RegularExpression Id. */\r\n int AND = 12;\r\n /** RegularExpression Id. */\r\n int OR = 13;\r\n /** RegularExpression Id. */\r\n int NOT = 14;\r\n /** RegularExpression Id. */\r\n int EQUAL = 15;\r\n /** RegularExpression Id. */\r\n int GTHAN = 16;\r\n /** RegularExpression Id. */\r\n int LTHAN = 17;\r\n /** RegularExpression Id. */\r\n int NLTHAN = 18;\r\n /** RegularExpression Id. */\r\n int NMTHAN = 19;\r\n /** RegularExpression Id. */\r\n int BETWEEN = 20;\r\n /** RegularExpression Id. */\r\n int UNDERSCORE = 21;\r\n /** RegularExpression Id. */\r\n int JOINER = 22;\r\n /** RegularExpression Id. */\r\n int FSLASH = 23;\r\n /** RegularExpression Id. */\r\n int DOT = 24;\r\n /** RegularExpression Id. */\r\n int CREATE = 25;\r\n /** RegularExpression Id. */\r\n int IMPORT = 26;\r\n /** RegularExpression Id. */\r\n int UPDATE = 27;\r\n /** RegularExpression Id. */\r\n int DELETE = 28;\r\n /** RegularExpression Id. */\r\n int NODE = 29;\r\n /** RegularExpression Id. */\r\n int TYPE = 30;\r\n /** RegularExpression Id. */\r\n int CONTAIN = 31;\r\n /** RegularExpression Id. */\r\n int PROPERTY = 32;\r\n /** RegularExpression Id. */\r\n int CONNECTION = 33;\r\n /** RegularExpression Id. */\r\n int ENDNODES = 34;\r\n /** RegularExpression Id. */\r\n int FLOW = 35;\r\n /** RegularExpression Id. */\r\n int MATCH = 36;\r\n /** RegularExpression Id. */\r\n int OPERATION = 37;\r\n /** RegularExpression Id. */\r\n int TARGET = 38;\r\n /** RegularExpression Id. */\r\n int CONDITION = 39;\r\n /** RegularExpression Id. */\r\n int ACTION = 40;\r\n /** RegularExpression Id. */\r\n int QUERY = 41;\r\n /** RegularExpression Id. */\r\n int FROM = 42;\r\n /** RegularExpression Id. */\r\n int PRIORITY = 43;\r\n /** RegularExpression Id. */\r\n int TRANSACTION = 44;\r\n /** RegularExpression Id. */\r\n int BEGIN = 45;\r\n /** RegularExpression Id. */\r\n int END = 46;\r\n /** RegularExpression Id. */\r\n int NODES = 47;\r\n /** RegularExpression Id. */\r\n int CONNECTIONS = 48;\r\n /** RegularExpression Id. */\r\n int FLOWS = 49;\r\n /** RegularExpression Id. */\r\n int OPERATIONS = 50;\r\n /** RegularExpression Id. */\r\n int NODEMODEL = 51;\r\n /** RegularExpression Id. */\r\n int STRING = 52;\r\n /** RegularExpression Id. */\r\n int INTEGER = 53;\r\n /** RegularExpression Id. */\r\n int RANGE = 54;\r\n /** RegularExpression Id. */\r\n int UNUMBER = 55;\r\n /** RegularExpression Id. */\r\n int ID = 56;\r\n /** RegularExpression Id. */\r\n int TEMPID = 57;\r\n /** RegularExpression Id. */\r\n int ETHPREF = 58;\r\n /** RegularExpression Id. */\r\n int IPV4PREF = 59;\r\n /** RegularExpression Id. */\r\n int DATEVAL = 60;\r\n /** RegularExpression Id. */\r\n int TIMEVAL = 61;\r\n /** RegularExpression Id. */\r\n int FULLTIME = 62;\r\n /** RegularExpression Id. */\r\n int ETHADDR = 63;\r\n /** RegularExpression Id. */\r\n int IPV4ADDR = 64;\r\n /** RegularExpression Id. */\r\n int UBYTE = 65;\r\n /** RegularExpression Id. */\r\n int HEXDIGIT = 66;\r\n /** RegularExpression Id. */\r\n int YEAR = 67;\r\n /** RegularExpression Id. */\r\n int SMONDAY = 68;\r\n /** RegularExpression Id. */\r\n int LMONDAY = 69;\r\n /** RegularExpression Id. */\r\n int FEBDAY = 70;\r\n /** RegularExpression Id. */\r\n int HOUR = 71;\r\n /** RegularExpression Id. */\r\n int MINUTE = 72;\r\n /** RegularExpression Id. */\r\n int SECOND = 73;\r\n /** RegularExpression Id. */\r\n int DIGIT = 74;\r\n /** RegularExpression Id. */\r\n int LETTER = 75;\r\n\r\n /** Lexical state. */\r\n int DEFAULT = 0;\r\n\r\n /** Literal token values. */\r\n String[] tokenImage = {\r\n \"<EOF>\",\r\n \"\\\" \\\"\",\r\n \"\\\"\\\\r\\\"\",\r\n \"\\\"\\\\t\\\"\",\r\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 \"\\\"CREATE\\\"\",\r\n \"\\\"IMPORT\\\"\",\r\n \"\\\"UPDATE\\\"\",\r\n \"\\\"DELETE\\\"\",\r\n \"\\\"Node\\\"\",\r\n \"\\\"Type\\\"\",\r\n \"\\\"Contain\\\"\",\r\n \"\\\"Property\\\"\",\r\n \"\\\"Connection\\\"\",\r\n \"\\\"Endnodes\\\"\",\r\n \"\\\"Flow\\\"\",\r\n \"\\\"Match\\\"\",\r\n \"\\\"Operation\\\"\",\r\n \"\\\"Target\\\"\",\r\n \"\\\"Condition\\\"\",\r\n \"\\\"Action\\\"\",\r\n \"\\\"Query\\\"\",\r\n \"\\\"From\\\"\",\r\n \"\\\"Priority\\\"\",\r\n \"\\\"Transaction\\\"\",\r\n \"\\\"Begin\\\"\",\r\n \"\\\"End\\\"\",\r\n \"\\\"nodes\\\"\",\r\n \"\\\"connections\\\"\",\r\n \"\\\"flows\\\"\",\r\n \"\\\"operations\\\"\",\r\n \"\\\"NodeModel\\\"\",\r\n \"\\\"string\\\"\",\r\n \"\\\"integer\\\"\",\r\n \"\\\"range\\\"\",\r\n \"<UNUMBER>\",\r\n \"<ID>\",\r\n \"<TEMPID>\",\r\n \"<ETHPREF>\",\r\n \"<IPV4PREF>\",\r\n \"<DATEVAL>\",\r\n \"<TIMEVAL>\",\r\n \"<FULLTIME>\",\r\n \"<ETHADDR>\",\r\n \"<IPV4ADDR>\",\r\n \"<UBYTE>\",\r\n \"<HEXDIGIT>\",\r\n \"<YEAR>\",\r\n \"<SMONDAY>\",\r\n \"<LMONDAY>\",\r\n \"<FEBDAY>\",\r\n \"<HOUR>\",\r\n \"<MINUTE>\",\r\n \"<SECOND>\",\r\n \"<DIGIT>\",\r\n \"<LETTER>\",\r\n };\r\n\r\n}", "title": "" }, { "docid": "65807e8aa3156c7e2655c78d8928905d", "score": "0.55187595", "text": "public interface PDDL21ParserConstants {\n\n\t/** End of File. */\n\tint EOF = 0;\n\t/** RegularExpression Id. */\n\tint OPEN = 5;\n\t/** RegularExpression Id. */\n\tint CLOSE = 6;\n\t/** RegularExpression Id. */\n\tint DEFINE = 7;\n\t/** RegularExpression Id. */\n\tint DOMAIN = 8;\n\t/** RegularExpression Id. */\n\tint DOMAIN_LABEL = 9;\n\t/** RegularExpression Id. */\n\tint OBJECTS = 10;\n\t/** RegularExpression Id. */\n\tint GOAL = 11;\n\t/** RegularExpression Id. */\n\tint INIT = 12;\n\t/** RegularExpression Id. */\n\tint METRIC = 13;\n\t/** RegularExpression Id. */\n\tint PROBLEM = 14;\n\t/** RegularExpression Id. */\n\tint REQUIREMENTS = 15;\n\t/** RegularExpression Id. */\n\tint REQUIREMENT_LABELS = 16;\n\t/** RegularExpression Id. */\n\tint NON_HANDLED_LABELS = 17;\n\t/** RegularExpression Id. */\n\tint TYPES = 18;\n\t/** RegularExpression Id. */\n\tint EITHER = 19;\n\t/** RegularExpression Id. */\n\tint CONSTANTS = 20;\n\t/** RegularExpression Id. */\n\tint PREDICATES = 21;\n\t/** RegularExpression Id. */\n\tint FUNCTIONS = 22;\n\t/** RegularExpression Id. */\n\tint ACTION = 23;\n\t/** RegularExpression Id. */\n\tint DURATIVE_ACTION = 24;\n\t/** RegularExpression Id. */\n\tint PARAMETERS = 25;\n\t/** RegularExpression Id. */\n\tint DURATION = 26;\n\t/** RegularExpression Id. */\n\tint DUR_VAR = 27;\n\t/** RegularExpression Id. */\n\tint PRECONDITION = 28;\n\t/** RegularExpression Id. */\n\tint CONDITION = 29;\n\t/** RegularExpression Id. */\n\tint EFFECT = 30;\n\t/** RegularExpression Id. */\n\tint AND = 31;\n\t/** RegularExpression Id. */\n\tint OR = 32;\n\t/** RegularExpression Id. */\n\tint NOT = 33;\n\t/** RegularExpression Id. */\n\tint IMPLY = 34;\n\t/** RegularExpression Id. */\n\tint OVER_ALL = 35;\n\t/** RegularExpression Id. */\n\tint AT_START = 36;\n\t/** RegularExpression Id. */\n\tint AT_END = 37;\n\t/** RegularExpression Id. */\n\tint FOR_ALL = 38;\n\t/** RegularExpression Id. */\n\tint EXISTS = 39;\n\t/** RegularExpression Id. */\n\tint EQUALS = 40;\n\t/** RegularExpression Id. */\n\tint TYPE_IDENT = 41;\n\t/** RegularExpression Id. */\n\tint BINARY_OP = 42;\n\t/** RegularExpression Id. */\n\tint BINARY_COMP = 43;\n\t/** RegularExpression Id. */\n\tint ASSIGN_OP = 44;\n\t/** RegularExpression Id. */\n\tint ASSIGN = 45;\n\t/** RegularExpression Id. */\n\tint SCALE_UP = 46;\n\t/** RegularExpression Id. */\n\tint SCALE_DOWN = 47;\n\t/** RegularExpression Id. */\n\tint INCREASE = 48;\n\t/** RegularExpression Id. */\n\tint DECREASE = 49;\n\t/** RegularExpression Id. */\n\tint OPTIMIZATION = 50;\n\t/** RegularExpression Id. */\n\tint MINIMIZE = 51;\n\t/** RegularExpression Id. */\n\tint MAXIMIZE = 52;\n\t/** RegularExpression Id. */\n\tint TOTAL_TIME = 53;\n\t/** RegularExpression Id. */\n\tint NUMBER_TYPE = 54;\n\t/** RegularExpression Id. */\n\tint VAR = 55;\n\t/** RegularExpression Id. */\n\tint NUMBER = 56;\n\t/** RegularExpression Id. */\n\tint NAME = 57;\n\t/** RegularExpression Id. */\n\tint SINGLE_LINE_COMMENT = 58;\n\n\t/** Lexical state. */\n\tint DEFAULT = 0;\n\n\t/** Literal token values. */\n\tString[] tokenImage = { \"<EOF>\", \"\\\" \\\"\", \"\\\"\\\\r\\\"\", \"\\\"\\\\t\\\"\", \"\\\"\\\\n\\\"\", \"\\\"(\\\"\", \"\\\")\\\"\", \"\\\"define\\\"\",\n\t\t\t\"\\\"domain\\\"\", \"\\\":domain\\\"\", \"\\\":objects\\\"\", \"\\\":goal\\\"\", \"\\\":init\\\"\", \"\\\":metric\\\"\", \"\\\"problem\\\"\",\n\t\t\t\"\\\":requirements\\\"\", \"<REQUIREMENT_LABELS>\", \"<NON_HANDLED_LABELS>\", \"\\\":types\\\"\", \"\\\"either\\\"\",\n\t\t\t\"\\\":constants\\\"\", \"\\\":predicates\\\"\", \"\\\":functions\\\"\", \"\\\":action\\\"\", \"\\\":durative-action\\\"\",\n\t\t\t\"\\\":parameters\\\"\", \"\\\":duration\\\"\", \"\\\"?duration\\\"\", \"\\\":precondition\\\"\", \"\\\":condition\\\"\", \"\\\":effect\\\"\",\n\t\t\t\"\\\"and\\\"\", \"\\\"or\\\"\", \"\\\"not\\\"\", \"\\\"imply\\\"\", \"\\\"over all\\\"\", \"\\\"at start\\\"\", \"\\\"at end\\\"\", \"\\\"forall\\\"\",\n\t\t\t\"\\\"exists\\\"\", \"\\\"=\\\"\", \"\\\"-\\\"\", \"<BINARY_OP>\", \"<BINARY_COMP>\", \"<ASSIGN_OP>\", \"\\\"assign\\\"\",\n\t\t\t\"\\\"scale-up\\\"\", \"\\\"scale-down\\\"\", \"\\\"increase\\\"\", \"\\\"decrease\\\"\", \"<OPTIMIZATION>\", \"\\\"minimize\\\"\",\n\t\t\t\"\\\"maximize\\\"\", \"\\\"total-time\\\"\", \"\\\"number\\\"\", \"<VAR>\", \"<NUMBER>\", \"<NAME>\", \"<SINGLE_LINE_COMMENT>\", };\n\n}", "title": "" }, { "docid": "9d46162a45696a92b5efcc136018c093", "score": "0.54410785", "text": "void match(int t) {\n\t if (look.tag == t) {\r\n\t if (look.tag != Tag.EOF) move(); //passiamo al simbolo successivo in caso non fossero uguali\r\n\t } else error(\"syntax error\"); \r\n }", "title": "" }, { "docid": "c5cd40376e104ca90b79d26fe66e0196", "score": "0.53960603", "text": "public interface NMEAProtocolParserConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int SPACE = 1;\n /** RegularExpression Id. */\n int CARRIAGERETURN = 2;\n /** RegularExpression Id. */\n int TAB = 3;\n /** RegularExpression Id. */\n int NEWLINE = 4;\n /** RegularExpression Id. */\n int DOLLAR = 5;\n /** RegularExpression Id. */\n int GTOKEN = 6;\n /** RegularExpression Id. */\n int PTOKEN = 7;\n /** RegularExpression Id. */\n int ATOKEN = 8;\n /** RegularExpression Id. */\n int NTOKEN = 9;\n /** RegularExpression Id. */\n int WTOKEN = 10;\n /** RegularExpression Id. */\n int STOKEN = 11;\n /** RegularExpression Id. */\n int ETOKEN = 12;\n /** RegularExpression Id. */\n int SENTENCEIDENTIFIER = 13;\n /** RegularExpression Id. */\n int NUMBERZERO = 14;\n /** RegularExpression Id. */\n int NUMBERONE = 15;\n /** RegularExpression Id. */\n int NUMBERTWO = 16;\n /** RegularExpression Id. */\n int NUMBERTHREE = 17;\n /** RegularExpression Id. */\n int NUMBERFOUR = 18;\n /** RegularExpression Id. */\n int NUMBERFIVE = 19;\n /** RegularExpression Id. */\n int NUMBERSIX = 20;\n /** RegularExpression Id. */\n int NUMBERSEVEN = 21;\n /** RegularExpression Id. */\n int NUMBEREIGHT = 22;\n /** RegularExpression Id. */\n int NUMBERNINE = 23;\n /** RegularExpression Id. */\n int DECIMAL = 24;\n /** RegularExpression Id. */\n int METER = 25;\n /** RegularExpression Id. */\n int STAR = 26;\n /** RegularExpression Id. */\n int COMMA = 27;\n\n /** Lexical state. */\n int DEFAULT = 0;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\" \\\"\",\n \"\\\"\\\\r\\\"\",\n \"\\\"\\\\t\\\"\",\n \"\\\"\\\\n\\\"\",\n \"\\\"$\\\"\",\n \"<GTOKEN>\",\n \"<PTOKEN>\",\n \"<ATOKEN>\",\n \"<NTOKEN>\",\n \"<WTOKEN>\",\n \"<STOKEN>\",\n \"<ETOKEN>\",\n \"<SENTENCEIDENTIFIER>\",\n \"<NUMBERZERO>\",\n \"<NUMBERONE>\",\n \"<NUMBERTWO>\",\n \"<NUMBERTHREE>\",\n \"<NUMBERFOUR>\",\n \"<NUMBERFIVE>\",\n \"<NUMBERSIX>\",\n \"<NUMBERSEVEN>\",\n \"<NUMBEREIGHT>\",\n \"<NUMBERNINE>\",\n \"\\\".\\\"\",\n \"\\\"M\\\"\",\n \"\\\"*\\\"\",\n \"\\\",\\\"\",\n \"\\\";\\\"\",\n };\n\n}", "title": "" }, { "docid": "9b1f86d91fd387ce861a227c5c945fe5", "score": "0.53949857", "text": "public Tokens(){\r\n this.type = Type.END_OF_LINE;\r\n }", "title": "" }, { "docid": "9ff22f7fac981a9eaf49cecc00c0a5d0", "score": "0.53720903", "text": "public Token nextToken() {\n Token token = new Token();\n\n //use StringBuffer to store the lexeme\n StringBuffer lexeme = new StringBuffer();\n\n char c = nextChar();\n\n while (c == ' ' | c == '\\t' ){\n c = nextChar();\n }\n // match id and reserved words\n if (isLetter(c)) {\n lexeme.append(c);\n c = nextChar();\n while (isLetter(c) || isDigit(c) || c == '_') {\n lexeme.append(c);\n c = nextChar();\n }\n //token end\n // check if id end correctly\n if (isTransferChar(c)){\n // reserved words are prior than id, so check if token is a reserved word\n\n // if true then save token as a reserved word otherwise save as an id\n if (isReservedWord(lexeme.toString())) {\n //save token (type, lexeme, is valid, rowNO)\n saveToken(token, lexeme.toString(), lexeme,true);\n } else {\n saveToken(token, \"id\", lexeme,true);\n }\n // need back up one char\n backupChar();\n\n } else {\n // catch the entire error token\n // ex: abg@1133\n while ( !isTransferChar(c)){\n lexeme.append(c);\n c = nextChar();\n }\n saveToken(token, \"id\", lexeme,false);\n backupChar();\n }\n // match int\n // start with 0\n } else if( c == '0') {\n lexeme.append(c);\n c = nextChar();\n // match float\n if (c == '.') { // 0.1222\n lexeme.append(c);\n c = nextChar();\n //a helper function, which is a recursive function, to check if this token is valid\n floatState1Check(c,lexeme,token);\n } else {\n // check if this token end correctly, ex: 0abbb, invalid; 0 abb, good\n checkIfEndCorrect(c,token,\"intlit\",lexeme);\n }\n // start with 1-9\n } else if(isDigit(c)) {\n lexeme.append(c);\n c = nextChar();\n while ( isDigit(c) ) {\n lexeme.append(c);\n c = nextChar();\n }\n // match float\n if (c == '.') { // 0.1222\n lexeme.append(c);\n c = nextChar();\n floatState1Check(c,lexeme,token);\n } else {\n checkIfEndCorrect(c,token,\"intlit\",lexeme);\n }\n } else if ( c == '+') {\n saveToken(token, \"+\", new StringBuffer().append(\"+\"),true);\n }else if ( c == '-') {\n saveToken(token, \"-\", new StringBuffer().append(\"-\"),true);\n }else if ( c == '*') {\n saveToken(token, \"*\", new StringBuffer().append(\"*\"),true);\n }else if ( c == '|') {\n saveToken(token, \"|\", new StringBuffer().append(\"|\"),true);\n }else if ( c == '&') {\n saveToken(token, \"&\", new StringBuffer().append(\"&\"),true);\n }else if ( c == '!') {\n saveToken(token, \"not\", new StringBuffer().append(\"!\"),true);\n }else if ( c == '?') {\n saveToken(token, \"qm\", new StringBuffer().append(\"?\"),true);\n }else if ( c == '(') {\n saveToken(token, \"(\", new StringBuffer().append(\"(\"),true);\n }else if ( c == ')') {\n saveToken(token, \")\", new StringBuffer().append(\")\"),true);\n }else if ( c == '{') {\n saveToken(token, \"{\", new StringBuffer().append(\"{\"),true);\n }else if ( c == '}') {\n saveToken(token, \"}\", new StringBuffer().append(\"}\"),true);\n }else if ( c == '[') {\n saveToken(token, \"[\", new StringBuffer().append(\"[\"),true);\n }else if ( c == ']') {\n saveToken(token, \"]\", new StringBuffer().append(\"]\"),true);\n }else if ( c == ';') {\n saveToken(token, \";\", new StringBuffer().append(\";\"),true);\n }else if ( c == '.') {\n saveToken(token, \".\", new StringBuffer().append(\".\"),true);\n }else if ( c == ',') {\n saveToken(token, \",\", new StringBuffer().append(\",\"),true);\n }else if ( c == ':') {\n lexeme.append(c);\n c = nextChar();\n if ( c == ':') {\n lexeme.append(c);\n saveToken(token, \"sr\", lexeme,true);\n } else {\n saveToken(token, \":\", lexeme,true);\n backupChar();\n }\n } else if ( c == '=') {\n lexeme.append(c);\n c = nextChar();\n if ( c == '=') {\n lexeme.append(c);\n saveToken(token, \"eq\", lexeme,true);\n } else {\n saveToken(token, \"=\", lexeme,true);\n backupChar();\n }\n }else if ( c == '<') {\n lexeme.append(c);\n c = nextChar();\n if ( c == '>') {\n lexeme.append(c);\n saveToken(token, \"neq\", lexeme,true);\n } else if ( c == '=') {\n lexeme.append(c);\n saveToken(token, \"leq\", lexeme,true);\n } else {\n saveToken(token, \"lt\", lexeme,true);\n backupChar();\n }\n }else if ( c == '>') {\n lexeme.append(c);\n c = nextChar();\n if ( c == '=') {\n lexeme.append(c);\n saveToken(token, \"geq\", lexeme,true);\n } else {\n saveToken(token, \"gt\", lexeme,true);\n backupChar();\n }\n }else if ( c == '/') {\n lexeme.append(c);\n c = nextChar();\n if ( c == '/') { // catch the entire comment line\n while (index < charArray.length-1) {\n lexeme.append(c);\n c = nextChar();\n }\n lexeme.append(c);\n saveToken(token, \"inlinecmt\", lexeme,true);\n } else if ( c == '*') { // catch the entire block comment\n lexeme.append(c);\n c = nextChar();\n token.position = rowNo; // record the rowNo of the first line\n // define a recursive helper function to catch the entire block comment\n blockcmtEndCheck(c,lexeme,token);\n } else {\n // div\n saveToken(token, \"/\", lexeme,true);\n backupChar();\n }\n\n } else if ( c == '\\\"') {\n lexeme.append(c);\n c = nextChar();\n // catch the entire string\n while (!(index == charArray.length | c == '\\\"')) {\n lexeme.append(c);\n c = nextChar();\n }\n lexeme.append(c);\n // check if string ends correctly\n if(c == '\\\"') {\n saveToken(token, \"stringlit\", lexeme,true);\n } else {\n saveToken(token, \"stringlit\", lexeme,false);\n }\n\n } else { // catch the entire error token\n System.out.println(\"error: \" + c);\n while ( !isTransferChar(c)){\n lexeme.append(c);\n c = nextChar();\n }\n if (isTransferChar(c)) {\n backupChar();\n }\n\n System.out.println(\"error: \" + c);\n\n token.lexeme = lexeme.toString();\n if (token.lexeme.length() == 1){\n token.tokenType = \"char\";\n } else {\n token.tokenType = \"id\";\n }\n token.valid = false;\n token.position = rowNo;\n }\n\n return token;\n }", "title": "" }, { "docid": "7b53922497d8453f5777ee9c136c82b6", "score": "0.53637385", "text": "protected void enterTokenDeclaration(Production node)\n throws ParseException {\n }", "title": "" }, { "docid": "352c662d238b03329262c660e6fdca83", "score": "0.53533095", "text": "TemplateToken next();", "title": "" }, { "docid": "8db7ccb8df5f941446d3d32d91eac1cb", "score": "0.53380287", "text": "private int yyr32() {\n yysp -= 7;\n return yypStatement();\n }", "title": "" }, { "docid": "ad1ace1a3de6cdb7c1c37b554ef64be9", "score": "0.5326979", "text": "public interface ParserConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int WHITE_SPACE = 1;\n /** RegularExpression Id. */\n int LINE_TERMINATOR = 2;\n /** RegularExpression Id. */\n int STRING = 7;\n /** RegularExpression Id. */\n int CHAR_WITHOUT_QUOT = 8;\n /** RegularExpression Id. */\n int CHAR_WITHOUT_DQUOT = 9;\n /** RegularExpression Id. */\n int WORD = 10;\n /** RegularExpression Id. */\n int HEXNUM = 11;\n /** RegularExpression Id. */\n int INT = 12;\n /** RegularExpression Id. */\n int HEXINT = 13;\n /** RegularExpression Id. */\n int DIGIT = 14;\n /** RegularExpression Id. */\n int HEXDIGIT = 15;\n /** RegularExpression Id. */\n int LCLETTER = 16;\n /** RegularExpression Id. */\n int WS = 17;\n /** RegularExpression Id. */\n int DOCTYPE = 18;\n /** RegularExpression Id. */\n int PCDATA = 19;\n\n /** Lexical state. */\n int DEFAULT = 0;\n /** Lexical state. */\n int IN_COMMENT = 1;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"<WHITE_SPACE>\",\n \"<LINE_TERMINATOR>\",\n \"\\\"<!--\\\"\",\n \"<token of kind 4>\",\n \"<token of kind 5>\",\n \"\\\"-->\\\"\",\n \"<STRING>\",\n \"<CHAR_WITHOUT_QUOT>\",\n \"<CHAR_WITHOUT_DQUOT>\",\n \"<WORD>\",\n \"<HEXNUM>\",\n \"<INT>\",\n \"<HEXINT>\",\n \"<DIGIT>\",\n \"<HEXDIGIT>\",\n \"<LCLETTER>\",\n \"<WS>\",\n \"<DOCTYPE>\",\n \"<PCDATA>\",\n \"\\\"\\\\\\\"\\\"\",\n \"\\\"=\\\"\",\n \"\\\"%\\\"\",\n \"\\\"-\\\"\",\n \"\\\"/\\\"\",\n \"\\\">\\\"\",\n \"<token of kind 26>\",\n \"\\\"?>\\\"\",\n \"<token of kind 28>\",\n \"\\\"<head\\\"\",\n \"\\\"</head>\\\"\",\n \"<token of kind 31>\",\n \"\\\"/>\\\"\",\n \"\\\"<base\\\"\",\n \"<token of kind 34>\",\n \"\\\"<meta\\\"\",\n \"<token of kind 36>\",\n \"\\\"<isindex\\\"\",\n \"<token of kind 38>\",\n \"\\\"<link\\\"\",\n \"<token of kind 40>\",\n \"\\\"<title\\\"\",\n \"\\\"</title>\\\"\",\n \"<token of kind 43>\",\n \"\\\"<script\\\"\",\n \"\\\"</script>\\\"\",\n \"<token of kind 46>\",\n \"\\\"<noscript\\\"\",\n \"\\\"</noscript>\\\"\",\n \"<token of kind 49>\",\n \"\\\"<style\\\"\",\n \"\\\"</style>\\\"\",\n \"<token of kind 52>\",\n \"\\\"<html\\\"\",\n \"\\\"</html>\\\"\",\n \"<token of kind 55>\",\n \"\\\"<body\\\"\",\n \"\\\"</body>\\\"\",\n \"<token of kind 58>\",\n \"\\\"<font\\\"\",\n \"\\\"</font>\\\"\",\n \"<token of kind 61>\",\n \"\\\"<basefont\\\"\",\n \"<token of kind 63>\",\n \"\\\"<applet\\\"\",\n \"\\\"</applet>\\\"\",\n \"<token of kind 66>\",\n \"\\\"<param\\\"\",\n \"<token of kind 68>\",\n \"\\\"<hr\\\"\",\n \"<token of kind 70>\",\n \"\\\"<br\\\"\",\n \"<token of kind 72>\",\n \"\\\"<img\\\"\",\n \"<token of kind 74>\",\n \"\\\"<button\\\"\",\n \"\\\"</button>\\\"\",\n \"<token of kind 77>\",\n \"\\\"<h1\\\"\",\n \"\\\"</h1>\\\"\",\n \"<token of kind 80>\",\n \"\\\"<h2\\\"\",\n \"\\\"</h2>\\\"\",\n \"<token of kind 83>\",\n \"\\\"<h3\\\"\",\n \"\\\"</h3>\\\"\",\n \"<token of kind 86>\",\n \"\\\"<h4\\\"\",\n \"\\\"</h4>\\\"\",\n \"<token of kind 89>\",\n \"\\\"<h5\\\"\",\n \"\\\"</h5>\\\"\",\n \"<token of kind 92>\",\n \"\\\"<h6\\\"\",\n \"\\\"</h6>\\\"\",\n \"<token of kind 95>\",\n \"\\\"<address\\\"\",\n \"\\\"</address>\\\"\",\n \"<token of kind 98>\",\n \"\\\"<p\\\"\",\n \"\\\"</p>\\\"\",\n \"<token of kind 101>\",\n \"\\\"<ul\\\"\",\n \"\\\"</ul>\\\"\",\n \"<token of kind 104>\",\n \"\\\"<ol\\\"\",\n \"\\\"</ol>\\\"\",\n \"<token of kind 107>\",\n \"\\\"<dl\\\"\",\n \"\\\"</dl>\\\"\",\n \"<token of kind 110>\",\n \"\\\"<li\\\"\",\n \"\\\"</li>\\\"\",\n \"<token of kind 113>\",\n \"\\\"<dt\\\"\",\n \"\\\"</dt>\\\"\",\n \"<token of kind 116>\",\n \"\\\"<dd\\\"\",\n \"\\\"</dd>\\\"\",\n \"<token of kind 119>\",\n \"\\\"<dir\\\"\",\n \"\\\"</dir>\\\"\",\n \"<token of kind 122>\",\n \"\\\"<menu\\\"\",\n \"\\\"</menu>\\\"\",\n \"<token of kind 125>\",\n \"\\\"<pre\\\"\",\n \"\\\"</pre>\\\"\",\n \"<token of kind 128>\",\n \"\\\"<div\\\"\",\n \"\\\"</div>\\\"\",\n \"<token of kind 131>\",\n \"\\\"<center\\\"\",\n \"\\\"</center>\\\"\",\n \"<token of kind 134>\",\n \"\\\"<blockquote\\\"\",\n \"\\\"</blockquote>\\\"\",\n \"<token of kind 137>\",\n \"\\\"<q\\\"\",\n \"\\\"</q>\\\"\",\n \"<token of kind 140>\",\n \"\\\"<form\\\"\",\n \"\\\"</form>\\\"\",\n \"<token of kind 143>\",\n \"\\\"<input\\\"\",\n \"<token of kind 145>\",\n \"\\\"<table\\\"\",\n \"\\\"</table>\\\"\",\n \"<token of kind 148>\",\n \"\\\"<colgroup\\\"\",\n \"\\\"</colgroup>\\\"\",\n \"<token of kind 151>\",\n \"\\\"<col\\\"\",\n \"<token of kind 153>\",\n \"\\\"<tbody\\\"\",\n \"\\\"</tbody>\\\"\",\n \"<token of kind 156>\",\n \"\\\"<thead\\\"\",\n \"\\\"</thead>\\\"\",\n \"<token of kind 159>\",\n \"\\\"<tfoot\\\"\",\n \"\\\"</tfoot>\\\"\",\n \"<token of kind 162>\",\n \"\\\"<caption\\\"\",\n \"\\\"</caption>\\\"\",\n \"<token of kind 165>\",\n \"\\\"<tr\\\"\",\n \"\\\"</tr>\\\"\",\n \"<token of kind 168>\",\n \"\\\"<th\\\"\",\n \"\\\"</th>\\\"\",\n \"<token of kind 171>\",\n \"\\\"<td\\\"\",\n \"\\\"</td>\\\"\",\n \"<token of kind 174>\",\n \"\\\"<tt\\\"\",\n \"\\\"</tt>\\\"\",\n \"<token of kind 177>\",\n \"\\\"<i\\\"\",\n \"\\\"</i>\\\"\",\n \"<token of kind 180>\",\n \"\\\"<b\\\"\",\n \"\\\"</b>\\\"\",\n \"<token of kind 183>\",\n \"\\\"<u\\\"\",\n \"\\\"</u>\\\"\",\n \"<token of kind 186>\",\n \"\\\"<strike\\\"\",\n \"\\\"</strike>\\\"\",\n \"<token of kind 189>\",\n \"\\\"<s\\\"\",\n \"\\\"</s>\\\"\",\n \"<token of kind 192>\",\n \"\\\"<del\\\"\",\n \"\\\"</del>\\\"\",\n \"<token of kind 195>\",\n \"\\\"<ins\\\"\",\n \"\\\"</ins>\\\"\",\n \"<token of kind 198>\",\n \"\\\"<big\\\"\",\n \"\\\"</big>\\\"\",\n \"<token of kind 201>\",\n \"\\\"<small\\\"\",\n \"\\\"</small>\\\"\",\n \"<token of kind 204>\",\n \"\\\"<sub\\\"\",\n \"\\\"</sub>\\\"\",\n \"<token of kind 207>\",\n \"\\\"<sup\\\"\",\n \"\\\"</sup>\\\"\",\n \"<token of kind 210>\",\n \"\\\"<em\\\"\",\n \"\\\"</em>\\\"\",\n \"<token of kind 213>\",\n \"\\\"<strong\\\"\",\n \"\\\"</strong>\\\"\",\n \"<token of kind 216>\",\n \"\\\"<dfn\\\"\",\n \"\\\"</dfn>\\\"\",\n \"<token of kind 219>\",\n \"\\\"<span\\\"\",\n \"\\\"</span>\\\"\",\n \"<token of kind 222>\",\n \"\\\"<code\\\"\",\n \"\\\"</code>\\\"\",\n \"<token of kind 225>\",\n \"\\\"<samp\\\"\",\n \"\\\"</samp>\\\"\",\n \"<token of kind 228>\",\n \"\\\"<abbr\\\"\",\n \"\\\"</abbr>\\\"\",\n \"<token of kind 231>\",\n \"\\\"<acronym\\\"\",\n \"\\\"</acronym>\\\"\",\n \"<token of kind 234>\",\n \"\\\"<bdo\\\"\",\n \"\\\"</bdo>\\\"\",\n \"<token of kind 237>\",\n \"\\\"<kbd\\\"\",\n \"\\\"</kbd>\\\"\",\n \"<token of kind 240>\",\n \"\\\"<var\\\"\",\n \"\\\"</var>\\\"\",\n \"<token of kind 243>\",\n \"\\\"<cite\\\"\",\n \"\\\"</cite>\\\"\",\n \"<token of kind 246>\",\n \"\\\"<select\\\"\",\n \"\\\"</select>\\\"\",\n \"<token of kind 249>\",\n \"\\\"<optgroup\\\"\",\n \"\\\"</optgroup>\\\"\",\n \"<token of kind 252>\",\n \"\\\"<option\\\"\",\n \"\\\"</option>\\\"\",\n \"<token of kind 255>\",\n \"\\\"<textarea\\\"\",\n \"\\\"</textarea>\\\"\",\n \"<token of kind 258>\",\n \"\\\"<fieldset\\\"\",\n \"\\\"</fieldset>\\\"\",\n \"<token of kind 261>\",\n \"\\\"<legend\\\"\",\n \"\\\"</legend>\\\"\",\n \"<token of kind 264>\",\n \"\\\"<frameset\\\"\",\n \"\\\"</frameset>\\\"\",\n \"<token of kind 267>\",\n \"\\\"<frame\\\"\",\n \"<token of kind 269>\",\n \"\\\"<noframes\\\"\",\n \"\\\"</noframes>\\\"\",\n \"<token of kind 272>\",\n \"\\\"<iframe\\\"\",\n \"\\\"</iframe>\\\"\",\n \"<token of kind 275>\",\n \"\\\"<object\\\"\",\n \"\\\"</object>\\\"\",\n \"<token of kind 278>\",\n \"\\\"<label\\\"\",\n \"\\\"</label>\\\"\",\n \"<token of kind 281>\",\n \"\\\"<a\\\"\",\n \"\\\"</a>\\\"\",\n \"<token of kind 284>\",\n \"\\\"<map\\\"\",\n \"\\\"</map>\\\"\",\n \"<token of kind 287>\",\n \"\\\"<area\\\"\",\n };\n\n}", "title": "" }, { "docid": "f4bd2b8ba93b25c0ef73b8b7d0dc38b9", "score": "0.5326742", "text": "public interface JavarParserConstants {\r\n\r\n /** End of File. */\r\n int EOF = 0;\r\n /** RegularExpression Id. */\r\n int SINGLE_LINE_COMMENT = 51;\r\n /** RegularExpression Id. */\r\n int FORMAL_COMMENT = 52;\r\n /** RegularExpression Id. */\r\n int MULTI_LINE_COMMENT = 53;\r\n /** RegularExpression Id. */\r\n int INT = 55;\r\n /** RegularExpression Id. */\r\n int OCT = 56;\r\n /** RegularExpression Id. */\r\n int HEX = 57;\r\n /** RegularExpression Id. */\r\n int STRING = 58;\r\n /** RegularExpression Id. */\r\n int ID = 59;\r\n /** RegularExpression Id. */\r\n int LETTER = 60;\r\n /** RegularExpression Id. */\r\n int DIGIT = 61;\r\n\r\n /** Lexical state. */\r\n int DEFAULT = 0;\r\n /** Lexical state. */\r\n int IN_SINGLE_LINE_COMMENT = 1;\r\n /** Lexical state. */\r\n int IN_FORMAL_COMMENT = 2;\r\n /** Lexical state. */\r\n int IN_MULTI_LINE_COMMENT = 3;\r\n\r\n /** Literal token values. */\r\n String[] tokenImage = {\r\n \"<EOF>\",\r\n \"\\\" \\\"\",\r\n \"\\\"\\\\t\\\"\",\r\n \"\\\"\\\\n\\\"\",\r\n \"\\\"\\\\r\\\"\",\r\n \"\\\"\\\\f\\\"\",\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 \"\\\"public\\\"\",\r\n \"\\\"static\\\"\",\r\n \"\\\"void\\\"\",\r\n \"\\\"main\\\"\",\r\n \"\\\"String\\\"\",\r\n \"\\\"class\\\"\",\r\n \"\\\"extends\\\"\",\r\n \"\\\"Thread\\\"\",\r\n \"\\\"synchronized\\\"\",\r\n \"\\\"return\\\"\",\r\n \"\\\"if\\\"\",\r\n \"\\\"else\\\"\",\r\n \"\\\"while\\\"\",\r\n \"\\\"Xinu\\\"\",\r\n \"\\\"true\\\"\",\r\n \"\\\"false\\\"\",\r\n \"\\\"this\\\"\",\r\n \"\\\"null\\\"\",\r\n \"\\\"new\\\"\",\r\n \"\\\"int\\\"\",\r\n \"\\\"boolean\\\"\",\r\n \"\\\"//\\\"\",\r\n \"<token of kind 49>\",\r\n \"\\\"/*\\\"\",\r\n \"<SINGLE_LINE_COMMENT>\",\r\n \"\\\"*/\\\"\",\r\n \"\\\"*/\\\"\",\r\n \"<token of kind 54>\",\r\n \"<INT>\",\r\n \"<OCT>\",\r\n \"<HEX>\",\r\n \"<STRING>\",\r\n \"<ID>\",\r\n \"<LETTER>\",\r\n \"<DIGIT>\",\r\n \"<token of kind 62>\",\r\n };\r\n\r\n}", "title": "" }, { "docid": "6feed7f5541b810d8fd7bb11de915fda", "score": "0.5325525", "text": "public interface CMMConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int SINGLE_LINE_COMMENT = 6;\n /** RegularExpression Id. */\n int FORMAL_COMMENT = 7;\n /** RegularExpression Id. */\n int MULTI_LINE_COMMENT = 8;\n /** RegularExpression Id. */\n int IF = 9;\n /** RegularExpression Id. */\n int ELSE = 10;\n /** RegularExpression Id. */\n int WHILE = 11;\n /** RegularExpression Id. */\n int DO = 12;\n /** RegularExpression Id. */\n int INT = 13;\n /** RegularExpression Id. */\n int REAL = 14;\n /** RegularExpression Id. */\n int CHAR = 15;\n /** RegularExpression Id. */\n int VOID = 16;\n /** RegularExpression Id. */\n int FOR = 17;\n /** RegularExpression Id. */\n int PRINT = 18;\n /** RegularExpression Id. */\n int SCAN = 19;\n /** RegularExpression Id. */\n int BREAK = 20;\n /** RegularExpression Id. */\n int CONTINUE = 21;\n /** RegularExpression Id. */\n int RETURN = 22;\n /** RegularExpression Id. */\n int INTEGER_LITERAL = 23;\n /** RegularExpression Id. */\n int DECIMAL_LITERAL = 24;\n /** RegularExpression Id. */\n int HEX_LITERAL = 25;\n /** RegularExpression Id. */\n int REAL_LITERAL = 26;\n /** RegularExpression Id. */\n int EXPONENT = 27;\n /** RegularExpression Id. */\n int CHARACTER_LITERAL = 28;\n /** RegularExpression Id. */\n int STRING_LITERAL = 29;\n /** RegularExpression Id. */\n int IDENTIFIER = 30;\n /** RegularExpression Id. */\n int LETTER = 31;\n /** RegularExpression Id. */\n int DIGIT = 32;\n /** RegularExpression Id. */\n int LPAREN = 33;\n /** RegularExpression Id. */\n int RPAREN = 34;\n /** RegularExpression Id. */\n int LBRACE = 35;\n /** RegularExpression Id. */\n int RBRACE = 36;\n /** RegularExpression Id. */\n int LBRACKET = 37;\n /** RegularExpression Id. */\n int RBRACKET = 38;\n /** RegularExpression Id. */\n int SEMICOLON = 39;\n /** RegularExpression Id. */\n int COMMA = 40;\n /** RegularExpression Id. */\n int DOT = 41;\n /** RegularExpression Id. */\n int UNDERSCORE = 42;\n /** RegularExpression Id. */\n int ASSIGN = 43;\n /** RegularExpression Id. */\n int PLUS = 44;\n /** RegularExpression Id. */\n int MINUS = 45;\n /** RegularExpression Id. */\n int TIMES = 46;\n /** RegularExpression Id. */\n int DIVIDE = 47;\n /** RegularExpression Id. */\n int MOD = 48;\n /** RegularExpression Id. */\n int BIT_OR = 49;\n /** RegularExpression Id. */\n int BIT_AND = 50;\n /** RegularExpression Id. */\n int XOR = 51;\n /** RegularExpression Id. */\n int TILDE = 52;\n /** RegularExpression Id. */\n int EQ = 53;\n /** RegularExpression Id. */\n int NEQ = 54;\n /** RegularExpression Id. */\n int GT = 55;\n /** RegularExpression Id. */\n int LT = 56;\n /** RegularExpression Id. */\n int GE = 57;\n /** RegularExpression Id. */\n int LE = 58;\n /** RegularExpression Id. */\n int SC_OR = 59;\n /** RegularExpression Id. */\n int SC_AND = 60;\n\n /** Lexical state. */\n int DEFAULT = 0;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\" \\\"\",\n \"\\\"\\\\t\\\"\",\n \"\\\"\\\\n\\\"\",\n \"\\\"\\\\r\\\"\",\n \"\\\"\\\\f\\\"\",\n \"<SINGLE_LINE_COMMENT>\",\n \"<FORMAL_COMMENT>\",\n \"<MULTI_LINE_COMMENT>\",\n \"\\\"if\\\"\",\n \"\\\"else\\\"\",\n \"\\\"while\\\"\",\n \"\\\"do\\\"\",\n \"\\\"int\\\"\",\n \"\\\"real\\\"\",\n \"\\\"char\\\"\",\n \"\\\"void\\\"\",\n \"\\\"for\\\"\",\n \"\\\"print\\\"\",\n \"\\\"scan\\\"\",\n \"\\\"break\\\"\",\n \"\\\"continue\\\"\",\n \"\\\"return\\\"\",\n \"<INTEGER_LITERAL>\",\n \"<DECIMAL_LITERAL>\",\n \"<HEX_LITERAL>\",\n \"<REAL_LITERAL>\",\n \"<EXPONENT>\",\n \"<CHARACTER_LITERAL>\",\n \"<STRING_LITERAL>\",\n \"<IDENTIFIER>\",\n \"<LETTER>\",\n \"<DIGIT>\",\n \"\\\"(\\\"\",\n \"\\\")\\\"\",\n \"\\\"{\\\"\",\n \"\\\"}\\\"\",\n \"\\\"[\\\"\",\n \"\\\"]\\\"\",\n \"\\\";\\\"\",\n \"\\\",\\\"\",\n \"\\\".\\\"\",\n \"\\\"_\\\"\",\n \"\\\"=\\\"\",\n \"\\\"+\\\"\",\n \"\\\"-\\\"\",\n \"\\\"*\\\"\",\n \"\\\"/\\\"\",\n \"\\\"%\\\"\",\n \"\\\"|\\\"\",\n \"\\\"&\\\"\",\n \"\\\"^\\\"\",\n \"\\\"~\\\"\",\n \"\\\"==\\\"\",\n \"\\\"<>\\\"\",\n \"\\\">\\\"\",\n \"\\\"<\\\"\",\n \"\\\">=\\\"\",\n \"\\\"<=\\\"\",\n \"\\\"||\\\"\",\n \"\\\"&&\\\"\",\n };\n\n}", "title": "" }, { "docid": "cc4b3eb64639584a1b334b9f89667d0d", "score": "0.5299606", "text": "public interface JaccParserConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int ABSTRACT = 6;\n /** RegularExpression Id. */\n int BOOLEAN = 7;\n /** RegularExpression Id. */\n int BREAK = 8;\n /** RegularExpression Id. */\n int BYTE = 9;\n /** RegularExpression Id. */\n int CASE = 10;\n /** RegularExpression Id. */\n int CATCH = 11;\n /** RegularExpression Id. */\n int CHAR = 12;\n /** RegularExpression Id. */\n int CLASS = 13;\n /** RegularExpression Id. */\n int CONST = 14;\n /** RegularExpression Id. */\n int CONTINUE = 15;\n /** RegularExpression Id. */\n int _DEFAULT = 16;\n /** RegularExpression Id. */\n int DO = 17;\n /** RegularExpression Id. */\n int DOUBLE = 18;\n /** RegularExpression Id. */\n int ELSE = 19;\n /** RegularExpression Id. */\n int EXTENDS = 20;\n /** RegularExpression Id. */\n int FALSE = 21;\n /** RegularExpression Id. */\n int FINAL = 22;\n /** RegularExpression Id. */\n int FINALLY = 23;\n /** RegularExpression Id. */\n int FLOAT = 24;\n /** RegularExpression Id. */\n int FOR = 25;\n /** RegularExpression Id. */\n int GOTO = 26;\n /** RegularExpression Id. */\n int IF = 27;\n /** RegularExpression Id. */\n int IMPLEMENTS = 28;\n /** RegularExpression Id. */\n int IMPORT = 29;\n /** RegularExpression Id. */\n int INSTANCEOF = 30;\n /** RegularExpression Id. */\n int INT = 31;\n /** RegularExpression Id. */\n int INTERFACE = 32;\n /** RegularExpression Id. */\n int LONG = 33;\n /** RegularExpression Id. */\n int NATIVE = 34;\n /** RegularExpression Id. */\n int NEW = 35;\n /** RegularExpression Id. */\n int NULL = 36;\n /** RegularExpression Id. */\n int PACKAGE = 37;\n /** RegularExpression Id. */\n int PRIVATE = 38;\n /** RegularExpression Id. */\n int PROTECTED = 39;\n /** RegularExpression Id. */\n int PUBLIC = 40;\n /** RegularExpression Id. */\n int RETURN = 41;\n /** RegularExpression Id. */\n int SHORT = 42;\n /** RegularExpression Id. */\n int STATIC = 43;\n /** RegularExpression Id. */\n int SUPER = 44;\n /** RegularExpression Id. */\n int SWITCH = 45;\n /** RegularExpression Id. */\n int SYNCHRONIZED = 46;\n /** RegularExpression Id. */\n int THIS = 47;\n /** RegularExpression Id. */\n int THROW = 48;\n /** RegularExpression Id. */\n int THROWS = 49;\n /** RegularExpression Id. */\n int TRANSIENT = 50;\n /** RegularExpression Id. */\n int TRUE = 51;\n /** RegularExpression Id. */\n int TRY = 52;\n /** RegularExpression Id. */\n int VOID = 53;\n /** RegularExpression Id. */\n int VOLATILE = 54;\n /** RegularExpression Id. */\n int WHILE = 55;\n /** RegularExpression Id. */\n int DECIMAL_LITERAL = 56;\n /** RegularExpression Id. */\n int IDENTIFIER = 57;\n /** RegularExpression Id. */\n int LPAREN = 58;\n /** RegularExpression Id. */\n int RPAREN = 59;\n /** RegularExpression Id. */\n int LBRACE = 60;\n /** RegularExpression Id. */\n int RBRACE = 61;\n /** RegularExpression Id. */\n int LBRACKET = 62;\n /** RegularExpression Id. */\n int RBRACKET = 63;\n /** RegularExpression Id. */\n int SEMICOLON = 64;\n /** RegularExpression Id. */\n int COMMA = 65;\n /** RegularExpression Id. */\n int DOT = 66;\n /** RegularExpression Id. */\n int ASSIGN = 67;\n /** RegularExpression Id. */\n int GT = 68;\n /** RegularExpression Id. */\n int LT = 69;\n /** RegularExpression Id. */\n int BANG = 70;\n /** RegularExpression Id. */\n int TILDE = 71;\n /** RegularExpression Id. */\n int HOOK = 72;\n /** RegularExpression Id. */\n int COLON = 73;\n /** RegularExpression Id. */\n int EQ = 74;\n /** RegularExpression Id. */\n int LE = 75;\n /** RegularExpression Id. */\n int GE = 76;\n /** RegularExpression Id. */\n int NE = 77;\n /** RegularExpression Id. */\n int SC_OR = 78;\n /** RegularExpression Id. */\n int SC_AND = 79;\n /** RegularExpression Id. */\n int PLUS = 80;\n /** RegularExpression Id. */\n int MINUS = 81;\n /** RegularExpression Id. */\n int STAR = 82;\n /** RegularExpression Id. */\n int SLASH = 83;\n /** RegularExpression Id. */\n int REM = 84;\n\n /** Lexical state. */\n int DEFAULT = 0;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\" \\\"\",\n \"\\\"\\\\t\\\"\",\n \"\\\"\\\\n\\\"\",\n \"\\\"\\\\r\\\"\",\n \"\\\"\\\\f\\\"\",\n \"\\\"abstract\\\"\",\n \"\\\"boolean\\\"\",\n \"\\\"break\\\"\",\n \"\\\"byte\\\"\",\n \"\\\"case\\\"\",\n \"\\\"catch\\\"\",\n \"\\\"char\\\"\",\n \"\\\"class\\\"\",\n \"\\\"const\\\"\",\n \"\\\"continue\\\"\",\n \"\\\"default\\\"\",\n \"\\\"do\\\"\",\n \"\\\"double\\\"\",\n \"\\\"else\\\"\",\n \"\\\"extends\\\"\",\n \"\\\"false\\\"\",\n \"\\\"final\\\"\",\n \"\\\"finally\\\"\",\n \"\\\"float\\\"\",\n \"\\\"for\\\"\",\n \"\\\"goto\\\"\",\n \"\\\"if\\\"\",\n \"\\\"implements\\\"\",\n \"\\\"import\\\"\",\n \"\\\"instanceof\\\"\",\n \"\\\"int\\\"\",\n \"\\\"interface\\\"\",\n \"\\\"long\\\"\",\n \"\\\"native\\\"\",\n \"\\\"new\\\"\",\n \"\\\"null\\\"\",\n \"\\\"package\\\"\",\n \"\\\"private\\\"\",\n \"\\\"protected\\\"\",\n \"\\\"public\\\"\",\n \"\\\"return\\\"\",\n \"\\\"short\\\"\",\n \"\\\"static\\\"\",\n \"\\\"super\\\"\",\n \"\\\"switch\\\"\",\n \"\\\"synchronized\\\"\",\n \"\\\"this\\\"\",\n \"\\\"throw\\\"\",\n \"\\\"throws\\\"\",\n \"\\\"transient\\\"\",\n \"\\\"true\\\"\",\n \"\\\"try\\\"\",\n \"\\\"void\\\"\",\n \"\\\"volatile\\\"\",\n \"\\\"while\\\"\",\n \"<DECIMAL_LITERAL>\",\n \"<IDENTIFIER>\",\n \"\\\"(\\\"\",\n \"\\\")\\\"\",\n \"\\\"{\\\"\",\n \"\\\"}\\\"\",\n \"\\\"[\\\"\",\n \"\\\"]\\\"\",\n \"\\\";\\\"\",\n \"\\\",\\\"\",\n \"\\\".\\\"\",\n \"\\\"=\\\"\",\n \"\\\">\\\"\",\n \"\\\"<\\\"\",\n \"\\\"!\\\"\",\n \"\\\"~\\\"\",\n \"\\\"?\\\"\",\n \"\\\":\\\"\",\n \"\\\"==\\\"\",\n \"\\\"<=\\\"\",\n \"\\\">=\\\"\",\n \"\\\"!=\\\"\",\n \"\\\"||\\\"\",\n \"\\\"&&\\\"\",\n \"\\\"+\\\"\",\n \"\\\"-\\\"\",\n \"\\\"*\\\"\",\n \"\\\"/\\\"\",\n \"\\\"%\\\"\",\n };\n\n}", "title": "" }, { "docid": "493affac6a6e5e629936557e9fa8514e", "score": "0.5298417", "text": "private int yyr19() {\n return 50;\n }", "title": "" }, { "docid": "e057e9b6c3adc0bdcf801b014ebbe60c", "score": "0.5278873", "text": "public interface QueryParserConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int WORD = 4;\n /** RegularExpression Id. */\n int LP = 5;\n /** RegularExpression Id. */\n int RP = 6;\n /** RegularExpression Id. */\n int QUOTE = 7;\n /** RegularExpression Id. */\n int OP_AND = 8;\n /** RegularExpression Id. */\n int OP_OR = 9;\n /** RegularExpression Id. */\n int OP_NOT = 10;\n\n /** Lexical state. */\n int DEFAULT = 0;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\"\\\\r\\\"\",\n \"\\\"\\\\t\\\"\",\n \"\\\"\\\\n\\\"\",\n \"<WORD>\",\n \"\\\"(\\\"\",\n \"\\\")\\\"\",\n \"\\\"\\\\\\\"\\\"\",\n \"<OP_AND>\",\n \"<OP_OR>\",\n \"<OP_NOT>\",\n };\n\n}", "title": "" }, { "docid": "eec659090b39de4a82d36faa468fb7fa", "score": "0.5266568", "text": "public interface EG1Constants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int OPEN = 5;\n /** RegularExpression Id. */\n int CLOSE = 6;\n /** RegularExpression Id. */\n int DEFINE = 7;\n /** RegularExpression Id. */\n int DOMAIN = 8;\n /** RegularExpression Id. */\n int DOMAIN_LABEL = 9;\n /** RegularExpression Id. */\n int REQUIREMENTS = 10;\n /** RegularExpression Id. */\n int REQUIREMENT_LABELS = 11;\n /** RegularExpression Id. */\n int TYPES = 12;\n /** RegularExpression Id. */\n int PREDICATES = 13;\n /** RegularExpression Id. */\n int PROBLEM = 14;\n /** RegularExpression Id. */\n int TYPE_IDENT = 15;\n /** RegularExpression Id. */\n int VAR = 16;\n /** RegularExpression Id. */\n int ACTION = 17;\n /** RegularExpression Id. */\n int PARAMETERS = 18;\n /** RegularExpression Id. */\n int PRECONDITION = 19;\n /** RegularExpression Id. */\n int CONSTRAINTS = 20;\n /** RegularExpression Id. */\n int PREFERENCE = 21;\n /** RegularExpression Id. */\n int EFFECT = 22;\n /** RegularExpression Id. */\n int OBJECTS = 23;\n /** RegularExpression Id. */\n int GOAL = 24;\n /** RegularExpression Id. */\n int INIT = 25;\n /** RegularExpression Id. */\n int AND = 26;\n /** RegularExpression Id. */\n int NOT = 27;\n /** RegularExpression Id. */\n int NUMBER = 28;\n /** RegularExpression Id. */\n int NAME = 29;\n /** RegularExpression Id. */\n int SINGLE_LINE_COMMENT = 30;\n\n /** Lexical state. */\n int DEFAULT = 0;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\" \\\"\",\n \"\\\"\\\\r\\\"\",\n \"\\\"\\\\t\\\"\",\n \"\\\"\\\\n\\\"\",\n \"\\\"(\\\"\",\n \"\\\")\\\"\",\n \"\\\"define\\\"\",\n \"\\\"domain\\\"\",\n \"\\\":domain\\\"\",\n \"\\\":requirements\\\"\",\n \"\\\":typing :constraints :preferences\\\"\",\n \"\\\":types\\\"\",\n \"\\\":predicates\\\"\",\n \"\\\"problem\\\"\",\n \"\\\"-\\\"\",\n \"<VAR>\",\n \"\\\":action\\\"\",\n \"\\\":parameters\\\"\",\n \"\\\":precondition\\\"\",\n \"\\\":constraints\\\"\",\n \"\\\"preference\\\"\",\n \"\\\":effect\\\"\",\n \"\\\":objects\\\"\",\n \"\\\":goal\\\"\",\n \"\\\":init\\\"\",\n \"\\\"and\\\"\",\n \"\\\"not\\\"\",\n \"<NUMBER>\",\n \"<NAME>\",\n \"<SINGLE_LINE_COMMENT>\",\n };\n\n}", "title": "" }, { "docid": "f143e9b900cadd3967940ce9942874b3", "score": "0.5265535", "text": "public interface TargetTableParserConstants {\r\n\r\n /** End of File. */\r\n int EOF = 0;\r\n /** RegularExpression Id. */\r\n int MULTI_LINE_COMMENT = 4;\r\n /** RegularExpression Id. */\r\n int SINGLE_LINE_COMMENT = 7;\r\n /** RegularExpression Id. */\r\n int SEMICOLON = 8;\r\n /** RegularExpression Id. */\r\n int SINGLE_QUOTE = 9;\r\n /** RegularExpression Id. */\r\n int OPEN_PAREN = 10;\r\n /** RegularExpression Id. */\r\n int CLOSE_PAREN = 11;\r\n /** RegularExpression Id. */\r\n int COMMA = 12;\r\n /** RegularExpression Id. */\r\n int HYPHEN = 13;\r\n /** RegularExpression Id. */\r\n int ASTERISK = 14;\r\n /** RegularExpression Id. */\r\n int INTO = 15;\r\n /** RegularExpression Id. */\r\n int SET = 16;\r\n /** RegularExpression Id. */\r\n int NOT = 17;\r\n /** RegularExpression Id. */\r\n int FROM = 18;\r\n /** RegularExpression Id. */\r\n int AS = 19;\r\n /** RegularExpression Id. */\r\n int BY = 20;\r\n /** RegularExpression Id. */\r\n int WHERE = 21;\r\n /** RegularExpression Id. */\r\n int ALL = 22;\r\n /** RegularExpression Id. */\r\n int TABLE = 23;\r\n /** RegularExpression Id. */\r\n int CASESPECIFIC = 24;\r\n /** RegularExpression Id. */\r\n int CHARACTER = 25;\r\n /** RegularExpression Id. */\r\n int UPPERCASE = 26;\r\n /** RegularExpression Id. */\r\n int NULL = 27;\r\n /** RegularExpression Id. */\r\n int TO = 28;\r\n /** RegularExpression Id. */\r\n int LITERAL_INTEGER = 29;\r\n /** RegularExpression Id. */\r\n int BLOB = 30;\r\n /** RegularExpression Id. */\r\n int BYTE = 31;\r\n /** RegularExpression Id. */\r\n int VARBYTE = 32;\r\n /** RegularExpression Id. */\r\n int BIGINT = 33;\r\n /** RegularExpression Id. */\r\n int BYTEINT = 34;\r\n /** RegularExpression Id. */\r\n int DATE = 35;\r\n /** RegularExpression Id. */\r\n int DECIMAL = 36;\r\n /** RegularExpression Id. */\r\n int DOUBLE = 37;\r\n /** RegularExpression Id. */\r\n int PRECISION = 38;\r\n /** RegularExpression Id. */\r\n int FLOAT = 39;\r\n /** RegularExpression Id. */\r\n int INTEGER = 40;\r\n /** RegularExpression Id. */\r\n int NUMBER = 41;\r\n /** RegularExpression Id. */\r\n int NUMERIC = 42;\r\n /** RegularExpression Id. */\r\n int REAL = 43;\r\n /** RegularExpression Id. */\r\n int SMALLINT = 44;\r\n /** RegularExpression Id. */\r\n int TIME = 45;\r\n /** RegularExpression Id. */\r\n int TIMESTAMP = 46;\r\n /** RegularExpression Id. */\r\n int INTERVAL = 47;\r\n /** RegularExpression Id. */\r\n int DAY = 48;\r\n /** RegularExpression Id. */\r\n int HOUR = 49;\r\n /** RegularExpression Id. */\r\n int MINUTE = 50;\r\n /** RegularExpression Id. */\r\n int SECOND = 51;\r\n /** RegularExpression Id. */\r\n int MONTH = 52;\r\n /** RegularExpression Id. */\r\n int YEAR = 53;\r\n /** RegularExpression Id. */\r\n int CHAR = 54;\r\n /** RegularExpression Id. */\r\n int CLOB = 55;\r\n /** RegularExpression Id. */\r\n int VARYING = 56;\r\n /** RegularExpression Id. */\r\n int LONG = 57;\r\n /** RegularExpression Id. */\r\n int VARCHAR = 58;\r\n /** RegularExpression Id. */\r\n int GRAPHIC = 59;\r\n /** RegularExpression Id. */\r\n int VARGRAPHIC = 60;\r\n /** RegularExpression Id. */\r\n int UPDATE = 61;\r\n /** RegularExpression Id. */\r\n int INSERT = 62;\r\n /** RegularExpression Id. */\r\n int MERGE = 63;\r\n /** RegularExpression Id. */\r\n int DELETE = 64;\r\n /** RegularExpression Id. */\r\n int CREATE = 65;\r\n /** RegularExpression Id. */\r\n int CT = 66;\r\n /** RegularExpression Id. */\r\n int MULTISET = 67;\r\n /** RegularExpression Id. */\r\n int GLOBAL = 68;\r\n /** RegularExpression Id. */\r\n int TEMPORARY = 69;\r\n /** RegularExpression Id. */\r\n int VOLATILE = 70;\r\n /** RegularExpression Id. */\r\n int USING = 71;\r\n /** RegularExpression Id. */\r\n int DEFERRED = 72;\r\n /** RegularExpression Id. */\r\n int LOCATOR = 73;\r\n /** RegularExpression Id. */\r\n int NAME = 74;\r\n /** RegularExpression Id. */\r\n int LOCKING = 75;\r\n /** RegularExpression Id. */\r\n int DATABASE = 77;\r\n /** RegularExpression Id. */\r\n int TABLE_LCK = 78;\r\n /** RegularExpression Id. */\r\n int VIEW = 79;\r\n /** RegularExpression Id. */\r\n int ROW = 80;\r\n /** RegularExpression Id. */\r\n int FOR = 81;\r\n /** RegularExpression Id. */\r\n int IN = 82;\r\n /** RegularExpression Id. */\r\n int ACCESS = 83;\r\n /** RegularExpression Id. */\r\n int EXCLUSIVE = 84;\r\n /** RegularExpression Id. */\r\n int SHARE = 85;\r\n /** RegularExpression Id. */\r\n int READ = 86;\r\n /** RegularExpression Id. */\r\n int OVERRIDE = 87;\r\n /** RegularExpression Id. */\r\n int WRITE = 88;\r\n /** RegularExpression Id. */\r\n int CHECKSUM = 89;\r\n /** RegularExpression Id. */\r\n int DATABASE_OBJECT_NAME = 90;\r\n /** RegularExpression Id. */\r\n int OBJECT_NAME = 91;\r\n /** RegularExpression Id. */\r\n int CURRENT = 92;\r\n /** RegularExpression Id. */\r\n int VALIDTIME = 93;\r\n /** RegularExpression Id. */\r\n int SEQUENCED = 94;\r\n /** RegularExpression Id. */\r\n int NONSEQUENCED = 95;\r\n /** RegularExpression Id. */\r\n int NONTEMPORAL = 96;\r\n /** RegularExpression Id. */\r\n int PERIOD = 97;\r\n /** RegularExpression Id. */\r\n int UNTIL_CHANGED = 98;\r\n /** RegularExpression Id. */\r\n int UNTIL_CLOSED = 99;\r\n /** RegularExpression Id. */\r\n int PERIOD_BOUND = 100;\r\n /** RegularExpression Id. */\r\n int MODE = 101;\r\n /** RegularExpression Id. */\r\n int NOWAIT = 102;\r\n /** RegularExpression Id. */\r\n int IDENTIFIER = 103;\r\n\r\n /** Lexical state. */\r\n int DEFAULT = 0;\r\n /** Lexical state. */\r\n int ML_COMMENT_STATE = 1;\r\n /** Lexical state. */\r\n int LOCKING_STATE = 2;\r\n\r\n /** Literal token values. */\r\n String[] tokenImage = {\r\n \"<EOF>\",\r\n \"\\\" \\\"\",\r\n \"\\\"\\\\t\\\"\",\r\n \"<token of kind 3>\",\r\n \"\\\"/*\\\"\",\r\n \"\\\"*/\\\"\",\r\n \"<token of kind 6>\",\r\n \"<SINGLE_LINE_COMMENT>\",\r\n \"\\\";\\\"\",\r\n \"\\\"\\\\\\'\\\"\",\r\n \"\\\"(\\\"\",\r\n \"\\\")\\\"\",\r\n \"\\\",\\\"\",\r\n \"\\\"-\\\"\",\r\n \"\\\"*\\\"\",\r\n \"\\\"into\\\"\",\r\n \"\\\"set\\\"\",\r\n \"\\\"not\\\"\",\r\n \"\\\"from\\\"\",\r\n \"\\\"as\\\"\",\r\n \"\\\"by\\\"\",\r\n \"\\\"where\\\"\",\r\n \"\\\"all\\\"\",\r\n \"\\\"table\\\"\",\r\n \"\\\"casespecific\\\"\",\r\n \"\\\"character\\\"\",\r\n \"\\\"uppercase\\\"\",\r\n \"\\\"null\\\"\",\r\n \"\\\"to\\\"\",\r\n \"<LITERAL_INTEGER>\",\r\n \"\\\"blob\\\"\",\r\n \"\\\"byte\\\"\",\r\n \"\\\"varbyte\\\"\",\r\n \"\\\"bigint\\\"\",\r\n \"\\\"byteint\\\"\",\r\n \"\\\"date\\\"\",\r\n \"\\\"decimal\\\"\",\r\n \"\\\"double\\\"\",\r\n \"\\\"precision\\\"\",\r\n \"\\\"float\\\"\",\r\n \"\\\"integer\\\"\",\r\n \"\\\"number\\\"\",\r\n \"\\\"numeric\\\"\",\r\n \"\\\"real\\\"\",\r\n \"\\\"smallint\\\"\",\r\n \"\\\"time\\\"\",\r\n \"\\\"timestamp\\\"\",\r\n \"\\\"interval\\\"\",\r\n \"\\\"day\\\"\",\r\n \"\\\"hour\\\"\",\r\n \"\\\"minute\\\"\",\r\n \"\\\"second\\\"\",\r\n \"\\\"month\\\"\",\r\n \"\\\"year\\\"\",\r\n \"\\\"char\\\"\",\r\n \"\\\"clob\\\"\",\r\n \"\\\"varying\\\"\",\r\n \"\\\"long\\\"\",\r\n \"\\\"varchar\\\"\",\r\n \"\\\"graphic\\\"\",\r\n \"\\\"vargraphic\\\"\",\r\n \"<UPDATE>\",\r\n \"<INSERT>\",\r\n \"\\\"merge\\\"\",\r\n \"<DELETE>\",\r\n \"\\\"create\\\"\",\r\n \"\\\"ct\\\"\",\r\n \"\\\"multiset\\\"\",\r\n \"\\\"global\\\"\",\r\n \"\\\"temporary\\\"\",\r\n \"\\\"volatile\\\"\",\r\n \"\\\"using\\\"\",\r\n \"\\\"deferred\\\"\",\r\n \"\\\"locator\\\"\",\r\n \"\\\"name\\\"\",\r\n \"<LOCKING>\",\r\n \"<token of kind 76>\",\r\n \"\\\"database\\\"\",\r\n \"\\\"table\\\"\",\r\n \"\\\"view\\\"\",\r\n \"\\\"row\\\"\",\r\n \"\\\"for\\\"\",\r\n \"\\\"in\\\"\",\r\n \"\\\"access\\\"\",\r\n \"<EXCLUSIVE>\",\r\n \"\\\"share\\\"\",\r\n \"\\\"read\\\"\",\r\n \"\\\"override\\\"\",\r\n \"\\\"write\\\"\",\r\n \"\\\"checksum\\\"\",\r\n \"<DATABASE_OBJECT_NAME>\",\r\n \"<OBJECT_NAME>\",\r\n \"\\\"current\\\"\",\r\n \"\\\"validtime\\\"\",\r\n \"\\\"sequenced\\\"\",\r\n \"\\\"nonsequenced\\\"\",\r\n \"\\\"nontemporal\\\"\",\r\n \"\\\"period\\\"\",\r\n \"\\\"until_changed\\\"\",\r\n \"\\\"until_closed\\\"\",\r\n \"<PERIOD_BOUND>\",\r\n \"\\\"mode\\\"\",\r\n \"\\\"nowait\\\"\",\r\n \"<IDENTIFIER>\",\r\n };\r\n\r\n}", "title": "" }, { "docid": "ed8344cab406eacc9ccf69e8e626c275", "score": "0.5255661", "text": "T visitRelationalexpression(lengBasicParser.RelationalexpressionContext ctx);", "title": "" }, { "docid": "c85c50672fbbe17eeb84981ac99a8833", "score": "0.52505696", "text": "public PlSql_Parser(PlSqlTokenManager tm) {\n token_source = tm;\n token = new Token();\n jj_ntk = -1;\n jj_gen = 0;\n for (int i = 0; i < 241; 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": "4e82fd18f5df85b17b7e2c0a905a4012", "score": "0.5230243", "text": "public interface BibtextGrammarConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int LB = 5;\n /** RegularExpression Id. */\n int RB = 6;\n /** RegularExpression Id. */\n int ARTICLE = 7;\n /** RegularExpression Id. */\n int BOOK = 8;\n /** RegularExpression Id. */\n int BOOKLET = 9;\n /** RegularExpression Id. */\n int CONFERENCE = 10;\n /** RegularExpression Id. */\n int INBOOK = 11;\n /** RegularExpression Id. */\n int INCOLLECTION = 12;\n /** RegularExpression Id. */\n int INPROCEEDINGS = 13;\n /** RegularExpression Id. */\n int MANUAL = 14;\n /** RegularExpression Id. */\n int MASTERSTHESIS = 15;\n /** RegularExpression Id. */\n int MISC = 16;\n /** RegularExpression Id. */\n int PHDTHESIS = 17;\n /** RegularExpression Id. */\n int PROCEEDINGS = 18;\n /** RegularExpression Id. */\n int TECHREPORT = 19;\n /** RegularExpression Id. */\n int UNPUBLISHED = 20;\n /** RegularExpression Id. */\n int AUTHOR = 21;\n /** RegularExpression Id. */\n int JOURNAL = 22;\n /** RegularExpression Id. */\n int TITLE = 23;\n /** RegularExpression Id. */\n int YEAR = 24;\n /** RegularExpression Id. */\n int MONTH = 25;\n /** RegularExpression Id. */\n int NUMBER = 26;\n /** RegularExpression Id. */\n int PAGES = 27;\n /** RegularExpression Id. */\n int VOLUME = 28;\n /** RegularExpression Id. */\n int PUBLISHER = 29;\n /** RegularExpression Id. */\n int DOI = 30;\n /** RegularExpression Id. */\n int NOTE = 31;\n /** RegularExpression Id. */\n int KEY = 32;\n /** RegularExpression Id. */\n int EDITOR = 33;\n /** RegularExpression Id. */\n int SERIES = 34;\n /** RegularExpression Id. */\n int ADDRESS = 35;\n /** RegularExpression Id. */\n int EDITION = 36;\n /** RegularExpression Id. */\n int URL = 37;\n /** RegularExpression Id. */\n int HOWPUBLISHED = 38;\n /** RegularExpression Id. */\n int CHAPTER = 39;\n /** RegularExpression Id. */\n int BOOKTITLE = 40;\n /** RegularExpression Id. */\n int TYPE = 41;\n /** RegularExpression Id. */\n int ORGANIZATION = 42;\n /** RegularExpression Id. */\n int SCHOOL = 43;\n /** RegularExpression Id. */\n int INSTITUTION = 44;\n /** RegularExpression Id. */\n int WORD = 45;\n /** RegularExpression Id. */\n int CONSTANT = 46;\n /** RegularExpression Id. */\n int ID = 47;\n /** RegularExpression Id. */\n int LETTERSNUMBERS = 48;\n /** RegularExpression Id. */\n int LETTER = 49;\n /** RegularExpression Id. */\n int LOWER = 50;\n /** RegularExpression Id. */\n int UPPER = 51;\n /** RegularExpression Id. */\n int DIGIT = 52;\n /** RegularExpression Id. */\n int COMMA = 53;\n /** RegularExpression Id. */\n int SEMICOLON = 54;\n /** RegularExpression Id. */\n int DASH = 55;\n\n /** Lexical state. */\n int DEFAULT = 0;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\" \\\"\",\n \"\\\"\\\\r\\\"\",\n \"\\\"\\\\t\\\"\",\n \"\\\"\\\\n\\\"\",\n \"\\\"{\\\"\",\n \"\\\"}\\\"\",\n \"\\\"article\\\"\",\n \"\\\"book\\\"\",\n \"\\\"booklet\\\"\",\n \"\\\"conference\\\"\",\n \"\\\"inbook\\\"\",\n \"\\\"incollection\\\"\",\n \"\\\"inproceedings\\\"\",\n \"\\\"manual\\\"\",\n \"\\\"mastersthesis\\\"\",\n \"\\\"misc\\\"\",\n \"\\\"phdthesis\\\"\",\n \"\\\"proceedings\\\"\",\n \"\\\"techreport\\\"\",\n \"\\\"unpublished\\\"\",\n \"\\\"Author\\\"\",\n \"\\\"Journal\\\"\",\n \"\\\"Title\\\"\",\n \"\\\"Year\\\"\",\n \"\\\"Month\\\"\",\n \"\\\"Number\\\"\",\n \"\\\"Pages\\\"\",\n \"\\\"Volume\\\"\",\n \"\\\"Publisher\\\"\",\n \"\\\"Doi\\\"\",\n \"\\\"Note\\\"\",\n \"\\\"Key\\\"\",\n \"\\\"Editor\\\"\",\n \"\\\"Series\\\"\",\n \"\\\"Address\\\"\",\n \"\\\"Edition\\\"\",\n \"\\\"Url\\\"\",\n \"\\\"Howpublished\\\"\",\n \"\\\"Chapter\\\"\",\n \"\\\"Booktitle\\\"\",\n \"\\\"Type\\\"\",\n \"\\\"Organization\\\"\",\n \"\\\"School\\\"\",\n \"\\\"Institution\\\"\",\n \"<WORD>\",\n \"<CONSTANT>\",\n \"<ID>\",\n \"<LETTERSNUMBERS>\",\n \"<LETTER>\",\n \"<LOWER>\",\n \"<UPPER>\",\n \"<DIGIT>\",\n \"<COMMA>\",\n \"<SEMICOLON>\",\n \"<DASH>\",\n \"\\\"@\\\"\",\n \"\\\"=\\\"\",\n \"\\\"-\\\"\",\n \"\\\".\\\"\",\n \"\\\",\\\"\",\n \"\\\"\\\\\\'\\\"\",\n \"\\\":\\\"\",\n \"\\\"/\\\"\",\n };\n\n}", "title": "" }, { "docid": "d8ca35719143ee75b61930930e42fc3d", "score": "0.52300596", "text": "final public void MethodDeclarationLookahead() throws ParseException {\r\n Modifier();\r\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\r\n case STATIC:\r\n YoyooStatic jjtn001 = new YoyooStatic(JJTSTATIC);\r\n boolean jjtc001 = true;\r\n jjtree.openNodeScope(jjtn001);\r\n jjtreeOpenNodeScope(jjtn001);\r\n try {\r\n jj_consume_token(STATIC);\r\n } finally {\r\n if (jjtc001) {\r\n jjtree.closeNodeScope(jjtn001, true);\r\n jjtreeCloseNodeScope(jjtn001);\r\n }\r\n }\r\n break;\r\n default:\r\n jj_la1[20] = jj_gen;\r\n ;\r\n }\r\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\r\n case ABSTRACT:\r\n YoyooAbstract jjtn002 = new YoyooAbstract(JJTABSTRACT);\r\n boolean jjtc002 = true;\r\n jjtree.openNodeScope(jjtn002);\r\n jjtreeOpenNodeScope(jjtn002);\r\n try {\r\n jj_consume_token(ABSTRACT);\r\n } finally {\r\n if (jjtc002) {\r\n jjtree.closeNodeScope(jjtn002, true);\r\n jjtreeCloseNodeScope(jjtn002);\r\n }\r\n }\r\n break;\r\n default:\r\n jj_la1[21] = jj_gen;\r\n ;\r\n }\r\n ResultType();\r\n jj_consume_token(IDENTIFIER);\r\n jj_consume_token(LPAREN);\r\n }", "title": "" }, { "docid": "21bbcf89723dec95861d5becff352030", "score": "0.52059364", "text": "final public void CastLookahead() throws ParseException {\r\n if (jj_2_17(2)) {\r\n jj_consume_token(LPAREN);\r\n PrimitiveType();\r\n } else if (jj_2_18(2147483647)) {\r\n jj_consume_token(LPAREN);\r\n Type();\r\n jj_consume_token(LBRACKET);\r\n jj_consume_token(RBRACKET);\r\n } else {\r\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\r\n case LPAREN:\r\n jj_consume_token(LPAREN);\r\n Type();\r\n jj_consume_token(RPAREN);\r\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\r\n case 117:\r\n jj_consume_token(117);\r\n break;\r\n case BANG:\r\n jj_consume_token(BANG);\r\n break;\r\n case LPAREN:\r\n jj_consume_token(LPAREN);\r\n break;\r\n case IDENTIFIER:\r\n jj_consume_token(IDENTIFIER);\r\n break;\r\n case THIS:\r\n jj_consume_token(THIS);\r\n break;\r\n case SUPER:\r\n jj_consume_token(SUPER);\r\n break;\r\n case NEW:\r\n jj_consume_token(NEW);\r\n break;\r\n case FALSE:\r\n case NULL:\r\n case TRUE:\r\n case INTEGER_LITERAL:\r\n case FLOATING_POINT_LITERAL:\r\n case CHARACTER_LITERAL:\r\n case STRING_LITERAL:\r\n case MULTILINE_STRING_LITERAL:\r\n case SLASH:\r\n Literal();\r\n break;\r\n default:\r\n jj_la1[69] = jj_gen;\r\n jj_consume_token(-1);\r\n throw new ParseException();\r\n }\r\n break;\r\n default:\r\n jj_la1[70] = jj_gen;\r\n jj_consume_token(-1);\r\n throw new ParseException();\r\n }\r\n }\r\n }", "title": "" }, { "docid": "cec3fd4000ab6032f1eb585008e40b82", "score": "0.5189631", "text": "private int yyr25() {\n return yypStatements();\n }", "title": "" }, { "docid": "2f2277df26aef9b4e3cbb36fda159dd7", "score": "0.51759714", "text": "Token next(char endOfAtom) throws ParseException {\n/* 222 */ return next(endOfAtom, false);\n/* */ }", "title": "" }, { "docid": "7485821bb2efad4afd95033230287eeb", "score": "0.51687694", "text": "private int yyr29() {\n yysp -= 5;\n return yypStatement();\n }", "title": "" }, { "docid": "f59f32072182c3a2bea23ba66d84503b", "score": "0.5158212", "text": "T visitLogicalorexpression(lengBasicParser.LogicalorexpressionContext ctx);", "title": "" }, { "docid": "a211b33f09ba8d13e1eefc8c03ba9c9b", "score": "0.5139663", "text": "@Test\n\tpublic void test34()\n\t{\n\t\tGrammar grammar = new Grammar(\"start: reverse|reversed|\\\"reverse the order of\\\" a list\", debugFlag);\n\t\tgrammar.addGlobalAlternative(\"reverse\", \"reversing\");\n\t\tassertEquals(\n\t\t\t1,\n\t\t\tparses(\n\t\t\t\tgrammar,\n\t\t\t\t\"reversing the order of a list\"\n\t\t\t)\n\t\t);\n\t}", "title": "" }, { "docid": "dcae0293e80ea9c8d4fa2ccc883bc595", "score": "0.5139211", "text": "T visitInclusiveorexpression(lengBasicParser.InclusiveorexpressionContext ctx);", "title": "" }, { "docid": "7f0ca6a64477683a1ec670adf4fa4039", "score": "0.5135843", "text": "public final void mT__33() throws RecognitionException {\n try {\n int _type = T__33;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // unql.g:28:7: ( 'END' )\n // unql.g:28:9: 'END'\n {\n match(\"END\"); \n\n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n \t// do for sure before leaving\n }\n }", "title": "" }, { "docid": "d5a929533e4876f66e2c8b7954e97709", "score": "0.5135418", "text": "public interface Token\n extends Text,\n Tokens {\n\n /**\n * the leftmost parsed element, related to this token in the string\n * @param text the string\n * @return token\n */\n @Override\n default Token leftMostIn(final String text) {\n final Token ret;\n if (text.contains(this.toSource())) {\n ret = this;\n } else {\n ret = new Absence();\n }\n return ret;\n }\n\n @Override\n default Tokens exclude(final Tokens tokens) {\n return tokens.contains(this) ?\n new Empty() :\n this;\n }\n\n @Override\n default boolean contains(final Token token) {\n return this.getClass()\n .equals(token.getClass()) && this.toSource()\n .equals(token.toSource());\n }\n\n /**\n * if this text is contained in the parameter, then\n * @param text parameter\n * @return text is preceding to first occurrence\n */\n default String precedingIn(final Source text) {\n return text.precedingThe(this.toSource());\n }\n\n /**\n * @param text parameter\n * if this text is contained in the parameter, then\n * @return text is following to first occurrence\n */\n default Sense followingIn(final Source text) {\n return text.followingThe(this.toSource());\n }\n\n default int length() {\n return this.toSource()\n .length();\n }\n\n /**\n * first position of this element in the string\n * @param text parameter\n * @return position\n */\n default int firstPositionIn(final String text) {\n return text.indexOf(this.toSource());\n }\n\n /**\n * by default recognizing Text is a failed recognition\n * @param unrecognized following text\n * @return failed\n */\n default Sense concat(final Unrecognized unrecognized) {\n return new Failed(this,\n new Source(unrecognized.toSource()));\n }\n\n /**\n * leftmost element in the string, either this, or parameter. if both\n * positions are equals, returns longer one. if neither element is exist,\n * then returns Empty token\n * @param parsed parameter\n * @param text where to search elements\n * @return left most element\n */\n default Token leftMost(final Token parsed,\n final String text) {\n final int thisPosition = this.firstPositionIn(text);\n final int parsedPosition = parsed.firstPositionIn(text);\n if (thisPosition == -1 && parsedPosition == -1) {\n return new Absence();\n } else if (thisPosition == -1) {\n return parsed;\n } else if (parsedPosition == -1) {\n return this;\n } else if (thisPosition > parsedPosition) {\n return parsed;\n } else if (parsedPosition > thisPosition) {\n return this;\n } else if (this.length() > parsed.length()) {\n return this;\n } else {\n return parsed;\n }\n }\n}", "title": "" }, { "docid": "63a73d414976a6d67822980329859052", "score": "0.5135131", "text": "T visitLogicalandexpression(lengBasicParser.LogicalandexpressionContext ctx);", "title": "" }, { "docid": "cb2b85f7df07d5bb254e3177db9d2fc5", "score": "0.5115665", "text": "public final void ruleEnumLiteralDeclaration() throws RecognitionException {\n Token otherlv_0=null;\n Token otherlv_1=null;\n\n try {\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/parser/terminalrules/idea/parser/antlr/internal/PsiInternalXtextTerminalsTestLanguage.g:1795:27: ( ( ( (otherlv_0= RULE_ID ) ) (otherlv_1= '=' ( (lv_literal_2_0= ruleKeyword ) ) )? ) )\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/parser/terminalrules/idea/parser/antlr/internal/PsiInternalXtextTerminalsTestLanguage.g:1796:2: ( ( (otherlv_0= RULE_ID ) ) (otherlv_1= '=' ( (lv_literal_2_0= ruleKeyword ) ) )? )\n {\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/parser/terminalrules/idea/parser/antlr/internal/PsiInternalXtextTerminalsTestLanguage.g:1796:2: ( ( (otherlv_0= RULE_ID ) ) (otherlv_1= '=' ( (lv_literal_2_0= ruleKeyword ) ) )? )\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/parser/terminalrules/idea/parser/antlr/internal/PsiInternalXtextTerminalsTestLanguage.g:1797:3: ( (otherlv_0= RULE_ID ) ) (otherlv_1= '=' ( (lv_literal_2_0= ruleKeyword ) ) )?\n {\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/parser/terminalrules/idea/parser/antlr/internal/PsiInternalXtextTerminalsTestLanguage.g:1797:3: ( (otherlv_0= RULE_ID ) )\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/parser/terminalrules/idea/parser/antlr/internal/PsiInternalXtextTerminalsTestLanguage.g:1798:4: (otherlv_0= RULE_ID )\n {\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/parser/terminalrules/idea/parser/antlr/internal/PsiInternalXtextTerminalsTestLanguage.g:1798:4: (otherlv_0= RULE_ID )\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/parser/terminalrules/idea/parser/antlr/internal/PsiInternalXtextTerminalsTestLanguage.g:1799:5: otherlv_0= RULE_ID\n {\n\n \t\t\t\t\tmarkLeaf(elementTypeProvider.getEnumLiteralDeclaration_EnumLiteralEEnumLiteralCrossReference_0_0ElementType());\n \t\t\t\t\n otherlv_0=(Token)match(input,RULE_ID,FollowSets000.FOLLOW_RULE_ID_in_ruleEnumLiteralDeclaration5205); \n\n \t\t\t\t\tdoneLeaf(otherlv_0);\n \t\t\t\t\n\n }\n\n\n }\n\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/parser/terminalrules/idea/parser/antlr/internal/PsiInternalXtextTerminalsTestLanguage.g:1808:3: (otherlv_1= '=' ( (lv_literal_2_0= ruleKeyword ) ) )?\n int alt48=2;\n int LA48_0 = input.LA(1);\n\n if ( (LA48_0==30) ) {\n alt48=1;\n }\n switch (alt48) {\n case 1 :\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/parser/terminalrules/idea/parser/antlr/internal/PsiInternalXtextTerminalsTestLanguage.g:1809:4: otherlv_1= '=' ( (lv_literal_2_0= ruleKeyword ) )\n {\n\n \t\t\t\tmarkLeaf(elementTypeProvider.getEnumLiteralDeclaration_EqualsSignKeyword_1_0ElementType());\n \t\t\t\n otherlv_1=(Token)match(input,30,FollowSets000.FOLLOW_30_in_ruleEnumLiteralDeclaration5236); \n\n \t\t\t\tdoneLeaf(otherlv_1);\n \t\t\t\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/parser/terminalrules/idea/parser/antlr/internal/PsiInternalXtextTerminalsTestLanguage.g:1816:4: ( (lv_literal_2_0= ruleKeyword ) )\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/parser/terminalrules/idea/parser/antlr/internal/PsiInternalXtextTerminalsTestLanguage.g:1817:5: (lv_literal_2_0= ruleKeyword )\n {\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/parser/terminalrules/idea/parser/antlr/internal/PsiInternalXtextTerminalsTestLanguage.g:1817:5: (lv_literal_2_0= ruleKeyword )\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/parser/terminalrules/idea/parser/antlr/internal/PsiInternalXtextTerminalsTestLanguage.g:1818:6: lv_literal_2_0= ruleKeyword\n {\n\n \t\t\t\t\t\tmarkComposite(elementTypeProvider.getEnumLiteralDeclaration_LiteralKeywordParserRuleCall_1_1_0ElementType());\n \t\t\t\t\t\n pushFollow(FollowSets000.FOLLOW_ruleKeyword_in_ruleEnumLiteralDeclaration5268);\n ruleKeyword();\n\n state._fsp--;\n\n\n \t\t\t\t\t\tdoneComposite();\n \t\t\t\t\t\n\n }\n\n\n }\n\n\n }\n break;\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 return ;\n }", "title": "" }, { "docid": "a3503b8e79d882f2420b479e81baf653", "score": "0.51067674", "text": "protected void enterGrammar(Production node) throws ParseException {\n }", "title": "" }, { "docid": "2cb8df231aadc904bb1fd5ddc0d3eacf", "score": "0.51067543", "text": "private final JessToken finishToken(int paramInt, StringBuffer paramStringBuffer)\n/* */ throws JessException\n/* */ {\n/* 215 */ JessToken localJessToken = new JessToken();\n/* 216 */ localJessToken.m_lineno = this.m_line;\n/* */ \n/* 218 */ switch (paramInt)\n/* */ {\n/* */ \n/* */ case 34: \n/* 222 */ localJessToken.m_ttype = 2;\n/* 223 */ localJessToken.m_sval = paramStringBuffer.toString();\n/* 224 */ break;\n/* */ \n/* */ \n/* */ case 40: \n/* 228 */ localJessToken.m_ttype = 40;\n/* 229 */ localJessToken.m_sval = \"(\";\n/* 230 */ break;\n/* */ \n/* */ case 41: \n/* 233 */ localJessToken.m_ttype = 41;\n/* 234 */ localJessToken.m_sval = \")\";\n/* 235 */ break;\n/* */ \n/* */ case 38: \n/* 238 */ localJessToken.m_ttype = 38;\n/* 239 */ localJessToken.m_sval = \"&\";\n/* 240 */ break;\n/* */ \n/* */ case 126: \n/* 243 */ localJessToken.m_ttype = 126;\n/* 244 */ localJessToken.m_sval = \"~\";\n/* 245 */ break;\n/* */ \n/* */ case 124: \n/* 248 */ localJessToken.m_ttype = paramInt;\n/* 249 */ localJessToken.m_sval = \"|\";\n/* 250 */ break;\n/* */ \n/* */ case 61: \n/* 253 */ localJessToken.m_ttype = 61;\n/* 254 */ localJessToken.m_sval = \"=\";\n/* 255 */ break;\n/* */ \n/* */ \n/* */ case 10: \n/* 259 */ localJessToken.m_ttype = 1;\n/* 260 */ localJessToken.m_sval = \"CRLF\";\n/* 261 */ break;\n/* */ \n/* */ \n/* */ case -1: \n/* 265 */ if (paramStringBuffer.length() == 0)\n/* */ {\n/* 267 */ localJessToken.m_ttype = 0;\n/* 268 */ localJessToken.m_sval = \"EOF\";\n/* */ }\n/* */ else {\n/* 271 */ return finishToken(0, paramStringBuffer);\n/* */ }\n/* */ break;\n/* */ case 0: \n/* 275 */ String str = paramStringBuffer.toString();\n/* 276 */ int i = str.charAt(0);\n/* */ \n/* */ \n/* 279 */ if (i == 63)\n/* */ {\n/* 281 */ localJessToken.m_ttype = 8;\n/* 282 */ if (str.length() > 1) {\n/* 283 */ localJessToken.m_sval = str.substring(1);\n/* */ } else {\n/* 285 */ localJessToken.m_sval = RU.gensym(\"_blank_\");\n/* */ }\n/* */ \n/* */ \n/* */ }\n/* 290 */ else if ((i == 36) && (str.length() > 1) && (str.charAt(1) == '?'))\n/* */ {\n/* */ \n/* 293 */ localJessToken.m_ttype = 8192;\n/* 294 */ if (str.length() > 2) {\n/* 295 */ localJessToken.m_sval = str.substring(2);\n/* */ } else {\n/* 297 */ localJessToken.m_sval = RU.gensym(\"_blank_mf\");\n/* */ }\n/* */ \n/* */ \n/* */ }\n/* 302 */ else if ((str.length() == 1) && ((i == 45) || (i == 46) || (i == 43)))\n/* */ {\n/* 304 */ localJessToken.m_ttype = 1;\n/* 305 */ localJessToken.m_sval = str;\n/* */ \n/* */ \n/* */ }\n/* 309 */ else if (isAnInteger(str))\n/* */ {\n/* */ \n/* */ try\n/* */ {\n/* 314 */ int j = Integer.parseInt(str, 10);\n/* 315 */ localJessToken.m_ttype = 4;\n/* 316 */ localJessToken.m_nval = j;\n/* */ \n/* */ }\n/* */ catch (NumberFormatException localNumberFormatException1) {}\n/* */ \n/* */ }\n/* */ else\n/* */ {\n/* */ try\n/* */ {\n/* 326 */ double d = Double.valueOf(str).doubleValue();\n/* 327 */ localJessToken.m_ttype = 32;\n/* 328 */ localJessToken.m_nval = d;\n/* */ \n/* */ }\n/* */ catch (NumberFormatException localNumberFormatException2)\n/* */ {\n/* */ \n/* 334 */ localJessToken.m_ttype = 1;\n/* 335 */ localJessToken.m_sval = str;\n/* */ }\n/* */ }\n/* */ break;\n/* 339 */ default: throw new JessException(\"Tokenizer.finishToken\", \"Impossible tag:\", (char)paramInt); }\n/* */ \n/* 341 */ return localJessToken;\n/* */ }", "title": "" }, { "docid": "43b14def744f4a2e66a268ed1beeaaf2", "score": "0.51020676", "text": "public final void mT__30() throws RecognitionException {\n try {\n int _type = T__30;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // /Users/Samy/Git_Telecom/Compilation2k18/Expr.g:9:7: ( ':' )\n // /Users/Samy/Git_Telecom/Compilation2k18/Expr.g:9:9: ':'\n {\n match(':'); \n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "title": "" }, { "docid": "592e99d59a1e68a2e2ff6a444eb4d429", "score": "0.51018703", "text": "public Token next() throws ParseException {\n/* 204 */ return next(false, false);\n/* */ }", "title": "" }, { "docid": "e10781aa3a002415382e4847e4b575db", "score": "0.5086245", "text": "public final void mT__31() throws RecognitionException {\r\n try {\r\n int _type = T__31;\r\n int _channel = DEFAULT_TOKEN_CHANNEL;\r\n // src/Little.g:12:7: ( ';' )\r\n // src/Little.g:12:9: ';'\r\n {\r\n match(';'); \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": "d54d7b5634dab7c5e1c96ac4ba377451", "score": "0.5085547", "text": "public abstract Token parse(MatchResult result) throws ParseException;", "title": "" }, { "docid": "929cecd8aa403a61aee0621743237f7d", "score": "0.5081841", "text": "public final void mT__31() throws RecognitionException {\n try {\n int _type = T__31;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // ../org.xtext.featuremodel/src-gen/org/xtext/featuremodel/parser/antlr/internal/InternalFeatureModel.g:31:7: ( '<fm:CardinalityInclusiveOr fm:cardMax=\\\"n\\\" fm:cardMin=\\\"1\\\"/>' )\n // ../org.xtext.featuremodel/src-gen/org/xtext/featuremodel/parser/antlr/internal/InternalFeatureModel.g:31:9: '<fm:CardinalityInclusiveOr fm:cardMax=\\\"n\\\" fm:cardMin=\\\"1\\\"/>'\n {\n match(\"<fm:CardinalityInclusiveOr fm:cardMax=\\\"n\\\" fm:cardMin=\\\"1\\\"/>\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "title": "" }, { "docid": "215d1a04e7656b40976de95b77930cb0", "score": "0.50729555", "text": "public interface Literal extends SelectStatementWater, SpecialNamesParagraphWater, CICSStatementWater, PrimaryOperand, InvokeStatementWater, StopLabel {\n}", "title": "" }, { "docid": "353983ef9cdf251531b6007f57055188", "score": "0.50718975", "text": "@Override\n\tpublic String toAntlr() {\n\t\tString antlr = \"\";\n\t\tfor(ExpressionTerm argument : expressionTerms) {\n\t\t\tantlr += argument.toAntlr();\n\t\t}\n\t\tif(instruction)antlr += \"\\n;\";\n\t\t// TODO Write from arguments\n\t\treturn antlr;\n\t}", "title": "" }, { "docid": "8458d160aec590695d950c4ff05d6935", "score": "0.5070875", "text": "public interface MimirJSqlParserConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int K_AS = 5;\n /** RegularExpression Id. */\n int K_DIRECT = 6;\n /** RegularExpression Id. */\n int K_UNCERTAIN = 7;\n /** RegularExpression Id. */\n int K_ANALYZE = 8;\n /** RegularExpression Id. */\n int K_EXPLAIN = 9;\n /** RegularExpression Id. */\n int K_ASSUME = 10;\n /** RegularExpression Id. */\n int K_VIEW = 11;\n /** RegularExpression Id. */\n int K_LENS = 12;\n /** RegularExpression Id. */\n int K_ADAPTIVE = 13;\n /** RegularExpression Id. */\n int K_SCHEMA = 14;\n /** RegularExpression Id. */\n int K_LET = 15;\n /** RegularExpression Id. */\n int K_LOAD = 16;\n /** RegularExpression Id. */\n int K_PLOT = 17;\n /** RegularExpression Id. */\n int K_ALTER = 18;\n /** RegularExpression Id. */\n int K_SAVE = 19;\n /** RegularExpression Id. */\n int K_RENAME = 20;\n /** RegularExpression Id. */\n int K_PRAGMA = 21;\n /** RegularExpression Id. */\n int K_MATERIALIZE = 22;\n /** RegularExpression Id. */\n int K_BY = 23;\n /** RegularExpression Id. */\n int K_DO = 24;\n /** RegularExpression Id. */\n int K_IF = 25;\n /** RegularExpression Id. */\n int K_IS = 26;\n /** RegularExpression Id. */\n int K_IN = 27;\n /** RegularExpression Id. */\n int K_OR = 28;\n /** RegularExpression Id. */\n int K_OF = 29;\n /** RegularExpression Id. */\n int K_ON = 30;\n /** RegularExpression Id. */\n int K_ALL = 31;\n /** RegularExpression Id. */\n int K_AND = 32;\n /** RegularExpression Id. */\n int K_ANY = 33;\n /** RegularExpression Id. */\n int K_KEY = 34;\n /** RegularExpression Id. */\n int K_NOT = 35;\n /** RegularExpression Id. */\n int K_SET = 36;\n /** RegularExpression Id. */\n int K_ASC = 37;\n /** RegularExpression Id. */\n int K_TOP = 38;\n /** RegularExpression Id. */\n int K_END = 39;\n /** RegularExpression Id. */\n int K_DESC = 40;\n /** RegularExpression Id. */\n int K_INTO = 41;\n /** RegularExpression Id. */\n int K_NULL = 42;\n /** RegularExpression Id. */\n int K_LIKE = 43;\n /** RegularExpression Id. */\n int K_DROP = 44;\n /** RegularExpression Id. */\n int K_JOIN = 45;\n /** RegularExpression Id. */\n int K_LEFT = 46;\n /** RegularExpression Id. */\n int K_FROM = 47;\n /** RegularExpression Id. */\n int K_OPEN = 48;\n /** RegularExpression Id. */\n int K_CASE = 49;\n /** RegularExpression Id. */\n int K_WHEN = 50;\n /** RegularExpression Id. */\n int K_THEN = 51;\n /** RegularExpression Id. */\n int K_ELSE = 52;\n /** RegularExpression Id. */\n int K_SOME = 53;\n /** RegularExpression Id. */\n int K_FULL = 54;\n /** RegularExpression Id. */\n int K_WITH = 55;\n /** RegularExpression Id. */\n int K_TABLE = 56;\n /** RegularExpression Id. */\n int K_WHERE = 57;\n /** RegularExpression Id. */\n int K_USING = 58;\n /** RegularExpression Id. */\n int K_UNION = 59;\n /** RegularExpression Id. */\n int K_GROUP = 60;\n /** RegularExpression Id. */\n int K_BEGIN = 61;\n /** RegularExpression Id. */\n int K_INDEX = 62;\n /** RegularExpression Id. */\n int K_INNER = 63;\n /** RegularExpression Id. */\n int K_LIMIT = 64;\n /** RegularExpression Id. */\n int K_OUTER = 65;\n /** RegularExpression Id. */\n int K_ORDER = 66;\n /** RegularExpression Id. */\n int K_RIGHT = 67;\n /** RegularExpression Id. */\n int K_DELETE = 68;\n /** RegularExpression Id. */\n int K_CREATE = 69;\n /** RegularExpression Id. */\n int K_SELECT = 70;\n /** RegularExpression Id. */\n int K_CAST = 71;\n /** RegularExpression Id. */\n int K_PROVENANCE = 72;\n /** RegularExpression Id. */\n int K_OFFSET = 73;\n /** RegularExpression Id. */\n int K_EXISTS = 74;\n /** RegularExpression Id. */\n int K_HAVING = 75;\n /** RegularExpression Id. */\n int K_INSERT = 76;\n /** RegularExpression Id. */\n int K_UPDATE = 77;\n /** RegularExpression Id. */\n int K_VALUES = 78;\n /** RegularExpression Id. */\n int K_ESCAPE = 79;\n /** RegularExpression Id. */\n int K_PRIMARY = 80;\n /** RegularExpression Id. */\n int K_NATURAL = 81;\n /** RegularExpression Id. */\n int K_REPLACE = 82;\n /** RegularExpression Id. */\n int K_BETWEEN = 83;\n /** RegularExpression Id. */\n int K_TRUNCATE = 84;\n /** RegularExpression Id. */\n int K_DISTINCT = 85;\n /** RegularExpression Id. */\n int K_INTERSECT = 86;\n /** RegularExpression Id. */\n int K_FEEDBACK = 87;\n /** RegularExpression Id. */\n int K_EXTRACT = 88;\n /** RegularExpression Id. */\n int K_ASSIGNMENTS = 89;\n /** RegularExpression Id. */\n int S_DOUBLE = 90;\n /** RegularExpression Id. */\n int S_INTEGER = 91;\n /** RegularExpression Id. */\n int DIGIT = 92;\n /** RegularExpression Id. */\n int LINE_COMMENT = 93;\n /** RegularExpression Id. */\n int MULTI_LINE_COMMENT = 94;\n /** RegularExpression Id. */\n int S_IDENTIFIER = 95;\n /** RegularExpression Id. */\n int LETTER = 96;\n /** RegularExpression Id. */\n int SPECIAL_CHARS = 97;\n /** RegularExpression Id. */\n int S_CHAR_LITERAL = 98;\n /** RegularExpression Id. */\n int S_QUOTED_IDENTIFIER = 99;\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 \"\\\"AS\\\"\",\n \"\\\"DIRECT\\\"\",\n \"\\\"UNCERTAIN\\\"\",\n \"\\\"ANALYZE\\\"\",\n \"\\\"EXPLAIN\\\"\",\n \"\\\"ASSUME\\\"\",\n \"\\\"VIEW\\\"\",\n \"\\\"LENS\\\"\",\n \"\\\"ADAPTIVE\\\"\",\n \"\\\"SCHEMA\\\"\",\n \"\\\"LET\\\"\",\n \"\\\"LOAD\\\"\",\n \"\\\"PLOT\\\"\",\n \"\\\"ALTER\\\"\",\n \"\\\"SAVE\\\"\",\n \"\\\"RENAME\\\"\",\n \"\\\"PRAGMA\\\"\",\n \"\\\"MATERIALIZE\\\"\",\n \"\\\"BY\\\"\",\n \"\\\"DO\\\"\",\n \"\\\"IF\\\"\",\n \"\\\"IS\\\"\",\n \"\\\"IN\\\"\",\n \"\\\"OR\\\"\",\n \"\\\"OF\\\"\",\n \"\\\"ON\\\"\",\n \"\\\"ALL\\\"\",\n \"\\\"AND\\\"\",\n \"\\\"ANY\\\"\",\n \"\\\"KEY\\\"\",\n \"\\\"NOT\\\"\",\n \"\\\"SET\\\"\",\n \"\\\"ASC\\\"\",\n \"\\\"TOP\\\"\",\n \"\\\"END\\\"\",\n \"\\\"DESC\\\"\",\n \"\\\"INTO\\\"\",\n \"\\\"NULL\\\"\",\n \"\\\"LIKE\\\"\",\n \"\\\"DROP\\\"\",\n \"\\\"JOIN\\\"\",\n \"\\\"LEFT\\\"\",\n \"\\\"FROM\\\"\",\n \"\\\"OPEN\\\"\",\n \"\\\"CASE\\\"\",\n \"\\\"WHEN\\\"\",\n \"\\\"THEN\\\"\",\n \"\\\"ELSE\\\"\",\n \"\\\"SOME\\\"\",\n \"\\\"FULL\\\"\",\n \"\\\"WITH\\\"\",\n \"\\\"TABLE\\\"\",\n \"\\\"WHERE\\\"\",\n \"\\\"USING\\\"\",\n \"\\\"UNION\\\"\",\n \"\\\"GROUP\\\"\",\n \"\\\"BEGIN\\\"\",\n \"\\\"INDEX\\\"\",\n \"\\\"INNER\\\"\",\n \"\\\"LIMIT\\\"\",\n \"\\\"OUTER\\\"\",\n \"\\\"ORDER\\\"\",\n \"\\\"RIGHT\\\"\",\n \"\\\"DELETE\\\"\",\n \"\\\"CREATE\\\"\",\n \"\\\"SELECT\\\"\",\n \"\\\"CAST\\\"\",\n \"\\\"PROVENANCE\\\"\",\n \"\\\"OFFSET\\\"\",\n \"\\\"EXISTS\\\"\",\n \"\\\"HAVING\\\"\",\n \"\\\"INSERT\\\"\",\n \"\\\"UPDATE\\\"\",\n \"\\\"VALUES\\\"\",\n \"\\\"ESCAPE\\\"\",\n \"\\\"PRIMARY\\\"\",\n \"\\\"NATURAL\\\"\",\n \"\\\"REPLACE\\\"\",\n \"\\\"BETWEEN\\\"\",\n \"\\\"TRUNCATE\\\"\",\n \"\\\"DISTINCT\\\"\",\n \"\\\"INTERSECT\\\"\",\n \"\\\"FEEDBACK\\\"\",\n \"\\\"EXTRACT\\\"\",\n \"\\\"ASSIGNMENTS\\\"\",\n \"<S_DOUBLE>\",\n \"<S_INTEGER>\",\n \"<DIGIT>\",\n \"<LINE_COMMENT>\",\n \"<MULTI_LINE_COMMENT>\",\n \"<S_IDENTIFIER>\",\n \"<LETTER>\",\n \"<SPECIAL_CHARS>\",\n \"<S_CHAR_LITERAL>\",\n \"<S_QUOTED_IDENTIFIER>\",\n \"\\\";\\\"\",\n \"\\\":\\\"\",\n \"\\\"(\\\"\",\n \"\\\",\\\"\",\n \"\\\")\\\"\",\n \"\\\"=\\\"\",\n \"\\\".\\\"\",\n \"\\\"*\\\"\",\n \"\\\"?\\\"\",\n \"\\\">\\\"\",\n \"\\\"<\\\"\",\n \"\\\">=\\\"\",\n \"\\\"<=\\\"\",\n \"\\\"<>\\\"\",\n \"\\\"!=\\\"\",\n \"\\\"@@\\\"\",\n \"\\\"||\\\"\",\n \"\\\"|\\\"\",\n \"\\\"&\\\"\",\n \"\\\"+\\\"\",\n \"\\\"-\\\"\",\n \"\\\"/\\\"\",\n \"\\\"^\\\"\",\n \"\\\"{d\\\"\",\n \"\\\"}\\\"\",\n \"\\\"{t\\\"\",\n \"\\\"{ts\\\"\",\n \"\\\"{fn\\\"\",\n };\n\n}", "title": "" }, { "docid": "05f8a16c220e68057e0f6b725baac9e3", "score": "0.5065117", "text": "private int yyr51() {\n return 107;\n }", "title": "" }, { "docid": "4450d89f303b78381b23a2fd18046d14", "score": "0.5056176", "text": "public Token next() {\n\t\t\n\t\tint state = 0;\n\t\tStringBuilder lexeme = new StringBuilder();\n\t\tint startLine = source.line;\n\t\tint startColumn = source.column;\n\t\t\n\t\twhile (true) {\n\t\t\tswitch (state) {\n\t\t\tcase 0:\n\t\t\t\tif (source.atEOF) {\n\t\t\t\t\treturn new Token(source.line, source.column, TokenType.EOF, null);\n\t\t\t\t// State 1 deals with the NUM 0\n\t\t\t\t} else if (source.current == '0') {\n\t\t\t\t\tstartLine = source.line;\n\t\t\t\t\tstartColumn = source.column;\n\t\t\t\t\tlexeme.append(source.current);\n\t\t\t\t\tsource.advance();\n\t\t\t\t\tstate = 1;\n\t\t\t\t// State 2 deals with all the other NUMs\n\t\t\t\t} else if (Character.isDigit(source.current)) {\n\t\t\t\t\tstartLine = source.line;\n\t\t\t\t\tstartColumn = source.column;\n\t\t\t\t\tlexeme.append(source.current);\n\t\t\t\t\tsource.advance();\n\t\t\t\t\tstate = 2;\n\t\t\t\t// State 3 deals with keywords and identifiers\n\t\t\t\t} else if (Character.isAlphabetic(source.current)) {\n\t\t\t\t\tstartLine = source.line;\n\t\t\t\t\tstartColumn = source.column;\n\t\t\t\t\tlexeme.append(source.current);\n\t\t\t\t\tsource.advance();\n\t\t\t\t\tstate = 3;\n\t\t\t // States 4-7 deal with comments\n\t\t\t\t} else if (source.current == '/') {\n\t\t\t\t\tstate = 4;\n\t\t\t\t\tsource.advance();\n\t\t\t\t// State 8 deals with operators and punctuation\n\t\t\t\t} else if (\"+-*;.:(),\".contains(String.valueOf(source.current))) {\n\t\t\t\t\tstate = 8;\n\t\t\t\t\tlexeme.append(source.current);\n\t\t\t\t\tsource.advance();\n\t\t\t\t// State 9 deals with <= and <> as well as <\n\t\t\t\t} else if (source.current == '<') {\n\t\t\t\t\tstartLine = source.line;\n\t\t\t\t\tstartColumn = source.column;\n\t\t\t\t\tstate = 9;\n\t\t\t\t\tsource.advance();\n\t\t\t\t// State 10 deals with >= and >\n\t\t\t\t} else if (source.current == '>') {\n\t\t\t\t\tstartLine = source.line;\n\t\t\t\t\tstartColumn = source.column;\n\t\t\t\t\tstate = 10;\n\t\t\t\t\tsource.advance();\n\t\t\t\t// States 11-12 deal with string literal\n\t\t\t\t} else if (source.current == '\"') {\n\t\t\t\t\tstartLine = source.line;\n\t\t\t\t\tstartColumn = source.column;\n\t\t\t\t\tstate = 11;\n\t\t\t\t\tsource.advance();\n\t\t\t\t// States 13-14 deal with equal operator ==\n\t\t\t\t} else if (source.current == '=') {\n\t\t\t\t\tstartLine = source.line;\n\t\t\t\t\tstartColumn = source.column;\n\t\t\t\t\tstate = 13;\n\t\t\t\t\tsource.advance();\n\t\t\t\t} else if (Character.isWhitespace(source.current)) {\n\t\t\t\t\tsource.advance();\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"Unexpected character '\" + source.current + \"' at line \" + source.line + \" column \" + source.column + \" was skipped.\");\n\t\t\t\t\tsource.advance();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 1:\n\t\t\t\treturn new Token(startLine, startColumn, TokenType.NUM, lexeme.toString());\n\t\t\t\t\n\t\t\tcase 2:\n\t\t\t\tif (source.atEOF || !Character.isDigit(source.current)) {\n\t\t\t\t\treturn new Token(startLine, startColumn, TokenType.NUM, lexeme.toString());\n\t\t\t\t} else {\n\t\t\t\t\tlexeme.append(source.current);\n\t\t\t\t\tsource.advance();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\t// a list of legal characters to signal the end of lexeme\n\t\t\t\tString end_chars = \"+-*;.=/ \\t\\n:(),<>\\\"\";\n\t\t\t\t\n\t\t\t\t// Alphabets, digits, and underscores are parts of legal identifier\n\t\t\t\tif (Character.isAlphabetic(source.current) || Character.isDigit(source.current) || source.current == '_') {\n\t\t\t\t\tlexeme.append(source.current);\n\t\t\t\t\tsource.advance();\n\t\t\t\t// This case is the end of token\n\t\t\t\t} else if (end_chars.contains(String.valueOf(source.current))) {\n\t\t\t\t\tString lex = lexeme.toString();\n\t\t\t\t\t\n\t\t\t\t\tif (keywords.containsKey(lex))\n\t\t\t\t\t\treturn new Token(startLine, startColumn, keywords.get(lex), null);\n\t\t\t\t\telse\n\t\t\t\t\t\treturn new Token(startLine, startColumn, TokenType.ID, lex);\n\t\t\t\t// If there is a illegal character, print an error message\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"Unexpected character '\" + source.current + \"' at line \" + source.line + \" column \" + source.column + \" was skipped.\");\n\t\t\t\t\tsource.advance();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\tif (source.current == '/') {\n\t\t\t\t\tstate = 5;\n\t\t\t\t\tsource.advance();\n\t\t\t\t}\n\t\t\t\telse if (source.current == '*') {\n\t\t\t\t\tstate = 6;\n\t\t\t\t\tsource.advance();\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"You have to use // for a one-line comment.\");\n\t\t\t\t\tstate = 0;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 5:\n\t\t\t\tif (source.current == '\\n')\n\t\t\t\t\tstate = 0;\n\t\t\t\tsource.advance();\n\t\t\t\tbreak;\n\t\t\tcase 6:\n\t\t\t\tif (source.current == '*')\n\t\t\t\t\tstate = 7;\n\t\t\t\telse if (source.atEOF) {\n\t\t\t\t\tSystem.out.println(\"Comment has to be closed with '*/' before EOF\");\n\t\t\t\t\tstate = 0;\n\t\t\t\t}\n\t\t\t\tsource.advance();\n\t\t\t\tbreak;\n\t\t\tcase 7:\n\t\t\t\tif (source.current == '/')\n\t\t\t\t\tstate = 0;\n\t\t\t\telse if (source.current == '*')\n\t\t\t\t\tstate = 7;\n\t\t\t\telse if (source.atEOF) {\n\t\t\t\t\tSystem.out.println(\"Comment has to be closed with '*/' before EOF\");\n\t\t\t\t\tstate = 0;\n\t\t\t\t} else\n\t\t\t\t\tstate = 6;\n\t\t\t\tsource.advance();\n\t\t\t\tbreak;\n\t\t\tcase 8:\n\t\t\t\tString lex = lexeme.toString();\n\t\t\t\treturn new Token(startLine, startColumn, opsAndPunct.get(lex), null);\n\t\t\tcase 9:\n\t\t\t\tif (source.current == '=') {\n\t\t\t\t\tsource.advance();\n\t\t\t\t\treturn new Token(startLine, startColumn, TokenType.LE, null);\n\t\t\t\t}\n\t\t\t\telse if (source.current == '>') {\n\t\t\t\t\tsource.advance();\n\t\t\t\t\treturn new Token(startLine, startColumn, TokenType.NE, null);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\treturn new Token(startLine, startColumn, TokenType.LT, null);\n\t\t\tcase 10:\n\t\t\t\tif (source.current == '=') {\n\t\t\t\t\tsource.advance();\n\t\t\t\t\treturn new Token(startLine, startColumn, TokenType.GE, null);\n\t\t\t\t} else \n\t\t\t\t\treturn new Token(startLine, startColumn, TokenType.GT, null);\n\t\t\tcase 11:\n\t\t\t\tif (source.current == '\"')\n\t\t\t\t\tstate = 12;\n\t\t\t\telse if (source.current == '\\n')\n\t\t\t\t\tSystem.out.println(\"String literal has to end with \\\"\");\n\t\t\t\t\t// System.exit(1); // Lexical error does not exit the program?\n\t\t\t\telse\n\t\t\t\t\tlexeme.append(source.current);\n\t\t\t\tsource.advance();\n\t\t\t\tbreak;\n\t\t\tcase 12:\n\t\t\t\tif (source.current == '\"') {\n\t\t\t\t\tstate = 11;\n\t\t\t\t\t// Two quotation marks (\"\") is considered a \" in the string literal\n\t\t\t\t\tlexeme.append('\"');\n\t\t\t\t\tsource.advance();\n\t\t\t\t} else \n\t\t\t\t\treturn new Token(startLine, startColumn, TokenType.STRING, lexeme.toString());\n\t\t\t\tbreak;\n\t\t\tcase 13:\n\t\t\t\tif (source.current == '=') {\n\t\t\t\t\tstate = 14;\n\t\t\t\t\tsource.advance();\n\t\t\t\t} else\n\t\t\t\t\treturn new Token(startLine, startColumn, TokenType.ASSIGN, null);\n\t\t\t\tbreak;\n\t\t\tcase 14:\n\t\t\t\treturn new Token(startLine, startColumn, TokenType.EQ, null);\n\t\t\tdefault:\n\t\t\t\t// This part will NOT be executed. The error will be thrown just in case.\n\t\t\t\tthrow new RuntimeException(\"Unreachable. Something is wrong with the lexer.\");\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "64016b855a7d5889305fe2ec9ea33896", "score": "0.50475615", "text": "@Override\r\n\t public boolean matchStatement(LinkedList<Token> tokens) {\r\n\t\tboolean match = true;\r\n\t\tToken token = null;\r\n\t\tIterator<Token> it = tokens.iterator();\r\n\t\twhile (it.hasNext()) {\r\n\t\t token = it.next();\r\n\t\t switch (token.getString()) {\r\n\t\t case \"(\":\r\n\t\t case \")\":\r\n\t\t\tmatch = false;\r\n\t\t\tbreak;\r\n\t\t }\r\n\t\t}\r\n\t\treturn match;\r\n\t }", "title": "" }, { "docid": "32cf09528cc0b15edf9de2bfe0c01cfc", "score": "0.50305325", "text": "T visitAndexpression(lengBasicParser.AndexpressionContext ctx);", "title": "" }, { "docid": "fcd05a13dd6c27126180cfe47fb9e40b", "score": "0.50302964", "text": "public interface ITokens {\n /* terminals */\n public static final int SHORT = 66;\n public static final int BOOL = 64;\n public static final int PRN_LEFT = 60;\n public static final int BIT_LM = 39;\n public static final int NUM_DIV_ASSIGN = 48;\n public static final int BIT_RM = 40;\n public static final int SEMI = 15;\n public static final int NEXT = 8;\n public static final int COMMA = 14;\n public static final int BIT_LM_ASSIGN = 53;\n public static final int BIT_AND = 35;\n public static final int BRC_RIGHT = 57;\n public static final int INTEGER = 67;\n public static final int BIT_XOR = 38;\n public static final int DOUBLE = 70;\n public static final int LGC_CNE = 26;\n public static final int LOOP = 7;\n public static final int TEXT = 73;\n public static final int LGC_CGT = 22;\n public static final int VAR = 4;\n public static final int LGC_AND = 18;\n public static final int BIT_AND_ASSIGN = 50;\n public static final int NUM_MOD_ASSIGN = 49;\n public static final int FLOAT = 69;\n public static final int QUESTION_COLON = 17;\n public static final int NUM_SUB_ASSIGN = 46;\n public static final int LGC_CGE = 24;\n public static final int INCLUDE = 2;\n public static final int BIT_XOR_ASSIGN = 52;\n public static final int CHARS = 71;\n public static final int LONG = 68;\n public static final int QUESTION = 16;\n public static final int LGC_CLT = 21;\n public static final int ASSIGN = 42;\n public static final int NUM_POW = 10;\n public static final int BIT_NOT = 37;\n public static final int NUM_SUB = 28;\n public static final int BIT_OR = 36;\n public static final int BIT_ZRM_ASSIGN = 55;\n public static final int LGC_CLE = 23;\n public static final int ELSE = 6;\n public static final int BREAK = 9;\n public static final int DOT = 12;\n public static final int ECHO = 3;\n public static final int NUM_ADD1 = 32;\n public static final int NULL = 63;\n public static final int LGC_AND_ASSIGN = 43;\n public static final int EOF = 0;\n public static final int LGC_NOT = 20;\n public static final int NUM_MUL = 29;\n public static final int LABEL = 72;\n public static final int LGC_CEE = 25;\n public static final int BIT_ZRM = 41;\n public static final int NUM_MOD = 31;\n public static final int BRK_RIGHT = 59;\n public static final int HOLD_TAIL = 62;\n public static final int NUM_ADD_ASSIGN = 45;\n public static final int BRC_LEFT = 56;\n public static final int error = 1;\n public static final int IF = 5;\n public static final int PRN_RIGHT = 61;\n public static final int NUM_MUL_ASSIGN = 47;\n public static final int COLON = 13;\n public static final int MERGE = 11;\n public static final int NUM_ADD = 27;\n public static final int NUM_DIV = 30;\n public static final int NUM_SUB1 = 33;\n public static final int NUM_NGT = 34;\n public static final int LGC_OR_ASSIGN = 44;\n public static final int BYTE = 65;\n public static final int LGC_OR = 19;\n public static final int BIT_OR_ASSIGN = 51;\n public static final int BIT_RM_ASSIGN = 54;\n public static final int BRK_LEFT = 58;\n}", "title": "" }, { "docid": "cbd4285e29fae6be2b02e5734cb33c3a", "score": "0.5030275", "text": "public String visit(VarDeclaration n, String argu) throws RuntimeException{\n String _ret=null;\n\n\t String filename=previousprogram.get(1)+\".ll\";\n\t BufferedWriter bw=null;\n\t try{\n\t\t File f=new File(filename);\n\t\t /*if(!file.exists()){\n\t\t\tfile.createNewFile();\n\t\t }*/\n\t\t FileWriter fw=new FileWriter(f,true);\n\t\t\t\t\n\t\t bw=new BufferedWriter(fw);\n\t }\n\t catch (IOException e) {\n e.printStackTrace();\n }\n\n\n\n String type=n.f0.accept(this, argu);\n String name=n.f1.accept(this, argu);\n\t //System.out.println(\"TYPE and NAME=\"+type+name);\n\n n.f2.accept(this, argu);\n\t program.add(\";\");\n\n\t try{\n\n\t\t\n\t\tbw.flush();\n\t\tbw.close();\n\t }\n\t catch (IOException e) {\n e.printStackTrace();\n }\n return _ret;\n }", "title": "" }, { "docid": "99b8484edd08cad66b4f8447e0792042", "score": "0.5022795", "text": "public interface IntASTStatement extends IntASTNode {\n \n}", "title": "" }, { "docid": "649a5ee4b28110c3dd9faf9866a21a19", "score": "0.50166416", "text": "private void compileStatement(){\n tokenizer.advance();\n\n //siguiente '}'\n if (tokenizer.tokenType() == JackTokenizer.SYMBOL && tokenizer.symbol() == '}'){\n tokenizer.pointerBack();\n return;\n }\n\n //siguiente caso 'let'|'if'|'while'|'do'|'return'\n if (tokenizer.tokenType() != JackTokenizer.KEYWORD){\n error(\"keyword\");\n }else {\n switch (tokenizer.keyWord()){\n case JackTokenizer.LET:compileLet();break;\n case JackTokenizer.IF:compileIf();break;\n case JackTokenizer.WHILE:compilesWhile();break;\n case JackTokenizer.DO:compileDo();break;\n case JackTokenizer.RETURN:compileReturn();break;\n default:error(\"'let'|'if'|'while'|'do'|'return'\");\n }\n }\n\n compileStatement();\n }", "title": "" }, { "docid": "8a8e7c7c89ca2b8c8a44e09299fb43ac", "score": "0.50135607", "text": "public final void mT__31() throws RecognitionException {\n try {\n int _type = T__31;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // /Users/Samy/Git_Telecom/Compilation2k18/Expr.g:10:7: ( ',' )\n // /Users/Samy/Git_Telecom/Compilation2k18/Expr.g:10:9: ','\n {\n match(','); \n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "title": "" }, { "docid": "00d4eafc1efd116a161847cfc30cce5f", "score": "0.500551", "text": "private Token match(Token.Kind kind) {\n\t\tcheckNotEof();\n\t\tToken token = tokens.get(index++);\n\t\tif (token.kind != kind) {\n\t\t\tsyntaxError(\"expecting \\\"\" + kind + \"\\\" here\", token);\n\t\t}\n\t\treturn token;\n\t}", "title": "" }, { "docid": "bf5aae8a4dc11a7a0bdbc6e3053a7eed", "score": "0.4989482", "text": "public String visit(TypeDeclaration n, String argu) throws Exception {\n System.out.println(\"TypeDeclaration :\");\n return n.f0.accept(this, null);\n }", "title": "" }, { "docid": "701d28da13ab2f40b90e8f8c92b1b808", "score": "0.4988934", "text": "protected Node exitTokenDeclaration(Production node)\n throws ParseException {\n\n return node;\n }", "title": "" }, { "docid": "973eb7f660097fe032b3a2bcff74880b", "score": "0.49843964", "text": "public String visit(AssignmentStatement n, String argu) {\n String _ret=null;\n\t String filename=previousprogram.get(1)+\".ll\";\n\t BufferedWriter bw=null;\n\t try{\n\t\t File f=new File(filename);\n\t\t /*if(!file.exists()){\n\t\t\tfile.createNewFile();\n\t\t }*/\n\t\t FileWriter fw=new FileWriter(f,true);\n\t\t\t\t\n\t\t bw=new BufferedWriter(fw);\n\t }\n\t catch (IOException e) {\n e.printStackTrace();\n }\n\n\n\n\t String type1,type2;\n\t type1=n.f0.accept(this,argu);\n\t String name1=program.get(program.size()-1);\n\t try{\n\t\t/*bw.write(\"%_\"+numregister+\" = load \");\n\t\tnumregister++;\n\t\tif(type1==\"int\"){\n\t\t\tbw.write(\"i32, i32* %\"+program.get(program.size()-1)+\"\\n\");\n\t\t}*/\n\t\tbw.flush();\n\t }\n\t catch (IOException e) {\n e.printStackTrace();\n }\n\n n.f1.accept(this, argu);\n\t program.add(\"=\");\n type2=n.f2.accept(this, argu);//o typos toy antikeimenoy einai type1\n\t \n\t try{\n\t\tbw.write(\"store \");\n\t\tif(isNumeric(program.get(program.size()-1))&&program.get(program.size()-2)==\"=\"){\n\t\t\tif(program.get(program.size()-1)==\"]\"){\n\t\t\t\t\tbw.write(\"i32 %_\"+(numregister-1)+\", i32* %\"+(numregister-1)+\"\\n\");\n\t\t\t}\n\t\t\telse{\n\t\t\t\tbw.write(\"i32 \"+program.get(program.size()-1)+\", i32* %\"+program.get(program.size()-3)+\"\\n\");\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\tif(type1==\"int\"||type1==\"int[]\"){\n\t\t\t\tif(program.get(program.size()-1)==\"]\"){\n\t\t\t\t\tbw.write(\"i32 %_\"+(numregister-1)+\", i32* %\"+(numregister-4)+\"\\n\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tbw.write(\"i32 %_\"+(numregister-1)+\", i32* %\"+name1+\"\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tbw.flush();\n\t }\n\t catch (IOException e) {\n e.printStackTrace();\n }\n\n\t \n n.f3.accept(this, argu);\n\t program.add(\";\");\n\t\n return _ret;\n }", "title": "" }, { "docid": "448fde94221a81c69491098c2a9b9027", "score": "0.49797532", "text": "public interface IDLParserConstants {\r\n\r\n /** End of File. */\r\n int EOF = 0;\r\n /** RegularExpression Id. */\r\n int ID = 24;\r\n /** RegularExpression Id. */\r\n int OCTALINT = 25;\r\n /** RegularExpression Id. */\r\n int DECIMALINT = 26;\r\n /** RegularExpression Id. */\r\n int HEXADECIMALINT = 27;\r\n /** RegularExpression Id. */\r\n int FLOATONE = 28;\r\n /** RegularExpression Id. */\r\n int FLOATTWO = 29;\r\n /** RegularExpression Id. */\r\n int CHARACTER = 30;\r\n /** RegularExpression Id. */\r\n int STRING = 31;\r\n\r\n /** Lexical state. */\r\n int DEFAULT = 0;\r\n\r\n /** Literal token values. */\r\n String[] tokenImage = {\r\n \"<EOF>\",\r\n \"\\\" \\\"\",\r\n \"\\\"\\\\t\\\"\",\r\n \"\\\"\\\\n\\\"\",\r\n \"\\\"\\\\r\\\"\",\r\n \"<token of kind 5>\",\r\n \"<token of kind 6>\",\r\n \"<token of kind 7>\",\r\n \"\\\";\\\"\",\r\n \"\\\"module\\\"\",\r\n \"\\\"{\\\"\",\r\n \"\\\"}\\\"\",\r\n \"\\\"struct\\\"\",\r\n \"\\\",\\\"\",\r\n \"\\\"[\\\"\",\r\n \"\\\"]\\\"\",\r\n \"\\\"float\\\"\",\r\n \"\\\"double\\\"\",\r\n \"\\\"long\\\"\",\r\n \"\\\"short\\\"\",\r\n \"\\\"unsigned\\\"\",\r\n \"\\\"char\\\"\",\r\n \"\\\"boolean\\\"\",\r\n \"\\\"octet\\\"\",\r\n \"<ID>\",\r\n \"<OCTALINT>\",\r\n \"<DECIMALINT>\",\r\n \"<HEXADECIMALINT>\",\r\n \"<FLOATONE>\",\r\n \"<FLOATTWO>\",\r\n \"<CHARACTER>\",\r\n \"<STRING>\",\r\n };\r\n\r\n}", "title": "" }, { "docid": "e44042db2551f72be7d50e3ade6aaf9e", "score": "0.4974882", "text": "public final void ruleEnumLiteralDeclaration() throws RecognitionException {\n Token otherlv_0=null;\n Token otherlv_1=null;\n\n try {\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/idea/parser/antlr/internal/PsiInternalXtextGrammarTestLanguage.g:1883:27: ( ( ( (otherlv_0= RULE_ID ) ) (otherlv_1= '=' ( (lv_literal_2_0= ruleKeyword ) ) )? ) )\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/idea/parser/antlr/internal/PsiInternalXtextGrammarTestLanguage.g:1884:2: ( ( (otherlv_0= RULE_ID ) ) (otherlv_1= '=' ( (lv_literal_2_0= ruleKeyword ) ) )? )\n {\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/idea/parser/antlr/internal/PsiInternalXtextGrammarTestLanguage.g:1884:2: ( ( (otherlv_0= RULE_ID ) ) (otherlv_1= '=' ( (lv_literal_2_0= ruleKeyword ) ) )? )\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/idea/parser/antlr/internal/PsiInternalXtextGrammarTestLanguage.g:1885:3: ( (otherlv_0= RULE_ID ) ) (otherlv_1= '=' ( (lv_literal_2_0= ruleKeyword ) ) )?\n {\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/idea/parser/antlr/internal/PsiInternalXtextGrammarTestLanguage.g:1885:3: ( (otherlv_0= RULE_ID ) )\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/idea/parser/antlr/internal/PsiInternalXtextGrammarTestLanguage.g:1886:4: (otherlv_0= RULE_ID )\n {\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/idea/parser/antlr/internal/PsiInternalXtextGrammarTestLanguage.g:1886:4: (otherlv_0= RULE_ID )\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/idea/parser/antlr/internal/PsiInternalXtextGrammarTestLanguage.g:1887:5: otherlv_0= RULE_ID\n {\n\n \t\t\t\t\tmarkLeaf(elementTypeProvider.getEnumLiteralDeclaration_EnumLiteralEEnumLiteralCrossReference_0_0ElementType());\n \t\t\t\t\n otherlv_0=(Token)match(input,RULE_ID,FollowSets000.FOLLOW_RULE_ID_in_ruleEnumLiteralDeclaration5441); \n\n \t\t\t\t\tdoneLeaf(otherlv_0);\n \t\t\t\t\n\n }\n\n\n }\n\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/idea/parser/antlr/internal/PsiInternalXtextGrammarTestLanguage.g:1896:3: (otherlv_1= '=' ( (lv_literal_2_0= ruleKeyword ) ) )?\n int alt50=2;\n int LA50_0 = input.LA(1);\n\n if ( (LA50_0==30) ) {\n alt50=1;\n }\n switch (alt50) {\n case 1 :\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/idea/parser/antlr/internal/PsiInternalXtextGrammarTestLanguage.g:1897:4: otherlv_1= '=' ( (lv_literal_2_0= ruleKeyword ) )\n {\n\n \t\t\t\tmarkLeaf(elementTypeProvider.getEnumLiteralDeclaration_EqualsSignKeyword_1_0ElementType());\n \t\t\t\n otherlv_1=(Token)match(input,30,FollowSets000.FOLLOW_30_in_ruleEnumLiteralDeclaration5472); \n\n \t\t\t\tdoneLeaf(otherlv_1);\n \t\t\t\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/idea/parser/antlr/internal/PsiInternalXtextGrammarTestLanguage.g:1904:4: ( (lv_literal_2_0= ruleKeyword ) )\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/idea/parser/antlr/internal/PsiInternalXtextGrammarTestLanguage.g:1905:5: (lv_literal_2_0= ruleKeyword )\n {\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/idea/parser/antlr/internal/PsiInternalXtextGrammarTestLanguage.g:1905:5: (lv_literal_2_0= ruleKeyword )\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/idea/parser/antlr/internal/PsiInternalXtextGrammarTestLanguage.g:1906:6: lv_literal_2_0= ruleKeyword\n {\n\n \t\t\t\t\t\tmarkComposite(elementTypeProvider.getEnumLiteralDeclaration_LiteralKeywordParserRuleCall_1_1_0ElementType());\n \t\t\t\t\t\n pushFollow(FollowSets000.FOLLOW_ruleKeyword_in_ruleEnumLiteralDeclaration5504);\n ruleKeyword();\n\n state._fsp--;\n\n\n \t\t\t\t\t\tdoneComposite();\n \t\t\t\t\t\n\n }\n\n\n }\n\n\n }\n break;\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 return ;\n }", "title": "" }, { "docid": "38755a77c3bad74855e6bca9c3ba7d6c", "score": "0.49635845", "text": "public Token next() {\n\t\tif (_buffer.isEmpty())\n\t\t\treturn null;\n\n\t\t// TODO: Complete this method\n\t\t// START YOUR CODE\n\t\tchar firstChar = _buffer.charAt(0);\n\t\tif (firstChar == 'I'){\n\t\t\tif (_buffer.substring(0, 11).equals(\"INSERT INTO\")){\n\t\t\t\tStringBuilder stringBuilder = new StringBuilder();\n\t\t\t\tint pos = 12 ;\n\t\t\t\t//current char (digit) , pointer\n\t\t\t\tchar current = _buffer.charAt(pos);\n\t\t\t\twhile(current!='V'){\n\t\t\t\t\tstringBuilder.append(current);\n\t\t\t\t\tpos++;\n\t\t\t\t\t// if else to handle the out of range bug\n\t\t\t\t\t//make sure the current pointer is not out of bounds\n\t\t\t\t\tif(pos<_buffer.length()){\n\t\t\t\t\t\tcurrent = _buffer.charAt(pos);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(stringBuilder.toString());\n\t\t\t\tstringBuilder.setLength(stringBuilder.length()-1);\n\t\t\t\treturn new Token(Token.Type.INSERT_INTO,stringBuilder.toString(),\"INSERT INTO \"+stringBuilder.toString());\n\t\t\t}\n\t\t}\n\n\t\tif (firstChar == 'V'){\n\t\t\tif (_buffer.substring(0, 6 ).equals(\"VALUES\")){\n\n\t\t\t\treturn new Token(Token.Type.VALUES,_buffer.substring(7,_buffer.length()),_buffer);\n\t\t\t}\n\t\t}\n\n\n\n\n\t\t// You are allowed to remove the following 'return null' if necessary\n\t\treturn null;\n\t\t\n\t\t// END YOUR CODE\n\t}", "title": "" }, { "docid": "23f89ec3146c7a11ac5c7d5ee9abd011", "score": "0.49534968", "text": "public interface CyclParserConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int OPEN_PAREN = 1;\n /** RegularExpression Id. */\n int CLOSE_PAREN = 2;\n /** RegularExpression Id. */\n int WS = 10;\n /** RegularExpression Id. */\n int CONSTANT_PREFIX = 11;\n /** RegularExpression Id. */\n int SIMPLE_VARIABLE_PREFIX = 12;\n /** RegularExpression Id. */\n int META_VARIABLE_PREFIX = 13;\n /** RegularExpression Id. */\n int GUID_PREFIX = 14;\n /** RegularExpression Id. */\n int TRUE_CONSTANT = 15;\n /** RegularExpression Id. */\n int FALSE_CONSTANT = 16;\n /** RegularExpression Id. */\n int AND_CONSTANT = 17;\n /** RegularExpression Id. */\n int OR_CONSTANT = 18;\n /** RegularExpression Id. */\n int XOR_CONSTANT = 19;\n /** RegularExpression Id. */\n int NOT_CONSTANT = 20;\n /** RegularExpression Id. */\n int EQUIV_CONSTANT = 21;\n /** RegularExpression Id. */\n int IMPLIES_CONSTANT = 22;\n /** RegularExpression Id. */\n int FORALL_CONSTANT = 23;\n /** RegularExpression Id. */\n int THEREEXISTS_CONSTANT = 24;\n /** RegularExpression Id. */\n int THEREEXISTEXACTLY_CONSTANT = 25;\n /** RegularExpression Id. */\n int THEREEXISTATMOST_CONSTANT = 26;\n /** RegularExpression Id. */\n int THEREEXISTATLEAST_CONSTANT = 27;\n /** RegularExpression Id. */\n int EXPANDSUBLFN_CONSTANT = 28;\n /** RegularExpression Id. */\n int SUBLQUOTEFN_CONSTANT = 29;\n /** RegularExpression Id. */\n int TRUE_GUID_CONSTANT = 30;\n /** RegularExpression Id. */\n int FALSE_GUID_CONSTANT = 31;\n /** RegularExpression Id. */\n int AND_GUID_CONSTANT = 32;\n /** RegularExpression Id. */\n int OR_GUID_CONSTANT = 33;\n /** RegularExpression Id. */\n int XOR_GUID_CONSTANT = 34;\n /** RegularExpression Id. */\n int NOT_GUID_CONSTANT = 35;\n /** RegularExpression Id. */\n int EQUIV_GUID_CONSTANT = 36;\n /** RegularExpression Id. */\n int IMPLIES_GUID_CONSTANT = 37;\n /** RegularExpression Id. */\n int FORALL_GUID_CONSTANT = 38;\n /** RegularExpression Id. */\n int THEREEXISTS_GUID_CONSTANT = 39;\n /** RegularExpression Id. */\n int THEREEXISTEXACTLY_GUID_CONSTANT = 40;\n /** RegularExpression Id. */\n int THEREEXISTATMOST_GUID_CONSTANT = 41;\n /** RegularExpression Id. */\n int THEREEXISTATLEAST_GUID_CONSTANT = 42;\n /** RegularExpression Id. */\n int EXPANDSUBLFN_GUID_CONSTANT = 43;\n /** RegularExpression Id. */\n int SUBLQUOTEFN_GUID_CONSTANT = 44;\n /** RegularExpression Id. */\n int TRUE_GUID = 45;\n /** RegularExpression Id. */\n int FALSE_GUID = 46;\n /** RegularExpression Id. */\n int AND_GUID = 47;\n /** RegularExpression Id. */\n int OR_GUID = 48;\n /** RegularExpression Id. */\n int XOR_GUID = 49;\n /** RegularExpression Id. */\n int NOT_GUID = 50;\n /** RegularExpression Id. */\n int EQUIV_GUID = 51;\n /** RegularExpression Id. */\n int IMPLIES_GUID = 52;\n /** RegularExpression Id. */\n int FORALL_GUID = 53;\n /** RegularExpression Id. */\n int THEREEXISTS_GUID = 54;\n /** RegularExpression Id. */\n int THEREEXISTEXACTLY_GUID = 55;\n /** RegularExpression Id. */\n int THEREEXISTATMOST_GUID = 56;\n /** RegularExpression Id. */\n int THEREEXISTATLEAST_GUID = 57;\n /** RegularExpression Id. */\n int EXPANDSUBLFN_GUID = 58;\n /** RegularExpression Id. */\n int SUBLQUOTEFN_GUID = 59;\n /** RegularExpression Id. */\n int INTEGER = 60;\n /** RegularExpression Id. */\n int FLOAT = 61;\n /** RegularExpression Id. */\n int DECIMAL_INT = 62;\n /** RegularExpression Id. */\n int FLOAT_ONE = 63;\n /** RegularExpression Id. */\n int FLOAT_TWO = 64;\n /** RegularExpression Id. */\n int CONSTANT_NAME1 = 65;\n /** RegularExpression Id. */\n int NON_NUMERIC_START_CHAR = 66;\n /** RegularExpression Id. */\n int NUMERIC_START_CHAR = 67;\n /** RegularExpression Id. */\n int VALID_CONSTANT_CHAR = 68;\n /** RegularExpression Id. */\n int CONSTANT_NAME2 = 69;\n /** RegularExpression Id. */\n int CONSTANT_GUID = 70;\n /** RegularExpression Id. */\n int GUID_CHAR = 71;\n /** RegularExpression Id. */\n int CONSTANT_GUID2 = 72;\n /** RegularExpression Id. */\n int SIMPLE_VARIABLE = 73;\n /** RegularExpression Id. */\n int NON_DASH_VARIABLE_CHAR = 74;\n /** RegularExpression Id. */\n int META_VARIABLE = 75;\n /** RegularExpression Id. */\n int NON_DASH_META_VARIABLE_CHAR = 76;\n /** RegularExpression Id. */\n int STRING = 77;\n\n /** Lexical state. */\n int DEFAULT = 0;\n /** Lexical state. */\n int IN_LINE_COMMENT = 1;\n /** Lexical state. */\n int IN_COMMENT = 2;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\"(\\\"\",\n \"\\\")\\\"\",\n \"\\\"//\\\"\",\n \"\\\";\\\"\",\n \"\\\"/*\\\"\",\n \"\\\"\\\\n\\\"\",\n \"<token of kind 7>\",\n \"\\\"*/\\\"\",\n \"<token of kind 9>\",\n \"<WS>\",\n \"\\\"#$\\\"\",\n \"\\\"?\\\"\",\n \"\\\":\\\"\",\n \"\\\"#G\\\"\",\n \"<TRUE_CONSTANT>\",\n \"<FALSE_CONSTANT>\",\n \"<AND_CONSTANT>\",\n \"<OR_CONSTANT>\",\n \"<XOR_CONSTANT>\",\n \"<NOT_CONSTANT>\",\n \"<EQUIV_CONSTANT>\",\n \"<IMPLIES_CONSTANT>\",\n \"<FORALL_CONSTANT>\",\n \"<THEREEXISTS_CONSTANT>\",\n \"<THEREEXISTEXACTLY_CONSTANT>\",\n \"<THEREEXISTATMOST_CONSTANT>\",\n \"<THEREEXISTATLEAST_CONSTANT>\",\n \"<EXPANDSUBLFN_CONSTANT>\",\n \"<SUBLQUOTEFN_CONSTANT>\",\n \"<TRUE_GUID_CONSTANT>\",\n \"<FALSE_GUID_CONSTANT>\",\n \"<AND_GUID_CONSTANT>\",\n \"<OR_GUID_CONSTANT>\",\n \"<XOR_GUID_CONSTANT>\",\n \"<NOT_GUID_CONSTANT>\",\n \"<EQUIV_GUID_CONSTANT>\",\n \"<IMPLIES_GUID_CONSTANT>\",\n \"<FORALL_GUID_CONSTANT>\",\n \"<THEREEXISTS_GUID_CONSTANT>\",\n \"<THEREEXISTEXACTLY_GUID_CONSTANT>\",\n \"<THEREEXISTATMOST_GUID_CONSTANT>\",\n \"<THEREEXISTATLEAST_GUID_CONSTANT>\",\n \"<EXPANDSUBLFN_GUID_CONSTANT>\",\n \"<SUBLQUOTEFN_GUID_CONSTANT>\",\n \"\\\"bd5880d9-9c29-11b1-9dad-c379636f7270\\\"\",\n \"\\\"bd5880d8-9c29-11b1-9dad-c379636f7270\\\"\",\n \"\\\"bd5880f9-9c29-11b1-9dad-c379636f7270\\\"\",\n \"\\\"bd5880fa-9c29-11b1-9dad-c379636f7270\\\"\",\n \"\\\"bde7f9f2-9c29-11b1-9dad-c379636f7270\\\"\",\n \"\\\"bd5880fb-9c29-11b1-9dad-c379636f7270\\\"\",\n \"\\\"bda887b6-9c29-11b1-9dad-c379636f7270\\\"\",\n \"\\\"bd5880f8-9c29-11b1-9dad-c379636f7270\\\"\",\n \"\\\"bd5880f7-9c29-11b1-9dad-c379636f7270\\\"\",\n \"\\\"bd5880f6-9c29-11b1-9dad-c379636f7270\\\"\",\n \"\\\"c10ae7b8-9c29-11b1-9dad-c379636f7270\\\"\",\n \"\\\"c10af932-9c29-11b1-9dad-c379636f7270\\\"\",\n \"\\\"c10af5e7-9c29-11b1-9dad-c379636f7270\\\"\",\n \"\\\"c0b2bc13-9c29-11b1-9dad-c379636f7270\\\"\",\n \"\\\"94f07021-8b0d-11d7-8701-0002b3a8515d\\\"\",\n \"<INTEGER>\",\n \"<FLOAT>\",\n \"<DECIMAL_INT>\",\n \"<FLOAT_ONE>\",\n \"<FLOAT_TWO>\",\n \"<CONSTANT_NAME1>\",\n \"<NON_NUMERIC_START_CHAR>\",\n \"<NUMERIC_START_CHAR>\",\n \"<VALID_CONSTANT_CHAR>\",\n \"<CONSTANT_NAME2>\",\n \"<CONSTANT_GUID>\",\n \"<GUID_CHAR>\",\n \"<CONSTANT_GUID2>\",\n \"<SIMPLE_VARIABLE>\",\n \"<NON_DASH_VARIABLE_CHAR>\",\n \"<META_VARIABLE>\",\n \"<NON_DASH_META_VARIABLE_CHAR>\",\n \"<STRING>\",\n \"\\\".\\\"\",\n };\n\n}", "title": "" }, { "docid": "bb3ddc0eac4ca75a830200218a640619", "score": "0.4952386", "text": "private int yyr28() {\n yysp -= 5;\n return yypStatement();\n }", "title": "" }, { "docid": "7481229c4fe900a76ead52be3a1cb367", "score": "0.49490005", "text": "public interface SimpleConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int MAIN = 5;\n /** RegularExpression Id. */\n int ACHAVES = 6;\n /** RegularExpression Id. */\n int FCHAVES = 7;\n /** RegularExpression Id. */\n int APARENTESES = 8;\n /** RegularExpression Id. */\n int FPARENTESES = 9;\n /** RegularExpression Id. */\n int PRINT = 10;\n /** RegularExpression Id. */\n int ATRIB = 11;\n /** RegularExpression Id. */\n int PV = 12;\n /** RegularExpression Id. */\n int NUM = 13;\n /** RegularExpression Id. */\n int ID = 14;\n\n /** Lexical state. */\n int DEFAULT = 0;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\" \\\"\",\n \"\\\"\\\\t\\\"\",\n \"\\\"\\\\n\\\"\",\n \"\\\"\\\\r\\\"\",\n \"\\\"main\\\"\",\n \"\\\"{\\\"\",\n \"\\\"}\\\"\",\n \"\\\"(\\\"\",\n \"\\\")\\\"\",\n \"\\\"print\\\"\",\n \"\\\":=\\\"\",\n \"\\\";\\\"\",\n \"<NUM>\",\n \"<ID>\",\n };\n\n}", "title": "" }, { "docid": "e3b3640c84d3f622bc16a023726a5395", "score": "0.49485704", "text": "public String visit(ExpressionTerm n, String argu) {\n String _ret=null;\n n.f0.accept(this, argu);\n\t program.add(\",\");\n String type=n.f1.accept(this, argu);\n\t //System.out.println(\"MMMMMMMMMMMMMMMMMMMMMMMMMAAAAAAALLLLLLLLLLLLLLLLLLLLLLLLLLAAAKAAAAAAAAAAAAAAAAAAAAAAA\"+type);\n\t pars.add(type);\n return type;\n }", "title": "" }, { "docid": "d3bd15ff857096cc4138622f67e09d5d", "score": "0.49439725", "text": "private int yyr60() {\n return 142;\n }", "title": "" }, { "docid": "e074f554b036f8321b59104c199923ea", "score": "0.49430427", "text": "public interface ParserSym {\n /* terminals */\n public static final int TIMES = 20;\n public static final int INPUT = 2;\n public static final int ELSE = 9;\n public static final int PLUS = 19;\n public static final int THEN = 8;\n public static final int END = 5;\n public static final int FI = 10;\n public static final int ERROR = 11;\n public static final int IF = 7;\n public static final int ID = 23;\n public static final int LE = 16;\n public static final int COMMA = 12;\n public static final int NUMBER = 24;\n public static final int EOF = 0;\n public static final int DIV = 21;\n public static final int MINUS = 18;\n public static final int ARGUMENTS = 6;\n public static final int error = 1;\n public static final int EQ = 15;\n public static final int FUNCTIONS = 3;\n public static final int LEQ = 17;\n public static final int RPAR = 14;\n public static final int OUTPUT = 4;\n public static final int LPAR = 13;\n public static final int UMINUS = 22;\n}", "title": "" }, { "docid": "5fac65e147210677fa7dcfda1e70c08c", "score": "0.49295995", "text": "public interface Pr3YunjianParserConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int T_ID = 78;\n /** RegularExpression Id. */\n int T_INT = 79;\n /** RegularExpression Id. */\n int T_STR = 80;\n /** RegularExpression Id. */\n int T_Letter = 81;\n /** RegularExpression Id. */\n int T_LetterEtc = 82;\n /** RegularExpression Id. */\n int T_Digit = 83;\n /** RegularExpression Id. */\n int T_Escape = 84;\n /** RegularExpression Id. */\n int T_Hex = 85;\n /** RegularExpression Id. */\n int T_Octal = 86;\n\n /** Lexical state. */\n int DEFAULT = 0;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\"DCI\\\"\",\n \"\\\"DCS\\\"\",\n \"\\\"DEF\\\"\",\n \"\\\"=\\\"\",\n \"\\\"[\\\"\",\n \"\\\",\\\"\",\n \"\\\"]\\\"\",\n \"\\\"if\\\"\",\n \"\\\"(\\\"\",\n \"\\\")\\\"\",\n \"\\\"return\\\"\",\n \"\\\";\\\"\",\n \"\\\"var\\\"\",\n \"\\\"while\\\"\",\n \"\\\"{\\\"\",\n \"\\\"}\\\"\",\n \"\\\"LSL\\\"\",\n \"\\\"LSR\\\"\",\n \"\\\"function\\\"\",\n \"\\\"LR\\\"\",\n \"\\\"PC\\\"\",\n \"\\\"R0\\\"\",\n \"\\\"R1\\\"\",\n \"\\\"R10\\\"\",\n \"\\\"R11\\\"\",\n \"\\\"R12\\\"\",\n \"\\\"R2\\\"\",\n \"\\\"R3\\\"\",\n \"\\\"R4\\\"\",\n \"\\\"R5\\\"\",\n \"\\\"R6\\\"\",\n \"\\\"R7\\\"\",\n \"\\\"R8\\\"\",\n \"\\\"R9\\\"\",\n \"\\\"SP\\\"\",\n \"\\\"||\\\"\",\n \"\\\"&&\\\"\",\n \"\\\"!=\\\"\",\n \"\\\"==\\\"\",\n \"\\\"<\\\"\",\n \"\\\"<=\\\"\",\n \"\\\">\\\"\",\n \"\\\">=\\\"\",\n \"\\\"+\\\"\",\n \"\\\"-\\\"\",\n \"\\\"*\\\"\",\n \"\\\"!\\\"\",\n \"\\\"&\\\"\",\n \"\\\"null\\\"\",\n \"\\\"sizeof\\\"\",\n \"\\\"else\\\"\",\n \"\\\"#\\\"\",\n \"\\\"char\\\"\",\n \"\\\"int\\\"\",\n \"\\\"ADD\\\"\",\n \"\\\"AND\\\"\",\n \"\\\"B\\\"\",\n \"\\\"BEQ\\\"\",\n \"\\\"BGE\\\"\",\n \"\\\"BGT\\\"\",\n \"\\\"BL\\\"\",\n \"\\\"BLE\\\"\",\n \"\\\"BLT\\\"\",\n \"\\\"BNE\\\"\",\n \"\\\"CMP\\\"\",\n \"\\\"EOR\\\"\",\n \"\\\"LDMFD\\\"\",\n \"\\\"LDR\\\"\",\n \"\\\"MOV\\\"\",\n \"\\\"MUL\\\"\",\n \"\\\"MVN\\\"\",\n \"\\\"ORR\\\"\",\n \"\\\"RSB\\\"\",\n \"\\\"STMFD\\\"\",\n \"\\\"STR\\\"\",\n \"\\\"SUB\\\"\",\n \"<token of kind 77>\",\n \"<T_ID>\",\n \"<T_INT>\",\n \"<T_STR>\",\n \"<T_Letter>\",\n \"<T_LetterEtc>\",\n \"<T_Digit>\",\n \"<T_Escape>\",\n \"<T_Hex>\",\n \"<T_Octal>\",\n };\n\n}", "title": "" }, { "docid": "7b66d8a279bbe3b37701faa8a9c532fa", "score": "0.49183992", "text": "@Override\n\tpublic void visit(IdentifierExp n) {\n\n\t}", "title": "" }, { "docid": "bef8295002a741f9ccdf0c8f34c29a70", "score": "0.49144378", "text": "ISimpleTerm getNextAst();", "title": "" }, { "docid": "1451258feaefae7984b760d2aaafb26b", "score": "0.49126124", "text": "@Test\n\tpublic void test31()\n\t{\n\t\t//ChartParser.debugFlag = true;\n\t\t//ChartParser.debugMatchExtension = true;\n\t\tGrammar grammar = new Grammar(\"start: throw throw ball\", debugFlag);\n\t\tList<String> skippableWords = new ArrayList<>();\n\t\tskippableWords.add(\"a\");\n\t\tgrammar.setSkippableWords(skippableWords);\n\t\tassertEquals(\n\t\t\t1,\n\t\t\tparses(\n\t\t\t\tgrammar,\n\t\t\t\t\"throw throw a ball\"\n\t\t\t)\n\t\t);\n\t}", "title": "" }, { "docid": "c99c57cd161dc022d7c7b6baf482b91e", "score": "0.4905512", "text": "public final void ruleCharacterRange() throws RecognitionException {\n Token otherlv_2=null;\n\n try {\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/idea/parser/antlr/internal/PsiInternalXtextGrammarTestLanguage.g:1716:19: ( ( ruleKeyword ( () otherlv_2= '..' ( (lv_right_3_0= ruleKeyword ) ) )? ) )\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/idea/parser/antlr/internal/PsiInternalXtextGrammarTestLanguage.g:1717:2: ( ruleKeyword ( () otherlv_2= '..' ( (lv_right_3_0= ruleKeyword ) ) )? )\n {\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/idea/parser/antlr/internal/PsiInternalXtextGrammarTestLanguage.g:1717:2: ( ruleKeyword ( () otherlv_2= '..' ( (lv_right_3_0= ruleKeyword ) ) )? )\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/idea/parser/antlr/internal/PsiInternalXtextGrammarTestLanguage.g:1718:3: ruleKeyword ( () otherlv_2= '..' ( (lv_right_3_0= ruleKeyword ) ) )?\n {\n\n \t\t\tmarkComposite(elementTypeProvider.getCharacterRange_KeywordParserRuleCall_0ElementType());\n \t\t\n pushFollow(FollowSets000.FOLLOW_ruleKeyword_in_ruleCharacterRange4934);\n ruleKeyword();\n\n state._fsp--;\n\n\n \t\t\tdoneComposite();\n \t\t\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/idea/parser/antlr/internal/PsiInternalXtextGrammarTestLanguage.g:1725:3: ( () otherlv_2= '..' ( (lv_right_3_0= ruleKeyword ) ) )?\n int alt46=2;\n int LA46_0 = input.LA(1);\n\n if ( (LA46_0==40) ) {\n alt46=1;\n }\n switch (alt46) {\n case 1 :\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/idea/parser/antlr/internal/PsiInternalXtextGrammarTestLanguage.g:1726:4: () otherlv_2= '..' ( (lv_right_3_0= ruleKeyword ) )\n {\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/idea/parser/antlr/internal/PsiInternalXtextGrammarTestLanguage.g:1726:4: ()\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/idea/parser/antlr/internal/PsiInternalXtextGrammarTestLanguage.g:1727:5: \n {\n\n \t\t\t\t\tprecedeComposite(elementTypeProvider.getCharacterRange_CharacterRangeLeftAction_1_0ElementType());\n \t\t\t\t\tdoneComposite();\n \t\t\t\t\n\n }\n\n\n \t\t\t\tmarkLeaf(elementTypeProvider.getCharacterRange_FullStopFullStopKeyword_1_1ElementType());\n \t\t\t\n otherlv_2=(Token)match(input,40,FollowSets000.FOLLOW_40_in_ruleCharacterRange4970); \n\n \t\t\t\tdoneLeaf(otherlv_2);\n \t\t\t\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/idea/parser/antlr/internal/PsiInternalXtextGrammarTestLanguage.g:1739:4: ( (lv_right_3_0= ruleKeyword ) )\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/idea/parser/antlr/internal/PsiInternalXtextGrammarTestLanguage.g:1740:5: (lv_right_3_0= ruleKeyword )\n {\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/idea/parser/antlr/internal/PsiInternalXtextGrammarTestLanguage.g:1740:5: (lv_right_3_0= ruleKeyword )\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/idea/parser/antlr/internal/PsiInternalXtextGrammarTestLanguage.g:1741:6: lv_right_3_0= ruleKeyword\n {\n\n \t\t\t\t\t\tmarkComposite(elementTypeProvider.getCharacterRange_RightKeywordParserRuleCall_1_2_0ElementType());\n \t\t\t\t\t\n pushFollow(FollowSets000.FOLLOW_ruleKeyword_in_ruleCharacterRange5002);\n ruleKeyword();\n\n state._fsp--;\n\n\n \t\t\t\t\t\tdoneComposite();\n \t\t\t\t\t\n\n }\n\n\n }\n\n\n }\n break;\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 return ;\n }", "title": "" }, { "docid": "48b5bf2f0cc655448b900ef428a21eae", "score": "0.49054903", "text": "private void Scan_Token() {\n char c = advance();\n switch (c){\n case '(': add_token(LEFT_PAREN); break;\n case ')': add_token(RIGHT_PAREN); break;\n case '{': add_token(LEFT_BRACE); break;\n case '}': add_token(RIGHT_BRACE); break;\n case ',': add_token(COMMA); break;\n case '.': add_token(DOT); break;\n case '-': add_token(MINUS); break;\n case '+': add_token(PLUS); break;\n case ';': add_token(SEMICOLON); break;\n case '*': add_token(STAR); break;\n case '!':\n add_token((match('='))? NEG : NEG_EUQAL);\n break;\n case '=':\n add_token((match('='))? EQUAL_EQUAL : EQUAL);\n break;\n case '<':\n add_token(match('=') ? LESS_EQUAL : LESS);\n break;\n case '>':\n add_token(match('=') ? GREATER_EQUAL : GREATER);\n break;\n case '/':\n // the token is comment\n if (match('/')) {\n while (peek() != '\\n' && !atEnd()) {\n advance();\n }\n } else {\n add_token(SLASH);\n }\n break;\n case ' ':\n case '\\r':\n case '\\t':\n // Ignore whitespace.\n break;\n case '\\n':\n line++;\n break;\n case '\"': string(); break;\n default:\n if (isDigit(c)){\n number();\n } else if (isAlpha(c)) {\n identifier();\n }\n else {\n Lox.error(line, \"Unexpected charcter\");\n }\n break;\n }\n }", "title": "" }, { "docid": "76c2b7cda8f19ffab2f82b9f483e5782", "score": "0.48936436", "text": "int nextToken() {\n logger.debug(\"scan tokens: {}\", command);\n Matcher identifierMatcher = identifierPattern.matcher(command);\n if (identifierMatcher.find()) {\n yylval = identifierMatcher.group();\n command = command.substring(identifierMatcher.end());\n return token = IDENTIFIER;\n }\n\n Matcher numMatcher = numPattern.matcher(command);\n if (numMatcher.find()) {\n yylval = Integer.valueOf(numMatcher.group());\n command = command.substring(numMatcher.end());\n return token = NUM;\n }\n\n Matcher whitespaceMatcher = whiteSpacePattern.matcher(command);\n if (whitespaceMatcher.find()) {\n yylval = whitespaceMatcher.group();\n command = command.substring(whitespaceMatcher.end());\n return token = WHITESPACE;\n }\n\n Matcher semiColonMatcher = semiColonPattern.matcher(command);\n if (semiColonMatcher.find()) {\n yylval = semiColonMatcher.group().charAt(0);\n command = command.substring(semiColonMatcher.end());\n return token = semiColonMatcher.group().charAt(0);\n }\n\n return ENDINPUT;\n }", "title": "" }, { "docid": "5cdbba53a2fd759da9fc18db90b62607", "score": "0.48930007", "text": "public void parseType() throws SyntaxError{\n\t\tif(debug==true) System.out.println(\"Running parseType\");\n\t\twhile (currentToken.kind != Token.IDENTIFIER) {\n\t\t\tswitch(currentToken.kind){\n\t\t\t\tcase Token.INT:\n\t\t\t\t\tacceptIt();\n\t\t\t\t\tif(currentToken.kind == Token.LBRACKET){\n\t\t\t\t\t\tacceptIt();\n\t\t\t\t\t\taccept(Token.RBRACKET, \"parseType\");\t\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase Token.IDENTIFIER:\n\t\t\t\t\tparseIdentifier();\n\t\t\t\t\tif(currentToken.kind == Token.LBRACKET){\n\t\t\t\t\t\tacceptIt();\n\t\t\t\t\t\taccept(Token.RBRACKET, \"parseType\");\t\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase Token.BOOLEAN: \n\t\t\t\t\tacceptIt();\n\t\t\t\t\tbreak;\n\t\t\t\tcase Token.STATIC: \n\t\t\t\t\tacceptIt();\n\t\t\t\t\tbreak;\n\t\t\t\tcase Token.VOID: \n\t\t\t\t\tacceptIt();\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tsyntacticError(\"Unexpected Token in parseType\", currentToken.spelling);\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\t\n\t}", "title": "" }, { "docid": "fefede7a459fb98e045558d618371128", "score": "0.4890032", "text": "public interface ITokVisitor<R, P> extends IExtVisitor<R, String, P, Token>{\r\n\r\n}", "title": "" }, { "docid": "182196e8d4bc80a27ef8036eb171a35c", "score": "0.4881969", "text": "private int yyr27() {\n yysp -= 7;\n return yypStatement();\n }", "title": "" }, { "docid": "a6d55fd98353e6331b3a52a3ce8290db", "score": "0.48817992", "text": "private int yyr24() {\n yysp -= 2;\n return yypStatements();\n }", "title": "" }, { "docid": "1f79f07d96262612d45af65196f9bff3", "score": "0.48787993", "text": "private Statement parseFunctionDeclaration() {\n if(tokens.matchAndConsume(FUNCTION)) {\n FunctionDefinitionStatement functionDefinitionStatement = new FunctionDefinitionStatement();\n Token ex = tokens.consumeToken();\n functionDefinitionStatement.setName(ex.getStringValue());\n functionDefinitionStatement.setStart(ex);\n require(LEFT_PAREN, functionDefinitionStatement);\n\n\n while (!tokens.match(RIGHT_PAREN) && !tokens.match(EOF)) {\n\n String Placer = tokens.consumeToken().getStringValue();\n if (tokens.match(COLON)) {\n tokens.consumeToken();\n functionDefinitionStatement.addParameter(Placer, typeChecker());\n } else {\n functionDefinitionStatement.addParameter(Placer, typeChecker());\n }\n if (tokens.match(COMMA)) {\n tokens.consumeToken();\n }\n\n\n\n }\n\n\n\n\n\n\n\n\n\n\n\n\n\n require(RIGHT_PAREN, functionDefinitionStatement);\n\n if (tokens.matchAndConsume(COLON)) {\n functionDefinitionStatement.setType(typeChecker());\n } else {\n functionDefinitionStatement.setType(null);\n }\n\n\n\n\n require(LEFT_BRACE, functionDefinitionStatement);\n\n\n try {\n List<Statement> body = new LinkedList<>();\n\n while (tokens.hasMoreTokens() && !tokens.match(RIGHT_BRACE)) {\n Statement stmt = parseProgramStatement();\n body.add(stmt);\n }\n functionDefinitionStatement.setBody(body);\n } finally {\n currentFunctionDefinition = null;\n }\n\n functionDefinitionStatement.setEnd(require(RIGHT_BRACE, functionDefinitionStatement));\n return functionDefinitionStatement;\n\n\n\n }\n /*\n if (tokens.matchAndConsume(FUNCTION)) {\n FunctionDefinitionStatement functionDefinitionStatement = new FunctionDefinitionStatement();\n Token name = require(IDENTIFIER, functionDefinitionStatement);\n functionDefinitionStatement.setName(name.getStringValue());\n require(LEFT_PAREN, functionDefinitionStatement);\n\n if (!tokens.matchAndConsume(RIGHT_PAREN)) {\n do {\n // match an identifier\n // if ':' call parseTypeLiteral\n\n functionDefinitionStatement.addParameter(identifier.getStringValue(), CatscriptType.OBJECT);\n } while (tokens.matchAndConsume(COMMA));\n\n }\n require(RIGHT_PAREN, functionDefinitionStatement);\n\n if (tokens.matchAndConsume(COLON)) {\n // call parseTypeliteral\n functionDefinitionStatement.setType(resultOfParseTypeLiteral);\n } else {\n functionDefinitionStatement.setType(null);\n }\n require(LEFT_BRACE, functionDefinitionStatement);\n\n currentFunctionDefinition = functionDefinitionStatement;\n\n\n try {\n List<Statement> body = new LinkedList<>();\n while (!tokens.match(RIGHT_BRACE)) {\n Statement stmt = parseProgramStatement();\n body.add(stmt);\n }\n\n } finally {\n currentFunctionDefinition = null;\n }\n\n\n functionDefinitionStatement.setBody(body);\n require(RIGHT_BRACE, functionDefinitionStatement);\n return functionDefinitionStatement;\n }*/\n\n return null;\n }", "title": "" }, { "docid": "492f0578da102faaabe0cbe75a8287e0", "score": "0.48740557", "text": "protected void enterProductionDeclaration(Production node)\n throws ParseException {\n }", "title": "" }, { "docid": "7183ede990abb85a47d38e73f5d89011", "score": "0.48704505", "text": "public final void ruleGrammar() throws RecognitionException {\n Token otherlv_0=null;\n Token otherlv_2=null;\n Token otherlv_4=null;\n Token lv_definesHiddenTokens_6_0=null;\n Token otherlv_7=null;\n Token otherlv_8=null;\n Token otherlv_9=null;\n Token otherlv_10=null;\n Token otherlv_11=null;\n\n try {\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/parser/terminalrules/idea/parser/antlr/internal/PsiInternalXtextTerminalsTestLanguage.g:58:12: ( (otherlv_0= 'grammar' ( (lv_name_1_0= ruleGrammarID ) ) (otherlv_2= 'with' ( ( ruleGrammarID ) ) (otherlv_4= ',' ( ( ruleGrammarID ) ) )* )? ( ( (lv_definesHiddenTokens_6_0= 'hidden' ) ) otherlv_7= '(' ( ( (otherlv_8= RULE_ID ) ) (otherlv_9= ',' ( (otherlv_10= RULE_ID ) ) )* )? otherlv_11= ')' )? ( (lv_metamodelDeclarations_12_0= ruleAbstractMetamodelDeclaration ) )* ( (lv_rules_13_0= ruleAbstractRule ) )+ ) )\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/parser/terminalrules/idea/parser/antlr/internal/PsiInternalXtextTerminalsTestLanguage.g:59:2: (otherlv_0= 'grammar' ( (lv_name_1_0= ruleGrammarID ) ) (otherlv_2= 'with' ( ( ruleGrammarID ) ) (otherlv_4= ',' ( ( ruleGrammarID ) ) )* )? ( ( (lv_definesHiddenTokens_6_0= 'hidden' ) ) otherlv_7= '(' ( ( (otherlv_8= RULE_ID ) ) (otherlv_9= ',' ( (otherlv_10= RULE_ID ) ) )* )? otherlv_11= ')' )? ( (lv_metamodelDeclarations_12_0= ruleAbstractMetamodelDeclaration ) )* ( (lv_rules_13_0= ruleAbstractRule ) )+ )\n {\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/parser/terminalrules/idea/parser/antlr/internal/PsiInternalXtextTerminalsTestLanguage.g:59:2: (otherlv_0= 'grammar' ( (lv_name_1_0= ruleGrammarID ) ) (otherlv_2= 'with' ( ( ruleGrammarID ) ) (otherlv_4= ',' ( ( ruleGrammarID ) ) )* )? ( ( (lv_definesHiddenTokens_6_0= 'hidden' ) ) otherlv_7= '(' ( ( (otherlv_8= RULE_ID ) ) (otherlv_9= ',' ( (otherlv_10= RULE_ID ) ) )* )? otherlv_11= ')' )? ( (lv_metamodelDeclarations_12_0= ruleAbstractMetamodelDeclaration ) )* ( (lv_rules_13_0= ruleAbstractRule ) )+ )\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/parser/terminalrules/idea/parser/antlr/internal/PsiInternalXtextTerminalsTestLanguage.g:60:3: otherlv_0= 'grammar' ( (lv_name_1_0= ruleGrammarID ) ) (otherlv_2= 'with' ( ( ruleGrammarID ) ) (otherlv_4= ',' ( ( ruleGrammarID ) ) )* )? ( ( (lv_definesHiddenTokens_6_0= 'hidden' ) ) otherlv_7= '(' ( ( (otherlv_8= RULE_ID ) ) (otherlv_9= ',' ( (otherlv_10= RULE_ID ) ) )* )? otherlv_11= ')' )? ( (lv_metamodelDeclarations_12_0= ruleAbstractMetamodelDeclaration ) )* ( (lv_rules_13_0= ruleAbstractRule ) )+\n {\n\n \t\t\tmarkLeaf(elementTypeProvider.getGrammar_GrammarKeyword_0ElementType());\n \t\t\n otherlv_0=(Token)match(input,11,FollowSets000.FOLLOW_11_in_ruleGrammar76); \n\n \t\t\tdoneLeaf(otherlv_0);\n \t\t\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/parser/terminalrules/idea/parser/antlr/internal/PsiInternalXtextTerminalsTestLanguage.g:67:3: ( (lv_name_1_0= ruleGrammarID ) )\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/parser/terminalrules/idea/parser/antlr/internal/PsiInternalXtextTerminalsTestLanguage.g:68:4: (lv_name_1_0= ruleGrammarID )\n {\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/parser/terminalrules/idea/parser/antlr/internal/PsiInternalXtextTerminalsTestLanguage.g:68:4: (lv_name_1_0= ruleGrammarID )\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/parser/terminalrules/idea/parser/antlr/internal/PsiInternalXtextTerminalsTestLanguage.g:69:5: lv_name_1_0= ruleGrammarID\n {\n\n \t\t\t\t\tmarkComposite(elementTypeProvider.getGrammar_NameGrammarIDParserRuleCall_1_0ElementType());\n \t\t\t\t\n pushFollow(FollowSets000.FOLLOW_ruleGrammarID_in_ruleGrammar103);\n ruleGrammarID();\n\n state._fsp--;\n\n\n \t\t\t\t\tdoneComposite();\n \t\t\t\t\n\n }\n\n\n }\n\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/parser/terminalrules/idea/parser/antlr/internal/PsiInternalXtextTerminalsTestLanguage.g:78:3: (otherlv_2= 'with' ( ( ruleGrammarID ) ) (otherlv_4= ',' ( ( ruleGrammarID ) ) )* )?\n int alt2=2;\n int LA2_0 = input.LA(1);\n\n if ( (LA2_0==12) ) {\n alt2=1;\n }\n switch (alt2) {\n case 1 :\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/parser/terminalrules/idea/parser/antlr/internal/PsiInternalXtextTerminalsTestLanguage.g:79:4: otherlv_2= 'with' ( ( ruleGrammarID ) ) (otherlv_4= ',' ( ( ruleGrammarID ) ) )*\n {\n\n \t\t\t\tmarkLeaf(elementTypeProvider.getGrammar_WithKeyword_2_0ElementType());\n \t\t\t\n otherlv_2=(Token)match(input,12,FollowSets000.FOLLOW_12_in_ruleGrammar134); \n\n \t\t\t\tdoneLeaf(otherlv_2);\n \t\t\t\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/parser/terminalrules/idea/parser/antlr/internal/PsiInternalXtextTerminalsTestLanguage.g:86:4: ( ( ruleGrammarID ) )\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/parser/terminalrules/idea/parser/antlr/internal/PsiInternalXtextTerminalsTestLanguage.g:87:5: ( ruleGrammarID )\n {\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/parser/terminalrules/idea/parser/antlr/internal/PsiInternalXtextTerminalsTestLanguage.g:87:5: ( ruleGrammarID )\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/parser/terminalrules/idea/parser/antlr/internal/PsiInternalXtextTerminalsTestLanguage.g:88:6: ruleGrammarID\n {\n\n \t\t\t\t\t\tmarkComposite(elementTypeProvider.getGrammar_UsedGrammarsGrammarCrossReference_2_1_0ElementType());\n \t\t\t\t\t\n pushFollow(FollowSets000.FOLLOW_ruleGrammarID_in_ruleGrammar164);\n ruleGrammarID();\n\n state._fsp--;\n\n\n \t\t\t\t\t\tdoneComposite();\n \t\t\t\t\t\n\n }\n\n\n }\n\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/parser/terminalrules/idea/parser/antlr/internal/PsiInternalXtextTerminalsTestLanguage.g:97:4: (otherlv_4= ',' ( ( ruleGrammarID ) ) )*\n loop1:\n do {\n int alt1=2;\n int LA1_0 = input.LA(1);\n\n if ( (LA1_0==13) ) {\n alt1=1;\n }\n\n\n switch (alt1) {\n \tcase 1 :\n \t // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/parser/terminalrules/idea/parser/antlr/internal/PsiInternalXtextTerminalsTestLanguage.g:98:5: otherlv_4= ',' ( ( ruleGrammarID ) )\n \t {\n\n \t \t\t\t\t\tmarkLeaf(elementTypeProvider.getGrammar_CommaKeyword_2_2_0ElementType());\n \t \t\t\t\t\n \t otherlv_4=(Token)match(input,13,FollowSets000.FOLLOW_13_in_ruleGrammar201); \n\n \t \t\t\t\t\tdoneLeaf(otherlv_4);\n \t \t\t\t\t\n \t // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/parser/terminalrules/idea/parser/antlr/internal/PsiInternalXtextTerminalsTestLanguage.g:105:5: ( ( ruleGrammarID ) )\n \t // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/parser/terminalrules/idea/parser/antlr/internal/PsiInternalXtextTerminalsTestLanguage.g:106:6: ( ruleGrammarID )\n \t {\n \t // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/parser/terminalrules/idea/parser/antlr/internal/PsiInternalXtextTerminalsTestLanguage.g:106:6: ( ruleGrammarID )\n \t // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/parser/terminalrules/idea/parser/antlr/internal/PsiInternalXtextTerminalsTestLanguage.g:107:7: ruleGrammarID\n \t {\n\n \t \t\t\t\t\t\t\tmarkComposite(elementTypeProvider.getGrammar_UsedGrammarsGrammarCrossReference_2_2_1_0ElementType());\n \t \t\t\t\t\t\t\n \t pushFollow(FollowSets000.FOLLOW_ruleGrammarID_in_ruleGrammar236);\n \t ruleGrammarID();\n\n \t state._fsp--;\n\n\n \t \t\t\t\t\t\t\tdoneComposite();\n \t \t\t\t\t\t\t\n\n \t }\n\n\n \t }\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop1;\n }\n } while (true);\n\n\n }\n break;\n\n }\n\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/parser/terminalrules/idea/parser/antlr/internal/PsiInternalXtextTerminalsTestLanguage.g:118:3: ( ( (lv_definesHiddenTokens_6_0= 'hidden' ) ) otherlv_7= '(' ( ( (otherlv_8= RULE_ID ) ) (otherlv_9= ',' ( (otherlv_10= RULE_ID ) ) )* )? otherlv_11= ')' )?\n int alt5=2;\n int LA5_0 = input.LA(1);\n\n if ( (LA5_0==14) ) {\n alt5=1;\n }\n switch (alt5) {\n case 1 :\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/parser/terminalrules/idea/parser/antlr/internal/PsiInternalXtextTerminalsTestLanguage.g:119:4: ( (lv_definesHiddenTokens_6_0= 'hidden' ) ) otherlv_7= '(' ( ( (otherlv_8= RULE_ID ) ) (otherlv_9= ',' ( (otherlv_10= RULE_ID ) ) )* )? otherlv_11= ')'\n {\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/parser/terminalrules/idea/parser/antlr/internal/PsiInternalXtextTerminalsTestLanguage.g:119:4: ( (lv_definesHiddenTokens_6_0= 'hidden' ) )\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/parser/terminalrules/idea/parser/antlr/internal/PsiInternalXtextTerminalsTestLanguage.g:120:5: (lv_definesHiddenTokens_6_0= 'hidden' )\n {\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/parser/terminalrules/idea/parser/antlr/internal/PsiInternalXtextTerminalsTestLanguage.g:120:5: (lv_definesHiddenTokens_6_0= 'hidden' )\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/parser/terminalrules/idea/parser/antlr/internal/PsiInternalXtextTerminalsTestLanguage.g:121:6: lv_definesHiddenTokens_6_0= 'hidden'\n {\n\n \t\t\t\t\t\tmarkLeaf(elementTypeProvider.getGrammar_DefinesHiddenTokensHiddenKeyword_3_0_0ElementType());\n \t\t\t\t\t\n lv_definesHiddenTokens_6_0=(Token)match(input,14,FollowSets000.FOLLOW_14_in_ruleGrammar299); \n\n \t\t\t\t\t\tdoneLeaf(lv_definesHiddenTokens_6_0);\n \t\t\t\t\t\n\n }\n\n\n }\n\n\n \t\t\t\tmarkLeaf(elementTypeProvider.getGrammar_LeftParenthesisKeyword_3_1ElementType());\n \t\t\t\n otherlv_7=(Token)match(input,15,FollowSets000.FOLLOW_15_in_ruleGrammar329); \n\n \t\t\t\tdoneLeaf(otherlv_7);\n \t\t\t\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/parser/terminalrules/idea/parser/antlr/internal/PsiInternalXtextTerminalsTestLanguage.g:137:4: ( ( (otherlv_8= RULE_ID ) ) (otherlv_9= ',' ( (otherlv_10= RULE_ID ) ) )* )?\n int alt4=2;\n int LA4_0 = input.LA(1);\n\n if ( (LA4_0==RULE_ID) ) {\n alt4=1;\n }\n switch (alt4) {\n case 1 :\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/parser/terminalrules/idea/parser/antlr/internal/PsiInternalXtextTerminalsTestLanguage.g:138:5: ( (otherlv_8= RULE_ID ) ) (otherlv_9= ',' ( (otherlv_10= RULE_ID ) ) )*\n {\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/parser/terminalrules/idea/parser/antlr/internal/PsiInternalXtextTerminalsTestLanguage.g:138:5: ( (otherlv_8= RULE_ID ) )\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/parser/terminalrules/idea/parser/antlr/internal/PsiInternalXtextTerminalsTestLanguage.g:139:6: (otherlv_8= RULE_ID )\n {\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/parser/terminalrules/idea/parser/antlr/internal/PsiInternalXtextTerminalsTestLanguage.g:139:6: (otherlv_8= RULE_ID )\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/parser/terminalrules/idea/parser/antlr/internal/PsiInternalXtextTerminalsTestLanguage.g:140:7: otherlv_8= RULE_ID\n {\n\n \t\t\t\t\t\t\tmarkLeaf(elementTypeProvider.getGrammar_HiddenTokensAbstractRuleCrossReference_3_2_0_0ElementType());\n \t\t\t\t\t\t\n otherlv_8=(Token)match(input,RULE_ID,FollowSets000.FOLLOW_RULE_ID_in_ruleGrammar370); \n\n \t\t\t\t\t\t\tdoneLeaf(otherlv_8);\n \t\t\t\t\t\t\n\n }\n\n\n }\n\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/parser/terminalrules/idea/parser/antlr/internal/PsiInternalXtextTerminalsTestLanguage.g:149:5: (otherlv_9= ',' ( (otherlv_10= RULE_ID ) ) )*\n loop3:\n do {\n int alt3=2;\n int LA3_0 = input.LA(1);\n\n if ( (LA3_0==13) ) {\n alt3=1;\n }\n\n\n switch (alt3) {\n \tcase 1 :\n \t // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/parser/terminalrules/idea/parser/antlr/internal/PsiInternalXtextTerminalsTestLanguage.g:150:6: otherlv_9= ',' ( (otherlv_10= RULE_ID ) )\n \t {\n\n \t \t\t\t\t\t\tmarkLeaf(elementTypeProvider.getGrammar_CommaKeyword_3_2_1_0ElementType());\n \t \t\t\t\t\t\n \t otherlv_9=(Token)match(input,13,FollowSets000.FOLLOW_13_in_ruleGrammar413); \n\n \t \t\t\t\t\t\tdoneLeaf(otherlv_9);\n \t \t\t\t\t\t\n \t // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/parser/terminalrules/idea/parser/antlr/internal/PsiInternalXtextTerminalsTestLanguage.g:157:6: ( (otherlv_10= RULE_ID ) )\n \t // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/parser/terminalrules/idea/parser/antlr/internal/PsiInternalXtextTerminalsTestLanguage.g:158:7: (otherlv_10= RULE_ID )\n \t {\n \t // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/parser/terminalrules/idea/parser/antlr/internal/PsiInternalXtextTerminalsTestLanguage.g:158:7: (otherlv_10= RULE_ID )\n \t // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/parser/terminalrules/idea/parser/antlr/internal/PsiInternalXtextTerminalsTestLanguage.g:159:8: otherlv_10= RULE_ID\n \t {\n\n \t \t\t\t\t\t\t\t\tmarkLeaf(elementTypeProvider.getGrammar_HiddenTokensAbstractRuleCrossReference_3_2_1_1_0ElementType());\n \t \t\t\t\t\t\t\t\n \t otherlv_10=(Token)match(input,RULE_ID,FollowSets000.FOLLOW_RULE_ID_in_ruleGrammar455); \n\n \t \t\t\t\t\t\t\t\tdoneLeaf(otherlv_10);\n \t \t\t\t\t\t\t\t\n\n \t }\n\n\n \t }\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop3;\n }\n } while (true);\n\n\n }\n break;\n\n }\n\n\n \t\t\t\tmarkLeaf(elementTypeProvider.getGrammar_RightParenthesisKeyword_3_3ElementType());\n \t\t\t\n otherlv_11=(Token)match(input,16,FollowSets000.FOLLOW_16_in_ruleGrammar504); \n\n \t\t\t\tdoneLeaf(otherlv_11);\n \t\t\t\n\n }\n break;\n\n }\n\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/parser/terminalrules/idea/parser/antlr/internal/PsiInternalXtextTerminalsTestLanguage.g:178:3: ( (lv_metamodelDeclarations_12_0= ruleAbstractMetamodelDeclaration ) )*\n loop6:\n do {\n int alt6=2;\n int LA6_0 = input.LA(1);\n\n if ( (LA6_0==18||LA6_0==20) ) {\n alt6=1;\n }\n\n\n switch (alt6) {\n \tcase 1 :\n \t // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/parser/terminalrules/idea/parser/antlr/internal/PsiInternalXtextTerminalsTestLanguage.g:179:4: (lv_metamodelDeclarations_12_0= ruleAbstractMetamodelDeclaration )\n \t {\n \t // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/parser/terminalrules/idea/parser/antlr/internal/PsiInternalXtextTerminalsTestLanguage.g:179:4: (lv_metamodelDeclarations_12_0= ruleAbstractMetamodelDeclaration )\n \t // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/parser/terminalrules/idea/parser/antlr/internal/PsiInternalXtextTerminalsTestLanguage.g:180:5: lv_metamodelDeclarations_12_0= ruleAbstractMetamodelDeclaration\n \t {\n\n \t \t\t\t\t\tmarkComposite(elementTypeProvider.getGrammar_MetamodelDeclarationsAbstractMetamodelDeclarationParserRuleCall_4_0ElementType());\n \t \t\t\t\t\n \t pushFollow(FollowSets000.FOLLOW_ruleAbstractMetamodelDeclaration_in_ruleGrammar537);\n \t ruleAbstractMetamodelDeclaration();\n\n \t state._fsp--;\n\n\n \t \t\t\t\t\tdoneComposite();\n \t \t\t\t\t\n\n \t }\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop6;\n }\n } while (true);\n\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/parser/terminalrules/idea/parser/antlr/internal/PsiInternalXtextTerminalsTestLanguage.g:189:3: ( (lv_rules_13_0= ruleAbstractRule ) )+\n int cnt7=0;\n loop7:\n do {\n int alt7=2;\n int LA7_0 = input.LA(1);\n\n if ( (LA7_0==RULE_ID||LA7_0==37||LA7_0==41) ) {\n alt7=1;\n }\n\n\n switch (alt7) {\n \tcase 1 :\n \t // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/parser/terminalrules/idea/parser/antlr/internal/PsiInternalXtextTerminalsTestLanguage.g:190:4: (lv_rules_13_0= ruleAbstractRule )\n \t {\n \t // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/parser/terminalrules/idea/parser/antlr/internal/PsiInternalXtextTerminalsTestLanguage.g:190:4: (lv_rules_13_0= ruleAbstractRule )\n \t // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/parser/terminalrules/idea/parser/antlr/internal/PsiInternalXtextTerminalsTestLanguage.g:191:5: lv_rules_13_0= ruleAbstractRule\n \t {\n\n \t \t\t\t\t\tmarkComposite(elementTypeProvider.getGrammar_RulesAbstractRuleParserRuleCall_5_0ElementType());\n \t \t\t\t\t\n \t pushFollow(FollowSets000.FOLLOW_ruleAbstractRule_in_ruleGrammar576);\n \t ruleAbstractRule();\n\n \t state._fsp--;\n\n\n \t \t\t\t\t\tdoneComposite();\n \t \t\t\t\t\n\n \t }\n\n\n \t }\n \t break;\n\n \tdefault :\n \t if ( cnt7 >= 1 ) break loop7;\n EarlyExitException eee =\n new EarlyExitException(7, input);\n throw eee;\n }\n cnt7++;\n } while (true);\n\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "title": "" }, { "docid": "c90a71f155546b21047b121b51d38849", "score": "0.48675355", "text": "@Test(timeout = 4000)\n public void test14() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"wn>!1H3\");\n Token token0 = xPathLexer0.identifier();\n xPathLexer0.dots();\n Token token1 = xPathLexer0.leftBracket();\n xPathLexer0.nextToken();\n token1.toString();\n xPathLexer0.star();\n token0.toString();\n xPathLexer0.setPreviousToken(token1);\n xPathLexer0.not();\n xPathLexer0.star();\n xPathLexer0.notEquals();\n xPathLexer0.plus();\n xPathLexer0.setPreviousToken(token0);\n xPathLexer0.colon();\n xPathLexer0.or();\n Token token2 = xPathLexer0.literal();\n assertNull(token2);\n }", "title": "" }, { "docid": "11c54fe61d86c2a500ab258476415747", "score": "0.48606777", "text": "private String match (Token.TokenType tp) {\r\n String value = token.getTokenValue();\r\n if (token.getTokenType() == tp)\r\n token = lexer.nextToken();\r\n else error(tp);\r\n return value;\r\n }", "title": "" }, { "docid": "da5bfbe89615ee6238e90aa9416a23ad", "score": "0.48572326", "text": "public final void ruleCharacterRange() throws RecognitionException {\n Token otherlv_2=null;\n\n try {\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/parser/terminalrules/idea/parser/antlr/internal/PsiInternalXtextTerminalsTestLanguage.g:1628:19: ( ( ruleKeyword ( () otherlv_2= '..' ( (lv_right_3_0= ruleKeyword ) ) )? ) )\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/parser/terminalrules/idea/parser/antlr/internal/PsiInternalXtextTerminalsTestLanguage.g:1629:2: ( ruleKeyword ( () otherlv_2= '..' ( (lv_right_3_0= ruleKeyword ) ) )? )\n {\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/parser/terminalrules/idea/parser/antlr/internal/PsiInternalXtextTerminalsTestLanguage.g:1629:2: ( ruleKeyword ( () otherlv_2= '..' ( (lv_right_3_0= ruleKeyword ) ) )? )\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/parser/terminalrules/idea/parser/antlr/internal/PsiInternalXtextTerminalsTestLanguage.g:1630:3: ruleKeyword ( () otherlv_2= '..' ( (lv_right_3_0= ruleKeyword ) ) )?\n {\n\n \t\t\tmarkComposite(elementTypeProvider.getCharacterRange_KeywordParserRuleCall_0ElementType());\n \t\t\n pushFollow(FollowSets000.FOLLOW_ruleKeyword_in_ruleCharacterRange4698);\n ruleKeyword();\n\n state._fsp--;\n\n\n \t\t\tdoneComposite();\n \t\t\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/parser/terminalrules/idea/parser/antlr/internal/PsiInternalXtextTerminalsTestLanguage.g:1637:3: ( () otherlv_2= '..' ( (lv_right_3_0= ruleKeyword ) ) )?\n int alt44=2;\n int LA44_0 = input.LA(1);\n\n if ( (LA44_0==40) ) {\n alt44=1;\n }\n switch (alt44) {\n case 1 :\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/parser/terminalrules/idea/parser/antlr/internal/PsiInternalXtextTerminalsTestLanguage.g:1638:4: () otherlv_2= '..' ( (lv_right_3_0= ruleKeyword ) )\n {\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/parser/terminalrules/idea/parser/antlr/internal/PsiInternalXtextTerminalsTestLanguage.g:1638:4: ()\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/parser/terminalrules/idea/parser/antlr/internal/PsiInternalXtextTerminalsTestLanguage.g:1639:5: \n {\n\n \t\t\t\t\tprecedeComposite(elementTypeProvider.getCharacterRange_CharacterRangeLeftAction_1_0ElementType());\n \t\t\t\t\tdoneComposite();\n \t\t\t\t\n\n }\n\n\n \t\t\t\tmarkLeaf(elementTypeProvider.getCharacterRange_FullStopFullStopKeyword_1_1ElementType());\n \t\t\t\n otherlv_2=(Token)match(input,40,FollowSets000.FOLLOW_40_in_ruleCharacterRange4734); \n\n \t\t\t\tdoneLeaf(otherlv_2);\n \t\t\t\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/parser/terminalrules/idea/parser/antlr/internal/PsiInternalXtextTerminalsTestLanguage.g:1651:4: ( (lv_right_3_0= ruleKeyword ) )\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/parser/terminalrules/idea/parser/antlr/internal/PsiInternalXtextTerminalsTestLanguage.g:1652:5: (lv_right_3_0= ruleKeyword )\n {\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/parser/terminalrules/idea/parser/antlr/internal/PsiInternalXtextTerminalsTestLanguage.g:1652:5: (lv_right_3_0= ruleKeyword )\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/parser/terminalrules/idea/parser/antlr/internal/PsiInternalXtextTerminalsTestLanguage.g:1653:6: lv_right_3_0= ruleKeyword\n {\n\n \t\t\t\t\t\tmarkComposite(elementTypeProvider.getCharacterRange_RightKeywordParserRuleCall_1_2_0ElementType());\n \t\t\t\t\t\n pushFollow(FollowSets000.FOLLOW_ruleKeyword_in_ruleCharacterRange4766);\n ruleKeyword();\n\n state._fsp--;\n\n\n \t\t\t\t\t\tdoneComposite();\n \t\t\t\t\t\n\n }\n\n\n }\n\n\n }\n break;\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 return ;\n }", "title": "" }, { "docid": "3790fd0bdb67b26a33a0c084110201ad", "score": "0.4856172", "text": "@Test\n\tpublic void test30()\n\t{\n\t\tGrammar grammar = new Grammar(\"start: throw ball to dog\", debugFlag);\n\t\tList<String> skippableWords = new ArrayList<>();\n\t\tskippableWords.add(\"a\");\n\t\tskippableWords.add(\"the\");\n\t\tgrammar.setSkippableWords(skippableWords);\n\t\tassertEquals(\n\t\t\t1,\n\t\t\tparses(\n\t\t\t\tgrammar,\n\t\t\t\t\"throw a ball to the dog\"\n\t\t\t)\n\t\t);\n\t}", "title": "" }, { "docid": "1037162efc3199b8cab147ad929c5d77", "score": "0.48501378", "text": "public abstract Token asToken();", "title": "" }, { "docid": "9defc0c68b9aea2ebdda41a0d00960c0", "score": "0.4848237", "text": "private void matchEndLine() {\n\t\t// First, parse all whitespace characters except for new lines\n\t\tindex = skipLineSpace(index);\n\n\t\t// Second, check whether we've reached the end-of-file (as signaled by\n\t\t// running out of tokens), or we've encountered some token which not a\n\t\t// newline.\n\t\tif (index >= tokens.size()) {\n\t\t\treturn; // EOF\n\t\t} else if (tokens.get(index).kind != NewLine) {\n\t\t\tsyntaxError(\"expected end-of-line\", tokens.get(index));\n\t\t} else {\n\t\t\tindex = index + 1;\n\t\t}\n\t}", "title": "" }, { "docid": "6dcd544e1ce3c04d3fa9e6231e04ea81", "score": "0.48346794", "text": "public Token getNextToken() \n{\n Token specialToken = null;\n Token matchedToken;\n int curPos = 0;\n\n EOFLoop :\n for (;;)\n {\n try\n {\n curChar = input_stream.BeginToken();\n }\n catch(Exception e)\n {\n jjmatchedKind = 0;\n jjmatchedPos = -1;\n matchedToken = jjFillToken();\n matchedToken.specialToken = specialToken;\n return matchedToken;\n }\n\n jjmatchedKind = 0x7fffffff;\n jjmatchedPos = 0;\n curPos = jjMoveStringLiteralDfa0_0();\n if (jjmatchedKind != 0x7fffffff)\n {\n if (jjmatchedPos + 1 < curPos)\n input_stream.backup(curPos - jjmatchedPos - 1);\n if ((jjtoToken[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L)\n {\n matchedToken = jjFillToken();\n matchedToken.specialToken = specialToken;\n return matchedToken;\n }\n else\n {\n if ((jjtoSpecial[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L)\n {\n matchedToken = jjFillToken();\n if (specialToken == null)\n specialToken = matchedToken;\n else\n {\n matchedToken.specialToken = specialToken;\n specialToken = (specialToken.next = matchedToken);\n }\n }\n continue EOFLoop;\n }\n }\n int error_line = input_stream.getEndLine();\n int error_column = input_stream.getEndColumn();\n String error_after = null;\n boolean EOFSeen = false;\n try { input_stream.readChar(); input_stream.backup(1); }\n catch (java.io.IOException e1) {\n EOFSeen = true;\n error_after = curPos <= 1 ? \"\" : input_stream.GetImage();\n if (curChar == '\\n' || curChar == '\\r') {\n error_line++;\n error_column = 0;\n }\n else\n error_column++;\n }\n if (!EOFSeen) {\n input_stream.backup(1);\n error_after = curPos <= 1 ? \"\" : input_stream.GetImage();\n }\n throw new TokenMgrError(EOFSeen, curLexState, error_line, error_column, error_after, curChar, TokenMgrError.LEXICAL_ERROR);\n }\n}", "title": "" }, { "docid": "b27c31c82e371bd2a7549ed88954dbc5", "score": "0.4830707", "text": "public interface OrClause extends MultiOperandClause {\r\n}", "title": "" }, { "docid": "43d59ece69f6ab08d8f81af0a11c39ed", "score": "0.4818915", "text": "public final void mT__31() throws RecognitionException {\n try {\n int _type = T__31;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // /Users/parrt/research/book/TPDSL/Book/code/interp/tree/Pie.g:17:7: ( '{' )\n // /Users/parrt/research/book/TPDSL/Book/code/interp/tree/Pie.g:17:9: '{'\n {\n match('{'); \n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "title": "" }, { "docid": "fc2bcdd6107a5b468b45ac0fcdc1b7b8", "score": "0.48143062", "text": "public Result ptoken(final int yyStart) throws IOException {\n int yyC;\n int yyIndex;\n Result yyResult;\n int yyRepetition1;\n boolean yyRepeated1;\n FortressTokenId yyValue;\n ParseError yyError = ParseError.DUMMY;\n\n // Alternative 1.\n\n yyResult = pkeyword(yyStart);\n yyError = yyResult.select(yyError);\n if (yyResult.hasValue()) {\n\n yyValue = FortressTokenId.KEYWORD;\n\n return yyResult.createValue(yyValue, yyError);\n }\n\n // Alternative 2.\n\n yyResult = pidentifier(yyStart);\n yyError = yyResult.select(yyError);\n if (yyResult.hasValue()) {\n\n yyValue = FortressTokenId.IDENTIFIER;\n\n return yyResult.createValue(yyValue, yyError);\n }\n\n // Alternative 3.\n\n yyResult = pcomment(yyStart);\n yyError = yyResult.select(yyError);\n if (yyResult.hasValue()) {\n\n yyValue = FortressTokenId.BLOCK_COMMENT;\n\n return yyResult.createValue(yyValue, yyError);\n }\n\n // Alternative 4.\n\n yyRepetition1 = yyStart;\n yyRepeated1 = false;\n while (true) {\n\n yyResult = pnewline(yyRepetition1);\n yyError = yyResult.select(yyError);\n if (yyResult.hasValue()) {\n\n yyRepetition1 = yyResult.index;\n yyRepeated1 = true;\n continue;\n }\n break;\n }\n\n if (yyRepeated1) {\n\n yyValue = FortressTokenId.IGNORED;\n\n return new SemanticValue(yyValue, yyRepetition1, yyError);\n }\n\n // Alternative 5.\n\n yyRepetition1 = yyStart;\n yyRepeated1 = false;\n while (true) {\n\n yyResult = pspacing(yyRepetition1);\n yyError = yyResult.select(yyError);\n if (yyResult.hasValue()) {\n\n yyRepetition1 = yyResult.index;\n yyRepeated1 = true;\n continue;\n }\n break;\n }\n\n if (yyRepeated1) {\n\n yyValue = FortressTokenId.WHITESPACE;\n\n return new SemanticValue(yyValue, yyRepetition1, yyError);\n }\n\n // Alternative 6.\n\n yyResult = pfloatLiteral(yyStart);\n yyError = yyResult.select(yyError);\n if (yyResult.hasValue()) {\n\n yyValue = FortressTokenId.FLOAT_LITERAL;\n\n return yyResult.createValue(yyValue, yyError);\n }\n\n // Alternative 7.\n\n yyResult = pintLiteral(yyStart);\n yyError = yyResult.select(yyError);\n if (yyResult.hasValue()) {\n\n yyValue = FortressTokenId.INT_LITERAL;\n\n return yyResult.createValue(yyValue, yyError);\n }\n\n // Alternative 8.\n\n yyResult = pstringLiteral(yyStart);\n yyError = yyResult.select(yyError);\n if (yyResult.hasValue()) {\n\n yyValue = FortressTokenId.STRING_LITERAL;\n\n return yyResult.createValue(yyValue, yyError);\n }\n\n // Alternative 9.\n\n yyResult = pcharLiteral(yyStart);\n yyError = yyResult.select(yyError);\n if (yyResult.hasValue()) {\n\n yyValue = FortressTokenId.CHAR_LITERAL;\n\n return yyResult.createValue(yyValue, yyError);\n }\n\n // Alternative 10.\n\n yyResult = poperator(yyStart);\n yyError = yyResult.select(yyError);\n if (yyResult.hasValue()) {\n\n yyValue = FortressTokenId.OPERATOR;\n\n return yyResult.createValue(yyValue, yyError);\n }\n\n // Alternative 11.\n\n yyResult = pseparator(yyStart);\n yyError = yyResult.select(yyError);\n if (yyResult.hasValue()) {\n\n yyValue = FortressTokenId.SEPARATOR;\n\n return yyResult.createValue(yyValue, yyError);\n }\n\n // Alternative 12.\n\n yyC = character(yyStart);\n if (-1 != yyC) {\n yyIndex = yyStart + 1;\n\n yyValue = FortressTokenId.SEPARATOR;\n\n return new SemanticValue(yyValue, yyIndex, yyError);\n }\n\n // Alternative 13.\n\n yyResult = pEOF(yyStart);\n yyError = yyResult.select(yyError);\n if (yyResult.hasValue()) {\n\n yyValue = FortressTokenId.EOL;\n\n return yyResult.createValue(yyValue, yyError);\n }\n\n // Done.\n yyError = yyError.select(\"token expected\", yyStart);\n return yyError;\n }", "title": "" }, { "docid": "d197d6fd13ec157daf7f93ecabf98392", "score": "0.48080584", "text": "@Test(expected = IOException.class)\n public void testTypeWithNewLine() throws Exception {\n NameSample.parse(\"<START:abc\\na> token <END>\", false);\n }", "title": "" }, { "docid": "782018b9bbe3799bf834547e9ddf5b7b", "score": "0.4807278", "text": "@Test(timeout = 4000)\n public void test036() throws Throwable {\n StringReader stringReader0 = new StringReader(\"enum\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 13, 13);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n javaParserTokenManager0.getNextToken();\n assertEquals(13, javaCharStream0.getBeginColumn());\n assertEquals(16, javaCharStream0.getColumn());\n }", "title": "" }, { "docid": "8d2a15f4445c50cd5c5b035f7b68a94f", "score": "0.48072502", "text": "public interface TokenRule {\n\n\n public Token token(StringCutter cutter) throws LexerException;\n}", "title": "" }, { "docid": "5f7dd58b3cda9313003f92e2f2ac4b72", "score": "0.48071516", "text": "abstract public int nextToken () throws IOException;", "title": "" }, { "docid": "c587a141b4e771d3127ea1aef9978753", "score": "0.48032436", "text": "public void parse() {\n int type;\n String token;\n\n for (int i = 0; i < types.length; i++) {\n type = types[i];\n if (type == TYPE_STRING) {\n token = tokens[i].toUpperCase();\n Integer type2 = operator2type.get(token);\n if (type2 != null) {\n if (token.equals(\"PRINT\")) {\n types[i] = TYPE_OPERATOR_PRINT;\n continue;\n } else if (token.equals(\"CUR\")) {\n types[i] = TYPE_OPERATOR_CUR;\n continue;\n } else if (token.equals(\"PLOT\")) {\n types[i] = TYPE_OPERATOR_PLOT;\n continue;\n } else if (token.equals(\"CLS\")) {\n types[i] = TYPE_OPERATOR_CLS;\n continue;\n } else {\n types[i] = TYPE_OPERATOR;\n continue;\n }\n }\n types[i] = TYPE_VARIABLE;\n }\n }\n\n }", "title": "" }, { "docid": "7ea15ba3aaecdba4b30f7cb50b729be8", "score": "0.47972172", "text": "public Token nextToken() throws LexicalError{\n\t\tStringBuffer aux = new StringBuffer();\r\n\t\t\r\n\t\t// PERCORRE CADEIA DE CARACTERES DO CAMPO \"TEXT\" PARA BUSCAR OS TOKENS E REALIZAR A ANALISE LEXICA\r\n\t\tfor(int i = index; i< content.length(); i++){\r\n\t\t\tindex = i;\r\n\t\t\t// BUSCA CARACTER DA CADEIA NA POSICAO I\r\n\t\t\tcurrent = content.charAt(i);\t\t\r\n\t\t\t\r\n\t\t\t// A VERIFICACAO EH FEITA ATRAVES DO AUTOMATO DA LINGUAGEM LMS\r\n\t\t\tswitch(state){\r\n\t\t\t\r\n\t\t\t\tcase 0:\t\t\t\t\r\n\t\t\t\t\tif(bound(current, letters)){\t\t\t\t\t\r\n\t\t\t\t\t\taux.append(current);\t\t\t\t\r\n\t\t\t\t\t\tstate = 1;\r\n\t\t\t\t\t}else if(bound(current, numbers)){\t\t\t\t\t\r\n\t\t\t\t\t\taux.append(current);\r\n\t\t\t\t\t\tstate = 3;\r\n\t\t\t\t\t}else if(current == '\"'){\t\r\n\t\t\t\t\t\topenLiteral = true;\r\n\t\t\t\t\t\tstate =12;\r\n\t\t\t\t\t}else if(current == '+'){\r\n\t\t\t\t\t\tindex = i+1;\t\t\t\t\t\r\n\t\t\t\t\t\treturn new Token(current+\"\", 2, \"Operacao Adicao\");\r\n\t\t\t\t\t}else if(current == '-'){\r\n\t\t\t\t\t\tindex = i+1;\r\n\t\t\t\t\t\treturn new Token('-'+\"\",3,\"Operacao Subtracao\");\r\n\t\t\t\t\t}else if(current == '*'){\r\n\t\t\t\t\t\tindex = i+1;\r\n\t\t\t\t\t\treturn new Token(current+\"\",4, \"Operador Multiplicacao\");\r\n\t\t\t\t\t}else if(current == '/'){\r\n\t\t\t\t\t\tindex = i+1;\r\n\t\t\t\t\t\treturn new Token(current+\"\", 5, \"Operador Divisao\");\r\n\t\t\t\t\t}else if(current == '<'){\r\n\t\t\t\t\t\taux.append(current);\r\n\t\t\t\t\t\tstate = 10;\r\n\t\t\t\t\t}else if(current == '>'){\r\n\t\t\t\t\t\taux.append(current);\r\n\t\t\t\t\t\tstate = 5;\r\n\t\t\t\t\t}else if(current == '='){\r\n\t\t\t\t\t\tindex = i+1;\r\n\t\t\t\t\t\treturn new Token(current+\"\", 6, \"Igual\");\r\n\t\t\t\t\t}else if(current == ':'){\r\n\t\t\t\t\t\taux.append(current);\r\n\t\t\t\t\t\tstate = 7;\r\n\t\t\t\t\t}else if(current == '.'){\r\n\t\t\t\t\t\tindex = i+1;\r\n\t\t\t\t\t\treturn new Token(aux.toString(),16, \"Ponto\");\r\n\t\t\t\t\t}else if(current == '('){\r\n\t\t\t\t\t\taux.append(current);\r\n\t\t\t\t\t\tstate = 14;\r\n\t\t\t\t\t}else if(current == ')'){\r\n\t\t\t\t\t\tindex = i+1;\r\n\t\t\t\t\t\treturn new Token(current+\"\", 18, \"Fecha Parenteses\");\r\n\t\t\t\t\t}else if (current == ','){\r\n\t\t\t\t\t\tindex = i+1;\r\n\t\t\t\t\t\treturn new Token(current+\"\",15, \"Virgula\");\r\n\t\t\t\t\t}else if(current == ';'){\r\n\t\t\t\t\t\tindex = i+1;\r\n\t\t\t\t\t\treturn new Token(current+\"\",14, \"Ponto e Virgula\");\r\n\t\t\t\t\t}else if(current == ' ' || current == '\\n' || current == '\\t'|| current == '\\b' || current == '\\f'|| current == '\\r'){\r\n\t\t\t\t\t\tindex = i+1;\r\n\t\t\t\t\t}else if(current == '$' && i == content.length() -1){\r\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}else {\r\n\t\t\t\t\t\t// SE ACHAR CARACTERE INVALIDO, CHAMA ERRO LEXICO\r\n\t\t\t\t\t\tthrow new LexicalError(\"Caractere Invalido\",i,1);\r\n\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t// ESTADO QUE VERIFICA SE EH IDENTIFICADOR\r\n\t\t\t\tcase 1: \r\n\t\t\t\t\tif(bound(current, letters)|| bound(current, numbers)){\r\n\t\t\t\t\t\taux.append(current);\t\t\t\t\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tstate = 0;\r\n\t\t\t\t\t\tindex = i;\r\n\t\t\t\t\t\tToken t = new Token(aux.toString(),19,\"Identificador\");\r\n\t\t\t\t\t\t// PERCORRE LISTA DE PALAVRAS RESERVADAS E COMPARA COM TOKEN ATUAL, SE FOR IGUAL RETORNA A PALAVRA RESERVADA, SENAO RETORNA O IDENTIFICADOR\r\n\t\t\t\t\t\tfor(Token f: reservedWords){\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tif(f.getName().equals(t.getName())){\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tt = f;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\t\t\t\t\t\r\n\t\t\t\t\t\treturn t;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t// ESTADO QUE VERIFICA OS NUMEROS, SE NUMERO FOR MAIOR QUE 32767 RETORNA ERRO LEXICO\r\n\t\t\t\tcase 3:\r\n\t\t\t\t\tif(bound(current, numbers)){\r\n\t\t\t\t\t\taux.append(current);\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tstate = 0;\r\n\t\t\t\t\t\tindex = i;\r\n\t\t\t\t\t\tint num=0 ;\r\n\t\t\t\t\t\ttry{\r\n\t\t\t\t\t\t\tnum = Integer.parseInt(aux.toString());\r\n\t\t\t\t\t\t}catch(NumberFormatException e){\r\n\t\t\t\t\t\t\tthrow new LexicalError(\"N�mero fora da escala\",i- aux.length(),aux.length());\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(num>32767||num<-32767 ){\r\n\t\t\t\t\t\t\tthrow new LexicalError(\"N�mero fora da escala\",i- aux.length(),aux.length());\r\n\t\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\t\treturn new Token(aux.toString(),20, \"Inteiro\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t// STATE QUE VERIFICA LITERAIS, SE TAMANHO DO LITERAL FOR MAIOR QUE 255 RETORNA ERRO LEXICO\r\n\t\t\t\tcase 12:\r\n\t\t\t\t\tif(current != '\"'){\r\n\t\t\t\t\t\taux.append(current);\t\r\n\t\t\t\t\t}else {\r\n\t\t\t\t\t\tstate = 0;\r\n\t\t\t\t\t\tindex = i+1;\r\n\t\t\t\t\t\topenLiteral = false;\r\n\t\t\t\t\t\tif(aux.length() > 255) throw new LexicalError(\"Literal Muito Grande\",i- aux.length(),aux.length());\r\n\t\t\t\t\t\treturn new Token(aux.toString(),21,\"Literal\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\r\n\t\t\t\t// ESTADO QUE VERIFICA OS SINAIS COMPOSTOS\r\n\t\t\t\tcase 10:\r\n\t\t\t\t\tstate = 0;\r\n\t\t\t\t\tif(current == '>'){\r\n\t\t\t\t\t\taux.append(current);\t\t\t\t\t\r\n\t\t\t\t\t\tindex = i+1;\t\t\t\t\t\r\n\t\t\t\t\t\treturn new Token(aux.toString(),11, \"Diferente\");\r\n\t\t\t\t\t}else if(current == '='){\r\n\t\t\t\t\t\taux.append(current);\r\n\t\t\t\t\t\tindex = i+1;\t\t\t\t\r\n\t\t\t\t\t\treturn new Token(aux.toString(),10, \"Menor ou Igual\");\r\n\t\t\t\t\t}\t\t\r\n\t\t\t\t\tindex = i;\r\n\t\t\t\t\treturn new Token(aux.toString(),9, \"Menor\");\r\n\t\r\n\t\r\n\t\r\n\t\t\t\tcase 5:\r\n\t\t\t\t\tstate = 0;\r\n\t\t\t\t\tif(current == '='){\r\n\t\t\t\t\t\taux.append(current);\r\n\t\t\t\t\t\tindex = i+1;\r\n\t\t\t\t\t\treturn new Token(aux.toString(),8, \"Maior ou Igual\");\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tindex = i;\r\n\t\t\t\t\t\treturn new Token(aux.toString(),7, \"Maior\");}\r\n\t\r\n\t\t\t\tcase 7:\r\n\t\t\t\t\tstate = 0;\r\n\t\t\t\t\tif(current == '='){\r\n\t\t\t\t\t\taux.append(current);\r\n\t\t\t\t\t\tindex = i+1;\r\n\t\t\t\t\t\treturn new Token(aux.toString(),12, \"Atribuicao\");\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tindex = i;\r\n\t\t\t\t\t\treturn new Token(aux.toString(),13, \"Dois Pontos\");}\r\n\t\t\t\t\r\n\t\t\t\tcase 14:\r\n\t\t\t\t\tif(current == '*'){\r\n\t\t\t\t\t\topenComment = true;\r\n\t\t\t\t\t\taux = new StringBuffer();\r\n\t\t\t\t\t\tstate = 15;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse{\r\n\t\t\t\t\t\tstate = 0;\r\n\t\t\t\t\t\tindex = i;\r\n\t\t\t\t\t\treturn new Token(\"(\",17,\"Abre Parenteses\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\r\n\t\t\t\tcase 15:\t\t\t\t\t\r\n\t\t\t\t\tif(current == '*' && content.charAt(i+1) == ')'){\r\n\t\t\t\t\t\topenComment = false;\r\n\t\t\t\t\t\tstate = 0;\r\n\t\t\t\t\t\ti+=1;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// SE COMENTARIO TIVER ABERTO QUANDO TERMINAR VERIFICACAO, RETORNA ERRO LEXICO\r\n\t\tif(openComment)\r\n\t\t\tthrow new LexicalError(\"Comentario Aberto\",true,false,index);\r\n\t\t\r\n\t\t// SE LITERAL TIVER ABERTO QUANDO TERMINAAR A VERIFICACAO, RETORNA ERRO LEXICO\r\n\t\tif(openLiteral)\r\n\t\t\tthrow new LexicalError(\"Literal Aberto\",false,true, index);\r\n\t\t\r\n\t\treturn null;\r\n\t\t}", "title": "" }, { "docid": "002befc0492cb4b08a48deb199425fd2", "score": "0.4795495", "text": "T visitExclusiveorexpression(lengBasicParser.ExclusiveorexpressionContext ctx);", "title": "" }, { "docid": "eba1e7dc5118527bb6329125f2435462", "score": "0.47951737", "text": "public PlannerParser(PlannerParserTokenManager tm) {\n token_source = tm;\n token = new Token();\n jj_ntk = -1;\n jj_gen = 0;\n for (int i = 0; i < 24; 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": "031a3b94a4cc91744a5c9187283ea68b", "score": "0.47910905", "text": "public interface Expression {\r\n\t/** Thrown from {@link Expression#of(Parser, ParseTree)} in response to text parse errors encountered by ANTLR */\r\n\tpublic static class ExpressoParseException extends ParseException {\r\n\t\tprivate final int theEndIndex;\r\n\t\tprivate final String theType;\r\n\t\tprivate final String theText;\r\n\r\n\t\t/**\r\n\t\t * @param errorOffset The start index of the error\r\n\t\t * @param endIndex The end index of the error\r\n\t\t * @param type The token type of the error\r\n\t\t * @param text The text content that is the source of the error\r\n\t\t */\r\n\t\tpublic ExpressoParseException(int errorOffset, int endIndex, String type, String text) {\r\n\t\t\tsuper(\"Unexpected token ( \" + text + \", type \" + type + \" ) at position \" + errorOffset, errorOffset);\r\n\t\t\ttheEndIndex = endIndex;\r\n\t\t\ttheType = type;\r\n\t\t\ttheText = text;\r\n\t\t}\r\n\r\n\t\t/** @return The start index of the error */\r\n\t\t@Override\r\n\t\tpublic int getErrorOffset() {\r\n\t\t\treturn super.getErrorOffset();\r\n\t\t}\r\n\r\n\t\t/** @return The end index of the error */\r\n\t\tpublic int getEndIndex() {\r\n\t\t\treturn theEndIndex;\r\n\t\t}\r\n\r\n\t\t/** @return The token type of the error */\r\n\t\tpublic String getType() {\r\n\t\t\treturn theType;\r\n\t\t}\r\n\r\n\t\t/** @return The text content that is the source of the error */\r\n\t\tpublic String getText() {\r\n\t\t\treturn theText;\r\n\t\t}\r\n\t}\r\n\r\n\t/** @return The token type of this expression */\r\n\tString getType();\r\n\r\n\t/** @return The start index of this expression in the content */\r\n\tint getStartIndex();\r\n\r\n\t/** @return The component expressions that this expression is composed of */\r\n\tBetterList<Expression> getComponents();\r\n\r\n\t/**\r\n\t * A simplified and more performant form of {@link #search()}\r\n\t * \r\n\t * @param type The type name path of the component to get\r\n\t * @return The first expression under this expression that follows the given type path\r\n\t */\r\n\tdefault Expression getComponent(String... type) {\r\n\t\treturn DirectSearch.getComponent(this, type);\r\n\t}\r\n\r\n\t/**\r\n\t * A simplified and more performant form of {@link #search()}\r\n\t * \r\n\t * @param type The type name path of the component to get\r\n\t * @return All expressions under this expression that follows the given type path\r\n\t */\r\n\tdefault BetterList<Expression> getComponents(String... type) {\r\n\t\treturn DirectSearch.getComponents(this, type);\r\n\t}\r\n\r\n\t/**\r\n\t * Prints this expression's structure in a multi-line format\r\n\t * \r\n\t * @param str The StringBuilder to append to (one will be created if null)\r\n\t * @param indent The amount by which to indent the first line\r\n\t * @return The StringBuilder\r\n\t */\r\n\tStringBuilder printStructure(StringBuilder str, int indent);\r\n\r\n\t/** @return A structure to use to configure and execute a search for content within this expression tree */\r\n\tdefault ExpressionSearch search() {\r\n\t\treturn new ExpressionSearch(this);\r\n\t}\r\n\r\n\t/** @return The content of this expression */\r\n\t@Override\r\n\tString toString();\r\n\r\n\t/**\r\n\t * @param parser The ANTLR parser that did the text parsing\r\n\t * @param expression The expression to translate\r\n\t * @return An {@link Expression} representing the same parsed information as the given expression\r\n\t * @throws ExpressoParseException If there was an error in the expression\r\n\t */\r\n\tpublic static Expression of(Parser parser, ParseTree expression) throws ExpressoParseException {\r\n\t\tParseTreeWalker walker = new ParseTreeWalker();\r\n\r\n\t\tExpressoAntlrCompiler compiler = new ExpressoAntlrCompiler(parser);\r\n\t\ttry {\r\n\t\t\twalker.walk(compiler, expression);\r\n\t\t} catch (ExpressoAntlrCompiler.InternalExpressoErrorException e) {\r\n\t\t\tString displayType = parser.getVocabulary().getDisplayName(e.token.getType());\r\n\t\t\tthrow new ExpressoParseException(e.token.getStartIndex(), e.token.getStopIndex(), displayType, e.token.getText());\r\n\t\t}\r\n\t\treturn compiler.getRoot();\r\n\t}\r\n\r\n\t/** Implements the simple {@link Expression#getComponent(String[]) getComponent(s)(String...)} methods */\r\n\tstatic class DirectSearch {\r\n\t\tstatic Expression getComponent(Expression root, String[] type) {\r\n\t\t\treturn getComponents(root, type, 0, null);\r\n\t\t}\r\n\r\n\t\tstatic BetterList<Expression> getComponents(Expression root, String[] type) {\r\n\t\t\tList<Expression> found = new ArrayList<>(3);\r\n\t\t\tgetComponents(root, type, 0, found::add);\r\n\t\t\treturn BetterList.of(found);\r\n\t\t}\r\n\r\n\t\tprivate static Expression getComponents(Expression parent, String[] type, int pathIndex, Consumer<Expression> onFind) {\r\n\t\t\tfor (Expression child : parent.getComponents()) {\r\n\t\t\t\tif (!child.getType().equals(type[pathIndex])) {//\r\n\t\t\t\t} else if (pathIndex + 1 == type.length) {\r\n\t\t\t\t\tif (onFind != null)\r\n\t\t\t\t\t\tonFind.accept(child);\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\treturn child;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tExpression childFound = getComponents(child, type, pathIndex + 1, onFind);\r\n\t\t\t\t\tif (childFound != null)\r\n\t\t\t\t\t\treturn childFound;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}\r\n\r\n\t/** A search operation against an expression */\r\n\tpublic static class ExpressionSearch {\r\n\t\tprivate final Expression theRoot;\r\n\t\tprivate final List<ExpressionSearchOp> theSequence;\r\n\r\n\t\t/** @param root The expression to search within */\r\n\t\tpublic ExpressionSearch(Expression root) {\r\n\t\t\ttheRoot = root;\r\n\t\t\ttheSequence = new ArrayList<>();\r\n\t\t}\r\n\r\n\t\t/**\r\n\t\t * Causes the search to descend to a descendant of the searched expression. When this is used, any results will be at or underneath\r\n\t\t * the given path.\r\n\t\t * \r\n\t\t * @param path A path of expression types to descend into\r\n\t\t * @return This search\r\n\t\t */\r\n\t\tpublic ExpressionSearch get(String... path) {\r\n\t\t\ttheSequence.add(new PathSearchOp(path));\r\n\t\t\treturn this;\r\n\t\t}\r\n\r\n\t\t/**\r\n\t\t * Causes the search to descend to a child of the searched expression. When this is used, any results will be at or underneath the\r\n\t\t * given child.\r\n\t\t * \r\n\t\t * @param child The function to select from the search node's children\r\n\t\t * @return This search\r\n\t\t */\r\n\t\tpublic ExpressionSearch child(Function<BetterList<Expression>, Expression> child) {\r\n\t\t\ttheSequence.add(new ChildSearchOp(child));\r\n\t\t\treturn this;\r\n\t\t}\r\n\r\n\t\t/**\r\n\t\t * Causes the search to descend to the first child of the searched expression. When this is used, any results will be at or\r\n\t\t * underneath the child.\r\n\t\t * \r\n\t\t * @return This search\r\n\t\t */\r\n\t\tpublic ExpressionSearch firstChild() {\r\n\t\t\ttheSequence.add(new ChildSearchOp(LambdaUtils.printableFn(BetterList::peekFirst, \"first\", null)));\r\n\t\t\treturn this;\r\n\t\t}\r\n\r\n\t\t/**\r\n\t\t * Applies a test to any search results matched so far\r\n\t\t * \r\n\t\t * @param filter A test for any expressions matched so far\r\n\t\t * @return This search\r\n\t\t */\r\n\t\tpublic ExpressionSearch iff(Predicate<Expression> filter) {\r\n\t\t\ttheSequence.add(new SimpleSearchFilter(filter));\r\n\t\t\treturn this;\r\n\t\t}\r\n\r\n\t\t/**\r\n\t\t * Allows filtering of search results based on deep content. E.g.\r\n\t\t * <p>\r\n\t\t * <code>expression.search().get(\"a\").where(srch->srch.get(\"b\").text(\"c\"))</code>\r\n\t\t * </p>\r\n\t\t * will search for \"a\"-typed elements in expression that have a \"b\"-typed expression with text \"c\". I.e., the result(s) of the\r\n\t\t * search will be of type \"a\", and will all have at least one descendant of type \"b\" with text \"c\".\r\n\t\t * \r\n\t\t * @param filter The filter search\r\n\t\t * @return This search\r\n\t\t */\r\n\t\tpublic ExpressionSearch where(Consumer<ExpressionSearch> filter) {\r\n\t\t\tExpressionSearch search = new ExpressionSearch(null);\r\n\t\t\tfilter.accept(search);\r\n\t\t\ttheSequence.add(new ComplexSearchFilter(search));\r\n\t\t\treturn this;\r\n\t\t}\r\n\r\n\t\t/**\r\n\t\t * Filters the current search results for text content\r\n\t\t * \r\n\t\t * @param text The text to match against the current search results\r\n\t\t * @return This search\r\n\t\t */\r\n\t\tpublic ExpressionSearch text(String text) {\r\n\t\t\treturn iff(LambdaUtils.printablePred(ex -> ex.toString().equals(text), \"text:\" + text, null));\r\n\t\t}\r\n\r\n\t\t/**\r\n\t\t * Filters the current search results for text content with a pattern\r\n\t\t * \r\n\t\t * @param pattern The pattern to match against the text of the current search results\r\n\t\t * @return This search\r\n\t\t */\r\n\t\tpublic ExpressionSearch textLike(String pattern) {\r\n\t\t\treturn textLike(Pattern.compile(pattern));\r\n\t\t}\r\n\r\n\t\t/**\r\n\t\t * Filters the current search results for text content with a pattern\r\n\t\t * \r\n\t\t * @param pattern The pattern to match against the text of the current search results\r\n\t\t * @return This search\r\n\t\t */\r\n\t\tpublic ExpressionSearch textLike(Pattern pattern) {\r\n\t\t\treturn iff(LambdaUtils.printablePred(ex -> pattern.matcher(ex.toString()).matches(), \"textLike:\" + pattern.pattern(), null));\r\n\t\t}\r\n\r\n\t\t/**\r\n\t\t * Same as {@link #findAny()}, but throws a {@link NoSuchElementException} if no expression matches the search.\r\n\t\t * \r\n\t\t * @return The first expression (depth-first) under the root that matches the search\r\n\t\t * @throws NoSuchElementException If no expression matches the search\r\n\t\t */\r\n\t\tpublic Expression find() throws NoSuchElementException {\r\n\t\t\tExpression found = findAny();\r\n\t\t\tif (found == null)\r\n\t\t\t\tthrow new IllegalArgumentException(\"No such expression found: \" + this);\r\n\t\t\treturn found;\r\n\t\t}\r\n\r\n\t\t/** @return The first expression (depth-first) under the root that matches the search, or null if no expressions matched */\r\n\t\tpublic Expression findAny() {\r\n\t\t\treturn findAny(theRoot);\r\n\t\t}\r\n\r\n\t\t/** @return All expressions (in depth-first order) under the root that match the search */\r\n\t\tpublic BetterList<Expression> findAll() {\r\n\t\t\tList<Expression> found = new ArrayList<>();\r\n\t\t\tfindAll(Arrays.asList(theRoot), found);\r\n\t\t\treturn BetterList.of(found);\r\n\t\t}\r\n\r\n\t\tExpression findAny(Expression root) {\r\n\t\t\tList<Expression> found = new ArrayList<>();\r\n\t\t\tfindAll(Arrays.asList(root), found);\r\n\t\t\tif (found.isEmpty())\r\n\t\t\t\treturn null;\r\n\t\t\treturn found.get(0);\r\n\t\t}\r\n\r\n\t\tvoid findAll(List<Expression> root, List<Expression> found) {\r\n\t\t\tList<Expression> intermediate = new ArrayList<>();\r\n\t\t\tboolean first = true;\r\n\t\t\tfor (ExpressionSearchOp search : theSequence) {\r\n\t\t\t\tif (first) {\r\n\t\t\t\t\tintermediate.addAll(root);\r\n\t\t\t\t\tfirst = false;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tintermediate.clear();\r\n\t\t\t\t\tintermediate.addAll(found);\r\n\t\t\t\t\tfound.clear();\r\n\t\t\t\t}\r\n\t\t\t\tsearch.findAll(intermediate, found);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t@Override\r\n\t\tpublic String toString() {\r\n\t\t\treturn theSequence.toString();\r\n\t\t}\r\n\r\n\t\tinterface ExpressionSearchOp {\r\n\t\t\tvoid findAll(List<Expression> intermediate, List<Expression> found);\r\n\t\t}\r\n\r\n\t\tstatic class PathSearchOp implements ExpressionSearchOp {\r\n\t\t\tprivate final String[] thePath;\r\n\r\n\t\t\tPathSearchOp(String[] path) {\r\n\t\t\t\tthePath = path;\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void findAll(List<Expression> intermediate, List<Expression> found) {\r\n\t\t\t\tfor (Expression ex : intermediate)\r\n\t\t\t\t\tfind(ex, 0, found::add, true);\r\n\t\t\t}\r\n\r\n\t\t\tExpression find(Expression ex, int pathIndex, Consumer<Expression> found, boolean multi) {\r\n\t\t\t\tif (ex.getType().equalsIgnoreCase(thePath[pathIndex])) {\r\n\t\t\t\t\tpathIndex++;\r\n\t\t\t\t\tif (pathIndex == thePath.length) {\r\n\t\t\t\t\t\tif (found != null)\r\n\t\t\t\t\t\t\tfound.accept(ex);\r\n\t\t\t\t\t\treturn ex;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tfor (Expression child : ex.getComponents()) {\r\n\t\t\t\t\tExpression childFound = find(child, pathIndex, found, multi);\r\n\t\t\t\t\tif (!multi && childFound != null)\r\n\t\t\t\t\t\treturn childFound;\r\n\t\t\t\t}\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic String toString() {\r\n\t\t\t\treturn StringUtils.print(\".\", Arrays.asList(thePath), p -> p).toString();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tstatic class ChildSearchOp implements ExpressionSearchOp {\r\n\t\t\tprivate final Function<BetterList<Expression>, Expression> theChild;\r\n\r\n\t\t\tChildSearchOp(Function<BetterList<Expression>, Expression> child) {\r\n\t\t\t\ttheChild = child;\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void findAll(List<Expression> intermediate, List<Expression> found) {\r\n\t\t\t\tfor (Expression ex : intermediate) {\r\n\t\t\t\t\tExpression child = theChild.apply(ex.getComponents());\r\n\t\t\t\t\tif (child != null)\r\n\t\t\t\t\t\tfound.add(child);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic String toString() {\r\n\t\t\t\treturn \"child:\" + theChild;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tstatic class SimpleSearchFilter implements ExpressionSearchOp {\r\n\t\t\tprivate final Predicate<Expression> theFilter;\r\n\r\n\t\t\tSimpleSearchFilter(Predicate<Expression> filter) {\r\n\t\t\t\ttheFilter = filter;\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void findAll(List<Expression> intermediate, List<Expression> found) {\r\n\t\t\t\tfor (Expression ex : intermediate)\r\n\t\t\t\t\tif (theFilter.test(ex))\r\n\t\t\t\t\t\tfound.add(ex);\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic String toString() {\r\n\t\t\t\treturn \"if:\" + theFilter;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tstatic class ComplexSearchFilter implements ExpressionSearchOp {\r\n\t\t\tprivate final ExpressionSearch theSearch;\r\n\r\n\t\t\tComplexSearchFilter(ExpressionSearch search) {\r\n\t\t\t\ttheSearch = search;\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void findAll(List<Expression> intermediate, List<Expression> found) {\r\n\t\t\t\tfor (Expression ex : intermediate) {\r\n\t\t\t\t\tExpression exFound = theSearch.findAny(ex);\r\n\t\t\t\t\tif (exFound != null)\r\n\t\t\t\t\t\tfound.add(ex);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic String toString() {\r\n\t\t\t\treturn theSearch.toString();\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\t/** A simple expression with no children--generally a literal or pattern match */\r\n\tpublic class Terminal implements Expression {\r\n\t\tprivate final String theType;\r\n\t\tprivate final int theStart;\r\n\t\tprivate final String theText;\r\n\r\n\t\t/**\r\n\t\t * @param type The type name of the expression\r\n\t\t * @param start The start index of the expression\r\n\t\t * @param text The expression text\r\n\t\t */\r\n\t\tpublic Terminal(String type, int start, String text) {\r\n\t\t\ttheType = type;\r\n\t\t\ttheStart = start;\r\n\t\t\ttheText = text;\r\n\t\t}\r\n\r\n\t\t@Override\r\n\t\tpublic String getType() {\r\n\t\t\treturn theType;\r\n\t\t}\r\n\r\n\t\t@Override\r\n\t\tpublic int getStartIndex() {\r\n\t\t\treturn theStart;\r\n\t\t}\r\n\r\n\t\t@Override\r\n\t\tpublic BetterList<Expression> getComponents() {\r\n\t\t\treturn BetterList.empty();\r\n\t\t}\r\n\r\n\t\t@Override\r\n\t\tpublic StringBuilder printStructure(StringBuilder str, int indent) {\r\n\t\t\tif (str == null)\r\n\t\t\t\tstr = new StringBuilder();\r\n\t\t\tfor (int i = 0; i < indent; i++)\r\n\t\t\t\tstr.append('\\t');\r\n\t\t\tstr.append(theType).append(\": \").append(theText);\r\n\t\t\treturn str;\r\n\t\t}\r\n\r\n\t\t@Override\r\n\t\tpublic String toString() {\r\n\t\t\treturn theText;\r\n\t\t}\r\n\t}\r\n\r\n\t/** An expression made up of other expressions */\r\n\tpublic class Composite implements Expression {\r\n\t\tprivate final String theType;\r\n\t\tprivate final BetterList<Expression> theComponents;\r\n\r\n\t\t/**\r\n\t\t * @param type The type of the expression\r\n\t\t * @param components The components for the expression\r\n\t\t */\r\n\t\tpublic Composite(String type, BetterList<Expression> components) {\r\n\t\t\ttheType = type;\r\n\t\t\ttheComponents = components;\r\n\t\t}\r\n\r\n\t\t@Override\r\n\t\tpublic String getType() {\r\n\t\t\treturn theType;\r\n\t\t}\r\n\r\n\t\t@Override\r\n\t\tpublic int getStartIndex() {\r\n\t\t\treturn theComponents.get(0).getStartIndex();\r\n\t\t}\r\n\r\n\t\t@Override\r\n\t\tpublic BetterList<Expression> getComponents() {\r\n\t\t\treturn theComponents;\r\n\t\t}\r\n\r\n\t\t@Override\r\n\t\tpublic StringBuilder printStructure(StringBuilder str, int indent) {\r\n\t\t\tif (str == null)\r\n\t\t\t\tstr = new StringBuilder();\r\n\t\t\tfor (int i = 0; i < indent; i++)\r\n\t\t\t\tstr.append('\\t');\r\n\t\t\tstr.append(theType).append(\": \");\r\n\t\t\tboolean first = true;\r\n\t\t\tfor (Expression component : theComponents) {\r\n\t\t\t\tcomponent.printStructure(str, first ? 0 : indent + 1).append('\\n');\r\n\t\t\t\tfirst = false;\r\n\t\t\t}\r\n\t\t\treturn str;\r\n\t\t}\r\n\r\n\t\t@Override\r\n\t\tpublic String toString() {\r\n\t\t\treturn StringUtils.print(new StringBuilder(), \"\", theComponents, StringBuilder::append).toString();\r\n\t\t}\r\n\t}\r\n\r\n\t/** Translates ANTLR v4 parse trees into {@link Expression}s */\r\n\tstatic class ExpressoAntlrCompiler implements ParseTreeListener {\r\n\t\tstatic class InternalExpressoErrorException extends RuntimeException {\r\n\t\t\tfinal Token token;\r\n\r\n\t\t\tpublic InternalExpressoErrorException(Token token) {\r\n\t\t\t\tsuper(token.toString());\r\n\t\t\t\tthis.token = token;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tprivate final Parser theParser;\r\n\t\tprivate final LinkedList<List<Expression>> theStack;\r\n\t\tprivate Expression theRoot;\r\n\r\n\t\tpublic ExpressoAntlrCompiler(Parser parser) {\r\n\t\t\ttheParser = parser;\r\n\t\t\ttheStack = new LinkedList<>();\r\n\t\t}\r\n\r\n\t\tpublic Expression getRoot() {\r\n\t\t\treturn theRoot;\r\n\t\t}\r\n\r\n\t\t@Override\r\n\t\tpublic void enterEveryRule(ParserRuleContext arg0) {\r\n\t\t\tString ruleName = theParser.getRuleNames()[arg0.getRuleIndex()];\r\n\t\t\tint childCount = arg0.getChildCount();\r\n\t\t\tif (childCount == 1)\r\n\t\t\t\ttheStack.add(new SingleChildList(ruleName, theStack.isEmpty() ? null : theStack.getLast()));\r\n\t\t\telse {\r\n\t\t\t\tList<Expression> children = new ArrayList<>(childCount);\r\n\t\t\t\tExpression ex = new Composite(ruleName, BetterList.of(children));\r\n\t\t\t\tif (!theStack.isEmpty())\r\n\t\t\t\t\ttheStack.getLast().add(ex);\r\n\t\t\t\ttheStack.add(children);\r\n\t\t\t\tif (theRoot == null)\r\n\t\t\t\t\ttheRoot = ex;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t@Override\r\n\t\tpublic void exitEveryRule(ParserRuleContext arg0) {\r\n\t\t}\r\n\r\n\t\t@Override\r\n\t\tpublic void visitErrorNode(ErrorNode arg0) {\r\n\t\t\tthrow new InternalExpressoErrorException(arg0.getSymbol());\r\n\t\t}\r\n\r\n\t\t@Override\r\n\t\tpublic void visitTerminal(TerminalNode arg0) {\r\n\t\t\tString displayType = theParser.getVocabulary().getDisplayName(arg0.getSymbol().getType());\r\n\t\t\tExpression ex = new Terminal(displayType, //\r\n\t\t\t\targ0.getSymbol().getStartIndex(), arg0.getSymbol().getText());\r\n\t\t\tif (!theStack.isEmpty())\r\n\t\t\t\ttheStack.getLast().add(ex);\r\n\t\t\tif (theRoot == null)\r\n\t\t\t\ttheRoot = ex;\r\n\t\t}\r\n\r\n\t\tclass SingleChildList extends AbstractList<Expression> {\r\n\t\t\tprivate final String theType;\r\n\t\t\tprivate final List<Expression> parentChildren;\r\n\t\t\tprivate boolean isAdded;\r\n\r\n\t\t\tSingleChildList(String type, List<Expression> parentChildren) {\r\n\t\t\t\ttheType = type;\r\n\t\t\t\tthis.parentChildren = parentChildren;\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic Expression get(int index) {\r\n\t\t\t\tif (index < 0 || index > 1 || !isAdded)\r\n\t\t\t\t\tthrow new IndexOutOfBoundsException(index + \" of \" + size());\r\n\t\t\t\treturn parentChildren.get(parentChildren.size() - 1).getComponents().get(index);\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic int size() {\r\n\t\t\t\treturn isAdded ? 1 : 0;\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic boolean add(Expression e) {\r\n\t\t\t\tif (isAdded)\r\n\t\t\t\t\tthrow new IllegalStateException();\r\n\t\t\t\tisAdded = true;\r\n\t\t\t\tExpression ex = new Composite(theType, BetterList.of(e));\r\n\t\t\t\tif (parentChildren != null)\r\n\t\t\t\t\tparentChildren.add(ex);\r\n\t\t\t\telse\r\n\t\t\t\t\ttheRoot = ex;\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}", "title": "" } ]
d3ce7de95e1b7af04cd8106a580918bd
The insertSorted method inserts a node in the proper place in a sorted list. The method does not set the last reference.
[ { "docid": "f270c8691f3a8a6fdc179fce102dcee5", "score": "0.65989625", "text": "private Node insertSorted(Node n, Node sortedList)\n {\n \n \n //TODO: add your code\n Node current = sortedList;\n // The node n goes at the beginning if the sortedList is empty\n // or if the value in n is less than the value in the head of sortedList\n if (sortedList == null || n.value.compareTo(sortedList.value) < 0)\n {\n n.next = sortedList;\n return n;\n }\n \n else \n {while (current.next != null && current.next.value.compareTo(n.value) < 0)\n { \n \t current = current.next;\n }\n }\n // Otherwise, scan to find the right place for n\n // store the node that will come before n\n \n \n // Put n after its predecessor\n n.next = current.next;\n current.next = n;\n \n // Return head of the now sorted list\n return sortedList; \n }", "title": "" } ]
[ { "docid": "a6ea0b2127da0eaf18925165048d2017", "score": "0.69910717", "text": "void sortedInsert(node newnode){\n // case for the head end\n if(sorted == null || sorted.val >= newnode.val){\n newnode.next = sorted;\n sorted = newnode;\n } else {\n node current = sorted;\n // here we find the lace where the node belongs within the sorted\n while (current.next != null && current.next.val < newnode.val){\n current = current.next;\n }\n newnode.next = current.next;\n current.next = newnode;\n }\n }", "title": "" }, { "docid": "fcb7c2ef05db37b4d182647d69837a3f", "score": "0.6574857", "text": "public Node<T> insertSorted(T data){\n\n final Node<T> newNode = new Node<>(data);\n\n Node<T> node;\n for(node=start; node!=null && node.getData().compareTo(data)<0; node=node.getNext());\n\n newNode.setNext(node);\n newNode.setPrev(node==null? end : node.getPrev());\n\n fixNextAndPrevInsertion(newNode);\n length++;\n\n return newNode;\n }", "title": "" }, { "docid": "2e4bbe6edb7cad612b753cb17d930439", "score": "0.6335167", "text": "void insertSorted(int val){\r\n\t\tListNode n1 = new ListNode(null,null,val);\r\n\t\t\r\n\t\tListNode prev = null;ListNode present = head ; \r\n\t\twhile(present!=null){\r\n\t\t\tif(val<present.val) {\r\n\t\t\t\t//insert between prev and present \r\n\t\t\t\tn1.next = present;\r\n\t\t\t\tpresent.prev = n1;\r\n\t\t\t\tn1.prev = prev;\r\n\t\t\t\tif(prev!=null) prev.next = n1;\r\n\t\t\t\tif(present == head) head = n1;\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tprev = present;\r\n\t\t\tpresent = present.next;\r\n\t\t}\r\n\t\t//head is null . make new node head\r\n\t\tif(prev == null) {\r\n\t\t\thead = n1;\r\n\t\t} else {//insert node at end of list\r\n\t\t\tprev.next = n1;\r\n\t\t\tn1.prev = prev;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "2246392bc1bd2450c39ea851ff586130", "score": "0.6193754", "text": "@Override\n\tpublic SLNode<Integer> insertArrSorted(SLNode<Integer> head, Integer a[]) {\n\n\t\tSLNode<Integer> p = null;\n\n\t\tfor (int i = 0; i < a.length; i++) {\n\t\t\tSLNode<Integer> temp = new SLNode<Integer>(a[i]);\n\t\t\tif (head == null) {\n\t\t\t\thead = tail = temp;\n\t\t\t} else if (a[i] <= head.k) { // = applied later\n\t\t\t\ttemp.next = head;\n\t\t\t\thead = temp;\n\t\t\t} else {\n\t\t\t\tp = head;\n\t\t\t\twhile (p.next != null) {\n\t\t\t\t\tif (a[i] <= p.next.k) { // = applied later\n\t\t\t\t\t\ttemp.next = p.next;\n\t\t\t\t\t\tp.next = temp;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tp = p.next;\n\t\t\t\t}\n\t\t\t\tif (p.next == null)\n\t\t\t\t\tp.next = temp;\n\t\t\t}\n\t\t}\n\t\tp = head;\n\t\twhile (p.next != null)\n\t\t\tp = p.next;\n\t\ttail = p;\n\t\ttail.next = head;\n\t\treturn head;\n\t}", "title": "" }, { "docid": "36341592ca43164f04a18b24d5ac7d92", "score": "0.61593056", "text": "private void insertSorted(char[] sorted, char ch) {\n int j = 1;\n while (j < sorted.length\n && sorted[j] < ch) {\n sorted[j-1] = sorted[j];\n ++j;\n }\n sorted[j-1] = ch;\n }", "title": "" }, { "docid": "c752236bd08701e304ae5a41d5d5bbc4", "score": "0.6033894", "text": "public void insertsortedlist(int x, int i) {\r\n\t\tNode t;\r\n\t\tif (i == 1){\r\n\t\t\tt = head1;\r\n\t\t}\r\n\t\telse{\r\n\t\t\tt = head2;\r\n\t\t}\r\n\t\tNode tmp = new Node();\r\n\t\ttmp.data = x;\r\n\t\t// Special case for head node\r\n\t\tif (t == null || t.data >= tmp.data) {\r\n\t\t\ttmp.next = t;\r\n\t\t\tt = tmp;\r\n\t\t} else {\r\n\t\t\t// locate the node before the point of insertion\r\n\t\t\tNode cur = t;\r\n\t\t\twhile (cur.next != null && cur.next.data < tmp.data){\r\n\t\t\t\tcur = cur.next;\r\n\t\t\t}\r\n\t\t\t// end while\r\n\t\t\ttmp.next = cur.next;\r\n\t\t\tcur.next = tmp;\r\n\t\t} // end else\r\n\t\tif (i == 1){ // set the heads\r\n\t\t\thead1 = t;\r\n\t\t}\r\n\t\telse{\r\n\t\t\thead2 = t;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "64c8f71e0e756eeb2c88a2b15b261b68", "score": "0.5931294", "text": "void insertionSort(node headref){\n // we need to initialize the sorted linked list\n sorted = null;\n node current = headref;\n\n // we then traverse the given linked list and insert every node to 'sorted'\n while(current != null){\n // store next for the next iteration of the loop\n node next = current.next;\n // we then insert the current in teh sorted linked list\n sortedInsert(current);\n // Then we advance within the given list\n current = next;\n }\n head = sorted;\n }", "title": "" }, { "docid": "0aff62d1e40ea76b305fc37f6fa547f9", "score": "0.5908673", "text": "public boolean sortedInsert(T element) {\n Node<T> tempNode = head;\n Node<T> previousNode = null;\n //First element to add\n if (head == null) {\n Node<T> newNode = new Node<>();\n newNode.value = element;\n tail = head = newNode;\n head.nextNode = head;\n return true;\n } else {\n while (tempNode.nextNode != null) {\n Integer intVal = (Integer) element;\n if ((Integer) tempNode.value > intVal) {\n Node<T> newNode = new Node<>();\n newNode.value = element;\n newNode.nextNode = tempNode;\n //Add at starting point\n if (previousNode == null) {\n head = newNode;\n tail.nextNode = head;\n }\n //Add at middle point\n else {\n previousNode.nextNode = newNode;\n }\n return true;\n }\n if (tempNode.nextNode.hashCode() == head.hashCode()) {\n break;\n }\n previousNode = tempNode;\n tempNode = tempNode.nextNode;\n\n }\n //Add at the end\n Node<T> newNode = new Node<>();\n newNode.value = element;\n tempNode.nextNode = newNode;\n newNode.nextNode = head;\n tail = newNode;\n return true;\n }\n }", "title": "" }, { "docid": "346b4206da8eb3f2957535bf3dbb2c4c", "score": "0.5834236", "text": "private void insertSort(PList toAdd, PList location) {\n\n\t\tif (location.getNext() == null) {\n\t\t\tlocation.setNext(toAdd);\n\t\t} else {\n\t\t\tif (toAdd.getPriority() > location.getNext().getPriority()) {\n\t\t\t\ttoAdd.setNext(location.getNext());\n\t\t\t\tlocation.setNext(toAdd);\n\t\t\t} else if (toAdd.getPriority() == location.getNext().getPriority()) {\n\t\t\t\tif (toAdd.getValue() >= location.getNext().getValue()) {\n\t\t\t\t\ttoAdd.setNext(location.getNext());\n\t\t\t\t\tlocation.setNext(toAdd);\n\t\t\t\t} else\n\t\t\t\t\tinsertSort(toAdd, location.getNext());\n\t\t\t} else\n\t\t\t\tinsertSort(toAdd, location.getNext());\n\t\t}\n\t}", "title": "" }, { "docid": "d0f75242fddfe3952ab016922c89b2f2", "score": "0.5824886", "text": "void insertionSort(Node head) {\n sorted = null;\n Node current = head;\n // Traverse the given linked list and insert every\n // node to sorted\n while (current != null) {\n // Store next for next iteration\n Node next = current.next;\n // insert current in sorted linked list\n sortedInsert(current);\n // Update current\n current = next;\n }\n // Update head_ref to point to sorted linked list\n head = sorted;\n }", "title": "" }, { "docid": "09b041e860531a8a5577d393b89041b0", "score": "0.57893497", "text": "private void insertionSort()\n {\n /* @formatter:off\n *\n * - use a rudimentary insertion sort\n * - your sort must be stable\n * - you are not permitted to copy the contents of the chain into an array\n * - you are not permitted to use any Java Class Library classes\n *\n * @formatter:on\n */\n\n // DONE implement this\n\n if ( this.getLength() > 1 )\n {\n // Assertion: firstNode != null\n // Break chain into 2 pieces: sorted and unsorted\n Node<T> unsortedPart = this.firstNode.getNextNode() ;\n // Assertion: unsortedPart != null\n this.firstNode.setNextNode( null ) ;\n while ( unsortedPart != null )\n {\n final Node<T> nodeToInsert = unsortedPart ;\n unsortedPart = unsortedPart.getNextNode() ;\n insertInOrder( nodeToInsert ) ;\n }\n }\n }", "title": "" }, { "docid": "81393fae6978c0e954a1c418ea23ddfd", "score": "0.5776576", "text": "public void insertSorted( int newValue)\n\t{\n\t\tif ( newValue < 0 || newValue > 10000 )\n\t\t{\n\t\t\t//throw new IllegalArgumentException(\"number must be greater than zero and less than 10000:\" + newValue);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif ( cur_array_size >= max_array_size )\n\t\t\t{\n\t\t\t\t// Array full , resize array\n\t\t\t\tthis.IncreaseArray();\n\t\t\t}\n\n\t\t\tint temp_index = 0;\n\t\t\twhile ( temp_index < cur_array_size && newValue > myIntArray[temp_index] )\n\t\t\t{\n\t\t\t\ttemp_index ++;\n\t\t\t}\n\t\t\tfor ( int i = max_array_size - 1; i > temp_index; i -- )\n\t\t\t{\n\t\t\t\tmyIntArray[i] = myIntArray[i-1];\n\t\t\t}\n\t\t\tmyIntArray[temp_index] = newValue;\n\t\t\tmyIntArray_sum = myIntArray_sum + newValue;\t\n\t\t\tcur_array_size ++;\n\t\t}\t\n\t\n\t}", "title": "" }, { "docid": "34b809fc1f6670da55947446220affdd", "score": "0.57298297", "text": "public static void insertIntoSortedCircularList(LinkedList list, Node<Integer> node, Integer insertVal) {\n if(node == null) {\n //create list\n Node<Integer> insertNode = new Node<>(insertVal);\n list.head = insertNode;\n insertNode.next = list.head;\n\n return;\n }\n\n Node<Integer> temp = node;\n Node<Integer> front = node.next;\n\n while(temp.data > insertVal) {\n temp = temp.next;\n front = temp.next;\n }\n\n Node<Integer> insertNode = new Node<>(insertVal);\n temp.next = insertNode;\n insertNode.next = front;\n }", "title": "" }, { "docid": "e755c2d0a3ba5b6373381e23eded4961", "score": "0.55827975", "text": "public void insertNode(Node t, Node insertPoint) {\r\n \t// Check if insertPoint is equal to rear and if so:\r\n \t// 1) set rear.next to t\r\n \t// 2) set t.prev to rear\r\n \t// 3) set rear to t;\r\n \t// 4) increment size\r\n \tif(insertPoint == rear) {\r\n \t\trear.next = t;\r\n \t\tt.prev = rear;\r\n \t\trear = t;\r\n \t\tsize++;\r\n \t// ELSE:\r\n \t// 1) set t.next to insertPoint.next\r\n \t// 2) set t.prev to insertPoint\r\n \t// 3) set insertPoint.next.prev t\r\n \t// 4) set insertPoint.next to t\r\n \t// 5) increment size\r\n \t} else {\r\n \t\tt.next = insertPoint.next;\r\n \t\tt.prev = insertPoint;\r\n \t\tinsertPoint.next.prev = t;\r\n \t\tinsertPoint.next = t;\r\n \t\tsize++;\r\n \t}\r\n }", "title": "" }, { "docid": "56511d3e75a4db6105ebe70c897e8224", "score": "0.5527659", "text": "public void insert(Comparable comp) {\n insert(root, comp);\n }", "title": "" }, { "docid": "95d3caa0ba9731c6c9e27f297d33000a", "score": "0.5458904", "text": "public static ListNode insertionSortList(ListNode head) \r\n\t{\r\n\t\tif( head == null )\r\n\t\t{\r\n\t\t\treturn head;\r\n\t\t}\r\n\r\n\t\tListNode helper = new ListNode(0); // new starter of the sorted list\r\n\t\t\r\n\t\tListNode pre = helper; //insert node between pre and pre.next\r\n\t\tListNode cur = head; // the node will be inserted\t\t\r\n\t\tListNode next = null; //the next node will be inserted\r\n\t\t\r\n\t\t//not the end of input list\r\n\t\twhile( cur != null )\r\n\t\t{\r\n\t\t\tnext = cur.next;\r\n\t\t\t\r\n\t\t\t//find the right place to insert\r\n\t\t\twhile( pre.next != null && pre.next.val < cur.val )\r\n\t\t\t{\r\n\t\t\t\tpre = pre.next;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Insert between pre and pre.next\r\n\t\t\tcur.next = pre.next;\r\n\t\t\tpre.next = cur;\r\n\t\t\t\r\n\t\t\t// Insertion over, reset pre. Take it back to the helper.\r\n\t\t\tpre = helper;\r\n\t\t\t\r\n\t\t\t// Move to the next node\r\n\t\t\tcur = next;\r\n\t\t}\r\n\r\n\t\treturn helper.next;\r\n\t}", "title": "" }, { "docid": "91a2324ed1d9aa3cc911382d8ff4d106", "score": "0.5456944", "text": "private void insert(Point p) {\n head = insert(head, p, true);\n }", "title": "" }, { "docid": "e2922113fb5c0d1c9bfd32d80bc525fe", "score": "0.5456498", "text": "public void insert(Point2D p) {\n if (contains(p)) return;\n N++;\n if (root == null) {\n root = new Node(p);\n\n return;\n }\n Node cursor = root;\n Node prev = root;\n while (cursor != null) {\n prev = cursor;\n if (cursor.compareTo(p) > 0)\n cursor = cursor.lb;\n else\n cursor = cursor.rt;\n }\n\n if (prev.compareTo(p) > 0)\n prev.lb = new Node(p, prev);\n else\n prev.rt = new Node(p, prev);\n }", "title": "" }, { "docid": "f4c8d2dcf6c56f4455fb42aad1fc6563", "score": "0.5452019", "text": "public ListNode insertionSortList(ListNode head) {\n if (head == null || head.next == null) return head;\n\n ListNode curr = head; // the node will be inserted\n ListNode dummy = new ListNode(0);\n ListNode pre = dummy; // insert at pre.next\n ListNode next = null;\n\n while (curr != null) {\n next = curr.next;\n // find insersion point\n while (pre.next != null && pre.next.val < curr.val) {\n pre = pre.next;\n } // found insertion place\n curr.next = pre.next;\n pre.next = curr;\n curr = next; // check next input node\n pre = dummy; // reset pre, ready for next insertion scan;\n }\n return dummy.next;\n}", "title": "" }, { "docid": "d58ab391bd809eca41722e4c22884864", "score": "0.5450754", "text": "@Override\r\n\tpublic void insertionSort(LinkedList<E> list, int lowindex, int highindex, boolean reversed) {\n\t\t\r\n\t}", "title": "" }, { "docid": "685fc32f6c08845f792a6e22b90552b9", "score": "0.5414302", "text": "public TreeNode insert(TreeNode lookingat, Comparable comp) {\n if(lookingat == null) //When it reaches the end of the tree, create that node\n lookingat = new TreeNode(comp);\n else if (comp.compareTo(lookingat.getValue()) > 0) //If object is larger, move on right.\n lookingat.setRight(insert(lookingat.getRight(), comp));\n else if (comp.compareTo(lookingat.getValue()) < 0) //If object is less, move on left.\n lookingat.setLeft(insert(lookingat.getLeft(), comp));\n return lookingat;\n }", "title": "" }, { "docid": "04629f2d47473b9de1cd839cd7e926ee", "score": "0.54018635", "text": "public void sort()\n {\n \n //TODO: your code here\n \n // Recommendation: Sort the list by successively inserting nodes\n // into an initially empty list\n // (by using insertSorted method, below)\n \n Node sortedList = null; \n \n \n //TODO: Sort the list here\n \n while (first != null)\n \t{\n \tNode p = new Node(first.value);\n \tsortedList = insertSorted(p, sortedList);\n \tfirst = first.next;\n \t}\n \n // Replace first with sorted list\n first = sortedList;\n \n // Set the last reference to the last node\n last = first;\n if (last != null)\n { \n while (last.next != null) \n last = last.next; \n }\n \n }", "title": "" }, { "docid": "03379b01f37303aa2b01d6f1406e7247", "score": "0.5356233", "text": "public ListNode insertionSortList(ListNode head) {\n // idea: build the reverted linkedlist with order\n ListNode tmp = null;\n ListNode node_itr = head;\n while (node_itr != null) {\n ListNode next_node = node_itr.next;\n // insert last\n if (tmp == null || node_itr.val >= tmp.val) {\n node_itr.next = tmp;\n tmp = node_itr;\n } else {\n // find suitable mid position to insert\n ListNode left_node = tmp;\n ListNode right_node = null;\n while (left_node != null && node_itr.val < left_node.val) {\n right_node = left_node;\n left_node = left_node.next;\n }\n node_itr.next = left_node;\n right_node.next = node_itr;\n }\n\n node_itr = next_node;\n }\n return revertedList(tmp);\n }", "title": "" }, { "docid": "f016cfb42b40f92fabff27e520605efe", "score": "0.5345772", "text": "public abstract void insert(Node<E> current,Node<E> node);", "title": "" }, { "docid": "67208f03cf44e740eeea486a4ce981fc", "score": "0.53338325", "text": "void insert (double priority, int item);", "title": "" }, { "docid": "c60f19e3be71e1c25ead14469ed90e6d", "score": "0.5329196", "text": "public void insert(T item) {\n //so as not to insert at head\n if (atStart()) next();\n ModelList.this.insert(_point, item);\n _point = _point.pred; //puts pointer on inserted item\n int savPos = _pos;\n notifyOfInsert(_pos);\n\n _pos = savPos; // this._pos is incremented by notify; reverse this change\n }", "title": "" }, { "docid": "fdb2603ec2c80d6a1a7b63f7d403752b", "score": "0.5305451", "text": "private PointNode insert(PointNode h, Point p, boolean d) {\n if (h == null) {\n return new PointNode(p, d);\n } else if (h.pointNode.equals(p)) {\n numCount -= 1;\n return h;\n } else if (d && p.getX() >= h.pointNode.getX()) {\n h.right = insert(h.right, p, !d);\n } else if (d && p.getX() < h.pointNode.getX()) {\n h.left = insert(h.left, p, !d);\n } else if (!(d) && p.getY() >= h.pointNode.getY()) {\n h.right = insert(h.right, p, !d);\n } else if (!(d) && p.getY() < h.pointNode.getY()) {\n h.left = insert(h.left, p, !d);\n }\n return h;\n }", "title": "" }, { "docid": "21120b438cd87256feaa522ffacd37f6", "score": "0.52722037", "text": "public void insert(int valueToInsert) {\r\n Node latestNode = new Node(valueToInsert, this.head);\r\n this.head = latestNode;\r\n }", "title": "" }, { "docid": "0b48ac536f647a73b69305d5c57b0390", "score": "0.52650994", "text": "@Override\n\t\tboolean insert(HashPair item) {\n\n\t\t\tDLList bucketList = hashTable[hash(item.key,hashTable.length)];\n\t\t\tDLNode temp = bucketList.search(item);\n\t\t\t//System.out.println(bucketList);\n\t\t\t\n\t\t\tif(temp != null)\n\t\t\t\tbucketList.remove(temp);\n\t\t\t\n\t\t\t\tbucketList.append(new DLNode(item));\t\t\t \n\t\t\t\treturn true;\n\t\t\t\n\t\t\t\n\t\t}", "title": "" }, { "docid": "0d0df7d3121a7e65568f6d1d0f5f2db1", "score": "0.5260936", "text": "public void insert(AnyType toInsert, int level)\n\t{\t\n\t\tif(level > toplev) {\n\t\t\tNode<AnyType> tempNode = header;\n\t\t\theader = new Node(level, tempNode.data);\n\t\t\t for (int i = 0; i <= toplev; i++) header.next[i] = tempNode.next[i];\n\t\t\t toplev = level;\n\t\t}\n\t\tNode<AnyType> currNode = header;\n\t\tNode<AnyType> inserter = new Node(level, toInsert);\n\t\tint currlev = level;\n\t\tfor(int i = currlev; i >=0;i--) {\n\t\t\twhile (currNode.next[i] != null && toInsert.compareTo(currNode.next[i].data) > 0) {\n\t\t\t\tcurrNode = currNode.next[i];\n\t\t\t}\n\t\t\tinserter.next[i] = currNode.next[i];\n\t\t\tcurrNode.next[i] = inserter;\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "ec1a81156013c6963601b79118dd5578", "score": "0.52556664", "text": "public void insert(int insertVal) \n {\n \tfind(insertVal);\n \tDNode temp = new DNode(insertVal, current, previous); // assign temp.next to current and temp.back to previous\n \tif (previous == null)\t\t\t// insert first node\n \t{\n \t\thead = temp;\n \t\tif (current != null) current.setBack(temp); // insert to the front of an existing list\n \t}\n \telse if(current == null)\t\t//insert last node\n\t \tprevious.setNext(temp);\n \telse\t\t\t\t\t\t\t// insert in the middle \n \t{\n \t\tprevious.setNext(temp);\n \t\tcurrent.setBack(temp);\n \t}\n \tSystem.out.println(\"inserted \" + insertVal);\n }", "title": "" }, { "docid": "0d7229cf623958237001467c2500cd83", "score": "0.52408653", "text": "private static void incrementalInsertionSort(Comparable[] array, int first, int last, int space) {\r\n\r\n\t for (int unsortedIndex = first+space; unsortedIndex <= last; unsortedIndex = unsortedIndex+space) {\r\n\r\n\t \t Comparable nextToInsert = array[unsortedIndex];\r\n\t int index = unsortedIndex-space;\r\n\r\n\t while ((index >= first) && (nextToInsert.compareTo(array[index]) < 0)) {\r\n\t\t\t\t\t\t System.out.println(\"----before----\" + unsortedIndex + \" \" + Arrays.toString(array));\r\n\t array[index + space] = array[index];\r\n\t\t\t\t\t\t\tindex = index - space;\r\n\t\t\t\t\t\t\tSystem.out.println(\"----after-----\" + unsortedIndex + \" \" + Arrays.toString(array));\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t array[index + space] = nextToInsert;\r\n\t\t\t\t\t System.out.println(\"-----end----- \" + Arrays.toString(array));\r\n\t }\r\n\t }", "title": "" }, { "docid": "7ce6f0ac9fc9019f43bef06164777fe0", "score": "0.51901305", "text": "public abstract void insert(int element);", "title": "" }, { "docid": "cf8b746e96f4d2cca97db007afd1ae4d", "score": "0.51741743", "text": "public void insert(T d) {\n\t\troot = put(root, d);\n\t}", "title": "" }, { "docid": "83d67036f690fba67e3e893c6a915261", "score": "0.5170015", "text": "private Node<T> insert(T element, Node<T> node){\n\t\tif(node == null) return node = new Node<T>(element); \n\t\telse{\n\t\t\tif(element.compareTo(node.data) < 0) node.left = insert(element,node.left);\n\t\t\telse node.right = insert(element,node.right);\n\t\t\treturn node;\n\t\t}\n\t}", "title": "" }, { "docid": "8ac7bef37971af0ce32baff3fe1f9ba5", "score": "0.516595", "text": "public static <T extends Comparable<T>> void InsertionSortRecursive(T arr[])\r\n\t {\r\n\t \t//sort the array\r\n\t \tInsertionSortRecursiveHelper(arr, arr.length);\r\n\t }", "title": "" }, { "docid": "e25755000cbc0a503ad93d63d05048d7", "score": "0.516132", "text": "@Override\n public void insert( T element ) {\n this.insertRecursively(this.root(),element);\n }", "title": "" }, { "docid": "ad0c43cebc9000119701337becc8821e", "score": "0.5157703", "text": "void insert(Object value, int position);", "title": "" }, { "docid": "ba6a8b68e3f5a82091c15831a5bbbf37", "score": "0.51512957", "text": "protected void performSortedPush(T anElement) {\n \n this.moveSortedStackToTemporaryWhileElementIsGreaterThanTop(anElement); \n this.getSortedStack().push(anElement); \n this.refillSortedStackFromTemporaryStack();\n \n \n }", "title": "" }, { "docid": "0f399d5b95aac30fc60cc338d9c651a4", "score": "0.51459855", "text": "public static <T extends Comparable<T>> void InsertionSort(T arr[])\r\n\t{\r\n\t\tint n = arr.length;\r\n for (int i=1; i<n; ++i)\r\n {\r\n T key = arr[i];\r\n int j = i-1;\r\n \r\n /* Move elements of arr[0..i-1], that are\r\n greater than key, to one position ahead\r\n of their current position */\r\n while (j>=0 && arr[j].compareTo(key) > 0)\r\n {\r\n arr[j+1] = arr[j];\r\n j = j-1;\r\n }\r\n arr[j+1] = key;\r\n }\r\n\t}", "title": "" }, { "docid": "4f1cc504d51e93d01ab1c673491be4c6", "score": "0.51433533", "text": "@tags.LinkedList\n @tags.Sort\n public ListNode insertionSortList(ListNode head) {\n ListNode dummy = new ListNode(0);\n while (head != null) {\n ListNode prev = dummy;\n while (prev.next != null && prev.next.val < head.val) {\n prev = prev.next;\n }\n\n ListNode insert = head;\n head = head.next;\n insert.next = prev.next;\n prev.next = insert;\n }\n return dummy.next;\n }", "title": "" }, { "docid": "e58654e0e345b86a26659dadf87b9138", "score": "0.5142955", "text": "static void insertNode(Node[] x, Node p, int sz, int pos) {\n\n for (int i = sz; i > pos; i--)\n x[i] = x[i - 1];\n\n x[pos] = p;\n }", "title": "" }, { "docid": "15fba09bf05387ff531771fbbc49be64", "score": "0.51422024", "text": "public void insert(Node newNode) // inserts given 'newNode' into current list alphabetically\r\n {\r\n Node prev;\r\n if (isEmpty()) // The list is empty, and so\r\n // newNode becomes firstNode and lastNode\r\n {\r\n firstNode = lastNode = newNode;\r\n newNode.next = null; // Just in case.\r\n count++;\r\n } else // the list not empty.\r\n {\r\n if (newNode.exp.compareTo(firstNode.exp) <= 0) // this newNode becomes the new firstNode.\r\n //becomes TRUE if newNode.exp is greater than firstNode.exp\r\n {\r\n newNode.next = firstNode;\r\n firstNode = newNode;\r\n count++;\r\n return;\r\n } else {\r\n Node current = firstNode;\r\n prev = current;\r\n // Useless assignment just to avoid a syntax error.\r\n while ((current != null)\r\n && (newNode.exp.compareTo(current.exp) > 0)) // advance while newNode still larger and list not done yet\r\n // The condition is initially true, so loop repeats \t\t\t\r\n // at least once\r\n {\r\n prev = current;\r\n current = current.next;\r\n }\r\n// this newNode now can be inserted between prev node and\r\n// current node as either it is not larger any more than \t\t \r\n // current node or current node is null.\r\n newNode.next = current;\r\n prev.next = newNode;\r\n count++;\r\n if (current == null) // then newNode is now lastNode\r\n {\r\n lastNode = newNode;\r\n }\r\n }\r\n }\r\n }", "title": "" }, { "docid": "ca79368b4203d5d39a2aa8a819b6a11c", "score": "0.5137149", "text": "public static void insertionSort(int [] a) {\n\n\n int j; // the number of items sorted so far\n int key; // the item to be inserted\n int i; \n\n for (j = 1; j < a.length; j++) // Start with 1 (not 0)\n {\n key = a[j];\n for(i = j - 1; (i >= 0) && (a[ i ] < key); i--) // Smaller values are moving up\n {\n a[ i+1 ] = a[ i ];\n }\n a[ i+1 ] = key; // Put the key in its proper location\n }\n\n\n}", "title": "" }, { "docid": "5498759948752b37514fd216e0a645aa", "score": "0.51351744", "text": "public static <T extends Comparable<T>> void InsertionSort(T[] theArray)\n\t{\n\t\tfor (int unsorted = 1; unsorted < theArray.length; ++unsorted)\n\t\t{\n\t\t\tT nextItem = theArray[unsorted];\n\t\t\tint loc = unsorted;\n\t\t\twhile ((loc > 0) && (theArray[loc-1].compareTo(nextItem) > 0))\n\t\t\t{\n\t\t\t\t// shift theArray[loc-1] to the right\n\t\t\t\ttheArray[loc] = theArray[loc-1];\n\t\t\t\tloc--;\n\t\t\t}\n\t\t\t// insert nextItem into sorted region\n\t\t\ttheArray[loc] = nextItem;\n\t\t}\n\t}", "title": "" }, { "docid": "30edfe2cd732992e98b52f02bbe8cd08", "score": "0.5131379", "text": "public void insert(E item) {\n\t\tif (data.length == size + 1) {\n\t\t\t// Create a new array twice the size\n\t\t\tE[] newData = (E[]) new Prioritizable[data.length * 2];\n\t\t\t// Copy the old array to the new bigger array\n\t\t\tSystem.arraycopy(data, 0, newData, 0, data.length);\n\t\t\t// Set the new array as the data reference\n\t\t\tdata = newData;\n\t\t}\n\t\t// Put the item in the next spot in the array/heap\n\t\tdata[++size] = item;\n\n\t\t// Heapify by swaping the value up\n\t\tint child = size;\n\t\twhile (data[child / 2] != null\n\t\t\t\t&& data[child / 2].getPriority() < data[child].getPriority()) {\n\t\t\t// Swap the value up because the parent is less\n\t\t\tE temp = data[child / 2];\n\t\t\tdata[child / 2] = data[child];\n\t\t\tdata[child] = temp;\n\n\t\t\t// Do we need to swap again?\n\t\t\tchild = child / 2;\n\t\t}\n\t}", "title": "" }, { "docid": "bcd07cb2024df725c577f85262e575a3", "score": "0.5115083", "text": "public void insert(RefImpl<T> ref, T item) {\n\r\n\t\tBranchNode clone = storage.getWritableRoot();\r\n\t\tclone.accept(new InsertVisitor(item), storage);\r\n\t\t\r\n\t\t// Now flush the changes\r\n\t\tstorage.writeChanges();\r\n\t}", "title": "" }, { "docid": "c597789eb41f6838c9d0e95cfd96415c", "score": "0.51084054", "text": "public void insertBefore(int value, int newValue) {\n\n //create the new value node passed in with the parameter \"newValue\" to refer to in the method\n ListNode newNodeValue = new ListNode(newValue);\n\n //mark the current starting point of the LinkedList so while loop can go through each node in the list to\n // find where to insert the new value\n ListNode current = this.root;\n\n //handle special case if the target is at the end of the list handle this special case\n if (this.root.data == value){\n this.prepend(value);\n }\n while (current.next !=null && current.next.data != value) {\n current = current.next;\n }\n newNodeValue.next = current.next;\n current.next = newNodeValue;\n}", "title": "" }, { "docid": "a39c47bb4f9686fd5267d96bc817e9a9", "score": "0.5107763", "text": "public void insertionsort()\n {\n //ausgeben();\n for(int i=1; i<numbers.length; i++)\n {\n int exchangeValue = numbers[i];\n int exchangeIndex = i;\n for(int j=i; j>0; j--)\n {\n if(exchangeValue<numbers[j-1])\n {\n exchangeIndex = j-1;\n numbers[j] = numbers[j-1];\n } else break;\n }\n numbers[exchangeIndex] = exchangeValue;\n //ausgeben();\n }\n\n }", "title": "" }, { "docid": "89b8b4d664e0891c4c19e55742f9795a", "score": "0.5101792", "text": "public void insert(Node newNode) {\r\n\t\t\tif(isEmpty())\r\n\t\t\t\tfirst = newNode;\r\n\t\t\telse \r\n\t\t\t\tlast.nextNode = newNode;\r\n\t\t\tlast = newNode;\r\n\t\t}", "title": "" }, { "docid": "9f5166be90c5002b306bd8b34d1d01d3", "score": "0.5101495", "text": "public void insertBefore(Entry item) throws InvalidNodeException {\n\t if (!isValidNode()) {\n\t throw new InvalidNodeException(\"insertBefore() called on invalid node\");\n\t }\n\t EntryListNode newNode = ((EntryList) myList).newNode(item, this);\n\t if (this.key()==myList.head.key()&&this.value()==myList.head.value()) {\n\t ((EntryList) myList).head = newNode;\n\t } else {\n\t \tEntryListNode prev = (EntryListNode) prev();\n\t prev.next = newNode;\n\t }\n\t myList.size++;\n\t }", "title": "" }, { "docid": "301e5ad6aa0202d75359ff911fbc8a80", "score": "0.5092249", "text": "public static void insertionSort(double[] A) {\n // Sort the array A into increasing order.\n \n int itemsSorted; // Number of items that have been sorted so far.\n\n for (itemsSorted = 1; itemsSorted < A.length; itemsSorted++) {\n // Assume that items A[0], A[1], ... A[itemsSorted-1] \n // have already been sorted. Insert A[itemsSorted]\n // into the sorted list.\n \n double temp = A[itemsSorted]; // The item to be inserted.\n int loc = itemsSorted - 1; // Start at end of list.\n \n while (loc >= 0 && A[loc] > temp) {\n A[loc + 1] = A[loc]; // Bump item from A[loc] up to loc+1.\n loc = loc - 1; // Go on to next location.\n }\n \n A[loc + 1] = temp; // Put temp in last vacated space.\n }\n }", "title": "" }, { "docid": "a4ab01537799a1a530866a7fda22b643", "score": "0.5087759", "text": "public ListNode insertionSortList(ListNode head) {\n if (head == null || head.next == null) {\n return head;\n }\n\n ListNode dummy = new ListNode(-1);\n ListNode current = head;\n\n while (current != null) {\n // At each iteration, we insert an element into the resulting list.\n ListNode nextNode = current.next;\n ListNode prev = dummy;\n ListNode curr = dummy.next;\n\n while (curr != null && curr.val < current.val) { // \"<\" or \"<=\"\n prev = curr;\n curr = curr.next;\n }\n\n prev.next = current;\n current.next = curr;\n\n current = nextNode;\n }\n\n return dummy.next;\n }", "title": "" }, { "docid": "8d55e2332e3b34d6108f61b0ce27ef93", "score": "0.5081674", "text": "public void insertionSort() { \r\n\r\n // iterate list, one less than length\r\n for (int i = 0; i < list.size() - 1; i++) {\r\n\r\n // insertion sort key logic\r\n int k = i + 1;\r\n Initial swap = list.get(k); \r\n while( k > 0 && swap.toString().compareTo(list.get(k-1).toString()) < 0) {\r\n list.set(k, list.get(k-1));\r\n \r\n k--;\r\n }\r\n list.set(k, swap);\r\n\r\n }\r\n\r\n }", "title": "" }, { "docid": "03d7835531641048e8a3be2ef95e5437", "score": "0.5077821", "text": "@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic boolean addSorted(I obj) {\r\n\r\n\t\t// More specifically, the objects preceding the specified object must be \"less\r\n\t\t// than\" the specified object, and the objects following the specified object\r\n\t\t// must be \"greater that or equal to\" the specified object.\r\n\t\r\n\t\t// add the object\r\n\t\tthis.add(obj);\r\n\t\t\r\n\t\tboolean sorted = false;\r\n\t\t\r\n\t\t// use insertion sort to sort the objects\r\n\t\tfor (int index = 1; index < numObjects; index++) {\r\n\t\t\tInteger position = index;\r\n\t\t\tInteger key = (Integer) arrayObjects[index];\r\n\t\t\t\r\n\t\t\twhile (position > 0 && (key.compareTo((Integer) arrayObjects[position -1]) < 0)) {\r\n\t\t\t\tarrayObjects[position] = arrayObjects[position - 1];\r\n\t\t\t\tposition--;\r\n\t\t\t}\r\n\t\t\tarrayObjects[position] = (I) key;\r\n\t\t\tsorted = true;\r\n\t\t}\r\n\r\n\t\treturn sorted;\r\n\t}", "title": "" }, { "docid": "3ab090e9a60d7e874fdf6b3f70afab46", "score": "0.5068308", "text": "public void insert(T value) {\n int indexToInsert = 0;\n \n while (indexToInsert < this.size && value.compareTo(this.elements[indexToInsert]) > 0) {\n indexToInsert++;\n }\n \n for (int i = this.size - 1; i >= indexToInsert; i--) {\n // An ArrayIndexOutOfBoundsException can be thrown here, if inserting more elements than the capacity.\n this.elements[i + 1] = this.elements[i];\n }\n \n this.elements[indexToInsert] = value;\n this.size++;\n }", "title": "" }, { "docid": "5d9269e925eaab704080779197e5b105", "score": "0.5065685", "text": "@Override\n\tpublic void insert(Object ob) {\n\t\t\n\t}", "title": "" }, { "docid": "44b4d7da5fc7abddc572fecf1ef5c908", "score": "0.5065597", "text": "public void insert(T x) {\r\n\t\tadd(x);\r\n\t}", "title": "" }, { "docid": "c50f33a3786c92b18f8ca108f08e6c0a", "score": "0.5064772", "text": "private static <T extends Comparable<T>> void InsertionSortRecursiveHelper(T arr[], int n)\r\n\t {\r\n\t \t// Base case\r\n\t if (n <= 1)\r\n\t return;\r\n\t \r\n\t // Sort first n-1 elements\r\n\t InsertionSortRecursiveHelper( arr, n-1 );\r\n\t \r\n\t // Insert last element at its correct position\r\n\t // in sorted array.\r\n\t T last = arr[n-1];\r\n\t int j = n-2;\r\n\t \r\n\t /* Move elements of arr[0..i-1], that are\r\n\t greater than key, to one position ahead\r\n\t of their current position */\r\n\t while (j >= 0 && arr[j].compareTo(last) > 0)\r\n\t {\r\n\t arr[j+1] = arr[j];\r\n\t j--;\r\n\t }\r\n\t arr[j+1] = last;\r\n\t }", "title": "" }, { "docid": "d68b73db95224630c51c1d59c34caab2", "score": "0.50639373", "text": "@Override\n\tpublic void insertionSort() {\n\n\t}", "title": "" }, { "docid": "a77c0c883d7ad130dace85c8ea308d04", "score": "0.50582546", "text": "public void insert( int newVal ) \n {\n\tif (root == null) { //first value\n\t root = new TreeNode(newVal);\n\t return;\n\t}\n\tTreeNode scout = root; //scouts ahead to see if next node is null\n\tTreeNode current = null; //current node \n\twhile (scout != null) { //as long as there is another node...\n\t current = scout; //current stays close behind scout\n\t //if newVal is less than current val, move left. \n\t if (newVal < scout.getValue()) { \n\t\tscout = scout.getLeft();\n\t } else { //otherwise move right\n\t\tscout = scout.getRight();\n\t }\n\t}\n\t//scout must have encountered null where newVal should be\n\t//current can call setLeft or setRight (where scout is) accordingly\n\tif (newVal < current.getValue()) {\n\t current.setLeft(new TreeNode(newVal)); \n\t} else {\n\t current.setRight(new TreeNode(newVal));\n\t}\n\n }", "title": "" }, { "docid": "b50d8c0f3a1397dab0536b6a499e7169", "score": "0.505327", "text": "public static void insertSort(int[] a) {\n\tint tmp;\n\t//petla od pierwszego elementu do konca\n for (int i = 1; i < a.length; i++) \n\t\t// petla od i-tego elementu do poczatku\n\t\tfor (int j = i; j > 0 && a[j] < a[j - 1]; j--) { \n\t\t//jak jestesmy w i-tym elemencie to wracamy do poczatku petli zamieniajac caly\n\t\t//czas i-ty element w strone jego miejsca w tabeli tworzac podciag posortowany\n tmp = a[j]; \n\t\t//i nastepnie zabieramy sie za kolejny element i wstawiamy go na jego miejsce\n\t\t//w naszym podciagu posortowanym\n\t\ta[j] = a[j - 1];\n a[j - 1] = tmp;\n }\n }", "title": "" }, { "docid": "56b2ba05ff0c10f2407045861423f43a", "score": "0.5052307", "text": "private void insert(Node<T> point, T item) {\n Node<T> before = point.pred;\n Node<T> newNode = new Node<T>(item, before, point);\n before.succ = newNode;\n point.pred = newNode;\n _length++;\n }", "title": "" }, { "docid": "4abd90fd70c24bb61f732218b2114ddc", "score": "0.50462925", "text": "public static void insertionSort(String[] A) {\n \n int itemsSorted; // Number of items that have been sorted so far.\n\n for (itemsSorted = 1; itemsSorted < A.length; itemsSorted++) {\n // Assume that items A[0], A[1], ... A[itemsSorted-1] \n // have already been sorted. Insert A[itemsSorted]\n // into the sorted list.\n \n double temp = (double)Integer.parseInt(A[itemsSorted].substring(0, A[itemsSorted].indexOf(','))); // The item to be inserted.\n String tempString = A[itemsSorted]; // The item to be inserted.\n int loc = itemsSorted - 1; // Start at end of list.\n \n while (loc >= 0 && (double)Integer.parseInt(A[loc].substring(0, A[loc].indexOf(','))) > temp) {\n A[loc + 1] = A[loc]; // Bump item from A[loc] up to loc+1.\n loc = loc - 1; // Go on to next location.\n }\n \n A[loc + 1] = tempString; // Put temp in last vacated space.\n }\n }", "title": "" }, { "docid": "4fa336f49c6fd62257fc623cb92a6af9", "score": "0.50446546", "text": "@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\n\t@Override\n\tpublic void insert(K key, V value) {\n\t\tint temp = calculateHash((String)key);\n\t\tNode<K,V> val = new Node<K,V>(key,value);\n\t\tif(obj[temp].key == null){\n\t\t\tcount++;\n\t\t\tobj[temp]=val;\n\t\t\tobj[temp].next = new Node<K,V>(null,null);\n\t\t\t}\n\t\telse{\n\t\t\tNode link = obj[temp];\n\t\t\twhile(link.key != null)\n\t\t\t\tlink = link.next;\n\t\t\tlink = val;\n\t\t\tlink.next = new Node<K,V>(null,null);\n\t\t}\n\t}", "title": "" }, { "docid": "8cfbb4a5db6d65da1b508deeeee3abc6", "score": "0.50444597", "text": "public void insert(T key) {\n\t\tNode<T> newNode = new Node<T>(key);\n\t\tNode<T> curr = this.head;\n\t\tNode<T> prev = null;\n\t\twhile(curr != null && comparator.compare(newNode.getItem(), curr.getItem()) > 0) {\n\t\t\tprev = curr;\n\t\t\tcurr = curr.getNext();\n\t\t}\n\t\tif(prev == null) {\n\t\t\tthis.head = newNode;\n\t\t} else {\n\t\t\tprev.setNext(newNode);\n\t\t}\n\t\tnewNode.setNext(curr);\n\t\tthis.size++;\n\t}", "title": "" }, { "docid": "3bf72d25b9e3888ee5ced09829d3ef38", "score": "0.5042689", "text": "public ListNode insertionSortList(ListNode head) {\n if (head == null || head.next == null) return head;\n ListNode dummyHead = new ListNode(0), p, next, resultHead = new ListNode(0);\n dummyHead.next = head;\n p = dummyHead.next;\n while (p != null) {\n next = p.next;\n ListNode q = resultHead;\n while (q.next != null && q.next.val <= p.val) q = q.next;\n p.next = q.next;\n q.next = p;\n p = next;\n }\n return resultHead.next;\n }", "title": "" }, { "docid": "1765909cfeed049cf22ca5d40d2e4a5c", "score": "0.503864", "text": "private void insertInNode(Node node, T element) {\n if (node.element.compareTo(element) > 0) {\n if (node.leftChild != null) {\n insertInNode(node.leftChild, element);\n } else {\n node.leftChild = new Node<>(element);\n }\n } else {\n if (node.rightChild != null) {\n insertInNode(node.rightChild, element);\n } else {\n node.rightChild = new Node<>(element);\n }\n }\n }", "title": "" }, { "docid": "23757a2e880f651b5915e86afac0ec39", "score": "0.50355154", "text": "public DNode<T> insertBefore(DNode<T> p, T element) { \n DNode<T> q;\n if(p==head) {\n q = new DNode<T>(null, head, element);\n head.setPrev(q);\n head = q;\n }\n else {\n q = new DNode<T>(p.getPrev(), p, element);\n p.getPrev().setNext(q);\n p.setPrev(q);\n }\n nofElements++;\n return q;\n }", "title": "" }, { "docid": "249786817c5b00b82583939be7446659", "score": "0.50323635", "text": "void insert(int val){\r\n\t\tListNode n1 = new ListNode(null,head,val);\r\n\t\tif(head != null)\r\n\t\thead.prev = n1;\r\n\t\thead = n1;\r\n\t}", "title": "" }, { "docid": "5cfc5b32056f5de7a2e239414ab70717", "score": "0.5031728", "text": "public void insert(MergeSortedArrays.MinNumberDetails value) {\n // Write your code here.\n heap.add(value);\n siftUp(heap.size() - 1, heap);\n }", "title": "" }, { "docid": "8f25622b38b1a08a8df9e5e3ba4a12e4", "score": "0.50260025", "text": "public InsertionSort(Integer[] nums) {\n super(nums); // pass nums to our super class (Sorter) because nums\n // gets stored as a protected datafield there not here\n }", "title": "" }, { "docid": "74aeb84206764c7ae34298269d02f0d7", "score": "0.502534", "text": "public static void insertionSort(PositionalList<Integer> list) {\r\n\t\tPosition<Integer> marker = list.first(); // last position known to be\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// sorted\r\n\t\twhile (marker != list.last()) {\r\n\t\t\tPosition<Integer> pivot = list.after(marker);\r\n\t\t\tint value = pivot.getElement(); // number to be placed\r\n\t\t\tif (value > marker.getElement()) // pivot is already sorted\r\n\t\t\t\tmarker = pivot;\r\n\t\t\telse { // must relocate pivot\r\n\t\t\t\tPosition<Integer> walk = marker; // find leftmost item greater\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// than value\r\n\t\t\t\twhile (walk != list.first()\r\n\t\t\t\t\t\t&& list.before(walk).getElement() > value)\r\n\t\t\t\t\twalk = list.before(walk);\r\n\t\t\t\tlist.remove(pivot); // remove pivot entry and\r\n\t\t\t\tlist.addBefore(walk, value); // reinsert value in front of walk\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "f332550c176ac92623d36bd407734f62", "score": "0.5022296", "text": "public void insert(treeNode node) {\n\t\tif (maxNode != null) {\n\t\t\t\n\t\t\t// concatenate the root list containing x with root list H\n\t\t\tconcatenateInRootList(node);\n\n\t\t\t// comparing the value of count of the node with the max node\n\t\t\tif (node.count > maxNode.count) {\n\t\t\t\tmaxNode = node;\n\t\t\t}\n\n\t\t} else {\n\t\t\tmaxNode = node;\n\n\t\t}\n\t}", "title": "" }, { "docid": "9a9316353471756c7f3f6c16dc94de11", "score": "0.5022028", "text": "public static void insertSort(int[] array) {\n for (int i = 1, size = array.length; i < size; ++i) {\n int insertValue = array[i];\n int j = i - 1;\n while (j >= 0 && insertValue < array[j]) {\n array[j + 1] = array[j];\n j--;\n }\n array[j + 1] = insertValue;\n }\n }", "title": "" }, { "docid": "00641dfb639c64d1b1fb59192e829f1f", "score": "0.5018288", "text": "private static void insertSorted(final List<Double> list, final double value) {\n\t\tfinal ListIterator<Double> listIter = list.listIterator();\n\t\twhile (listIter.hasNext()) {\n\t\t\tfinal double next = listIter.next().floatValue();\n\t\t\tif (next == value) {\n\t\t\t\t// an exactly equal value is already present in the list\n\t\t\t\treturn;\n\t\t\t} else if (next > value) {\n\t\t\t\tlistIter.previous();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tlistIter.add(Double.valueOf(value));\n\t}", "title": "" }, { "docid": "e5749662cd5ca54a5f2bbf8835c9b5da", "score": "0.5010992", "text": "@Override\r\n\tpublic void insert(T element) {\n\t\tif (index == heap.length - 1) {\r\n\t\t\theap = Arrays.copyOf(heap, heap.length + INCREASING_FACTOR);\r\n\t\t}\r\n\t\tif (element != null) {\r\n\t\t\tthis.heap[++index] = element;\r\n\r\n\t\t\tint i = index;\r\n\r\n\t\t\twhile (i != 0 && (this.comparator.compare(element, heap[this.parent(i)])) > 0) {\r\n\t\t\t\tUtil.swap(heap, i, this.parent(i));\r\n\t\t\t\ti = this.parent(i);\r\n\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "b96cce9421f17a0b8042411d59fe1d03", "score": "0.50076747", "text": "public void insertionSort(int[] arr) {\n\t\tint n = arr.length;\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tint key = arr[i];\n\t\t\tint j = i - 1;\n\n\t\t\t/* \n\t\t\there, we are checking each element in a sorted subarray, if key is greater than any element\n\t\t\tLet's suppose:\n\n\t\t\t3 7 8 | 6 9 2\n\t\t\tIn above example (3, 7, 8) is a sorted subarray and (6, 9, 2) is unsorted.\n\t\t\tlet's suppose: key = 6\n\t\t\tNow, I'll check where 6 has to be inserted.\n\t\t\tSo, I'll start going back and checking for the position where 6 has to be inserted.\n\t\t\tI start making j shift backward, if element at j is greater than key.\n\t\t\tAlso, the element which is present at jth position, I'll shift it at (j+1)th position.\n\t\t\tWe're doing this because I want to make a free space for storing key.\n\t\t\tAnd in this way, if I get key greater than jth element. I stop and come out of the while loop.\n\t\t\tAnd finally, I store key at (j+1)th position.\n\n\t\t\t*/\n\t\t\twhile (j >= 0 && arr[j] > key) { \n arr[j + 1] = arr[j]; \n j = j - 1; \n } \n\n arr[j + 1] = key;\n\t\t}\n\t}", "title": "" }, { "docid": "3b33e87486adc5264a884d6d8cf7edc4", "score": "0.5007159", "text": "public static void insertionSort2(final int[] a) {\n\n sortMethode = 1;\n\n int elt;\n int j;\n for (int i = 1; i < a.length; i++) {\n elt = a[i]; // next elt for insert\n a[0] = elt; // dummy-element\n j = i; // a[1]..a[j-1] already sorted\n while (a[j - 1] > elt) {\n a[j] = a[j - 1]; // shift right\n j--; // go further left\n }\n a[j] = elt; // insert elt\n } // a[1]...a[j] sorted\n }", "title": "" }, { "docid": "28ed913248ab129d11c3f88286d3a467", "score": "0.5006758", "text": "public void insertedNodeFromDOM(Node node) {\n/* 976 */ if (node == null)\n/* 977 */ return; if (this.fInsertNode == node)\n/* 978 */ return; if (this.fInsertedFromRange)\n/* */ return; \n/* 980 */ Node parent = node.getParentNode();\n/* */ \n/* 982 */ if (parent == this.fStartContainer) {\n/* 983 */ int index = indexOf(node, this.fStartContainer);\n/* 984 */ if (index < this.fStartOffset) {\n/* 985 */ this.fStartOffset++;\n/* */ }\n/* */ } \n/* */ \n/* 989 */ if (parent == this.fEndContainer) {\n/* 990 */ int index = indexOf(node, this.fEndContainer);\n/* 991 */ if (index < this.fEndOffset) {\n/* 992 */ this.fEndOffset++;\n/* */ }\n/* */ } \n/* */ }", "title": "" }, { "docid": "3efa7c22f45f1b8e3101d476711ff94b", "score": "0.4994047", "text": "void insert(int item);", "title": "" }, { "docid": "688affc6a1dbcee12caf7c245fb459c8", "score": "0.4992484", "text": "void insertOrder(Order order);", "title": "" }, { "docid": "91c6d0fc5ab05683c91c46a609643bb2", "score": "0.49849895", "text": "private static <T extends Comparable<T>> void insertionSort(T[] a, int low, int high) {\n\t\tfor (int p = low + 1; p <= high; p++) {\n\t\t\tT tmp = a[p];\n\t\t\tint j;\n\t\t\tfor (j = p; j > low && tmp.compareTo(a[j - 1]) < 0; j--) {\n\t\t\t\ta[j] = a[j - 1];\n\t\t\t}\n\t\t\ta[j] = tmp;\n\t\t}\n\t}", "title": "" }, { "docid": "7bb97c5424c3788abdcc126276fe005a", "score": "0.49810708", "text": "private void insertBefore(Node insertBeforeThisNode, Node nodeToInsert) {\n // always check if the node to insert is the only node in the list\n if (nodeToInsert == head && nodeToInsert == tail) return;\n // if node is part of the list, remove it from list\n remove(nodeToInsert);\n // insert into the position specified\n nodeToInsert.prev = insertBeforeThisNode.prev;\n nodeToInsert.next =insertBeforeThisNode;\n if (insertBeforeThisNode.prev == null) { // if we are inserting into head node\n head = nodeToInsert;\n } else { // else we are inserting into the middle\n insertBeforeThisNode.prev.next = nodeToInsert;\n }\n insertBeforeThisNode.prev = nodeToInsert;\n\n }", "title": "" }, { "docid": "2d4823a7162502527e3c91964e75aace", "score": "0.49784452", "text": "public void insert (T newItem);", "title": "" }, { "docid": "bd0369b41a81024d6442a93241dec639", "score": "0.49770698", "text": "public void addSort(T item, Comparator<T> c) {\n\t\tNode<T> current = this.head;\n\t\tif (current == null) {\n\t\t\tthis.insertElement(item, 0);\n\t\t} else {\n\t\t\tint i = 0;\n\t\t\twhile (current != null) {\n\t\t\t\tif (c.compare(item, current.getItem()) < 0) {\n\t\t\t\t\tthis.insertElement(item, i);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\ti++;\n\t\t\t\tcurrent = current.getNext();\n\t\t\t}\n\t\t\tthis.insertElement(item, this.size);\n\t\t}\n\t\treturn;\n\t}", "title": "" }, { "docid": "72f0f625f9768865369b438a3d5039ff", "score": "0.49747777", "text": "public void insertBefore(int valueToInsert, int targetValue){\r\n Node newValueNode;\r\n Node currentNode = head;\r\n if (currentNode != null){ //This seems more like a try, or circumstantial validation entry point\r\n while(currentNode.nextNode.valueStored != targetValue){\r\n currentNode = currentNode.nextNode;\r\n }\r\n newValueNode = new Node(valueToInsert, currentNode.nextNode);\r\n currentNode.nextNode = newValueNode;\r\n }\r\n }", "title": "" }, { "docid": "e6cc465c2c70a49fee814edfeb57c933", "score": "0.49744326", "text": "public Object insert(Comparable data)\n {\n Node z = new Node(data);\n avlInsert(z);\n\n return z;\n }", "title": "" }, { "docid": "4e0d7e86a6b841306fcc6c4d94ce040a", "score": "0.4972775", "text": "public void insertWithComparable(Priority key, Process value)\r\n\t{\r\n\t\troot = insertWithComparable(root, key, value);\r\n\t}", "title": "" }, { "docid": "f7fcd281deb955dfaa6af7783293cb47", "score": "0.497001", "text": "void insert(int index, int item);", "title": "" }, { "docid": "ae9b6867e78327dfd7e1d3e3dd2f2893", "score": "0.49678293", "text": "void insertElement(HeapElement element);", "title": "" }, { "docid": "2ca1e80879b8ebe28393ed0afa360fb2", "score": "0.496768", "text": "public void insert( ActionObject actionObject) {\r\n\t\tlong searchKey = actionObject.getKey();\r\n\t\t// update holds pointers to next elements on each level;\r\n\t\t// levels run from 0 up to myMaxLevel:\r\n\t\tSkipListElement[] update = new SkipListElement[ myMaxLevel + 1];\r\n \r\n\t\t// init \"cursor\" element to header:\r\n\t\tSkipListElement element = myHeader;\r\n \r\n\t\t// find place to insert the new node:\r\n\t\tfor (int i=myLevel; i>=0; i--) {\r\n\t\t\twhile( element.forward[i].getKey() < searchKey) {\r\n\t\t\t\telement = element.forward[i];\r\n\t\t\t}\r\n\t\t\tupdate[i] = element;\r\n\t\t}\r\n\t\telement = element.forward[0];\r\n \r\n\t\t// element with same key is overwritten:\r\n\t\tif( element.getKey() == searchKey) {\r\n\t\t\telement.addActionObject( actionObject);\r\n\t\t} else { // or an additional element is inserted:\r\n\t\t\tint newLevel = generateRandomLevel();\r\n\t\t\t// element has biggest level seen in this list: update list\r\n\t\t\tif (newLevel > myLevel) {\r\n\t\t\t\tfor (int i=myLevel+1; i<=newLevel; i++) {\r\n\t\t\t\t\tupdate[i] = myHeader;\r\n\t\t\t\t}\r\n\t\t\t\tmyLevel = newLevel;\r\n\t\t\t}\r\n\t\t\t// allocate new element:\r\n\t\t\telement = new SkipListElement( newLevel, actionObject);\r\n\t\t\tfor( int i = 0; i <= newLevel; i++) {\r\n\t\t\t\telement.forward[i] = update[i].forward[i];\r\n\t\t\t\tupdate[i].forward[i] = element;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "e0126b181a6cba70c9fd5a4b929bdcce", "score": "0.4963936", "text": "@Override\n\tSplit<LNode> insert(Integer key, Integer value) {\n\t\tInteger idx = search(key);\n\t\tif (idx.equals(this.numChildren)) {// insert to the last empty idx\n\t\t\tkeys[idx] = key;\n\t\t\tvalues[idx] = value;\n\t\t\tthis.numChildren++;\n\t\t} else if (keys[idx].equals(key)) {// update the existed value\n\t\t\tvalues[idx] = value;\n\t\t} else {\n\t\t\tInteger num = this.numChildren - idx;\n\t\t\tSystem.arraycopy(keys, idx, keys, idx + 1, num);\n\t\t\tSystem.arraycopy(values, idx, values, idx + 1, num);\n\t\t\tkeys[idx] = key;\n\t\t\tvalues[idx] = value;\n\t\t\tthis.numChildren++;\n\t\t}\n\n\t\tif (this.numChildren.equals(order)) {\n\t\t\treturn this.split();\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "a965b9cf3887e3e8c4d4c303e6d47993", "score": "0.4957955", "text": "public void insert(double x){\n int index = 0;\n\t\tdouble temp;\n\t\tdouble parent;\n\t\tchangeSize();\n\t\tqueue[numElements] = x;\n\t\tindex = numElements;\n\t\tnumElements++;\n\t\t//if its parent is greater than it, then it switches the values\n\t\twhile(true){\n\t\t\tparent = queue[getParentIndex(index)];\n\t\t\tif(parent>x){\n\t\t\t\ttemp = parent;\n\t\t\t\tqueue[getParentIndex(index)] = x;\n\t\t\t\tqueue[index] = temp;\n\t\t\t\tindex = getParentIndex(index);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "498b91cdfce41da1a1e07a64043bcce2", "score": "0.49542278", "text": "public static void insertionSort(int[] arr) {\n int j;\n int curr;\n for (int i = 1; i < arr.length; i++) {\n curr = arr[i];\n for (j = i - 1; j >= 0 && curr < arr[j]; j--) {\n arr[j + 1] = arr[j];\n }\n arr[j + 1] = curr;\n }\n }", "title": "" }, { "docid": "438d7b6d2f46c0c0a1e375f3069a0d67", "score": "0.49493247", "text": "static void insertionSort(int arr[]) {\n int n = arr.length;\n for (int i = 1; i < n; i++) {\n int key = arr[i];\n int j = i - 1;\n\n /* Move elements of arr[0..i-1], that are\n greater than key, to one position ahead\n of their current position */\n while (j >= 0 && arr[j] > key) {\n arr[j + 1] = arr[j];\n j = j - 1;\n }\n arr[j + 1] = key;\n }\n }", "title": "" }, { "docid": "cbe0c0f49d96f58f0e173c9effedf90b", "score": "0.4946211", "text": "@Override\n\tpublic void insert(EntryPair entry) {\n\t\tint hole = ++size;\n\t\tfor(; hole>1 && entry.getPriority()-array[hole/2].getPriority()<0; hole/=2)\n\t\t{\n\t\t\tarray[hole]=array[hole/2];\n\t\t}\n\t\t\tarray[hole]=entry;\n\t}", "title": "" }, { "docid": "c6ac365e6228426bb4a33e7d15bbc7e3", "score": "0.49450147", "text": "public void insert(T el)\r\n\t{\n BSTNode<T> p = root, prev = null;\r\n\r\n while (p != null) { // find a place for inserting new node;\r\n\r\n prev = p;\r\n\r\n if (el.compareTo(p.element) < 0)\r\n\r\n p = p.left;\r\n\r\n else p = p.right;\r\n\r\n }\r\n\r\n if (root == null) // tree is empty;\r\n\r\n root = new BSTNode<T>(el);\r\n\r\n else if (el.compareTo(prev.element) < 0)\r\n\r\n prev.left = new BSTNode<T>(el);\r\n\r\n else prev.right = new BSTNode<T>(el);\r\n\t}", "title": "" }, { "docid": "dc0d505311bddcdf47bfff1de4fcda6d", "score": "0.49442777", "text": "@Override\n public void insert(Card card)\n {\n Node node = new Node(card);\n\n numElems++;\n if (isEmpty())\n {\n front = rear = node;\n }\n else\n {\n Node temp = front;\n while (temp != null && node.getCard().getValue() < temp.getCard().getValue())\n {\n temp = temp.getNext();\n }\n if (temp == null)\n { // Insert node at the end of the linked-list\n rear.setNext(node);\n node.setPrevious(rear);\n rear = node;\n }\n else if (temp.getPrevious() == null)\n { // Insert node at the front of the linked-list\n front.setPrevious(node);\n node.setNext(front);\n front = node;\n }\n else\n { // Insert node in the middle of the linked-list\n temp.getPrevious().setNext(node);\n node.setPrevious(temp.getPrevious());\n node.setNext(temp);\n temp.setPrevious(node);\n }\n }\n }", "title": "" }, { "docid": "b97866faf21520dad2defd9a685b9648", "score": "0.49383095", "text": "public static void insertionSort(double[] arr) {\n int j;\n double curr;\n for (int i = 1; i < arr.length; i++) {\n curr = arr[i];\n for (j = i - 1; j >= 0 && curr < arr[j]; j--) {\n arr[j + 1] = arr[j];\n }\n arr[j + 1] = curr;\n }\n }", "title": "" } ]
883d9e20c2be45cacdf1f281aee6d8c7
Converte a lista em um String.
[ { "docid": "896e2609df5275c365e0f6fb9ac833ef", "score": "0.0", "text": "public String toString() {\n\t\tStringBuffer s = new StringBuffer(\"[\");\n\t\t// inserindo os elementos no buffer\n\t\tfor (Node n = head; n != null; n = n.getNext())\n\t\t\tif (n.getElement() == null)\n\t\t\t\ts.append(\"null, \");\n\t\t\telse\n\t\t\t\ts.append(n.getElement().toString() + \", \");\n\n\t\tif (size > 0)\n\t\t\ts.delete(s.length() - 2, s.length());\n\n\t\ts.append(\"]\");\n\n\t\treturn new String(s);\n\t}", "title": "" } ]
[ { "docid": "c04fd68b0b2b9766fe4e4a926feaa62b", "score": "0.7116937", "text": "public ArrayList<String> convertToString() {\n\t\tArrayList<String> resultList = new ArrayList<String>();\n\n\t\tfor (int index = 0; index < size(); index++) {\n\t\t\tresultList.add(taskList.get(index).toString());\n\t\t}\n\t\treturn resultList;\n\t}", "title": "" }, { "docid": "57b3de2cff556e2a8911f529e794d57d", "score": "0.6954757", "text": "private String convertList(List lst) {\n StringBuilder s = new StringBuilder();\n s.append(\"[\");\n\n String delim = \"\";\n for (Object item: lst) {\n String sitem = convertValue(item);\n s.append(delim).append(sitem);\n delim = \", \";\n }\n\n s.append(\"]\");\n\n return s.toString();\n }", "title": "" }, { "docid": "7fb73f57e18277ce715ef1a4cd7a20f8", "score": "0.6927551", "text": "private static String getStringRepresentation(ArrayList<Character> list){\n\n StringBuilder builder = new StringBuilder(list.size()); // create a new StringBuilder object of the size of the arrayList\n list.forEach(builder::append); // append each character in the arrayList to the builder object\n return builder.toString(); // return the StringBuilder object as a String\n }", "title": "" }, { "docid": "e9f3a1015205a2eb0b35dbf703404f98", "score": "0.68851745", "text": "private String ArrayListToString(ArrayList<String> in) {\n StringBuilder out = new StringBuilder();\n\n for (String current : in) {\n out.append(current);\n }\n\n return out.toString();\n }", "title": "" }, { "docid": "4864bc6abf1d755eb12b128a29a3d4d9", "score": "0.68220156", "text": "public String convertStringListToString (String value[], String listDelimiter);", "title": "" }, { "docid": "2281886c42405edaeb7a17c3038eeeb0", "score": "0.67844296", "text": "private String listToString(List<String> stringList) {\n if (stringList.size() == 0) {\n return getResources().getString(R.string.empty_list_default_text);\n }\n String text = stringList.get(0);\n for (int i=1; i<stringList.size(); i++) {\n text += \"\\n\" + stringList.get(i);\n }\n\n return text;\n }", "title": "" }, { "docid": "1a6c2e7a8af16384177d794864765761", "score": "0.6676223", "text": "public String convertListToSingleString(List<String> elements) {\n StringBuilder builder = new StringBuilder();\n\n if (elements == null) {\n throw new IllegalArgumentException(\"The List cannot be null\");\n }\n for (String element : elements) {\n if (element == null) {\n continue;\n }\n builder.append(element);\n }\n return builder.toString();\n }", "title": "" }, { "docid": "def017c56873da0acff38a893e912291", "score": "0.65794754", "text": "@TypeConverter\n public static String fromStringArray(String[] list) {\n Gson gson = new Gson();\n return gson.toJson(list);\n }", "title": "" }, { "docid": "8be87afeb8ecee3881c435f8d964e18d", "score": "0.6544028", "text": "private String listToString(List<String> list) {\n StringBuilder sb = new StringBuilder();\n for (String s : list) {\n sb.append(s);\n sb.append(\" \");\n }\n return sb.toString().strip();\n }", "title": "" }, { "docid": "087f6a01524dc622949ff09ebc9a6195", "score": "0.6502289", "text": "public String getListToString() {\n\t\tString str = \"\";\n\t\tfor (Problem pb : problems) {\n\t\t\tstr += pb.getQuestionID() + \"|\";\n\t\t}\n\t\tstr = str.substring(0, str.length() - 1);\n\t\treturn str;\n\t}", "title": "" }, { "docid": "6f345d5a6a158da205626108ffbce06c", "score": "0.6460499", "text": "private String listString(List<E> list) {\n\t\tif (list == null) {\n\t\t\treturn \"\";\n\t\t}\n\t\tStringBuilder ersber = new StringBuilder();\n\t\tfor (E derter : list) {\n\t\t\tersber.append(derter).append(\" \");\n\t\t}\n\t\treturn ersber.toString().trim();\n\t}", "title": "" }, { "docid": "fbb69fddab1445ba2f338e780f3c84f2", "score": "0.6412901", "text": "public List<List<String>> convertRawToStringList(List<List<Object>> data);", "title": "" }, { "docid": "92ec557096c337969efc0f752a1453c7", "score": "0.6409703", "text": "private static String toListValue(List<String> stringList) {\n return stringList.stream()\n .map(s -> String.format(\"\\\"%s\\\"\", s))\n .collect(Collectors.joining(\",\", \"[\", \"]\"));\n }", "title": "" }, { "docid": "2346e035312dc7b5d30b17ee4395c72e", "score": "0.63890755", "text": "private String convertArrayListToString(ArrayList<String> pathList)\n {\n String separator = \"_,_\";\n StringBuilder strBuilder = new StringBuilder(\"\");\n for(int i=0; i<pathList.size(); i++)\n {\n strBuilder.append(pathList.get(i));\n if(i < pathList.size() - 1)\n {\n strBuilder.append(separator);\n }\n }\n\n return strBuilder.toString();\n\n }", "title": "" }, { "docid": "bf9c0e18902a1f1b65784edaf6fe72ad", "score": "0.6355884", "text": "static String toString (List<Element> list) {\n StringBuilder str = new StringBuilder(list.size());\n for (Element element : list) {\n str.append (element.ch);\n if (element.inverted) {\n str.append ('\\'');\n }\n }\n return str.toString();\n }", "title": "" }, { "docid": "c9e18e8be32c2778dd83aff656da97c9", "score": "0.6352447", "text": "public String toString() {\n\t\tString result = \"\";\n\t\tif(count > 0) {\n\t\t\tresult = String.valueOf(list[0]);\n\t\t}\n\t\tfor(int index = 1; index < count; index++) {\n\t\t\tresult = result + \" \" + list[index];\n\t\t}\n\t\treturn result;\n\t}", "title": "" }, { "docid": "631c9524c84cdb4763ec6d66a23d6254", "score": "0.63465995", "text": "static public String fromList(List<String> l)\n {\n StringBuffer sb = new StringBuffer();\n for(Iterator<String> p = l.iterator(); p.hasNext();)\n {\n if(sb.length() > 0)\n {\n sb.append(\";\");\n }\n sb.append(escape(p.next()));\n }\n return sb.toString();\n }", "title": "" }, { "docid": "95e59793005ace40ddd6a8cf774dd386", "score": "0.6340942", "text": "public static String arrayListToString(ArrayList<String> list)\n\t{\n\t\tString string = \"\";\n\t\t\n\t\t// concatenate all elements of the array together with a space in between (creating a sentence)\n\t\tfor (int i = 0; i < list.size(); i++)\n\t\t{\n\t\t\tif (i == 0)\n\t\t\t\tstring = list.get(i);\n\t\t\telse\n\t\t\t\tstring = string + \" \" + list.get(i);\n\t\t}\n\t\t\n\t\treturn string;\n\t}", "title": "" }, { "docid": "046c3b376553c785a915abdadac1113a", "score": "0.63338923", "text": "public static <T> String convert(Collection<T> collection) {\r\n\t\tif (null == collection) {\r\n\t\t\treturn \"null\";\r\n\t\t} else if (collection.isEmpty()) {\r\n\t\t\treturn \"[]\";\r\n\t\t}\r\n\t\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\tString delimiter = \"[\";\r\n\t\r\n\t\tfor (T element : collection) {\r\n\t\t\tsb.append(delimiter + element.toString());\r\n\t\t\tdelimiter = \",\";\r\n\t\t}\r\n\t\t\r\n\t\tsb.append(\"]\");\r\n\t\r\n\t\treturn sb.toString();\r\n\t}", "title": "" }, { "docid": "5b374619da25b5b71f06c6ccf6238564", "score": "0.6322431", "text": "public static String listToString(List<String> list) {\n StringBuilder returnString = new StringBuilder();\n\n for (String item : list)\n returnString.append(\", \").append(item);\n\n return returnString.substring(2);\n }", "title": "" }, { "docid": "94eb839af51073df8b5b9a23dd258d8b", "score": "0.6300289", "text": "public String DestinationListToString() {\n\t\tString out = \"\";\n\n\t\tif (destination.size() != 0) {\n\t\t\tout += destination.get(0).getdName().toString();\n\n\t\t\tfor (int i = 1; i < destination.size(); i++) {\n\t\t\t\tout += \"\\n\" + destination.get(i).getdName().toString();\n\t\t\t}\n\t\t} else {\n\t\t\tout = \"N/A\";\n\t\t}\n\n\t\treturn out;\n\t}", "title": "" }, { "docid": "4a94b944ec7d87301cb68a8fca37ef5e", "score": "0.6294557", "text": "private String convertListToCommaDelimitedString(List<String> list) {\n\n\t\tString result = \"\";\n\t\tif (list != null) {\n\t\t\tresult = StringUtils.arrayToCommaDelimitedString(list.toArray());\n\t\t}\n\t\treturn result;\n\n\t}", "title": "" }, { "docid": "e3fb56c1d089d02efe7d43a770204024", "score": "0.6290711", "text": "public static String convertToString(List pValue) {\n if (pValue == null || pValue.size() == 0)\n return \"\";\n else {\n StringBuffer returnBuffer = new StringBuffer();\n Iterator it = pValue.iterator();\n while (it.hasNext()) {\n returnBuffer.append((String) it.next());\n if (it.hasNext()) {\n returnBuffer.append(\":\");\n }\n }\n\n return returnBuffer.toString();\n }\n }", "title": "" }, { "docid": "f2c18eea1044acd4adb6e0a052b27f0f", "score": "0.6282609", "text": "@Override\n public String toString() {\n String arrayString = \"\";\n for(int i = 0; i < list.length; i++) {\n arrayString = arrayString + list[i] + \" \";\n }\n return arrayString;\n }", "title": "" }, { "docid": "9fc84c174637f84b67ddaaa2ab51cfcb", "score": "0.6263302", "text": "public String toString(){\n\t\tString result = \"[\";\n\t\tfor(int i = 0; i < size() ; i++){\n\t\t\tresult += list[i].toString();\n\t\t\tif(i < size() -1){\n\t\t\t\tresult += \",\";\n\t\t\t}\n\t\t}\n\t\tresult += \"]\";\n\t\treturn result;\n\t}", "title": "" }, { "docid": "b037b0a01d33a4b9c7b9a6a5367e35ba", "score": "0.6234728", "text": "private String convertirArrayToString(ArrayList array, Vector parametros){\n UtilidadesLog.info(\"DAOINTDAT.convertirArrayToString(ArrayList array): Entrada\");\n\t \tString retorno = \"\";\n if((array!=null)&&(array.size()!=0)){\n\t\t\t \tStringBuffer sentencia = new StringBuffer(\"\");\n\t\t\t for(int i=0;i<array.size();i++){\n UtilidadesLog.debug(\"\\n - array[ ]=\" + array.get(i));\n if(array.get(i)!=null){\n \t sentencia.append(\" ?, \");\n parametros.add(array.get(i));\n }\n }\n //Quitamos la coma y el espacio del final\n retorno= sentencia.substring(0,sentencia.length()-2);\n\t\t\t\t UtilidadesLog.debug(retorno);\n }else{\n UtilidadesLog.info(\"DAOINTDAT.convertirArrayToString(ArrayList array): Salida\");\n\t\t }\n\t\t\t UtilidadesLog.info(\"DAOINTDAT.convertirArrayToString(ArrayList array): Salida\");\n\t\treturn retorno;\n\t}", "title": "" }, { "docid": "39c0a5de2b6eebd7b5dc3c9a172e4444", "score": "0.62137216", "text": "private String createListString(String[] items) {\n\t\tStringBuffer path = new StringBuffer(\"\");//$NON-NLS-1$\n\n\t\tfor (int i = 0; i < items.length; i++) {\n\t\t\tpath.append(items[i]);\n\t\t\tpath.append(seperator);\n\t\t}\n\t\treturn path.toString();\n\t}", "title": "" }, { "docid": "436b1726f5388fe07713a83a5c4b35aa", "score": "0.6213103", "text": "public ArrayList<String> convertToStringArrayList(){\n ArrayList<String> stringArrayList = new ArrayList<>();\n\n for(int i = 0; i < this.ingredientItemArrayList.size(); i++){\n stringArrayList.add(this.ingredientItemArrayList.get(i).toJSONString());\n }\n return stringArrayList;\n }", "title": "" }, { "docid": "a1d75d30e0445c4767e54fd305c0b24f", "score": "0.6210827", "text": "public ArrayList<String> toArrayString() {\n\t\tArrayList<String> lista = new ArrayList<String>();\n\t\tNode<T> act = this.last.next;\n\t\twhile (act!=this.last) {\n\t\t\tlista.add(act.data.toString());\n\t\t\tact=act.next;\n\t\t}\n\t\tlista.add(last.data.toString());\n\t\treturn lista;\n\t}", "title": "" }, { "docid": "d0a6c8f147e4582a9c45fb0c04c57f63", "score": "0.6208867", "text": "public static List<String> convertToArrayListString(final ArrayList<Object> list) {\n final List<String> categoriesStringList = list.stream()\n \t\t // Passando o LAMBDA J8 \"object -> Objects.toString(object, null)\" para a chamada de map\n \t\t .map(object -> Objects.toString(object, null))\n \t\t .collect(Collectors.toList());\n\t\t\n return categoriesStringList;\n\t}", "title": "" }, { "docid": "953be0a180ce8dd44b26c32b3941f48a", "score": "0.61999553", "text": "public static List<String> convertir(List<tipo> listaTipo, Function<tipo, String> funcionTipo) {\r\n List<String> listaString = new ArrayList<String>();\r\n for (tipo emp : listaTipo) {\r\n listaString.add(funcionTipo.apply(emp));\r\n }\r\n return listaString;\r\n }", "title": "" }, { "docid": "652046bc4a0a92e4c2346c578b09d0fa", "score": "0.61940265", "text": "public String toString() {\n\t\tString listString = \"\";\n\t\tfor(int increment = 0; increment < count; increment++) {\n\t\t\tlistString += Integer.toString(list[increment]) + \" \";\n\t\t}\n\t\tlistString = listString.substring(0, listString.length() - 1); //remove last space from the string\n\t\treturn listString;\n\t}", "title": "" }, { "docid": "1a3aa4ee44ba8efc648f02b1d7cf6509", "score": "0.61851937", "text": "public List<String> convertWebElementListIntoStringList(List<WebElement> list) {\n List<String> strings = new ArrayList<String>();\n for (WebElement e : list) {\n strings.add(e.getText().trim());\n }\n return strings;\n }", "title": "" }, { "docid": "7ede14b316f800f51eed2d6c4cf0fb92", "score": "0.61840826", "text": "protected static String array2String(ArrayList<String> arrayStr, String delimiter) {\n\t\tStringBuilder arToStr=new StringBuilder();\n\n\t\t\tfor (int i=0; i<arrayStr.size(); i++) {\n\t\t\t\tarToStr.append(arrayStr.get(i).toString());\n\t\t\t\tif(i<(arrayStr.size()-1)) {\n\t\t\t\t\tarToStr.append(delimiter);\n\t\t\t\t}\n\t\t}\n\t\treturn arToStr.toString();\t\t\n\t}", "title": "" }, { "docid": "1c2f613f6309cc13f4f086ff175906e5", "score": "0.6174177", "text": "public String[] listStringToArrayString(List<String> stringList)\n\t{\n\t\tString[] strarray = new String[stringList.size()];\n\t\tstringList.toArray(strarray);\n\t return strarray;\t \n\t}", "title": "" }, { "docid": "bd9cd37cc826594de41d968b8d467036", "score": "0.61490065", "text": "public static List<String> toStringList(List<Location> list) {\r\n\t\tList<String> stringList = new ArrayList<String>();\r\n\t\tif (list != null) {\r\n\t\t\tfor (Location loc : list) {\r\n\t\t\t\tif (loc != null) {\r\n\t\t\t\t\tstringList.add(locationToString(loc));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn stringList;\r\n\t}", "title": "" }, { "docid": "42f797313f3d042d8d1163aa13b1a625", "score": "0.6143694", "text": "public static List<String> convertForExport(List<? extends Exportable> originalList) {\n LOGGER.setUseParentHandlers(true);\n LOGGER.setLevel(Level.INFO);\n LOGGER.info(CONVERSION_START);\n List<String> returnList = new ArrayList<>();\n\n for (int index = 0; index < originalList.size(); index++) {\n Exportable currentElement = originalList.get(index);\n LOGGER.fine(INDIVIDUAL_CONVERSION + currentElement.exportString());\n returnList.add(currentElement.exportString());\n }\n\n LOGGER.info(CONVERSION_END);\n return returnList;\n }", "title": "" }, { "docid": "0354bef4c6998ecac31f995a5afa2cb8", "score": "0.61353254", "text": "@Override\n\t\t\tprotected String createList(String[] str) {\n\t\t\t\treturn String.join(\",\",str);\n\t\t\t}", "title": "" }, { "docid": "0032389d755f9e95f7666d46794c4e22", "score": "0.61297244", "text": "public String toString() {\r\n\t\tString contents = \"\"; \r\n\t\tfor(int index = 0; index < count ; index++) {\r\n\t\t\tcontents += list[index] + \" \"; \r\n\t\t}\r\n\t\treturn contents; \r\n\t}", "title": "" }, { "docid": "751b4a1aefc1c42a5356e82092d4eea7", "score": "0.61207575", "text": "public String agregarLista(){\r\n \r\n lista += texto+\"\\n\";\r\n \r\n return lista;\r\n }", "title": "" }, { "docid": "d10614e7434dda6b73f9c5f7b8f4152c", "score": "0.6115112", "text": "public String toString() {\n\t\tString result = \"\";\n\t\tint cur = getListHead();\n\t\twhile (cur!=0){\n\t\t\tresult += data[cur];\n\t\t\tcur = data[cur+1];\n\t\t\tif(cur!=0)\n\t\t\t\tresult += \",\";\n\t\t}\n\t\treturn result;\n\t}", "title": "" }, { "docid": "19d7bf88e6da15edf7a29ac6ee0cdd19", "score": "0.6104903", "text": "private String joinWithComa(ObservableList<String> list){\n StringJoiner allItems = new StringJoiner(\",\");\n for (String item: list){\n allItems.add(item);\n }\n return allItems.toString();\n }", "title": "" }, { "docid": "7556ecc11ca52ca274c4bf9a28956a44", "score": "0.6103869", "text": "public static String stringToShowFromStringList(List<String> list) {\n String result = \"\";\n\n if (list != null && list.size() > 0) {\n for (String s : list) {\n result += s + \", \";\n }\n\n result = result.substring(0, result.length() - 2);\n }\n return result;\n }", "title": "" }, { "docid": "e2a967c6c70f67040c64ffac1c24d239", "score": "0.60840493", "text": "private static String getStringContentFromList(UnOrderedList<String> list) {\n\tString updatedContent = \"\";\n\tfor (int i = 0; i < list.size(); i++) {\n\tupdatedContent = updatedContent.concat(list.get(i)).concat(\" \");\n\t\t}\n\treturn updatedContent;\n\t}", "title": "" }, { "docid": "67ec24977e2859e150b982f8eca2dda3", "score": "0.607466", "text": "static String asQuotedString(ArrayList<String> list) {\n\t\tString rv = \"\"; // add beginning quote\n\t\tfor(int i = 0; i < list.size(); i++) {\n\t\t\trv += list.get(i);\n\t\t\tif(i < list.size()-1) // don't add comma on last item\n\t\t\t\trv += \",\";\n\t\t}\n\t\tif(!rv.equals(\"\"))\n\t\t\trv += \"\\\"\"; // add ending quote\n\t\telse {\n\t\t\trv = \"\\\"\\\"\";\n\t\t}\n\t\treturn rv;\n\t}", "title": "" }, { "docid": "f6101b0e69d38e22c3b6ab1d017cff5a", "score": "0.6059257", "text": "protected String taskListDB2String() {\n\t\t\n\t\tPPGoPlacesApplication app=getApplicationPath();\n\t\t\n\t\t//--retrieve all checklist tasks from db----------------------------------------\n\t\tArrayList<TaskList> readTasks= new ArrayList<TaskList>();\n\t\treadTasks=app.loadAllTasks();\t\n\t\t\n\t\tStringBuilder strBuilder;\n\t\tstrBuilder= new StringBuilder();\n\t\tint tt=readTasks.size();\n\t\t\n\t\t//--pass all tasks to String builder and delimited with comma----------\n\t\tfor (int i=0; i<tt; i++) {\n\t\t\tstrBuilder.append(readTasks.get(i).getCat()).append(\",\")\n\t\t\t\t\t\t.append(readTasks.get(i).getName().toString());\n\t\t\t\tif (i < (tt-1)) {\n\t\t\t\t\tstrBuilder.append(\",\");\n\t\t\t\t}\n\t\t}\n\t\tString returnString= strBuilder.toString();\n\t\treturn returnString;\n\t}", "title": "" }, { "docid": "324f17cec8c132b21e4976d297794b3c", "score": "0.6054989", "text": "public static String loopStr(String[] list){\r\n String ret=\"\";\r\n for(int i=0;i<list.length-1;i++){\r\n ret+=\"\\\"\"+list[i]+\"\\\",\";\r\n }\r\n ret+=\"\\\"\"+list[list.length-1]+\"\\\"\";\r\n return ret;\r\n }", "title": "" }, { "docid": "b36d38011ae5bdc7576e9004a547a812", "score": "0.60543084", "text": "public static String toList(String s){\n if(isList(s))\n return s;\n else return \"[\" + s + \"]\";\n }", "title": "" }, { "docid": "54fd6f8e8194d825a289e81ac137e926", "score": "0.60534614", "text": "public synchronized String eleicoesToString() {\r\n StringBuilder aux = new StringBuilder(100);\r\n //verifica se existem eleicoes\r\n if(eleicoes.size()==0){\r\n return \"Não existem eleicoes\";\r\n }\r\n //adiciona a string com formatacao\r\n for (int i = 0; i < eleicoes.size();i++){\r\n aux.append(String.format(\"%d - %s \\n\", i + 1, eleicoes.get(i).getTitulo()));\r\n }\r\n return aux.toString();\r\n }", "title": "" }, { "docid": "79e767f7cc39509e1315d9d790f8c361", "score": "0.60338223", "text": "public String TagListToString() {\n\t\tString out = \"\";\n\t\tif (tags.size() != 0) {\n\t\t\tout += tags.get(0).toString();\n\n\t\t\tfor (int i = 1; i < tags.size(); i++) {\n\t\t\t\tout += \"\\n\" + tags.get(i).toString();\n\t\t\t}\n\t\t} else {\n\t\t\tout = \"N/A\";\n\t\t}\n\t\treturn out;\n\t}", "title": "" }, { "docid": "048c6a0bb1c5260dedbffa8b4614da7d", "score": "0.60328805", "text": "public String entradaTreeListToString() {\n\n\t\tString _ret = \"\";\n\t\t\n//\t\tIterator<Entrada> entradaIterator = treeList.iterator();\n//\t\t\n//\t\twhile(entradaIterator.hasNext()) {\n//\t\t\tEntrada e = (Entrada)entradaIterator.next();\n//\t\t\t_ret += e.toString();\n//\t\t\t\n//\t\t}\n\t\t\n\t\tfor(Entrada e : treeList) {\n\t\t\t_ret+= e.toString();\n\t\t}\n\t\t\n\t\treturn _ret;\n\t}", "title": "" }, { "docid": "94ceb5f5bd571948d8303620fd90e6f7", "score": "0.6031244", "text": "public static String toString(List<Character> list) {\n StringBuilder builder = new StringBuilder(list.size());\n for (Character ch : list) {\n builder.append(ch);\n }\n return builder.toString();\n }", "title": "" }, { "docid": "c47fe40316f68fd5420b4ca86f9c7659", "score": "0.60289985", "text": "public static List<String> convertToStringList() {\n List<String> listValues = new ArrayList<>();\n for (int i = 0; i < MAX_SIZE; i++) {\n listValues.add(highScoreList.get(i).toString());\n }\n return listValues;\n }", "title": "" }, { "docid": "50b4ab604fce24768d7629b76892974d", "score": "0.6016269", "text": "public static String listToString(List<String> stringList, String strflag) {\n if (stringList == null) {\n return \"\";\n }\n StringBuilder result = new StringBuilder();\n boolean flag = false;\n for (String string : stringList) {\n if (flag) {\n result.append(strflag);\n } else {\n flag = true;\n }\n result.append(string);\n }\n return result.toString();\n }", "title": "" }, { "docid": "c4865a705ec4253f60f78b0e06ac5150", "score": "0.6012044", "text": "public String toString()\r\n {\r\n String out = \"\";\r\n for (int i = 0; i < size; i++)\r\n {\r\n out += list[i] + \" \";\r\n }\r\n return out + \"\\n\";\r\n }", "title": "" }, { "docid": "aa324a3f6696f6c4e048cc9adbc1bb0c", "score": "0.6011866", "text": "public static ArrayList<String> listItinerariesToString(ArrayList<Itinerary> list) {\n ArrayList<String> itinerariesStringList = new ArrayList<>();\n for (trip.Itinerary curItinerary:list) {\n itinerariesStringList.add(curItinerary.toString());\n }\n return itinerariesStringList;\n\n }", "title": "" }, { "docid": "f572cfb3319a43fea3b255e82d6167f0", "score": "0.6006521", "text": "List<String> write();", "title": "" }, { "docid": "3afeec49b71863838b2827fb8277544d", "score": "0.6000736", "text": "public ArrayList<String> toCode(){\n\t\t\n\t\tArrayList<String> output = new ArrayList<String>();\n\t\t\n\t\t\n\t\treturn output;\n\t}", "title": "" }, { "docid": "c783feb3646749fe8e5360c7c467769d", "score": "0.5993667", "text": "public String getAllStringToWriteFile(ArrayList<String[]> arrayList){\n String currData = \"\";\n\n for (int i = 0; i < arrayList.size(); i++) {\n for (int j = 0; j < arrayList.get(i).length; j++) {\n currData += arrayList.get(i)[j];\n if (j != arrayList.get(i).length - 1) {\n currData += \";\";\n }\n }\n currData += \"\\n\";\n }\n\n return currData;\n }", "title": "" }, { "docid": "7da9b2bbcec408f935f76539ad6a3943", "score": "0.5981025", "text": "private ArrayList<String> termToStringList(ArrayList<Term> list) { \n\t\tArrayList<String> temp = new ArrayList<String>();\n\t\tfor(int i = 0; i < list.size(); i++) {\n\t\t\ttemp.add(i, list.get(i).getTerm());\n\t\t\t//System.out.println(termList.get(i).getTerm());\n\t\t}\n\t\treturn temp; \n\t}", "title": "" }, { "docid": "04837e36c6e1155825531a75b104844c", "score": "0.596656", "text": "private static void recorrer (List<String>lista) {\n\t\t\tfor (String s : lista) {\n\t\t\t\tSystem.out.println(s);\n}\n}", "title": "" }, { "docid": "4cf35a2ebafa004f6759e44be9e0d925", "score": "0.59376335", "text": "public static String toIngredientString(List<Ingredient> ingredientList) {\n if (ingredientList == null) {\n return null;\n }\n Gson gson = new Gson();\n Type listType = new TypeToken<List<Ingredient>>() {}.getType();\n return gson.toJson(ingredientList, listType);\n }", "title": "" }, { "docid": "e35c545c1a615ff37822aa0426fc1bba", "score": "0.59269786", "text": "public static String toJSONString(List list) {\n if (list == null) {\n return \"null\";\n }\n\n boolean first = true;\n StringBuffer sb = new StringBuffer();\n Iterator iter = list.iterator();\n\n sb.append('[');\n while (iter.hasNext()) {\n if (first) {\n first = false;\n } else {\n sb.append(',');\n }\n\n Object value = iter.next();\n if (value == null) {\n sb.append(\"null\");\n continue;\n }\n sb.append(JSONValue.toJSONString(value));\n }\n sb.append(']');\n return sb.toString();\n }", "title": "" }, { "docid": "8fb3c1de460f46a5699a83114ba55658", "score": "0.5919005", "text": "public static String listToString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"List of people registered\\n\");\n sb.append(\"------------------------\\n\");\n\n for (int i = 0; i < personList.size(); i++) {\n sb.append(String.format(\"%d: %s\\n\",\n i + 1, personList.get(i).toString())\n );\n }\n\n return sb.toString();\n }", "title": "" }, { "docid": "6292f0e7e990a2b8d140b6f2943c0677", "score": "0.5912313", "text": "public static String listar() {\n String saida = \"\";\n \n for (Livro x : listaLivro) {\n \n saida += x.imprimir() + \"\\n\";\n }\n\n return saida;\n }", "title": "" }, { "docid": "985af4d97df4fed5113b661b50463adb", "score": "0.58952934", "text": "public String toString()\n\t{\n\t\treturn list.toString();\n\t}", "title": "" }, { "docid": "766b274df3463c8cddfa50a493914fb5", "score": "0.58823484", "text": "public String toString() {\n\t\tint x = 0;\n\t\tString printList = \"\";\n\t\tif (list[0] == null) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\tprintList = printList + \"[\";\n\t\t\twhile (list[x] != null) {\n\t\t\t\tx++;\n\t\t\t}\n\t\t\tfor (int i = 0; i < x - 1; i++) {\n\t\t\t\tprintList = printList + list[i];\n\t\t\t\tprintList = printList + \", \";\n\n\t\t\t}\n\n\t\t\tprintList = printList + list[x - 1] + \"]\";\n\t\t}\n\t\treturn printList;\n\n\t}", "title": "" }, { "docid": "fd36ec60729573e0ff84307ea1f72dfb", "score": "0.5878602", "text": "String listToString(LinkedList<String> parts) { \n StringBuilder sb = new StringBuilder();\n while(parts.size() > 1) {\n String lastStr = parts.pop(); \n sb.append(lastStr);\n sb.append(\" \");\n }\n sb.append(parts.pop()); \n return sb.toString();\n }", "title": "" }, { "docid": "9f19a7fee45ed32826cf38d8c21ffcb8", "score": "0.583061", "text": "public String toString() {\n String s = \"\";\n int i = 0;\n for (i = 0; i < todoitems.size() - 1; i++) {\n s += todoitems.get(i) + \"\\n\";\n }\n s += todoitems.get(i);\n return s;\n }", "title": "" }, { "docid": "8c583ac5fb376be9ef63faa23e573004", "score": "0.58304495", "text": "public static String toString(List<int[]> s) {\n\t\tStringBuilder b = new StringBuilder();\n\t\tfor (int i = 0; i < s.size(); i++)\n\t\t\tb.append(toString(s.get(i))).append(\" \");\n\t\treturn (b.toString());\n\t}", "title": "" }, { "docid": "b1afddea999bcf80c3fdf46472566c3a", "score": "0.582374", "text": "private List<String> CarModel_toString(List<CarsModel> carsModel_list) {\n\n for (CarsModel item:carsModel_list) {\n strings.add(new String(item.getCompanyName() + \" \" + item.getModelName()));\n }\n return strings;\n }", "title": "" }, { "docid": "451b6ed0416fd89d381ca6f604021dd4", "score": "0.5821133", "text": "@GET\n\t@Path(\"/listaString\")\n\t@Consumes(MediaType.APPLICATION_JSON)\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic List<Pessoa> listaString() {\n\t\tList<Pessoa> le = new ArrayList<Pessoa>();\n\t\tle.add(new Pessoa(\"Frank\", \"ra\"));\n\t\tle.add(new Pessoa(\"José\", \"rb\"));\n\n\t\treturn le;\n\t}", "title": "" }, { "docid": "b6cbb79b018b50fc63e4c018c316b3e5", "score": "0.58189493", "text": "private String arrayToString(final String[] items) {\n final StringBuilder builder = new StringBuilder(\"[\");\n if (items.length > 0) {\n builder.append(items[0]);\n for (int i = 1; i < items.length; i++) {\n builder.append(',');\n builder.append(items[i]);\n }\n }\n builder.append(']');\n return builder.toString();\n }", "title": "" }, { "docid": "728275635a93e4a70892bc04647286e0", "score": "0.58099", "text": "public String toString()\n\t{\n\t\treturn tapeFormatter().format(list);\n\t}", "title": "" }, { "docid": "25fa8f9af2bc228b8055b9b089c3500f", "score": "0.5793998", "text": "public String toString(){\n\tString ans = \"\";\n\tfor (int i=0;i<size();i++){\n\t ans+=data[i]+\",\";\n\t}\n\treturn ans;\n }", "title": "" }, { "docid": "01dcec0f2164e2cc917d8dc66c0c9542", "score": "0.5779971", "text": "public static String listToString(List<String> tokens)\n {\n StringBuilder delimitedString = new StringBuilder();\n \n if (tokens != null)\n {\n Iterator it = tokens.iterator();\n boolean first = true;\n while (it.hasNext())\n {\n if (first)\n first = false;\n else\n delimitedString.append(\";\");\n \n delimitedString.append(it.next().toString());\n }\n }\n \n return delimitedString.toString();\n }", "title": "" }, { "docid": "c8988a6a28ae8ba2214db0c7a2c56937", "score": "0.57785684", "text": "private String joinStringList(List<String> list, String delimiter) {\n\nStringBuffer sb = new StringBuffer();\n\n for(String s: list) {\n sb.append(s);\n sb.append(delimiter);\n }\n return sb.toString();\n}", "title": "" }, { "docid": "8392a407ecfaedc77ff7691ce5ff7076", "score": "0.57769036", "text": "@Override\n public String toString(){\n String elementList = \"\";\n for (int i = 0; i < intList.length; i++){\n elementList += intList[i] + \" \";\n }\n return elementList;\n }", "title": "" }, { "docid": "32432f045b387706de0d8bc4a335e02a", "score": "0.57766867", "text": "public String toString(){\n String toString = \"[\";\n for(int i = 0; i < collection.length ; i++){\n if(i == 0){\n toString = toString + collection[i];\n\n }\n else{ \n toString = toString + \",\" + collection[i];\t\n }\n }\n toString = toString + \"]\";\n return toString;\n }", "title": "" }, { "docid": "8b44ef00c26f8cbf5f9fd36ee7b861bb", "score": "0.57755035", "text": "public String toString()\n {\n String s = \"\";\n for(Object item : items)\n {\n if(item != null)\n {\n s += (item.toString() + \" \");\n }\n }\n return s;\n }", "title": "" }, { "docid": "afbcaf9364b3fbccc67ebc91afcc3be8", "score": "0.5751724", "text": "public String listarEmprestimos() {\r\n\t\tString str = \"\";\r\n\t\tList<Emprestimo> aux = genEmp.listarEmprestimos();\r\n\r\n\t\tfor (Emprestimo emp : aux) {\r\n\t\t\tstr += emp.toString() + \"\\n\";\r\n\r\n\t\t}\r\n\r\n\t\treturn str;\r\n\r\n\t}", "title": "" }, { "docid": "14d75716f5518eff540736c9b2e33426", "score": "0.57386243", "text": "private List<String> getStringListValue() {\n\t\tArrayList<String> result = new ArrayList<String>();\r\n\r\n\t\tString[] values = value.split(\",\");\r\n\t\tfor (String s : values) {\r\n\t\t\tresult.add(String.valueOf(s));\r\n\t\t}\r\n\r\n\t\treturn result;\r\n\r\n\t}", "title": "" }, { "docid": "b5a95237f0a7339377932faa1e8d24ed", "score": "0.57311356", "text": "private static void recorrerArray (ArrayList<String>lista) {\n\t\t\tfor (String s : lista) {\n\t\t\t\tSystem.out.println(s);\n\t}\n\t\t}", "title": "" }, { "docid": "7cefbed55e8b3b5fe5d97a78b1c72cc8", "score": "0.57278776", "text": "@Override\n\tpublic String listarElementos() {\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\tfor (int i = 0; i < contenedor.size(); i++) {\n\t\t\tsb.append(contenedor.get(i).toString());\n\t\t}\n\t\tif(sb.isEmpty())\n\t\t{\n\t\t\tsb.append(\"La lista se encuentra vacia\");\n\t\t}\n\t\treturn sb.toString();\n\t}", "title": "" }, { "docid": "ed735a0211c4ecea61b522fd50d9ac91", "score": "0.57154816", "text": "public String toString() {\n String output = \"We offer the following units:\\n\";\n for (int i = 0; i < numConverts; i++) {\n output += list[i].toString() + \"\\n\";\n }\n return output;\n }", "title": "" }, { "docid": "3d7fa3fd0941c38245fb1a27ca3b0c95", "score": "0.57135475", "text": "public ArrayList<Palabra> getPalabrasArrayString(){\n return PalabrasArray;\n}", "title": "" }, { "docid": "b77c0ac4ae66a368164a2c49b327933f", "score": "0.56899816", "text": "public static List stringOfUsers()\n {\n List<String> stringofUsers = new ArrayList<String>();\n //for each user, add a short string of their simple information to the list \"stringofUsers\"\n for(User user : Manager.getUsers())\n {\n //format the added string as (<firstName> <lastName> \"UUID:\" <UUID>)\n stringofUsers.add(user.getFirstName() + \" \" + user.getLastName() + \"\\tUUID:\" + user.getId());\n }\n\n //return the list\n return stringofUsers;\n }", "title": "" }, { "docid": "b0fd9077113730375c99180efb30cf61", "score": "0.56805855", "text": "private String convert(Collection<NonMutableTickerInfo> tickerInfos) throws JSONException {\n\t\tJSONArray jarrayOfTickers = new JSONArray();\n\t\tfor(NonMutableTickerInfo info : tickerInfos) {\t\t\t\n\t\t\tJSONObject ojo = new JSONObject();\n\t\t\tojo.put(\"t\", createTickerInfoJson(info));\n\t\t\tjarrayOfTickers.put(ojo);\n\t\t}\n\t\treturn jarrayOfTickers.toString();\n\t}", "title": "" }, { "docid": "418e5962d52e2e5fdb843f1ed6af377c", "score": "0.5676617", "text": "public static String[] convertToArray(List<String> list) {\n\t\tString[] strarray = list.toArray(new String[list.size()]);\n\t\treturn strarray;\n\t}", "title": "" }, { "docid": "c2c7f039841f50b1cec1100c735d2501", "score": "0.567003", "text": "public static void main(String[] args) {\n\n List<Character> characterList = Arrays.asList(\n 'a', 'B', 'C', 'D', 'z', 'F', 'n', 'O', 'C'\n );\n\n String string = characterList.stream()\n .map(Object::toString)\n .collect(Collectors.joining());\n System.out.println(string);\n }", "title": "" }, { "docid": "7cfa5110f3342d38ac165eadba129fd4", "score": "0.5666157", "text": "private static String getStringValueOfNodeList(final NodeList list)\n {\n if (list.getLength()==0) return \"\";\n else return getStringValueOfNode(list.item(0));\n }", "title": "" }, { "docid": "9e20835bd03e50fa9efca01c0532a156", "score": "0.5657391", "text": "public Collection<String> getStrings() {\n\t\tfinal List<String> result = new ArrayList<>(size());\n\t\tfor (final Object value : array) {\n\t\t\tif (value instanceof String) {\n\t\t\t\tresult.add((String) value);\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "title": "" }, { "docid": "858ecf114c560cef6c1a3c7b7e64036a", "score": "0.5647276", "text": "public String toString() {\r\n\t\tString lista=\"\";\r\n\t\tfor (Producto i : listaProd) {\r\n\t\t\tlista+=i.toString()+\"\\n\";\r\n\t\t}\r\n\t\treturn lista;\r\n\t}", "title": "" }, { "docid": "c924da32e9c61d1d721c5a7dcb78186a", "score": "0.563584", "text": "public synchronized String eleicoesConcluidasToString(){\r\n StringBuilder aux = new StringBuilder(100);\r\n //verifica se existem eleicoes concluidas\r\n if(eleicoesConcluidas.size()==0){\r\n return \"Não existem eleicoes concluidas\";\r\n }\r\n for (int i = 0; i < eleicoesConcluidas.size();i++){\r\n aux.append(String.format(\"%d - %s \\n\", i + 1, eleicoesConcluidas.get(i).getTitulo()));\r\n }\r\n return aux.toString();\r\n }", "title": "" }, { "docid": "130c04b82e6dd78eee1d20f76228c579", "score": "0.56348145", "text": "public String buildNewStringFromStringList(List<String> stringList) {\n StringJoiner stringJoiner = new StringJoiner(\"\");\n\n for (String s: stringList) {\n stringJoiner.add(s);\n }\n System.out.println(\"result: \" + stringJoiner.toString());\n return stringJoiner.toString();\n }", "title": "" }, { "docid": "d313f2b35ac2496cf63a632a814be4ce", "score": "0.5628449", "text": "@Override\n\tpublic String toString()\n\t{\n\t\tStringBuilder string = \n\t\t\t\tnew StringBuilder(\"List of size \" \n\t\t\t\t\t\t+ numItems +\" has the following items: \");\n\n\t\tfor (int i = 0; i < list.length; i++)\n\t\t{\n\t\t\tstring.append(list[i] + \" \");\n\t\t}\n\t\treturn string.toString();\n\t}", "title": "" }, { "docid": "bdfce85cc0dd7dffa7cd0199db8df380", "score": "0.5628015", "text": "public ArrayList<String> databaseToString(){\n\n ArrayList<String> list = new ArrayList<>();\n\n SQLiteDatabase db = getWritableDatabase();\n String query = \"SELECT * FROM \" + TABLE_INGREDIENTS;\n\n Cursor recordSet = db.rawQuery(query, null);\n\n recordSet.moveToFirst();\n\n while (!recordSet.isAfterLast()) {\n if (recordSet.getString(recordSet.getColumnIndex(COLUMN_NAME_LIST)) != null) {\n list.add(recordSet.getString(recordSet.getColumnIndex(COLUMN_NAME_LIST)));\n }\n recordSet.moveToNext();\n }\n db.close();\n return list;\n }", "title": "" }, { "docid": "f71a753a3829cb59067bf1feefeec399", "score": "0.5618774", "text": "public List<String> getAsStringList() {\n\t\treturn value;\n\t}", "title": "" }, { "docid": "3751747da7adb697505bac8d82bfd736", "score": "0.56182986", "text": "public String serializeList(List<?> list, CollectionFormat format) {\n if (list == null) {\n return null;\n }\n List<String> serialized = new ArrayList<>();\n for (Object element : list) {\n String raw = serializeRaw(element);\n serialized.add(raw != null ? raw : \"\");\n }\n return Joiner.on(format.getDelimiter()).join(serialized);\n }", "title": "" }, { "docid": "74cafa58d7358b870d5539f53a977951", "score": "0.5610105", "text": "private String calculateStringListAsString(Object value) {\n\t\tif (value == null) {\n\t\t\treturn CONSTANT_NO_VALUE;\n\t\t}\n\t\tList<String> resultList = new ArrayList<String>();\n\t\tif (value instanceof List<?>) {\n\t\t\tList<?> items = (List<?>) value;\n\t\t\tfor (Object object : items) {\n\t\t\t\tresultList.add(calculateString(object));\n\t\t\t}\n\t\t}\n\t\treturn StringUtil.listToString(resultList, SEPERATOR_NEWLINE);\n\t}", "title": "" }, { "docid": "033bd497ebd0ceac155bce320954db6e", "score": "0.5607038", "text": "public String toString() {\n this.rLock.lock();\n try {\n return this.list.toString();\n } finally {\n this.rLock.unlock();\n }\n }", "title": "" } ]
72baa3d03acc10e81e3ca7e54aa8bf35
This method was generated by MyBatis Generator. This method sets the value of the database column t_user.status
[ { "docid": "391073740509db577f2e7e328b1e60e3", "score": "0.61014545", "text": "public void setStatus(Boolean status) {\n this.status = status;\n }", "title": "" } ]
[ { "docid": "b1f8e25f6aa52c8d9fca6d34047888fd", "score": "0.7560953", "text": "public void setStatus(UserStatus status) {\n this.status = status;\n }", "title": "" }, { "docid": "e93723f4c09278492a9b7ff55f40a509", "score": "0.7236258", "text": "@Override\n public boolean changeUserStatus(UserBean user, String status) {\n try {\n String sql = \"update tab_user set status = ? where code = ?\";\n jdbcTemplate.update(sql, status, user.getCode());\n return true;\n } catch (Exception e) {\n e.printStackTrace();\n return false;\n }\n }", "title": "" }, { "docid": "98951a5e1466b0affc30e0a51a814e3b", "score": "0.7234779", "text": "private void setUserStatus(im.turms.client.model.proto.constant.UserStatus value) {\n userStatus_ = value.getNumber();\n\n }", "title": "" }, { "docid": "bdb5b0d8bb2f1f4fe622a29bbd18a93d", "score": "0.71568024", "text": "public void setUserstatus(String userstatus) {\n this.userstatus = userstatus;\n }", "title": "" }, { "docid": "667db1253ff6c0b7dbfe499d3ff411e0", "score": "0.7110297", "text": "public void setUserStatus(Integer userStatus) {\n this.userStatus = userStatus;\n }", "title": "" }, { "docid": "500c231c53b5445e70e1ed9bfb0c3e23", "score": "0.7082141", "text": "void changeStatusUser(Integer status, Integer userId);", "title": "" }, { "docid": "02b1cd6a00a1576fc66e90e50833c9da", "score": "0.6921697", "text": "public void setStatus(UserAccountStatus status) {\n this._status = status;\n }", "title": "" }, { "docid": "adba05ff4dcf9f09002a926726f47084", "score": "0.6824426", "text": "private void change_status(String status){\n query.changeUserStatus(status);\n editor.putString(\"status\", status);\n editor.apply();\n }", "title": "" }, { "docid": "88b3cfe50275110a0bcf80aad93f9504", "score": "0.68125397", "text": "private void setUserStatusValue(int value) {\n userStatus_ = value;\n }", "title": "" }, { "docid": "a18093c34f4dfcc608d5b2ba5f4794f6", "score": "0.6653173", "text": "public void updateStatus() {\n String query = \"update volunteer set vstatus = 2 where vusername=(select vusername from volunteer where vtotalhours >= 20 and vstatus <> 3)\";\n sendDBCommand(query);\n }", "title": "" }, { "docid": "5bfb1076998f94af39f0074a89deb258", "score": "0.6629911", "text": "public void setStatusByUserId(long statusByUserId);", "title": "" }, { "docid": "0aa7f275dc28c3b6c9a31a1b65d10414", "score": "0.6590263", "text": "public void setUserStatus(org.apache.axis.types.UnsignedByte userStatus) {\r\n this.userStatus = userStatus;\r\n }", "title": "" }, { "docid": "6d7458a25da22b3c0012f08801e4d956", "score": "0.6576356", "text": "public void setStatusByUserName(String statusByUserName);", "title": "" }, { "docid": "3c0198c7992b3c78322592a7a01c9fcf", "score": "0.6561369", "text": "public void updateUserStatus(String value, int id) throws RemoteException;", "title": "" }, { "docid": "4244e8ab737a2cb6fa9a74dd64c7b9f9", "score": "0.64601046", "text": "@Override\n public void updateStatusReminderToTrue(Integer idUser) {\n String vSQL =\"UPDATE users \" +\n \" SET reminder_active = TRUE \" +\n \" WHERE users.id=\" +idUser;\n getvParams().addValue(\"idUser\", idUser, Types.INTEGER);\n getvNamedParameterJdbcTemplate().update(vSQL, getvParams());\n }", "title": "" }, { "docid": "efa5a9254c706dc1297dd2491c3e6509", "score": "0.6430074", "text": "@java.lang.Override\n public int getUserStatusValue() {\n return userStatus_;\n }", "title": "" }, { "docid": "9c09b2ae70a8c405b9677b5aa5ce3309", "score": "0.6407043", "text": "private void status(String status){\n reference=FirebaseDatabase.getInstance().getReference(\"Users\").child(mCurrentUser.getUid());\n HashMap<String,Object> hashMap=new HashMap<>();\n hashMap.put(\"status\",status);\n reference.updateChildren(hashMap);\n }", "title": "" }, { "docid": "c8351137e844860cb37b2dc4bc10e070", "score": "0.64003044", "text": "@Transactional\r\n\t@Modifying\r\n\t@Query(value=\"update users u set u.email_verification_status = :emailVerificationStatus where u.user_id = :userId\", nativeQuery=true)\r\n\tvoid updateEmailVerificationStatus(@Param(\"emailVerificationStatus\") boolean emailVerificationStatus, @Param(\"userId\") String userId);", "title": "" }, { "docid": "872cffab938a0044b239ffbab1ca642b", "score": "0.63936025", "text": "public void changeLoginStatus(Integer userId, Integer loginStatus);", "title": "" }, { "docid": "c21739ff2bcc27f2e43b2b816a492d67", "score": "0.6363615", "text": "@Override\r\n public void updateUser(User user) {\n try {\r\n Connection con = DB.getConnection();\r\n String sql = \"update userdetails set Status=? where FirstName=?\";\r\n PreparedStatement ps = con.prepareStatement(sql);\r\n ps.setString(1, user.getStatus());\r\n ps.setString(2, user.getFirstName());\r\n int rowaffected = ps.executeUpdate();\r\n System.out.println(rowaffected + \" rows updated \");\r\n con.close();\r\n }catch(Exception e){\r\n System.out.println(\"Error : \" + e);\r\n }\r\n }", "title": "" }, { "docid": "30cf1c73cf4b1300d046649ad4eecba9", "score": "0.6362959", "text": "public UserStatus getStatus() {\n return status;\n }", "title": "" }, { "docid": "d8571e318027f33551aeead7199da1b7", "score": "0.63578004", "text": "@Test\n\tpublic void testSetLoginStatus() {\n\t\tUser newUser = new User(\"Devin\", \"Murphy\", \"dmurphy0091\", \"myPassword\", 'u');\n\t\tdatabase.createUser(newUser);\n\t\t\n\t\t//login status from false to true, returns true if it was successfully changed\n\t\tAssert.assertEquals(\"set login status from false to true\", true, database.setLoginStatus(newUser, true));\n\t\t\n\t\t//login status from true to false, returns true if it was successfully changed\n\t\tAssert.assertEquals(\"set login status from true to false\", true, database.setLoginStatus(newUser, false));\n\t\t\n\t\tdatabase.deleteUser(newUser);\n\t}", "title": "" }, { "docid": "3196796dab280754ff277619697d1291", "score": "0.63428164", "text": "public void setStatus(boolean v) \n {\n \n if (this.status != v)\n {\n this.status = v;\n setModified(true);\n }\n \n \n }", "title": "" }, { "docid": "b8e73e76790e9c420013983994d73038", "score": "0.62813866", "text": "public void setUserStatus(String status ){\n prefs.edit().putString(\"status\", status).commit();\n }", "title": "" }, { "docid": "05dcbae76147a5902971a33c598d6330", "score": "0.6279221", "text": "public Builder setUserStatus(im.turms.client.model.proto.constant.UserStatus value) {\n copyOnWrite();\n instance.setUserStatus(value);\n return this;\n }", "title": "" }, { "docid": "6955c4076e9022df87d304acbf57197c", "score": "0.62629193", "text": "public void setStatusByUserUuid(String statusByUserUuid);", "title": "" }, { "docid": "396efae2225d83cb8562c69f5b13efa6", "score": "0.6258832", "text": "@Override\n public void updateStatusReminderToFalse(Integer idUser) {\n String vSQL =\"UPDATE users \" +\n \" SET reminder_active = FALSE \" +\n \" WHERE users.id=\" +idUser;\n getvParams().addValue(\"idUser\", idUser, Types.INTEGER);\n getvNamedParameterJdbcTemplate().update(vSQL, getvParams());\n }", "title": "" }, { "docid": "2726d22aa16cc9cd600fdac32c04b2cf", "score": "0.62319535", "text": "@Transactional\r\n\t@Modifying\r\n\t@Query(\"update UserEntity user set user.emailVerificationStatus = :emailVerificationStatus where user.userId = :userId\")\r\n\tvoid updateUserEntityEmailVerificationStatus(@Param(\"emailVerificationStatus\") boolean emailVerificationStatus,\r\n\t\t\t@Param(\"userId\") String userId);", "title": "" }, { "docid": "5729d2702fb864c1f93bb86d64fd0ccd", "score": "0.61648214", "text": "public String getUserstatus() {\n return userstatus;\n }", "title": "" }, { "docid": "d4962af830ec947e1e0aab06cc2c45d4", "score": "0.6163792", "text": "public Integer getUserStatus() {\n return userStatus;\n }", "title": "" }, { "docid": "d256c0f6b88d856b23a315e583a40f39", "score": "0.61541927", "text": "public final void setStatus(com.mendix.systemwideinterfaces.core.IContext context, emailapprovals.proxies.ENUM_Status status)\n\t{\n\t\tif (status != null)\n\t\t\tgetMendixObject().setValue(context, MemberNames.Status.toString(), status.toString());\n\t\telse\n\t\t\tgetMendixObject().setValue(context, MemberNames.Status.toString(), null);\n\t}", "title": "" }, { "docid": "8c27fd23514612b902e26acf283acf24", "score": "0.6151596", "text": "public void setStatus(boolean value) {\n this.status = value;\n }", "title": "" }, { "docid": "8c27fd23514612b902e26acf283acf24", "score": "0.6151596", "text": "public void setStatus(boolean value) {\n this.status = value;\n }", "title": "" }, { "docid": "294c2ebd45513684fd653339d395c208", "score": "0.6128054", "text": "public void setStatus(Statuses status){\n this.status = status;\n }", "title": "" }, { "docid": "468489dcd8093651a52ae22fe34425dd", "score": "0.6114781", "text": "public void setStatus( Boolean status )\n {\n this.status = status;\n }", "title": "" }, { "docid": "09ca718e40984fe7fb2152f5341f0363", "score": "0.6109915", "text": "public void setStatus(String status){\n this.status=status;\n }", "title": "" }, { "docid": "0cf8924b1c65c86c9cdef16a5d418e44", "score": "0.610296", "text": "public void setStatus(Integer status) {\r\n this.status = status;\r\n }", "title": "" }, { "docid": "0cf8924b1c65c86c9cdef16a5d418e44", "score": "0.610296", "text": "public void setStatus(Integer status) {\r\n this.status = status;\r\n }", "title": "" }, { "docid": "0cf8924b1c65c86c9cdef16a5d418e44", "score": "0.610296", "text": "public void setStatus(Integer status) {\r\n this.status = status;\r\n }", "title": "" }, { "docid": "0cf8924b1c65c86c9cdef16a5d418e44", "score": "0.610296", "text": "public void setStatus(Integer status) {\r\n this.status = status;\r\n }", "title": "" }, { "docid": "0cf8924b1c65c86c9cdef16a5d418e44", "score": "0.610296", "text": "public void setStatus(Integer status) {\r\n this.status = status;\r\n }", "title": "" }, { "docid": "1b7ef6d5284f594e6a1e38f8443718e8", "score": "0.6083965", "text": "public void setStatus(Byte status) {\n setField(\"status\", status);\n }", "title": "" }, { "docid": "162da03a61a922cd235c705750a8a9fa", "score": "0.6082215", "text": "public void setStatus(int v) \n {\n \n if (this.status != v)\n {\n this.status = v;\n setModified(true);\n }\n \n \n }", "title": "" }, { "docid": "1e1c2fb547079eb6af9c167e5418e43e", "score": "0.60618377", "text": "void setStatus(String status){\n \n this.status = status;\n }", "title": "" }, { "docid": "d8b13b1991ebe9137e07d1cad0e8a0a8", "score": "0.606057", "text": "@Override\n public void setStatusByUserUuid(java.lang.String statusByUserUuid) {\n _person.setStatusByUserUuid(statusByUserUuid);\n }", "title": "" }, { "docid": "e72bd509f407e877b6e8415f9f34db61", "score": "0.60434145", "text": "public void setStatus(Integer status) {\n this.status = status;\n }", "title": "" }, { "docid": "e72bd509f407e877b6e8415f9f34db61", "score": "0.60434145", "text": "public void setStatus(Integer status) {\n this.status = status;\n }", "title": "" }, { "docid": "e72bd509f407e877b6e8415f9f34db61", "score": "0.60434145", "text": "public void setStatus(Integer status) {\n this.status = status;\n }", "title": "" }, { "docid": "e72bd509f407e877b6e8415f9f34db61", "score": "0.60434145", "text": "public void setStatus(Integer status) {\n this.status = status;\n }", "title": "" }, { "docid": "e72bd509f407e877b6e8415f9f34db61", "score": "0.60434145", "text": "public void setStatus(Integer status) {\n this.status = status;\n }", "title": "" }, { "docid": "e72bd509f407e877b6e8415f9f34db61", "score": "0.60434145", "text": "public void setStatus(Integer status) {\n this.status = status;\n }", "title": "" }, { "docid": "e72bd509f407e877b6e8415f9f34db61", "score": "0.60434145", "text": "public void setStatus(Integer status) {\n this.status = status;\n }", "title": "" }, { "docid": "e72bd509f407e877b6e8415f9f34db61", "score": "0.60434145", "text": "public void setStatus(Integer status) {\n this.status = status;\n }", "title": "" }, { "docid": "e72bd509f407e877b6e8415f9f34db61", "score": "0.60434145", "text": "public void setStatus(Integer status) {\n this.status = status;\n }", "title": "" }, { "docid": "e72bd509f407e877b6e8415f9f34db61", "score": "0.60434145", "text": "public void setStatus(Integer status) {\n this.status = status;\n }", "title": "" }, { "docid": "e72bd509f407e877b6e8415f9f34db61", "score": "0.60434145", "text": "public void setStatus(Integer status) {\n this.status = status;\n }", "title": "" }, { "docid": "e72bd509f407e877b6e8415f9f34db61", "score": "0.60434145", "text": "public void setStatus(Integer status) {\n this.status = status;\n }", "title": "" }, { "docid": "e72bd509f407e877b6e8415f9f34db61", "score": "0.60434145", "text": "public void setStatus(Integer status) {\n this.status = status;\n }", "title": "" }, { "docid": "e72bd509f407e877b6e8415f9f34db61", "score": "0.60434145", "text": "public void setStatus(Integer status) {\n this.status = status;\n }", "title": "" }, { "docid": "e72bd509f407e877b6e8415f9f34db61", "score": "0.60434145", "text": "public void setStatus(Integer status) {\n this.status = status;\n }", "title": "" }, { "docid": "e72bd509f407e877b6e8415f9f34db61", "score": "0.60434145", "text": "public void setStatus(Integer status) {\n this.status = status;\n }", "title": "" }, { "docid": "e72bd509f407e877b6e8415f9f34db61", "score": "0.60434145", "text": "public void setStatus(Integer status) {\n this.status = status;\n }", "title": "" }, { "docid": "e72bd509f407e877b6e8415f9f34db61", "score": "0.60434145", "text": "public void setStatus(Integer status) {\n this.status = status;\n }", "title": "" }, { "docid": "e72bd509f407e877b6e8415f9f34db61", "score": "0.60434145", "text": "public void setStatus(Integer status) {\n this.status = status;\n }", "title": "" }, { "docid": "e72bd509f407e877b6e8415f9f34db61", "score": "0.60434145", "text": "public void setStatus(Integer status) {\n this.status = status;\n }", "title": "" }, { "docid": "e72bd509f407e877b6e8415f9f34db61", "score": "0.60434145", "text": "public void setStatus(Integer status) {\n this.status = status;\n }", "title": "" }, { "docid": "e72bd509f407e877b6e8415f9f34db61", "score": "0.60434145", "text": "public void setStatus(Integer status) {\n this.status = status;\n }", "title": "" }, { "docid": "c9af11c28fd045410f3eb740a19f1e39", "score": "0.60430235", "text": "@Override\n public UserAccountStatus getStatus() {\n return _status;\n }", "title": "" }, { "docid": "c5c9af185c51e280b698740afe4ebb3a", "score": "0.60390395", "text": "im.turms.server.common.access.client.dto.constant.UserStatus getUserStatus();", "title": "" }, { "docid": "be1c6f8a260197fba22e21e26a9d1f06", "score": "0.6032319", "text": "@JsonProperty(\"status\")\n public void setStatus(String status) {\n this.status = status;\n }", "title": "" }, { "docid": "a9a78e97bfbd97c3ea35c5c6aa4f266d", "score": "0.6030073", "text": "protected void setStatus(int status) {\n\tsdb.mechanisms.azStatus = status;\n }", "title": "" }, { "docid": "aed313e1c29ff4b127909ba089d59a7e", "score": "0.60276514", "text": "public void setStatus(Integer status) {\r\n\t\tthis.status = status;\r\n\t}", "title": "" }, { "docid": "fa92184248775f5ac0de6120caf9e4ec", "score": "0.6016527", "text": "public void setStatus (boolean status) {\n\t\tthis.status = status;\n\t}", "title": "" }, { "docid": "32bd49402921d1fff882ce8f418436ac", "score": "0.60022074", "text": "public void setLoginStatus(int loginStatus, String username) {\n\t\ttry {\n\t\t\tst.executeUpdate(\"UPDATE users SET loginStatus = \" + loginStatus + \" + WHERE username = '\" + username + \"'\");\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "db10fdba32127729df53b4ada9d05580", "score": "0.60015917", "text": "public void setBannedStatus(int bannedStatus, String username) {\n\t\ttry {\n\t\t\tst.executeUpdate(\"UPDATE users SET banned = \" + bannedStatus + \"WHERE username = '\" + username + \"'\");\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "d3bdbc371c9604204fee55560058181b", "score": "0.6000339", "text": "public void setStatus(Integer status) {\n\t\tthis.status = status;\n\t}", "title": "" }, { "docid": "d3bdbc371c9604204fee55560058181b", "score": "0.6000339", "text": "public void setStatus(Integer status) {\n\t\tthis.status = status;\n\t}", "title": "" }, { "docid": "d3bdbc371c9604204fee55560058181b", "score": "0.6000339", "text": "public void setStatus(Integer status) {\n\t\tthis.status = status;\n\t}", "title": "" }, { "docid": "d3bdbc371c9604204fee55560058181b", "score": "0.6000339", "text": "public void setStatus(Integer status) {\n\t\tthis.status = status;\n\t}", "title": "" }, { "docid": "241d5a393d1e10d346308da644a50dc3", "score": "0.59845364", "text": "public void setStatus(java.lang.String status)\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(STATUS$12, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(STATUS$12);\n }\n target.setStringValue(status);\n }\n }", "title": "" }, { "docid": "10f742efa1391009d6f2e5e39cb30a06", "score": "0.5980742", "text": "public void setStatus(String status){\n this.status = status;\n //Update hashMap value..\n hashMap.put(\"status\", status);\n }", "title": "" }, { "docid": "15f5a266263a4748145bd9674ebdd707", "score": "0.5966879", "text": "public void setStatus(int status) {\n setInt(ATTR_STATUS, status);\n }", "title": "" }, { "docid": "b5c212d35634a8d1ee3e4015060824e0", "score": "0.59646094", "text": "@Override\n public void setStatus(Status status)\n {\n super.setStatus(status);\n\n if (this.getStatus() == Status.ACTIVE)\n {\n this.activated = true;\n }\n }", "title": "" }, { "docid": "37aa9270537178ee89f52b755fa22d02", "score": "0.59573144", "text": "public void setStatus(String status) {\r\n this.status = status;\r\n }", "title": "" }, { "docid": "37aa9270537178ee89f52b755fa22d02", "score": "0.59573144", "text": "public void setStatus(String status) {\r\n this.status = status;\r\n }", "title": "" }, { "docid": "37aa9270537178ee89f52b755fa22d02", "score": "0.59573144", "text": "public void setStatus(String status) {\r\n this.status = status;\r\n }", "title": "" }, { "docid": "37aa9270537178ee89f52b755fa22d02", "score": "0.59573144", "text": "public void setStatus(String status) {\r\n this.status = status;\r\n }", "title": "" }, { "docid": "37aa9270537178ee89f52b755fa22d02", "score": "0.59573144", "text": "public void setStatus(String status) {\r\n this.status = status;\r\n }", "title": "" }, { "docid": "37aa9270537178ee89f52b755fa22d02", "score": "0.59573144", "text": "public void setStatus(String status) {\r\n this.status = status;\r\n }", "title": "" }, { "docid": "2d6b81ebc21082eb0add0a964b7774a9", "score": "0.5950428", "text": "public void setStatus(boolean status) {\n Status = status;\n }", "title": "" }, { "docid": "4c2195ae3a032cf9209399dd746b3b94", "score": "0.5935036", "text": "@Override\n public void setStatusByUserName(java.lang.String statusByUserName) {\n _person.setStatusByUserName(statusByUserName);\n }", "title": "" }, { "docid": "658593483ed5bb26aeabe632eda7c522", "score": "0.59284186", "text": "private boolean changeDoctorStatus(String email, boolean status) {\n\t\tString sql = \"update doctor set status=? where email=?\";\n\t\t\n\t\ttry {\n\t\t\tPreparedStatement ps = connection.prepareStatement(sql);\n\t\t\tps.setBoolean(1, status);\n\t\t\tps.setString(2, email);\n\t\t\t\n\t\t\tint check = ps.executeUpdate();\n\t\t\tif(check > 0) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "42e665658c09f1c9ce04d854ae22630c", "score": "0.59233385", "text": "public void setGameReadyState(int userId, boolean state) {\n try {\n String SQLStatement = \"UPDATE mxcrtr_db.LobbyData SET Ready = ? WHERE UserID = ?\";\n PreparedStatement pt = DBConnector.getConnection().prepareStatement(SQLStatement);\n pt.setInt(1, state ? 1 : 0);\n pt.setInt(2, userId);\n pt.executeUpdate();\n \n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n }", "title": "" }, { "docid": "f447665236163f2a879db863721a62d2", "score": "0.5922542", "text": "@Override\r\n\tpublic boolean updateBMUser(String contrato, String estatus) {\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "e48c9b76ab8c509fbae9b99216716592", "score": "0.59154916", "text": "@Modifying\n\t@Transactional\n\t@Query(value=\"UPDATE smart_user set userstatus='1' where usermail= ?1\",nativeQuery=true)\n\tvoid updateVerifyUserStatus(String usermail);", "title": "" }, { "docid": "7f7791845a832659b1b7c166c3640021", "score": "0.59043", "text": "public boolean updateStatus(int id, int status) {\n String query = \"Update Users set StatusID = ? where UserID = ?\";\n int check = 0;\n\n try {\n ps = connection.prepareStatement(query);\n ps.setObject(2, id);\n ps.setObject(1, status);\n\n check = ps.executeUpdate();\n\n } catch (SQLException ex) {\n ex.printStackTrace();\n\n }\n return check > 0;\n }", "title": "" }, { "docid": "c02622cba5491c8fdd00926eec9acbbb", "score": "0.590392", "text": "public void setStatus(Status status) {\n this.status = status;\n }", "title": "" }, { "docid": "517230da8028ca5b7662a5ec621ef3ec", "score": "0.58956885", "text": "public void setStatus(int status) {\n\t\tsetAttribute(\"status\", status); \n\t}", "title": "" } ]
f6bea4166a52c9eb413956d63cb51b29
optional string requestUtcTimestamp = 6;
[ { "docid": "fa206e46a3054d93a9753fe1cb2b4c10", "score": "0.8414008", "text": "java.lang.String getRequestUtcTimestamp();", "title": "" } ]
[ { "docid": "cdeaf6432fad8fb4f8b77e5016d93b4c", "score": "0.74309784", "text": "com.google.protobuf.ByteString\n getRequestUtcTimestampBytes();", "title": "" }, { "docid": "4fb1857e2cae18edb501fbb7d0717f9a", "score": "0.72882515", "text": "boolean hasRequestUtcTimestamp();", "title": "" }, { "docid": "b36b272a75a5f6f6e98df71f6ccb9b2a", "score": "0.7234662", "text": "public void setRequestTimestamp(java.lang.CharSequence value) {\n this.request_timestamp = value;\n }", "title": "" }, { "docid": "4209083e993811bc3fe2571b230d385c", "score": "0.71360505", "text": "java.lang.String getResponseUtcTimestamp();", "title": "" }, { "docid": "fb995f02ba5e9eab1f4f941c0150728d", "score": "0.69883573", "text": "public java.lang.CharSequence getRequestTimestamp() {\n return request_timestamp;\n }", "title": "" }, { "docid": "5d722afc520ffd2ec8ee0d6a9a5cc635", "score": "0.6919497", "text": "public java.lang.CharSequence getRequestTimestamp() {\n return request_timestamp;\n }", "title": "" }, { "docid": "3843dc0ce5a23b09fdaf0e66ac759204", "score": "0.68971664", "text": "public boolean hasRequestTimestamp() {\n return fieldSetFlags()[5];\n }", "title": "" }, { "docid": "0a5c6efe13dc435830aac38158da867f", "score": "0.6715803", "text": "public com.pzybrick.iote2e.schema.avro.Iote2eRequest.Builder setRequestTimestamp(java.lang.CharSequence value) {\n validate(fields()[5], value);\n this.request_timestamp = value;\n fieldSetFlags()[5] = true;\n return this;\n }", "title": "" }, { "docid": "327be5af239606ca20d3af1726307662", "score": "0.6597735", "text": "public RequestTime() {\n this.secondsSinceEpoch = calendar.getTime().getTime() / 1000;\n }", "title": "" }, { "docid": "115e49937bad23ffba18ef3cddb138fc", "score": "0.6480293", "text": "private timestampResponse() {\n initFields();\n }", "title": "" }, { "docid": "791a318548328b3c270d6cc55c233656", "score": "0.6449139", "text": "long getClientStartupTimestamp();", "title": "" }, { "docid": "6f792ac1e77261293dddf990133bb20d", "score": "0.634651", "text": "boolean hasResponseUtcTimestamp();", "title": "" }, { "docid": "983e566c0de11a1db5fda8839e325da4", "score": "0.6293868", "text": "com.google.protobuf.ByteString\n getResponseUtcTimestampBytes();", "title": "" }, { "docid": "eecac11a58d88e0871979bf3c29d5cef", "score": "0.6257767", "text": "public Date getReqDateTime() {\n return reqDateTime;\n }", "title": "" }, { "docid": "1e2639e7bb2f70e1d3189c5aeb86997f", "score": "0.60184705", "text": "@JsonIgnore\n @JsonSerialize(using = DateSerializer.class)\n public Long getRequestDate() {\n return this.requestDate;\n }", "title": "" }, { "docid": "0239e477d23ee5a4c1af1de995c58cb9", "score": "0.6013281", "text": "void setAcceptanceTimestamp(long acceptedAt);", "title": "" }, { "docid": "fa72623af9288bb36fd5551ea211a03a", "score": "0.600635", "text": "public void setReqDateTime(Date reqDateTime) {\n this.reqDateTime = reqDateTime;\n }", "title": "" }, { "docid": "a3d618160e794624e33fc2ad84390619", "score": "0.5980252", "text": "public com.pzybrick.iote2e.schema.avro.Iote2eRequest.Builder clearRequestTimestamp() {\n request_timestamp = null;\n fieldSetFlags()[5] = false;\n return this;\n }", "title": "" }, { "docid": "23947e6e8a65522be0bec4185852225b", "score": "0.59724444", "text": "@Value.Parameter\n public abstract LocalDateTime getTimestamp();", "title": "" }, { "docid": "86cb2e1454c754f9a5056c95f95e3181", "score": "0.5856031", "text": "public void setRequestTimeToLive(Duration requestTimeToLive) { this.requestTimeToLive = requestTimeToLive; }", "title": "" }, { "docid": "76e64c90e6bd4fcd2eeb9819d8454777", "score": "0.5816485", "text": "public RequestTime(long secondsSinceEpoch) {\n if (secondsSinceEpoch >= 0) {\n this.secondsSinceEpoch = secondsSinceEpoch;\n }\n else {\n throw new IllegalArgumentException(\"RequestTime can't take a negative time\");\n }\n }", "title": "" }, { "docid": "71cf28430295a194c1d8bd4dead5fb35", "score": "0.5813397", "text": "OffsetDateTime invitationSent();", "title": "" }, { "docid": "e11058e0818eb15d642a28af3a7a7c55", "score": "0.58124584", "text": "public Duration getRequestTimeToLive() { return requestTimeToLive; }", "title": "" }, { "docid": "0f5c691160975920d8f4172c416b763f", "score": "0.57861626", "text": "public void setTimeOffset(String value);", "title": "" }, { "docid": "71a3d9cde6c7907325b60f70a4aefacf", "score": "0.57327545", "text": "@JsonProperty(\"requestDate\")\n @JsonDeserialize(using = DateDeserializer.class)\n public void setRequestDate(final Long requestDate) {\n this.requestDate = requestDate;\n }", "title": "" }, { "docid": "8bba7a4e1360917cfb98137defa64f71", "score": "0.5722501", "text": "public LocalDateTime getTimestamp() {\n return timestamp;\n }", "title": "" }, { "docid": "8b3800fa3b1302629fd18a7926a69bdd", "score": "0.56711584", "text": "public void setResponseTime(java.lang.String param){\r\n \t\r\n\t\t\t\t\t\t\t\tthis.localResponseTime=param;\r\n\t\t\t\t\t\t\r\n\r\n \t\t}", "title": "" }, { "docid": "dfc9d7d56613a131a06a5b3d265e30e7", "score": "0.56051123", "text": "public void setStartTime(LocalDateTime startTime) {this.startTime = startTime;}", "title": "" }, { "docid": "81776ab086524674cab5dd91d62d7a73", "score": "0.55752736", "text": "public String getTimestamp();", "title": "" }, { "docid": "0fd4e55de487cafb69b03ac8cfff31de", "score": "0.55732703", "text": "public Date getRequestedDate() {\n return requestedDate;\n }", "title": "" }, { "docid": "e9c60c2d1e0f17e49b56a63ee70ec4bd", "score": "0.5573149", "text": "OffsetDateTime lastModifiedTimeUtc();", "title": "" }, { "docid": "0fd4e55de487cafb69b03ac8cfff31de", "score": "0.5572326", "text": "public Date getRequestedDate() {\n return requestedDate;\n }", "title": "" }, { "docid": "2683dab4be885f568b58831e326d68c1", "score": "0.5561008", "text": "public void setDateTrx (Timestamp DateTrx)\n{\nset_Value (\"DateTrx\", DateTrx);\n}", "title": "" }, { "docid": "c94b2e9e89dba0dd0fb71486ac227182", "score": "0.55525506", "text": "public void setTimestamp(long timestamp) {\n this.timestamp = timestamp;\n }", "title": "" }, { "docid": "e5e50dc3fd065fd7c44d9deef272a613", "score": "0.55450046", "text": "public void setPayDate (Timestamp PayDate)\n{\nif (PayDate == null) throw new IllegalArgumentException (\"PayDate is mandatory\");\nset_Value (\"PayDate\", PayDate);\n}", "title": "" }, { "docid": "a4c3de696f43118bccea9ef633e42fde", "score": "0.5544843", "text": "String getTimestamp();", "title": "" }, { "docid": "e7c4b2de67e53c5380b11dd5f9044ff3", "score": "0.5540235", "text": "public Integer getTimestamp() {\n return timestamp;\n }", "title": "" }, { "docid": "9cf5be9e9aa33d7bd732b13be71b13a9", "score": "0.552917", "text": "public void setTimestamp(Timestamp timestamp) {\r\n this.timestamp = timestamp;\r\n }", "title": "" }, { "docid": "9cf5be9e9aa33d7bd732b13be71b13a9", "score": "0.552917", "text": "public void setTimestamp(Timestamp timestamp) {\r\n this.timestamp = timestamp;\r\n }", "title": "" }, { "docid": "ff6c1e28f53ad106e007f48031e69d3e", "score": "0.5522039", "text": "public void setDateNextRun (Timestamp DateNextRun)\n{\nif (DateNextRun == null) throw new IllegalArgumentException (\"DateNextRun is mandatory\");\nset_Value (\"DateNextRun\", DateNextRun);\n}", "title": "" }, { "docid": "3ea943865e2c7c333b85e5231efb547f", "score": "0.551442", "text": "public java.lang.String getResponseTime(){\r\n \t\t\treturn localResponseTime;\r\n \t\t\t}", "title": "" }, { "docid": "831aaca6b3f05e60871d106c177d0135", "score": "0.5507572", "text": "public Timestamp getDateNextRun() \n{\nreturn (Timestamp)get_Value(\"DateNextRun\");\n}", "title": "" }, { "docid": "155428f64d7fbb215056b2331efebf4f", "score": "0.5498134", "text": "void setTimestamp(Timestamp timestamp);", "title": "" }, { "docid": "e940d73f8434614e456c99f9c3f555bd", "score": "0.54897434", "text": "int getTimestamp();", "title": "" }, { "docid": "b3aed72dd390c275bbc8ddf64c490c78", "score": "0.5474401", "text": "public DateTimeExtractorConfiguration getEventTimestamp() { return this.eventTimestamp; }", "title": "" }, { "docid": "b9ebf2f86da8c4e9f0aecd68f5a8424d", "score": "0.54368734", "text": "ZonedDateTime getResponseDate();", "title": "" }, { "docid": "ecced7cbd085da1e3701aecff1c2404c", "score": "0.5429212", "text": "public Date getTimestamp ();", "title": "" }, { "docid": "78db12ec568b0bd68714b24d4d96c5c0", "score": "0.5421306", "text": "public void setDateLastRun (Timestamp DateLastRun)\n{\nset_ValueNoCheck (\"DateLastRun\", DateLastRun);\n}", "title": "" }, { "docid": "c3fdb5d544822fda3d6b1eb1e54b08d0", "score": "0.54185283", "text": "public Date getReceiveDatetime();", "title": "" }, { "docid": "352c8630f1bd4af4f915c1a442e7ae74", "score": "0.54133505", "text": "public void setReceiveDatetime(Date receiveDatetime);", "title": "" }, { "docid": "b42716b894ff08160276d0bf55d4b3f6", "score": "0.54118806", "text": "public Timestamp getDateLastRun() \n{\nreturn (Timestamp)get_Value(\"DateLastRun\");\n}", "title": "" }, { "docid": "de9f828369016017c4e526e11fbec206", "score": "0.54005086", "text": "@java.lang.Override\n public long getSentTimestamp() {\n return sentTimestamp_;\n }", "title": "" }, { "docid": "5a622416ce66ed5619c9972cea333855", "score": "0.5397234", "text": "public void setTimestamp(long timestamp) {\n this.timestamp = timestamp;\n }", "title": "" }, { "docid": "5a622416ce66ed5619c9972cea333855", "score": "0.5397234", "text": "public void setTimestamp(long timestamp) {\n this.timestamp = timestamp;\n }", "title": "" }, { "docid": "8869a6a4a4980daa038d5e0f4f76ced0", "score": "0.53953415", "text": "public void setPayDate (Timestamp PayDate);", "title": "" }, { "docid": "2f2bca57943c6b07aa6f205b456b019c", "score": "0.5380738", "text": "public long getTimestamp()\n {\n return isOffroute_ind() ? getActual_timestamp() : getPlanned_timestamp();\n }", "title": "" }, { "docid": "2abd56fd91812a53cd95ee98e7cced1d", "score": "0.53806114", "text": "Builder timestamp(Date timestamp);", "title": "" }, { "docid": "31fe1475382818c1802e90746b88e509", "score": "0.5379685", "text": "@JsonProperty(\"timestamp\")\r\n public void setTimestamp(Date timestamp) {\r\n this.timestamp = timestamp;\r\n }", "title": "" }, { "docid": "30fcda8752e07df8a1633e7144e905f0", "score": "0.5370782", "text": "public void setTimestamp(Long timestamp) {\n this.timestamp = timestamp;\n }", "title": "" }, { "docid": "c2ab9f65fc7a6fffb746b4cad5da2c2e", "score": "0.5353767", "text": "public abstract long getTimestamp();", "title": "" }, { "docid": "6f9ceef90416de50d9bf90bde3e65c3b", "score": "0.5342309", "text": "public void setReciveTime(long timestamp) {\n reciveTimestamp = timestamp;\n }", "title": "" }, { "docid": "1ebb80ff662d18c3f30c9cd52fdc7d1a", "score": "0.53421974", "text": "public Timestamp getTimestamp() {\n return timestamp;\n }", "title": "" }, { "docid": "3bba989c4a96b55f8acf12043b5308ac", "score": "0.53392124", "text": "public String getTimestamp() {\n return timestamp;\n }", "title": "" }, { "docid": "f4117675e0e3b3977e0ec185351317bb", "score": "0.53356135", "text": "public OffsetDateTime getCreatedDateTime() {\n return createdDateTime;\n }", "title": "" }, { "docid": "52d347dc6ed5750e46eb5e8c6a3332b5", "score": "0.53321844", "text": "@ApiModelProperty(required = true, value = \"Unix Epoch time in seconds of the request.\")\n public Integer getTime() {\n return time;\n }", "title": "" }, { "docid": "0538be05afdd96c94810168119f629e6", "score": "0.5326686", "text": "@JsonProperty(\"timestamp\")\r\n public Date getTimestamp() {\r\n return timestamp;\r\n }", "title": "" }, { "docid": "1de43475f86e4a4da1fa599d4bf861ea", "score": "0.53182614", "text": "void setInitialStartTime(long now)\n {\n _initialStartTime = now;\n }", "title": "" }, { "docid": "8b2cbe1ea052e879760fe81037d0a154", "score": "0.5316423", "text": "long getStatusTimestamp();", "title": "" }, { "docid": "e03db6ac8bc26a230ec6581d5d4ad14f", "score": "0.5313738", "text": "public long getTimestamp()\n {\n return timestamp;\n }", "title": "" }, { "docid": "9af540b054d724f21bf65ddb2f495e4b", "score": "0.5311413", "text": "public double getMinTimeOffset() {\n return minTimeOffset;\n }", "title": "" }, { "docid": "9ee18e1bf4fee2368446aa524c50d61b", "score": "0.53032917", "text": "protected String timestamp() {\n return String.valueOf((System.currentTimeMillis() / 1000) + timeDiffFromServer);\n }", "title": "" }, { "docid": "3333b41975bc634b4622b05ff369669e", "score": "0.5302998", "text": "@Override\r\n\tpublic void setTimestamp(long timestamp) {\r\n\t\tthis.timestamp = timestamp;\r\n\t}", "title": "" }, { "docid": "9dc440881ab2ac1c497b4e1e1775b57e", "score": "0.52819616", "text": "@Override\r\n\tpublic long getTimestamp() {\r\n\t\treturn timestamp;\r\n\t}", "title": "" }, { "docid": "40772967b032333da554197462a46249", "score": "0.52811426", "text": "public void setRequestedDate(Date requestedDate) {\n this.requestedDate = requestedDate;\n }", "title": "" }, { "docid": "143c1254341e8d27f286a8433194baa8", "score": "0.52807266", "text": "long getStartTimestamp();", "title": "" }, { "docid": "40772967b032333da554197462a46249", "score": "0.52798945", "text": "public void setRequestedDate(Date requestedDate) {\n this.requestedDate = requestedDate;\n }", "title": "" }, { "docid": "261430d2705660f43f3c6d22e1e8230a", "score": "0.5276774", "text": "long getTimestamp();", "title": "" }, { "docid": "261430d2705660f43f3c6d22e1e8230a", "score": "0.5276774", "text": "long getTimestamp();", "title": "" }, { "docid": "261430d2705660f43f3c6d22e1e8230a", "score": "0.5276774", "text": "long getTimestamp();", "title": "" }, { "docid": "261430d2705660f43f3c6d22e1e8230a", "score": "0.5276774", "text": "long getTimestamp();", "title": "" }, { "docid": "261430d2705660f43f3c6d22e1e8230a", "score": "0.5276774", "text": "long getTimestamp();", "title": "" }, { "docid": "261430d2705660f43f3c6d22e1e8230a", "score": "0.5276774", "text": "long getTimestamp();", "title": "" }, { "docid": "261430d2705660f43f3c6d22e1e8230a", "score": "0.5276774", "text": "long getTimestamp();", "title": "" }, { "docid": "261430d2705660f43f3c6d22e1e8230a", "score": "0.5276774", "text": "long getTimestamp();", "title": "" }, { "docid": "261430d2705660f43f3c6d22e1e8230a", "score": "0.5276774", "text": "long getTimestamp();", "title": "" }, { "docid": "261430d2705660f43f3c6d22e1e8230a", "score": "0.5276774", "text": "long getTimestamp();", "title": "" }, { "docid": "261430d2705660f43f3c6d22e1e8230a", "score": "0.5276774", "text": "long getTimestamp();", "title": "" }, { "docid": "261430d2705660f43f3c6d22e1e8230a", "score": "0.5276774", "text": "long getTimestamp();", "title": "" }, { "docid": "261430d2705660f43f3c6d22e1e8230a", "score": "0.5276774", "text": "long getTimestamp();", "title": "" }, { "docid": "261430d2705660f43f3c6d22e1e8230a", "score": "0.5276774", "text": "long getTimestamp();", "title": "" }, { "docid": "be27420918124c1d247aa76cd467e5b8", "score": "0.5268108", "text": "com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder();", "title": "" }, { "docid": "be27420918124c1d247aa76cd467e5b8", "score": "0.5268108", "text": "com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder();", "title": "" }, { "docid": "9171e083b447cd0042e2671efa719f24", "score": "0.52651244", "text": "com.google.protobuf.Timestamp getReminder();", "title": "" }, { "docid": "3029acfed0e12736b24eaa320424b9d4", "score": "0.52643317", "text": "public void setTimestamp(Long timestamp) {\r\n this.timestamp = timestamp;\r\n }", "title": "" }, { "docid": "afc383fd64e50c15758db30439b04cbd", "score": "0.5261903", "text": "ubii.topicData.TimestampOuterClass.Timestamp getTimestamp();", "title": "" }, { "docid": "546457a30207a852417fbba76c11f8fd", "score": "0.5256934", "text": "public boolean isSetRequestDttm() {\n return this.requestDttm != null;\n }", "title": "" }, { "docid": "eac9369fad7c753b7db02f0a90d71c0a", "score": "0.5250006", "text": "LocalDateTime creationTime();", "title": "" }, { "docid": "f3c6002f18d90dbadcd9e440fef0c06a", "score": "0.5245969", "text": "public OffsetDateTime timestamp() {\n return this.timestamp;\n }", "title": "" }, { "docid": "c6aae4a48a6d82f42e64eff1af0b3380", "score": "0.52427745", "text": "public int getLeadTimeOffset() \n{\nInteger ii = (Integer)get_Value(\"LeadTimeOffset\");\nif (ii == null) return 0;\nreturn ii.intValue();\n}", "title": "" }, { "docid": "7ee5bc4cd1e3d5a13a6757e1fabb3078", "score": "0.5240803", "text": "public Timestamp getAddTime()\n {\n return null;\n }", "title": "" } ]
81aa57ede7efe84133a4b8cb6473d145
Constructor for the magazine.
[ { "docid": "072eb350e06e1a7f9f461393a18a3b25", "score": "0.61026984", "text": "public itemMagazine(String aTitle, String aGenre, int aDate, int aNum, boolean isNew, String aPublisher, int aVol, int anIssue) {\n\t\tsuper(aTitle, aGenre, aDate, aNum, isNew);\n\t\tthis.setPublisher(aPublisher);\n\t\tthis.setVolume(aVol);\n\t\tthis.setIssue(anIssue);\n\t}", "title": "" } ]
[ { "docid": "9cf0e0e51e790606f8d3c8b81dfaf388", "score": "0.69023436", "text": "public Magazine(String newTitle) {\r\n title = newTitle;\r\n }", "title": "" }, { "docid": "32cc0f88d598b6a758878940e1baf5b8", "score": "0.6826642", "text": "public Magazine(String title, String publisher, String issue, String genre, int numberOfReleases) {\n super(title, publisher);\n this.issue = issue;\n this.genre = genre;\n this.numberOfReleases = numberOfReleases;\n }", "title": "" }, { "docid": "0581e779c6b82f853aae58dae009aacf", "score": "0.64490026", "text": "public Musique() {\n\t\tmusiqueDeFond();\n\t\tsonMort();\n\t\t\n\t}", "title": "" }, { "docid": "5d060f10d554e2c8942de50801d8e3ef", "score": "0.63770074", "text": "public CataclysmicDemographic() {\n\t // empty constructor\n\t}", "title": "" }, { "docid": "2439c41a9eb6280f0e7c4166f7860911", "score": "0.63764864", "text": "public News() {\n super();\n }", "title": "" }, { "docid": "8ff1847d7caa860b61120b7ffea9f8db", "score": "0.63551176", "text": "public MagazineThumb(Context context, Magazine mag) {\n\t\tsuper(context);\n\n //Constructor initialization\n dm = (DownloadManager) context.getSystemService(Activity.DOWNLOAD_SERVICE);\n dirPath = Configuration.getApplicationRelativeMagazinesPath(context);\n cachePath = Configuration.getCacheDirectory(context);\n this.magazine = mag;\n packDownloader = new DownloaderTask(context,\n this,\n this.MAGAZINE_DOWNLOAD_TASK,\n this.magazine.getUrl(),\n this.magazine.getName() + \".zip\",\n this.magazine.getTitle(),\n this.magazine.getInfo(),\n this.dirPath,\n this.MAGAZINE_DOWNLOAD_VISIBILITY);\n thumbDownloader = new DownloaderTask(context,\n this,\n this.THUMB_DOWNLOAD_TASK,\n this.magazine.getCover(),\n this.magazine.getName(), //Set the same name as the magazine\n this.magazine.getTitle().concat(\" cover\"),\n \"File to show on the shelf\",\n cachePath,\n this.THUMB_DOWNLOAD_VISIBILITY);\n unzipperTask = new UnzipperTask(context, this, UNZIP_MAGAZINE_TASK);\n\n //Logging initialization\n Log.d(this.getClass().getName(), \"Magazines relative dir: \" + dirPath);\n }", "title": "" }, { "docid": "ffd04f5e742f589ad30f7c1bb15c9db3", "score": "0.6263167", "text": "public NewsPost() {\r\n }", "title": "" }, { "docid": "d41c9fffaed79f6b2cf918ec061003ea", "score": "0.6239699", "text": "public MediaQuartiere() { }", "title": "" }, { "docid": "b06006ddeb16d1af59d1d2337ce505ec", "score": "0.61177987", "text": "protected Movie() { \r\n }", "title": "" }, { "docid": "24b54f020cd3e379074079376c67e301", "score": "0.61106175", "text": "public NewsItem( )\r\n\t{\r\n\t}", "title": "" }, { "docid": "114670bdeed7721c0d8f8756cb815392", "score": "0.6100193", "text": "private TypicalArticles() {}", "title": "" }, { "docid": "5b5f984849c9223c2ad24121b2ebec06", "score": "0.6069492", "text": "public Article(String newspaper,int magazineNum,String author,Connection con){\n \n this.newspaper = newspaper;\n\t\tthis.magazineNum = magazineNum;\n this.author = author;\n this.con = con;\n \n }", "title": "" }, { "docid": "d8476b5952e9a6fa75d0a2b3cfe97660", "score": "0.6067451", "text": "public Article() {\n\t\t\n\t}", "title": "" }, { "docid": "77b057ecc8e97656427e35bfd56e4795", "score": "0.60492873", "text": "public Mordor(){\r\n\t\tsuper();\r\n\t}", "title": "" }, { "docid": "dd053309a4cd6e9d54a736a88db3e319", "score": "0.6021544", "text": "public MedDoc(){\n\t\t\n\t}", "title": "" }, { "docid": "e7178659b7001f13d607efece79cd64c", "score": "0.60126185", "text": "public Metas() {\n\t\t\n\t}", "title": "" }, { "docid": "7900e91128d756e215e79225c57a90e0", "score": "0.5983956", "text": "public Medico() {\r\n \r\n }", "title": "" }, { "docid": "cb26ec5a305338a85c1c82dd0a0a8e36", "score": "0.59357643", "text": "public NewsFormat ()\r\n {\r\n\tthis (\"\");\r\n }", "title": "" }, { "docid": "cc24d32045a93739b5c2010ae821d3ab", "score": "0.5912455", "text": "public Mesa() {\n\t}", "title": "" }, { "docid": "4b36d1f612d6a532775657b6b035d3f7", "score": "0.5909337", "text": "public Content()\n {\n }", "title": "" }, { "docid": "eaf4fb7d66acc34fa6a4cf952f01e164", "score": "0.58735", "text": "MedicinalProductContraindication createMedicinalProductContraindication();", "title": "" }, { "docid": "e29ec59cf004b0582a53714ed8f0b990", "score": "0.58733654", "text": "public MediaItem()\n\t{\n\t\ttitle = \"\";\n\t\tformat = \"\";\n\t\tonLoan = false;\n\t\tloanedTo = \"\";\n\t\tdateLoaned = \"\";\n\t}", "title": "" }, { "docid": "b3d8062f44bb59ea7c0e17b6e1dc96ad", "score": "0.58027864", "text": "public Avion() {\n\t}", "title": "" }, { "docid": "fea1c67b75fc8b8cb25c5056de932824", "score": "0.5791508", "text": "public InterrogationMeteoValideur() {\r\n\t\tsuper();\r\n\t}", "title": "" }, { "docid": "66c50554d1c8fd681740ea9bdc7f9d4d", "score": "0.5787411", "text": "public EchonestBiography() { }", "title": "" }, { "docid": "86336f5bfa783dc5f19a399673ea5ec9", "score": "0.5776398", "text": "public StudenteLaurea(String nome, String cognome, int numeroTel, String mail, int matricola){\n\tsuper(nome, cognome, numeroTel, mail, matricola);\n\t\n\tthis.calcolaMediaAritm(examlist);\n\t\n}", "title": "" }, { "docid": "e01320f3a6f1422189c952cce0a0208d", "score": "0.576547", "text": "public Section() { }", "title": "" }, { "docid": "79928b64676ac0ac7f97c9351473056a", "score": "0.5762946", "text": "public CommunityGalleryImageVersionProperties() {\n }", "title": "" }, { "docid": "98d2fcf0a1e24ab8e8b51d2be9b6bb73", "score": "0.57612336", "text": "public Moniteur() {\r\n }", "title": "" }, { "docid": "042eda699d5b1a48c943b24bf5c61305", "score": "0.5740575", "text": "public PaleteArtigo() {\n \n }", "title": "" }, { "docid": "c2cba0ac43d9f578ecc9797ed7589c1a", "score": "0.5735744", "text": "public Article() {}", "title": "" }, { "docid": "a07178b7b66145e30afc502fff6afe33", "score": "0.57043254", "text": "public Magician () {\n\t\tsuper(\"Magicien\", null, \"Echange des cartes de sa main ou avec un autre joueur\", 3);\n\t}", "title": "" }, { "docid": "28c06df1df0af78b940815ada7dc65c7", "score": "0.57000077", "text": "public STD_Art() {\n initComponents();\n }", "title": "" }, { "docid": "f065fd1318100d336863b0493ef7c223", "score": "0.56998193", "text": "private SingleCMS(){}", "title": "" }, { "docid": "81cc76cd3c4ef0edce3c392e02eae140", "score": "0.5690079", "text": "public Album()\n {\n create();\n //loadImages();\n }", "title": "" }, { "docid": "3ea9de4a4b0e3d95955038176320fb7e", "score": "0.56891996", "text": "public Section() {\n }", "title": "" }, { "docid": "3ea9de4a4b0e3d95955038176320fb7e", "score": "0.56891996", "text": "public Section() {\n }", "title": "" }, { "docid": "3fdae35b3f4e0e06e321a746ee36b8c0", "score": "0.56761616", "text": "public MovieDetailVideo() {}", "title": "" }, { "docid": "89cc4c09198084362f48b562cbb72f1f", "score": "0.56678784", "text": "public YMLSection() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "bd530a0f8b782fc2401e4f57676246ca", "score": "0.5666909", "text": "public Prestamo() {\n\t\tsuper();\n\t}", "title": "" }, { "docid": "e5e29e03d5f14f35a4de47a56bb4217d", "score": "0.5642806", "text": "public MortgageModel() {\n\t\tthis(0,0.0,5.0,2.0,1.0);\n\t}", "title": "" }, { "docid": "ca4bd6cb9bd18e4f927a2f43a7f00b17", "score": "0.56426674", "text": "public Content() {\n date = new Date();\n }", "title": "" }, { "docid": "36c41c9780132c18b573af77a4f5f670", "score": "0.5641211", "text": "public DocumentImage() {}", "title": "" }, { "docid": "0d9246a08b4acf988810794fef1b2eb8", "score": "0.56370676", "text": "protected NewsStory(LocalDate date, String source, int length, String topic, \r\n\t\t\tNewsMaker newsMaker1, NewsMaker newsMaker2)\r\n\t{\r\n\t\t//Build constructor\r\n\t\t\r\n\t\tthis.date = date;\r\n\t\tthis.source = source;\r\n\t\tthis.length = length;\r\n\t\tthis.topic = topic;\r\n\t\tthis.newsMaker1 = newsMaker1;\r\n\t\tthis.newsMaker2 = newsMaker2;\r\n\t}", "title": "" }, { "docid": "bbb12f709f30f16bd4feeb38d0585bc1", "score": "0.56252885", "text": "public Avion() {\n }", "title": "" }, { "docid": "fe56963f9f3f50742b5a84d135a1d045", "score": "0.56222624", "text": "public Submarine() {\n\t\t//calling the constructor in the Ship class to create a submarine\n\t\tsuper(1);\n\t}", "title": "" }, { "docid": "077a60c42f9165ef326563ab95a195c5", "score": "0.5610667", "text": "public NewsRecord() {\n super(News.NEWS);\n }", "title": "" }, { "docid": "8ef77b210b1d012bae700f7f5182a05d", "score": "0.5608161", "text": "public Movie() {}", "title": "" }, { "docid": "f83d4eb48e07bfdcff530fe819087813", "score": "0.5594211", "text": "public ChoreographyItem() {\n\t}", "title": "" }, { "docid": "ace27670ee42a497c4aa9690d28f6261", "score": "0.55896306", "text": "public Metadata()\n \t{\n \t\tsuper();\n \t}", "title": "" }, { "docid": "c4b4e2b781faec325a0b28a142877bf9", "score": "0.558781", "text": "public StoryNarration() {}", "title": "" }, { "docid": "6376d162dd27fcd1f933f1d539d19562", "score": "0.55838066", "text": "public Passage() {\n thePassage = new ArrayList<>();\n passageDesc = new StringBuilder(); // Old section description\n myDoors = new ArrayList<>(); // List of door objects\n passageMonsters = new ArrayList<>();\n\n createPassageSections();\n }", "title": "" }, { "docid": "1fc8bfd59788fdfff161b3149f53b495", "score": "0.55791533", "text": "protected House()\n\t{\n\t\tsuper(4, 4, true);\n\t}", "title": "" }, { "docid": "1e1d59194c28b50267ada1aedf3bca0b", "score": "0.55745965", "text": "public Library() {//constructor calls Locations class, instantiating a book, a quill and a character named hermione and what she says\n\t\tsuper(\"Once the academic year starts, students spend a lot of their time in the school library.\"\n\t\t\t\t, new book(),new quill(), new characters(\"Hermione\",\"Welcome to the library! Read a book or\"\n\t\t\t\t\t\t+ \" write with a quill!\"));\n\t}", "title": "" }, { "docid": "85f829c70071e51c3fbd69b1d50b587b", "score": "0.5567664", "text": "public Medical_prescription() {\n initComponents();\n }", "title": "" }, { "docid": "cdee7f024dec0f431baedc65ea83ee0d", "score": "0.55512714", "text": "public Imagen() {\n matriz = null;\n ancho = 0;\n alto = 0;\n }", "title": "" }, { "docid": "df36fc1d1368b2669465991ce19dc0ca", "score": "0.5545758", "text": "public Voitures() {}", "title": "" }, { "docid": "341a97aeff0f276187f9cc047701f001", "score": "0.5544052", "text": "public Movie() {\n }", "title": "" }, { "docid": "341a97aeff0f276187f9cc047701f001", "score": "0.5544052", "text": "public Movie() {\n }", "title": "" }, { "docid": "c4fc7cced10ea1937269e101d0dc5806", "score": "0.55390465", "text": "public ViewMovie()\r\n {\r\n }", "title": "" }, { "docid": "66d981b0ac536d950f991101d666350d", "score": "0.55386615", "text": "public Section()\n {\n days = new ArrayList<Day>();\n additionalTimes = new ArrayList<AdditionalTime>();\n }", "title": "" }, { "docid": "e562b3a7e77624178842c4f1f91f610b", "score": "0.5535011", "text": "private Artist() {}", "title": "" }, { "docid": "bde89c21f975b8aa5a33563e0add672d", "score": "0.5528896", "text": "public Painel(){\n\t\tsuper();\n\t}", "title": "" }, { "docid": "7b85ed28a9734344752e6a8a781f6250", "score": "0.5528742", "text": "protected GeometricObject()\n {\n dateCreated = new java.util.Date();\n }", "title": "" }, { "docid": "7f851cf72d398c644c7b64cd3b7da009", "score": "0.55263853", "text": "public MeemIconicPresentation() {\r\n\t}", "title": "" }, { "docid": "677f0c8778edcbf12ec9d79ced709298", "score": "0.55214125", "text": "public News(String title, String section, String author, String date, String url){\n mTitle = title;\n mSection = section;\n mAuthor = author;\n mDate = date;\n mURL = url;\n }", "title": "" }, { "docid": "59df9345556ca95ed39a8f72dd6b4152", "score": "0.5513645", "text": "public Movie() {\n\n }", "title": "" }, { "docid": "92d8cb437b0d3dc5a000249a1409aade", "score": "0.55126464", "text": "protected GeometricObject() {\n\n dateCreated = new java.util.Date();\n\n }", "title": "" }, { "docid": "af681ce614fbafd9ecd69988f8ad1278", "score": "0.5501653", "text": "public void constructContent();", "title": "" }, { "docid": "33163a20dca2b097719ae301d9365b1a", "score": "0.55003977", "text": "public MenuPage()\n { \n // Create a new world for menu page with 800x600 cells with a cell size of 1x1 pixels.\n super(800, 600, 1);\n\n addObject(new Easy(), 400, 180);\n addObject(new Normal(), 400, 290);\n addObject(new Hard(), 400, 400);\n addObject(new B1(), 62, 19); //back to start page\n addObject(new MenuBoy(), getWidth()-350, getHeight()-80);\n \n \n prepare();\n }", "title": "" }, { "docid": "6db0e049450304bfe571ad93a0405217", "score": "0.5499033", "text": "public Catalogue() {\n\n\t}", "title": "" }, { "docid": "9fed40b15c4557cc0b44fc0a4fb9acd4", "score": "0.5497977", "text": "public Podcast(String title, String author, String genre, String description,\n String website, String date, boolean isVideo){\n\n\n\n }", "title": "" }, { "docid": "6bbc5753394a5e59ba481d76e409a926", "score": "0.54934543", "text": "public Volume() \n\t{\n\t\tchapters = new ArrayList<Chapter>();\n\t}", "title": "" }, { "docid": "85239bd504391257deee08b57c07b0fe", "score": "0.5492121", "text": "public KPages() {\n super(null, null); // TODO codavaj!!\n }", "title": "" }, { "docid": "3f6afedf3ff355ca60626d1ba67da0f6", "score": "0.54853916", "text": "public Section() {}", "title": "" }, { "docid": "c2efa9ca79d140d14e77abc6cc95b743", "score": "0.5483409", "text": "public Literature(String title, String publisher, String type)\n {\n //Initialise instance variables\n this.title = title;\n this.publisher = publisher;\n this.type = type;\n }", "title": "" }, { "docid": "4729f07ea56abd199b73bd4328d0c204", "score": "0.5476695", "text": "public Archivo(){}", "title": "" }, { "docid": "4f0c6c2a323a5ae545970f7d8a83ce57", "score": "0.54697037", "text": "public VideoClipItem() {\r\n\t\tinitComponents();\r\n\t}", "title": "" }, { "docid": "d254d209741b484caa122aa264c0a30b", "score": "0.54670966", "text": "public Mars()\n {\n super(EQUATORIAL_RADIUS, POLAR_RADIUS, ES,\n EllipsoidalGlobe.makeElevationModel(AVKey.MARS_ELEVATION_MODEL_CONFIG_FILE,\n \"config/Mars/MarsElevationModel.xml\"));\n }", "title": "" }, { "docid": "c4039770e684a75e3df0d52fc2e63393", "score": "0.5463548", "text": "void initCinema(String fileName) throws IOException {\r\n FileData fd = new FileData(fileName);\r\n String contents = fd.readContents();\r\n String[] contentArray = contents.split(\"\\n\");\r\n\r\n int i = 1;\r\n while (!contentArray[i].equals(\"Theaters\")) {\r\n String[] movs = contentArray[i].split(\":\");\r\n movies.add(new Movie(movs[0], Integer.parseInt(movs[1])));\r\n i++;\r\n }\r\n i++;\r\n while (!contentArray[i].equals(\"Shows\")) {\r\n String[] theats = contentArray[i].split(\":\");\r\n theaters.add(new Theater(theats[0], Integer.parseInt(theats[1])));\r\n i++;\r\n }\r\n i++;\r\n while (!contentArray[i].equals(\"Prices\")) {\r\n String[] showtimes = contentArray[i].split(\",\");\r\n Movie m = this.movies.get(Integer.parseInt(showtimes[0]) - 1);\r\n Theater t = this.theaters.get(Integer.parseInt(showtimes[1]) - 1);\r\n shows.add(new Show(m, t, Integer.parseInt(showtimes[2])));\r\n i++;\r\n }\r\n i++;\r\n while (!contentArray[i].equals(\"End\")) {\r\n String[] ps = contentArray[i].split(\":\");\r\n prices.add(new Price(ps[0], Integer.parseInt(ps[1])));\r\n i++;\r\n }\r\n /*\r\n * Printing for easy debugging\r\n System.out.println(\"Complex Initialized:\");\r\n for (Show s: shows) {\r\n System.out.println(s.toString());\r\n }\r\n for (Price p : prices) {\r\n System.out.println(p.toString());\r\n }\r\n System.out.println(\"System done initializing\");\r\n */\r\n \r\n // initialize the sales\r\n for (Show s : shows) {\r\n sales.add(new Sale(s));\r\n }\r\n\r\n }", "title": "" }, { "docid": "cd4fc451801a5c3953ddd039ef3de0f0", "score": "0.5462418", "text": "public Article (String title, String section, String date, String authors, String url) {\n mTitle = title;\n mSection = section;\n mDate = date;\n mAuthors = authors;\n mUrl = url;\n }", "title": "" }, { "docid": "4470688e4242306ad6f371ac2c877170", "score": "0.54604524", "text": "public Note() {\r\n }", "title": "" }, { "docid": "9e7056d6b646a46026962a4af00216a0", "score": "0.5458717", "text": "public Episode() {\n\t}", "title": "" }, { "docid": "a010c124f1800c637cc656960870598b", "score": "0.54547626", "text": "private DocumentAutoPublicationHome( )\n {\n }", "title": "" }, { "docid": "bfde6c771a5deb90094d5be4921bbbf8", "score": "0.54530126", "text": "public Animal() {\n\t\tsuper();\n\t\tthis.setName(\"Default\");\n\t\tthis.setGen(Gender.FEMALE);\n\t\tthis.setWeight(1.0);\n\t\tthis.setSpeed(2.0);\n\n\t\tthis.medals = new Medal[1];\n\t\tMedal m = new Medal();\n\t\tthis.medals[0] = m;\n\t\tthis.setMedal(this.getMedal());\n\t\tthis.maxEnergy = 100;\n\t\tthis.currentEnergy = maxEnergy / 2;\n\t\tthis.setEnergyPerMeter(2);\n\t\tthis.orien = Orientation.EAST;\n\t\tthis.size = 65;\n\t}", "title": "" }, { "docid": "b04b0a4aab6d0d7ce32b70fed1c03c3b", "score": "0.54518676", "text": "public NoteItem() {\r\n\t\t\r\n\t}", "title": "" }, { "docid": "2e0ead1b0fc811ada8c235623390cd61", "score": "0.54512435", "text": "public StoredMovie()\n {\n // Needed for the creation by reflection\n }", "title": "" }, { "docid": "3c565f1e38e32a9a1d5bce3a1879bb8b", "score": "0.5443632", "text": "public Movie(String name,String detail) {\n this.name = name;\n this.detail = detail;\n this.image =image;\n }", "title": "" }, { "docid": "7ef124617e2cfe68b9278380765f0107", "score": "0.54435253", "text": "public CubeSceneObject() {\n createSimpleCube(true, new Material());\n }", "title": "" }, { "docid": "569d0bfcbbde2dbf8b8085487038f318", "score": "0.544222", "text": "public Title()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(600, 400, 1); \n }", "title": "" }, { "docid": "2034ae60a09fdd6171574206bfcb97bb", "score": "0.54402244", "text": "public Zoo(int intialCapacity) \n {\n // TODO: complete this...\n \tcapacity = intialCapacity;\n \tanimals = new Animal[intialCapacity];\n \tnumAnimals = 0;\n }", "title": "" }, { "docid": "cff8838a7c69e57dc3f857446fc4879d", "score": "0.543983", "text": "public Book() {\n\t\tauthor = \"\";\n\t\ttitle = \"\";\n\t}", "title": "" }, { "docid": "d8c157198f3cb387915620379615c948", "score": "0.5439489", "text": "public Magnet (String text) {\n super(text);\n BackgroundImage bImage = new BackgroundImage(new Image(Magnet_src , 40, 40,\n false, true), BackgroundRepeat.NO_REPEAT,\n BackgroundRepeat.NO_REPEAT, BackgroundPosition.DEFAULT, null);\n setBackground(new Background(bImage));\n }", "title": "" }, { "docid": "68b1ca04a5ed6c3a0ef5087ee0cc2b76", "score": "0.54355085", "text": "public Media() {}", "title": "" }, { "docid": "7eea4cf9ec143f35f575562b98e85c3f", "score": "0.5432059", "text": "protected Magnet(ModelMediator mediator_, MagnetGroup magnetGroup, JSONObject json) {\n setMediator(mediator_);\n this.magnetGroup = magnetGroup;\n try {\n this.id = json.getInt(\"id\");\n this.title = json.getString(\"title\");\n this.content = json.getString(\"content\");\n this.color = json.getInt(\"color\");\n this.isFavourite = json.getBoolean(\"isFavourite\");\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "7b4ad72e5595b9e1e396cdbaa390147a", "score": "0.5428586", "text": "public Book() {\n\t\tsuper();\n\t\t// TODO Auto-generated constructor stub\n\t}", "title": "" }, { "docid": "b8c88ea1facc16a69db164659264e147", "score": "0.54220814", "text": "public Visualization() {\n\t\tsuper();\n\n\t}", "title": "" }, { "docid": "4e666447ce9889f839cfd8c6c6b52bfe", "score": "0.5419137", "text": "protected GeometricObject1() {\n\t\tdateCreated = new java.util.Date();\n\t}", "title": "" }, { "docid": "883ecd29086722f19e6029c437d858ae", "score": "0.540692", "text": "public Campana(){\r\n\t\tsuper();\r\n\t}", "title": "" }, { "docid": "b09c6672d18abccbcf6bdfc7c69ff416", "score": "0.5406812", "text": "public MovieDetailSummaryFragment() {}", "title": "" } ]
39a7a51985f9cd0748dae845b40a0755
metodo para hacer el registro del usuario
[ { "docid": "2960af0ac6b985428e0c887cc4b3a55f", "score": "0.0", "text": "public static Cliente registro(Vista vis, Modelo modelo) {\n\t\tJTextField dni = vis.panelRegistro.txtDni;\n\t\tJTextField nombre = vis.panelRegistro.txtNombre;\n\t\tJTextField apellido = vis.panelRegistro.txtApellido;\n\t\tJTextField numerocuenta = vis.panelRegistro.txtNcuenta;\n\t\t\n\t\tDate fechaNac = vis.panelRegistro.dateFnac.getDate();\n\t\tchar sexo = cambiarSexoAChar(vis.panelRegistro.boxSexo);\n\t\tfinal char[] contra = vis.panelRegistro.txtPassword.getPassword();\n\t\t//JTextField contrasenia = vis.panelLogin.txtPassword;\n\t\tif (validarSoloLetras(nombre) && validarSoloLetras(apellido) && (nombre.getText().length() > 0) && (apellido.getText().length() > 0) && validarDNI(dni) && validarContrasenia(contra)) {\n\t\t\tif (modelo.consulta.comprobarDNIenBD(vis.panelRegistro.txtDni.getText()) == false) {\n\t\t\t\treturn (new Cliente(nombre.getText(), apellido.getText(), dni.getText(), sexo, fechaNac, encriptarContra(contra), Integer.parseInt(numerocuenta.getText()), (double)(9999)));\n\t\t\t} else {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"El usuario introducido ya está registrado, por favor, inicie sesión\", \"Usuario ya registrado\", JOptionPane.INFORMATION_MESSAGE);\n\t\t\t}\n\t\t}\n\t\treturn null;\t\n\t}", "title": "" } ]
[ { "docid": "7d34e9815d36c4e1eb2eee3cd811088f", "score": "0.7843055", "text": "@Override\r\n\tpublic void IngresarUsuario() {\n\t\t\r\n\t}", "title": "" }, { "docid": "5ffca224eb0c9af23aef18f09ce99ec6", "score": "0.73524004", "text": "public void insertarUsuario() {\n\t\t\n\t\t\n\t\tDaoUsuario.getInstance().insertar(this);\n\t}", "title": "" }, { "docid": "a62d71aec578244c23eefa18e1169b45", "score": "0.72125334", "text": "@Override\n\tpublic Usuario registrar(Usuario usuario) {\n\t\treturn usuario;\n\t}", "title": "" }, { "docid": "b6b6245a8d41c4e4f45c85c8d0addb63", "score": "0.719969", "text": "@Override\n\tpublic Usuario obtenerUsuario() {\n\t\treturn usuarioDao.obtenerUsuario();\n\t}", "title": "" }, { "docid": "170cde0cc6c93d8a6238a5b1114cf2f8", "score": "0.70860285", "text": "public void agregar(Usuario usuario) throws BusinessErrorHelper;", "title": "" }, { "docid": "4f4b5ae6e1a420973f488da3b6650c06", "score": "0.70701045", "text": "public void insert(Usuario u);", "title": "" }, { "docid": "bf20bb19be00bcf31efa92a364a0f8d1", "score": "0.70659107", "text": "Usuario getUsuario();", "title": "" }, { "docid": "28acfd5e1eedd3770c4e0d5c9ab9e671", "score": "0.6941204", "text": "@Override\n\tpublic Usuario mostrar() {\n\t\tLOG.info(\"Mostrar los datos del usuario\");\n\t\treturn usuario;\n\t}", "title": "" }, { "docid": "28314febd40bbdb52d832d4f15f92e05", "score": "0.6918159", "text": "private void addUser() {\n try {\n usersDB.registerUser(\"firstname\", \"lastName\", \"2000-01-01\",\n EMAIL, PASSWORD, \"555123456\",\n \"country\", \"city\", \"address\", \"role\");\n userId = usersDB.getUser(EMAIL).getUserId();\n } catch (SQLException throwables) {\n throwables.printStackTrace();\n }\n }", "title": "" }, { "docid": "e3ede41f66ffee6f9521341408ae4375", "score": "0.6906915", "text": "private void createUser() {\n user = new User(userData.getUsername());\n User tmp = userDAO.findUserByUsername(user.getUsername());\n if (tmp == null) {\n userDAO.add(user);\n } else {\n user.setId(tmp.getId());\n }\n }", "title": "" }, { "docid": "c8060657d09b85d16100b253d6492bd6", "score": "0.6898835", "text": "public void registrarUsuario(VAgregarUsuario us){\n \n Connection cnn=null;\n \n PreparedStatement stmt=null;\n \n try {\n cnn=Conexion.getConexion();\n stmt=cnn.prepareStatement(RegistarUsaurio);\n \n stmt.setString(1, us.getTxtNombreUsuario().getText());\n stmt.setString(2, us.getTxtApellidoUsuario().getText());\n stmt.setString(3, us.getTxtPuestoUsuario().getText());\n stmt.setString(4, us.getTxtPermisoUsuario().getText());\n stmt.setString(5, us.getTxtUsuario().getText());\n stmt.setString(6, us.getTxtUsuarioClave().getText());\n \n stmt.executeUpdate();\n \n JOptionPane.showMessageDialog(null, \"Registrado!\");\n \n TablaUsuario tabla=new TablaUsuario();\n \n ConfUsuarios user=new ConfUsuarios();\n \n tabla.listarUsuario(user.getTablaUser());\n \n } catch (ClassNotFoundException ex) {\n System.out.println(\"Hay un fallo en la primera clausula del registroUsuario\");\n ex.printStackTrace(System.out);\n \n } catch (SQLException ex) {\n System.out.println(\"Hay un fallo en la segunda clausula del registroUsuario\");\n ex.printStackTrace(System.out);\n \n }\n \n }", "title": "" }, { "docid": "1eaf87d80b700ebdeb4cef0ca0c9bf3c", "score": "0.6894076", "text": "@Override\r\n\tpublic Usuarios save(Usuarios usuario) {\n\t\treturn usuariodao.save(usuario);\r\n\t}", "title": "" }, { "docid": "db3f860973c0daca3bfb58e9d6c4eb8d", "score": "0.6886901", "text": "@Override\n\tpublic void guardar(Usuario usuario) {\n\t\t\n\t}", "title": "" }, { "docid": "a3a2d397b31d15033aeeb5fab9bb32b0", "score": "0.68666005", "text": "public void registrar() {\n String nombre = vista.getTxtNombre();\n String apellidos = vista.getTxtApellidos();\n String fecha = vista.getTxtFecha();\n Empleado empleado = new Empleado(nombre, apellidos, fecha);\n IEmpleadoDao dao = new EmpleadoDaoImpl();\n dao.registrar(empleado);\n vista.mostrarMensaje(\"OPERACIÓN REALIZADA CORRECTAMENTE\");\n }", "title": "" }, { "docid": "0fcf8badbb96f196be9b80d82d7c006a", "score": "0.6864786", "text": "void addUser(String idUser, String email, String phone, String name, String nacionalidade, String morada);", "title": "" }, { "docid": "bd16eb5b130f5f828ee965013c5e8f6b", "score": "0.68563235", "text": "@Override\r\n\tpublic Usuario save(Usuario entity) {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "15166f2f58ede931f22512711216274a", "score": "0.68546456", "text": "public int registrarUsuario(Usuario usuario) throws Exception;", "title": "" }, { "docid": "5afcb475246c5996349fd5b20d0aa387", "score": "0.6850896", "text": "public void altaUsuario(Usuario usu){\n usuJPA.create(usu);\n }", "title": "" }, { "docid": "100c633c941b4acdd1424e26fa456427", "score": "0.68335396", "text": "@Override\n\tpublic void guardar() {\n\t\tLOG.info(\"El usuario fue guardado \"+ usuario.getApellido() +\", \"+ usuario.getNombre());\n\t}", "title": "" }, { "docid": "eb7b65aebe827913f55475472d28d35e", "score": "0.68302715", "text": "public int RegistrarUsuario(String NombreUsuario, String ApellidoUsuario, String CorreoUsuario, String PasswordUsuario, String ImagenUsuario,\r\n int CedulaUsuario, String CredencialCivicaUsuario, String DomicilioUsuario, String DepartamentoUsuario, String LocalidadUsuario,\r\n String TelefonoUsuario, String CelularUsuario, EstadoCivil EstadoCivilUsuario, Date FechaNacimientoUsuario, String LugarNacimientoUsuario,\r\n EnumSexo SexoUsuario, String Rol, int IdUsuario){\r\n if (ImagenUsuario.isEmpty()) ImagenUsuario = \"../Resources/Images/userProfile.jpg\";\r\n Usuario Usr = null;\r\n // array para guardar password mas la palabra clave\r\n String[] pass = new String[2];\r\n // si se recibe un idusuario se esta registrando un nuevo rol, por lo que se debe traer password y palabra del ya registrado.\r\n if(IdUsuario != 0 && IdUsuario != -1) {\r\n Usr = BuscarUsuario(IdUsuario);\r\n pass[0] = Usr.getSaltPasswordUsuario();\r\n pass[1] = Usr.getPasswordUsuario();\r\n }else{\r\n pass = cSeguridad.getPasswordSeguro(PasswordUsuario);\r\n }\r\n if (ExisteUsuario(CedulaUsuario, Rol)== -1) {\r\n switch(Rol){\r\n case \"Administrador\":\r\n Usr = cAdministrador.CrearAdministrador(NombreUsuario, ApellidoUsuario, CorreoUsuario, pass[1], pass[0], ImagenUsuario,\r\n CedulaUsuario, CredencialCivicaUsuario, DomicilioUsuario, DepartamentoUsuario, LocalidadUsuario, TelefonoUsuario, CelularUsuario,\r\n EstadoCivilUsuario, FechaNacimientoUsuario, LugarNacimientoUsuario, SexoUsuario);\r\n break;\r\n \r\n case \"Administrativo\":\r\n Usr = cAdministrativo.CrearAdministrativo(NombreUsuario, ApellidoUsuario, CorreoUsuario, pass[1], pass[0], ImagenUsuario, CedulaUsuario,\r\n CredencialCivicaUsuario, DomicilioUsuario, DepartamentoUsuario, LocalidadUsuario, TelefonoUsuario, CelularUsuario, EstadoCivilUsuario,\r\n FechaNacimientoUsuario, LugarNacimientoUsuario, SexoUsuario);\r\n break;\r\n \r\n case \"Docente\":\r\n Usr = cDoc.CrearDocente(NombreUsuario, ApellidoUsuario, CorreoUsuario, pass[1], pass[0], ImagenUsuario, CedulaUsuario,\r\n CredencialCivicaUsuario, DomicilioUsuario, DepartamentoUsuario, LocalidadUsuario, TelefonoUsuario, CelularUsuario,\r\n EstadoCivilUsuario, FechaNacimientoUsuario, LugarNacimientoUsuario, SexoUsuario);\r\n break;\r\n }\r\n }\r\n if (Usr==null) {\r\n return -1;\r\n }else{\r\n return Usr.getIdUsuario();\r\n }\r\n }", "title": "" }, { "docid": "ecc48978a6b5c6292e950c8100fecef8", "score": "0.68296796", "text": "public void insertUser(){\n\t}", "title": "" }, { "docid": "a39b68e654205e48679de5dfa58ebcc7", "score": "0.6787902", "text": "@Override\r\n\t@Transactional\r\n\tpublic User save(User object) {\n\t\tUser usuario = userDao.findUserName(object.getFullName());\r\n\t\t\r\n\t\t\r\n\t\treturn userDao.save(usuario);\r\n\r\n\r\n\r\n\t}", "title": "" }, { "docid": "ff74b106b39e14abca5410d995ed7ae0", "score": "0.67853135", "text": "public void adicionarUsuario(Usuario user){\n SQLiteDatabase db = this.getWritableDatabase();\n\n ContentValues values = new ContentValues();\n values.put(COL_USUARIO, user.getUsuario());\n values.put(COL_SENHA, user.getSenha());\n\n //Inserindo\n db.insert(ENTIDADE, null, values);\n db.close();\n\n }", "title": "" }, { "docid": "92199cfd69be87c03ba40696aa506b19", "score": "0.67745996", "text": "@Override\n\tpublic Usuario modificar() {\n\t\tLOG.info(\"Se modificó el usuario\");\n\t\treturn usuario;\n\t}", "title": "" }, { "docid": "84d0b14f93bf69cc71449c7df2ec9d7e", "score": "0.67664117", "text": "public Usuario getUser(int id);", "title": "" }, { "docid": "e3b3e8d06f3ee44139e5383ef9898d41", "score": "0.6766098", "text": "@Override\n public Usuario buscarUsuario(String username) {\n //Hago los DAO\n DAOFactory factoryDeDAOs = DAOFactory.getDAOFactory(DAOFactory.JPA, em);\n UsuarioDAO userDAO = factoryDeDAOs.getUsuarioDAO();\n return userDAO.find(username);\n }", "title": "" }, { "docid": "152545962cc7a91ddecd1a55069d1f39", "score": "0.6763789", "text": "public int RegistrarUsuario(String FormInscripcion, String NombreUsuario, String ApellidoUsuario, String CorreoUsuario, String PasswordUsuario,\r\n String ImagenUsuario, int CedulaUsuario, String CredencialCivicaUsuario, String DomicilioUsuario, String DepartamentoUsuario,\r\n String LocalidadUsuario, String TelefonoUsuario, String CelularUsuario, EstadoCivil EstadoCivilUsuario, Date FechaNacimientoUsuario,\r\n String LugarNacimientoUsuario, EnumSexo SexoUsuario, int GeneracionAnioEstudiante){\r\n if (ImagenUsuario.isEmpty()) ImagenUsuario = \"../Resources/Images/userProfile.jpg\";\r\n Usuario Usr = null;\r\n if (ExisteUsuario(CedulaUsuario, \"Estudiante\")== -1) {\r\n if(!FormInscripcion.isEmpty()) {\r\n String[] pass = cSeguridad.getPasswordSeguro(PasswordUsuario);\r\n Usr = cEst.CrearEstudiante(FormInscripcion, NombreUsuario, ApellidoUsuario, CorreoUsuario, pass[1], pass[0], ImagenUsuario, CedulaUsuario,\r\n CredencialCivicaUsuario, DomicilioUsuario, DepartamentoUsuario, LocalidadUsuario, TelefonoUsuario, CelularUsuario, EstadoCivilUsuario,\r\n FechaNacimientoUsuario, LugarNacimientoUsuario, SexoUsuario, GeneracionAnioEstudiante);\r\n }\r\n }\r\n if (Usr==null) {\r\n return -1;\r\n }else{\r\n return Usr.getIdUsuario();\r\n }\r\n }", "title": "" }, { "docid": "62f723e41d617647b7187893a2a309d4", "score": "0.6756283", "text": "public boolean registrar(Usuario usr) {\n PreparedStatement ps = null; //Objeto que permite usar declaraciones preparadas por la libreria para un facil acceso a MySql\n Connection con;//objeto que permite la conexion a la BD(MySql)\n con= ManipulaDBC.conectaDB();//Objeto que permite manipular a la BD\n //Codigo MySql para insertar Registros, guardado en una Variable de tipo String\n //para registrar en la Tabla Usuarios de la BD, previamente diseñada\n String sql = \"INSERT INTO usuario (idcuenta, nombre, tipo, Apaterno, Amaterno, password, tipo_pregunta, respuesta, correo) VALUES(?,?,?,?,?,?,?,?,?)\";\n try {\n ps = con.prepareStatement(sql);//Precarga declaraciondes por default de MySql\n //Inserta nuevos campos a la Tabla Usuarios\n //Numero de busqueda,Datos a Ingresar;\n ps.setString(1, usr.getUser());\n ps.setString(2, usr.getNombreUser());\n ps.setInt(3, usr.getTipo());\n ps.setString(4, usr.getApaterno());\n ps.setString(5, usr.getAmaterno());\n ps.setString(6, usr.getPassword());\n ps.setInt(7, usr.getPregunta());\n ps.setString(8, usr.getRespuesta());\n ps.setString(9, usr.getCorreo());\n ps.execute();\n return true; // Retorna una comprobacion si el registro fue exitoso\n } catch (SQLException e) {\n JOptionPane.showMessageDialog(null, e.toString());//Mensajes de Error \n return false;\n } finally {\n try {\n ManipulaDBC.desconectaDB(con);//Libera conexion a la BD\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, e.toString());//Mas Mensajes de Error\n }\n }\n }", "title": "" }, { "docid": "2dd3afc72cacce52d87e2341954073d6", "score": "0.67561686", "text": "public Usuario ingresarUsuario() {\n System.out.println(\"Ingrese los datos del usuario: \\n\");\n System.out.print(\"Cedula: \");\n String cedula = leer.nextLine();\n System.out.print(\"Nombre: \");\n String nombre = leer.nextLine();\n System.out.print(\"Apellido: \");\n String apellido = leer.nextLine();\n System.out.print(\"Correo Electronico: \");\n String correo = leer.nextLine();\n System.out.print(\"Contraseña: \");\n String contraseña = leer.nextLine();\n return new Usuario(cedula, nombre, apellido, correo, contraseña);\n }", "title": "" }, { "docid": "06c7aabec9fbe1b570435ef06e091b05", "score": "0.6751442", "text": "public void addUsuario(Usuario usuario){ \n usuario.setId(listaDeUsuarios.size() + 1);\n listaDeUsuarios.add(usuario);\n }", "title": "" }, { "docid": "f2cd2edcc6250ff16f03308506a67ad4", "score": "0.6748531", "text": "@Override\n public CorreosAsistencias crearUser(Users user,\n List<Respuestasencuesta> respuestas, Date fecha, long idEncuesta,\n GroupMembers gm) throws Exception {\n // obetener sesion de hibernate\n Users user2 = new Users();\n Session sesion = sessionFactory.getCurrentSession();\n Session sesion2 = sessionFactory2.getCurrentSession();\n BigDecimal id = null;\n CorreosAsistencias correo = new CorreosAsistencias();\n try {\n sesion.beginTransaction();\n //crear query\n Query elQuery = sesion.createQuery(\"from Users where Username =:Username\", Users.class);\n elQuery.setParameter(\"Username\", user.getUsername());\n user2 = (Users) elQuery.getSingleResult();\n //obtener resultado\n respuestas.forEach((r) -> {\n sesion.save(r);\n });\n Query elQuery2\n = sesion.createQuery(\"update Encuesta set diligenciada = '1',\"\n + \" fechadiligenciamiento=:fecha\"\n + \" where idEncuesta =:idEncuesta\");\n elQuery2.setParameter(\"idEncuesta\", idEncuesta);\n elQuery2.setParameter(\"fecha\", fecha);\n elQuery2.executeUpdate();\n\n sesion.getTransaction().commit();\n correo.setValor(\"0\");\n correo.setCorreo(user.getUsername());\n } catch (NoResultException n) {\n try {\n //si no existe el usuario lo creo \n sesion.save(user);\n sesion.save(gm);\n //Agregando al beneficiario como emprendedor en simpc\n sesion2.beginTransaction();\n Query elQuery4 = sesion.createQuery(\"from Beneficiario where email=:Username\", Beneficiario.class);\n elQuery4.setParameter(\"Username\", user.getUsername());\n Beneficiario beneficiario = (Beneficiario) elQuery4.getSingleResult();\n Query elQuery5 = sesion2.createQuery(\"from MdFDatosBasicos where Numero_documento=:documento and \"\n + \"Tipo_documento=:tipoDocumento\", MdFDatosBasicos.class);\n elQuery5.setParameter(\"documento\", beneficiario.getNumerodocumento());\n elQuery5.setParameter(\"tipoDocumento\", beneficiario.getTipodocumentoid().getNombredocumento());\n MdFDatosBasicos basicos = (MdFDatosBasicos) elQuery5.getSingleResult();\n Emprendedor emprendedor = new Emprendedor(basicos, '1', new Timestamp(new Date(System.currentTimeMillis()).getTime()));\n sesion2.save(emprendedor);\n sesion2.getTransaction().commit();\n respuestas.forEach((r) -> {\n sesion.save(r);\n });\n Query elQuery3\n = sesion.createQuery(\"update Encuesta set diligenciada = '1',\"\n + \" fechadiligenciamiento=:fecha\"\n + \" where idEncuesta =:idEncuesta\");\n elQuery3.setParameter(\"idEncuesta\", idEncuesta);\n elQuery3.setParameter(\"fecha\", fecha);\n elQuery3.executeUpdate();\n sesion.flush();\n correo.setValor(\"1\");\n correo.setCorreo(user.getUsername());\n sesion.getTransaction().commit();\n } catch (Exception ex) {\n if (ex.getMessage().equals(MensajesBD.ERROR_USUARIO_EXISTENTE)) {\n throw new Exception(MensajesBD.ERROR_USUARIO_EXISTENTE, ex);\n } else {\n sesion.getTransaction().rollback();\n sesion2.getTransaction().rollback();\n throw new Exception(MensajesBD.ERROR_CREAR_USUARIO, ex);\n }\n }\n\n } catch (Exception ex) {\n if (ex.getMessage().equals(MensajesBD.ERROR_USUARIO_EXISTENTE)) {\n throw new Exception(MensajesBD.ERROR_USUARIO_EXISTENTE, ex);\n } else {\n sesion.getTransaction().rollback();\n throw new Exception(MensajesBD.ERROR_CREAR_USUARIO, ex);\n }\n } finally {\n if (sesion != null && sesion.isOpen()) {\n sesion.close();\n }\n }\n return correo;\n }", "title": "" }, { "docid": "1f4f665e1885d5a0cbc63f8677747e9c", "score": "0.6730987", "text": "public int registro_cliente(Usuario usuario) throws Exception\r\n {\r\n //boolean res = FUsuarios.ingresar(usuario);\r\n return 0; \r\n }", "title": "" }, { "docid": "9fb86bfbc2921c52ffaf5153add4b064", "score": "0.67177933", "text": "public Long crearUsuario(Object nuevo) throws OperacionInvalidaException;", "title": "" }, { "docid": "cd72a7d3b6fcdf07c2727c9a6a72fc8d", "score": "0.6709732", "text": "public boolean registrar(UsuarioDTO user){\n try {\n PreparedStatement ps;\n ps = con.getCnn().prepareStatement(SQL_INSERT);\n ps.setString(1, user.getNombre());\n ps.setString(2, user.getApellido());\n ps.setString(3, user.getNumeroIdentificacion());\n ps.setString(4, user.getCorreo());\n ps.setString(5, user.getClave());\n ps.setString(6, String.valueOf(user.getSexo()));\n ps.setString(7, user.getFechaNacimiento());\n ps.setString(8, user.getEstado());\n if(ps.executeUpdate() > 0){\n return true;\n }\n \n } catch (SQLException ex) {\n \n Logger.getLogger(UsuarioDAO.class.getName()).log(Level.SEVERE, null, ex);\n return false;\n }finally{\n con.cerrarConexion();\n }\n return false;\n }", "title": "" }, { "docid": "96075d6359b476f19611d9077ddc81d9", "score": "0.66968656", "text": "private void insertUser() throws Exception {\n //Pregunta al usuario que introduzca un nombre\n String name = userInfo(\"Introduzca su nombre: \");\n //Si el usuario no esta registrado\n if (!checkExist(users, name)) {\n //Conexion para escribir en el fichero sin sobreescribirlo\n FileWriter user = new FileWriter(users, true);\n //Contenido que se escribira\n String userInfo = \"#\" +\n name +\n \"#\" +\n \"\\n\";\n //Escribe el users\n user.write(userInfo);\n //Cierra la conexion\n user.close();\n //Si esta registrado tira una excepcion\n } else {\n throw new Exception(\"Usuario ya registrado\");\n }\n }", "title": "" }, { "docid": "10b16213471e66d96080ac5fd4dbebd0", "score": "0.669482", "text": "@Override\n public Usuario accederUsuario(String user, String contra, String correo) {\n conDB = new ConexionDB();\n conexion = conDB.conexionDB();\n\n Usuario usr = new Usuario();\n Cliente cl = new Cliente();\n try {\n String sqlAcceso = \"SELECT u.id_Usuario,u.userName_User,u.password_User,e2.id_Estatus,e2.nombre_Estatus,\\n\"\n + \" ru.id_TipoUser,ru.nombre_TipoUser,e.id_Estatus,e.nombre_Estatus,\\n\"\n + \" p.id_Persona ,p.nombre_Persona,p.apellidoPaterno_Persona ,p.apellidoMaterno_Persona,p.fechaNacimiento_Persona,\\n\"\n + \" p.sexo_Persona,p.telefono_Persona,p.correo_Persona,\\n\"\n + \" d.id_Direccion,d.pais_Direccion,d.estado_Direccion,d.municipio_Direccion,d.calle_Direccion,\\n\"\n + \" d.colonia_Direccion,d.codigoPostal_Direccion,d.numeroInterior_Direccion,d.numeroExterior_Direccion \\n\"\n + \" \\n\"\n + \" FROM Usuario u\\n\"\n + \" INNER JOIN Estatus e2 \\n\"\n + \" ON e2.id_Estatus = u.id_EstatusFK \\n\"\n + \" INNER JOIN RolUsuario ru \\n\"\n + \" ON ru.id_TipoUser = u.id_TipoUserFK \\n\"\n + \" INNER JOIN Estatus e \\n\"\n + \" ON e.id_Estatus = ru.id_EstatusFK \\n\"\n + \" INNER JOIN Persona p\\n\"\n + \" ON p.id_Persona = u.id_PersonaFK\\n\"\n + \" INNER JOIN Direccion d\\n\"\n + \" ON d.id_Direccion = p.id_DireccionFK \\n\"\n + \" WHERE (u.userName_User = ? AND u.password_User = ?) || (p.correo_Persona = ?)\";\n String sqlCliente = \"SELECT id_Cliente\\n\"\n + \"FROM Cliente cl\\n\"\n + \"INNER JOIN Persona p\\n\"\n + \"ON p.id_Persona = cl.id_PersonaFK\\n\"\n + \"INNER JOIN Direccion d\\n\"\n + \"ON d.id_Direccion = p.id_DireccionFK \\n\"\n + \"WHERE p.correo_Persona = ? LIMIT 1\";\n\n ps = conexion.prepareStatement(sqlAcceso);\n ps.setString(1, user);\n ps.setString(2, contra);\n ps.setString(3, correo);\n \n rs = ps.executeQuery();\n \n if (rs != null && rs.next()) {\n usr.setId_Usuario(rs.getInt(\"id_Usuario\"));\n usr.setUserName(rs.getString(\"userName_User\"));\n usr.setContra(rs.getString(\"password_User\"));\n\n usr.getEstatusUsuario().setId_Estatus(rs.getInt(4));\n usr.getEstatusUsuario().setNombre_Estatus(rs.getString(5));\n\n usr.getRolUsuario().setId_RolUduario(rs.getInt(6));\n usr.getRolUsuario().setNombre_RolUsuario(rs.getString(7));\n\n usr.getRolUsuario().getRolEstatus().setId_Estatus(rs.getInt(8));\n usr.getRolUsuario().getRolEstatus().setNombre_Estatus(rs.getString(9));\n\n usr.getPersonaUsuario().setId_Persona(rs.getInt(\"id_Persona\"));\n usr.getPersonaUsuario().setNombre_Persona(rs.getString(\"nombre_Persona\"));\n usr.getPersonaUsuario().setPaterno_Persona(rs.getString(\"apellidoPaterno_Persona\"));\n usr.getPersonaUsuario().setMaterno_Persona(rs.getString(\"apellidoMaterno_Persona\"));\n usr.getPersonaUsuario().setFechaNacimiento_Persona(rs.getString(\"fechaNacimiento_Persona\"));\n usr.getPersonaUsuario().setSexo_Persona(rs.getString(\"sexo_Persona\"));\n usr.getPersonaUsuario().setTelefono_Persona(rs.getString(\"telefono_Persona\"));\n usr.getPersonaUsuario().setCorreo_Persona(rs.getString(\"correo_Persona\"));\n\n usr.getPersonaUsuario().getDireccionPersona().setId_Direccion(rs.getInt(\"id_Direccion\"));\n usr.getPersonaUsuario().getDireccionPersona().setPais_Direccion(rs.getString(\"pais_Direccion\"));\n usr.getPersonaUsuario().getDireccionPersona().setEstado_Direccion(rs.getString(\"estado_Direccion\"));\n usr.getPersonaUsuario().getDireccionPersona().setMunicipio_Direccion(rs.getString(\"municipio_Direccion\"));\n usr.getPersonaUsuario().getDireccionPersona().setCalle_Direccion(rs.getString(\"calle_Direccion\"));\n usr.getPersonaUsuario().getDireccionPersona().setColonia_Direccion(rs.getString(\"colonia_Direccion\"));\n usr.getPersonaUsuario().getDireccionPersona().setCodigoPostal_Direccion(rs.getString(\"codigoPostal_Direccion\"));\n usr.getPersonaUsuario().getDireccionPersona().setNumeroInterior_Direccion(rs.getString(\"numeroInterior_Direccion\"));\n usr.getPersonaUsuario().getDireccionPersona().setNumeroExterior_Direccion(rs.getString(\"numeroExterior_Direccion\"));\n String sqlPermisos = \"SELECT id_Menu FROM permisoMenu WHERE id_TipoUser = ?\";\n ps = conexion.prepareStatement(sqlPermisos);\n ps.setInt(1, usr.getRolUsuario().getId_RolUduario());\n rs = ps.executeQuery();\n\n while (rs != null && rs.next()) {\n usr.getRolUsuario().getPermisos().add(rs.getInt(1));\n }\n }\n\n String sqlCountPermisos = \"SELECT COUNT(pm.id_permisoMenu) AS cont \"\n + \"FROM permisoMenu pm WHERE id_TipoUser = ?\";\n ps = conexion.prepareStatement(sqlCountPermisos);\n ps.setInt(1, usr.getRolUsuario().getId_RolUduario());\n rs = ps.executeQuery();\n if (rs.next()) {\n int conteo = rs.getInt(\"cont\");\n if (conteo != 16) {\n ps = conexion.prepareStatement(sqlCliente);\n ps.setString(1, usr.getPersonaUsuario().getCorreo_Persona());\n rs = ps.executeQuery();\n if (rs != null && rs.next()) {\n\n usr.getClienteUsuario().setId_Cliente(rs.getInt(1));\n usr.getClienteUsuario().getPersonaCliente().setNombre_Persona(usr.getPersonaUsuario().getNombre_Persona());\n usr.getClienteUsuario().getPersonaCliente().setTelefono_Persona(usr.getPersonaUsuario().getTelefono_Persona());\n }\n }\n if (conteo == 16) {\n System.out.println(\"ENtro aqui\");\n String sqlSinDatos = \"SELECT c.id_Cliente, \\n\"\n + \"p.nombre_Persona,p.apellidoPaterno_Persona,p.apellidoMaterno_Persona,p.telefono_Persona \\n\"\n + \"FROM Cliente c \\n\"\n + \"INNER JOIN Persona p \\n\"\n + \"ON p.id_Persona = c.id_PersonaFK \\n\"\n + \"WHERE p.nombre_Persona = ? && p.apellidoPaterno_Persona = ?\";\n ps = conexion.prepareStatement(sqlSinDatos);\n ps.setString(1, \"null\");\n ps.setString(2, \"null\");\n rs = ps.executeQuery();\n if (rs != null && rs.next()) {\n \n usr.getClienteUsuario().setId_Cliente(rs.getInt(1));\n usr.getClienteUsuario().getPersonaCliente().setNombre_Persona(rs.getString(2));\n usr.getClienteUsuario().getPersonaCliente().setTelefono_Persona(rs.getString(5));\n }\n }\n }\n\n } catch (SQLException ex) {\n System.out.println(\"err Acceder Usuario \" + ex.getMessage());\n Logger.getLogger(ConsultaUsuario.class.getName()).log(Level.SEVERE, null, ex);\n } finally {\n try {\n ps.close();\n rs.close();\n conexion.close();\n } catch (SQLException ex) {\n System.out.println(\"cerro la conexion a DB COnsultar usuario \" + ex.getMessage());\n Logger.getLogger(ConsultaUsuario.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n return usr;\n\n }", "title": "" }, { "docid": "72c9eb63b6675fb6e51f811e37928f7d", "score": "0.66762173", "text": "public User getUsuario(){\n return usuario;\n }", "title": "" }, { "docid": "dd02c91acdb38edcab673c136a1927b8", "score": "0.6671563", "text": "void saveUsuario(Usuarios usuario, Context context);", "title": "" }, { "docid": "02db03f8f23205b991445a0e33cdfa49", "score": "0.66616374", "text": "protected Long setUser(UtilDB udb, String login, boolean activo)\n\t{\n/*\n\t\tUserDTO u = new UserDTO();\n\t\tu.setActivated(activo); // NO lo usa el m�todo createUser. Considero que es un error\n\t\tu.setFirstName(login);\n\t\tu.setCreatedBy(\"user\");\n\t\tu.setCreatedDate(Instant.now());\n\t\tu.setLogin(login);\n//\t\tu.setPassword(\"AAAAAAAAAAA\");\n\t\tUser user = userService.createUser(u);\n\t\tu.setId(user.getId());\n\t\tuserService.updateUser(u); // Es surrealista: el updateUser SI que tiene en cuenta el campo activated\n\n\t\tSet<Authority> authorities = new HashSet<>();\n\t\tAuthority auth = new Authority();\n\t\tauth.setName(rol);\n\t\tAuthorityRepository kk;\n\t\tkk.save(auth);\n\t\tauthorities.add(auth);\n\t\tuser.setAuthorities(authorities);\n*/\n\t\tString iUser = \n\t\t\t\t\"[\\r\\n\" + \n\t\t\t\t\"\t{\\r\\n\" + \n\t\t\t\t\"\t\t\\\"tabla\\\":\\\"jhi_user\\\",\\r\\n\" + \n\t\t\t\t\"\t\t\\\"meta\\\":[\\r\\n\" + \n\t\t\t\t\"\t\t\t{\\\"nombre\\\":\\\"id\\\" ,\\\"tipo\\\":\\\"Int\\\"},\\r\\n\" + \n\t\t\t\t\"\t\t\t{\\\"nombre\\\":\\\"created_by\\\" ,\\\"tipo\\\":\\\"String\\\"},\\r\\n\" + \n\t\t\t\t\"\t\t\t{\\\"nombre\\\":\\\"created_date\\\" ,\\\"tipo\\\":\\\"Date\\\"},\\r\\n\" + \n\t\t\t\t\"\t\t\t{\\\"nombre\\\":\\\"last_modified_by\\\" ,\\\"tipo\\\":\\\"String\\\"},\\r\\n\" + \n\t\t\t\t\"\t\t\t{\\\"nombre\\\":\\\"last_modified_date\\\",\\\"tipo\\\":\\\"Date\\\"},\\r\\n\" + \n\t\t\t\t\"\t\t\t{\\\"nombre\\\":\\\"activated\\\" ,\\\"tipo\\\":\\\"Boolean\\\"},\\r\\n\" + \n\t\t\t\t\"\t\t\t{\\\"nombre\\\":\\\"activation_key\\\" ,\\\"tipo\\\":\\\"String\\\"},\\r\\n\" + \n\t\t\t\t\"\t\t\t{\\\"nombre\\\":\\\"email\\\" ,\\\"tipo\\\":\\\"String\\\"},\\r\\n\" + \n\t\t\t\t\"\t\t\t{\\\"nombre\\\":\\\"first_name\\\" ,\\\"tipo\\\":\\\"String\\\"},\\r\\n\" + \n\t\t\t\t\"\t\t\t{\\\"nombre\\\":\\\"image_url\\\" ,\\\"tipo\\\":\\\"String\\\"},\\r\\n\" + \n\t\t\t\t\"\t\t\t{\\\"nombre\\\":\\\"lang_key\\\" ,\\\"tipo\\\":\\\"String\\\"},\\r\\n\" + \n\t\t\t\t\"\t\t\t{\\\"nombre\\\":\\\"last_name\\\" ,\\\"tipo\\\":\\\"String\\\"},\\r\\n\" + \n\t\t\t\t\"\t\t\t{\\\"nombre\\\":\\\"login\\\" ,\\\"tipo\\\":\\\"String\\\"},\\r\\n\" + \n\t\t\t\t\"\t\t\t{\\\"nombre\\\":\\\"password_hash\\\" ,\\\"tipo\\\":\\\"String\\\"},\\r\\n\" + \n\t\t\t\t\"\t\t\t{\\\"nombre\\\":\\\"reset_date\\\" ,\\\"tipo\\\":\\\"Date\\\"},\\r\\n\" + \n\t\t\t\t\"\t\t\t{\\\"nombre\\\":\\\"reset_key\\\" ,\\\"tipo\\\":\\\"String\\\"},\\r\\n\" + \n\t\t\t\t\"\t\t\t{\\\"nombre\\\":\\\"scale\\\" ,\\\"tipo\\\":\\\"Integer\\\"}\\r\\n\" + \n\t\t\t\t\"\t\t],\\r\\n\" + \n\t\t\t\t\"\t\t\\\"data\\\":[\\r\\n\" + \n\t\t\t\t\"\t\t\t{\\r\\n\" + \n\t\t\t\t\"\t\t\t\t\\\"id\\\" :${id},\\r\\n\" + \n\t\t\t\t\"\t\t\t\t\\\"created_by\\\" :\\\"${created_by}\\\",\\r\\n\" + \n\t\t\t\t\"\t\t\t\t\\\"created_date\\\" :\\\"${created_date}\\\",\\r\\n\" + \n\t\t\t\t\"\t\t\t\t\\\"activated\\\" :${activated}, \\r\\n\" + \n\t\t\t\t\"\t\t\t\t\\\"login\\\" :\\\"${login}\\\",\\r\\n\" + \n\t\t\t\t\"\t\t\t\t\\\"password_hash\\\":\\\"${password_hash}\\\"\\r\\n\" + \n\t\t\t\t\"\t\t\t}\\r\\n\" + \n\t\t\t\t\"\t\t]\\r\\n\" + \n\t\t\t\t\"\t\t\\r\\n\" + \n\t\t\t\t\"\t}\\r\\n\" + \n\t\t\t\t\"]\\r\\n\" + \n\t\t\t\t\"\";\n\t\tLong id = new Date().getTime();\n\t\tiUser = iUser.replace(\"${id}\" ,Long.toString(id));\n\t\tiUser = iUser.replace(\"${created_by}\" ,\"admin\");\n\t\tiUser = iUser.replace(\"${created_date}\" ,\"2019-06-05 00:00:00\");\n\t\tiUser = iUser.replace(\"${activated}\" ,Boolean.toString(activo));\n\t\tiUser = iUser.replace(\"${login}\" ,login);\n\t\tiUser = iUser.replace(\"${password_hash}\",\"XXXXXXXXXXXXXXXXXXXXXXXXXXX\");\n\t\t\n\t\ttry {\n\t\t\tudb.insert(iUser);\n\t\t} catch (IOException | ParseException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn id;\n\t}", "title": "" }, { "docid": "a16dd6e3a64c8e5da0c28ab3c5a19c0d", "score": "0.66565764", "text": "public boolean login(Usuario usr) {\n PreparedStatement ps = null;//Objeto que permite usar declaraciones preparadas por la libreria para un facil acceso a MySql\n ResultSet rs = null;//Muestra Datos almacenados en la BD\n Connection con;//objeto que permite la conexion a la BD(MySql)\n con= ManipulaDBC.conectaDB();//Objeto que permite manipular a la BD\n //Codigo MySql para Seleccionar(o bien Buscar) Registros, guardado en una Variable de tipo String\n //para seleccionar elementos en la Tabla Usuarios de la BD, previamente diseñada\n String sql = \"SELECT idcuenta,nombre, tipo, Apaterno, Amaterno, password, tipo_pregunta, respuesta, correo FROM usuario WHERE idcuenta =?\";\n try {\n ps = con.prepareStatement(sql);//Precarga declaraciondes por default de MySql\n ps.setString(1, usr.getUser());//Busqueda de usuario\n rs = ps.executeQuery();//Muestra el Resultado del usuario encontrado\n \n if (rs.next()) {//muestra todos los datos del usuario encontrado\n if (usr.getPassword().equals(rs.getString(6))) {//Comprueba que el password sea correcto y coicida con el usuario \n //Envia datos del Usuario ubicado a la clase entidad Usuarios \n usr.setNombreUser(rs.getString(2));\n usr.setTipo(rs.getInt(3));\n usr.setApaterno(rs.getString(4));\n usr.setAmaterno(rs.getString(5));\n usr.setPregunta(rs.getInt(7));\n usr.setRespuesta(rs.getString(8));\n usr.setCorreo(rs.getString(9));\n \n return true;// Retorna una comprobacion de la existencia del usuario en la BD \n } else {\n return false;\n }\n }\n\n return false;\n } catch (SQLException e) {\n JOptionPane.showMessageDialog(null, e.toString());//Mensajes de Error\n return false;\n } finally {\n try {\n con.close();//libera conexion de la BD\n } catch (SQLException e) {\n JOptionPane.showMessageDialog(null, e.toString());//Mas mensajes de error \n }\n }\n \n }", "title": "" }, { "docid": "c6e21756e36421176462e1b2aef0ee07", "score": "0.6654814", "text": "public void addUser(String idCliente, String email, String Nombre, String Rut, String fNacimiento, String Direccion, String Fono1, String Fono2,\n\t\t\t\t\t\tString Departamento, String Provincia, String Distrito, String fcreacion, String factualizacion) {\n\t\tSQLiteDatabase db = this.getWritableDatabase();\n\n\t\tContentValues values = new ContentValues();\n\t\tvalues.put(KEY_IDCLIENTE, idCliente);\n\t\tvalues.put(KEY_EMAIL, email);\n\t\tvalues.put(KEY_NOMBRE, Nombre);\n\t\tvalues.put(KEY_RUT, Rut);\n\t\tvalues.put(KEY_FNACIMIENTO, fNacimiento);\n\t\tvalues.put(KEY_DIRECCION, Direccion);\n\t\tvalues.put(KEY_FONO1, Fono1);\n\t\tvalues.put(KEY_FONO2, Fono2);\n\t\tvalues.put(KEY_DEPTO, Departamento);\n\t\tvalues.put(KEY_PROV, Provincia);\n\t\tvalues.put(KEY_DIST, Distrito);\n\t\tvalues.put(KEY_FCREACION, fcreacion);\n\t\tvalues.put(KEY_FACTUALIZACION, factualizacion);\n\n\t\t// Inserting Row\n\t\tlong id = db.insert(TABLE_USER, null, values);\n\t\tdb.close(); // Closing database connection\n\n\n\t}", "title": "" }, { "docid": "b03f4bf057b090530e01b5a75419354a", "score": "0.6647169", "text": "@Override\n\tpublic Usuario buscar(int identificador) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "dbfb78d28e1acc18fff98ddee2676987", "score": "0.6645798", "text": "@Override\n\tpublic Usuario save(Usuario obj) {\n\t\treturn usuarioRepo.save(obj);\n\t}", "title": "" }, { "docid": "c980e7fc9a39f1a9f14383264b1b2efe", "score": "0.664313", "text": "private Usuario Usuario() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "5eab3d551086caa31214b48945d0154c", "score": "0.6633138", "text": "@Override\n\tpublic void save(user objeto) {\n\t\tStringBuilder sql = new StringBuilder();\n\t\tsql.append(\"insert into user values(?,?);\");\n\n\t\ttry {\n\t\t\tConnection connection = Factory.createConnection();\n\t\t\tPreparedStatement stmt = connection.prepareStatement(sql.toString());\n\t\t\t\n\t\t\tstmt.setString(1, objeto.getUsername());\n\t\t\tstmt.setString(2, objeto.getPassword());\n\n\t\t\tstmt.executeUpdate();\n\t\t\tstmt.close();\n\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\tSystem.out.println(\"erro\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "8adbf3557d0844776308183954a5b8a1", "score": "0.66182613", "text": "@Override\r\n public Long crearUsuario(Object nuevo) throws OperacionInvalidaException {\r\n if (nuevo instanceof DoctorDTO) {\r\n this.persistenciaDoctor.create(nuevo);\r\n return (long) ((DoctorDTO) nuevo).getNoIdentificacion();\r\n } else if (nuevo instanceof PacienteDTO) {\r\n this.persistenciaPaciente.create(nuevo);\r\n return (long) ((PacienteDTO) nuevo).getNoIdentificacion();\r\n } else {\r\n return (long) -1;\r\n }\r\n }", "title": "" }, { "docid": "dfccbbfa9be5f69a953098f8b073d771", "score": "0.66138893", "text": "public EmpleadoModel guardarUsuario(EmpleadoModel empleado) {\n EmpleadoModel empleadoNuevo = empleadoRepository.save(empleado);\n UsuarioModel usuario = usuarioRepository\n .findByIdentificacion(empleadoNuevo.getIdentificacion()).orElse(new UsuarioModel());\n System.out.println(\"usuario: \" + usuario.toString());\n if (usuario.getId() == null) {\n UsuarioModel usuarioNuevo = new UsuarioModel(empleadoNuevo);\n usuarioRepository.save(usuarioNuevo);\n }\n return empleadoNuevo;\n }", "title": "" }, { "docid": "6791304cbcc9c27a3506113a9ec5d561", "score": "0.6612953", "text": "public void saveUser() {\n\t\tUser user = new User();\n\t\tuser.setId(UUID.randomUUID().toString().replaceAll(\"-\", \"\"));\n\t\tuser.setName(this.username);\n\t\tuser.setPwd(this.password);\n\t\tuser.setCreatedatetime(new Date());\n\t\tuserService.save(user);\n\t\tFacesContext.getCurrentInstance().addMessage(null, new FacesMessage(\"You've registered\"));\n\t}", "title": "" }, { "docid": "fc8e6d5b3e14749bbc988b4007527399", "score": "0.6610161", "text": "public User registerUser (User newUser){\r\n return userDB.save(newUser);\r\n }", "title": "" }, { "docid": "8a67c3f187fdc8b565d4dfd855f6d131", "score": "0.6609084", "text": "@Override\n\tpublic boolean create(Usuario t) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "6e6a423847f956d35e3dfe2ca98a3aa0", "score": "0.6595023", "text": "public Usuario buscarPorUserName(String username);", "title": "" }, { "docid": "d9058bbddd87b1403e2a3be01c6bf83e", "score": "0.65944535", "text": "public void SalvarNovoUsuario() {\n\n\t\tusuarioRepository.SalvarNovoRegistro(this.usuarioModel);\n\n\t\tthis.usuarioModel = null;\n\n\t\tUteis.MensagemInfo(\"Usuário cadastrado com sucesso\");\n\n\t}", "title": "" }, { "docid": "fc4cbd80be2f00f8640cd86401b79e37", "score": "0.65854186", "text": "public Usuario BuscarUsuario(int Id){\r\n return cUsr.BuscarUsuario(Id);\r\n }", "title": "" }, { "docid": "f0ebd80169b13b11f8a426aaedef95b9", "score": "0.6582482", "text": "public Usuario crearUsuario(TipoUsuarioEnum tipoUsuario, String nombre, Integer pais, TipoDocuEnum tipoDocumento,\n String documento, Date fechaNacimiento, String email, String password) {\n\n Usuario usuario = new Usuario();\n usuario.setTipoUsuarioId(tipoUsuario);\n usuario.setFullname(nombre);\n usuario.setUsername(email);\n usuario.setPassword(Crypto.encrypt(password, email.toLowerCase()));\n usuario.setEmail(email);\n switch (tipoUsuario) {\n case ESTUDIANTE:\n\n Estudiante estudiante = new Estudiante();\n estudiante.setNombre(nombre);\n estudiante.setPaisId(pais);\n estudiante.setTipoDocumentoId(tipoDocumento);\n estudiante.setDocumento(documento);\n estudiante.setFechaNacimiento(fechaNacimiento);\n estudiante.setUsuario(usuario);\n estudianteService.crearEstudiante(estudiante);\n break;\n\n case DOCENTE:\n Docente docente = new Docente();\n docente.setNombre(nombre);\n docente.setPaisId(pais);\n docente.setTipoDocumentoId(tipoDocumento);\n docente.setDocumento(documento);\n docente.setFechaNacimiento(fechaNacimiento);\n docente.setUsuario(usuario);\n docenteService.crearDocente(docente);\n break;\n\n default:\n case STAFF :\n usuarioRepository.save(usuario);\n\n break;\n }\n\n // Aca enviamos email.\n emailService.SendEmail(usuario.getEmail(), \"Curso Pinturillo: Registracion exitossa!!!\",\n \"Hola \" + usuario.getFullname() + \", bienvenida al sistema de cursos\");\n return usuario;\n\n }", "title": "" }, { "docid": "b07d1c6346fddc49eb6d2c3642d994a0", "score": "0.6579717", "text": "@java.lang.Override\n public int getIdUsuario() {\n return idUsuario_;\n }", "title": "" }, { "docid": "5b9879edb76b7c32dac313a6570d51c3", "score": "0.6572764", "text": "public ObjetoBean consultaUsuario(ObjetoBean Usuario) {\n\t\tBBDDFachada bd = BBDDFachada.getInstance();\n\t\tListaObjetoBean l = bd.consultar(Usuario);\n\t\treturn l.dameObjeto(0);\n\n\t}", "title": "" }, { "docid": "13791bc8db6260519836e790a2f1e24b", "score": "0.65722066", "text": "@Override\n public String registrar(Trainer trainer, String rols) {\n trainer.setUsername(trainer.getUsername().toLowerCase());\n if (securityUserRepository.findByUsername(trainer.getUsername()) == null) {\n try{\n //2: Entrenador\n String[] arrRoles = rols.split(\",\");\n List<com.itsight.domain.Rol> lstRoles = rolService.findByIdsIn(Arrays.asList(Parseador.stringArrayToIntArray(arrRoles)));\n List<Rol> lstJsonRoles = lstRoles.stream()\n .map(rol -> new Rol(rol.getId(), rol.getRol()))\n .collect(Collectors.toList());\n trainer.setRoles(lstJsonRoles);\n\n trainer.setPassword(Utilitarios.encoderPassword(trainer.getPassword()));\n //Añadiendo las credenciales de ingreso\n SecurityUser secUser = new SecurityUser(trainer.getUsername().toLowerCase(), trainer.getPassword(), trainer.isFlagActivo());\n //Añadiendo el role de colaborador\n Set<SecurityRole> listSr = new HashSet<>();\n for (Rol rol : trainer.getRoles()) {\n listSr.add(new SecurityRole(rol.getNombre(), secUser));\n }\n //Adding to User\n secUser.setRoles(listSr);\n //secUser.addTrainer(trainer);\n //Validamos si presenta un rol de entrenador\n int flagTrainer = trainer.getRoles().stream().filter(r -> r.getId() == 2).findFirst().isPresent() ? 1 : 0;\n //Generando codigo de entrenador en caso tenga el rol de entrenador\n if (flagTrainer == 1) {\n trainer.setCodigoTrainer(secUser.getUsername());\n }\n //Guardando trainer de autenticacion\n trainer.setSecurityUser(secUser);\n repository.save(trainer);\n //securityUserRepository.save(secUser);\n //Generando las mini_plantillas al entrenador en caso lo sea\n if (flagTrainer == 1) {\n cargarRutinarioCe(trainer.getId());\n //Generando los porcentajes kilometricos para macro-ciclo\n agregandoPorcentajesK(trainer);\n }\n\n //Enviando correo al nuevo trainer\n //StringBuilder sb = MailContents.contenidoNuevoUsuario(trainer.getUsername(), originalPassword, ENTRENADOR.ordinal(), domainName);\n //emailService.enviarCorreoInformativo(\"Bienvenido a la familia\", trainer.getCorreo(), sb.toString());\n return trainer.getId().toString();\n } catch (Exception e){\n e.printStackTrace();\n }\n }\n return ResponseCode.VF_USUARIO_REPETIDO.get();\n }", "title": "" }, { "docid": "e4d78608b859f75c983b499486e7a482", "score": "0.6568816", "text": "public int getIdUsuario() {\n return idUsuario;\n }", "title": "" }, { "docid": "352519b3a115e06b9687c5cc1c8dd85b", "score": "0.6568512", "text": "public String save() {\n if (user.getId() != null) {\n //This is necessary to get previous Authorities related to the user\n User updatedUser = userService.find(user.getId());\n \n //Replace values with form values \n updatedUser.setUsername(user.getUsername());\n updatedUser.setPassword(user.getPassword());\n \n //Enable the user so he/she can log in\n updatedUser.setEnabled(true);\n //Make user ADMIN\n giveAdminAuthority(updatedUser);\n \n userService.save(updatedUser);\n } else{\n //Enable the user so he/she can log in\n user.setEnabled(true);\n //Make user ADMIN\n giveAdminAuthority(user);\n \n userService.save(user);\n }\n this.user = new User();\n return execute();\n }", "title": "" }, { "docid": "80b11099673ac4c0967114a9ce7a8db9", "score": "0.6567715", "text": "int insert(UsuarioSubscrito record);", "title": "" }, { "docid": "1e922fe08c2fdde967e7ec94068f061d", "score": "0.6563053", "text": "public interface UserDao {\n\n\t/** Busca un usuario con el nombre especificado; si existe, valida su\n\t * password y si es correcto devuelve el usuario. */\n\tpublic Usuario validaLogin(String username, String password);\n\n\t/** Devuelve una lista con todos los usuarios registrados en el sistema. */\n\tpublic List<Usuario> getAllUsers();\n\n\t/** Devuelve al usuario con la clave especificada. */\n\tpublic Usuario getUser(int id);\n /** Devuelve el usuario que tenga el email indicado. */\n public Usuario findByEmail(String email);\n\n\t/** Inserta un nuevo usuario a la base de datos. */\n\tpublic void insert(Usuario u);\n\n\t/** Actualiza los datos de un usuario en base de datos. */\n\tpublic void update(Usuario u);\n\n\t/** Elimina de la base de datos al usuario especificado. */\n\tpublic void delete(Usuario u);\n\n\t/** Agrega el tag indicado al usuario. Si no existe el tag aun, se registra primero en base de datos. */\n\tpublic void addTag(String tag, Usuario u);\n\n\t/** Devuelve una lista de tags cuyo texto contenga la cadena parcial especificada. */\n\tpublic List<TagUsuario> findMatchingTags(String parcial);\n\n /** Cifra un password con los datos adicionales de ID y nombre de usuario. */\n public String cifraPassword(String pass, String uname, int uid);\n\n}", "title": "" }, { "docid": "0d9738464403df1979911319cb90c48e", "score": "0.6556852", "text": "private void insertarUsuario(uniandes.cupi2.biblioteca.mundo.implementacion1.Usuario usuario) throws uniandes.cupi2.biblioteca.mundo.excepciones.UsuarioPreexistenteException {\r\n if ((tablaUsuario.dar(usuario.darLogin())) != null)\r\n throw new uniandes.cupi2.biblioteca.mundo.excepciones.UsuarioPreexistenteException(usuario);\r\n \r\n tablaUsuario.agregar(usuario.darLogin() ,usuario);\r\n usuariosSerializacion.agregar(usuario);\r\n }", "title": "" }, { "docid": "2d88227f3ce895d3db8d90d7f530316a", "score": "0.6554936", "text": "@Override\n\tpublic User findNewUser() {\n\t\treturn userDao.findNewUser();\n\t}", "title": "" }, { "docid": "54ec69bcb8a8a0778e3a098495d545d0", "score": "0.65476507", "text": "void registrarAuditoriaActividadUsuario(AuditoriaActividadUsuarioDTO au) throws Exception;", "title": "" }, { "docid": "1ade63a33676d9a2ced4deb1d59de15a", "score": "0.6547508", "text": "public String obtenerUsuario(){\n\t\treturn textFieldIdUsuario.getText();\n\t}", "title": "" }, { "docid": "ec00155cca1d186b9c6e447c0877b5ba", "score": "0.6543306", "text": "User createUser();", "title": "" }, { "docid": "ec00155cca1d186b9c6e447c0877b5ba", "score": "0.6543306", "text": "User createUser();", "title": "" }, { "docid": "b9b45ad03fdde2d5f34cf944d72e3e65", "score": "0.65307176", "text": "private void carregaTabelaUsuario() {\n UsuariosBO usuarioBO = new UsuariosBO();\n \n try {\n if(filtro == null){\n this.listaUsuarios = usuarioBO.buscarTodos();\n }\n else{\n this.listaUsuarios = usuarioBO.buscarTodos();\n }\n } catch (Exception e) {\n }\n }", "title": "" }, { "docid": "bc2dc3f17c3da1e33e8907837b55e3b1", "score": "0.65293574", "text": "public void create(Usuario usuario) {\n BD bd = new BD();\n\n String sql = \"INSERT INTO usuario(emailUser, passwordUser, nameUser, foneUser) VALUES(?, ?, ?, ?)\";\n\n boolean conn = false;\n PreparedStatement pstm = null;\n\n try {\n // criar uma conex�o com o banco de dados\n conn = bd.getConnection();\n\n pstm = bd.con.prepareStatement(sql);\n pstm.setString(1, usuario.getEmail());\n pstm.setString(2, usuario.getSenha());\n pstm.setString(3, usuario.getNome());\n pstm.setString(4, usuario.getTelefone());\n\n // executar a query\n pstm.execute();\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, e);\n } finally {\n // fechar as conex�es\n try {\n if (pstm != null) {\n pstm.close();\n }\n if (conn == true) {\n bd.close();\n }\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, e);\n }\n }\n }", "title": "" }, { "docid": "e01de9e11315372217fbf65e692a7863", "score": "0.6525304", "text": "public String getUsuario() {\n return usuario;\n }", "title": "" }, { "docid": "e01de9e11315372217fbf65e692a7863", "score": "0.6525304", "text": "public String getUsuario() {\n return usuario;\n }", "title": "" }, { "docid": "06011051bfafd5254d22e0b1f4fd87cc", "score": "0.65075356", "text": "public static boolean agregarUsuario(Usuario usuario,String password) {\n boolean hecho = false;\n boolean estabaAbierta = true;\n try {\n if(Conex==null || Conex.isClosed()){\n estabaAbierta = false;\n abrirBD();\n }\n Sentencia_preparada = Conex.prepareStatement(Consultas.insertUsuario());\n Sentencia_preparada.setInt(1, usuario.getActivo());\n Sentencia_preparada.setString(2, usuario.getEmail());\n Sentencia_preparada.setString(3, Funciones.encriptarTexto(password));\n Sentencia_preparada.setString(4, usuario.getNombre());\n Sentencia_preparada.setString(5, usuario.getApellidos());\n Sentencia_preparada.setString(6, usuario.getDescripcion());\n Sentencia_preparada.setInt(7, usuario.getGenero());\n Sentencia_preparada.setString(8, usuario.getFechaNacimiento().isBlank()?null:usuario.getFechaNacimiento());\n Sentencia_preparada.setString(9, usuario.getPais());\n Sentencia_preparada.setString(10, usuario.getCiudad());\n hecho = ConexionEstatica.Sentencia_preparada.executeUpdate()>0;\n LinkedList<Integer> roles = usuario.getRoles();\n if(hecho){\n usuario = existeUsuario(usuario.getEmail());\n for(int rol:roles){\n try {\n Sentencia_preparada = Conex.prepareStatement(Consultas.insertUsuarioRol());\n Sentencia_preparada.setInt(1, usuario.getId());\n Sentencia_preparada.setInt(2, rol);\n ConexionEstatica.Sentencia_preparada.executeUpdate();\n } catch (Exception e) {\n System.err.println(\"agregarUsuarioRol[Error] \"+e.getMessage());\n }\n }\n }\n } catch (SQLException ex) {\n System.err.println(\"agregarUsuario[Error] \"+ex.getMessage());\n hecho = false;\n } finally {\n if(!estabaAbierta)cerrarBD();\n }\n\n return hecho;\n }", "title": "" }, { "docid": "801da025ff7adca72a1b9e7aa70d4d25", "score": "0.6500802", "text": "@java.lang.Override\n public int getIdUsuario() {\n return idUsuario_;\n }", "title": "" }, { "docid": "ec47aa427500a5891b7492d49863c34a", "score": "0.6500685", "text": "public void validarUsuario() {\r\n\r\n\t\ttry {\r\n\r\n\t\t\tusuarioSession = adminUsuario.validarUsuario(this.usuario, this.clave);\r\n\r\n\t\t\tanadirMensajeInformacion(\"Usuario encontrado\");\r\n\r\n\t\t\tFacesContext.getCurrentInstance().getExternalContext().redirect(\"./principal.adp\");\r\n\r\n\t\t} catch (Exception e) {\r\n\r\n\t\t\tanadirMensajeAdvertencia(e.getMessage());\r\n\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "029db313965939506c32f6deb3ce95f3", "score": "0.6496148", "text": "@Override\n\tprotected void accionModifica() {\n\t\tnew VistaModificaUsuario(controlador);\n\t}", "title": "" }, { "docid": "5fc949270b6242dbc7cd7b210602491a", "score": "0.6482989", "text": "public void setUsuarioInsercion(String p) { this.usuarioInsercion = p; }", "title": "" }, { "docid": "5c31486e3a85ec1c55f23f3343ffaf0d", "score": "0.6474926", "text": "public void add() {\n\t\tbeinguser temp = new beinguser();\n\t\ttemp.set(\"username\", getPara(\"userName\"));\n\t\ttemp.set(\"passwords\", getPara(\"password\"));\n\t\ttemp.set(\"email\", getPara(\"email\"));\n\t\ttemp.set(\"rank\", 1);\n\t\ttemp.set(\"sno\", getPara(\"sno\"));\n\t\tList<user> userlist = user.me.find(\"select * from user where username = \\\"\" + getPara(\"userName\") + \"\\\"\"\n\t\t\t\t+ \" or \" + \" sno = \\\"\" + getPara(\"sno\") + \"\\\";\");\n\t\tif (userlist.size() > 0) {\n\t\t\tsetAttr(\"msg\", \"Your username or studentNo have already used!\");\n\t\t\trender(\"register.jsp\");\n\t\t}\n\t\telse {\n\t\t\ttemp.save();\n//\t\t\tsetAttr(\"msg\", \"\");\n\t\t\trender(\"index.jsp\");\n\t\t}\n\t}", "title": "" }, { "docid": "4a530bbedb0f6058dad1379044b6c85e", "score": "0.647342", "text": "public static User addRegistro(String dniBuscar) {\n \n /*Conexión a Mongo con su base de datos*/\n MongoCollection coll = MongoConnection.getCollection();\n \n /*Buscamos el objeto del usuario por su dni*/\n Document myDoc = (Document) coll.find(eq(\"dni\", dniBuscar)).first();\n \n /*Listado de registros del usuario*/\n List<Document> registrosDelUsuario = (List<Document>) myDoc.get(\"registros\");\n \n /*Tipo del último registro insertado en base de datos*/\n String ultimoRegistro = myDoc.get(\"ultimoRegistro\").toString();\n \n /*Usuario que vamos a devolver como respuesta al método*/\n User usuarioResp = new User();\n \n // Convert Instant to Date.\n LocalDateTime now = LocalDateTime.now(ZoneOffset.UTC);\n \n /*Id que le vamos a asignar al registro de ENTRADA/SALIDA del usuario*/\n String idRegistro = new ObjectId().toString();\n \n /*Filtro que usaremos para filtrar en base de datos*/\n Bson filter = eq(\"dni\", dniBuscar);\n \n Document registro = new Document();\n\n if (registrosDelUsuario.isEmpty() || ultimoRegistro.equalsIgnoreCase(\"salida\")) {\n\n UserCRUD.setUltimoRegistro(tipoRegistro.ENTRADA, dniBuscar);\n registro.put(\"id\", idRegistro);\n registro.put(\"entrada\", now);\n registrosDelUsuario.add(registro);\n coll.updateOne(filter, Updates.push(\"registros\", registro));\n usuarioResp.setUltimoRegistro(tipoRegistro.ENTRADA);\n\n } else {\n \n int index = registrosDelUsuario.size() - 1;\n Document ultimoRegistroBaseDatos = registrosDelUsuario.get(index);\n Date fechaMongo = (Date) ultimoRegistroBaseDatos.get(\"entrada\");\n long longNow = now.toInstant(ZoneOffset.UTC).toEpochMilli();\n long longEntrada = fechaMongo.getTime();\n long diff = longNow-longEntrada;\n String sTimeDiff = String.\n format(\"%02d:%02d\", \n TimeUnit.MILLISECONDS.toHours(diff),\n TimeUnit.MILLISECONDS.toMinutes(diff) - \n TimeUnit.HOURS.toMinutes(TimeUnit.MILLISECONDS.toHours(diff)));\n ultimoRegistroBaseDatos.put(\"salida\", now);\n ultimoRegistroBaseDatos.put(\"diferencia\", sTimeDiff);\n myDoc.put(\"registros\", registrosDelUsuario);\n myDoc.put(\"ultimoRegistro\", tipoRegistro.SALIDA.toString());\n coll.findOneAndReplace(filter, myDoc);\n usuarioResp.setUltimoRegistro(tipoRegistro.SALIDA);\n }\n\n usuarioResp.setApellidos(myDoc.get(\"apellidos\").toString());\n usuarioResp.setNombre(myDoc.get(\"nombre\").toString());\n return usuarioResp;\n }", "title": "" }, { "docid": "27ba2c461c8a5141a156f89893368b87", "score": "0.64671284", "text": "public String getUsuario(){\n return usuario;\n }", "title": "" }, { "docid": "ed5ce5c22132a66e085eb9fa5e94d1a7", "score": "0.64649594", "text": "void registrarAuditoria(AuditoriaActividadUsuario auditoriaActividadUsuario);", "title": "" }, { "docid": "8b6134a0ac46d6862e9fdef17d2ad21d", "score": "0.6463811", "text": "@Override\n\tpublic Usuario buscaPorId(Contato i) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "2a9cd01eb38a13abf1f1eb415feed381", "score": "0.6451973", "text": "private void crearUserBD(String mail, String nombre, String tel, String foto){\n mDatabase = FirebaseDatabase.getInstance().getReference();\n String key = auth.getCurrentUser().getUid();\n\n User user = new User(mail, nombre, tel, foto);\n mDatabase.child(\"usuarios\").child(key).setValue(user, new DatabaseReference.CompletionListener(){\n //El segundo parametro es para recibir un mensaje si hubo error en el setValue\n public void onComplete(DatabaseError error, DatabaseReference ref) {\n if(error == null){\n Log.i(\"Success\", \"Creado con exito\");\n }\n else{\n Log.e(\"Error\", \"Error: \" + error.getMessage());\n }\n }\n });\n }", "title": "" }, { "docid": "ea78aea2e60d85f4847a057d1ec8f3ac", "score": "0.6451778", "text": "public boolean NuevoUsuario(String idUsuario, String nombre, String apellido, String carrera, String grado,String grupo, String tipousuario,int numPre) {\n try {\n //Uso del patron singleton\n ClConexion.getInstance();\n //Se arma la consulta\n PS = ClConexion.conex.prepareStatement(\"INSERT INTO usuario VALUES(?,?,?,?,?,?,?,?);\");\n PS.setString(1, idUsuario);\n PS.setString(2, nombre);\n PS.setString(3, apellido);\n PS.setString(4, carrera);\n PS.setString(5, grado);\n PS.setString(6, grupo);\n PS.setString(7, tipousuario);\n PS.setInt(8, numPre);\n PS.execute();\n return true;\n } catch (Exception e) {\n System.err.println(e.getMessage());\n return false;\n }\n \n }", "title": "" }, { "docid": "f4866f0b7f5a2eb773bdcbfeedd351ef", "score": "0.64489156", "text": "@Override\n public void ejecutar() {\n\n DaoUsuario daoUsuario = FabricaDAO.instanciasDaoUsuario();\n daoUsuario.modificar(user);\n }", "title": "" }, { "docid": "e28d38e2332a790836dde61d455c9560", "score": "0.64440095", "text": "String getUsuario();", "title": "" }, { "docid": "c42255887e330a50600c0a82125626c1", "score": "0.6441484", "text": "public void setUsuario(Usuario usuario) { \n\t\tthis.usuario = usuario;\n\t}", "title": "" }, { "docid": "bfde23edfd23bba0c76692ef8359e1c5", "score": "0.6438163", "text": "@Override\n\tpublic UserDto createNewUser() {\n\t\treturn userDao.createNewUser();\n\t}", "title": "" }, { "docid": "fdf1a52049747e4a51704d1c41818472", "score": "0.64367586", "text": "private Usuario getUsuario() {\n return (this.usuario);\n }", "title": "" }, { "docid": "3d77c4c37ef1059e4e3fa8661aa854c6", "score": "0.6433291", "text": "public Usuario buscarUsuario(String nome) {\n try {\n String sql = \"select * from tb_leitores where nome = ?\";\n PreparedStatement stmt = (PreparedStatement) conexao.prepareStatement(sql);\n stmt.setString(1, nome);\n ResultSet rs = stmt.executeQuery();\n Usuario obj = new Usuario();\n while (rs.next()) {\n //obj.setId(rs.getInt(\"id\"));\n obj.setId(rs.getInt(\"id\"));\n obj.setNome(rs.getString(\"nome\"));\n obj.setRg(rs.getString(\"rg\"));\n obj.setCpf(rs.getString(\"cpf\"));\n obj.setEmail(rs.getString(\"email\"));\n obj.setTelefone(rs.getString(\"telefone\"));\n obj.setCelular(rs.getString(\"celular\"));\n obj.setCep(rs.getString(\"cep\"));\n obj.setEndereco(rs.getString(\"endereco\"));\n obj.setNumero(rs.getString(\"numero\"));\n obj.setComplemento(rs.getString(\"complemento\"));\n obj.setBairro(rs.getString(\"bairro\"));\n obj.setCidade(rs.getString(\"cidade\"));\n obj.setUf(rs.getString(\"estado\"));\n obj.setCurso(rs.getString(\"curso\"));\n obj.setSerie(rs.getString(\"curso_ano\"));\n obj.setEmprestmax(rs.getInt(\"emprestmax\"));\n obj.setObservacoes(rs.getString(\"observacoes\"));\n obj.setTipo(rs.getString(\"tipo\"));\n }\n return obj;\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"Erro! \" + e);\n }\n return null;\n }", "title": "" }, { "docid": "6da98f77aca9613d7468c8d8d31e1e46", "score": "0.64321655", "text": "@PostMapping(\"/addusuario\")\n\t@CrossOrigin(origins = \"http://localhost:4200\")\n\tpublic Usuario saveUsuario(@RequestBody Usuario user){\n\t\tString nombre=\"\";\n\t\tboolean yaExiste = false;\n\t\ttry {\n\t\t\tList<Usuario> usuarios = new ArrayList<Usuario>();\n\t\t\t//logica para la lista de la base de datos\n\t\t\t//service.fetchUsuarioList();\n\t\t\tusuarios = service.fetchUsuarioList();\n\t\t\tfor(int i=0;i<usuarios.toArray().length;i++) {\n\t\t\t\tnombre = usuarios.get(i).getNombre();\n\t\t\t\tSystem.out.println(nombre+user.getNombre());\n\t\t\t\t\tif(nombre.equals(user.getNombre())) {\n\t\t\t\t\t\tSystem.out.println(\"ya existe\");\n\t\t\t\t\t\tyaExiste = true;\n\t\t\t\t\t\treturn user;\n\t\t\t\t\t}\t\n\t\t\t}\n\t\t\n\t\t}catch(Exception e) {\n\t\t\t\n\t\t\treturn user;\n\t\t}\n\t\tif(!yaExiste) {\n\t\t\treturn service.saveUsuarioToDB(user);\n\t\t}else {\n\t\t\treturn user;\n\t\t}\n\t\t}", "title": "" }, { "docid": "b5e3ee7e370dd6fac24a433de1c2aaee", "score": "0.64276683", "text": "public void register(){\n // Remove the whole section of codes that dealt with direct access to SQL and moved it into UserDAO\n // Felt that it should not belong here but rather be a function call from userDAO instead\n // Following Single Responsiblity Principle - Louis <13 March 2020 20:33>\n\n Scanner sc = new Scanner(System.in);\n UserDAO userDAO = new UserDAO();\n\n System.out.println(\"== Social Magnet :: Registration ==\");\n\n System.out.print(\"Enter your Full Name > \");\n String givenFullname = sc.nextLine();\n\n System.out.print(\"Enter your username > \");\n String givenUsername = sc.nextLine();\n\n System.out.print(\"Enter your password > \");\n String givenPassword = sc.nextLine();\n\n System.out.print(\"Confirm your password > \");\n String confirmPassword = sc.nextLine();\n\n while(!givenPassword.equals(confirmPassword)){\n System.out.println(\"Passwords dont match! Please try again.\");\n System.out.print(\"Confirm your password > \");\n confirmPassword = sc.nextLine();\n }\n\n if (userDAO.add(givenUsername, givenPassword, givenFullname)) {\n System.out.println(givenUsername + \", your account is successfully created!\");\n System.out.println();\n\n } else {\n System.out.println(\"Sorry, Something went wrong!\");\n \n }\n }", "title": "" }, { "docid": "6809d9882a676483db76b5cf94b53920", "score": "0.6422817", "text": "@Override\n\tpublic void salvar(Usuario usuario) {\n\t\tusuario.setId(System.currentTimeMillis());\n\t\tus.add(usuario);\n\t}", "title": "" }, { "docid": "c121d54ec0779533aa7a219d67ba5621", "score": "0.64224875", "text": "@Override\n\tprotected void accionAceptar() {\n\n\t\tnew VistaCrearUsuario(this.controlador);\n\t}", "title": "" }, { "docid": "993250d82c999d804389abd16591bd1e", "score": "0.64084476", "text": "public int getIDUsuario(){\n return this.id_usuario;\n }", "title": "" }, { "docid": "76ec47feaa7d923f836f015f195de127", "score": "0.64056516", "text": "public void saveDetail() {\n if (this.roles != null && this.roles.getTarget().isEmpty()) {\n addPopUpMessage(FacesMessage.SEVERITY_WARN, getMessageLocale(\"error_header_wrong_input\"),\n getMessageLocale(\"error_user_empty_role_selecting\"));\n return;\n }\n\n try {\n // new user\n if (this.userDetail.getUserId() == null) {\n this.userDetail.setEnabled(true);\n this.userDetail.setActivated(true);\n\n this.userDetail.setDefaultTenant(this.isMultipleRoles\n ? this.roles.getTarget().get(0).getTenant()\n : this.selectedRole.getTenant());\n }\n\n // update user password\n if (this.passwordInput != null) {\n this.userDetail.setHashedPassword(this.passwordEncoder.encode(this.passwordInput));\n }\n\n // update user_roles\n if (this.isMultipleRoles) {\n userService.saveUser(this.userDetail, this.fullNameInput,\n this.isGeneratedPassword, this.roles.getTarget());\n } else {\n List<Role> newRoles = new ArrayList<>();\n newRoles.add(this.selectedRole);\n\n userService.saveUser(this.userDetail, this.fullNameInput,\n this.isGeneratedPassword, newRoles);\n }\n\n RequestContext.getCurrentInstance().execute(\"PF('saveNotification').show()\");\n\n } catch (DuplicateKeyException dx) {\n addPopUpMessage(FacesMessage.SEVERITY_WARN, getMessageLocale(\"error_header\"),\n getMessageLocale(\"error_user_duplicate_username\"));\n log.error(\"Failed save user's detail : \", dx);\n\n } catch (Exception ex) {\n addPopUpMessage(FacesMessage.SEVERITY_WARN, getMessageLocale(\"error_header\"),\n getMessageLocale(\"error_user_save\"));\n log.error(\"Failed save user's detail : \", ex);\n }\n }", "title": "" }, { "docid": "ad4c25c91feb7ad09d3d285ebc7a6e9f", "score": "0.6401998", "text": "public void findUser() {\n\t\tint id = selectedUser.getId();\n\t\t\n\t\tString sql = \"select * from Employees where id='\"+id+\"'\";\n\t\tconnectToDb();\n\t\ttry(Connection conn = myDb;\n\t\t\t\tStatement stmt = conn.createStatement();\n\t\t\t\tResultSet rs = stmt.executeQuery(sql)){\n\t\t\t\t\n\t\t\t\tselectedUser.setFirstName(rs.getString(\"fName\"));\n\t\t\t\tselectedUser.setLastName(rs.getString(\"sName\"));\n\t\t\t\tselectedUser.setRole(rs.getString(\"role\"));\n\t\t\t\tselectedUser.setAccess(false);\n\t\t}catch(SQLException e){\n\t\t\tJOptionPane.showMessageDialog(null,\n\t \t\t \"Cannot connect to the Database\",\n\t \t\t \"Error\",\n\t \t\t JOptionPane.ERROR_MESSAGE);\n\t\t}\n\t}", "title": "" }, { "docid": "aeaf8f6eea6f97e196813f112ed16fde", "score": "0.63986933", "text": "public Long save( Users user ){\r\n\t\tLong idUser = null;\r\n\t\tUsers userInDB = findByUsername(user.getUsername());\r\n\t\tif(userInDB==null){\t\t \r\n\t\t\tidUser = (Long) getHibernateTemplate().save(user);\r\n\t\t}else{\r\n\t\t\tthrow new DAOException(\"User exist\");\r\n\t\t}\r\n\t\treturn idUser;\r\n\t}", "title": "" }, { "docid": "7b9bf9c007191c3a157495e715c1cec6", "score": "0.639721", "text": "public void listar(){\n listUser= usersDAO.listar();\n }", "title": "" }, { "docid": "07dceef8a3b91861c7956638b4afb75e", "score": "0.6396647", "text": "public User crearUsuario(String id) {\n char[] letras= {'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'};\n \n String clave=\"\" ; //Se inicializa la clave\n for(int i=0; i<8;i++){\n Random rand = new Random(); //Se crea un objeto de la clase Random\n int n = rand.nextInt(26);\n clave+=letras[n];\n }\n User user= new User(id, clave, \"cliente\");\n return user;\n }", "title": "" }, { "docid": "e85ca3a41ce3d23ab5808712a8a87062", "score": "0.63957244", "text": "@Override\n public User add(User user) throws Exception {\n try (Statement stmt = connection.createStatement()) {\n\n System.out.println(user.getFirstName());\n String query = \"INSERT INTO USERTBL (\"\n + \"first_name,last_name,email,password,stuInsId) VALUES ('\" \n + user.getFirstName() + \"',\"\n + \"'\" + user.getLastName()+ \"',\" + \"'\" + user.getEmailId() + \"',\"\n + \"'\" + user.getPassword()+ \"',\" + \"'\" + user.getUserType()+ \"')\";\n\n if (stmt.executeUpdate(query) != 1) {\n throw new Exception(\"Error adding User\");\n }\n return checkUserExists(user.getEmailId(), user.getPassword());\n } catch (SQLException se) {\n //se.printStackTrace();\n throw new Exception(\"Error adding User in DAO\", se);\n }\n }", "title": "" }, { "docid": "4f072547ab2e1989b73df141f5aaf1a2", "score": "0.6389677", "text": "public Par<Integer, Usuario> guardarNuevoUsuario(Usuario usuario){\n\n EntityManager entityManager = Utils.crearEntityManager();\n EntityTransaction transaction = null;\n Par<Integer, Usuario> respuesta = null;\n\n try {\n\n transaction = entityManager.getTransaction();\n transaction.begin();\n\n // Ciframos la contraseña antes de guardarla en el servidor\n Par<byte[], byte[]> contraseniaConSalt = securityUtils.cifrarContrasenia(usuario.getContrasenia());\n usuario.setContrasenia(contraseniaConSalt.getPrimero());\n usuario.setSalt(contraseniaConSalt.getSegundo());\n\n entityManager.persist(usuario);\n transaction.commit();\n\n usuario.getId();\n\n respuesta = new Par<>(0, usuario);\n\n }catch (Exception e){\n Logger.error(e, \"Ocurrio un error al insertar un nuevo usuario\");\n respuesta = new Par<>(1, null);\n }finally {\n entityManager.close();\n }\n\n return respuesta;\n\n }", "title": "" } ]
01784a90247b5095e185157a4229065c
Creates a new instance of RotationSensorHandler.
[ { "docid": "2c2dc846324d338a6b8d7ecc6387d443", "score": "0.7082679", "text": "RotationSensorHandler(Activity activity, RotationListener listener) {\n // get a reference to the sensor service\n _rotationSensorManager = (SensorManager)activity.getSystemService(Activity.SENSOR_SERVICE);\n\n // create instance of listener\n _currentListener = listener;\n }", "title": "" } ]
[ { "docid": "0abd63a1b12e2877a0141b6b9cf8efb4", "score": "0.60218406", "text": "public RotationComponent() {}", "title": "" }, { "docid": "28277ee72837bec5a7494791406c9566", "score": "0.5719583", "text": "Sensor createSensor();", "title": "" }, { "docid": "126883807ee775bdb75a1a4c783d014d", "score": "0.5576495", "text": "private void startOrientationSensor() {\n orientationValues = new float[3];\n SensorManager sensorManager = (SensorManager) getSystemService(SENSOR_SERVICE);\n Sensor orientationSensor = sensorManager.getDefaultSensor(Sensor.TYPE_ORIENTATION);\n sensorManager.registerListener(this, orientationSensor, SensorManager.SENSOR_DELAY_UI);\n }", "title": "" }, { "docid": "e7d4a4288cdc3d9e7d7fd25508b8006a", "score": "0.5513787", "text": "public void rotationInitialize();", "title": "" }, { "docid": "96029c692316fb512e5a64bf57701074", "score": "0.54478526", "text": "@Override\n\t\t\tpublic void onSensorChanged(SensorEvent event) {\n\t\t\t\t float[] rotationMatrix;\n\t\t\t\t rotationMatrix = new float[16];\n\t\t SensorManager.getRotationMatrixFromVector(rotationMatrix,\n\t\t event.values);\n\t\t determineOrientation(rotationMatrix);\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "9a1448bbe0c8808da93bf6f65f501a86", "score": "0.5332347", "text": "TraficSensor createTraficSensor();", "title": "" }, { "docid": "134099e73da78e20afabd637aa56b594", "score": "0.52966297", "text": "public MotionSensor() {\n }", "title": "" }, { "docid": "7ba6d240fc7557480a2c880abb00a8d2", "score": "0.52832407", "text": "static AngleSensor create(DoubleSupplier angleFunction) {\n\t\treturn new AngleSensor() {\n\t\t\tprivate volatile double zero = 0;\n\n\t\t\tprivate double lastValue = angleFunction.getAsDouble();\n\t\t\tprivate long lastTime = System.currentTimeMillis() / 1000; // Seconds\n\n\t\t\t@Override\n\t\t\tpublic double getAngle() {\n\t\t\t\tlastValue = angleFunction.getAsDouble();\n\t\t\t\tlastTime = System.currentTimeMillis() / 1000;\n\t\t\t\treturn lastValue - zero;\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic double getRate() {\n\t\t\t\tdouble rate = (angleFunction.getAsDouble() - lastValue) / (System.currentTimeMillis() - lastTime);\n\n\t\t\t\tlastValue = angleFunction.getAsDouble();\n\t\t\t\tlastTime = System.currentTimeMillis() / 1000;\n\n\t\t\t\treturn rate;\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic AngleSensor zero() {\n\t\t\t\tlastValue = angleFunction.getAsDouble();\n\t\t\t\tlastTime = System.currentTimeMillis() / 1000;\n\n\t\t\t\tzero = lastValue;\n\t\t\t\treturn this;\n\t\t\t}\n\t\t};\n\t}", "title": "" }, { "docid": "32d04e4c810be4965cfe257b4920abc7", "score": "0.52574307", "text": "public Rotation2D() {\n this(0.0f, 0.0f, 0.0f);\n }", "title": "" }, { "docid": "64f615f062c1bb9b5a6aba4a5f76dc2b", "score": "0.5217476", "text": "public static TypeTransformationHandlerFactory getInstance() {\n\t\tif (instance == null) {\n\t\t\tinstance = new TypeTransformationHandlerFactory();\n\t\t}\n\n\t\treturn instance;\n\t}", "title": "" }, { "docid": "c4fbab6668c47813239c1b0de81677a8", "score": "0.51934373", "text": "public static CorrelationIdDecoratingHandler create() {\n return new CorrelationIdDecoratingHandler();\n }", "title": "" }, { "docid": "b8cf0259f41ac369a6bf7b7bb7d3147d", "score": "0.51865363", "text": "@Override\n public void onRotationSensor(long timeStamp, float rotationW,\n float rotationX, float rotationY, float rotationZ, float gyroX,\n float gyroY, float gyroZ) {\n GVRCameraRig cameraRig = null;\n if (mMainScene != null) {\n cameraRig = mMainScene.getMainCameraRig();\n }\n\n if (cameraRig != null) {\n cameraRig.setRotationSensorData(timeStamp, rotationW, rotationX,\n rotationY, rotationZ, gyroX, gyroY, gyroZ);\n\n if (mSensoredScene == null || !mMainScene.equals(mSensoredScene)) {\n cameraRig.resetYaw();\n mSensoredScene = mMainScene;\n }\n }\n }", "title": "" }, { "docid": "51d615dc41b29f00dde5b0db41fb96a2", "score": "0.516554", "text": "public Sensor() {\n\t\trnd = new Random();\n\t}", "title": "" }, { "docid": "a2607246062afa71b70a341e4f15f0f2", "score": "0.5144849", "text": "void onNewRotation(float[] rotationMatrix);", "title": "" }, { "docid": "8dbc3cd15fa34ae4541d01482b2c9a14", "score": "0.5096115", "text": "public void start() {\n mSensorManager.registerListener(this, mRotationVectorSensor, 10000);\n }", "title": "" }, { "docid": "6fa8aaf9c36d4d2dea85dc2fec239083", "score": "0.5063428", "text": "private void onRotationSensorChanged() {\n if(mRotationVectorData != null && mCurrentLocation != null) {\n SensorManager.getRotationMatrixFromVector(mRotationMatrixFromVector, mRotationVectorData);\n for (RotationCallback listener : mRotationListeners) {\n listener.onNewRotation(mRotationMatrixFromVector);\n }\n }\n }", "title": "" }, { "docid": "3d8670c9d57347dee2198b94210cfabd", "score": "0.5044385", "text": "public Rotation fromTranslation(final Translation t) {\n\t\treturn new Rotation(Math.atan2(t.y, t.x));\n\t}", "title": "" }, { "docid": "c856f28c1b22ef191c185d93922a3599", "score": "0.50262517", "text": "public Orientation() {\r\n\t\tx = 0;\r\n\t\ty = 0;\r\n\t\tz = 0;\r\n\t}", "title": "" }, { "docid": "778408a573a9da63e085ba0e1c1288c0", "score": "0.5018974", "text": "public RotationByModifier(final float pDuration, final float pRotation) {\n\t\tsuper(pDuration, pRotation);\n\t}", "title": "" }, { "docid": "e48773a9edea8966aa33446d0b2f1149", "score": "0.50018036", "text": "public Rotation(double angle_) {\n\t\tangle = angle_;\n\t}", "title": "" }, { "docid": "1d0383f5d51d371187605091d1fa39d9", "score": "0.49970594", "text": "public void rotationUpdate();", "title": "" }, { "docid": "6f0f764bff333a5a9e0cfd990d705524", "score": "0.4989822", "text": "public DeviceOrientation() {\n this.azimuth = 0;\n this.pitch = 0;\n this.roll = 0;\n this.timestamp = 0;\n this.setStatus(DeviceOrientation.STOPPED);\n }", "title": "" }, { "docid": "d1de8854869f60143be0c57dfb838bb1", "score": "0.49849603", "text": "public SensorEvent() { }", "title": "" }, { "docid": "726ace3b00289fb907fcbcdd2461fff4", "score": "0.498095", "text": "@Override\n public void onSensorChanged(SensorEvent event) {\n SensorManager.getRotationMatrixFromVector(_rotationMatrix, event.values);\n\n // map the rotation values to X and Z coordinates\n SensorManager.remapCoordinateSystem(_rotationMatrix, SensorManager.AXIS_X, SensorManager.AXIS_Z, _rotationMatrixRemapped);\n\n // convert coordinates to azimuth, pitch and roll\n SensorManager.getOrientation(_rotationMatrixRemapped, _orientation);\n\n // convert roll to degrees\n _tilt = (float)Math.toDegrees(_orientation[2]);\n\n //Set 0 point\n if (_startTilt == 0){\n _startTilt = _tilt;\n }\n\n // normalise between -1 and +1\n _tiltNormalised = ((_tilt-_startTilt)/ 90);\n\n //OverTilt protection (to an extent)\n if (_tiltNormalised < 2){\n if (_tiltNormalised < 0){\n _turningDirection = true;\n }else{\n _turningDirection = false;\n }\n }else if(_turningDirection){\n _tiltNormalised =-1;\n }\n if (_tiltNormalised > 1){\n _tiltNormalised =1;\n }else if (_tiltNormalised < -1){\n _tiltNormalised =-1;\n }\n // normalise between -1 and +1*\n // trigger a listener update\n _currentListener.onTiltChanged(_tiltNormalised);\n }", "title": "" }, { "docid": "cab1467bbfaf803459b3648171a8acc0", "score": "0.49261743", "text": "void startListening() {\n _startTilt = 0;\n Sensor rotationSensor = _rotationSensorManager.getDefaultSensor(Sensor.TYPE_ROTATION_VECTOR);\n _rotationSensorManager.registerListener(_rotationSensorListener, rotationSensor, SensorManager.SENSOR_DELAY_GAME);\n }", "title": "" }, { "docid": "d1af43bbc32aabe58a35bbab8db33f70", "score": "0.49257034", "text": "protected void initialize() {\n // Swerve.getInstance().zeroSensors();\n Swerve.timesCalled++;\n\n Swerve.getInstance().rotate(angle);\n\n if (angle > 180) angle = angle - 180;\n }", "title": "" }, { "docid": "fabf5e0999a1607b7b4d1b56a9e17a89", "score": "0.49189842", "text": "public void setRotation(double rotation) {\n this.rotation = rotation;\n }", "title": "" }, { "docid": "a5f84d8546e82ebae5aa85e41aafa6c4", "score": "0.49176484", "text": "interface RotationListener {\n /**\n * Called when a new tilt reading is available.\n *\n * @param tilt Current tilt of device, normalised between -1 and +1\n */\n void onTiltChanged(float tilt);\n }", "title": "" }, { "docid": "1b5d356e312e0efdaf86cd1b4026e62e", "score": "0.49112037", "text": "@Override\n\tpublic void HandleNewOrientationEvent(NewOrientationEvent e) {\n\n\t}", "title": "" }, { "docid": "615073336be8009eb1168e43fd90090f", "score": "0.48941493", "text": "Double getRotation();", "title": "" }, { "docid": "375ecda17f4c3c7517ea760921d943ac", "score": "0.48854706", "text": "public void setRotation(double rotation)\r\n\t{\r\n\t\t_Rotation = rotation;\r\n\t}", "title": "" }, { "docid": "208b7f59fd10d230802e4c4a4292983a", "score": "0.485249", "text": "public Sensor() {\n\t\tthis.observers = Collections.synchronizedList(new ArrayList<Observer>());\n\t}", "title": "" }, { "docid": "d276a2c99de7b1701cf6958546fabdd7", "score": "0.4795027", "text": "public AbstractSensorFactory() {\n\t\tsuper();\n\t}", "title": "" }, { "docid": "29ea65125b6b2f1310a14e9ef3d52df5", "score": "0.47924015", "text": "@Override\n public void onCreate() {\n HromatkaLog.getInstance().enter(TAG);\n super.onCreate();\n\n SensorOrientedAccelerometer.getInstance().setOrientation(getOrientation());\n HromatkaLog.getInstance().exit(TAG);\n }", "title": "" }, { "docid": "a6f4ffd1d1729d40e60578a80ea4f7a3", "score": "0.47922614", "text": "@Override\n public void onOrientationData(Myo myo, long timestamp, Quaternion rotation) {\n\n }", "title": "" }, { "docid": "34cbfc68ca2e2f1d6756c3e64dadb9c0", "score": "0.4789144", "text": "public RotationThread(RotationCallback callback) {\n this.callback = callback;\n }", "title": "" }, { "docid": "a16a972fffcd94f1c1cb3dd0014ace2d", "score": "0.47784197", "text": "Sensor(sensorType type, int orientationDegree)\n\t{\n\t\tthis.type = type;\n\t\tthis.orientationDegree = orientationDegree;\n\t}", "title": "" }, { "docid": "649ec667ad69fe44e50be78f7510de07", "score": "0.47763965", "text": "public void onSensorChanged(SensorEvent event) {\n if (event.sensor.getType() == Sensor.TYPE_ROTATION_VECTOR) {\n // convert the rotation-vector to a 4x4 matrix. the matrix\n // is interpreted by Open GL as the inverse of the\n // rotation-vector, which is what we want.\n SensorManager.getRotationMatrixFromVector(\n mRotationMatrix , event.values);\n }\n }", "title": "" }, { "docid": "e47979d0ebcb2ffb5fdb261798cd31d3", "score": "0.47257587", "text": "private FreeRotator getRotator() {\n if (this.myRotator == null) {\n this.myRotator = ((FreeRotator) Decorator.getDecorator(getOutermost(this), FreeRotator.class));\n }\n return this.myRotator;\n }", "title": "" }, { "docid": "51271f44e25ca11cf491cb9ac3c8f4a7", "score": "0.47097856", "text": "public Quaternion(Rotation r)\n\t{\n\t\trep1 = rep;\n\t\tr.toQuaternion(this);\n\t\tinitSwapBuffer();\n\t}", "title": "" }, { "docid": "7d65b871d949e2464f99eb6f6b67334b", "score": "0.47022644", "text": "private static void initialiseSensor(final Activity activity, final boolean isAutoRotate) {\n\n\t\tsensorEvent = new OrientationEventListener(activity, SensorManager.SENSOR_DELAY_NORMAL) {\n\t\t\t@Override\n\t\t\tpublic void onOrientationChanged(final int orientation) {\n\t\t\t\t/*\n\t\t\t\t * This logic is useful when user explicitly changes orientation using player controls, in which case orientation changes gives no callbacks.\n\t\t\t\t * we use sensor angle to anticipate orientation and make changes accordingly.\n\t\t\t\t */\n\t\t\t\tif (sensorStateChanges != STATE_IDLE &&\n\t\t\t\t\t\tsensorStateChanges == STATE_WATCH_FOR_LANDSCAPE_CHANGES &&\n\t\t\t\t\t\t((orientation >= 60 && orientation <= 120) || (orientation >= 240 && orientation <= 300))) {\n\n\t\t\t\t\tsensorStateChanges = STATE_SWITCH_FROM_LANDSCAPE_TO_STANDARD;\n\n\t\t\t\t} else if (sensorStateChanges != STATE_IDLE &&\n\t\t\t\t\t\tsensorStateChanges == STATE_SWITCH_FROM_LANDSCAPE_TO_STANDARD &&\n\t\t\t\t\t\t(orientation <= 40 || orientation >= 320)) {\n\n\t\t\t\t\tactivity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED);\n\t\t\t\t\tsensorStateChanges = STATE_IDLE;\n\t\t\t\t\tsensorEvent.disable();\n\n\t\t\t\t} else if (sensorStateChanges != STATE_IDLE &&\n\t\t\t\t\t\tsensorStateChanges == STATE_WATCH_FOR_PORTRAIT_CHANGES &&\n\t\t\t\t\t\t((orientation >= 300 && orientation <= 359) || (orientation >= 0 && orientation <= 45))) {\n\n\t\t\t\t\tsensorStateChanges = STATE_SWITCH_FROM_PORTRAIT_TO_STANDARD;\n\n\t\t\t\t} else if (sensorStateChanges != STATE_IDLE &&\n\t\t\t\t\t\tsensorStateChanges == STATE_SWITCH_FROM_PORTRAIT_TO_STANDARD &&\n\t\t\t\t\t\t((orientation <= 300 && orientation >= 240) || (orientation <= 130 && orientation >= 60))) {\n\n\t\t\t\t\tactivity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED);\n\t\t\t\t\tsensorStateChanges = STATE_IDLE;\n\t\t\t\t\tsensorEvent.disable();\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\n\t\tif (isAutoRotate)\n\t\t\tsensorEvent.enable();\n\t}", "title": "" }, { "docid": "f6dbea7f131a08bb818150f3084c27b8", "score": "0.46969244", "text": "public RotationComponent(float r, float originX, float originY) {\n this.r = r;\n this.originX = originX;\n this.originY = originY;\n }", "title": "" }, { "docid": "cd72b87d92fb96d790022989a779538d", "score": "0.46889898", "text": "@Override\n\t\tpublic void onSensorChanged(SensorEvent event) {\n\t\t\tif(event.sensor.getType()==Sensor.TYPE_ACCELEROMETER){\n\t\t\t\taccelerometerValues=event.values.clone();\n\t\t\t}else if(event.sensor.getType()==Sensor.TYPE_MAGNETIC_FIELD){\n\t\t\t\tmagneticValues=event.values.clone();\n\t\t\t}\n\t\t\tfloat[] R=new float[9];\n\t\t\tfloat[] values=new float[3];\n\t\t\t\n\t\t\tSensorManager.getRotationMatrix(R, null, accelerometerValues, magneticValues);\n\t\t\tSensorManager.getOrientation(R, values);\n\t\t\tLog.d(\"Look Me\", \"values[0] is \"+Math.toDegrees(values[0]));\n\t\t\tfloat rotateDegree=-(float)Math.toDegrees(values[0]);\n\t\t\tif(Math.abs(rotateDegree-lastRotateDegree)>1){\n\t\t\t\tRotateAnimation animation=new RotateAnimation(lastRotateDegree, rotateDegree,Animation.RELATIVE_TO_SELF,0.5f,Animation.RELATIVE_TO_SELF,0.5f);\n\t\t\t\tanimation.setFillAfter(true);\n\t\t\t\tcompassImg.startAnimation(animation);\n\t\t\t\tlastRotateDegree=rotateDegree;\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "6e76cc06cc439eaa2943895081fb3bee", "score": "0.46646896", "text": "@Override\n public void onSensorChanged(SensorEvent event){\n if (event.sensor == a) {\n System.arraycopy(event.values, 0, mLastAcc, 0, event.values.length);\n mLastAccSet = true;\n } else if (event.sensor == m) {\n System.arraycopy(event.values, 0, mLastMag, 0, event.values.length);\n mLastMagSet = true;\n }\n //if sensors contain values, perform orientation analysis\n if (mLastAccSet && mLastMagSet) {\n SensorManager.getRotationMatrix(mR, null, mLastAcc, mLastMag);\n SensorManager.getOrientation(mR, mOrientation);\n float azimuthInRadians = mOrientation[0];\n float azimuthInDegrees = (float)(Math.toDegrees(azimuthInRadians)+360)%360;\n RotateAnimation ra = new RotateAnimation(\n mCurrentDegree,\n -azimuthInDegrees,\n Animation.RELATIVE_TO_SELF, 0.5f,\n Animation.RELATIVE_TO_SELF,\n 0.5f);\n\n ra.setDuration(250);\n ra.setFillAfter(true);\n mPointer.startAnimation(ra);\n mCurrentDegree = -azimuthInDegrees;\n }\n }", "title": "" }, { "docid": "09724d3cb4bc10c789da8c8cad1bb749", "score": "0.46474242", "text": "public IO(Vibrator vibrator, SensorManager sensorManager) {\n this.vibrator = vibrator;\n this.sensorManager = sensorManager;\n this.accelerometer = sensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER);\n this.accListener = new SensorEventListener() {\n public void onSensorChanged(SensorEvent e) {\n gravity[0] = e.values[0];\n gravity[1] = e.values[1];\n gravity[2] = e.values[2];\n }\n\n public void onAccuracyChanged(Sensor s, int accuracy) {\n }\n };\n }", "title": "" }, { "docid": "e570558db29427717848c12a0661cb19", "score": "0.46449462", "text": "@Override\r\n public void onSensorChanged(SensorEvent event)\r\n {\r\n if(event.sensor.getType()==Sensor.TYPE_ROTATION_VECTOR)\r\n {\r\n SensorManager.getRotationMatrixFromVector(rotationMatrix,event.values);\r\n SensorManager.getOrientation(rotationMatrix,orientationArr);\r\n pitchOrient = Math.toDegrees(orientationArr[1]);\r\n pitchOrient = Math.round(pitchOrient);\r\n rollOrient = Math.toDegrees(orientationArr[2]);\r\n rollOrient = Math.round(rollOrient);\r\n if(rollOrient > 62)\r\n {\r\n animation1 = ObjectAnimator.ofFloat(level,\"translationX\", (float) 186);\r\n }\r\n else if(rollOrient < -68 )\r\n {\r\n animation1 = ObjectAnimator.ofFloat(level,\"translationX\", (float) -210);\r\n }\r\n else\r\n {\r\n animation1 = ObjectAnimator.ofFloat(level, \"translationX\", (float) rollOrient * 3);\r\n }\r\n animation1.setDuration(0);\r\n animation1.start();\r\n if(pitchOrient <= -69)\r\n {\r\n animation2 = ObjectAnimator.ofFloat(pitchBubble,\"translationY\", (float) -207);\r\n }\r\n else if(pitchOrient>=77)\r\n {\r\n animation2 = ObjectAnimator.ofFloat(pitchBubble,\"translationY\", (float) 231);\r\n }\r\n else\r\n {\r\n animation2 = ObjectAnimator.ofFloat(pitchBubble,\"translationY\", (float) pitchOrient*3);\r\n }\r\n\r\n animation2.setDuration(0);\r\n animation2.start();\r\n pitchDegrees.setText(\"Pitch:\"+pitchOrient+\"°\");\r\n rollDegrees.setText(\"Roll:\"+rollOrient+\"°\");\r\n }\r\n }", "title": "" }, { "docid": "2de3a8afad5afc7aaad8876f8a18f4c1", "score": "0.4641816", "text": "@Override\n public synchronized void onSensorChanged(SensorEvent event) {\n if (event.sensor.getType() == Sensor.TYPE_ROTATION_VECTOR) {\n /*\n * TODO:\n * replace this manual conversion with SensorManager.remapCoordinateSystem\n * SensorManager.remapCoordinateSystem(inR, SensorManager.AXIS_X, SensorManager.AXIS_MINUS_Y, outR) doesn't seem to work\n */\n\n // flip y axis\n float[] newValues = new float[event.values.length];\n newValues[0] = event.values[0]; // x\n newValues[1] = -event.values[1]; // -y\n newValues[2] = event.values[2]; // z\n newValues[3] = event.values[3]; // w\n newValues[4] = event.values[4]; // should not be needed (refer to source code of getRotationMatrixFromVector)\n\n // Convert the rotation-vector to a 4x4 matrix.\n float[] temp = new float[16];\n SensorManager.getRotationMatrixFromVector(temp, newValues);\n\n setResultMatrix(temp);\n }\n }", "title": "" }, { "docid": "57e57f460e68baf876f682763e78e739", "score": "0.46314377", "text": "public Rotation getRotation(double degrees) {\r\n\t\tthrow new IllegalStateException(\"not defined for linear axis\");\r\n\t}", "title": "" }, { "docid": "aca71037754cc67046cafaa16b359917", "score": "0.462616", "text": "public Sensor(InputDevice device){\n\tthis(device, DEFAULT_SENSOR_READ_COUNT, 0, new Point3d(0.0, 0.0, 0.0));\n }", "title": "" }, { "docid": "b12b3e25156b3f52c5110572593c6b90", "score": "0.46187982", "text": "public void robotInit() {\n\t\tsensors = new Command() {\n\t\t\tprivate ADXRS450_Gyro gyro;\n\t\t\tprivate DecimalFormat formatter;\n\t\t\t\n\t\t\t@Override\n\t\t\tprotected void initialize() {\n\t\t formatter = new DecimalFormat(\"#0.00\");\n\t\t\t\tgyro = new ADXRS450_Gyro();\n\t\t\t\tgyro.reset();\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tprotected void execute() {\n\t\t double angle = 0;\n\t\t \t\tangle = gyro.getAngle();\n\t \t\t\tlog4j.info(formatter.format(angle));\n\t\t\t\tTimer.delay(.5);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tprotected boolean isFinished() {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t};\n\t}", "title": "" }, { "docid": "0e6e2633d8d39fcacdcc3ef6dc626040", "score": "0.4614348", "text": "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.main);\n \n mySensorManager = (SensorManager)getSystemService(Context.SENSOR_SERVICE);\n List<Sensor> mySensors = mySensorManager.getSensorList(Sensor.TYPE_ORIENTATION);\n \n if(mySensors.size() > 0){\n mySensorManager.registerListener(mySensorEventListener, mySensors.get(0), SensorManager.SENSOR_DELAY_NORMAL);\n sersorrunning = true;\n// Toast.makeText(this, \"Start ORIENTATION Sensor\", Toast.LENGTH_LONG).show();\n \n }\n else{\n// Toast.makeText(this, \"No ORIENTATION Sensor\", Toast.LENGTH_LONG).show();\n sersorrunning = false;\n finish();\n }\n }", "title": "" }, { "docid": "6041399022a8bb76860fb31a9922a6b8", "score": "0.46035478", "text": "public void setRotation(float rotation) {\n\t\tthis.rotation = rotation;\n\t}", "title": "" }, { "docid": "deb8238c72b4402110a39e1d8b1fa175", "score": "0.4593872", "text": "public void setRotation(Quaternion rotation) {\n\t\tthis.rotation = rotation;\n\t}", "title": "" }, { "docid": "53708fe8cc0ff31cbcb988e4e8851f4b", "score": "0.45920864", "text": "void way_one_orientation() {\n\n\n float[] rotationMatrix = new float[9];\n float[] orientationAngles = new float[3];\n\n // Update rotation matrix, which is needed to update orientation angles.\n\n mSensorManager.getRotationMatrix(rotationMatrix, null,\n mAccelerometerReading, mMagnetometerReading);\n\n // \"rotationMatrix\" now has up-to-date information.\n\n mSensorManager.getOrientation(rotationMatrix, orientationAngles);\n\n // \"orientationAngles\" now has up-to-date information.\n\n pitch = (float) Math.toDegrees(orientationAngles[1]);\n roll = (float) Math.toDegrees(orientationAngles[2]);\n\n\n // pitch and roll have been assigned corresponding values\n\n }", "title": "" }, { "docid": "c7ea65fb2e0f9b3273199168e355515c", "score": "0.45906523", "text": "@InternalUseOnly\n public static ThreadsHandler create() {\n return new ThreadsHandler();\n }", "title": "" }, { "docid": "952c39a0d6953f96dc58bd3c189de4b3", "score": "0.45739985", "text": "public float getRotation() {\n return rotation;\n }", "title": "" }, { "docid": "966e00511385a26f4edcc1b0a1481f8a", "score": "0.45723626", "text": "public interface AngleSensor extends Zeroable {\n\n\t/**\n\t * Gets the angular displacement in continuous degrees.\n\t *\n\t * @return the positive or negative angular displacement in degrees\n\t */\n\tdouble getAngle();\n\n\t/**\n\t * Gets the heading of this sensor in degrees in the range [0, 360).\n\t *\n\t * @return the heading of this sensor\n\t */\n\tdefault double getHeading() {\n\t\tdouble diff = getAngle() % 360;\n\t\treturn diff >= 0 ? diff : 360 + diff;\n\t}\n\n\t/**\n\t * Gets the angular displacement in continuous radians.\n\t *\n\t * @return the positive or negative angular displacement in radians\n\t */\n\tdefault double getAngleRadians() {\n\t\treturn Math.toRadians(getAngle());\n\t}\n\n\t/**\n\t * Gets the rate of rotation in degrees/sec.\n\t *\n\t * @return the rate of rotation\n\t */\n\tdouble getRate();\n\n\t/**\n\t * Gets the rate of rotation in radians/sec.\n\t *\n\t * @return the rate of rotation\n\t */\n\tdefault double getRateRadians() {\n\t\treturn Math.toRadians(getRate());\n\t}\n\n\t/**\n\t * Change the output so that the current angle is considered to be 0\n\t *\n\t * @return this object to allow chaining of methods; never null\n\t */\n\tAngleSensor zero();\n\n\t/**\n\t * Calculate the displacement required for this angle sensor to reach the target angle (may be positive or negative)\n\t *\n\t * @param targetAngle the target angle\n\t * @param tolerance the tolerance within which the angle sensor is considered to have reached the target angle\n\t * @return the displacement required for this angle sensor to reach the target angle (may be positive or negative),\n\t * \t\t or 0.0 if the two angles are already within the specified tolerance\n\t */\n\tdefault double computeAngleChangeTo(double targetAngle, double tolerance) {\n\t\tdouble diff = targetAngle - this.getAngle();\n\t\treturn Math.abs(diff) <= Math.abs(tolerance) ? 0.0 : diff;\n\t}\n\n\tdefault AngleSensor invert() {\n\t\treturn AngleSensor.invert(this);\n\t}\n\n\t/**\n\t * Create an angle sensor from the given function that returns the angle.\n\t *\n\t * @param angleFunction the function that returns the angle; may not be null\n\t * @return the angle sensor\n\t */\n\tstatic AngleSensor create(DoubleSupplier angleFunction) {\n\t\treturn new AngleSensor() {\n\t\t\tprivate volatile double zero = 0;\n\n\t\t\tprivate double lastValue = angleFunction.getAsDouble();\n\t\t\tprivate long lastTime = System.currentTimeMillis() / 1000; // Seconds\n\n\t\t\t@Override\n\t\t\tpublic double getAngle() {\n\t\t\t\tlastValue = angleFunction.getAsDouble();\n\t\t\t\tlastTime = System.currentTimeMillis() / 1000;\n\t\t\t\treturn lastValue - zero;\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic double getRate() {\n\t\t\t\tdouble rate = (angleFunction.getAsDouble() - lastValue) / (System.currentTimeMillis() - lastTime);\n\n\t\t\t\tlastValue = angleFunction.getAsDouble();\n\t\t\t\tlastTime = System.currentTimeMillis() / 1000;\n\n\t\t\t\treturn rate;\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic AngleSensor zero() {\n\t\t\t\tlastValue = angleFunction.getAsDouble();\n\t\t\t\tlastTime = System.currentTimeMillis() / 1000;\n\n\t\t\t\tzero = lastValue;\n\t\t\t\treturn this;\n\t\t\t}\n\t\t};\n\t}\n\n\t/**\n\t * Inverts the specified {@link AngleSensor} so that negative angles become positive angles.\n\t *\n\t * @param sensor the {@link AngleSensor} to invert\n\t * @return an {@link AngleSensor} that reads the opposite of the original sensor\n\t */\n\tstatic AngleSensor invert(AngleSensor sensor) {\n\t\treturn new AngleSensor() {\n\t\t\t@Override\n\t\t\tpublic double getAngle() {\n\t\t\t\treturn -1 * sensor.getAngle();\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic double getRate() {\n\t\t\t\treturn -1 * sensor.getRate();\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic AngleSensor zero() {\n\t\t\t\tsensor.zero();\n\t\t\t\treturn this;\n\t\t\t}\n\t\t};\n\t}\n}", "title": "" }, { "docid": "ae81b493406e8d58933768b3c60f71f9", "score": "0.45685306", "text": "public static AuthenticationHandler tokenBased(final SecretProvider data, final TemporalAmount refreshAfter) {\n return new AuthenticationHandler(data, true, refreshAfter);\n }", "title": "" }, { "docid": "0b965c366b168d9f09d292b274d95746", "score": "0.45680538", "text": "INSTANCE_TYPE setOrientation(Orientation orientation);", "title": "" }, { "docid": "df5ba0e5a26d01854ccdbf092c17a65e", "score": "0.4558282", "text": "public void setRotation( Quaternion4f rotation )\n {\n this.rotation.set( rotation );\n accumulatedWeightAbsolute = 1;\n accumulatedWeight = 1;\n }", "title": "" }, { "docid": "2ef6ad9631a6b07945922bc39e87cdd3", "score": "0.4554536", "text": "public interface RotationCallback extends LocationCallback {\n\n /**\n * Callback trigger when the user rotated his device.\n *\n * @param rotationMatrix The rotation matrix.\n */\n void onNewRotation(float[] rotationMatrix);\n }", "title": "" }, { "docid": "c380089855b69a44f7acde41a59c4451", "score": "0.45426545", "text": "void requestRotation() {\n rotationRequested.set(true);\n }", "title": "" }, { "docid": "1f94830e2aa23c3d33629906a3c9f875", "score": "0.45326093", "text": "public Quaternion4f getRotation( )\n {\n return rotation;\n }", "title": "" }, { "docid": "f1b152da1ce25389b9c29f6cc866f862", "score": "0.45292968", "text": "private void registerListener() {\n\t\tlistener = new SensorEventListener() {\n\n\t\t\tpublic void onSensorChanged(SensorEvent event) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tfloat x = event.values[SensorManager.DATA_X];\n\t\t\t\tfloat z = event.values[SensorManager.DATA_Z];\n\t\t\t\ttry {\n\t\t\t\t\tif ((x > 15 || x < -15) && gravityFlag) {\n\t\t\t\t\t\tif (z > 0) {\n\t\t\t\t\t\t\tTransimission.pageDown(os);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tTransimission.pageUp(os);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tvibrator.vibrate(200);\n\t\t\t\t\t\tmakeSensorDelay();\n\t\t\t\t\t}\n\t\t\t\t} catch (UnsupportedEncodingException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\n\t\t\tprivate void makeSensorDelay() {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tmanager.unregisterListener(listener);\n\t\t\t\tHandler handler = new Handler() {\n\t\t\t\t\tpublic void handleMessage(Message msg) {\n\t\t\t\t\t\tif (msg.what == 1) {\n\t\t\t\t\t\t\tmanager.registerListener(listener, sensor,\n\t\t\t\t\t\t\t\t\tSensorManager.SENSOR_DELAY_GAME);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t\tMessage message = Message.obtain();\n\t\t\t\tmessage.what = 1;\n\t\t\t\thandler.sendMessageDelayed(message, 1000);\n\t\t\t}\n\n\t\t\tpublic void onAccuracyChanged(Sensor sensor, int accuracy) {\n\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t}\n\t\t};\n\t}", "title": "" }, { "docid": "9dab18cc87996a14118a069a284e9ba3", "score": "0.45200917", "text": "public void setRotation(double rotation)\r\n {\r\n rotationAngle = rotation;\r\n \r\n while (rotationAngle > Math.PI)\r\n rotationAngle -= Math.PI;\r\n while (rotationAngle < -Math.PI)\r\n rotationAngle += Math.PI;\r\n }", "title": "" }, { "docid": "94e0675ce66426717691549dab381607", "score": "0.451006", "text": "public Vector3 getRotation() { return this.rotation; }", "title": "" }, { "docid": "308f13db8a2e36b7545a052a6e268f55", "score": "0.44947216", "text": "public void setRotation(double rotation) {\n this.rotation = rotation;\n this.updateAbove();\n }", "title": "" }, { "docid": "91b073a0f23515edce9ef8f5f21052a9", "score": "0.4492803", "text": "public Sensor(InputDevice device, int sensorReadCount){\n\tthis(device, sensorReadCount, 0, new Point3d(0.0, 0.0, 0.0));\n }", "title": "" }, { "docid": "6f215fc01b4dea44a5bdc9d8e1154924", "score": "0.44910485", "text": "public static AffineTransformMatrix2D createRotation(final Vector2D center, final Rotation2D rotation) {\n return createRotation(center, rotation.getAngle());\n }", "title": "" }, { "docid": "21aeb0231de5bde686e62bcc3f72388d", "score": "0.44893962", "text": "public static AuthorizationHandler getAuthHandler()\n {\n\treturn AuthHandler;\n }", "title": "" }, { "docid": "e61a97368a252c7a118d58c343e75dcc", "score": "0.44884238", "text": "private Group createOrientationIndicator() {\r\n indicatorRotation = new Rotate();\r\n // top level group\r\n // had rotation to make it match main rotation\r\n final Group orientationIndicator = new Group();\r\n // has rotation to make it match biological orientation\r\n final Group middleTransformGroup = new Group();\r\n\r\n // set up the orientation indicator in bottom right corner\r\n Text t = makeNoteBillboardText(\"P A\");\r\n t.setTranslateX(-10);\r\n middleTransformGroup.getChildren().add(t);\r\n\r\n t = makeNoteBillboardText(\"D V\");\r\n t.setTranslateX(-42);\r\n t.setTranslateY(32);\r\n t.setRotate(90);\r\n middleTransformGroup.getChildren().add(t);\r\n\r\n t = makeNoteBillboardText(\"L R\");\r\n t.setTranslateX(5);\r\n t.setTranslateZ(10);\r\n t.getTransforms().add(new Rotate(90, new Point3D(0, 1, 0)));\r\n middleTransformGroup.getChildren().add(t);\r\n\r\n // rotation to match lateral orientation in image\r\n middleTransformGroup.getTransforms().add(new Rotate(-30, 0, 0));\r\n\r\n // xy relocates z shrinks apparent by moving away from camera? improves resolution?\r\n middleTransformGroup.getTransforms().add(new Scale(3, 3, 3));\r\n\r\n orientationIndicator.getTransforms().add(new Translate(270, 200, 800));\r\n orientationIndicator.getTransforms().addAll(rotateZ, rotateY, rotateX);\r\n orientationIndicator.getChildren().add(middleTransformGroup);\r\n middleTransformGroup.getTransforms().add(indicatorRotation);\r\n return orientationIndicator;\r\n }", "title": "" }, { "docid": "5658a0c007e4e5d96c359fc143e5e611", "score": "0.4487705", "text": "@Override\n public void onRotationChanged(int rotation) throws RemoteException {\n Message msg = Message.obtain(mHandler, () -> {\n if (mNavigationBarView != null\n && mNavigationBarView.needsReorient(rotation)) {\n repositionNavigationBar();\n }\n //prize tangzhengrong 20180503 Swipe-up Gesture Navigation bar start\n if(OPEN_GESTURE_NAVIGATION){\n \tmGestureIndicatorManager.updateView(rotation);\n }\n //prize tangzhengrong 20180503 Swipe-up Gesture Navigation bar end\n });\n msg.setAsynchronous(true);\n mHandler.sendMessageAtFrontOfQueue(msg);\n }", "title": "" }, { "docid": "26e640b09c55164b5ce501748d90df15", "score": "0.44858283", "text": "@Override\n public void onCreate() {\n super.onCreate();\n // Check permission for body sensors\n checkSensorPermissions();\n\n //Wearable.getMessageClient(this).addListener(this);\n\n sensorManager = (SensorManager) getSystemService(Context.SENSOR_SERVICE);\n List<Sensor> sl = sensorManager.getSensorList(Sensor.TYPE_ALL);\n String sensorId;\n for(Sensor s : sl) {\n sensorId = s.getStringType() + \"_\" + s.getName().replace(' ', '_');\n //Log.d(TAG, sensorId);\n sensors.put(sensorId, s);\n //sensorNodesMap.put(sensorId, new ArrayList<String>());\n }\n }", "title": "" }, { "docid": "e8f0b8421b2da716a565ec25fa900660", "score": "0.44853336", "text": "public AutoTurretRotation(Turret Turret_Inst) {\n this.Turret_Inst = Turret_Inst;\n addRequirements(Turret_Inst);\n // Use addRequirements() here to declare subsystem dependencies.\n }", "title": "" }, { "docid": "08860be7aa9643b1f83f62d0d26b21b6", "score": "0.44800624", "text": "public static Sensor createEntity() {\n Sensor sensor = new Sensor()\n .numero(DEFAULT_NUMERO);\n return sensor;\n }", "title": "" }, { "docid": "88a4008720552b97a8701f843243ef8a", "score": "0.44724026", "text": "public double getRotation()\r\n {\r\n return rotationAngle;\r\n }", "title": "" }, { "docid": "2c0c74068e849b5090a11b3303452357", "score": "0.44562533", "text": "@Override\n protected void onCreate(Bundle savedInstanceState) {\n mSensorManager = (SensorManager) getApplicationContext().getSystemService(\n Context.SENSOR_SERVICE);\n mSensor[ROTATION_VECTOR_INDEX] =\n mSensorManager.getDefaultSensor(Sensor.TYPE_ROTATION_VECTOR);\n mSensor[GEOMAGNETIC_ROTATION_VECTOR_INDEX] =\n mSensorManager.getDefaultSensor(Sensor.TYPE_GEOMAGNETIC_ROTATION_VECTOR);\n mSensor[GAME_ROTATION_VECTOR_INDEX] =\n mSensorManager.getDefaultSensor(Sensor.TYPE_GAME_ROTATION_VECTOR);\n\n super.onCreate(savedInstanceState);\n\n GLArrowSensorTestRenderer renderer =\n new GLArrowSensorTestRenderer(this, Sensor.TYPE_ROTATION_VECTOR);\n mListener = renderer;\n\n initializeGlSurfaceView(renderer);\n }", "title": "" }, { "docid": "9152ed7fa01f4371257e6fa7ffd15d38", "score": "0.44488034", "text": "protected MouseMotionListener createMouseMotionListener()\n {\n return new InvocationMouseMotionHandler();\n }", "title": "" }, { "docid": "307301b68ff835eb16e4bbb578bf5ff0", "score": "0.4440146", "text": "AngleSensor zero();", "title": "" }, { "docid": "e2967ef5232d058274f31b84a4fa6501", "score": "0.44339696", "text": "@Override\n public void onSensorChanged(SensorEvent sensorEvent) {\n if (sensorEvent.accuracy == SensorManager.SENSOR_STATUS_UNRELIABLE) {\n return;\n }\n // Gets the value of the sensor that has been changed\n switch (sensorEvent.sensor.getType()) {\n case Sensor.TYPE_ACCELEROMETER:\n gravity = sensorEvent.values.clone();\n break;\n case Sensor.TYPE_MAGNETIC_FIELD:\n geomag = sensorEvent.values.clone();\n break;\n }\n\n // If gravity and geomag have values then find rotation matrix\n if (gravity != null && geomag != null) {\n\n // checks that the rotation matrix is found\n boolean success = SensorManager.getRotationMatrix(inR, I,\n gravity, geomag);\n Display display = ((WindowManager)MainCam.getSystemService(WINDOW_SERVICE)).getDefaultDisplay();\n if(display.getRotation() == Surface.ROTATION_0) {\n success = SensorManager.remapCoordinateSystem(inR, AXIS_X, AXIS_Y, outR);\n }else if(display.getRotation() == Surface.ROTATION_90) {\n success = SensorManager.remapCoordinateSystem(inR, AXIS_Y, AXIS_MINUS_X, outR);\n }else if(display.getRotation() == Surface.ROTATION_270) {\n success = SensorManager.remapCoordinateSystem(inR, AXIS_MINUS_Y, AXIS_X, outR);\n }\n if (success) {\n SensorManager.getOrientation(outR, orientVals);\n azimuth = Math.toDegrees(orientVals[0]);\n pitch = Math.toDegrees(orientVals[1]);\n roll = Math.toDegrees(orientVals[2]);\n }\n if((azimuth >= 0)&& (azimuth <= 25 )) {\n TextView direction = (TextView)findViewById(R.id.txtDirection);\n direction.setText(\"North\");\n }else if((azimuth > 25)&& (azimuth <= 65 )) {\n TextView direction = (TextView)findViewById(R.id.txtDirection);\n direction.setText(\"NorthEast\");\n }else if((azimuth > 65)&& (azimuth <= 115 )) {\n TextView direction = (TextView)findViewById(R.id.txtDirection);\n direction.setText(\"East\");\n }else if((azimuth > 115)&& (azimuth <= 155 )) {\n TextView direction = (TextView)findViewById(R.id.txtDirection);\n direction.setText(\"SouthEast\");\n }else if((azimuth > 155)&& (azimuth <= 205 )) {\n TextView direction = (TextView)findViewById(R.id.txtDirection);\n direction.setText(\"South\");\n }else if((azimuth > 205)&& (azimuth <= 245 )) {\n TextView direction = (TextView)findViewById(R.id.txtDirection);\n direction.setText(Math.round(azimuth) + \"° SouthWest\");\n }else if((azimuth > 245)&& (azimuth <= 295 )) {\n TextView direction = (TextView)findViewById(R.id.txtDirection);\n direction.setText(Math.round(azimuth) + \"° West\");\n }else if((azimuth > 295)&& (azimuth <= 335 )) {\n TextView direction = (TextView)findViewById(R.id.txtDirection);\n direction.setText(Math.round(azimuth) + \"° NorthWest\");\n }else if((azimuth > 335)&& (azimuth <= 360 )) {\n TextView direction = (TextView)findViewById(R.id.txtDirection);\n direction.setText(Math.round(azimuth) + \"\\\" North\");\n }\n }\n }", "title": "" }, { "docid": "bf22315fd1e97395bccf617f090fb61c", "score": "0.44240406", "text": "public MovementLib() {\n\t\t// Start of user code constructor for MovementLib)\n\t\tsuper();\n\t\t// End of user code\n\t}", "title": "" }, { "docid": "5306c6ef2e978f1d825ebba9a45d8524", "score": "0.44225168", "text": "public Sensor(InputDevice device, int sensorReadCount,\n\t\t int sensorButtonCount){\n\tthis(device, sensorReadCount, sensorButtonCount,\n\t new Point3d(0.0,0.0, 0.0));\n }", "title": "" }, { "docid": "186c62e90bdc2d6a237b8eec6856a394", "score": "0.44192988", "text": "public Rotation get(int i) {\n return new Rotation(opensimSimbodyJNI.VectorRotation_get(swigCPtr, this, i), false);\n }", "title": "" }, { "docid": "472550c4b6209ea634c7cb35f64eba9d", "score": "0.44099155", "text": "public static PStreamProvider asUpdates(int sensorDelay){\n return new GyroscopeUpdatesProvider(sensorDelay);\n }", "title": "" }, { "docid": "d21c246084b65f35fef4149927157aab", "score": "0.44082147", "text": "private ThumbnailReaderWriterFactory() {}", "title": "" }, { "docid": "127625759a2e5e6f2a204613db3de6fa", "score": "0.44022945", "text": "public ThematicRoleHandler() {\n\t\tthis(null, null);\n\t}", "title": "" }, { "docid": "a037f3fbcff8cc700f024aa4f3aca6d4", "score": "0.4399096", "text": "@Override\n\tpublic void onSensorChanged(SensorEvent event) {\n\t\tfloat[] values = event.values;\n\t\tint sensorType = event.sensor.getType();\n\t\tlong time = event.timestamp;\n\t\tswitch(sensorType){\n\t\tcase Sensor.TYPE_ACCELEROMETER:\n\t\t\tacce=values.clone();\n\t\t\tSensorManager.getRotationMatrix(Rotation,Inclination,grav,mag);\n\t\t\tfloat gravity=Rotation[6]*acce[0]+Rotation[7]*acce[1]+Rotation[8]*acce[2];\n\t\t\tfloat north=Rotation[3]*acce[0]+Rotation[4]*acce[1]+Rotation[5]*acce[2];\n\t\t\tfloat east=Rotation[0]*acce[0]+Rotation[1]*acce[1]+Rotation[2]*acce[2];\n\t\t\tosw_acc1.println(\"\"+time+\",\"+north+\",\"+east+\",\"+gravity);\n//\t\t\tosw_acc1.flush();\n\t\t\t\n\t\t\t\n\t\t\tbreak;\n\t\tcase Sensor.TYPE_GYROSCOPE:\n\t\t\tosw_gyr.println(\"\"+time+\",\"+values[0]+\",\"+values[1]+\",\"+values[2]);\n//\t\t\tosw_gyr.flush();\n\t\t\tbreak;\n\t\tcase Sensor.TYPE_LINEAR_ACCELERATION:\n//\t\t\tLog.i(\"leo\", \"liner\");\n\t\t\tosw_acc2.println(\"\"+time+\",\"+values[0]+\",\"+values[1]+\",\"+values[2]);\n//\t\t\tosw_acc2.flush();\n\t\t\tbreak;\n\t\tcase Sensor.TYPE_ORIENTATION:\n\t\t\tosw_ori.println(\"\"+time+\",\"+values[0]+\",\"+values[1]+\",\"+values[2]);\n//\t\t\tosw_ori.flush();\n\t\t\tbreak;\n\t\tcase Sensor.TYPE_MAGNETIC_FIELD:\n\t\t\tmag=values.clone();\n\t\t\tbreak;\n\t\tcase Sensor.TYPE_GRAVITY:\n\t\t\tgrav=values.clone();\n\t\t\tbreak;\n\t\t}\n\t}", "title": "" }, { "docid": "80e941ece7c7255f811fde695c21db08", "score": "0.4397741", "text": "public FfmpegHandler() {\n initialize(); \n }", "title": "" }, { "docid": "486336dcc3c84777e4e9473eeb169053", "score": "0.439676", "text": "public Sensor(TokenType t) {\n\t\ttokenType = t;\n\t}", "title": "" }, { "docid": "46746f74795b6ae72f102ba58e36b902", "score": "0.4391512", "text": "public AlarmDeleter() {\n super(\"notificationDeleter\");\n }", "title": "" }, { "docid": "6eda23c0d2072d90f0b13fe5cc68e3dc", "score": "0.43801284", "text": "public void setRotation(final JSONArray args, final CallbackContext callbackContext) throws JSONException {\n float rotation = (float)args.getDouble(1);\n String id = args.getString(0);\n this.setFloat(\"setRotation\", id, rotation, callbackContext);\n }", "title": "" }, { "docid": "b1f18fb599a19f051166ff53d441594b", "score": "0.43758968", "text": "public RotatedLatLon() {\r\n this(0.0, 0.0, 0.0);\r\n }", "title": "" }, { "docid": "9d6382971bc48a28aa6e418ef9dba7c2", "score": "0.43749204", "text": "@Override\n\tpublic int getRotation() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "786d53ffcb656a017c30b04e72377e88", "score": "0.4371175", "text": "public LogoutHandler() {\n super();\n }", "title": "" }, { "docid": "c6c0783e1237a420114ed945fedfaaac", "score": "0.43658748", "text": "private void initSensors() {\n int row = pos.y;\n int col = pos.x;\n\n // Front Sensors\n Sensor SF1 = new Sensor(\"F1\", RobotConstants.SHORT_MIN, RobotConstants.SHORT_MAX, row + 1, col - 1,\n Direction.UP);\n Sensor SF2 = new Sensor(\"F2\", RobotConstants.SHORT_MIN, RobotConstants.SHORT_MAX, row + 1, col, Direction.UP);\n Sensor SF3 = new Sensor(\"F3\", RobotConstants.SHORT_MIN, RobotConstants.SHORT_MAX, row + 1, col + 1,\n Direction.UP);\n\n // RIGHT Sensor\n Sensor SR1 = new Sensor(\"R1\", RobotConstants.SHORT_MIN, RobotConstants.SHORT_MAX, row - 1, col + 1,\n Direction.RIGHT);\n Sensor SR2 = new Sensor(\"R2\", RobotConstants.SHORT_MIN, RobotConstants.SHORT_MAX, row + 1, col + 1,\n Direction.RIGHT);\n\n // LEFT Sensor\n Sensor LL1 = new Sensor(\"L1\", RobotConstants.LONG_MIN, RobotConstants.LONG_MAX, row + 1, col - 1,\n Direction.LEFT);\n\n sensorList.add(SF1.getId());\n sensorList.add(SF2.getId());\n sensorList.add(SF3.getId());\n sensorList.add(SR1.getId());\n sensorList.add(SR2.getId());\n sensorList.add(LL1.getId());\n sensorMap.put(SF1.getId(), SF1);\n sensorMap.put(SF2.getId(), SF2);\n sensorMap.put(SF3.getId(), SF3);\n sensorMap.put(SR1.getId(), SR1);\n sensorMap.put(SR2.getId(), SR2);\n sensorMap.put(LL1.getId(), LL1);\n\n if (dir != Direction.UP) {\n rotateSensors(dir);\n }\n\n this.status = \"Sensor initialized\\n\";\n// printer.setText(printer.getText() + this.status + \"\\n\");\n\n }", "title": "" }, { "docid": "01b7cbab41c54ee17ff78f2ce8ea40da", "score": "0.4359208", "text": "Transformation createTransformation();", "title": "" }, { "docid": "41a1902ad30c8fbacb9317818d70ae2d", "score": "0.43586656", "text": "Actuator createActuator();", "title": "" }, { "docid": "a62576df9dff080e5c9addd611cd9f25", "score": "0.43539977", "text": "public Walls(double x, double y, int rotation) {\n this.x = x;\n this.y = y;\n this.rotation = rotation;\n }", "title": "" }, { "docid": "7da7952cd8bbf5fa9cfabe576c71cee7", "score": "0.43518254", "text": "public Driver() {\r\n for (i = 0; i < SENSOR_COUNT; i++) {\r\n Sensor.SENSORS[i].setTypeAndMode(3, 0x00);\r\n Sensor.SENSORS[i].activate();\r\n }\r\n// Motor.A.setPower(1); //4\r\n// Motor.C.setPower(1); //4\r\n Movement.setPower(1);\r\n \r\n colorBuffer = new byte[3][3];\r\n currentIndex = 0;\r\n currentColor = new byte[3];\r\n calibrationValues = new int[3];\r\n \r\n searchSpecialCase = -1;\r\n }", "title": "" }, { "docid": "2b5182caa42bc1a8e105ddfda73f323a", "score": "0.435159", "text": "private int start() {\n // If already starting or running, then just return\n if ((this.status == DeviceOrientation.RUNNING) || (this.status == DeviceOrientation.STARTING)) {\n return this.status;\n }\n\n this.setStatus(DeviceOrientation.STARTING);\n\n // Get accelerometer from sensor manager\n List<Sensor> list = this.sensorManager.getSensorList(Sensor.TYPE_ALL);\n\n // If found, then register as listener\n String sensorList = \"\";\n for(Sensor sensor : list) {\n sensorList+= sensor+\",\";\n }\n\n if ((list != null) && (list.size() > 0)) {\n // this.mSensor = list.get(0);\n // this.sensorManager.registerListener(this, this.mSensor, SensorManager.SENSOR_DELAY_UI);\n this.setStatus(DeviceOrientation.STARTING);\n } else {\n this.setStatus(DeviceOrientation.ERROR_FAILED_TO_START);\n this.fail(DeviceOrientation.ERROR_FAILED_TO_START, \"Not all sensors available.\"+sensorList);\n return this.status;\n }\n\n // sensorManager = (SensorManager) this.getSystemService(SENSOR_SERVICE);\n registerSensorManagerListeners();\n\n sensorFusion = new SensorFusion();\n sensorFusion.setMode(2);\n\n // Set a timeout callback on the main thread.\n stopTimeout();\n mainHandler = new Handler(Looper.getMainLooper());\n mainHandler.postDelayed(mainRunnable, 2000);\n\n return this.status;\n }", "title": "" } ]
1a8bdc636874b65ffd89ebbbddaba7a0
Tests the child method on an empty children list.
[ { "docid": "f79151bf71c3e0d71668bd52a2e00fe6", "score": "0.7752108", "text": "@Test(expected=NoSuchElementException.class)\n public void testChildEmptyList() {\n\t\t//Throw exceptions\n\t\tb.child(1);\n }", "title": "" } ]
[ { "docid": "7193eea08c62aac9ba8f996256c213a6", "score": "0.7052267", "text": "@Test\n\tpublic void testChild() {\n\t\tassertTrue(a.child(1) == c);\n\t\tassertTrue(a.child(0) == b);\n\t}", "title": "" }, { "docid": "821a5082a5c308cb13ac762062ca9b21", "score": "0.6597591", "text": "public boolean hasChildren() {\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "371be12541219b102c2e8cd82715289b", "score": "0.6551257", "text": "public boolean hasChildren() {\n return children.size() > 0;\n }", "title": "" }, { "docid": "09d4b11b81a4214a228ef0deade592ab", "score": "0.65111697", "text": "@Test\n\tpublic void testGetChildrenNullParentId(){\n\t\tchildRequest.setParentId(null);\n\t\tchildRequest.setIncludeTypes(null);\n\t\t// call under test\n\t\tEntityChildrenResponse response = entityManager.getChildren(mockUser, childRequest);\n\t\tassertNotNull(response);\n\t\t// hasAcces should not be called for root.\n\t\tverify(mockPermissionsManager, never()).hasAccess(anyString(), any(ACCESS_TYPE.class), any(UserInfo.class));\n\t\tverify(mockPermissionsManager).getNonvisibleChildren(mockUser, EntityManagerImpl.ROOT_ID);\n\t\tverify(mockNodeManager).getChildren(\n\t\t\t\tEntityManagerImpl.ROOT_ID,\n\t\t\t\tEntityManagerImpl.PROJECT_ONLY,\n\t\t\t\tnew HashSet<Long>(),\n\t\t\t\tSortBy.NAME, Direction.ASC,\n\t\t\t\tNextPageToken.DEFAULT_LIMIT+1,\n\t\t\t\tNextPageToken.DEFAULT_OFFSET);\n\t}", "title": "" }, { "docid": "9c8d31d9f68de4c1827eb2758644b8e4", "score": "0.65094256", "text": "public boolean hasChildren() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "6a74bc075d7394f38d46ddbbe477070d", "score": "0.64501184", "text": "public boolean hasChildren();", "title": "" }, { "docid": "6a74bc075d7394f38d46ddbbe477070d", "score": "0.64501184", "text": "public boolean hasChildren();", "title": "" }, { "docid": "6a74bc075d7394f38d46ddbbe477070d", "score": "0.64501184", "text": "public boolean hasChildren();", "title": "" }, { "docid": "d9befe8df595456882dbd6b4040137cf", "score": "0.6430125", "text": "@Test\n\tpublic void testAddChildren() {\n\t\tb.addChildren(f, g, h);\n\t\tassertTrue(b.numberOfChildren() == 3);\n\t\tassertTrue(b.child(0) == f);\n\t\tassertTrue(b.child(1) == g);\n\t\tassertTrue(b.child(2) == h);\n\t}", "title": "" }, { "docid": "41db2dde1e9faafbccfa0d615e53fb03", "score": "0.6417788", "text": "@Override\n public boolean hasChildNodes() {\n if (childNodeList.size() == 0)\n return false;\n else\n return true;\n \n \n }", "title": "" }, { "docid": "11e0d83070579dd1ad95df88f99eaf9b", "score": "0.6412627", "text": "public final boolean isEmpty() {\n return children.isEmpty();\n }", "title": "" }, { "docid": "3d551f82c268888b09c4e2afec228028", "score": "0.6394361", "text": "@Test\n public void testReadOnlyWithoutCollections() {\n final DefaultCitation citation = metadataWithoutCollections();\n final TreeNodeChildren children = create(citation, ValueExistencePolicy.NON_EMPTY);\n final String[] expected = {\n \"Some title\",\n \"Some edition\",\n \"Some other details\"\n };\n assertEquals(\"titleProperty\", -1, children.titleProperty);\n assertFalse (\"isEmpty()\", children.isEmpty());\n assertEquals(\"size()\", expected.length, children.size());\n assertAllNextEqual(expected, children.iterator());\n }", "title": "" }, { "docid": "8cc99586a0d6928d8d10f24e45550eca", "score": "0.63701814", "text": "@Test\n\tpublic void testChildren() {\n\t\tassertTrue(a.children() instanceof Iterator<?>);\n\t\t\n\t\tIterator<Tree<String>> iter = a.children();\n\t\t\n\t\tassertTrue(iter.hasNext());\n\t\tassertTrue(iter.next() == b);\n\t\tassertTrue(iter.hasNext());\n\t\tassertTrue(iter.next() == c);\n\t\tassertFalse(iter.hasNext());\n\t\t\n\t\titer = a.children();\n\t\tassertTrue(iter.hasNext());\n\t\titer.next();\n\t\titer.remove();\n\t\t\n\t\tassertTrue(a.numberOfChildren() == 1);\n\t\tassertTrue(a.child(0) == c);\n\t}", "title": "" }, { "docid": "376d0ac4e88fc99281da3cb6b6c1e9e2", "score": "0.63121766", "text": "public int hasChildren() {\n\t\tif (children == null) {\n\t\t\treturn 0;\n\t\t}\n\t\treturn 1;\n\t}", "title": "" }, { "docid": "493d85bf79d112602c8ee514e99e19fb", "score": "0.6289592", "text": "@Override\n\tpublic boolean hasChildren(Object element) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "7b99d909e62893a7e48c3fae4de6a30e", "score": "0.62835693", "text": "void arrayListChildMethod() {\n\t\tsampleArrayListMethod(); // internal reuse, tested, OK\n\t\tchildT = getParentT(); \t\t// internal reuse, tested, OK\n\t}", "title": "" }, { "docid": "dbb2540ab165da62b89b09a1e11ecaf7", "score": "0.62586695", "text": "public boolean hasChildren() {\n return !this.children.isEmpty();\n }", "title": "" }, { "docid": "a8161f16ebcda2eaf01022f0b0b7d6e7", "score": "0.62274694", "text": "@Override public void filter(Filter filter) throws NoTestsRemainException {\n List<FrameworkMethod> filteredChildren = ParentRunnerSpy.getFilteredChildren(this);\n // Iterate over a clone so that we can safely mutate the original.\n for (FrameworkMethod child : new ArrayList<>(filteredChildren)) {\n if (!filter.shouldRun(describeChildPlain(child))) {\n filteredChildren.remove(child);\n }\n }\n if (filteredChildren.isEmpty()) {\n throw new NoTestsRemainException();\n }\n }", "title": "" }, { "docid": "4c124817139b4abf21b0cb855817570c", "score": "0.6218363", "text": "protected boolean isProcessChildren(T thisNode)\n\t{\n\t\treturn true;\n\t}", "title": "" }, { "docid": "40d2d761f3d8cf12222452c9367dd6aa", "score": "0.6214923", "text": "@Test\n @DependsOnMethod(\"testReadOnlyWithoutCollections\")\n public void testReadOnlyWithSingletonInCollections() {\n final DefaultCitation citation = metadataWithSingletonInCollections();\n final TreeNodeChildren children = create(citation, ValueExistencePolicy.NON_EMPTY);\n final String[] expected = {\n \"Some title\",\n \"First alternate title\",\n \"Some edition\",\n \"PresentationForm[MAP_DIGITAL]\",\n \"Some other details\"\n };\n assertEquals(\"titleProperty\", -1, children.titleProperty);\n assertFalse (\"isEmpty()\", children.isEmpty());\n assertEquals(\"size()\", expected.length, children.size());\n assertAllNextEqual(expected, children.iterator());\n }", "title": "" }, { "docid": "25f53a0d24d00a74e6e19b73355352a2", "score": "0.62091994", "text": "public boolean shouldGenerate(List<BnfExpression> children) {\n for (int i = 0, size = children.size(); i < size - 1; i++) {\n if (matches(i, children.get(i))) {\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "ec5fb7a981288c6f5a5d00ce8ba3c603", "score": "0.6198203", "text": "@Override\n public boolean isEmpty() {\n return mSubChapters.isEmpty() && getChildCount() <= 1;\n }", "title": "" }, { "docid": "43ab232b981ffe8a6f4123cfed597769", "score": "0.6196569", "text": "public boolean hasChildren() {\n return (!this.children.isEmpty());\n }", "title": "" }, { "docid": "aea09398fa6a6dc2ed2101e62ef9c295", "score": "0.6189136", "text": "public boolean hasChildren() {\n return this.getNumChildren() > 0;\n }", "title": "" }, { "docid": "6f3550e0f3db4d26e411385c240f0987", "score": "0.6188604", "text": "@Override\n\tpublic boolean hasNextChild() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "abc44a1e0d6b17caae26a6f3ce797886", "score": "0.6108084", "text": "@Override\n public boolean validateNumberOfChildren(int numChildren) {\n return false;\n }", "title": "" }, { "docid": "317a4db7d6984a199d271585c6308656", "score": "0.61045104", "text": "@Override\n public int jjtGetNumChildren() {\n return (children == null) ? 0 : children.length;\n }", "title": "" }, { "docid": "294233bee024af3b4acbbc847dd1a17c", "score": "0.6099897", "text": "public List<AreaVo> checkCreateChildren() {\n if (children == null) {\n children = new ArrayList<>();\n }\n return children;\n }", "title": "" }, { "docid": "d6fc553aab7a0710cb17904c9dce7511", "score": "0.6067185", "text": "@Override\r\n\tpublic int getChildrenCount(int arg0) {\n\t\treturn 1;\r\n\t}", "title": "" }, { "docid": "386be5b63a18ffb9e9d11b0c85a45278", "score": "0.6065065", "text": "private boolean getChildValidity() {\r\n \t\tIterator<ChildT> childIterator = getChildren().iterator();\r\n \r\n \t\twhile (childIterator.hasNext()) {\r\n \t\t\tDTO<ChildT> childT = (DTO<ChildT>) childIterator.next();\r\n \t\t\tif (!childT.isValid(true)) {\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": "459a380603a7911cee32e0dc32d342a3", "score": "0.6051847", "text": "@Override\r\n\tpublic int getChildCount()\r\n\t{\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "4c09f65c8a600dc5bd04fc7e327d6f9f", "score": "0.6045823", "text": "public boolean isChildren() {\n return children;\n }", "title": "" }, { "docid": "3b3bd1b0c538fa6b85cb919991b0da40", "score": "0.60438263", "text": "@Test\n\tpublic void testNumberOfChildren() {\n\t\tassertTrue(a.numberOfChildren() == 2);\n\t\tassertTrue(b.numberOfChildren() == 0);\n\t}", "title": "" }, { "docid": "dd8f7a5032019ea9aad0187503f7aa5c", "score": "0.60155725", "text": "public void setChildren(List<OTOMNotStrictChild> children) {\n this.children = children;\n }", "title": "" }, { "docid": "e75dfc0a8cce133c0b26a33ac9e071a3", "score": "0.59967864", "text": "@Test(expected=NoSuchElementException.class)\n public void testChildNegIndex() {\n\t\t//Throw exceptions\n\t\ta.child(-1);\n }", "title": "" }, { "docid": "215bd5584e5cb08e56e9791debc244db", "score": "0.5992192", "text": "boolean getAllowsChildren();", "title": "" }, { "docid": "e7cda665d3b417cf271ff318c42bedd6", "score": "0.599065", "text": "public boolean hasChildren() throws NoSuchElementException;", "title": "" }, { "docid": "21355248a1c8229cf9f217ddc878b07c", "score": "0.59866416", "text": "private boolean isChildrenAllocated() {\n \n return (children != null);\n \n }", "title": "" }, { "docid": "f1bd0478c7939cd31e05d64807186702", "score": "0.597161", "text": "@Override\n\tpublic Iterable<Position<E>> children(Position<E> p) throws IllegalArgumentException {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "27b20900bfcc4b58af28034c4bea9648", "score": "0.5963628", "text": "@Test\n @DependsOnMethod(\"testReadOnlyWithSingletonInCollections\")\n public void testReadOnlyWithMultiOccurrences() {\n final DefaultCitation citation = metadataWithMultiOccurrences();\n final TreeNodeChildren children = create(citation, ValueExistencePolicy.NON_EMPTY);\n final String[] expected = {\n \"Some title\",\n \"First alternate title\",\n \"Second alternate title\",\n \"Some edition\",\n \"PresentationForm[MAP_DIGITAL]\",\n \"PresentationForm[MAP_HARDCOPY]\",\n \"Some other details\"\n };\n assertEquals(\"titleProperty\", -1, children.titleProperty);\n assertFalse (\"isEmpty()\", children.isEmpty());\n assertEquals(\"size()\", expected.length, children.size());\n assertAllNextEqual(expected, children.iterator());\n }", "title": "" }, { "docid": "a6ffabf788acc18e057dda4e986fdcb5", "score": "0.59618723", "text": "@Override\n\tprotected List<ITestItem> getChildren() {\n\t\tList<ITestItem> children = super.getChildren();\n\t\tif (context.randomize) Collections.shuffle(children);\n\n\t\treturn children;\n\t}", "title": "" }, { "docid": "c0fe3145ad154d436096511574acd216", "score": "0.59565926", "text": "public boolean hasMissingChildren() {\n for (int i = 0; i < fChildren.size(); i++) {\n Object curr = fChildren.get(i);\n if (curr instanceof CPListElement && ((CPListElement) curr).isMissing()) {\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "0803d68e673469e2db49ea9c2babd3e3", "score": "0.5950275", "text": "@Override\r\n\tpublic boolean getAllowsChildren()\r\n\t{\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "7480e574db9637c0c214422d497eb0b7", "score": "0.592974", "text": "@Override\n\tpublic boolean hasChildren() \n\t{\n\t\tAccessibleContext xContext = component.getAccessibleContext();\n\n\t\tif (xContext != null) {\n\t\t\tint nChildren = xContext.getAccessibleChildrenCount();\n\t\t\tif (nChildren > 0)\n\t\t\t\treturn true;\n\t\t}\n\n\t\tif (component instanceof Container) {\n\t\t\tContainer container = (Container) component;\n\t\t\tif (container.getComponentCount() > 0)\n\t\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n//\t\tAccessibleContext xContext = component.getAccessibleContext();\n//\n//\t\tif (xContext == null) \n//\t\t\treturn false;\n//\n//\t\t// TODO: Check this\n//\t\tint nChildren = xContext.getAccessibleChildrenCount();\n//\n//\t\tif (nChildren > 0)\n//\t\t\treturn true;\n//\n//\t\tif (component instanceof Container) {\n//\t\t\tContainer container = (Container) component;\n//\t\t\t\n//\t\t\tif (container.getComponentCount() > 0)\n//\t\t\t\treturn true;\n//\t\t}\n//\n//\t\treturn false;\n\t}", "title": "" }, { "docid": "c240def43751cd4a218ad2a53bef17cb", "score": "0.59246945", "text": "public boolean childrenSuperSelectImmediately() { return true; }", "title": "" }, { "docid": "2de225fcc7a92bbc5eb0e6d38d3e34af", "score": "0.5911656", "text": "@Override\n public GNode[] getChildren() {\n\n if (this.children == null || children.length == 0) {\n return EMPTY_LIST;\n\n } else {\n return this.children;\n }\n\n }", "title": "" }, { "docid": "1062a9b9f2aca8406a64cfff0ff533a1", "score": "0.5909758", "text": "@Override\n\tpublic ArrayList<INode> getChildren() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "0f4e8e2326e5233683130c7243bd228d", "score": "0.5901392", "text": "public void testEmbeddedCollectionFromChildrenDirectCRUD() throws Exception {\n\t\texecute(\"CRUD.new\");\n\t\tsetValue(\"id\",\"FATHER\");\n\t\tsetValue(\"description\", \"THE FATHER\");\n\t\texecute(\"Collection.new\", \"viewObject=xava_view_children\");\n\t\tsetValue(\"id\", \"JOHN\");\n\t\tsetValue(\"description\", \"THIS IS JOHN\");\n\t\texecute(\"Collection.save\");\n\t\tassertNoErrors();\n\t\tassertCollectionRowCount(\"children\", 1);\n\t\texecute(\"Collection.removeSelected\", \"row=0,viewObject=xava_view_children\");\n\t}", "title": "" }, { "docid": "7f5a372e14adbd00dc7d609b2a83cc48", "score": "0.5895307", "text": "public boolean nochildren()\r\n\t\t{\n\r\n\t\t\tif (left == null && right == null && left_mid == null && right_mid == null)\r\n\t\t\t{\r\n\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\r\n\t\t\treturn false;\r\n\t\t}", "title": "" }, { "docid": "db582542bbd23271085a36a440ada168", "score": "0.5864844", "text": "@Override\n\tpublic boolean getAllowsChildren() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "fe14e6cf69d0761734622b23c273afa7", "score": "0.585641", "text": "public boolean isNilChildrenCategoryList()\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.cdiscount.www.ArrayOfCategoryTree target = null;\n target = (com.cdiscount.www.ArrayOfCategoryTree)get_store().find_element_user(CHILDRENCATEGORYLIST$4, 0);\n if (target == null) return false;\n return target.isNil();\n }\n }", "title": "" }, { "docid": "c4b658f42786a2058a39fb77dc0dd6f0", "score": "0.58394617", "text": "public Object[] getChildren() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "e38fe2df715e5bc9eab09e04c331c8e6", "score": "0.5837213", "text": "public void testEmbeddedCollectionFromChildrenCRUD() throws Exception {\n\t\texecute(\"CRUD.new\");\n\t\tsetValue(\"id\",\"FATHER\");\n\t\tsetValue(\"description\", \"THE FATHER\");\n\t\texecute(\"CRUD.save\");\n\t\tassertNoErrors();\n\t\texecute(\"CRUD.new\");\n\t\tsetValue(\"id\",\"FATHER\");\n\t\texecute(\"CRUD.refresh\");\n\t\texecute(\"Collection.new\", \"viewObject=xava_view_children\");\n\t\tsetValue(\"id\", \"JANE\");\n\t\tsetValue(\"description\", \"THIS IS JANE\");\n\t\texecute(\"Collection.save\");\n\t\tassertNoErrors();\n\t\tassertCollectionRowCount(\"children\", 1);\n\t\t// test modification of Children\n\t\texecute(\"Collection.edit\", \"row=0,viewObject=xava_view_children\");\n\t\tassertValue(\"id\", \"JANE\");\n\t\tassertValue(\"description\", \"THIS IS JANE\");\n\t\tsetValue(\"description\", \"THIS IS LITTLE JANE\");\n\t\texecute(\"Collection.save\");\n\t\tassertNoErrors();\n\t\tassertValueInCollection(\"children\", 0, \"description\", \"THIS IS LITTLE JANE\");\n\t\t// Add a new child\n\t\texecute(\"Collection.new\", \"viewObject=xava_view_children\");\n\t\tsetValue(\"id\", \"JOHN\");\n\t\tsetValue(\"description\", \"THIS IS JOHN\");\n\t\texecute(\"Collection.save\");\n\t\tassertNoErrors();\n\t\t// Delete from within dialog\n\t\texecute(\"Collection.edit\", \"row=1,viewObject=xava_view_children\");\n\t\tassertValue(\"id\", \"JOHN\");\n\t\tassertValue(\"description\", \"THIS IS JOHN\");\n\t\texecute(\"Collection.remove\");\n\t\tassertNoErrors();\n\t\t// Delete from collection list \n\t\texecute(\"Collection.removeSelected\", \"row=0,viewObject=xava_view_children\");\n\t}", "title": "" }, { "docid": "aa95f2a7442eb7dbb848d641e0d7054c", "score": "0.58335876", "text": "public boolean hasChildren() {\n\n\t\tif (this.childeNodeMap.isEmpty())\n\t\t\treturn false;\n\t\telse\n\t\t\treturn true;\n\t}", "title": "" }, { "docid": "d603ad53e598790a571d41df03f93203", "score": "0.5830458", "text": "@Test (expected=IllegalArgumentException.class)\n\tpublic void testAddChildrenLoop() {\n\t\tb.addChildren(f, g, h);\n\t\t//Add loop second\n\t\tc.addChildren(e, a);\n\t\tassertTrue(c.numberOfChildren() == 1);\n\t\tassertTrue(c.child(0) == e);\n }", "title": "" }, { "docid": "2c47e273aceb4c788f193bbbf1f2be7c", "score": "0.5810931", "text": "@Override\n\tpublic Object[] getChildren(Object parentElement) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "8ab24808a33db63cf9915fa1de4d116b", "score": "0.5805376", "text": "private void checkChildrenInitialization() {\n if (children == null)\n children = new TrieNodeMap<>();\n }", "title": "" }, { "docid": "6aa88ee026d23112129e600f21adb689", "score": "0.5776083", "text": "@Override\r\n\tpublic Enumeration children()\r\n\t{\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "8511d9bf410211f6e27d79f16bb14554", "score": "0.57647943", "text": "@Test(description = \"positive test if all parents are removed\")\n public void t8f_positiveTestAllParentsRemoved()\n throws Exception\n {\n this.createNewData(\"Test\")\n .defData(\"derived\", new InterfaceData(this, \"TestParent\"))\n .create();\n this.createNewData(\"Test\")\n .update(\"\", ValueKeys.DMInterfaceParentRemove.name(), \"*\")\n .checkExport();\n }", "title": "" }, { "docid": "a31a02129f7c67dce479c2a418718cae", "score": "0.57310224", "text": "@Test (expected=IllegalArgumentException.class)\n\tpublic void testAddChildIndexedLoop() {\n \ta.addChild(0, e);\n \tc.addChild(0, f);\n \t//Fail at making loop\n \tc.addChild(0, a);\n \tassertTrue(a.numberOfChildren() == 3);\n \tassertTrue(a.child(0) == e);\n \tassertTrue(a.child(1) == b);\n \tassertTrue(a.child(2) == c);\n \t\t\t\n \tassertTrue(c.numberOfChildren() == 1);\n \tassertTrue(c.child(0) == f);\n }", "title": "" }, { "docid": "6b91146b5f6558f86ed305e03e9fbe93", "score": "0.5726195", "text": "@Test(expected=IllegalArgumentException.class)\n public void testAddChildOneParameterLooping() {\n\t\ta.addChild(d);\n\t\tassertTrue(a.numberOfChildren() == 3);\n\t\tassertTrue(a.child(0).getValue().equals(\"B\"));\n\t\tassertTrue(a.child(1).getValue().equals(\"C\"));\n\t\tassertTrue(a.child(2).getValue().equals(\"D\"));\n\n\t\tb.addChild(e);\n\t\tassertTrue(b.numberOfChildren() == 1);\n\t\tassertTrue(b.child(0).getValue().equals(\"E\"));\n\t\t\n\t\t//Make sure a was unchanged\n\t\tassertTrue(a.numberOfChildren() == 3);\n\t\tassertTrue(a.child(0).getValue().equals(\"B\"));\n\t\tassertTrue(a.child(1).getValue().equals(\"C\"));\n\t\tassertTrue(a.child(2).getValue().equals(\"D\"));\n\t\t\n\t\t\n\t\t//Try to add a loop in\n\t\tb.addChild(a);\t\t\n\t\tassertTrue(b.numberOfChildren() == 1);\n\t\tassertTrue(b.child(0).getValue().equals(\"E\"));\n }", "title": "" }, { "docid": "d4bffd6b8998876b153677529f2adb72", "score": "0.5713544", "text": "public boolean hasStartingChildren();", "title": "" }, { "docid": "d27d5433ab82dec9c5a1b42150ef1602", "score": "0.57076025", "text": "native public Boolean hasChildNodes();", "title": "" }, { "docid": "3d3f868030aa5aaeab81c0634faa63f0", "score": "0.5693159", "text": "public void setChildren(ArrayList children) {\r\n this.children = children;\r\n }", "title": "" }, { "docid": "c125e389551a76c5e89e74ac684006d5", "score": "0.56930226", "text": "public boolean hasChildren(Object element) {\r\n\t\treturn getChildren(element).length > 0;\r\n\t}", "title": "" }, { "docid": "3c845a685c9ea6249d1e5731c52f2ffe", "score": "0.5654554", "text": "public boolean hasNextChild();", "title": "" }, { "docid": "a7b914077365787b4bfe1590258726f1", "score": "0.5652021", "text": "public boolean isChild(){\n return child;\n }", "title": "" }, { "docid": "30886db309e0f5a6bb9ca7d33a91bee1", "score": "0.5646398", "text": "public boolean hasChildren() {\n return token == null;\n }", "title": "" }, { "docid": "dbc2a008155246be26355056ae912e80", "score": "0.5645692", "text": "public boolean hasNoChildren() {\r\n return (llink == null) && (rlink == null);\r\n }", "title": "" }, { "docid": "6b4e8adaaf318212551794b5d69abcae", "score": "0.5640043", "text": "Iterable<Position<E>> children(Position<E> p) throws IllegalArgumentException;", "title": "" }, { "docid": "e7ce693a23989caee57b59c078191f21", "score": "0.5632608", "text": "void skipIfOneChild();", "title": "" }, { "docid": "fc0d3113c779553b6177fd4cddaab98e", "score": "0.5632598", "text": "private void ensureChildrenLoaded() {\r\n if (!loadedChildren && (intermediateNode || rootNode)) {\r\n loadedChildren = true;\r\n\r\n // look for any kids.\r\n if (item.getKidsReferences() != null) {\r\n int count = item.getKidsReferences().size();\r\n for (int i = 0; i < count; i++) {\r\n NameNode child = item.getNode(i);\r\n NameTreeNode childTreeNode =\r\n new NameTreeNode(child, messageBundle);\r\n add(childTreeNode);\r\n }\r\n }\r\n // other wise we might have some leaf to add\r\n if (item.getNamesAndValues() != null) {\r\n List namesAndValues = item.getNamesAndValues();\r\n StringObject name;\r\n Object value;\r\n for (int i = 0, max = namesAndValues.size(); i < max; i += 2) {\r\n Object tmp = namesAndValues.get(i);\r\n if (tmp instanceof StringObject) {\r\n name = (StringObject) tmp;\r\n } else {\r\n name = new LiteralStringObject((String) namesAndValues.get(i));\r\n }\r\n value = namesAndValues.get(i + 1);\r\n add(new NameTreeNode(name, value));\r\n }\r\n }\r\n }\r\n }", "title": "" }, { "docid": "f98eb043fc0200a71bc5458a969e65fe", "score": "0.5626006", "text": "private boolean addChildren(Node parent) {\n\t\t// If they don't have any links, immediately return\n\t\tif(parent.childless) return false;\n\t\t\n\t\t// First find all children\n\t\tArrayList<String> childWords = findPossibleRungsTree(parent.word, dict);\n\t\t\n\t\t// Update Offby1 to include Nodes with childWords\n\t\tfor(String iter : childWords) {\n\t\t\tNode child = new Node(iter,parent);\n\t\t\tparent.Offby1.add(child);\n\t\t}\n\t\t\n\t\t// Have we added any children?\n\t\tif(parent.Offby1.isEmpty()) {\n\t\t\tparent.childless = true;\t// Does not have any children\n\t\t\treturn false;\t// Could not add any children\n\t\t}\t\n\t\treturn true;\n\t\t\t\n\t}", "title": "" }, { "docid": "4c26dbb54788a39ce4e4b8738406b0e5", "score": "0.5623779", "text": "@SuppressWarnings(\"unchecked\")\n @Override\n public Collection<InjectionPlan<?>> getChildren() {\n return Collections.EMPTY_LIST;\n }", "title": "" }, { "docid": "b945561adf277a115e9ec1aae9fa32c3", "score": "0.56227624", "text": "protected abstract int getChildCount();", "title": "" }, { "docid": "4a42526e3de267a86467879efb1410d8", "score": "0.5611697", "text": "public void init$Children() {\n }", "title": "" }, { "docid": "4a42526e3de267a86467879efb1410d8", "score": "0.5611697", "text": "public void init$Children() {\n }", "title": "" }, { "docid": "d60461946a474a8fa6e1de2856849c05", "score": "0.5610959", "text": "@Override\n\tpublic boolean isLeaf() {\n\t\treturn elements.isEmpty();\n\t}", "title": "" }, { "docid": "f8282aeefac48ac0645ff0842a1fc82b", "score": "0.5606531", "text": "public Iterator getChildren() {\n return null;\n }", "title": "" }, { "docid": "0ca66b9659d930151e386545c4284cb7", "score": "0.56047916", "text": "public boolean hasChild() {\n boolean has;\n if (childCompound.size() > 0) {\n has = true;\n } else {\n has = false;\n }\n\n return has;\n }", "title": "" }, { "docid": "74c0d0c4176385752d1a2001216baec7", "score": "0.559583", "text": "boolean isChildrenLoaded();", "title": "" }, { "docid": "103bdc5a5042d0a9e4a79daf791a70b5", "score": "0.55877274", "text": "boolean hasChild(String childName);", "title": "" }, { "docid": "06bac90f66a017c1484f259b8446d28a", "score": "0.55826676", "text": "void getMemberChildren(\n List<RolapMember> parentMembers,\n List<RolapMember> children,\n MemberChildrenConstraint constraint);", "title": "" }, { "docid": "d63c2122136241eb20f057eb46b966d3", "score": "0.5581966", "text": "public void clearChildren() {\n \n if (!isChildrenAllocated()) {\n return;\n }\n children.clear();\n \n }", "title": "" }, { "docid": "b132660d3f005761dd14dc98acdd03d0", "score": "0.5568507", "text": "public boolean getRendersChildren() {\n \n return (false);\n \n }", "title": "" }, { "docid": "e2c16c7b96cb08a17ca2cf985737b876", "score": "0.55649334", "text": "public Iterator getChildren() {\n return null;\n }", "title": "" }, { "docid": "e2c16c7b96cb08a17ca2cf985737b876", "score": "0.55649334", "text": "public Iterator getChildren() {\n return null;\n }", "title": "" }, { "docid": "e2c16c7b96cb08a17ca2cf985737b876", "score": "0.55649334", "text": "public Iterator getChildren() {\n return null;\n }", "title": "" }, { "docid": "e2c16c7b96cb08a17ca2cf985737b876", "score": "0.55649334", "text": "public Iterator getChildren() {\n return null;\n }", "title": "" }, { "docid": "e2c16c7b96cb08a17ca2cf985737b876", "score": "0.55649334", "text": "public Iterator getChildren() {\n return null;\n }", "title": "" }, { "docid": "e2c16c7b96cb08a17ca2cf985737b876", "score": "0.55649334", "text": "public Iterator getChildren() {\n return null;\n }", "title": "" }, { "docid": "419e2254892625df8ea8ae87e8499b32", "score": "0.55648327", "text": "@Override\n protected void iterChildren(TreeFunction f) {\n }", "title": "" }, { "docid": "419e2254892625df8ea8ae87e8499b32", "score": "0.55648327", "text": "@Override\n protected void iterChildren(TreeFunction f) {\n }", "title": "" }, { "docid": "9f1145dc18cd0ddcf5db57335361a714", "score": "0.55553585", "text": "void getMemberChildren(\n RolapMember member,\n List<RolapMember> children,\n MemberChildrenConstraint constraint);", "title": "" }, { "docid": "68fa1db7197c5a539e8299b30e4521b1", "score": "0.5543979", "text": "@Test\n public void myNeighboursList_shouldNotBeEmpty() {\n // First scroll to the position that needs to be matched and click on it.\n onView(allOf(withId(R.id.list_neighbours), isDisplayed())).check(matches(hasMinimumChildCount(1)));\n }", "title": "" }, { "docid": "a3491f466773860af0f0693ebe25133b", "score": "0.5543597", "text": "public TreeNodeChildrenTest() {\n }", "title": "" }, { "docid": "24b8bcd55d182e79b9e4ce44c51fd8d0", "score": "0.55425733", "text": "@Override\n\tpublic boolean hasChildren(File f)\n\t{\n\t\treturn isDirectory(f) && getChildren(f).size() > 0;\n\t}", "title": "" }, { "docid": "c4d59d23f9eeadc976cd36399c285e4f", "score": "0.5534237", "text": "private List getChildList() {\n \n if (children == null) {\n children = new ArrayList();\n }\n return (children);\n \n }", "title": "" }, { "docid": "c16610e2139f37d99c696e6e52c02a94", "score": "0.55325043", "text": "public Iterator getChildren() {\n \n if (isChildrenAllocated()) {\n return (getChildList().iterator());\n } else {\n return (Collections.EMPTY_LIST.iterator());\n }\n \n }", "title": "" }, { "docid": "637a9a461e2da93d644ed5b74dc5dbbe", "score": "0.5529199", "text": "@Test\n\tpublic void testRemoveChild() {\n \ta.addChild(d);\n \ta.removeChild(1);\n \tassertTrue(a.numberOfChildren() == 2);\n \tassertTrue(a.child(0) == b);\n \tassertTrue(a.child(1) == d);\t\n }", "title": "" } ]
dcbf5f2a3909ad55e21fdb02ff38fb99
This method is used to change the block state of the member
[ { "docid": "afd852e6460b1e8de8772db35eee028d", "score": "0.65402734", "text": "public void blockMember(String memberId, boolean setBlock) {\n // Verify the input parameter\n if (memberId.length() < 1) {\n return;\n }\n //Prepare the update string\n String sql = \"UPDATE members SET isblocked = \" + setBlock + \" WHERE member_id = '\" + memberId + \"'\";\n try {\n // Create the connection and execute the query command\n Class.forName(jdbcDriver).newInstance();\n connection = DriverManager.getConnection(dbUrl,dbUserName,dbPassword);\n Statement statement = connection.createStatement();\n statement.executeUpdate(sql);\n statement.close();\n connection.close();\n } catch (Exception e) {\n // TODO: handle exception\n System.err.println(e.getMessage());\n }\n }", "title": "" } ]
[ { "docid": "c1e3a4e7c690c23be53cc044835447b0", "score": "0.6755732", "text": "private DataToSetBlock() {\n }", "title": "" }, { "docid": "48a89ce34b50b1b312597c405e4b3b72", "score": "0.668133", "text": "public void setBlock(MegaBlock block) {\r\n this.block = block;\r\n }", "title": "" }, { "docid": "7989c0d7b3c96f908b85964cc3084309", "score": "0.65402067", "text": "public void setBlock(Block block) {\n\t\tthis.block = block;\n\t}", "title": "" }, { "docid": "e8f29851805682083eea3000b3c60e6b", "score": "0.64637434", "text": "public void setBlock(int index, boolean b) {\r\n\t\tdev.get(index).takeOver(b);\r\n\t}", "title": "" }, { "docid": "c4313986267937cd52723c00a1823973", "score": "0.6448558", "text": "@Override\n\tpublic void sendBlockChange(Location arg0, int arg1, byte arg2) {\n\t\t\n\t}", "title": "" }, { "docid": "b54f82c6afb596bef614bf312e388723", "score": "0.6431348", "text": "public void setBlock(Block block) {\n\t\tthis._block = block;\n\t}", "title": "" }, { "docid": "e6e9dff131cc5fa3d184b90d9c89cfdb", "score": "0.6352685", "text": "private void processOntoCurrentBlock(BlockObj blockCurrent) {\n\t\t\n\t}", "title": "" }, { "docid": "c60fdbdccbd95a8d6e357e8c63fce62d", "score": "0.6317711", "text": "@Override\n\t\t\t\tpublic void block() {\n\t\t\t\t}", "title": "" }, { "docid": "95d5339c82c282769635992d44516afc", "score": "0.62846917", "text": "void setBlockWhenEmpty(boolean block);", "title": "" }, { "docid": "873e73521199d9d03c4c2e1c9c9b1409", "score": "0.62782884", "text": "@Override\n\tpublic void sendBlockChange(Location arg0, Material arg1, byte arg2) {\n\t\t\n\t}", "title": "" }, { "docid": "0ab43ce9acae9f19109a4f88e22a44a1", "score": "0.6267984", "text": "public void setBlock(Block node) {\n getBlockOpt().setChild(node, 0);\n }", "title": "" }, { "docid": "b8d513260db41db566c12c407b8fdda4", "score": "0.62102574", "text": "private synchronized void newBlock() {\n\t\tthis.currBlock = new DocS3Block(nodeId + \"-\" + System.currentTimeMillis()/1000);\n\t\tlogger.info(\"New Block Created: {}\", this.currBlock.getBlockName());\n\t}", "title": "" }, { "docid": "f8b37617b602c8729619982467919243", "score": "0.6208382", "text": "public void setBlockage(boolean b) {\n this.blocked = b;\n }", "title": "" }, { "docid": "68ec03f70aa9d304d4837f0ef014dab6", "score": "0.6168882", "text": "public void setBlock(Block node) {\n getBlockOpt().setChild(node, 0);\n }", "title": "" }, { "docid": "2532e760dc323199a4726978056e3f38", "score": "0.6139147", "text": "@Override\r\n\tpublic void blockAccount() {\n\t\t\r\n\t\t\tthis.status=\"block\";\r\n\t\t\tthis.balance=0.0;\r\n\t}", "title": "" }, { "docid": "ebe6693f0676ccd82a4d9cdbfc34366d", "score": "0.613693", "text": "public void changeBlock(Name name) {\n\t\t//We have to change the name, but we also have to change the image\n\t\tthis.name = name;\n\t\ttry {\n\t\t\tthis.image = ImageIO.read(new File(name.file()));\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"no image found for \" + name);\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(1);\n\t\t}\n\t}", "title": "" }, { "docid": "8e798538b9fb69af8ac3b2c4c6b50409", "score": "0.6134347", "text": "protected Block() {/* intentionally empty block */}", "title": "" }, { "docid": "6c3b6b5d9bca18e240bd4171280aa9a2", "score": "0.61328584", "text": "@Override\n public void setBlockBoundsBasedOnState(IBlockAccess par1IBlockAccess, int par2, int par3, int par4)\n {\n this.setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 0.0625F, 1.0F);\n }", "title": "" }, { "docid": "5aca946cdb6140c4100922374589f975", "score": "0.6131307", "text": "@AdminAction(@Permission(module = \"adminMemberPos\", operation = \"block\"))\n @BrokerAction(@Permission(module = \"brokerPos\", operation = \"block\"))\n @MemberAction\n @PathToMember(\"member\")\n public MemberPos blockMemberPos(MemberPos memberPos);", "title": "" }, { "docid": "4a52c965a142a6cc82354c0a251b9bf9", "score": "0.6127213", "text": "public void setBlock(Block block) {\n this.flattened = false;\n this.block = block;\n }", "title": "" }, { "docid": "51b7c48470ffc0758548fdd05c01a4f8", "score": "0.61215115", "text": "public void setCurrentCraftingBlock(BLOCK block) {\n this.currentCraftingBlock = block;\n }", "title": "" }, { "docid": "10a424c14fd1706e960b77520c03bb24", "score": "0.6120974", "text": "@Override\n public void run() {\n tox.getLocation().getBlock().getRelative(BlockFace.UP, 4).setTypeIdAndData(tox.getTypeId(), tox.getData(), false);\n tox.getLocation().getBlock().setType(Material.REDSTONE_BLOCK);\n\n }", "title": "" }, { "docid": "6322becda8ccb5369ba65bd5381c80e1", "score": "0.6118455", "text": "@Override\r\n protected void setNextBlock(final int offset, final int nextBlock) {\r\n BATBlockAndIndex bai = getBATBlockAndIndex(offset);\r\n bai.getBlock().setValueAt(\r\n bai.getIndex(), nextBlock\r\n );\r\n }", "title": "" }, { "docid": "8cfe4216cdf1e924099afb91a2d3826d", "score": "0.61059415", "text": "public Block(BlockType type)\r\n {\r\n this.type = type;\r\n }", "title": "" }, { "docid": "cefcffb697c619169ea237e152e1f372", "score": "0.60501313", "text": "@Override\n public boolean visit(Block node) {\n return false;\n }", "title": "" }, { "docid": "09ddd7065913cd207f153b3bc576bf61", "score": "0.60450494", "text": "@Test\n public void testBlock() {\n elevator.block();\n assertTrue(elevator.isBlocked());\n assertSame(elevator.getDirectionState(), elevator.getDirectionStateBlocked());\n elevator.unBlock();\n assertFalse(elevator.isBlocked());\n assertNotSame(elevator.getDirectionState(), elevator.getDirectionStateBlocked());\n }", "title": "" }, { "docid": "2efa1679d5139920dce5f66a67fbab4a", "score": "0.6038454", "text": "public Block() {\n\t\twID = 0;\n\t\tbID = 0;\n\t\tlight = 0;\n\t\tintegrity = Constants.INTEGRITIES[wID];\n\t}", "title": "" }, { "docid": "7a3ecb8e1a4b5b88b3fe322255b4d182", "score": "0.6036412", "text": "public void setNextBlock(Block NextBlock)\n {\n this.nextBlock = NextBlock;\n }", "title": "" }, { "docid": "c88bf1554cdae14f8808929a0ceb915a", "score": "0.6017031", "text": "protected abstract void updateLiveness(int blockID);", "title": "" }, { "docid": "4ec16cd4b2beae7447125c991268b31e", "score": "0.6000599", "text": "private Block() {\n this.maybeAssociatedBonus = null;\n }", "title": "" }, { "docid": "e7a5f207c0369e337081eeeeefb5461b", "score": "0.5983819", "text": "public void setBlockOnOpen(boolean shouldBlock) {\n \t\tblock = shouldBlock;\n \t}", "title": "" }, { "docid": "1c2d84b9419ea2e7953a7b42010f7dba", "score": "0.59525436", "text": "public void onBlockingStateUpdated(boolean isBlocking) {\n\n\t}", "title": "" }, { "docid": "26b501a28e9807b3efa0fbe9ce610f3e", "score": "0.59509885", "text": "public boolean setBlockValue()\n\t{\n\t\ttry\n\t\t{\n\t\t\tgreaterBoard.setSquare(currentBlockRow, currentBlockCol, currentBlock.getWinner());\n\t\t\treturn true;\n\t\t}\n\t\tcatch (CannotPlaceValueException cpve)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "e0617a8d9adce4489b084de61842cd2d", "score": "0.59301496", "text": "public void createBlockPressed() {\n }", "title": "" }, { "docid": "e8a4d991226ab8f2b1ec19432cfff547", "score": "0.59239227", "text": "public void setHeldBlockState(IBlockState state)\n {\n dataWatcher.updateObject(16, Short.valueOf((short)(Block.getStateId(state) & 65535)));\n }", "title": "" }, { "docid": "18dfe3f5810d2eb579e5c21594c57016", "score": "0.5913226", "text": "@Override\n public void setIndexPossibleBlock(int indexPossibleBlock) {\n myGod.setIndexPossibleBlock(indexPossibleBlock);\n }", "title": "" }, { "docid": "ed6988b2bbe5bdafa2fb42f0daf0b096", "score": "0.59112585", "text": "@Override\n public Block setBlock(int x, int y, int z, Block block) {\n if (blockData == blockDataSnapshot) {\n blockData = blockData.copy();\n }\n int oldValue = blockData.set(x, y, z, block.getId());\n return blockManager.getBlock((short) oldValue);\n }", "title": "" }, { "docid": "ab99ea902d58bb87ab99dbe9eb95dcaf", "score": "0.59066397", "text": "public void setfoundBlock(boolean found) {\n this.foundBlock = found;\n }", "title": "" }, { "docid": "11531dde5be84420beb085eca581dd74", "score": "0.5891327", "text": "public void updateBlockState(){\n\t\t// ORDER MATTERS!\n\t\t\n\t\tboardState = State.STATIC;\n\t\t\n\t\t// find blank spaces which we are free to move into, and set all the blocks above those blanks to falling \n\t\tfor(int y=0;y<SwappidySwap.NUM_ROW;y++){\n\t\t\tfor(int x=0;x<SwappidySwap.NUM_COL;x++){\n\t\t\t\tcheckForFalling(x,y);\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int y=0;y<SwappidySwap.NUM_ROW;y++){\n\t\t\tfor(int x=0;x<SwappidySwap.NUM_COL;x++){\n\t\t\t\tif(blockGrid.getBlock(x, y)==null) continue;\n\n\t\t\t\t// only check blocks in a normal or initial state (i.e. not falling or swapping)\n\t\t\t\tif(blockGrid.getBlock(x, y).isStable()){\n\t\t\t\t\tcheckForCombosAtBlock(x,y);\n\t\t\t\t} \n\t\t\t}\n\t\t}\n\n\t}", "title": "" }, { "docid": "b40c8c6bbf2c30d20e761243eaebe23f", "score": "0.5891071", "text": "public void setBesideClimbableBlock(boolean par1)\n\t{\n\t\tbyte var2 = this.dataWatcher.getWatchableObjectByte(16);\n\n\t\tif (par1)\n\t\t{\n\t\t\tvar2 = (byte)(var2 | 1);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tvar2 = (byte)(var2 & 254);\n\t\t}\n\n\t\tthis.dataWatcher.updateObject(16, Byte.valueOf(var2));\n\t}", "title": "" }, { "docid": "00a043fe5fc9ebd48dc71b584e0a2128", "score": "0.58797985", "text": "public void actionUpdate(){\n\t\t/* let disappearing blocks disappear */\n\t\tfor(int y=0;y<SwappidySwap.NUM_ROW;y++){\n\t\t\tfor(int x=0;x<SwappidySwap.NUM_COL;x++){\n\t\t\t\tif(blockGrid.getBlock(x, y)!=null) blockGrid.getBlock(x, y).update();\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "4067676ffc470e066a4c9610231afd33", "score": "0.5867643", "text": "public AllBlock(int block) {\r\n blockToFill = block;\r\n }", "title": "" }, { "docid": "a57be5c89c4e504c8e648aec156d95f2", "score": "0.58640045", "text": "public Block(){\n\t\telavation=0;\n\t\tisWater=false;\n\t\tentityOnTile=null;\n\t}", "title": "" }, { "docid": "45f6fed5f239eaf2dc89946101ae120c", "score": "0.5856853", "text": "@Override // BlockInfo\n public BlockUCState getBlockUCState() {\n return blockUCState;\n }", "title": "" }, { "docid": "906a4911f7e2a8299504daabe74f0960", "score": "0.58515155", "text": "public void getBlockHua() {\n\t\t\r\n\t}", "title": "" }, { "docid": "93cbfac41e3f882ab39466678c520a5b", "score": "0.58481175", "text": "void setLastBlock(BlockImpl paramBlockImpl)\r\n/* 31: */ {\r\n/* 32: 33 */ this.lastBlock.set(paramBlockImpl);\r\n/* 33: */ }", "title": "" }, { "docid": "0bbb62612a61aa43791d7e6f7381bdfd", "score": "0.58396894", "text": "public void setClBlockup(Short clBlockup) {\r\n\t\tthis.clBlockup = clBlockup;\r\n\t}", "title": "" }, { "docid": "7fd49e0888846500c796c599cae4d094", "score": "0.5832046", "text": "void moveOnto(IBlock block);", "title": "" }, { "docid": "0fc1f38e177ac2efbfad3162bed5f74f", "score": "0.5823082", "text": "@Override\n\tpublic int getBlockNum() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "7f87ef4083f54e03379af63006179ba9", "score": "0.58209515", "text": "Block createBlock();", "title": "" }, { "docid": "b29a1a1dfd583e23075d406f37be1789", "score": "0.5816737", "text": "protected P2Block() {\n\t}", "title": "" }, { "docid": "4e6e811c9903927d7f61f7c69b068d54", "score": "0.5805188", "text": "private void sendBlockChange(int x, int y, int z, int type, int data) {\n\t\t/*blockChangePacketQueue.add(new Runnable() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void run() {*/\n\t\t\t\tfor (EntityPlayer player : getPlayersInWorld())\n\t\t\t\t\tplayer.getSession().sendPacket(new BlockChange(x, y, z, type, data));\n\t\t\t/*}\n\t\t});*/\n\t}", "title": "" }, { "docid": "6ac1296e2d4cc8896d914c0633c5bf9f", "score": "0.5801", "text": "public Block instance(int paramInt)\r\n/* 148: */ {\r\n/* 149:158 */ return instance().setData(b, EnumRailState.a(paramInt & 0x7)).setData(M, Boolean.valueOf((paramInt & 0x8) > 0));\r\n/* 150: */ }", "title": "" }, { "docid": "08d3a5783d7b6ba95d51d37caa955a46", "score": "0.57992566", "text": "public ModUndeadBlockHalfSlab(int par1, boolean par2)\r\n\t{\r\n\t\tsuper(par1, par2, Material.wood);\r\n\t\tsetLightOpacity(0);\r\n\t\tblockIndexInTexture = ModUndeadMainRegistry.dreadPlanks.blockIndexInTexture;\r\n\t}", "title": "" }, { "docid": "c05eed761f44648d861814c4b9dda083", "score": "0.57960695", "text": "@Override\r\n\tpublic int change(Member member) {\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "873800132932bc7ae729788e97cbfd3b", "score": "0.5774536", "text": "@Override\n\tpublic void visit(Block n) {\n\n\t}", "title": "" }, { "docid": "6aa3513affd690f47c0420b86deb2085", "score": "0.5758899", "text": "@Override\n\tpublic void sendBlockChange(Location loc, BlockData block)\n\t{\n\t\tthrow new UnimplementedOperationException();\n\t}", "title": "" }, { "docid": "752dae0e0f8361d5875c9e57bec79786", "score": "0.5754653", "text": "public Block() {\n super(\"block\", \"name\", \"&rest\", \"forms\");\n }", "title": "" }, { "docid": "a8310650bc5473c18e862964902963cd", "score": "0.5744481", "text": "protected void block()\n\t{\n\t\tthis.threadLocalManager.set(BLOCK, Boolean.TRUE);\n\t}", "title": "" }, { "docid": "ba3195e14497174e28025cdb13a33510", "score": "0.57383496", "text": "public void onBlockAdded(World par1World, int par2, int par3, int par4)\n{\n super.onBlockAdded(par1World, par2, par3, par4);\n this.setDefaultDirection(par1World, par2, par3, par4);\n \n}", "title": "" }, { "docid": "ca8cf2cfe255490f00d51028e4f11af9", "score": "0.57208973", "text": "public void resetBlocked() {\n this.blocked = Direction.IDLE;\n }", "title": "" }, { "docid": "c6ffc55ba278fb5cb8e4c50942f58a7b", "score": "0.5715911", "text": "public void setBlockNumber(Integer blockNumber){\n\t\tthis.blockNumber = blockNumber;\n\t}", "title": "" }, { "docid": "5197e5695117cbaae60da1e87a0a7be2", "score": "0.5709702", "text": "private void updateBlockLevel() {\r\n if (!isFirstToken) {\r\n return;\r\n }\r\n \r\n if (column > blockLevels.peek()) {\r\n // Open a new block.\r\n blockLevels.push(column);\r\n tokens.add(new Token(Token.Type.OPEN_BLOCK, getPosition()));\r\n }\r\n else {\r\n // Close blocks until reaching the current indentation level.\r\n while (column < blockLevels.peek()) {\r\n blockLevels.pop();\r\n tokens.add(new Token(Token.Type.CLOSE_BLOCK, getPosition()));\r\n }\r\n }\r\n }", "title": "" }, { "docid": "2aeb6be8161dfe85d8fe5fd618f61968", "score": "0.57091904", "text": "@Override\n public void onNeighborBlockChange(World world, int x, int y, int z, Block block) {\n }", "title": "" }, { "docid": "f6fce774bf9b4aff48870c738aac906f", "score": "0.56815964", "text": "public ShieldBlock() {\n super();\n }", "title": "" }, { "docid": "f632238f9ccd0a3889e6d28e0f1aa6d9", "score": "0.56808865", "text": "void block(int damage, int modifier);", "title": "" }, { "docid": "e5f1614c3c7d1a7ae1ce37129189431a", "score": "0.5671919", "text": "void handleBlockActivity(PXContext context) throws PXException;", "title": "" }, { "docid": "36f495c4ea25c699acad40dfdb9d989c", "score": "0.5671189", "text": "public Block() {}", "title": "" }, { "docid": "36f495c4ea25c699acad40dfdb9d989c", "score": "0.5671189", "text": "public Block() {}", "title": "" }, { "docid": "dc180ee13f1e4caa897861406bb02817", "score": "0.56642705", "text": "BlockType(int i){\r\n BlockID = i;\r\n }", "title": "" }, { "docid": "9df2ddc2d601006ffecc0d0b64e8adf6", "score": "0.56632274", "text": "public String getName() {\n return \"Block State Definitions\";\n }", "title": "" }, { "docid": "906f602b8f4428ce84854f16f8091b51", "score": "0.56422645", "text": "@Override\n\tpublic SimpleBlock setBlockName(String blockName)\n\t{\n\t\tsuper.setBlockName(blockName);\n\t\tGameRegistry.registerBlock(this, blockName);\n\t\tContentRegistry.registerBlock(this, blockName, modId, this.isOre ? ContentTypes.Block.ORE : ContentTypes.Block.GENERAL);\n\t\treturn this;\n\t}", "title": "" }, { "docid": "967f005dc39de03110d36b2dd451544d", "score": "0.56389344", "text": "public void setPreviousBlock(Block PreviousBlock)\n {\n this.previousBlock = PreviousBlock;\n }", "title": "" }, { "docid": "2bed1d3f1b4aab9a7261772d5753322e", "score": "0.56364053", "text": "@Override\n public boolean canItemEditBlocks() {return true;}", "title": "" }, { "docid": "457c164a1c6935936dfc6b50704b008c", "score": "0.56322473", "text": "public MegaBlock getBlock() {\r\n return block;\r\n }", "title": "" }, { "docid": "bd386597e90deb850989787db8fe2ede", "score": "0.56211764", "text": "private void onBlockPlaced(int[][] putGrid){\n board.setGrid(putGrid); //set the grid on the board\n board.setIsDisplayingBlocks(true); //set the \"isDisplayingBlocks\" variable to true\n }", "title": "" }, { "docid": "edc228f0f4c8be511e361f7bf738a627", "score": "0.56188774", "text": "@Override\n public void breakBlock(World par1World, int par2, int par3, int par4, int par5, int par6)\n {\n super.breakBlock(par1World, par2, par3, par4, par5, par6);\n\n if (!par1World.isRemote)\n {\n par1World.notifyBlocksOfNeighborChange(par2, par3 + 1, par4, this.blockID);\n par1World.notifyBlocksOfNeighborChange(par2, par3 - 1, par4, this.blockID);\n par1World.notifyBlocksOfNeighborChange(par2 + 1, par3, par4, this.blockID);\n par1World.notifyBlocksOfNeighborChange(par2 - 1, par3, par4, this.blockID);\n par1World.notifyBlocksOfNeighborChange(par2, par3, par4 + 1, this.blockID);\n par1World.notifyBlocksOfNeighborChange(par2, par3, par4 - 1, this.blockID);\n this.updateAndPropagateCurrentStrength(par1World, par2, par3, par4);\n this.notifyWireNeighborsOfNeighborChange(par1World, par2 - 1, par3, par4);\n this.notifyWireNeighborsOfNeighborChange(par1World, par2 + 1, par3, par4);\n this.notifyWireNeighborsOfNeighborChange(par1World, par2, par3, par4 - 1);\n this.notifyWireNeighborsOfNeighborChange(par1World, par2, par3, par4 + 1);\n\n if (par1World.isBlockNormalCube(par2 - 1, par3, par4))\n {\n this.notifyWireNeighborsOfNeighborChange(par1World, par2 - 1, par3 + 1, par4);\n }\n else\n {\n this.notifyWireNeighborsOfNeighborChange(par1World, par2 - 1, par3 - 1, par4);\n }\n\n if (par1World.isBlockNormalCube(par2 + 1, par3, par4))\n {\n this.notifyWireNeighborsOfNeighborChange(par1World, par2 + 1, par3 + 1, par4);\n }\n else\n {\n this.notifyWireNeighborsOfNeighborChange(par1World, par2 + 1, par3 - 1, par4);\n }\n\n if (par1World.isBlockNormalCube(par2, par3, par4 - 1))\n {\n this.notifyWireNeighborsOfNeighborChange(par1World, par2, par3 + 1, par4 - 1);\n }\n else\n {\n this.notifyWireNeighborsOfNeighborChange(par1World, par2, par3 - 1, par4 - 1);\n }\n\n if (par1World.isBlockNormalCube(par2, par3, par4 + 1))\n {\n this.notifyWireNeighborsOfNeighborChange(par1World, par2, par3 + 1, par4 + 1);\n }\n else\n {\n this.notifyWireNeighborsOfNeighborChange(par1World, par2, par3 - 1, par4 + 1);\n }\n }\n }", "title": "" }, { "docid": "2916202629d7c2ba2d78abe6f988af7f", "score": "0.5618764", "text": "@Override\n public String getFunctionDescription() {\n return \"Sets the blocks in the cuboid.\";\n }", "title": "" }, { "docid": "71650d69e7d65f857aa27420a9ec1217", "score": "0.5616249", "text": "void updateMember(Member member);", "title": "" }, { "docid": "f4c01be06a14684f73393e22f335edcb", "score": "0.5613023", "text": "public PowerMoves getBlock() { return new PowerMoves(\"MOVE_BLOCK\", \"basic defence block\", \"B\", GameConstants.MOVE_DAMAGE_NONE); }", "title": "" }, { "docid": "65ebe9a8f037d41d9a20ce817cb0897c", "score": "0.5612548", "text": "private void readyToBlock() {\n\t\tthis.readyQueue.get(0).setStates(\"Blocked\"); \n\t\tthis.currentStates.set(this.currentStates.lastIndexOf(this.readyQueue.get(0)), this.readyQueue.get(0));\n\t\tthis.filaBlocked.add(this.readyQueue.remove(0));\n\t}", "title": "" }, { "docid": "32cc0dc5a7ed1c1771975c848a715f0a", "score": "0.56082594", "text": "public void markBlockForUpdate(int par1, int par2, int par3) {\n\t\tthis.markBlocksForUpdate(par1 - 1, par2 - 1, par3 - 1, par1 + 1, par2 + 1, par3 + 1);\n\t}", "title": "" }, { "docid": "de664ece366087d17c5bdde3ffce4788", "score": "0.5604207", "text": "void setLastBlock(BlockImpl paramBlockImpl1, BlockImpl paramBlockImpl2)\r\n/* 36: */ {\r\n/* 37: 37 */ if (!this.lastBlock.compareAndSet(paramBlockImpl1, paramBlockImpl2)) {\r\n/* 38: 38 */ throw new IllegalStateException(\"Last block is no longer previous block\");\r\n/* 39: */ }\r\n/* 40: */ }", "title": "" }, { "docid": "b2a5083353c480154c1b0d7155ab354a", "score": "0.5599762", "text": "public void setNewBlockSideLength(double newBlockSideLength) {\r\n if (newBlockSideLength > 0.0)\r\n this.newBlockSideLength = newBlockSideLength;\r\n }", "title": "" }, { "docid": "1756bb341aded3a0a070fcf7b585d537", "score": "0.55888224", "text": "private void publishBlock(BlockObj block) {\n\n\t}", "title": "" }, { "docid": "9925d6978dd226d8b044dd863328d986", "score": "0.558683", "text": "public Wall(Block newBlock){\n blockHere = new Block(newBlock.getX(), newBlock.getY(), \"Wall\");\n }", "title": "" }, { "docid": "3a702718ee3c6d502dad589ac66825f9", "score": "0.5578444", "text": "public void newBlock(){\n \n int blockNum;\n \n int fiveNum = randRange(0,3);//there is a 1/3 chance to be a 5-square block\n if(fiveNum==0){//it is a 5-square block\n blockNum = randRange(0, num5-1);\n }else{\n blockNum = randRange(num5, blockTypes.length-1);\n }\n int x = 4;\n int y = 2;\n for (int i = 0; i < 5; i++) {//for each square in the block\n grid[y+blockTypes[blockNum][i][1]][x+blockTypes[blockNum][i][0]] = 2;\n }\n //speed up the game\n normalLoopTime = (int)Math.floor(speedUpRate*(double)normalLoopTime);\n }", "title": "" }, { "docid": "01a5e048b2f22b2b7df191353afb26ad", "score": "0.55784225", "text": "protected Block() {\n this(0);\n }", "title": "" }, { "docid": "54922765056a2b793dcea716407c9fd4", "score": "0.5558867", "text": "@Override\n\t\t\t\tpublic void unblock() {\n\t\t\t\t}", "title": "" }, { "docid": "c5c6c0f32121ee7be5d87fa846bdd995", "score": "0.55586696", "text": "public Block(){\n\n }", "title": "" }, { "docid": "b6a75b85144fa11e3f2fcebe2bbd12a3", "score": "0.5556002", "text": "void setStructureLocked( boolean locked );", "title": "" }, { "docid": "c54c7da58bb601fe443feee9ad52cc21", "score": "0.55536973", "text": "public String getBlock() {\n\t\treturn BLOCK;\n\t}", "title": "" }, { "docid": "693c4a5094bf6b597ba725093b132779", "score": "0.5552747", "text": "public void updateMapOfBlocks(Peer p){\n HashMap<String,HashMap<Integer, Integer>> map = p.getMapOfBlocks().get(p.getName());\n this.mapOfBlocks.put(p.getName(), map);\n }", "title": "" }, { "docid": "cd9789842d47659a62469b2e7e8c2572", "score": "0.55512357", "text": "protected BlockState getBlockState(){\r\n\t\treturn (BlockState)object;\r\n\t}", "title": "" }, { "docid": "d06c9a10ef03cb92e38e5d845faf499f", "score": "0.55466396", "text": "@Override\n\tpublic int getBlockPosition() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "2b0f5a9d8758208a35f89dd2fda9afe6", "score": "0.5544967", "text": "public void onNeighborBlockChange(World par1World, int par2, int par3, int par4, int par5)\n {\n super.onNeighborBlockChange(par1World, par2, par3, par4, par5);\n par1World.scheduleBlockUpdate(par2, par3, par4, blockID, tickRate());\n }", "title": "" }, { "docid": "b05c009f7bee1e50a90c13264f47f560", "score": "0.554496", "text": "private Block(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "title": "" }, { "docid": "b05c009f7bee1e50a90c13264f47f560", "score": "0.554496", "text": "private Block(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "title": "" }, { "docid": "fea558fcdb7ac754190c12bb3e10a03a", "score": "0.55420744", "text": "public static void setBlock(String userName, String blockName, String blockText)\n\t{\n\t\tlocalStore.setItem(KEY_PATH + userName + \".\" + BLOCK + \".\" + blockName, blockText);\n\t}", "title": "" }, { "docid": "9091a578ff5127f9d8c82c21e31e6ab1", "score": "0.55270463", "text": "Block(final Node node) {\n super(node);\n }", "title": "" } ]
1ff43639e5139582931fe924e06aa23f
Devolve a posicao da primeira ocorrencia da string pat em txt a partir do iesimo caracter
[ { "docid": "527cb9141cb8cdcd6537257bfbac5dca", "score": "0.6560346", "text": "private int search (String txt, int i) {\n int M = pat.length();\n int N = txt.length();\n int skip;\n for (; i <= N - M; i += skip) {\n skip = 0;\n for (int j = M-1; j >= 0; j--) {\n if (pat.charAt(j) != txt.charAt(i+j)) {\n skip = Math.max(1, j - right[txt.charAt(i+j)]);\n break;\n }\n }\n if (skip == 0) return i; // found\n }\n return N; // not found\n }", "title": "" } ]
[ { "docid": "2c13c36c626268fb838486bffb3b8dd1", "score": "0.638131", "text": "public int search(String txt) {\n int M = pat.length();\n int N = txt.length();\n int skip;\n for (int i = 0; i <= N - M; i += skip) {\n skip = 0;\n for (int j = M-1; j >= 0; j--) {\n if (pat.charAt(j) != txt.charAt(i+j)) {\n skip = Math.max(1, j - right[txt.charAt(i+j)]);\n break;\n }\n }\n if (skip == 0) return i; // found\n }\n return N; // not found\n }", "title": "" }, { "docid": "3aaf1e9756d104968246b2b3cfc086d7", "score": "0.622079", "text": "private static ArrayList<Integer> patternSearch(String s, String p){\n ArrayList<Integer> indexes = new ArrayList<>(); \n\n for(int i = 0 ; i < s.length() - p.length(); i++){\n\n if(s.substring(i, i + p.length()).equals(p)) indexes.add(i);\n\n\n }\n\n return indexes;\n }", "title": "" }, { "docid": "8278cef022caa39a9c978dda15b290b2", "score": "0.604091", "text": "private int search(String txt) {\n\n // simulate operation of DFA on text\n int M = pat.length();\n int N = txt.length();\n int i, j;\n for (i = 0, j = 0; i < N && j < M; i++) {\n j = dfa[txt.charAt(i)][j];\n }\n if (j == M) return i - M; // found\n return N; // not found\n }", "title": "" }, { "docid": "33cd824253db04820390a926769a0a34", "score": "0.6018237", "text": "public static void main(String[] args){\n String str = \"aasdfasdfasdfasdfas\";\n String pattern = \"aasdf.*asdf.*asdf.*asdf.*s\";\n// String str = \"mississippi\";\n// String pattern = \"mis*is*ip*.\";\n// String pattern = \"mis*is*p*.\";\n// String pattern = \"mis*is*ip*.\";\n// String str = \"aaaaaaaaaaaaac\";\n// String pattern = \"a*a*a*a*a*a*a*a*a*a*c\";\n long time = System.currentTimeMillis();\n// String str = \"aaaaaaaaaaaaab\";\n// String pattern = \"a*a*a*a*a*a*a*a*a*a*b\";\n System.out.println(find(str,pattern));\n System.out.println(\"time: \" + (System.currentTimeMillis() - time));\n }", "title": "" }, { "docid": "6dccfcbe7b20dab0e850f9a5ade0a461", "score": "0.59580344", "text": "public static int finder(String line){\n for (int i = 0; i < line.length(); i++) {//i is the current index \n char current_char = line.charAt(i);\n if(current_char == '+' || current_char == '-' || current_char == '*' || current_char == '/' ){\n return i;\n }\n }\n return line.length();\n}", "title": "" }, { "docid": "a1d1aea9b7f197ae49ec4ce4c4579000", "score": "0.59401417", "text": "private int search(String txt, int begin){\n if(txt == null) return -1;\n if(begin < 0 || begin >= txt.length())return -1;\n\n int M = pat.length();\n int N = txt.length();\n int i, j;\n for (i = begin, j = 0; i < N && j < M; i++) {\n j = dfa[txt.charAt(i)][j];\n }\n if (j == M) return i - M; // found\n return N; // not found\n }", "title": "" }, { "docid": "aebab21c8d414b3678c93856dc1ea248", "score": "0.5892457", "text": "public static void main (String ... args) {\n\n String titulo = \"simple\";\n String pattern = \"abc\";\n String source = \"avsfvasdfabcwefewafabc\";\n find(titulo, pattern, source);\n\n ////////////////////////\n titulo = \"Digitos...\";\n pattern = \"\\\\d\";\n source = \"9a8d70sd98f723708\";\n find(titulo, pattern, source);\n\n titulo = \"NO Digitos...\";\n pattern = \"\\\\D\";\n source = \"9a8d70sd98f723708\";\n find(titulo, pattern, source);\n\n titulo = \"\";\n pattern = \"a?\";\n source = \"aba\";\n find(titulo, pattern, source);\n\n titulo = \"dot methacharacter\";\n pattern = \"a.c\";\n source = \"ac abc a c\";\n find(titulo, pattern, source);\n\n titulo =\"Operator ^ carat\";\n pattern = \"proj1([^,])*\";\n source = \"proj3.txt,proj1sched.pdf,proj1,prof2,proj1.java\";\n find(titulo, pattern, source);\n\n }", "title": "" }, { "docid": "b20ab0c15fab947a1042e1e4c717723b", "score": "0.584398", "text": "static int contig(String str, String pattern) {\n\n\t\tif (str == null || pattern == null) {\n\t\t\t//System.out.println(\"null. \" + str + \", \" + pattern);\n\t\t\treturn 0;\n\t\t}\n\t\t//System.out.println(\"contig \" + str + \", \" + pattern);\n\t\tint i = str.indexOf(pattern); int j=i;\n\t\tint n = pattern.length();\n\t\t\n\t\tint count = 0; int max = 0;\n\t\t\n\t\twhile (i>-1 && (i+n) < str.length()) {\n\t\t\tif (i==j) {\n\t\t\t\tcount++;\n\t\t\t\tmax = Math.max(max, count);\n\t\t\t\ti=str.indexOf(pattern, i+n);\n\t\t\t\tj+=n;\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\tmax = Math.max(max, count);\n\t\t\t\tcount=0; \n\t\t\t\ti=str.indexOf(pattern, i+1);\n\t\t\t\tj=i;\n\t\t\t\tif (i>-1) count++;\n\t\t\t}\n\t\t}\n\t\treturn max;\n\t}", "title": "" }, { "docid": "958bdcdbee3b2e75d87a8e7bd56855a8", "score": "0.5817151", "text": "public static void RE( String s){\n \tString path = \"txt\";\t\n\t\tFile file = new File(path);\t\t\n\t\tFile[] fs = file.listFiles();\n\t\tString A [ ] = new String [fs.length];\n\t\tfor(int i=0;i<fs.length;i++) {\n\t\t\tA[i]=fs[i].toString();\t\t\n\t\t\tlib.In myfile=new lib.In (A[i]);\n\t\t\tString f=myfile.readAll();\n\t\t\tmyfile.close();\n \n//\t\t\tString pattern =\"[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(\\\\.[a-zA-Z0-9_-]+)+\";\n//\t\t\tString pattern2 = \"(\\\\()?(\\\\d){3}(\\\\))?[- ](\\\\d){3}-(\\\\d){4}\";\n//\t\t\tString pattern3=\"([a-zA-Z0-9_-]+\\\\.)+w3.org\";\n//\t\t\tString pattern8=\"www.w3.org(/[a-zA-Z0-9_-]+)+/\";\n//\t\t\tString pattern9=\"www.w3.org(/[a-zA-Z0-9_-]+)+/#[a-zA-Z0-9_-]+\";\n//\t\t\tString pattern5=\"([a-zA-Z0-9_-]+\\\\.)+com\";\n//\t\t\tString pattern6=\"([a-zA-Z0-9_-]+\\\\.)+net\";\n//\t\t\tString pattern7=\"([a-zA-Z0-9_-]+\\\\.)+org\";\n\t\t\t\n\t\n\t\t\tString pattern10=s;\n\t\t\tPattern r = Pattern.compile(pattern10);\n\t\n\t\t\n\t\t\t// Now create matcher object.\n\t\t\tMatcher m = r.matcher(f);\n\t\t\twhile (m.find( )) {\n\t\t\t\tSystem.out.println(A[i]);\n\t\t\t\tSystem.out.println(\"Found value: \" + m.group(0) + \" at \" + m.start(0));\n\t\t\t} \n\t\t}\n }", "title": "" }, { "docid": "96da54ab1a6a3baad3d929dada6a4c60", "score": "0.5816234", "text": "public Iterable<Integer> findAll (String pat, String txt) {\n // Fila que armazena as posicoes nas quais foram encontradas \n // o padrao no texto \n Queue<Integer> queue = new Queue<Integer> ();\n\n int N = txt.length ();\n int M = pat.length ();\n // Armazena a posicao das ocorrencias do padrao no texto\n int position;\n // Posicao a partir do qual o texto sera processado\n int start = 0;\n\n // Achando o estado que devemos ficar apos encontrar um padrao no texto\n int X = 1;\n\n // Achando todas as ocorrencias do padrao\n do { \n position = search (txt, start);\n if (position < N) {\n queue.enqueue (position);\n }\n start = position + X;\n } while (start < txt.length ());\n \n return queue;\n }", "title": "" }, { "docid": "df91e30de309604de30688756eb124b0", "score": "0.57851696", "text": "public static void main(String[] args) {\n String name = \"I love Java I Love Java Java Java\";\n System.out.println(\"starting from 0 \" +name.indexOf(\"Java\"));\n System.out.println(\" starting from 7 \"+name.indexOf(\"Java\", 7));\n System.out.println(\" starting from 7 \"+name.indexOf(\"Java\", 8));\n System.out.println(\" starting from 7 \"+name.indexOf(\"Java\", 9));\n System.out.println(\" starting from 7 \"+name.indexOf(\"Java\", 19));\n System.out.println(\" starting from 7 \"+name.indexOf(\"Java\", 20));\n // ilk java gosterecek yani location of// simdi ise ikinci javayi ariyor +1 ile! (ava I Love )\n //or you can start here + 4 nereden biliyorum +4 cunku\n //java 4 character!!!!!!!!!!! yada ilk aradigin kelimeyi\n // bitiri bitirmez +1 koyarsin eger bilmiyorsam +word.lenght();\n\n int firstJavaLocation = name.indexOf(\"Java\");\n int startingPointToSearchSecondJava = firstJavaLocation+1;\n int secondJavaLocation = name.indexOf(\"Java\",startingPointToSearchSecondJava);\n System.out.println(\"secondJavaLocation = \" + secondJavaLocation);\n //eger cumlede nekadar kelime oldugunu bilmiyorsam I only know there are 3+ words\n // ve sadece ikinci kelimeyi biliyorsam;\n //the word in between first space and second space is second word\n int firstSpaceLocation = name.indexOf(\" \");\n int secondSpace = name.indexOf(\" \", firstJavaLocation + 1);\n System.out.println(\"second word in this sentence is \"\n +name.substring(firstJavaLocation + 1, secondSpace));\n\n\n\n\n }", "title": "" }, { "docid": "5f65a63ad7fa7c0f47738b93f8617a94", "score": "0.5737857", "text": "public static String[] findText(int linebegin, int lineend, String partname) throws IOException\n\t{\n\t\tString line;\n\t\tString[] lines = new String[30];\n\t\tFile worksheet = new File(\"/Users/sturtevantauto/Pictures/Car_Pictures/XPS/6715329.acu\");\n\t\t\tBufferedReader reader = new BufferedReader(new FileReader(worksheet));\n\t\t\tint i = 0;\n\t\t\tint s = 0;\n\t\t\twhile((line = reader.readLine()) != null)\n\t\t\t{\n\t\t\t\tif(i < linebegin)\n\t\t\t\ti++;\n\t\t\t\t\n\t\t\t\tif(i >= linebegin && i <= lineend)\n\t\t\t\t{\n\t\t\t\t\tif(line.contains(partname))\n\t\t\t\t\t\tline = line.substring(partname.length());\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tString[] splitline1 = line.split(\" 1 \");\n\t\t\t\t\tString[] splitlines = splitline1[0].split(\" 1 \");\n\t\t\t\t\tsplitlines[0] = splitlines[0].trim();\n\t\t\t\t\tif(!splitlines[0].contains(\"0 0 0 0 0 0\") && !splitlines[0].isEmpty() &&\n\t\t\t\t\t (StringUtils.countMatches(splitlines[0], \"/\") < 4) && !splitlines[0].contains(\"0 0 0 0\")\n\t\t\t\t\t && !(Character.isDigit(splitlines[0].charAt(0)) && splitlines[0].toCharArray().length == 1))\n\t\t\t\t\t{\n\t\t\t\t\tif(splitlines[0].charAt(0) == 'R' || splitlines[0].charAt(0) == 'L')\n\t\t\t\t\t\tsplitlines[0] = splitlines[0].replace(\".\", \"\");\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tlines[s] = splitlines[0];\n\t\t\t\t\ts++;\n\t\t\t\t\ti++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\treader.close();\n\t\treturn lines;\n\t}", "title": "" }, { "docid": "234c1ed7ff934c8d2ebb4b0881deff98", "score": "0.573532", "text": "private static int findBrute(List<Character> text, List<Character> pattern) {\n int n = text.size();\n int m = pattern.size();\n for (int i = 0; i <= n - m; i++) { //try every starting index within text.\n int k = 0; // k is index into pattern\n while (k < m && text.get(i + k) == pattern.get(k))\n // kth character of pattern matches\n k++;\n if (k == m) // if we reach the end of the pattern,\n return i; // substring text[i..i+m-1] is a match\n } //end for\n return -1;// search failed\n }", "title": "" }, { "docid": "2453300f67f0179a4b723182bcdfe022", "score": "0.5711562", "text": "public static int KMPSearch(String txt, String pat) {\r\n\t\tint M = pat.length();\r\n\t\tint N = txt.length();\r\n\r\n\t\t// return -1 if pattern cannot be found in txt\r\n\t\tif (M > N) {\r\n\t\t\treturn -1;\r\n\t\t}\r\n\r\n\t\t// create lps[] that will hold the longest\r\n\t\t// prefix suffix values for pattern\r\n\t\tint lps[] = new int[M];\r\n\t\tint j = 0; // index for pat[]\r\n\r\n\t\t// Preprocess the pattern (calculate lps[] array)\r\n\t\tcomputeLPSArray(pat, M, lps);\r\n\r\n\t\t// use i as index for txt\r\n\t\tint i = 0;\r\n\t\t// loop through txt until the end\r\n\t\twhile (i < N) {\r\n\r\n\t\t\t// if the characters match increase the indexes of txt and pattern\r\n\t\t\tif (pat.charAt(j) == txt.charAt(i)) {\r\n\t\t\t\ti++;\r\n\t\t\t\tj++;\r\n\t\t\t}\r\n\r\n\t\t\t// if the index of pattern reaches the end then the word has been found, return\r\n\t\t\t// the index of txt where it starts\r\n\t\t\tif (j == M) {\r\n\t\t\t\treturn i - M;\r\n\t\t\t}\r\n\r\n\t\t\t// if no match is found after j attempts, calculate the jump when j>0, otherwise\r\n\t\t\t// increment i\r\n\t\t\telse if (i < N && pat.charAt(j) != txt.charAt(i)) {\r\n\t\t\t\tif (j > 0) {\r\n\t\t\t\t\tj = lps[j - 1];\r\n\t\t\t\t} else\r\n\t\t\t\t\ti++;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn -1;\r\n\t}", "title": "" }, { "docid": "02cb358d921a166af8363eb5c1c228b9", "score": "0.5700447", "text": "public static void main(String[] args) throws Exception {\n String patronA = \"[0-5]\";\n\n // conjunto de letras de \"a\" a \"c\"\n String patronB = \"[a-c]\";\n\n // conjunto de todas las letras minusculas\n String patronC = \"[a-z]\";\n\n // conjunto de numeros\n String patronD = \"[0-9]\";\n\n // ejemplo con tipo de dato string\n String textoAlfanumerico = \"0123aaaa\";\n System.out.println(\"Texto alfanumerico:\" + textoAlfanumerico);\n\n String replace1 = textoAlfanumerico.replaceAll(patronA, \"X\");\n System.out.println(\"Reemplazo de numeros con X: \" + replace1);\n\n String replace2 = textoAlfanumerico.replaceAll(patronB, \"X\");\n System.out.println(\"Reemplazo de letras con X: \" + replace2);\n\n\n //[0-5][a-c];\n //String patronComplejo = patronA + patronB;\n\n //[a-c]*[0-5]*\n //String patronComplejo = patronA + \"*\" + patronB + \"*\";\n\n //\"[a-z]+\"\n\n // + = una coincidencia\n // * = ninguna o muchas\n\n //String patronComplejo = \"(\" + patronA + patronC + \")+\";\n String patronComplejo = \"(\" + patronC + \")+\";\n\n String texto = \"hola, aacc este bbcc es mi 55222aaa texto 2663aaaa blah blah\";\n System.out.println(\"patron complejo:\" + patronComplejo);\n System.out.println(texto);\n\n Pattern pattern = Pattern.compile(patronComplejo);\n Matcher matcher = pattern.matcher(texto);\n\n // buscar ocurrencias\n while (matcher.find()) {\n System.out.println(\"Encontrado:\" + matcher.group());\n }\n\n\n }", "title": "" }, { "docid": "05ef23a4fa411c306898d0ca78747c2a", "score": "0.56879896", "text": "public int search(String txt) {\n\n // simulate operation of DFA on text\n int M = pat.length();\n int N = txt.length();\n int i, j;\n for (i = 0, j = 0; i < N && j < M; i++) { \n \t\t\t\t\t\t\t\t//Start from 0 as text position to txt.length()\n \t\t\t\t\t\t\t\t//If you ever reach j=M, you have found a match, so stop\n j = dfa[txt.charAt(i)][j];\n }\n if (j == M) return i - M; // found\n return N; // not found\n }", "title": "" }, { "docid": "cfe3953680c7c33ce88f181b8281d408", "score": "0.56486493", "text": "public static int bruteForce(String Text, String Pat) {\r\n\t\t// placeholders for the length of the strings\r\n\t\tint n = Text.length();\r\n\t\tint m = Pat.length();\r\n\r\n\t\t// if the string cannot contain the pattern return -1\r\n\t\tif (n < m) {\r\n\t\t\treturn -1;\r\n\t\t}\r\n\r\n\t\t// loop through each substring of length m in the string we are searching\r\n\t\tfor (int pos = 0; pos < n - m + 1; pos++) {\r\n\t\t\t// compare the characters to the pattern's characters at index i in Text\r\n\t\t\tint i;\r\n\t\t\tfor (i = 0; i < m; i++) {\r\n\t\t\t\tif (Text.charAt(i + pos) != Pat.charAt(i)) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// if there was a match found return the index\r\n\t\t\tif (i == m) {\r\n\t\t\t\treturn pos;\r\n\t\t\t}\r\n\t\t}\r\n\t\t// when the pattern is not found return -1\r\n\t\treturn -1;\r\n\t}", "title": "" }, { "docid": "f9926f351cee1b0139367f551f7dd131", "score": "0.56462944", "text": "private static int matchFunction(Scanner inputStream, List<Character> text, List<Character> pattern) {\n\n int countPattern = 0;//Keeps track of the successful occurrences.\n\n while (inputStream.hasNext()) { //checks for every new line of the text file.\n\n String[] line = inputStream.nextLine().split(\" \"); //Splits the line into tokens.\n\n\n for(String word: line){\n //For every token analyzed, turn every token into an array of characters and store it in the list.\n for(int i =0 ; i < word.length(); i++){\n text.add(word.charAt(i));\n }//end for\n\n int result = findBrute(text, pattern); //returns the index where the substring is found.\n\n if (result != -1) { //if it returns anything but -1, substring was found in the token.\n countPattern++; //increment for every matching substring found.\n }//end if\n\n text.clear(); //clears the token from the list. loops back again for the next token.\n }//end for\n\n }//end while\n inputStream.close(); //closes input stream.\n return countPattern;\n }", "title": "" }, { "docid": "71ab0e153f9973ba7403090aef638825", "score": "0.55981743", "text": "public int searchPattern(File filePath, String pattern) throws IOException \r\n\t{\r\n\t\tint my_counter = 0;\r\n\t\tString fileText = \"\";\r\n\t\t\r\n\t\ttry \r\n\t\t{\r\n\t\t\tBufferedReader bufferedReader = new BufferedReader(new FileReader(filePath));\r\n\t\t\tString line = null;\r\n\r\n\t\t\twhile ((line = bufferedReader.readLine()) != null)\r\n\t\t\t{\r\n\t\t\t\tfileText = fileText + line;\r\n\t\t\t}\r\n\t\t\tbufferedReader.close();\r\n\r\n\t\t\tString textinFile = fileText;\r\n\t\t\r\n\t\t\tBoyerMoore boyerMoore = new BoyerMoore(pattern);\r\n\r\n\t\t\tint offset = 0;\r\n\r\n\t\t\tfor (int loc = 0; loc <= textinFile.length(); loc += offset + pattern.length()) \r\n\t\t\t{\r\n\t\t\t\toffset = boyerMoore.search(pattern, textinFile.substring(loc));\r\n\t\t\t\tif ((offset + loc) < textinFile.length()) \r\n\t\t\t\t{\r\n\t\t\t\t\tmy_counter++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (NullPointerException e) \r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\t\r\n\t\treturn my_counter;\r\n\t}", "title": "" }, { "docid": "4b65d8757cd56731cd61d98ac7096048", "score": "0.5598172", "text": "String findMatches(String filePath, String pattern) {\n\t Pattern regexp = Pattern.compile(pattern);\n\t Matcher m = null;\n\t String output = \"\";\n\t Path path = Paths.get(filePath);\n\t try {\n\t \t\tBufferedReader reader = Files.newBufferedReader(path, m_oEncoding);\n\t \t\tLineNumberReader lineReader = new LineNumberReader(reader);\n\t \t\tString line = null;\n\t \t\twhile ((line = lineReader.readLine()) != null) {\n\t \t\t\tm = regexp.matcher(line); //reset the input\n\t \t\t\tif (m.find()) {\n\t \t\t\t\tm_nCount ++;\n\t \t\t\t\toutput = output + String.valueOf(m_nCount) +\" - \" + String.valueOf(lineReader.getLineNumber()) +\": \"+ line + \"\\n\";\n\t \t\t\t}\n\t \t\t}\n\t } catch (IOException ex){\n\t ex.printStackTrace();\n\t }\n\t return output;\n\t }", "title": "" }, { "docid": "5ec009f6f660dce5debcd573eff8445f", "score": "0.5544385", "text": "public int search(char[] text) {\n int M = pattern.length;\n int N = text.length;\n int skip;\n for (int i = 0; i <= N - M; i += skip) {\n skip = 0;\n for (int j = M-1; j >= 0; j--) {\n if (pattern[j] != text[i+j]) {\n skip = Math.max(1, j - right[text[i+j]]);\n break;\n }\n }\n if (skip == 0) return i; // found\n }\n return N; // not found\n }", "title": "" }, { "docid": "7185566f9836580e4e77de952ca7255b", "score": "0.5526183", "text": "public String wild(String text, String pattern)\n {\n\t\tString result = \"\";\n\t\tif(pattern.contains(\"*\"))\n\t\t{\n\t\t\t\tArrayList<String> sb = new ArrayList<String>();\n\t\n\t\t\tString [] cards = pattern.split(\"\\\\*\");\n\t\t\tfor(int i=0;i<cards.length;i++)\n\t\t\t{\n\t\t\t\tif(!\"\".equalsIgnoreCase(cards[i]))\n\t\t\t\t\tsb.add(cards[i]);\n\t\t\t}\n\t\t\tboolean st=false,en=false;\n\t\n\t\t\tfor (String card : cards)\n\t\t\t{\n\t\t\t\tst = text.startsWith(card);\n\t\n\t\t\t\ten = text.endsWith(card);\n\t\t\t}\n\t\n\t\t\tif(st == true && sb.size() == 1)\n\t\t\t\ten = true;\n\t\t\tif(en == true && sb.size() == 1)\n\t\t\t\tst = true;\n\t\t\tif(st && en)\n\t\t\t\t//System.out.println(text);\n\t\t\t\tresult = text;\n\t\t}\n\t\telse if(pattern.contains(\"?\"))\n\t\t{\n\t\t\t\n\t\t\t//System.out.println(\"???\");\n\t\t\tint i=0;\n\t\t\tchar[] temp = pattern.toCharArray();\n\t\t\tString temp1=\"\",temp3=\"\";\n\t\t\t\n\t\t\tfor(char c : temp)\n\t\t\t{\n\t\t\t\t\n\t\t\t\tif(c == '?')\n\t\t\t\t\tbreak;\n\t\t\t\t\ti++;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tif(i>0)\n\t\t\t{\n\t\t\t\ttemp1 = pattern.substring(0,i-1);\n\t\t\t\ttemp3 = pattern.charAt(i-1)+\"\";\n\t\t\t\t\t//System.out.println(temp1+\" ff \"+temp3);\n\t\t\t\t\t\n\t\t\t\t\tif(text.startsWith(temp1))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!\"\".equalsIgnoreCase(temp3))\n\t\t\t\t\t\t\t//System.out.println(text);\n\t\t\t\t\t\t\tresult = text;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t//System.out.println(text);\n\t\t\t\t\t\t\tresult = text;\n\t\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t\n\t\t\t\ttemp3 = pattern.charAt(i+1)+\"\";\n\t\t\t\tif((i+2)<pattern.length())\n\t\t\t\t\ttemp1 = pattern.substring(i+2,pattern.length());\n\t\t\t\t//System.out.println(temp1+\" \"+temp3);\n\t\t\t\tif(text.startsWith(temp1))\n\t\t\t\t{\n\t\t\t\t\tif(!\"\".equalsIgnoreCase(temp3))\n\t\t\t\t\t\t//System.out.println(text);\n\t\t\t\t\t\tresult = text;\n\t\t\t\t\telse\n\t\t\t\t\t\tresult = text;\n\t\t\t\t\t//System.out.println(text);\n\t\t\t\t}\n\t\t\t\t//System.out.println(temp1);\n\t\t\t}\n\t\t}\n\t\t\t\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(text.equalsIgnoreCase(pattern))\n\t\t\t\t\t//System.out.println(text);\n\t\t\t\t\tresult = text;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\treturn result;\n\t\t}", "title": "" }, { "docid": "88ae75951f23e6f01e69e885afeca92a", "score": "0.54428947", "text": "private int getLine ( String toSearch , int elsegmento )\r\n\t{\r\n\t\tfor ( int i = 0 ; i < cont[elsegmento] ; i++ )\r\n\t\t{\r\n\t\t\tStringTokenizer st = new StringTokenizer ( segmento[elsegmento][i],\":\" );\r\n\t\t\tif ( st.countTokens() > 1 )\r\n\t\t\t{\r\n\t\t\t\tString label = st.nextToken().trim();\r\n\t\t\t\tif ( label.equalsIgnoreCase(toSearch) ) return i;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn -1;\r\n\t}", "title": "" }, { "docid": "bad7a090083c49593eb9ab9329d44504", "score": "0.5439354", "text": "public static String pickSubstring(String samp_str, String pat_str) {\r\n\t\tint ln1 = samp_str.length();\r\n\t\tint ln2 = pat_str.length();\r\n\t\tif (ln1 < ln2) {\r\n\t\t\tSystem.out.println(\"No such window can exist\");\r\n\t\t\treturn \"\";\r\n\t\t}\r\n\t\tint gvn_strg[] = new int[256];\r\n\t\tint pat_stgr[] = new int[256];\r\n\t\tfor (int i = 0; i < ln2; i++)\r\n\t\t\tpat_stgr[pat_str.charAt(i)]++;\r\n\t\tint ctr = 0, start = 0, start_index = -1, min_length = Integer.MAX_VALUE;\r\n\t\tfor (int j = 0; j < ln1; j++) {\r\n\t\t\tgvn_strg[samp_str.charAt(j)]++;\r\n\t\t\tif (pat_stgr[samp_str.charAt(j)] != 0 && gvn_strg[samp_str.charAt(j)] <= pat_stgr[samp_str.charAt(j)])\r\n\t\t\t\tctr++;\r\n\t\t\tif (ctr == ln2) {\r\n\t\t\t\twhile (gvn_strg[samp_str.charAt(start)] > pat_stgr[samp_str.charAt(start)]\r\n\t\t\t\t\t\t|| pat_stgr[samp_str.charAt(start)] == 0) {\r\n\t\t\t\t\tif (gvn_strg[samp_str.charAt(start)] > pat_stgr[samp_str.charAt(start)]\r\n\t\t\t\t\t\t\t|| pat_stgr[samp_str.charAt(start)] == 0)\r\n\t\t\t\t\t\tgvn_strg[samp_str.charAt(start)]--;\r\n\t\t\t\t\tstart++;\r\n\t\t\t\t}\r\n\t\t\t\tint length_window = j - start + 1;\r\n\t\t\t\tif (min_length > length_window) {\r\n\t\t\t\t\tmin_length = length_window;\r\n\t\t\t\t\tstart_index = start;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (start_index == -1) {\r\n\t\t\tSystem.out.println(\"No such window exists\");\r\n\t\t\treturn \"\";\r\n\t\t}\r\n\t\treturn samp_str.substring(start_index, start_index + min_length);\r\n\t}", "title": "" }, { "docid": "d97ba1e7fde27830eae20eb34a68bc27", "score": "0.5430444", "text": "public int findSubstringInWraproundString1(String p) {\n if(p == null || p.length() == 0) {\n return 0;\n }\n int pLength = p.length();\n // keep track of the number of consecutive letters for each substrings which starts from a...z\n int[] consecutiveNumberFrom = new int[26]; \n consecutiveNumberFrom[p.charAt(0) - 'a'] = 1;\n // keep track of the number of legacy consecutive letters\n int[] consecutiveCount = new int[pLength];\n consecutiveCount[0] = 1;\n int result = 1;\n for(int i = 1; i < pLength; i++) {\n consecutiveCount[i] = isConsecutive(p.charAt(i - 1), p.charAt(i))\n ? consecutiveCount[i - 1] + 1\n : 1;\n for(int j = i - consecutiveCount[i] + 1; j <= i; j++) {\n if(consecutiveNumberFrom[p.charAt(j) - 'a'] < i - j + 1) {\n result++;\n consecutiveNumberFrom[p.charAt(j) - 'a']++;\n } else {\n break;\n }\n }\n }\n return result;\n }", "title": "" }, { "docid": "ec4ccc2565a1961180f589f105d4d2c5", "score": "0.5417384", "text": "public int search(String text, String pattern) {\n int M = pattern.length();\n int N = text.length();\n int i, j;\n for (i = 0, j = 0; i < N && j < M; i++) {\n while (j >= 0 && text.charAt(i) != pattern.charAt(j))\n j = next[j];\n j++;\n }\n if (j == M) return i - M;\n return N;\n }", "title": "" }, { "docid": "9648fbb97de2855c10644d0018be1ed1", "score": "0.5385719", "text": "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n while(true){\n try{\n \tint n=sc.nextInt();\t\n }\n catch(Exception e){\n break;\n }\n String p=sc.next();\n String t1=sc.next();\n char text[]=t1.toCharArray();\n char pat[]=p.toCharArray();\n if(p.length()>t1.length()){\n System.out.println();\n }\n else {\n int f[]=new int[pat.length];\n f[0]=0;\n int j=0;\n for(int i=1;i<pat.length;){\n if(pat[i]==pat[j]){\n f[i]=j+1;\n i++;\n j++;\n }\n else {\n if(j>0){\n j=f[j-1];\n }\n else {\n f[i]=0;\n i++;\n }\n }\n }\n int i=0;\n j=0;\n boolean b=false;\n while(i<text.length&&j<pat.length){\n if(pat[j]==text[i]){ \n i++;\n j++;\n if(j==pat.length){\n System.out.println(i-pat.length);\n b=true;\n j=f[j-1];\n }\n }\n else if(j>0){ \n j=f[j-1];\n }\n else {\n i++;\n }\n }\n if(!b) {\n System.out.println();\n }\n System.out.println();\n \n }\n }\n }", "title": "" }, { "docid": "8662560dc331b22d421bb1336e11a1ba", "score": "0.53686", "text": "private int findStopCodon(String sequentie,int start){\n\t for(int i = start; i+3<sequentie.length();i+=3){\n\t if(sequentie.substring(i,i+3).contains(\"TAG\")||sequentie.substring(i,i+3).contains(\"TAA\")||sequentie.substring(i,i+3).contains(\"TGA\")){\n\t return i+3;\n\t }\n\t }\n\t return -1;\n }", "title": "" }, { "docid": "cf89e1d6fa671f4dcac2434008db954b", "score": "0.536621", "text": "public int searchWord(File filePath, String s1) throws IOException, NullPointerException\r\n\t{\r\n\t\tint counter = 0;\r\n\t\tString data = \"\";\r\n\t\tBufferedReader bufferReader = new BufferedReader(new FileReader(filePath));\r\n\t\tString line = null;\r\n\t\twhile ((line = bufferReader.readLine()) != null)\r\n\t\t{\r\n\t\t\tdata = data + line;\r\n\t\t}\r\n\t\tbufferReader.close();\r\n\t\tString txt = data;\r\n\t\tBoyerMoore bm = new BoyerMoore(s1);\r\n\t\tint offset = 0;\r\n\t\tfor (int loc = 0; loc <= txt.length(); loc += offset + s1.length())\r\n\t\t{\r\n\t\t\t offset = bm.search(s1, txt.substring(loc));\r\n\t\t\t if ((offset + loc) < txt.length())\r\n\t\t\t { \r\n\t\t\t\t counter++; \r\n\t\t\t\t System.out.printf(\"The word '\"+s1 +\"' is present at the position \" + (offset + loc)+\"\\n\"); //printing position of word \r\n\t\t\t } \r\n\t\t}\r\n\t\tif(counter!=0)\r\n\t\t{ \r\n\t\t\t System.out.println(\" In the FILE: \"+filePath.getName()+\"\\n\");\r\n\t\t}\r\n\t\treturn counter; \r\n\t}", "title": "" }, { "docid": "e4614e81b1fa01910fecf299b48084ff", "score": "0.5360909", "text": "public int search(String txt)\n {\n String patternCollector;\n int N = txt.length();\n long txtHash = hash(txt, M);\n if (N < M) {return N;}\n patternCollector = hashMatchPattern(txtHash);\n if (patternCollector != null){\n if (check(0, txt, patternCollector)){\n return 0;\n }\n }\n\n for (int i = M; i < N; i++) {\n txtHash = (txtHash + Q - RM*txt.charAt(i-M) % Q) % Q;\n txtHash = (txtHash*R + txt.charAt(i)) % Q;\n patternCollector = hashMatchPattern(txtHash);\n if (patternCollector != null){\n if (check(i - M + 1, txt, patternCollector)){\n return i - M + 1;\n }\n }\n }\n return N; // no match found\n }", "title": "" }, { "docid": "388068ff57bf738f6e9c9d476c9773d0", "score": "0.53435796", "text": "private String eliminar_contenido_innecesario(String line) {\n \n \tint index_question = line.indexOf('?');\n\t\tint index_point = line.indexOf('.');\n\t\t\n\t\tline = ( index_question > 0 ) ? line.substring(0, index_question+1) : line;\n\t\tline = ( index_point > 0 ) ? line.substring(0, index_point+1) : line;\n\t\t\n \treturn line;\n }", "title": "" }, { "docid": "34d0107267f280a06d94835a5de3a47f", "score": "0.53424674", "text": "public static void main(String[] args) {\n\n\t\tString a=\"Hadi gidelim bu diyardan\";\n\t\tSystem.out.println(a.startsWith(\"H\"));//true\n\t\tSystem.out.println(a.startsWith(\"\"));//true==> hic biseyi de kabul etti\n\t\tSystem.out.println(a.startsWith(\"Hadi\"));//true\n\t\n\t\tSystem.out.println(a.startsWith(\"g\", 5));//true==> index 5 \"g\" ile mi basliyor demektir\n\t\tSystem.out.println(a.startsWith(\"i\", 7));//false==> index7 de \"i\" mi var diye bakar\n\t\tSystem.out.println(a.startsWith(\"\", 6));//true==>index6 da normalde \"i\" var ancak hicbirsey arandiginda hicbirseylere bakar\n\t\n\t\t\n\t\t//12.indexOf()==>of=in,in anlami var.indexin gibi\n\t\t//indexOf da hem String hem de char kullanilir\n\t\tSystem.out.println(a.indexOf(\"i\"));//3==>soldan saga giderken ilk gorunumun indexini verir\n\t\tSystem.out.println(a.indexOf('d'));//2\n\t\t//deli yi bulur ve ilk harfinin indexini verir.birden cok karakter varsa ilkinin indexini verir\n\t\tSystem.out.println(a.indexOf(\"deli\"));//7\n\t\t//olmayan bir character icin indexOf kullanirsaniz java -1 return eder\n\t\tSystem.out.println(a.indexOf(\"x\"));//-1\n\t\tSystem.out.println(a.indexOf(\"diyer\"));//-1 coklu characterde hepsi ayni olmasa yine d yi gormeyip -1 doner\n\t\t\n\t\tSystem.out.println(a.indexOf(\"d\", 4));//7==> 4.indexten sonraki d nin indexini buluyor\n\t\tSystem.out.println(a.indexOf(\"a\", 9));//19==> 9. indexten sonraki a nin indexini verir\n\t\tSystem.out.println(a.indexOf('e', 8));//8\n\t\t\n\t\t//13. lastIndexOf()==>son gorunumun indexini verir\n\t\t\n\t\tString b=\"Java Ah java!\";\n\t\tSystem.out.println(b.lastIndexOf(\"v\"));//10 ==>son v nin indexi demektir\n\t\tSystem.out.println(b.lastIndexOf(\"av\"));//9 ==> son av i bulup a nin indexini basar\n\t\t\n\t\t//14. subString()==> bir Stringin belli bir bolumunu kesip almaya yarar(ONEMLI COK KULLANILIR)\n\t\t\n\t\tString c=\"Karakartal\";\n\t\t//asdece kartal kelimesini ekrana yazdirmak icin soyle yapilir. begin= baslangic\n\t\tSystem.out.println(c.substring(4));//kartal==> kesmeye baslanilan yerden sonrasini ekrana basar\n\t\t//ekrana arakartal yazalim\n\t\tSystem.out.println(c.substring(1));//arakartal\n\t\t//ekrana kar yazdiralim\n\t\t//subString methodun da iki sayi kullanirsaniz ilk sayi dahil ikinci sayi haric olur asagida ki gibi\n\t\tSystem.out.println(c.substring(4, 7));//kar\n\t\t//subString le ilk harfi almak icin subString(0,1) yazariz bunu cok kullaniriz\n\t\tSystem.out.println(c.substring(0, 1));//K\n\t\t// baslangic ve bitis index lerini ayni yaparsak hicbirsey aliriz.\n\t\tSystem.out.println(c.substring(2, 2));//\"\" hicbirsey goruruz\n\t\t//subString te baslangic indexi bitis indexinden buyk olamaz.\n\t\t//buyuk yazarsak Run Time Error aliriz\n\t\t//System.out.println(c.substring(5, 3));\n\t\t\n\t\t\n\t\t//trim() methodu==>trim==tras anlamina gelir.bir Stringin bas ve son tarafindaki spaceleri siler\n\t\t//dikkat edin aradakileri degil bas ve sondakileri siler\n\t\tString d=\" Java iyidir \";\n\t\tSystem.out.println(d.length());//16\n\t\t\n\t\tSystem.out.println(d.trim().length());//11\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}", "title": "" }, { "docid": "20679af7047a6cca08c1dc351123981d", "score": "0.53170764", "text": "public static void main(String[] args) {\n String pat = args[0];\n String txt = args[1];\n char[] pattern = pat.toCharArray();\n char[] text = txt.toCharArray();\n\n KMP kmp1 = new KMP(pat);\n int offset1 = kmp1.search(txt);\n\n KMP kmp2 = new KMP(pattern, 256);\n int offset2 = kmp2.search(text);\n\n // print results\n StdOut.println(\"text: \" + txt);\n\n StdOut.print(\"pattern: \");\n for (int i = 0; i < offset1; i++)\n StdOut.print(\" \");\n StdOut.println(pat);\n\n StdOut.print(\"pattern: \");\n for (int i = 0; i < offset2; i++)\n StdOut.print(\" \");\n StdOut.println(pat);\n }", "title": "" }, { "docid": "877239ab3557510c2a016ce7c1943e4c", "score": "0.52811843", "text": "public static void main(String[] args) {\n\t\tString s = \"String -Hello, my name is algoritmia - \";\n\t\t\n\t\tint pos1 = s.indexOf(\"Hello\");\n\t\tint pos2 = s.lastIndexOf(\"my\");\n\t\tSystem.out.println(pos1);\n\t\tSystem.out.println(pos2);\n\t}", "title": "" }, { "docid": "8f57226312d7b3ce2b29ca937af1e619", "score": "0.52706563", "text": "public static void main(String[] args) {\n\t\tString str= \"Welcome to JLC ,Java Trainintg Center,No 1 in Java Training and placement\";\r\n\t\tSystem.out.println(str.indexOf('J'));\r\n\t\tSystem.out.println(str.indexOf('J', 12));\r\n\r\n\t}", "title": "" }, { "docid": "518ff9b2e5642aa12430fcf4e5c8058f", "score": "0.526487", "text": "public static ResultModel search(String text, String pattern) {\n long startTime = System.nanoTime();\n ResultModel Result = new ResultModel();\n String positionText = \"\";\n int Count = 0;\n // Write your code here\n int M = pattern.length(); \n int N = text.length(); \n int i, j; \n int p = 0; // hash value for pattern \n int t = 0; // hash value for txt \n int h = 1; \n \n // The value of h would be \"pow(d, M-1)%q\" \n for (i = 0; i < M-1; i++) {\n h = (h*d)%q; \n }\n // Calculate the hash value of pattern and first \n // window of text \n for (i = 0; i < M; i++) \n { \n p = (d*p + pattern.charAt(i))%q; \n t = (d*t + text.charAt(i))%q; \n\n\n } \n \n \n // Slide the pattern over text one by one \n for (i = 0; i <= N - M; i++) \n { \n \n // Check the hash values of current window of text \n // and pattern. If the hash values match then only \n // check for characters on by one \n if ( p == t ) \n { \n /* Check for characters one by one */\n for (j = 0; j < M; j++) \n { \n if (text.charAt(i+j) != pattern.charAt(j)) \n break; \n } \n \n // if p == t and pat[0...M-1] = txt[i, i+1, ...i+M-1] \n if (j == M) { \n \tCount ++;\n\t // return i\n\t if(positionText == \"\") {\n\t positionText += (i+ 1) + \"th\";\n\t }else {\n\t positionText = positionText + \", \" + (i+1) + \"th\";\n\t }\n }\n } \n \n // Calculate hash value for next window of text: Remove \n // leading digit, add trailing digit \n if ( i < N-M ) \n { \n\n t = (d*(t - text.charAt(i)*h) + text.charAt(i+M))%q; \n \n // We might get negative value of t, converting it \n // to positive \n if (t < 0) {\n\n t = (t + q); \n }\n \n } \n \n } \n\n //End of code\n\n long endTime = System.nanoTime();\n long totalTime = endTime - startTime;\n\n Result.setExecutionTime(TimeUnit.NANOSECONDS.toMillis(totalTime));\n Result.setFoundCount(Count);\n Result.setPosition(positionText);\n return Result;\n }", "title": "" }, { "docid": "b8267b819b9a11459c934525e57fc48c", "score": "0.52445006", "text": "public static void main(String[] args) {\n\n String text= \"merhaba arkadaslar \";\n System.out.println( \"1. bolum =\" + text .substring(1,5));// 1 nolu indexten 5 e kadar. 5 dahil degil\n System.out.println(\"2. bolum =\"+ text.substring(0,3));\n System.out.println(\"3. bolum =\"+ text.substring(4));// verilen indexten sonun akadar al\n\n String strAlinan= text.substring(0,3);\n\n\n\n\n\n }", "title": "" }, { "docid": "9e2a411dd414ed5a647c92972d02da49", "score": "0.52440006", "text": "public static void main(String[] args) {\n System.out.println(indexOf(\"Devxschoooool\", 'o'));\n //substring(1, 2)\n }", "title": "" }, { "docid": "3bdbeca6e3971381694f8a4951d1e332", "score": "0.5239414", "text": "public static void stringManipulations() {\n\t\tString str=\"hello naresh how are you\";\n\t\t// 012345678901234567890123 lengh=23\n\t\tString str2=\"hello naresh how are you\";\n\t\tString str3=\"Hello naresh how are you\";\n\t\t\n\t\tSystem.out.println(\"length of array :\"+str.length());\n\t\tSystem.out.println(\"char at 5th possition :\"+str.charAt(5));\n\t\tSystem.out.println(\"o char possition :\"+str.indexOf(\"o\"));//it si 1st occurance of O\n\t\t//here where the \"o\" possition is found that position will remains skips...\n\t\t//***in interviewer will ask i want 2nd \"o\" position at that time below statement\n\t\t//here directly we can give po\n\t\tSystem.out.println(\"2nd possition is :\"+str.indexOf(\"o\",str.indexOf(\"o\")+2));//2nd occurancy of o\n\t\t//2 nd 3rd occurancy search google\n\t\tSystem.out.println(str.indexOf(\"h\"));\n\t\tSystem.out.println(str.indexOf(\"how\"));\n\t\tSystem.out.println(str.indexOf(\"kjdsnfksd\"));//somany people think o/p is error or some exception but it will give \n\t\t//output is \"-1\"\n\t\t//string comparisum..\n\t\tSystem.out.println(str==str2);\n\t\tSystem.out.println(str==str3);\n\t\tSystem.out.println(str.equalsIgnoreCase(str3));//here cases (capt or small) ignored \n\t\t//substring\n\t\tSystem.out.println(str.substring(6, 12)); //it will give o/p char is in b/w\n\t\t//6 and 16\n\t\tSystem.out.println(str.trim());\n\t\t//it will trim the speaces befor anfter string bt it could not delete between speaces\n\t\tSystem.out.println(str2.replace(\" \", \"_\"));\n\t\tString[] strArray=str.split(\" \");\n\t\tfor (int i = 0; i < strArray.length; i++) {\n\t\t\tSystem.out.println(strArray[i]);\n\t\t}\n\t}", "title": "" }, { "docid": "90d5e58c8ddc0dbc0d84e90010659bf5", "score": "0.52376425", "text": "public static void main(String[] args) {\n\t\tSystem.out.println(FindLongCommSubstringInt(\"tesla\",\"slate\"));\n\t\t//System.out.println(FindLongCommSubstringInt(\"xxxx\",\"slate\"));\n\t\tSystem.out.println(FindLongCommSubstringInt(\"xxxxx\",\"slate\"));\n\t}", "title": "" }, { "docid": "fe66b38522304738cc76cacee3dc5ccf", "score": "0.5235215", "text": "public static int stringMatch(String text, String pattern) {\n char[] t = text.toLowerCase().toCharArray();\n char[] p = pattern.toLowerCase().toCharArray();\n int n = t.length;\n int m = p.length;\n int i = m - 1; // index the right end of pattern/text alignment\n int comp = 0; //number of comparisons done\n\n Hashtable<Character, Integer> table = shiftTable(p, t);\n\n //catches empty string error and pattern.length > text.length error\n if (text.isEmpty() || pattern.isEmpty() || m > n) {\n System.out.println(\"-------Warning------\\nInputs are either empty or wrong lengths\");\n return -1;\n }\n\n while (i <= n - 1) {\n System.out.println(\"Right Most Position = \" + i + \"\\n\" + text + \"\\n\" + pattern);\n int k = 0; // k is how many chars have matched\n comp++;\n\n while (k <= m - 1 && p[m - 1 - k] == t[i - k]) {\n k += 1;\n }\n if (k == m) {\n System.out.println(\"Pattern Found!\\nNumber of Comparisons: \" + comp);\n return i - m + 1;\n } else {\n String spaces = spaces(table.get(t[i]));\n pattern = spaces + pattern;\n i = i + table.get(t[i]); // shift according to rightmost char\n }\n }\n System.out.println(\"No Match Found\");\n return -1; // if get here, no matches anywhere\n }", "title": "" }, { "docid": "294deb9ac9e04deb733a2a042f0711b2", "score": "0.5201114", "text": "int getStartCharIndex();", "title": "" }, { "docid": "e2f9669888cf5e06f60e043e9afd7a94", "score": "0.5200804", "text": "public static void main(String[] args) {\n String pattern = \"orl\";\n String text = \"Hello World in Java\";\n\n searchPatternInText(pattern, text);\n\n //pattern = \"xyz\";\n //searchPatternInText(pattern, text);\n }", "title": "" }, { "docid": "6e2afac6ee6e38af843db9fbb90d0ac1", "score": "0.51833344", "text": "public int firstMatch(char[] array, char[] pattern){\n for(int a = 0; a <= array.length-pattern.length; a++) {\n for (int p = 0; p < pattern.length; p++) {\n if (array[a+p] != pattern[p]) break;\n if (p == pattern.length-1) return a;\n }\n }\n return -1;\n }", "title": "" }, { "docid": "c1b186b1eac6fe3ce557607c0ed453a4", "score": "0.5176503", "text": "public static void main(String[] args) {\n\t \n\t System.out.println(\"Q3) a) The pattern 'BCD' found in text 'ABCADCBABABCDABCD' on index : \"+ search2(\"BCD\".toCharArray(),\"ABCADCBABABCDABCD\".toCharArray()));\n\t \n\t }", "title": "" }, { "docid": "81241d6bddfd6b69d8fb156066c0a69d", "score": "0.5171156", "text": "public int search(char[] text) {\n\n // simulate operation of DFA on text\n int M = pattern.length;\n int N = text.length;\n int i, j;\n for (i = 0, j = 0; i < N && j < M; i++) {\n j = dfa[text[i]][j];\n }\n if (j == M) return i - M; // found\n return N; // not found\n }", "title": "" }, { "docid": "b03283705a89472cd391da1b090eee26", "score": "0.5167628", "text": "public static void main(String[] args) {\n//\n// String pattern = \"abba\";\n// String s = \"dog cat cat fish\";\n\n\n// String pattern = \"aaaa\";\n// String s = \"dog cat cat dog\";\n\n String pattern = \"abba\";\n String s = \"dog dog dog dog\";\n\n// String pattern = \"e\";\n// String s = \"eukera\";\n\n boolean flag = wordPattern(pattern, s);\n\n System.out.println(flag);\n }", "title": "" }, { "docid": "74b5b463fa96c39faf571b765e38c053", "score": "0.5154237", "text": "private String findLine(String line, String search){\n List<String> lines = line.lines().collect(Collectors.toList());\n for (String l: lines) {\n if(l.contains(search)){\n return l;\n }\n }\n return \"\";\n }", "title": "" }, { "docid": "67ac074776a4ca13213a85f27c3ef249", "score": "0.51461256", "text": "private String searchString(String inWord)\n {\n String line = null;\n StringBuffer rtn = new StringBuffer();\n int len = inWord.length();\n boolean found = false;\n\n if(len == 1)\n {\n if(Character.isDigit(inWord.charAt(0)))\n {\n rtn.append(inWord).append(\"I\");\n found = true;\n } // fi\n\n else if(Character.isLetter(inWord.charAt(0)))\n {\n rtn.append(inWord.toLowerCase()).append(\"S\");\n found = true;\n } // else fi\n } // fi\n\n if(!found)\n {\n int\tnum_A = 0; // Upper case\n int\tnum_L = 0; // Lower case\n int\tnum_N = 0; // Numbers\n int\tnum_P = 0; // Punctuation (numeric)\n int\tnum_Q = 0; // Quotes\n int\tnum_O = 0; // Other\n char last_ch = ' ';\n\n for(int i = 0; i < len; i++)\n {\n if((i == 0) && (inWord.charAt(i) == '-'))\n num_L++;\n\n else if(Character.isLowerCase(inWord.charAt(i)))\n num_L++;\n\n else if(Character.isUpperCase(inWord.charAt(i)))\n num_A++;\n\n else if(Character.isDigit(inWord.charAt(i)))\n num_N++;\n\n else if((inWord.charAt(i) == '=')||(inWord.charAt(i) == ':') ||\n (inWord.charAt(i) == '+')||(inWord.charAt(i) == '.') ||\n (inWord.charAt(i) == ','))\n num_P++;\n\n else if((inWord.charAt(i) == '\\'') ||\n (inWord.charAt(i) == '`') || (inWord.charAt(i) == '\"'))\n num_Q++;\n\n else\n num_O++;\n\n last_ch = inWord.charAt(i);\n } // for\n\n int pos = 0;\n if((len - ntail) > 0)\n pos = len - ntail;\n\n rtn.append(inWord.substring(pos).toLowerCase());\n\n if((num_L + num_Q) == len)\n rtn.append(\"\");\n\n else if((num_A + num_Q) == len)\n rtn.append(\"A\");\n\n else if((num_N + num_P + num_Q) == len)\n rtn.append(\"N\");\n\n else if((num_L + num_A + num_Q) == len)\n rtn.append(\"B\");\n\n else if((num_A + num_N + num_P + num_Q) == len)\n rtn.append(\"C\");\n\n else if((num_L + num_N + num_P + num_Q) == len)\n rtn.append(\"E\");\n\n else if((num_A + num_L + num_N + num_P + num_Q) == len)\n rtn.append(\"D\");\n\n else if((num_O == 0) && (last_ch == '+'))\n rtn.append(\"F\");\n\n else\n rtn.append(\"O\");\n } // else\n\n rtn.append(\"_\");\n\n return(rtn.toString());\n }", "title": "" }, { "docid": "5e9e24510f71ec09e81a1b7db8834981", "score": "0.5140936", "text": "private int findPos(byte[] contents, String target)\n {\n String contentsStr = null;\n try\n {\n contentsStr = new String(contents, \"ISO-8859-1\");\n }\n catch (UnsupportedEncodingException e)\n {\n e.printStackTrace();\n }\n return contentsStr.indexOf(target);\n }", "title": "" }, { "docid": "5daa758e54a9be9b234a442b46a91905", "score": "0.5134736", "text": "public static void main(String[] args) {\n\t\t\n\t\t\n\t\tString str1 = \"Java World\";\n\t\tSystem.out.println(str1.indexOf(\"v\"));\n\t\t//Ekrana 2 yazdirir. Cunku index sayimi 0'dan baslar. \n\t\t\t\n\t\tSystem.out.println(str1.indexOf(\"W\"));// Ekrana 5 yazdirir. //Space Java icin bir character'dir.\n\t\t\n\t\tSystem.out.println(str1.indexOf(\"w\"));\n\t\t// Javada yukarida indexI bulamaz. Java \"case sensitive\" dir.\n\t\t// Kucuk w String'te yoktur. Java character bulamayinca -1 return eder.\n\t\t\n\t\tSystem.out.println(str1.indexOf(\"a\"));// Ekrana 1 yazdirir. Birden fazla \n\t\t// kullanilan characterler icin Java ilk character'in indexini verir.\n\t\t\n\t\t// indexOf methodu diger versiyonu:\n\t\t//\"Javva\" Stringinde asagidaki a characterinin farkli indexlerini bulunuz.\n\t\tString str4 = \"Javva World\";\n\t\tSystem.out.println(str4.indexOf(\"a\",2));//Stringteki ikinci 'a' characterinin indexini bulunuz.\n\t\t// Ekrana 4 yazdirmali.\n\t\t\n\t\tSystem.out.println(str4.indexOf(\"a\",4));// Ekrana 4 yazdirir.\n\t\tSystem.out.println(str4.indexOf(\"a\",1));// Ekrana 1 yazdirir.\n\t\tSystem.out.println(str4.indexOf(\"a\",5));// Ekrana -1 yazdirir.\n\t\t\n\t\t\n\t\t//\"Alamanya\" Stringindeki ikinci 'a' characterinin indexini bulunuz.\n\t\t\n\t\tString str2 = \"Alamanya\";\n\t\tSystem.out.println(str2.indexOf(\"a\"));// Bu birinci 'a' nin indexi 2 \n\t\tint idx = str2.indexOf(\"a\");\n\t\tSystem.out.println(str2.indexOf(\"a\",idx+1));\n\t\t// indexOf methodunun 3.versiyonu\n\t\tString str3 = \"Missisippi\";\n\t\tSystem.out.println(str3.indexOf(\"is\")); // Java bir hecenin indexini yazarken ilk harfin indexini\n\t\t//return eder. Bu ornekte ilk \"is\" teki i harfinin indexi olan 1 i return eder. \n\t\t\n\t\tSystem.out.println(str3.indexOf(\"si\"));// Ekrana 3 yazdirir.\n\t}", "title": "" }, { "docid": "a2635ef738d9eaf8a51e569d21e5e3bf", "score": "0.51343346", "text": "public BoyerMoore(String pat) {\n this.R = 256;\n this.pat = pat;\n\n // position of rightmost occurrence of c in the pattern\n right = new int[R];\n for (int c = 0; c < R; c++)\n right[c] = -1;\n for (int j = 0; j < pat.length(); j++)\n right[pat.charAt(j)] = j;\n }", "title": "" }, { "docid": "1ae55fd268ba385628c1207440937d09", "score": "0.5131321", "text": "static String findSubString(String str) \n { \n int n = str.length(); \n \n // Count all distinct characters. \n int dist_count = 0; \n \n boolean[] visited = new boolean[MAX_CHARS]; \n Arrays.fill(visited, false); \n for (int i=0; i<n; i++) \n { \n if (visited[str.charAt(i)] == false) \n { \n visited[str.charAt(i)] = true; \n dist_count++; \n } \n } \n \n // We basically maintain a window of characters that contains all characters of given string. \n int start = 0, start_index = -1; \n int min_len = Integer.MAX_VALUE; \n \n int count = 0; \n int[] curr_count = new int[MAX_CHARS]; \n for (int j=0; j<n; j++) \n { \n // Count occurrence of characters of string \n curr_count[str.charAt(j)]++; \n \n // If any distinct character matched, then increment count \n if (curr_count[str.charAt(j)] == 1 ) \n count++; \n \n // if all the characters are matched \n if (count == dist_count) \n { \n // Try to minimize the window i.e., check if \n // any character is occurring more no. of times \n // than its occurrence in pattern, if yes \n // then remove it from starting and also remove \n // the useless characters. \n while (curr_count[str.charAt(start)] > 1) \n { \n if (curr_count[str.charAt(start)] > 1) \n curr_count[str.charAt(start)]--; \n start++; \n } \n \n // Update window size \n int len_window = j - start + 1; \n if (min_len > len_window) \n { \n min_len = len_window; \n start_index = start; \n } \n } \n } \n // Return substring starting from start_index \n // and length min_len \n return str.substring(start_index, start_index+min_len); \n }", "title": "" }, { "docid": "04ea2ed09542c262974b7e22abf226fb", "score": "0.51281506", "text": "public static void StringFinder()\n {\n // String to be scanned to find the pattern.\n String TargetString = \"Find me in me this string me, test me\";\n String SearchExpression_literal = \"me\"; // Default Pattern (RegEx ) group\n\n // Create a Pattern object\n Pattern r = Pattern.compile(SearchExpression_literal);\n // Now create matcher object.\n Matcher m = r.matcher(TargetString);\n\n int SearchFindCounter = 0;\n /**\n * Matcher.find() Returns Boolean for every occurrence found\n */\n if (m.find())\n { \n \t System.out.println(\"Match Found\");\n }\n }", "title": "" }, { "docid": "99e4e39595fe41358b846b41a5d7a141", "score": "0.5110594", "text": "public int find(String subseq, int startAt)\n {\n return find(subseq.split(\"\"), startAt);\n }", "title": "" }, { "docid": "e641f1fef86605d0cebe49525a1a393a", "score": "0.51081496", "text": "public static void main(String[] args)\n {\n Pattern pattern = Pattern.compile(\"aba\");\n Matcher m = pattern.matcher(\"abababa\");\n //boolean find()//return true if found the pattern and go to the next sub sequence\n while(m.find()){\n System.out.print(m.start());//0 and 4 but not 2!\n System.out.print(m.end());//3 and 7 (return the position of the last char matched + 1)\n System.out.print(m.group());// = s.substring(m.start(), m.end());\n System.out.print(\"\\n\");\n }\n //what's append?\n //first occurence starts at 0, ends at 2 and aba\n //search for the second occurence from 3\n //second occurence starts at 4, ends at 6 and aba\n //search for the thrid occurence from 7\n \n System.out.print(\"========\\n\");\n \n //0-length matches\n Pattern pattern2 = Pattern.compile(\"a?\");\n Matcher m2 = pattern2.matcher(\"aba\");\n while(m2.find()){\n System.out.print(m2.start());//the char a is or not is at position 0,1,2 and 3\n System.out.print(m2.end());//1,1,3,3 ==> ?? @see page 500\n System.out.print(\"\\n\");\n }\n \n /** Expressions **/\n // \\d digit\n // \\s whitespace\n // \\w letters, digits or _\n // [abc] searching for a, b or c\n // [a-f] searching for a letter to f lettre included\n // [A-F] searching for A letter to F lettre included\n // [a-fA-F] search for a letter to f or A letter to F lettre included\n // 0 [x-X] search for 0 followed by x or X\n /** quantifiers **/\n //? Zero or one\n //* Zero or more\n //+ One or more\n// 0[x-X]+ => 0 followed by one x or one X\n// (0[x-X])+ => 0 followed by x or X one time\n \n //. = any char (whitespace is a char)\n //Escaping special char !!! . = any char, \\. = compilator error, \\\\. = .\n }", "title": "" }, { "docid": "67b7786b8c7dd46807e0df9e1da8b11f", "score": "0.5099745", "text": "public String scan(Pattern pattern) {\n\t\tMatcher matcher = pattern.matcher(input);\n\t\tif (matcher.find(index) && matcher.start() == index) {\n\t\t\tindex = matcher.end();\n\t\t\treturn matcher.group();\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "5007d563a6ad26dac68a77c442a7745a", "score": "0.50993866", "text": "BoyerMoore(CharSequence p) {\n\t\t\tocc = new int[256];\n\t\t\tSystem.arraycopy(BASE, 0, occ, 0, 256);\n\t\t\tpattern = p;\n\t\t\tpatternLen = pattern.length();\n\t\t\tfor (int i = 0; i < pattern.length(); i++) {\n\t\t\t\tocc[pattern.charAt(i)] = i;\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "d0888e00f53dc4fdc47bd3e0907423c6", "score": "0.5097209", "text": "private String scan() {\n line = line.trim();\n if (line.length() == 0)\n return \"\";\n\n int i = 0;\n while (i < line.length() && line.charAt(i) != ' ' && line.charAt(i) != '\\t') {\n i = i + 1;\n }\n String word = line.substring(0, i);\n line = line.substring(i);\n return word;\n }", "title": "" }, { "docid": "43275ad218905ae662b7e77bb2997de7", "score": "0.5088143", "text": "private int locate(String str, String substr, int pos) {\n if (substr.length() == 0) {\n if (pos <= (str.length() + 1)) {\n return pos;\n }\n else {\n return 0;\n }\n }\n int idx = StringUtils.indexOf(str, substr, pos - 1);\n if (idx == -1) {\n return 0;\n }\n return idx + 1;\n }", "title": "" }, { "docid": "9920319893ab0a2a883bf5ea1db60446", "score": "0.5078788", "text": "private static int search() {\n\t\tint index = -1;\n\t\tdouble txtRollingHash = 0;\n\t\tfor (int i = 0; i < textLength - (patternLength - 1); i++) {\n\t\t\tif (i == 0) {\n\t\t\t\ttxtRollingHash = calculateHash(text, patternLength);\n\t\t\t} else {\n\t\t\t\t// Remove previous char and add current char\n\t\t\t\ttxtRollingHash = calculateHash(text, textLength, i - 1, i + (patternLength - 1), txtRollingHash);\n\t\t\t}\n\t\t\tlogger.info(\"At index: \" + i + \"\\t\\tRolling Hash:\" + txtRollingHash + \"\\t\\tPattern Hash: \" + patternHash);\n\t\t\tif (patternHash == txtRollingHash && compare(text, i)) {\n\t\t\t\tindex = i;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn index;\n\t}", "title": "" }, { "docid": "617f442097313d1f67978524a555edda", "score": "0.50753784", "text": "public int[] cal_next(String pattern){\n int[] next = new int[pattern.length()];\n next[0] = -1;\n int j = -1;\n int i = 0;\n\n while(i < pattern.length() - 1){\n if (j == -1 || pattern.charAt(i) == pattern.charAt(j)){\n i++;\n j++;\n next[i] = j;\n }\n else\n j = next[j];\n }\n return next;\n }", "title": "" }, { "docid": "617f442097313d1f67978524a555edda", "score": "0.50753784", "text": "public int[] cal_next(String pattern){\n int[] next = new int[pattern.length()];\n next[0] = -1;\n int j = -1;\n int i = 0;\n\n while(i < pattern.length() - 1){\n if (j == -1 || pattern.charAt(i) == pattern.charAt(j)){\n i++;\n j++;\n next[i] = j;\n }\n else\n j = next[j];\n }\n return next;\n }", "title": "" }, { "docid": "c63e8dea7b6cbe6bdb5cb24143ac0ec4", "score": "0.5075361", "text": "public static void main(String[] args) {\n\t\t Pattern p = Pattern.compile(\"(a+)\");\r\n\t\t Matcher m = p.matcher(\"aaaaaba\");\r\n\t\t //System.out.println(m.matches())\r\n\t\t m.find();\t\t \r\n\t\t m.find();\r\n\t\t System.out.println(\"grCount \"+m.groupCount());\t \r\n\t\t MatchResult mr = m.toMatchResult();\r\n\t\t \r\n\t\t System.out.println(m.end());\r\n\t\t System.out.println(\"'\"+mr.group()+\"'\");\r\n\t\t System.out.println(\"start \"+mr.start(1));\r\n\t\t \r\n\t}", "title": "" }, { "docid": "3db160aa4bb205fac7ba8fd0b0725985", "score": "0.50620186", "text": "private String keywordFound(){\r\n\t\tString rtn = \"\";\r\n\t\tString tmp = \"\";\r\n\t\tint carr_pos = getCaretPosition();\r\n\t\t//estract part of text for keyword search\r\n\t\ttry { \r\n\t\tif(carr_pos>50)\r\n\t\t\ttmp = doc.getText(carr_pos-50,50);\r\n\t\telse\r\n\t\t\ttmp = doc.getText(0,carr_pos);\r\n\t\t}catch(BadLocationException a){\r\n\t\t\tSystem.out.println(\"exception\");\r\n\t\t\treturn rtn;\r\n\t\t};\r\n\t\t//Start check\r\n\t\tint i = 0;\r\n\t\tif(tmp.length() >= 2)i = tmp.length()-2;\t\r\n\t\twhile(checkOperator(tmp.charAt(i)) && i > 0){\r\n\t\t\trtn += tmp.charAt(i);\r\n\t\t\ti--;\r\n\t\t}\r\n\t\tif(i == 0)rtn += tmp.charAt(i);\t\t\r\n\t\treturn mirrorString(rtn);\r\n\t}", "title": "" }, { "docid": "43d65ff5e05e2924bb75efce482bebed", "score": "0.505913", "text": "public boolean search(String s, String p) {\n int i,j,start=0;\n for(i=0,j=0;i<s.length()&&j<p.length();i++) {\n if(p.charAt(j)=='*') {\n start = ++j;\n i--;\n } else if(match(p.charAt(j),s.charAt(i))) {\n j++;\n } else {\n i-=j-start;\n j=start;\n }\n }\n while(j<p.length() && p.charAt(j)=='*') {\n j++;\n }\n return j>=p.length();\n }", "title": "" }, { "docid": "4d10fe037a48271cc6846cc8f5166e5f", "score": "0.50553745", "text": "public static void main(String[] args) {\n\t\tString msg = \"hi hello korea hello java\";\n\t\tint n = msg.indexOf(\"k\");\n\t\tSystem.out.println(n);\n\t\t\n\t\tint a = msg.indexOf(\"hello\");\n\t\tSystem.out.println(a);\n\t\t\n\t\tint b = msg.indexOf(\" \");\n\t\tSystem.out.println(b);\n\t\t\n\t\tint c = msg.lastIndexOf(\"hello\");\t//뒤에서부터 찾음\n\t\tSystem.out.println(c);\n\t\t\n\t\tint d = msg.indexOf(\"z\");\t//찾는 게 없으면 -1반환\n\t\tSystem.out.println(d);\n\t}", "title": "" }, { "docid": "98591eee76073c8daa5e98eabe4c7902", "score": "0.50488555", "text": "private void leerOracion(){\r\n\tString wor=\"\";\r\n\r\n try {\r\n\r\n arch = new File (\"texto.txt\");\r\n fr = new FileReader (arch);\r\n br = new BufferedReader(fr);\r\n\r\n String lin;\r\n int ind=0;\r\n while((lin=br.readLine())!=null){\r\n \twor=lin;\r\n }\r\n }\r\n catch(Exception e){\r\n e.printStackTrace();\r\n }finally{\r\n try{ \r\n if( null != fr ){ \r\n fr.close(); \r\n } \r\n }catch (Exception e2){ \r\n e2.printStackTrace();\r\n }\r\n }\r\n\r\n\twhile(wor.compareTo(\"\")!=0){\r\n\tint lugar=wor.indexOf(' ');\r\n if(lugar!=-1){\r\n orac.add(wor.substring(0,lugar));\r\n wor=wor.substring(lugar+1);\r\n }else{\r\n orac.add(wor);\r\n wor=\"\";\r\n }\r\n }\r\n }", "title": "" }, { "docid": "447343c4642276e61cf4ffd9e2b937bf", "score": "0.5047252", "text": "public static void main(String arg[]) {\n String frase1 = \"Había vez circo alegraba el\";\n String frase2 = \"una un que siempre carazón sin temer jamás\";\n String frase3 = \"\";\n\n int inicio1 = 0;\n int fin1 = frase1.indexOf(\" \");\n int inicio2 = 0;\n int fin2 = frase2.indexOf(\" \");\n\n while ((fin1 != -1) || (fin2 != -1)) {\n if (fin1 != -1) {\n frase3 = frase3.concat(frase1.substring(inicio1, fin1 + 1));\n inicio1 = fin1 + 1;\n fin1 = frase1.indexOf(\" \", inicio1);\n }\n if (fin2 != -1) {\n frase3 = frase3.concat(frase2.substring(inicio2, fin2 + 1));\n inicio2 = fin2 + 1;\n fin2 = frase2.indexOf(\" \", inicio2);\n }\n }\n System.out.println(frase3);\n }", "title": "" }, { "docid": "4103d4f229da6f02950079419c950596", "score": "0.5044725", "text": "private String findFrom(String from) {\n\t\tPattern UNIT = Pattern.compile(\"^\\\\w+.\\\\w+(?=\\\\ )\"); // Match two words\n\t\tMatcher m = UNIT.matcher(from);\n\t\twhile (m.find()) {\n\t\t\tfrom = m.group(0);\n\t\t}\n\t\treturn from;\n\t}", "title": "" }, { "docid": "e17edc540d3579642fd35bc828362cb2", "score": "0.5041435", "text": "public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\r\n\t\tString pattern = scan.nextLine();\r\n\t\tint count = 0;\r\n\t\tfor(int i=0 ; i < pattern.length(); i++){\r\n\t\t\tif(pattern.charAt(i) == '@'){\r\n\t\t\t\tcount++;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(count==1){\r\n\t\t\tString[] str1 = pattern.split(\"@\");\r\n\t\t\tchar[] c1 = str1[0].toCharArray();\r\n\t\t\tchar[] c2 = str1[1].toCharArray();\r\n\t\t\tint right = 0;\r\n\t\t\tint left = 0;\r\n\t\t\tfor(int i=0;i<c1.length;i++){\r\n\t\t\t\tif(c1.equals('.') && (c1[i]>'a' && c1[i]<'e'))\r\n\t\t\t\t{\r\n\t\t\t\t\tleft++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfor(int j=0;j<c1.length;j++){\r\n\t\t\t\tif(c2.equals('.') && (c2[j]>'a' && c2[j]<'e'))\r\n\t\t\t\t{\r\n\t\t\t\t\tright++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(left>1 && right>2){\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "f802199c5bceb532b3db569314e86544", "score": "0.5040343", "text": "public int findSubstringInWraproundString(String p) {\n if(p == null || p.length() == 0) {\n return 0;\n }\n // count[i] is the maximum unique substring that ends with a...z\n int[] count = new int[26];\n // keep track of the number of consecutive letters ended with current letter\n int consecutiveCount = 1;\n for(int i = 0; i < p.length(); i++) {\n if(i > 0 && isConsecutive(p.charAt(i - 1), p.charAt(i))) {\n consecutiveCount++;\n } else {\n consecutiveCount = 1;\n }\n int index = p.charAt(i) - 'a';\n count[index] = Math.max(count[index], consecutiveCount);\n }\n int result = 0;\n for(int singleCount : count) {\n result += singleCount;\n }\n return result;\n }", "title": "" }, { "docid": "dc4a4c39be7a77974e83ea8a7a13ccd2", "score": "0.5026025", "text": "public void preprocess(String pattern) {\n int M = pattern.length();\n next = new int[M];\n int j = -1;\n for (int i = 0; i < M; i++) {\n if (i == 0) next[i] = -1;\n else if (pattern.charAt(i) != pattern.charAt(j)) next[i] = j;\n else next[i] = next[j];\n while (j >= 0 && pattern.charAt(i) != pattern.charAt(j)) {\n j = next[j];\n }\n j++;\n }\n }", "title": "" }, { "docid": "05d862296dcda7e12c9c475077223207", "score": "0.5024347", "text": "public int search(String text){\r\n\r\n\t\tlong startTime = System.currentTimeMillis();\r\n\t\tchar[] textChar = text.toCharArray();\r\n\t\tchar[] patternChar = pattern.toCharArray();\r\n\r\n\t\tboolean found = false;\r\n\r\n\t\tlong textLength = text.length();\r\n\t\tlong patternLength = patternChar.length;\r\n\t\t\r\n\t\tif(patternLength == 0) { \r\n\t\t\tlong endTime = System.currentTimeMillis();\r\n\t\t\tlastSearchTime = endTime - startTime; \r\n\t\t\treturn -1;\r\n\t\t}\r\n\t\t\r\n\t\tfor(int i = 0; i<=textLength-patternLength;i++){\r\n\t\t\tif(inspect(textChar,i) == inspect(patternChar, 0)){\r\n\t\t\t\tfound = true;\r\n\t\t\t\tfor (int j = 0; j < patternLength; j++) {\r\n\t\t\t\t\tif(inspect(textChar , i+j) != inspect (patternChar, j)){\r\n\t\t\t\t\t\tfound = false;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif(found){\r\n\t\t\t\t\tlong endTime = System.currentTimeMillis();\r\n\t\t\t\t\tlastSearchTime = endTime - startTime;\r\n//\t\t\t\t\tSystem.out.println(\"Found : Total time in ms(Brute Force): \"+(endTime-startTime));\r\n//\t\t\t\t\tSystem.out.println(\"Total Inspection Times: \" + counter);\r\n\t\t\t\t\treturn i;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tlong endTime = System.currentTimeMillis();\r\n\t\tlastSearchTime = endTime - startTime;\r\n//\t\tSystem.out.println(\"Not Found : Total time in ms: \"+(endTime-startTime));\r\n//\t\tSystem.out.println(\"Total Inspection Times: \" + counter);\r\n\t\treturn -1;\r\n\t}", "title": "" }, { "docid": "bca4045bac4e5ad49dd47f1d2e601913", "score": "0.5022341", "text": "static String findSubstringByFooterString(String src, String start, String before, String after, boolean caseSensitive)\n throws UnexpectedFormatException {\n int pos = safeIndexOf(src, start, 0, caseSensitive);\n return findSubstringByFooterString(src, pos+start.length(), before, after, caseSensitive);\n }", "title": "" }, { "docid": "f7a47269aabccb9dedc3af5a96db9625", "score": "0.50122386", "text": "public abstract int getWelcomePatternMatchStart (final CharSequence welcomeLine);", "title": "" }, { "docid": "76787aa6b2bbb9b0dfaf5b7a26750022", "score": "0.50109977", "text": "@Override\n public long resultPart2() throws Exception {\n Scanner sc = inputScanner();\n\n int valid = 0;\n\n while(sc.hasNextLine()) {\n StringBuilder line = new StringBuilder(sc.nextLine());\n \n int a = Integer.parseInt(line.substring(0, line.indexOf(\"-\")));\n int b = Integer.parseInt(line.substring(line.indexOf(\"-\") + 1, line.indexOf(\" \")));\n line.delete(0, line.indexOf(\" \") + 1);\n\n char c = line.charAt(0);\n line.delete(0, line.indexOf(\" \")); // No +1 means first character is automatically '1'\n \n if(line.length() <= a) continue;\n if(line.charAt(a) == c) {\n if(line.length() <= b || line.charAt(b) != c) valid++;\n }\n else if(line.length() > b && line.charAt(b) == c) valid++;\n }\n\n return valid;\n }", "title": "" }, { "docid": "35a874af2b33a0e6e053e4a5d8f81ed3", "score": "0.50006646", "text": "int findStringLineno(String[] lines, String str, int startLine) {\n int i = startLine;\n while (i < lines.length) {\n if (lines[i].contains(str))\n return i;\n ++i;\n }\n return i;\n }", "title": "" }, { "docid": "087381bc78d8b1bd367e8bede92af854", "score": "0.49969137", "text": "static String findSubstringByFooterString(String src, int start, String before, String after, boolean caseSensitive)\n throws UnexpectedFormatException {\n int end = safeIndexOf(src, after, start, caseSensitive);\n int pos = before.length()==0 ? 0 : safeLastIndexOf(src, before, end, caseSensitive);\n char chars[] = new char[end-(pos+before.length())];\n src.getChars(pos+before.length(), end, chars, 0);\n return new String(chars);\n }", "title": "" }, { "docid": "5a1eeb908d160f7148edbe3a526c7f83", "score": "0.49920908", "text": "@Test\n public void testPatter(){\n String str = \"select * from t_user where deletea dropa\";\n str = str.toUpperCase();\n // String re = \"(update|delete|insert|drop|alter)\";\n // String re = \"(update\\\\b)|(delete\\\\b)|(insert)|(drop)|(alter)\";\n // String re = \"\\\\b[(update)|(delete)|(insert)|(drop)|(alter)\\\\b\";\n // System.out.println(str.indexOf(\"updatea\"));\n // System.out.println(\"update\".matches(str));\n // System.out.println(str.matches(re));\n /* System.out.println(re.matches(str));\n String[] ss = str.split(re);\n System.out.println(ss.length);\n for(String s: ss){\n System.out.println(s);\n }*/\n\n String re =\"(\\\\bupdate\\\\b)|(\\\\bdelete\\\\b)|(\\\\binsert\\\\b)|(\\\\bdrop\\\\b)|(\\\\balter\\\\b)\";\n Pattern p = Pattern.compile(re,Pattern.CASE_INSENSITIVE );\n Matcher m = p.matcher(str);\n System.out.println(m.find());\n\n }", "title": "" }, { "docid": "9eb52e444d7bb01ae13beaff6755ccee", "score": "0.49882415", "text": "private int findSplit(String input) {\n char[] buffer = input.toCharArray();\n int pos = 0;\n for (int i = 0; i < buffer.length; i++) {\n if (this.isLetter(buffer[i])) {\n pos = i;\n break;\n }\n }\n return pos;\n }", "title": "" }, { "docid": "236fdfdfb2bdc0586b00fb57916d7d54", "score": "0.4986433", "text": "public static void main (String []args){\n\t\t\n\t\tString hola =\"RV SIGUIENTE MENSAJE\";\n\t\tint num = hola.indexOf(\"RV\");\n\t\tif (hola.indexOf(\"RV\")!=-1){\n\t\t\tSystem.out.println(\"CONTIENE RV\");\n\n\t\t}else{\n\t\t\tSystem.out.println(\"NO CONTIENE RV\");\n\n\t\t}\n\t\t\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "655c698e9f66c7a7f6459e8de530ccc1", "score": "0.49830937", "text": "public void segunda_parte(String path) {\r\n\t\tArrayList<String>palabras=new ArrayList<String>();\r\n\t\tint i=0,j=0;\r\n\t\tboolean flag_to_stop=false;\r\n\t\tString first_string=\"\",second_string=\"\";\r\n\t\tFile archivo=new File(path);\r\n\t\ttry {\r\n\t\t\tScanner sc=new Scanner(archivo);\r\n\t\t\twhile(sc.hasNext()) {\r\n\t\t\t\tpalabras.add(sc.nextLine());\r\n\t\t\t}\r\n\t\t\tsc.close(); //when i've all the strings on memory, i dont really need the file anymore\r\n\t\t\tfor(i=0;i<palabras.size();i++) {\r\n\t\t\t\tfor(j=0;j<palabras.size();j++) {\r\n\t\t\t\t\tif(i!=j) { //to avoid compare the same word\r\n\t\t\t\t\t\tif(comparador_de_strings(palabras.get(i), palabras.get(j))==1) {\r\n\t\t\t\t\t\t\tfirst_string=palabras.get(i);\r\n\t\t\t\t\t\t\tsecond_string=palabras.get(j);\r\n\t\t\t\t\t\t\tflag_to_stop=true;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}else;\r\n\t\t\t\t} if(flag_to_stop) {\r\n\t\t\t\t\teliminar_letra_extra(first_string, second_string);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "f369b2dd932b0b41e2a28f69331f5f8a", "score": "0.49812073", "text": "private static int findIndex(String line) {\n\n int index = -1;\n\n if (line == null) {\n return index;\n }\n\n line = line.trim();\n int spaceIndex = line.indexOf(\" \");\n int tabIndex = line.indexOf(\"\\t\");\n\n if (spaceIndex != -1) {\n if (tabIndex != -1) {\n if (spaceIndex < tabIndex) {\n index = spaceIndex;\n } else {\n index = tabIndex;\n }\n } else {\n index = spaceIndex;\n }\n } else {\n index = tabIndex;\n }\n return index;\n }", "title": "" }, { "docid": "77d570cf98adfcc2c24aa8b6dceb8856", "score": "0.49772376", "text": "@Test\n public void repeatedSubstringPattern() {\n assertTrue(new Solution1().repeatedSubstringPattern(\"abcabcabcabc\"));\n }", "title": "" }, { "docid": "a1fe3923494d14ac5827c11e28b5a079", "score": "0.49709874", "text": "private int getNextMatch(String searchText) {\n \tint startPosition = textArea.getCaretPosition()+1;\n \treturn document.getContent().indexOf(searchText, startPosition);\n }", "title": "" }, { "docid": "3a7f21d6a90072925abe65e9d5dfa6f2", "score": "0.49635303", "text": "public static void main(String[] args) {\n\t\tString s = \"Esto es una cadena de caracteres\";\n\t\tString s1 = s.substring(0,7);\n\t\tString s2 = s.substring(8,12);\n\t\tString s3 = s.substring(8);\n\t\tSystem.out.println(s1);\n\t\tSystem.out.println(s2);\n\t\tSystem.out.println(s3);\n\t}", "title": "" }, { "docid": "649135cf48a27871f557d08212559ed9", "score": "0.49559993", "text": "private int matchLiteral(final String text, int pos, final Object[] items, final int itemIndex, final boolean[] complete) {\n\t\tint originalPos = pos;\n\t\tString patternLiteral = (String) items[itemIndex];\n\t\tint plen = patternLiteral.length();\n\t\tint tlen = text.length();\n\t\tint idx = 0;\n\t\twhile (idx < plen && pos < tlen) {\n\t\t\tchar pch = patternLiteral.charAt(idx);\n\t\t\tchar ich = text.charAt(pos);\n\t\t\tif (PatternProps.isWhiteSpace(pch) && PatternProps.isWhiteSpace(ich)) {\n\t\t\t\t// White space characters found in both patten and input.\n\t\t\t\t// Skip contiguous white spaces.\n\t\t\t\twhile ((idx + 1) < plen && PatternProps.isWhiteSpace(patternLiteral.charAt(idx + 1))) {\n\t\t\t\t\t++idx;\n\t\t\t\t}\n\t\t\t\twhile ((pos + 1) < tlen && PatternProps.isWhiteSpace(text.charAt(pos + 1))) {\n\t\t\t\t\t++pos;\n\t\t\t\t}\n\t\t\t} else if (pch != ich) {\n\t\t\t\tif (ich == '.' && pos == originalPos && 0 < itemIndex && isLenient()) {\n\t\t\t\t\tObject before = items[itemIndex - 1];\n\t\t\t\t\tif (before instanceof PatternItem) {\n\t\t\t\t\t\tboolean isNumeric = ((PatternItem) before).isNumeric;\n\t\t\t\t\t\tif (!isNumeric) {\n\t\t\t\t\t\t\t++pos; // just update pos\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t++idx;\n\t\t\t++pos;\n\t\t}\n\t\tcomplete[0] = idx == plen;\n\t\tif (complete[0] == false && isLenient() && 0 < itemIndex && itemIndex < items.length - 1) {\n\t\t\t// If fully lenient, accept \" \"* for any text between a date and a time field\n\t\t\t// We don't go more lenient, because we don't want to accept \"12/31\" for \"12:31\".\n\t\t\t// People may be trying to parse for a date, then for a time.\n\t\t\tif (originalPos < tlen) {\n\t\t\t\tObject before = items[itemIndex - 1];\n\t\t\t\tObject after = items[itemIndex + 1];\n\t\t\t\tif (before instanceof PatternItem && after instanceof PatternItem) {\n\t\t\t\t\tchar beforeType = ((PatternItem) before).type;\n\t\t\t\t\tchar afterType = ((PatternItem) after).type;\n\t\t\t\t\tif (DATE_PATTERN_TYPE.contains(beforeType) != DATE_PATTERN_TYPE.contains(afterType)) {\n\t\t\t\t\t\tint newPos = originalPos;\n\t\t\t\t\t\twhile (true) {\n\t\t\t\t\t\t\tchar ich = text.charAt(newPos);\n\t\t\t\t\t\t\tif (!PatternProps.isWhiteSpace(ich)) {\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t++newPos;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcomplete[0] = newPos > originalPos;\n\t\t\t\t\t\tpos = newPos;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn pos;\n\t}", "title": "" }, { "docid": "12fd00bacd8503ed05e6ff6b35f13719", "score": "0.4950392", "text": "public static void main(String[] args) {\n\t\t\tString str=\"Four score and seven years ago\";\n\t\t\tSystem.out.println(\"The letter r appears at the following locations: \");\n\t\t\tint position = str.indexOf('r');\n\t\t\twhile (position!= -1) {\n\t\t\t\tSystem.out.print(position + \" \");\n\t\t\t\tposition = str.indexOf('r',position+1);\n\t\t\t}\n\t\t\t\n\t\t\tString str2 = \"and a one and two and a three\";\n\t\t\tSystem.out.println(\"The word \\\" and\\\" appears at the following location: \");\n\t\t\tint positionAnd = str2.indexOf(\"and\");\n\t\t\twhile(positionAnd != -1) {\n\t\t\t\tSystem.out.print(positionAnd + \" \");;\n\t\t\t\tpositionAnd = str2.indexOf(\"and\", positionAnd+1);\n\t\t\t}\n}", "title": "" }, { "docid": "530d8949bd6880d56f458d647ff64a0d", "score": "0.4942225", "text": "private static int _search(int skip, String text, char a, int index) {\n switch (skip) {\n case -1:\n for (int i = 0; i < text.length(); i++) {\n if (text.charAt(i) == a)\n return i;\n }\n break;\n default:\n if (text.length() > index && text.charAt(index) == a)\n return index;\n }\n\n return -1;\n }", "title": "" }, { "docid": "93e7d4943fa0b12c201e1d6bac84d2a8", "score": "0.49415272", "text": "String extractSlice(String s, int where, String start, String end) {\n int startInd;\n int endInd;\n\n if (start == null) {\n startInd = where;\n } else {\n int i = s.indexOf(start, where);\n if (i < 0) {\n return null;\n }\n startInd = i + start.length();\n }\n\n if (end == null) {\n endInd = s.length();\n } else {\n endInd = s.indexOf(end, startInd);\n if (endInd == -1) {\n return null;\n }\n }\n\n try {\n return s.substring(startInd, endInd);\n } catch (StringIndexOutOfBoundsException e) {\n return null;\n }\n }", "title": "" }, { "docid": "0bb11f925c298ab5455f83d8746334e0", "score": "0.4935735", "text": "private String limpiar_texto(String texto){\n \n texto = texto.replaceAll(\"\\n\",\"\");\n texto=texto.toUpperCase();\n for(int i=0;i<texto.length();i++){\n //Se crea un for que llenara el nuevo char\n int posicion = tabla.indexOf(texto.charAt(i)); //charat regresa el valor del arreglo\n if(posicion == -1){ \n texto=texto.replace(texto.charAt(i),' ');\n //En caso que no aparezca en la tabla de caracteres\n //Tiene que ser eliminado\n }\n }\n return texto;\n }", "title": "" }, { "docid": "5153212671709b71606e26e1da508575", "score": "0.49175763", "text": "private int searchCurrentWord() {\n\n\n int tmpsize2;\n\n\n boolean sw2 = false;\n\n\n boolean retour = false;\n\n\n boolean sw = false;\n\n\n int sub_end = parent.getTextGrp_TField_affiche().length();\n\n\n int size = parent.data.size();\n\n\n int tmpsize = parent.position.size();\n\n\n int i = 0;\n\n\n String TfieldParse;\n\n\n int test = 0;\n\n\n String text = parent.getTextGrp_TField_affiche();\n\n\n System.out.println(\"size de parent.position :\" + tmpsize);\n\n\n String str;\n\n\n String tmpstring;\n\n\n Object[] obj;\n\n\n Object tmpobj;\n\n\n String transMaj1 = null;\n\n\n String transMaj2 = null;\n\n\n tmpobj = parent.position.get(tmpsize - 1);\n\n\n tmpstring = tmpobj.toString();\n\n\n i = Integer.parseInt(tmpstring);\n\n\n retour = verifBorne();\n\n\n if (retour == true) {\n\n\n do {\n\n\n str = getObjectInArray(i, 1, parent.data).toString();\n\n // obj = (Object[]) parent.data.get(i);\n\n //str = (String) obj[1];\n\n\n tmpsize2 = str.length();\n\n\n if (tmpsize2 < sub_end) {\n\n\n TfieldParse = str;\n\n\n i++;\n\n\n sw = false;\n\n\n } else\n\n\n {\n\n\n TfieldParse = str.substring(0, sub_end);\n\n\n }\n\n\n transMaj1 = TfieldParse.toUpperCase();\n\n\n transMaj2 = text.toUpperCase();\n\n\n test = transMaj2.compareTo(transMaj1);\n\n\n if (sw == true && test != 0) {\n\n\n i++;\n\n\n }\n\n\n sw = true;\n\n\n }\n\n\n while (i < size && test > 0);\n\n\n if (transMaj2.compareTo(transMaj1) == 0) {\n\n\n if (i != 0)\n\n\n parent.position.add(new Integer(i));\n\n\n parent.setRowSelectionIntervalGrp_Table_Affiche(i, i);\n\n\n parent.scrollRectToVisibleGrp_table_Affiche(new java.awt.Rectangle(0, parent.getGrp_Table_Affiche().getRowHeight() * i, 20, parent.getGrp_Table_Affiche().getRowHeight()));\n\n\n } else {\n\n\n parent.setTextGrp_TField_affiche(this.tmpText);\n\n\n }\n\n\n }\n\n\n return (i - 1);\n\n\n }", "title": "" }, { "docid": "c6897f3d23f8aa663be40f905ed44580", "score": "0.49158552", "text": "public static void testScript() throws Exception {\r\n\r\n Pattern p = Pattern.compile(\"#.+?#\");\r\n String txt = \"aaaaaaaaaaaa# 鏈�編涓浗 #fsdfs#a##b#\\r\\naaaaaaaaaaaa#!!鏈�編涓浗2 #\";\r\n\r\n Matcher m = p.matcher(txt);\r\n\r\n while (m.find()) {\r\n System.out.println(m.group(0));\r\n }\r\n\r\n Matcher m2 = p.matcher(\"aaa##bb\");\r\n\r\n while (m2.find()) {\r\n System.out.println(m2.group(1));\r\n }\r\n\r\n }", "title": "" }, { "docid": "b8abbf43a278b2c192a4564e626d6edb", "score": "0.491025", "text": "static int isSubstring(String s1, String s2) {\n int m = s1.length();\n int n = s2.length();\n\n // A loop to slide pat[] one by one\n for (int i = 0; i <= n - m; i++) {\n int j;\n\n // For current index i, check for pattern match\n for (j = 0; j < m; j++) {\n if (s2.charAt(i + j) != s1.charAt(j)) {\n break;\n }\n }\n\n if (j == m) {\n return i;\n }\n }\n return -1;\n }", "title": "" }, { "docid": "cdbfd237455d4da61451b563017c6e17", "score": "0.49062777", "text": "public static String cadenaDescomponer(String cadena, int posicion, String caracter){\n String caddenaRetorno = \"cadena\"; //Va a tomar valor o lo va a descomponer\n //si se pide una posicion mas\n if(posicion >1){\n //recorrido para quitar datos\n for(int i=0; i<posicion-1;i++){\n //descomposicion pol@juy@5245@liok\n caddenaRetorno = caddenaRetorno.substring(caddenaRetorno.indexOf(caracter) + 1);\n\n }\n }\n //cuando encuentre el valor\n if(caddenaRetorno.indexOf(cadena) > 0){\n caddenaRetorno = caddenaRetorno.substring(0,caddenaRetorno.indexOf(caracter));\n }\n\n //retornamos el valor limpio\n return caddenaRetorno;\n }", "title": "" }, { "docid": "785af3528d10f2b473bff4eba47ff4f2", "score": "0.4904143", "text": "public static void main(String[]args)\n {\n String text = \"gieorbcxekrtovfdsyyzrishurbgxuovhvifkrqcsqymnpyyvgbwqvdqrxxfglndmzdlvxovxkbpcbeabepqxxtoxgrmfpvbweaisgrieqylsnhcxjkrakxrvplyyuyavwjropvxktyxgkqnuilyyhxhrbwgkrqxiiovtyrakkvfilyyhzrrfieqsaxeyoxlyyqyaaxiiovtyrakvhxeeyyaneanhrciedcberrfieqsaxezkorishmvlxiiovtyrakwnikbyhoiiaozrbkbxrndiyveysinxhuevgish\";\n // NON ENCRYPTED TEXT: String text = \"werenostrangerstoloveyouknowtherulesandsodoiafullcommitmentswhatimthinkingofyouwouldntgetthisfromanyotherguyijustwannatellyouhowimfeelinggottamakeyouunderstandnevergonnagiveyouupnevergonnaletyoudownnevergonnarunaroundanddesertyounevergonnamakeyoucrynevergonnasaygoodbyenevergonnatellalieandhurtyou\";\n System.out.println(\"Rotation Index of coincidence\");\n for (int i = 1;i<text.length();i++)\n {\n String rotated = rotate(text,i);\n int index = findIndex(text,rotated);\n System.out.println(i+\" \"+index);\n }\n }", "title": "" }, { "docid": "8613e57692738e1ddd4494078ccaeda6", "score": "0.4902338", "text": "public long position(String pattern, long start)\n\t{\n\t\tthrow new UnsupportedOperationException();\n\t}", "title": "" }, { "docid": "526745a8f41b970269b4f721b6990c2d", "score": "0.49015954", "text": "static String findSubstringByFooterString(String src, String before, String after, boolean caseSensitive)\n throws UnexpectedFormatException {\n return findSubstringByFooterString(src, 0, before, after, caseSensitive);\n }", "title": "" }, { "docid": "92d50d677c6663cfb91f92353c5c5464", "score": "0.49010172", "text": "private int getOffset(final String message, final ResourceText text,\n\t\t\tfinal int line, final int column) {\n\t\tint offset = text.getOffset(line - 1) + column;\n\t\tif (isEndLineSpace(message)) {\n\t\t\tfinal byte[] content = text.getContent();\n\t\t\twhile (offset > 0 && isWhitespace(content, offset - 1)) {\n\t\t\t\toffset--;\n\t\t\t}\n\t\t} else if (isOneSpace(message)) {\n\t\t\tfinal byte[] content = text.getContent();\n\t\t\tif (isWhitespace(content, offset)) {\n\t\t\t\toffset++;\n\t\t\t}\n\t\t}\n\t\treturn offset;\n\t}", "title": "" } ]
37ebc79dc3f782373028a2e11101d522
Contract: get all tickets for SheduleItem
[ { "docid": "88a0784696892a7d76c6777e1956ea17", "score": "0.64399016", "text": "public List<TicketEntity> getByPassengerAndSheduleItem(List<PassengerEntity> passengersList,\n SheduleItemEntity sheduleItem) {\n String queryStr = \"FROM TicketEntity \" +\n \" WHERE sheduleItem = :shedule_item\";\n StringBuffer queryBuf = new StringBuffer(queryStr);\n for(int i = 0; i < passengersList.size(); i++) {\n if(i == 0) {\n queryBuf.append(\" AND (passenger = :passenger_\").append(i);\n } else {\n queryBuf.append(\" OR passenger = :passenger_\").append(i);\n }\n if(i == (passengersList.size() - 1)) {\n queryBuf.append(\")\");\n }\n }\n Query query = this.getSessionFactory().getCurrentSession().createQuery(queryBuf.toString());\n query.setParameter(\"shedule_item\", sheduleItem);\n for(int i = 0; i < passengersList.size(); i++) {\n query.setParameter(\"passenger_\" + i, passengersList.get(i));\n }\n return query.list();\n }", "title": "" } ]
[ { "docid": "90292b89f602964b949e3f3b6138fa55", "score": "0.61401236", "text": "public List<Ticket> getTickets() {return tickets;}", "title": "" }, { "docid": "5f2702de2376459ad601af00b59b7570", "score": "0.61205167", "text": "public List<Ticket> getAllTickets(){\n List<Ticket> tickets=ticketRepository.findAll();\n return tickets;\n }", "title": "" }, { "docid": "3acf36a90326d06b24774ca011b85d2b", "score": "0.59856945", "text": "List<WorkingSchedule> getAll();", "title": "" }, { "docid": "16b5ebf297f9606d1ffd20c009445cec", "score": "0.583586", "text": "public List<ScheduleTransactionInfo> searchForScheduleTransactions(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "title": "" }, { "docid": "d8ea0ff0b9b64769b861a34b0108faa8", "score": "0.57831293", "text": "@Override\r\n\tpublic List<Courseschedule> getAllCourseschedules() {\n\t\tsession = sessionFactory.openSession();\r\n\t\tTransaction tran = session.beginTransaction();\r\n\t\tString hql = \"from Courseschedule where state=:state\";\r\n\t\tQuery query = session.createQuery(hql).setInteger(\"state\", 0);\r\n\t\tList<Courseschedule> lists = query.list();\r\n\t\ttran.commit();\r\n\t\tsession.close();\r\n\t\tlogger.debug(\"use the method named :getAllCourseschedules()\");\r\n\t\tif (lists.size() > 0) {\r\n\t\t\treturn lists;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "8199aa270716eb4753faed4c2f9f1abf", "score": "0.5745685", "text": "public List<WorkoutSchedule> getSchedules() {\n if (schedules == null) {\n if (daoSession == null) {\n throw new DaoException(\"Entity is detached from DAO context\");\n }\n WorkoutScheduleDao targetDao = daoSession.getWorkoutScheduleDao();\n List<WorkoutSchedule> schedulesNew = targetDao._queryWorkout_Schedules(id);\n synchronized (this) {\n if(schedules == null) {\n schedules = schedulesNew;\n }\n }\n }\n return schedules;\n }", "title": "" }, { "docid": "eaa26fd38f71ff5fe4bedf4f51eee66a", "score": "0.57379174", "text": "@GetMapping(value=\"/ticket/alltickets\")\n\tpublic List<Ticket> getAllTickets(){\n\t\treturn ticketBookingService.getAllTickets();\n\t}", "title": "" }, { "docid": "d7ee2282503857ac267f8175fe54a4a5", "score": "0.57284075", "text": "@SuppressWarnings(\"unchecked\")\n\tpublic List<ISchedule> getSchedules() throws IOException {\n\t\tfinal String sql = \"SELECT * from record\";\n\t\tList<? extends ISchedule> result = this.queryDataList(Schedule.class,ISchedule.Props.class, sql);\n\t\treturn (List<ISchedule>) result;\t\t\n\t}", "title": "" }, { "docid": "e4a2b23a9aaabd74876a39ab3aa25fad", "score": "0.572002", "text": "@Override\n\tpublic List<ScheduleTask> getScheduleTaskList() {\n\t\treturn (List<ScheduleTask>) find(\"from ScheduleTask\");\n\t}", "title": "" }, { "docid": "e49c3aa19221373dfa662da3951030bf", "score": "0.5696053", "text": "@Override\n\tpublic List<ScheduleTask> getScheduleTaskList() {\n\t\treturn scheduleTaskDAO.getScheduleTaskList();\n\t}", "title": "" }, { "docid": "3c9ffe77085d33a276b590198ba02448", "score": "0.56951857", "text": "@Transactional(readOnly = true)\n public List<Ticket> findAll() {\n log.debug(\"Request to get all Tickets\");\n List<Ticket> result = ticketRepository.findAll();\n\n return result;\n }", "title": "" }, { "docid": "e313ae804329f0abcd934c298e566544", "score": "0.5685013", "text": "private List<Schedules> getSchedulesList(){\r\n//\t\tList<Schedules> list = new ArrayList<Schedules>();\r\n//\t\tSchedules s1 = new Schedules(1, \"Baidu\", \"BUPT\", \"2013-09-11\", \"12:30\");\r\n//\t\tSchedules s2 = new Schedules(2, \"Sina\", \"BUPT\", \"2013-09-11\", \"13:50\");\r\n//\r\n//\t\tlist.add(s1);\r\n//\t\tlist.add(s2);\r\n\t\tif (scheduleList == null) {\r\n\t\t\tscheduleList = mAppContext.scheduleGetAll();\r\n\t\t}\r\n\t\treturn scheduleList;\r\n//\t\treturn list;\r\n\t}", "title": "" }, { "docid": "d4a3a9d6c4bb372985c11da51e5b65dd", "score": "0.55725783", "text": "public List<ScheduleInfo> searchForSchedules(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "title": "" }, { "docid": "05a88588cbbca6123d7a8e5f7e3c616b", "score": "0.55361277", "text": "public ArrayList<Ticket> readTickets(String command) {\r\n try{\r\n ResultSet results = Connect.readSp(command);\r\n \r\n while (results.next()) {\r\n Ticket tkt = new Ticket();\r\n tkt.setTktNo(results.getInt(\"tktNo\"));\r\n tkt.setPersonellNo(results.getInt(\"staffNo\"));\r\n tkt.setProcessLeadNo(results.getInt(\"processLeadNo\"));\r\n tkt.setTktName(results.getString(\"name\"));\r\n tkt.setStatus(results.getString(\"status\"));\r\n tkt.setCategory(results.getString(\"category\"));\r\n System.out.println(\"this effin ticket \" + tkt.getTktNo());\r\n tkt.readComments();\r\n tkt.readTasks();\r\n tickets.add(tkt);\r\n }\r\n results.close();\r\n }\r\n catch (SQLException e) {\r\n System.out.println(\"Failure\"+e.getMessage( ));\r\n }\r\n return tickets;\r\n }", "title": "" }, { "docid": "623db6780f3c028935708e9278fd2f9f", "score": "0.5522858", "text": "@Override\n\tpublic List<LotteryTicket> getAllLotteryTickets() {\n\t\tList<LotteryTicket> ticket = null;\n\t\ttry {\n\t\t\tticket = lotteryTicketRepository.findAllByIsCancelled(false);\n\t\t} catch (Exception exception) {\n\t\t\tLOGGER.error(\"Something went wrong in getAllLotteryTickets\" + exception);\n\t\t\tthrow new InternalServerError(\"Something went wrong in getting all lottery tickets\");\n\t\t}\n\n\t\t// Check if ticket list is empty\n\t\tif (ticket == null || ticket.size() == 0) {\n\t\t\tthrow new InternalServerError(\"No tickets found\");\n\t\t}\n\n\t\t// Return tickets list response\n\t\treturn ticket;\n\t}", "title": "" }, { "docid": "607a2e101e088fb1e13895c17d511175", "score": "0.5499829", "text": "List<WorkingSchedule> getByPlaceId(Long placeId);", "title": "" }, { "docid": "766415476fa714f8f720a047e00cf0f4", "score": "0.5492933", "text": "@SuppressWarnings(\"unchecked\")\n public List<Item> getListOfTasks() {\n Session session = this.factory.openSession();\n List<Item> list = session.createQuery(\"from Item\").list();\n session.close();\n return list;\n }", "title": "" }, { "docid": "c5b1925013f99819ba9507abdcd09b5a", "score": "0.54905766", "text": "public List<Ticket> getTicketsForPurchase() {\n if (ticket == null) {\n ticket = new ArrayList<Ticket>();\n }\n return this.ticket;\n }", "title": "" }, { "docid": "ee4a03fa5f983e53edd3fef26d3cd45b", "score": "0.5471158", "text": "List<Ticket> getTickets(String status, String priority);", "title": "" }, { "docid": "0e4eb594ec86e131fe674c22a21e73da", "score": "0.5443624", "text": "public List<String> searchForScheduleTransactionIds(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "title": "" }, { "docid": "bfb4d35ff58a2a9b8355c446f3f86227", "score": "0.5428103", "text": "public ApiSchedule[] getSchedules() {\n return this.schedules;\n }", "title": "" }, { "docid": "feb20f7c3c60558a7280868d9c9e0c26", "score": "0.5419644", "text": "public List<ServicioTicket> obtenerTodosLosServiciosDeTicket() {\n return this.servicioTicketFacade.findAll();\n }", "title": "" }, { "docid": "d434940776ca2249cc7127b91c49b761", "score": "0.54172003", "text": "@Transactional(readOnly = true)\n public SearchResult<Schedule> findSchedules(Long userId) {\n\n Long resultsCount = scheduleRepository.countSchedules(userId);\n\n List<Schedule> schedules = scheduleRepository.findSchedules(userId);\n\n return new SearchResult<>(resultsCount, schedules);\n }", "title": "" }, { "docid": "db60ee0be8b39828f76903ae483a1f2d", "score": "0.5409193", "text": "ScheduledEvents getScheduledEvents();", "title": "" }, { "docid": "0316c1cbe95a1abfa35aa38d2b03493c", "score": "0.53883463", "text": "@Transactional(readOnly = true)\n public List<Ticket> findByUser_Id(Long id) {\n log.debug(\"Request to findByUser_Id : {}\", id);\n List<Ticket> tickets = ticketRepository.findByUser_Id(id);\n return tickets;\n }", "title": "" }, { "docid": "20fa28b39083ea442bb257890de6fcaf", "score": "0.5382783", "text": "public List<ScheduleRequestInfo> searchForScheduleRequests(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "title": "" }, { "docid": "438b3442987d4d57cc40e5cbe20af437", "score": "0.5380758", "text": "@Override\r\n\tpublic List<ScheduledFlights> retrieveAllScheduledFlights() {\t\r\n\t\tTypedQuery<ScheduledFlights> query = entityManager.createQuery(\"select s from ScheduledFlights s, Flight f,Schedule sc where s.flight = f and s.schedule=sc\",ScheduledFlights.class);\r\n\t\tList<ScheduledFlights> flights = query.getResultList();\r\n\t\treturn flights;\r\n\t}", "title": "" }, { "docid": "d71d3acf2c0f5694590b9768a9200b20", "score": "0.53687316", "text": "@Test\r\n public void getEventTicketInstanceList() {\r\n System.out.println(\"getEventTicketInstanceList begin.\");\r\n\r\n // Model ID of event ticket instances you want to get.\r\n String modelId = \"eventTicketModelTest\";\r\n\r\n // Get a list of the event ticket instances.\r\n String urlSegment = \"eventticket/instance\";\r\n List<HwWalletObject> responseInstances = walletBuildService.getInstances(urlSegment, modelId, 5);\r\n System.out.println(\"Event ticket instances list: \" + CommonUtil.toJson(responseInstances));\r\n }", "title": "" }, { "docid": "9fe42666e4f840ccee1e194636edac35", "score": "0.53489166", "text": "public static ArrayList verTicket (String DNICliente) throws SQLException{\n PreparedStatement query=null;\n ResultSet resultado=null;\n ArrayList <Ticket> listaTickets=new ArrayList();\n try{\n query=Herramientas.getConexion().prepareStatement(\"SELECT * FROM ticket WHERE DNI_cliente=?\");\n query.setString(1, DNICliente);\n resultado=query.executeQuery();\n while(resultado.next()){\n DateTimeFormatter formatoFecha = DateTimeFormatter.ofPattern(\"dd/MM/yyyy\");\n DateTimeFormatter formatoHora = DateTimeFormatter.ofPattern(\"HH:mm\");\n LocalDate fecha=LocalDate.parse(resultado.getString(4),formatoFecha);\n LocalTime hora=LocalTime.parse(resultado.getString(5),formatoHora);\n ArrayList <LineaCompra> lineasT1=new ArrayList();\n Ticket t1=new Ticket(resultado.getInt(1),resultado.getInt(3),fecha,hora,resultado.getDouble(6),lineasT1);\n t1.verLineaTicket();\n listaTickets.add(t1);\n }\n } catch(SQLException ex){\n Herramientas.aviso(\"Ha habido un error al recuperar sus tickets\");\n Excepciones.pasarExcepcionLog(\"Ha habido un error al recuperar sus tickets\", ex);\n } finally{\n resultado.close();\n query.close();\n }\n return listaTickets;\n }", "title": "" }, { "docid": "825dcf602fbb913c5b7fe7170b9e3811", "score": "0.5335284", "text": "@GetMapping\n public List<ScheduleDTO> getAllSchedules() {\n List<Schedule> scheduleList = scheduleService.getAllSchedules();\n\n List<ScheduleDTO> scheduleDTOList = scheduleList.stream()\n .map(ScheduleController::convertScheduleToScheduleDTO)\n .collect(Collectors.toList());\n return scheduleDTOList;\n }", "title": "" }, { "docid": "4a8f6a4e95bd1336265e84c10e7eb556", "score": "0.5307023", "text": "public List<Task> getCesarTasksExpiringToday() {\n\t\tCalendar calendar = Calendar.getInstance();\n\t\tDate date = DateUtils.truncate(new Date(), Calendar.DATE);\n\t\tcalendar.setTime(date);\n\t\tint dayOfWeek = calendar.get(Calendar.DAY_OF_WEEK);\n\t\tList<Task> tasks = taskRepository.getTaskByDateAndOwnerAndExpireAtTheEndOfTheDay(date,\n\t\t\t\tTVSchedulerConstants.CESAR, true);\n\t\tif (tasks.size() == 0) {\n\t\t\tTask task;\n\t\t\tswitch (dayOfWeek) {\n\t\t\tcase Calendar.SATURDAY:\n\t\t\t\ttask = new Task(\"Mettre la table\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"Faire le piano\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"Sortir\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"jeu de Société\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"Lecture\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\tbreak;\n\t\t\tcase Calendar.SUNDAY:\n\t\t\t\ttask = new Task(\"Faire du sport (piscine/footing)\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"Solfège\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"Piano\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"Sortir\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"Jouer tout seul\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"Devoir\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"Lecture\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"Aider à faire le ménage\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"Jeu de société\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"S'habiller\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\tbreak;\n\t\t\tcase Calendar.MONDAY:\n\t\t\t\ttask = new Task(\"Solfège\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"Devoir\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\tbreak;\n\t\t\tcase Calendar.TUESDAY:\n\t\t\t\ttask = new Task(\"Piano\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"Devoir\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\tbreak;\n\t\t\tcase Calendar.WEDNESDAY:\n\t\t\t\ttask = new Task(\"Solfège\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"Aider à faire le ménage\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"Devoir\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\tbreak;\n\t\t\tcase Calendar.THURSDAY:\n\t\t\t\ttask = new Task(\"Piano\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"Devoir\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\tbreak;\n\t\t\tcase Calendar.FRIDAY:\n\t\t\t\ttask = new Task(\"Solfège\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}\n\t\treturn tasks;\n\t}", "title": "" }, { "docid": "6f214c7cf78169ca434612ef20713650", "score": "0.53025424", "text": "@Test\r\n\tpublic void testListTickets() {\n\t\tint i = 1;\r\n\t\tString[] types = {\"singleton\", \"head\", \"tail\"};\r\n\t\tJsonObject[] tickets = new JsonObject[0];\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\tfor (String t : types) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\ttickets = roc.listTickets(t);\r\n\t\t\t\t\tif (tickets != null && tickets.length > 0) {\r\n\t\t\t\t\t\tJsonObject ticket = tickets[0];\r\n\t\t\t\t\t\tif (t.equals(\"singleton\")) {\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"nextTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"previousTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t} else if (t.equals(\"head\")) {\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"nextTicketId\").isJsonNull(), equalTo(false));\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"previousTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t} else if (t.equals(\"tail\")) {\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"nextTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"previousTicketId\").isJsonNull(), equalTo(false));\r\n\t\t\t\t\t\t} else { \r\n\t\t\t\t\t\t\tcollector.addError(new Error(\"Invalid ticket type. \"));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "4fedf215b64abb308be89a6fe778f405", "score": "0.5299788", "text": "public java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "title": "" }, { "docid": "af993bfcfe87687959f74c05d31efae7", "score": "0.5285431", "text": "public Map<String,Ticket> retriveTickets(IssueType issueType) throws IOException {\n\t\tMap<String,Ticket> tickets = new HashMap<>();\n\t\t\n\t\tInteger j = 0;\n\t\tInteger i = 0;\n\t\tInteger total = 1;\n\t //Get JSON API for closed bugs w/ AV in the project\n\t\tdo {\n\t\t\t//https://issues.apache.org/jira/rest/api/2/search?jql=project%20%3D%20OPENJPA%20AND%20issueType%20%3D%20Bug%20AND(%20status%20=%20closed%20OR%20status%20=%20resolved%20)AND%20resolution%20=%20fixed%20&fields=key,resolutiondate,versions,created&startAt=0&maxResults=1000\n\t\t\t//Only gets a max of 1000 at a time, so must do this multiple times if bugs >1000\n\t\t\tj = i + 1000;\n\t String url = basicUrl + \"search?jql=project%20%3D%20\"\n\t + this.projectName + \"%20AND%20issueType%20\" + issueType.getType() + \"%20AND(%20status%20=%20closed%20OR\"\n\t + \"%20status%20=%20resolved%20)AND%20resolution%20=%20fixed%20&fields=key,resolutiondate,versions,created&startAt=\"\n\t + i.toString() + \"&maxResults=\" + j.toString();\n\t JSONObject json = JSONTools.readJsonFromUrl(url);\n\t JSONArray issues = json.getJSONArray(\"issues\");\n\t total = json.getInt(\"total\");\n\t for (; i < total && i < j; i++) {\n\t //Iterate through each bug\n\t \t \n\t \tJSONObject issue = issues.getJSONObject(i%1000);\n\t \ttickets.put(issue.get(\"key\").toString(), new Ticket(this.projectName, issue.get(\"key\").toString(), issueType));\n\t \t\n\t } \n\t \n\t\t} while (i < total);\n\t\t\n\t\treturn tickets;\n\t \n\t}", "title": "" }, { "docid": "be93aa663709b8eb26f9fab9c7d92f7c", "score": "0.52835464", "text": "public List<TaskMaster> retrieveTasksForIntervalById(long userId, Calendar startTime, Calendar endTime);", "title": "" }, { "docid": "9c25bd6bccd2c3d73c6b8a8601d15fc9", "score": "0.52794284", "text": "@Override\n\tpublic List<TicketModel> getTickets(RepositoryModel repository, TicketFilter filter) {\n\t\tJedis jedis = pool.getResource();\n\t\tList<TicketModel> list = new ArrayList<TicketModel>();\n\t\tif (jedis == null) {\n\t\t\treturn list;\n\t\t}\n\t\ttry {\n\t\t\t// Deserialize each journal, build the ticket, and optionally filter\n\t\t\tSet<String> keys = jedis.keys(key(repository, KeyType.journal, \"*\"));\n\t\t\tfor (String key : keys) {\n\t\t\t\t// {repo}:journal:{id}\n\t\t\t\tString id = key.split(\":\")[2];\n\t\t\t\tlong ticketId = Long.parseLong(id);\n\t\t\t\tList<Change> changes = getJournal(jedis, repository, ticketId);\n\t\t\t\tif (ArrayUtils.isEmpty(changes)) {\n\t\t\t\t\tlog.warn(\"Empty journal for {}:{}\", repository, ticketId);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tTicketModel ticket = TicketModel.buildTicket(changes);\n\t\t\t\tticket.project = repository.projectPath;\n\t\t\t\tticket.repository = repository.name;\n\t\t\t\tticket.number = ticketId;\n\n\t\t\t\t// add the ticket, conditionally, to the list\n\t\t\t\tif (filter == null) {\n\t\t\t\t\tlist.add(ticket);\n\t\t\t\t} else {\n\t\t\t\t\tif (filter.accept(ticket)) {\n\t\t\t\t\t\tlist.add(ticket);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// sort the tickets by creation\n\t\t\tCollections.sort(list);\n\t\t} catch (JedisException e) {\n\t\t\tlog.error(\"failed to retrieve tickets from Redis @ \" + getUrl(), e);\n\t\t\tpool.returnBrokenResource(jedis);\n\t\t\tjedis = null;\n\t\t} finally {\n\t\t\tif (jedis != null) {\n\t\t\t\tpool.returnResource(jedis);\n\t\t\t}\n\t\t}\n\t\treturn list;\n\t}", "title": "" }, { "docid": "2ba43565978b7a2fb25b252cf7b974d3", "score": "0.5267555", "text": "@GetMapping(\"/sys-appointments\")\n @Timed\n public List<SysAppointment> getAllSysAppointments() {\n log.debug(\"REST request to get all SysAppointments\");\n return sysAppointmentService.findAll();\n }", "title": "" }, { "docid": "3b89d20b1149113747e522b43d9a2ade", "score": "0.52517694", "text": "@SuppressWarnings(\"unchecked\")\n public List<Item> getActiveTasks() {\n Session session = this.factory.openSession();\n List<Item> list = session.createQuery(\"from Item where status = 0\").list();\n session.close();\n return list;\n }", "title": "" }, { "docid": "d34b756b0957afb4fcd0e35a16e23f97", "score": "0.52475244", "text": "public Set<Ticket> getTickets() { return Set.copyOf(tickets); }", "title": "" }, { "docid": "59f356b4e1cd73dd8eb41e9e2e49b639", "score": "0.52170265", "text": "@Override\n public List<SurveillantSchedule> getSurveillantSchedule() {\n return surveillantRepository.getSurveillantSchedule();\n }", "title": "" }, { "docid": "cecfccdc27b64829d81197623869e2a1", "score": "0.52091706", "text": "public List<Ticket> getTicketList() {\r\n\t\treturn ticketList;\r\n\t}", "title": "" }, { "docid": "9b0bbf29087ccc57911fda4737f71c46", "score": "0.5207322", "text": "Collection<Auction> getFutureAuctions();", "title": "" }, { "docid": "dd27fbfdbb22d98701d545de8f98ec55", "score": "0.5195956", "text": "@Override\n\tpublic List<SchedulerJobEntity> getAllScheduledJobs() throws SchedulerException {\n\t\treturn schedulerRepository.findAll();\n\t}", "title": "" }, { "docid": "cc4ecf34b6c04fd10839d2daeda17f40", "score": "0.51866215", "text": "@Override\n\n public void run() {\n\n fetchTickets();\n\n }", "title": "" }, { "docid": "a602f38005d8afa4e9e46a7e1be35094", "score": "0.51780015", "text": "@GetMapping(\"/prix-tickets\")\n @Timed\n public ResponseEntity<List<PrixTicketDTO>> getAllPrixTickets(Pageable pageable) {\n log.debug(\"REST request to get a page of PrixTickets\");\n Page<PrixTicketDTO> page = prixTicketService.findAll(pageable);\n HttpHeaders headers = PaginationUtil.generatePaginationHttpHeaders(page, \"/api/prix-tickets\");\n return new ResponseEntity<>(page.getContent(), headers, HttpStatus.OK);\n }", "title": "" }, { "docid": "dbf64a05fd223af17d073b501e24f1a8", "score": "0.5176432", "text": "public List<ScheduledTask> getAllPendingTasks() {\n \t\tSet<String> smembers = jedisConn.smembers(ALL_TASKS);\n \t\tList<ScheduledTask> alltasks = new ArrayList<>();\n \t\tGson gson = new Gson();\n \t\t// the get actual tasks by the ids\n \t\tfor (String member : smembers) {\n \t\t\tString string = jedisConn.get(PENDING_TASK(member));\n \t\t\tScheduledTask task = gson.fromJson(string, ScheduledTask.class);\n \t\t\talltasks.add(task);\n \t\t}\n \t\treturn alltasks;\n \t}", "title": "" }, { "docid": "2d892ff8f066200cab2b8d3490e43115", "score": "0.51707286", "text": "public List<? extends JobEntry> getScheduledJobs()\n {\n return schedulerService.listJobs();\n }", "title": "" }, { "docid": "88230bc04c619405937bf413b12c6c90", "score": "0.5164298", "text": "public List<TaskItem> zGetTasks() throws HarnessException {\n\n\t\tList<TaskItem> items = new ArrayList<TaskItem>();\n\n\t\t// The task page has the following under the zl__TKL__rows div:\n\t\t// <div id='_newTaskBannerId' .../> -- enter a new task\n\t\t// <div id='_upComingTaskListHdr' .../> -- Past due\n\t\t// <div id='zli__TKL__267' .../> -- Task item\n\t\t// <div id='zli__TKL__299' .../> -- Task item\n\t\t// <div id='_upComingTaskListHdr' .../> -- Upcoming\n\t\t// <div id='zli__TKL__271' .../> -- Task item\n\t\t// <div id='zli__TKL__278' .../> -- Task item\n\t\t// <div id='zli__TKL__275' .../> -- Task item\n\t\t// <div id='_upComingTaskListHdr' .../> -- No due date\n\t\t// <div id='zli__TKL__284' .../> -- Task item\n\t\t// <div id='zli__TKL__290' .../> -- Task item\n\n\t\t// How many items are in the table?\n\t\tString rowLocator = \"//div[@id='\" + Locators.zl__TKL__rows + \"']/div\";\n\t\tint count = this.sGetXpathCount(rowLocator);\n\t\tlogger.debug(myPageName() + \" zGetTasks: number of rows: \" + count);\n\n\t\t// Get each conversation's data from the table list\n\t\tfor (int i = 1; i <= count; i++) {\n\n\t\t\tString itemLocator = rowLocator + \"[\" + i + \"]\";\n\n\t\t\tString id;\n\t\t\ttry {\n\t\t\t\tid = this.sGetAttribute(\"xpath=(\" + itemLocator + \")@id\");\n\t\t\t} catch (SeleniumException e) {\n\t\t\t\t// Make sure there is an ID\n\t\t\t\tlogger.warn(\"Task row didn't have ID. Probably normal if message is 'Could not find element attribute' => \"+ e.getMessage());\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tString locator = null;\n\t\t\tString attr = null;\n\n\t\t\t// Skip any invalid IDs\n\t\t\tif ((id == null) || (id.trim().length() == 0))\n\t\t\t\tcontinue;\n\n\t\t\t// Look for zli__TKL__258\n\t\t\tif (id.contains(Locators.zli__TKL__)) {\n\t\t\t\t// Found a task\n\n\t\t\t\tTaskItem item = new TaskItem();\n\n\t\t\t\tlogger.info(\"TASK: \" + id);\n\n\t\t\t\t// Is it checked?\n\t\t\t\t// <div id=\"zlif__TKL__258__se\" style=\"\"\n\t\t\t\t// class=\"ImgCheckboxUnchecked\"></div>\n\t\t\t\tlocator = itemLocator\n\t\t\t\t+ \"//div[contains(@class, 'ImgCheckboxUnchecked')]\";\n\t\t\t\titem.gIsChecked = this.sIsElementPresent(locator);\n\n\t\t\t\t// Is it tagged?\n\t\t\t\t// <div id=\"zlif__TKL__258__tg\" style=\"\"\n\t\t\t\t// class=\"ImgBlank_16\"></div>\n\t\t\t\tlocator = itemLocator + \"//div[contains(@id, '__tg')]\";\n\t\t\t\t// TODO: handle tags\n\n\t\t\t\t// What's the priority?\n\t\t\t\t// <td width=\"19\" id=\"zlif__TKL__258__pr\"><center><div style=\"\"\n\t\t\t\t// class=\"ImgTaskHigh\"></div></center></td>\n\t\t\t\tlocator = itemLocator\n\t\t\t\t+ \"//td[contains(@id, '__pr')]/center/div\";\n\t\t\t\tif (!this.sIsElementPresent(locator)) {\n\t\t\t\t\titem.gPriority = \"normal\";\n\t\t\t\t} else {\n\t\t\t\t\tlocator = \"xpath=(\" + itemLocator\n\t\t\t\t\t+ \"//td[contains(@id, '__pr')]/center/div)@class\";\n\t\t\t\t\tattr = this.sGetAttribute(locator);\n\t\t\t\t\tif (attr.equals(\"ImgTaskHigh\")) {\n\t\t\t\t\t\titem.gPriority = \"high\";\n\t\t\t\t\t} else if (attr.equals(\"ImgTaskLow\")) {\n\t\t\t\t\t\titem.gPriority = \"low\";\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Is there an attachment?\n\t\t\t\t// <td width=\"19\" class=\"Attach\"><div id=\"zlif__TKL__258__at\"\n\t\t\t\t// style=\"\" class=\"ImgBlank_16\"></div></td>\n\t\t\t\tlocator = \"xpath=(\" + itemLocator\n\t\t\t\t+ \"//div[contains(@id, '__at')])@class\";\n\t\t\t\tattr = this.sGetAttribute(locator);\n\t\t\t\tif (attr.equals(\"ImgBlank_16\")) {\n\t\t\t\t\titem.gHasAttachments = false;\n\t\t\t\t} else {\n\t\t\t\t\t// TODO - handle other attachment types\n\t\t\t\t}\n\n\t\t\t\t// See http://bugzilla.zmail.com/show_bug.cgi?id=56452\n\n\t\t\t\t// Get the subject\n\t\t\t\tlocator = itemLocator + \"//td[5]\";\n\t\t\t\titem.gSubject = this.sGetText(locator).trim();\n\n\t\t\t\t// Get the status\n\t\t\t\tlocator = itemLocator + \"//td[6]\";\n\t\t\t\titem.gStatus = this.sGetText(locator).trim();\n\n\t\t\t\t// Get the % complete\n\t\t\t\tlocator = itemLocator + \"//td[7]\";\n\t\t\t\titem.gPercentComplete = this.sGetText(locator).trim();\n\n\t\t\t\t// Get the due date\n\t\t\t\tlocator = itemLocator + \"//td[8]\";\n\t\t\t\titem.gDueDate = this.sGetText(locator).trim();\n\n\t\t\t\titems.add(item);\n\t\t\t\tlogger.info(item.prettyPrint());\n\n\t\t\t}\n\n\t\t}\n\n\t\t// Return the list of items\n\t\treturn (items);\n\n\t}", "title": "" }, { "docid": "4e2093582e6a44e20eccdc8d7c37bdec", "score": "0.513909", "text": "public List<Timetable> getAllTimetable() throws Exception;", "title": "" }, { "docid": "90befa70d4ff7a7d74b91b71236e0680", "score": "0.51385283", "text": "private void getDataFromApi() throws IOException {\n DateTime now = new DateTime(System.currentTimeMillis());\n Events events = mService.events().list(\"primary\")\n .setTimeMin(now)\n .setOrderBy(\"startTime\")\n .setSingleEvents(true)\n .execute();\n List<Event> items = events.getItems();\n ScheduledEvents scheduledEvents;\n EventsList.clear();\n for (Event event : items) {\n DateTime start = event.getStart().getDateTime();\n if (start == null) {\n start = event.getStart().getDate();\n }\n DateTime end = event.getEnd().getDateTime();\n if (end == null) {\n end = event.getStart().getDate();\n }\n scheduledEvents = new ScheduledEvents();\n scheduledEvents.setEventId(event.getId());\n scheduledEvents.setDescription(event.getDescription());\n scheduledEvents.setEventSummery(event.getSummary());\n scheduledEvents.setLocation(event.getLocation());\n scheduledEvents.setStartDate(dateTimeToString(start));\n scheduledEvents.setEndDate(dateTimeToString(end));\n StringBuffer stringBuffer = new StringBuffer();\n if(event.getAttendees()!=null) {\n for (EventAttendee eventAttendee : event.getAttendees()) {\n if(eventAttendee.getEmail()!=null)\n stringBuffer.append(eventAttendee.getEmail() + \" \");\n }\n scheduledEvents.setAttendees(stringBuffer.toString());\n }\n else{\n scheduledEvents.setAttendees(\"\");\n }\n EventsList.add(scheduledEvents);\n }\n }", "title": "" }, { "docid": "39bd1bdaed5740dfedd7882e331353f5", "score": "0.5126297", "text": "public List<String> searchForScheduleIds(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "title": "" }, { "docid": "09d0c59aa037abf546d327f165e19dfd", "score": "0.5124021", "text": "public List<TicketSite> getTicketSitesOfATeam(String teamId);", "title": "" }, { "docid": "0c3210d3217cc9a58c623f9fafa2aed3", "score": "0.5113185", "text": "@Transactional(readOnly = true)\n public List<Ticket> search(String query) {\n log.debug(\"Request to search Tickets for query {}\", query);\n return StreamSupport\n .stream(ticketSearchRepository.search(queryStringQuery(query)).spliterator(), false)\n .collect(Collectors.toList());\n }", "title": "" }, { "docid": "15027059a3964af7d3ad9db68f18ab1b", "score": "0.5112402", "text": "public List<ScheduledTask> fullSchedule() {\n List<ScheduledTask> scheduledTaskList = new LinkedList<>();\n for (ScheduledTask task : this) {\n if (!task.getNode().getId().equals(\"end\")) {\n scheduledTaskList.add(task);\n }\n }\n return scheduledTaskList;\n }", "title": "" }, { "docid": "c030b06c3c3be55aad695c77a3b54eac", "score": "0.5106822", "text": "@Transactional\r\n\tpublic List<Room> getReservable(Integer posti, LocalDate from, LocalDate to){\r\n\t\tList<Room> l= this.getPosti(posti);\r\n\t\tl.removeAll(this.getReservedFromTo(from, to));\r\n\t\treturn l;\r\n\t}", "title": "" }, { "docid": "669a127670edb24c3623552338001c37", "score": "0.50931686", "text": "@Override\n\tpublic List<InterviewSchedule> findAll() throws SystemException {\n\t\treturn findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);\n\t}", "title": "" }, { "docid": "f235a1e232b9653e7855f07f845b7cd0", "score": "0.5086904", "text": "public List<ScheduleResource> neededSpecificResources();", "title": "" }, { "docid": "8d37d20e87ad97cab73339c40797fa24", "score": "0.50649095", "text": "public List<Schedule> getScheduleForEmployee(long employeeId) {\n Employee employee = employeeRepository.findEmployeeById(employeeId);\n if(employee == null) {\n return Collections.emptyList();\n }\n return employee.getSchedules();\n }", "title": "" }, { "docid": "28edae0b79f26aaa1cb395243fab4bfe", "score": "0.50571513", "text": "public static List<ClientReservedTime> getClientReservedTimes(int clientID) {\n\t\tConnection conn = DBConnection.getConnection();\n\t\tList<ClientReservedTime> clientReservedTimes = new ArrayList<>();\n\t\ttry {\n\t\t\tStatement stmt = conn.createStatement();\n\t\t\tString command = \"SELECT \" +\n\t\t\t\t\t\" r.ID AS id,\" +\n\t\t\t\t\t\" r.DAY_ID AS dayID,\" +\n\t\t\t\t\t\" r.ST_TIME AS startTime,\" +\n\t\t\t\t\t\" r.DURATION AS duration,\" +\n\t\t\t\t\t\" r.RES_CODE_ID AS reserveCode,\" +\n\t\t\t\t\t\" r.RESERVE_GR_TIME AS gregorianDate,\" +\n\t\t\t\t\t\" r.CLIENT_ID as clientID,\" +\n\t\t\t\t\t\" SUM(rs.SERVICE_PRICE) AS cost,\" +\n\t\t\t\t\t\" c.ID AS companyID,\" +\n\t\t\t\t\t\" c.COMP_NAME AS companyName,\" +\n\t\t\t\t\t\" c.COVER_URL AS companyCover,\" +\n\t\t\t\t\t\" u.ID AS unitID,\" +\n\t\t\t\t\t\" u.UNIT_NAME AS unitName,\" +\n\t\t\t\t\t\" IFNULL(com.comment, ' ') AS comment,\" +\n\t\t\t\t\t\" IFNULL(com.SERVICE_RATE, 0) AS commentRate,\" +\n\t\t\t\t\t\" IFNULL(com.ID, 0) AS commentID,\" +\n\t\t\t\t\t\" IFNULL(com.SERVICE_RATE, 0) AS serviceRate,\" +\n\t\t\t\t\t\" IF(com.ID IS NULL and date_add(now(), interval r.DURATION minute)\" +\n \" > r.RESERVE_GR_TIME, TRUE, FALSE) AS commentable\" +\n\t\t\t\t\t\" FROM\" +\n\t\t\t\t\t\" alomonshi.reservetimes r\" +\n\t\t\t\t\t\" LEFT JOIN\" +\n\t\t\t\t\t\" alomonshi.comments com ON com.RES_TIME_ID = r.ID\" +\n\t\t\t\t\t\" AND com.IS_ACTIVE IS TRUE\" +\n\t\t\t\t\t\" LEFT JOIN\" +\n\t\t\t\t\t\" reservetimeservices rs ON rs.RES_TIME_ID = r.ID\" +\n\t\t\t\t\t\" AND rs.IS_ACTIVE IS TRUE\" +\n\t\t\t\t\t\" LEFT JOIN\" +\n\t\t\t\t\t\" units u ON r.UNIT_ID = u.ID AND u.IS_ACTIVE IS TRUE\" +\n\t\t\t\t\t\" LEFT JOIN\" +\n\t\t\t\t\t\" companies c ON u.COMP_ID = c.ID AND c.IS_ACTIVE IS TRUE\" +\n\t\t\t\t\t\" WHERE\" +\n\t\t\t\t\t\" r.STATUS = \" + ReserveTimeStatus.RESERVED.getValue() +\n\t\t\t\t\t\" AND r.CLIENT_ID = \" + clientID +\n\t\t\t\t\t\" GROUP BY r.ID\" +\n\t\t\t\t\t\" ORDER BY r.DAY_ID DESC, r.ST_TIME DESC \";\n\t\t\tResultSet rs = stmt.executeQuery(command);\n\t\t\tfillClientReserveTimeList(rs, clientReservedTimes);\n\t\t}catch(SQLException e) {\n\t\t\tLogger.getLogger(\"Exception\").log(Level.SEVERE, \"Exception \" + e);\n\t\t\treturn null;\n\t\t}finally {\n\t\t\tif(conn != null) {\n\t\t\t\ttry {\n\t\t\t\t\t\tconn.close();\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\tLogger.getLogger(\"Exception\").log(Level.SEVERE, \"Exception \" + e);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn clientReservedTimes;\n\t}", "title": "" }, { "docid": "5693276b6809a411272c00d8caceb352", "score": "0.5032747", "text": "private void loadTickets() {\n\t\topenTickets.clear();\n\t\tclosedTickets.clear();\n\t\tArrayList<Ticket> tickets = jdbc.getTickets();\n\t\t\n\t\tfor (Ticket t : tickets) {\n\t\t\tUser u = jdbc.get_user(t.submittedBy);\n\t\t\tString submittedBy = \"Submitted By: \"+u.get_lastname()+\", \"+u.get_firstname();\n\t\t\tString id = \"Ticket ID: \"+t.ticketID;\n\t\t\tString title = \"Title: \"+t.title;\n\t\t\tif (t.isDone) {\n\t\t\t\tString status = \"Status: Closed\";\n\t\t\t\tString s = String.format(\"%-40s%-40s%-40s%-40s\", id, title, submittedBy, status);\n\t\t\t\tclosedTickets.addElement(s);\n\t\t\t} else {\n\t\t\t\tString status = \"Status: Open\";\n\t\t\t\tString s = String.format(\"%-30s%-30s%-30s%-30s\", id, title, submittedBy, status);\n\t\t\t\topenTickets.addElement(s);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "3a3efe73bb9b5657e64b3e50dfd6d5c4", "score": "0.50238746", "text": "public @Nullable List<Ticket> getAllTicketsForDate(String dateString){\n return null;\n }", "title": "" }, { "docid": "188e11546ea3e648e9e83de6b347c724", "score": "0.5021192", "text": "public Ticket getTicket() {\n return ticket;\n }", "title": "" }, { "docid": "092dd1521fc9d3a961864b399cf927f6", "score": "0.501381", "text": "@Override\r\n public List<Contract> getAllResContracts() {\r\n try {\r\n List<Contract> l = new ArrayList();\r\n Query q = entityManager.createQuery(\"SELECT c FROM Contract c WHERE c.shop.shopType='Restaurant'\");\r\n return q.getResultList();\r\n } catch(Exception ex) {\r\n return null;\r\n }\r\n }", "title": "" }, { "docid": "87b6265fbeeea9aa7d30ecd5f31f809b", "score": "0.5012963", "text": "public static List<Map<String, Object>> getAllScheduledJobs() throws Exception {\n return JdbcUtil.wherehowsJdbcTemplate.queryForList(GET_ALL_SCHEDULED_JOBS);\n }", "title": "" }, { "docid": "a3c44ef8bb85a794093e3b15c851f89a", "score": "0.5011557", "text": "public List<String> searchForTimeSlotIds(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "title": "" }, { "docid": "d051b3222d82c978d1c5755738f78e29", "score": "0.5011466", "text": "@Override\n public List<Revenue> revenuesForTime(long startTime, long endTime) {\n List<Revenue> revenues = revenueRepository.findAll();\n List<Revenue> foundRevenues = new ArrayList<>();\n for(Revenue revenue : revenues){\n if(revenue.getTimestamp() == startTime || revenue.getTimestamp() == endTime){\n foundRevenues.add(revenue);\n continue;\n }\n if(revenue.getTimestamp() > startTime && revenue.getTimestamp() < endTime ){\n foundRevenues.add(revenue);\n }\n }\n return foundRevenues;\n }", "title": "" }, { "docid": "a3e264aae11a553cc92c325253b0ffdb", "score": "0.5009244", "text": "Collection<CalendarEvent> getActiveEvents(long when)\n{\n List<CalendarEvent> rslt = new ArrayList<CalendarEvent>();\n try {\n getAllEvents(when);\n rslt.addAll(cal_events);\n }\n catch (Exception e) {\n BasisLogger.logE(\"GOOGLECAL: problem getting events\",e);\n }\n return rslt;\n}", "title": "" }, { "docid": "0965fc550db970aef8c7375a591b9d8d", "score": "0.5008295", "text": "public List<Ticket> getTransactionLog() {\r\n\t\treturn tickets;\r\n\t}", "title": "" }, { "docid": "9bc1c0e1a200d4f1888c6b833fc4a798", "score": "0.50073355", "text": "@Override\r\n\tpublic List<Courseschedule> getCourseschedulesByCourseId(int courseId) {\n\t\tsession = sessionFactory.openSession();\r\n\t\tTransaction tran = session.beginTransaction();\r\n\t\tString hql = \"from Courseschedule where courseId=:courseId and state=:state\";\t\t\r\n\t\tList<Courseschedule> lists = session.createQuery(hql).setInteger(\"courseId\", courseId).setInteger(\"state\", 0).list();\r\n\t\ttran.commit();\r\n\t\tsession.close();\r\n\t\tlogger.debug(\"use the method named :getCourseschedulesByCourseId(int courseId)\");\r\n\t\tif (lists.size() > 0) {\r\n\t\t\treturn lists;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "f7296e7bd996b6e1c4326ed01233fd53", "score": "0.50067836", "text": "public Ticket getTicket(String id);", "title": "" }, { "docid": "5ff0cec492e6036bb35dac91af803a21", "score": "0.5005974", "text": "public List<String> getScheduleTransactionIdsByType(@WebParam(name = \"scheduleTransactionTypeKey\") String scheduleTransactionTypeKey,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "title": "" }, { "docid": "3fc04ecf0a6fe5123fb162e662cc1768", "score": "0.5002374", "text": "public List<TimeSlotInfo> searchForTimeSlots(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "title": "" }, { "docid": "020e33769f43eccf9725a5225ed2f960", "score": "0.49997023", "text": "public List<String> searchForScheduleRequestIds(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "title": "" }, { "docid": "4ba75f636113f149b37754f79ba3a05d", "score": "0.4991355", "text": "@NonNull\n public static List<EventItem> getEvents(Context context, int id) throws SecurityException {\n List<EventItem> list = new ArrayList<>();\n if (!Permissions.checkPermission(context, Permissions.READ_CALENDAR, Permissions.WRITE_CALENDAR)) {\n return list;\n }\n ContentResolver contentResolver = context.getContentResolver();\n Cursor c = contentResolver.query(CalendarContract.Events.CONTENT_URI,\n new String[]{CalendarContract.Events.TITLE,\n CalendarContract.Events.DESCRIPTION,\n CalendarContract.Events.DTSTART,\n CalendarContract.Events.DTEND,\n CalendarContract.Events.RRULE,\n CalendarContract.Events.RDATE,\n CalendarContract.Events._ID,\n CalendarContract.Events.CALENDAR_ID,\n CalendarContract.Events.ALL_DAY},\n CalendarContract.Events.CALENDAR_ID + \"='\" + id + \"'\",\n null, \"dtstart ASC\");\n if (c != null && c.moveToFirst()) {\n do {\n String title = c.getString(c.getColumnIndex(CalendarContract.Events.TITLE));\n String description = c.getString(c.getColumnIndex(CalendarContract.Events.DESCRIPTION));\n String rrule = c.getString(c.getColumnIndex(CalendarContract.Events.RRULE));\n String rDate = c.getString(c.getColumnIndex(CalendarContract.Events.RDATE));\n int calendarId = c.getInt(c.getColumnIndex(CalendarContract.Events.CALENDAR_ID));\n int allDay = c.getInt(c.getColumnIndex(CalendarContract.Events.ALL_DAY));\n long dtStart = c.getLong(c.getColumnIndex(CalendarContract.Events.DTSTART));\n long dtEnd = c.getLong(c.getColumnIndex(CalendarContract.Events.DTEND));\n long eventID = c.getLong(c.getColumnIndex(CalendarContract.Events._ID));\n list.add(new EventItem(title, description, rrule, rDate,\n calendarId, allDay, dtStart, dtEnd, eventID));\n } while (c.moveToNext());\n c.close();\n }\n return list;\n }", "title": "" }, { "docid": "34d381e1b510dabd6321236442e32c81", "score": "0.499003", "text": "private ObservableList<ExpiringItem> getExpiringItems(ObservableList<Item> itemList) {\n ObservableList<ExpiringItem> tableRows = FXCollections.observableArrayList();\n for (int i = 0; i <= 7; i++) {\n tableRows.add(new ExpiringItem(i, itemList));\n }\n return tableRows;\n }", "title": "" }, { "docid": "be4c8e6ff2261ed8751fc0860a48595c", "score": "0.4982586", "text": "public interface IScheduleInteractor\n extends IScheduleableInteractor {\n\n List<ScheduleItemDTO> getScheduleEvents(FilterConditions conditions);\n\n List<DateTime> getDatesWithoutEvents(FilterConditions conditions);\n\n boolean eventExist(int id);\n\n ScheduleItemDTO getEvent(int eventId);\n}", "title": "" }, { "docid": "29fe89f322b910f38604424f491be3c5", "score": "0.49715593", "text": "public interface ScheduleService {\n BasicSchedule getBasicScheduleByHostelIdAndRoomType(long hostelId, RoomType type);\n\n /**\n * 获得最近一年的酒店基本计划\n *\n * @param hostelId\n * @return\n */\n List<BasicSchedule> getBasisSchedulesByHostelId(long hostelId);\n\n void modifyBasisSchedule(BasicSchedule basicSchedule);\n\n /**\n * 获得最近一年的酒店特殊计划\n *\n * @param hostelId\n * @return\n */\n List<SpecialSchedule> getSpecialScheduleByHostelId(long hostelId);\n\n void modifySpecialSchedule(SpecialSchedule specialSchedule);\n\n void addSpecialSchedule(SpecialSchedule specialSchedule);\n\n void deleteSpecialSchedule(SpecialSchedule specialSchedule);\n\n SpecialSchedule getSpecialSchedule(long hostelId, RoomType roomType, Date date);\n}", "title": "" }, { "docid": "024810652721fd2838dcc9408d518836", "score": "0.49680087", "text": "@Override\n @Transactional(readOnly = true)\n public List<PerSubmit> findAll() {\n log.debug(\"Request to get all PerSubmits\");\n return perSchedulerRepository.findAll();\n }", "title": "" }, { "docid": "3b6942294899af6b3768a4fa30d87c03", "score": "0.49651837", "text": "public static List<TaskTimeElement> findAll() {\r\n List<TaskTimeElement> ret = new ArrayList<TaskTimeElement>();\r\n String sql = null;\r\n Statement theStatement = null;\r\n Connection theConnection = null;\r\n ResultSet rs = null;\r\n\r\n try {\r\n theConnection = AdminConnectionManager.getConnection(ME + \".findAll\");\r\n theStatement = theConnection.createStatement();\r\n sql = \"SELECT ID\" +\r\n \",DURATION\" + \r\n \",TASKDATE\" + \r\n \",TASKNAME\" + \r\n \",USERNAME\" +\r\n \" FROM TASKTIMEELEMENT\" +\r\n \" WHERE ENABLED IS TRUE\" +\r\n (userName == null\r\n ? \"\"\r\n : (\" AND USERNAME='\" + DatabaseBase.encodeToSql(userName) + \"'\")) +\r\n \" ORDER BY TASKDATE,TASKNAME\";\r\n rs = theStatement.executeQuery(sql);\r\n TaskTimeElement object;\r\n while(rs.next()) {\r\n object = new TaskTimeElement();\r\n int i = 1;\r\n object.setId(rs.getLong(i++));\r\n object.setDuration(rs.getDouble(i++));\r\n object.setTaskDate(rs.getString(i++));\r\n object.setTaskName(rs.getString(i++));\r\n object.setUserName(rs.getString(i++));\r\n object.setEnabled(true);\r\n ret.add(object);\r\n }\r\n }\r\n catch (SQLException e) {\r\n Trace.error(\"sql=\" + sql, e);\r\n ret = null;\r\n }\r\n catch (Exception ex) {\r\n Trace.error(\"Exception\", ex);\r\n ret = null;\r\n }\r\n finally {\r\n if (rs != null) {\r\n try {\r\n rs.close();\r\n }\r\n catch (SQLException e) {}\r\n }\r\n if (theStatement != null) {\r\n try {\r\n theStatement.close();\r\n }\r\n catch (SQLException e) {}\r\n }\r\n if (theConnection != null)\r\n AdminConnectionManager.releaseConnection(theConnection);\r\n }\r\n return ret;\r\n }", "title": "" }, { "docid": "ee0566a222214d7a049e10d7655cb5ce", "score": "0.49604475", "text": "private void querys() {\n\t try {\r\n\t\tBoxYieldRptFactory.getRemoteInstance().SteDate();\r\n\t } catch (EASBizException e) {\r\n\t\t// TODO Auto-generated catch block\r\n\t\te.printStackTrace();\r\n\t } catch (BOSException e) {\r\n\t\t// TODO Auto-generated catch block\r\n\t\te.printStackTrace();\r\n\t }\r\n\t}", "title": "" }, { "docid": "d7351adc81ad97b43ce4d64bab2cb742", "score": "0.49594963", "text": "public List<ActividadEnSitio> obtenerTodasLasActividadesEnSitioDeUnTicket(Ticket ticket) {\n return this.actividadEnSitioFacade.obtenerTodasLasActividadesDeUnTicket(ticket);\n }", "title": "" }, { "docid": "412ec24d465d94e504320798a71b8c31", "score": "0.4949017", "text": "public List<ScheduleTransactionInfo> getScheduleTransactionsByRefObject(@WebParam(name = \"refObjectType\") String refObjectType,\n @WebParam(name = \"refObjectId\") String refObjectId,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "title": "" }, { "docid": "52b68129fec6c129278f7ffdf5571f67", "score": "0.49456263", "text": "public List<Reservation> findReservations(ReservableRoomId reservableRoomId) {\n\n return reservationRepository.findByReservableRoomReservableRoomIdOrderByStartTimeAsc(reservableRoomId);\n\n }", "title": "" }, { "docid": "5ab347dfaa157d06f9aa51e92504d4f3", "score": "0.49426383", "text": "@javax.annotation.Nullable\n @ApiModelProperty(value = \"A list containing a terminal ID and an action ID for each terminal that the action was scheduled for.\")\n\n public List<TerminalActionScheduleDetail> getItems() {\n return items;\n }", "title": "" }, { "docid": "428bd94b9d5f083e4821a68261b8143b", "score": "0.49376097", "text": "List<TransportEntity> getAllEntityOfQuery();", "title": "" }, { "docid": "8a8cf8d7030f99e7f726884975317284", "score": "0.49371645", "text": "@Test\n public void whenGetTickets_thenTickets()\n throws Exception {\n\n \tCollection<Ticket> ticket = new ArrayList<Ticket>();\n \tticket.add(new Ticket((long) 1, 4, 360, Constants.STATUS_WAITING, null, null));\n\n \tgiven(ticketService.findAllTickets()).willReturn(ticket);\n\n mvc.perform(MockMvcRequestBuilders.get(\"/api/tickets\")\n .contentType(MediaType.APPLICATION_JSON))\n .andExpect(MockMvcResultMatchers.status().isOk())\n .andExpect(MockMvcResultMatchers.content().json(\"[\\r\\n\" + \n \" {\\r\\n\" + \n \" \\\"id\\\": 1,\\r\\n\" + \n \" \\\"totalodd\\\": 4.0,\\r\\n\" + \n \" \\\"possiblegain\\\": 360.0,\\r\\n\" + \n \" \\\"status\\\": 0\\r\\n\" + \n \" }\\r\\n\" + \n \"]\"));\n }", "title": "" }, { "docid": "9f2ba79a8a53abc2787dc0c687b52a04", "score": "0.49270833", "text": "public List<HrJBorrowcontract> findAll();", "title": "" }, { "docid": "f628975e06119424a9ec914cc3110005", "score": "0.4924308", "text": "public List<ScheduledTask> getAllPendingTasksByUser(int userId) {\n \t\tSet<String> smembers = jedisConn.smembers(USER_TASKS(String.valueOf(userId)));\n \t\tList<ScheduledTask> alltasks = new ArrayList<>();\n \t\tGson gson = new Gson();\n \t\t// for each user task id, get the actual task \n \t\tfor (String member : smembers) {\n \t\t\tString string = jedisConn.get(PENDING_TASK(member));\n \t\t\tScheduledTask task = gson.fromJson(string, ScheduledTask.class);\n \t\t\talltasks.add(task);\n \t\t}\n \t\treturn alltasks;\n \t}", "title": "" }, { "docid": "ad0401c4f73c3029b76067513ad71ddd", "score": "0.4920253", "text": "@Override\r\n\tpublic List<Courseschedule> getCourseschedulesByClassroomId(int classroomId) {\n\t\tsession = sessionFactory.openSession();\r\n\t\tTransaction tran = session.beginTransaction();\r\n\t\tString hql = \"from Courseschedule where classroomId=:classroomId and state=:state\";\t\t\r\n\t\tList<Courseschedule> lists = session.createQuery(hql).setInteger(\"classroomId\", classroomId).setInteger(\"state\", 0).list();\r\n\t\ttran.commit();\r\n\t\tsession.close();\r\n\t\tlogger.debug(\"use the method named :getCourseschedulesByClassroomId(int classroomId)\");\r\n\t\tif (lists.size() > 0) {\r\n\t\t\treturn lists;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "bc054e9580e67322cdbc7c705b71d5d3", "score": "0.49161264", "text": "public ArrayList<Schedule> getBuddiesSchedules() {\n\n return new ArrayList<Schedule>(buddies);\n }", "title": "" }, { "docid": "08a6e30388693131181ab36e7bd5f66d", "score": "0.49161112", "text": "protected void listSchedules(Calendar calendar) {\n List<Schedule> schedules = calendar.getSchedules();\n List<String> list = new ArrayList<>();\n\n for (Schedule schedule : schedules) {\n list.add(schedule.getName());\n }\n listItem(list);\n }", "title": "" }, { "docid": "01e538b520f7e2f7599094094682d649", "score": "0.49103817", "text": "public List<EstadoTicket> obtenerTodosLosEstados() {\n return this.estadoTicketFacade.findAll();\n }", "title": "" }, { "docid": "25ead0a611c47edc0c05b4aa765248c9", "score": "0.49070737", "text": "@Override\r\n\tpublic List<OaJybChronicle> GetChronicleByTime(Date event_time,int stuid) {\n\t\treturn oaJybChronicleMapper.GetChronicleByTime(event_time,stuid);\r\n\t}", "title": "" }, { "docid": "93d6ccd4d1a7159bb7e822161c0598b6", "score": "0.4891422", "text": "List<Task> getAllTasks();", "title": "" }, { "docid": "1715f07478086e1c5d878c5f50a47bc2", "score": "0.48889127", "text": "public List<UserRace> selectAllSchedule() {\n\t\tString sql = \"select \" + COLUMNS + \" FROM UserRace WHERE mode = '\"\n\t\t\t\t+ UserRace.MODE_SCHEDULE + \"'\";\n\t\treturn getJdbcTemplate().query(sql, new UserRaceRowMapper());\n\t}", "title": "" }, { "docid": "f87731da40ca0fd306afac25ab2ea058", "score": "0.4888088", "text": "public List<ScheduleBatchInfo> searchForScheduleBatches(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "title": "" }, { "docid": "3d1d9714262217773e055cefb96f2100", "score": "0.48860893", "text": "List<Trade> getAllTrades();", "title": "" }, { "docid": "6fd5173cc22adc78457bf6ba5efd3d51", "score": "0.48844525", "text": "public List<ScheduleTransactionGroupInfo> searchForScheduleTransactionGroups(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "title": "" }, { "docid": "96c57df39a28b7e9d347910ce00c618d", "score": "0.4883359", "text": "@GET\n @Produces(MediaType.APPLICATION_JSON)\n @RolesAllowed({\"admin\", \"simple\"})\n public List<Task> listAll(@Context UriInfo uriInfo) {\n Long projectId = (uriInfo.getPathSegments().size() != 1?\n Long.valueOf(uriInfo.getPathSegments().get(1).getPath())\n :null);\n\n List<Task> results;\n\n if (projectId != null) {\n results = em.createQuery(\"SELECT t FROM Task t INNER JOIN t.project p WHERE p.id = :projId\", Task.class)\n .setParameter(\"projId\", projectId)\n .getResultList();\n } else {\n results = em.createQuery(\"SELECT t FROM Task t\", Task.class).getResultList();\n }\n\n return results;\n }", "title": "" }, { "docid": "5f4e9e07e7ccce98d10189f6d4b58022", "score": "0.48774892", "text": "public java.lang.String CC_GetJobTickets(java.lang.String accessToken, java.lang.String accessCode) throws java.rmi.RemoteException;", "title": "" } ]
8a6057852aaa3d1779b341b4678da9d1
/ access modifiers changed from: 0000
[ { "docid": "5eacb901ee259d8cf6a93a8a766eedd6", "score": "0.0", "text": "public void startListening() {\n ContentProviderClient acquireContentProviderClient = SliceViewManagerBase.this.mContext.getContentResolver().acquireContentProviderClient(this.mUri);\n if (acquireContentProviderClient != null) {\n acquireContentProviderClient.release();\n SliceViewManagerBase.this.mContext.getContentResolver().registerContentObserver(this.mUri, true, this.mObserver);\n tryPin();\n }\n }", "title": "" } ]
[ { "docid": "6394149f71e2badaa8c3d9a23f9ef7d5", "score": "0.6418208", "text": "public abstract zzcci mo29233h();", "title": "" }, { "docid": "6db5017cea06afe0d428b6c46aabff63", "score": "0.6376053", "text": "protected void m9470U() {\n }", "title": "" }, { "docid": "a893b67c2a0cd427a790a85ad670599a", "score": "0.6310625", "text": "private interface C2503a {\n }", "title": "" }, { "docid": "f9aea8ce976b697ab22b6d9103ef3a08", "score": "0.6290179", "text": "public abstract void mo80739b();", "title": "" }, { "docid": "c13e6a1b7c130afa9fb0f34225bea4ef", "score": "0.628587", "text": "protected void mo1555b() {\n }", "title": "" }, { "docid": "330fb60652277f643854b081333e4df2", "score": "0.626623", "text": "protected abstract void mo6248a();", "title": "" }, { "docid": "a87c43099c87c7b50da24dcb747ae283", "score": "0.62556124", "text": "protected int userDefinedWritabilityIndex()\r\n/* 57: */ {\r\n/* 58:160 */ return 3;\r\n/* 59: */ }", "title": "" }, { "docid": "35b8673dbcbbe06337feb0efd87215f6", "score": "0.6181731", "text": "public abstract void mo7192B();", "title": "" }, { "docid": "fcf4355a5feab36e48ce9ed6310aed4a", "score": "0.61646396", "text": "public abstract void mo9806E();", "title": "" }, { "docid": "db28d9f961c58487b1ec98583b1dc4dc", "score": "0.6159207", "text": "public abstract String mo104248b();", "title": "" }, { "docid": "679c94b1e01bbf172a6ebbded5e039b3", "score": "0.61530906", "text": "public abstract zzcbp mo29235j();", "title": "" }, { "docid": "8405ee59e76eda06666fe42c0ee93f3a", "score": "0.6143532", "text": "public abstract void mo12044a();", "title": "" }, { "docid": "e16d41ea385156816d3f3e3e31badebd", "score": "0.61248916", "text": "private void m52678v() {\n }", "title": "" }, { "docid": "e09b30e8a933ffca8b6063a9da1af241", "score": "0.6123216", "text": "public final void mo23307a() {\n }", "title": "" }, { "docid": "b50b5e630b3d00009508740cd63af71e", "score": "0.6086987", "text": "public void mo1322b() {\n }", "title": "" }, { "docid": "ec76ff8d70ced9d8135ad33b23353b4d", "score": "0.60792255", "text": "@Override\r\n\t\t\tpublic void adelante() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "68a03b4fb0a70f596346ef001f370a37", "score": "0.60694444", "text": "public abstract zzccr mo29234i();", "title": "" }, { "docid": "5064b9f7bb092885c11fdb8919305855", "score": "0.6052313", "text": "public int zzbl() {\n throw new UnsupportedOperationException();\n }", "title": "" }, { "docid": "4a048a095dbc88929733b0a0fcf29741", "score": "0.604461", "text": "public void mo21407a() {\n }", "title": "" }, { "docid": "d69cc72ca135fbe9abaa96810446c755", "score": "0.6040428", "text": "public abstract int mo45907b();", "title": "" }, { "docid": "d69cc72ca135fbe9abaa96810446c755", "score": "0.6040428", "text": "public abstract int mo45907b();", "title": "" }, { "docid": "aa7554fd42f3feb35ca8e0c43fe0ccc3", "score": "0.6015066", "text": "private L() {\n\t\t\n\t}", "title": "" }, { "docid": "8b7f87c22e268a87686c66398c2c442b", "score": "0.6014328", "text": "@Override\r\n\t\t\tpublic void atras() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "f95e24981675e675121146f90a85bfe2", "score": "0.5999977", "text": "protected abstract void mo3673S();", "title": "" }, { "docid": "7839d9b18f833d7ad1ccae8536c829da", "score": "0.5995869", "text": "@Override\r\n\tpublic void zielone_swiatlo() {\n\t\t\r\n\t}", "title": "" }, { "docid": "51a817a60e6a4d94bc20edad232811be", "score": "0.5982627", "text": "public abstract int mo110474a();", "title": "" }, { "docid": "488a6a7cb952a5be064ad2f1cac55a87", "score": "0.59822917", "text": "public final void mo103168c() {\n }", "title": "" }, { "docid": "9146a33a3c494f5e7eeeba114c58427f", "score": "0.5981107", "text": "public abstract void mo37602PA();", "title": "" }, { "docid": "af70f420bd21981aa44db6516064224d", "score": "0.5973663", "text": "@Override\n\tpublic int berechnen() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "e99f9e89bc2ef6787eff36a5234d0ee6", "score": "0.59679484", "text": "@Override\r\n\tpublic int name1() {\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "a4e9dd51e0043dd4f1396223cdcc8177", "score": "0.59674835", "text": "public void mo61769a() {\n }", "title": "" }, { "docid": "2cc97f340071c93ab12395f2981731ee", "score": "0.5955157", "text": "public void mo25307b() {\n }", "title": "" }, { "docid": "b2d1f04c205d39b8a7cefab7ac22355a", "score": "0.5949303", "text": "public final void mo12136b() {\n }", "title": "" }, { "docid": "8bf8511f65e0c2b04c8bd3242cfd3d0d", "score": "0.5930684", "text": "public void mo25201a() {\n }", "title": "" }, { "docid": "57d8be5fb0255bb4b8bb4fb9d505f332", "score": "0.5921407", "text": "protected int getSuperClassAccessOptChildPosition() {\n return 1;\n }", "title": "" }, { "docid": "504d2238beac03eb061ba3231d22529f", "score": "0.5917726", "text": "public abstract void mo80738a();", "title": "" }, { "docid": "ae349026ad05b0266cea5bef304b75cf", "score": "0.59099454", "text": "public abstract void mo16689a();", "title": "" }, { "docid": "e264aa75163aaccea6abaa16f79807ba", "score": "0.5898793", "text": "public void mo1321a() {\n }", "title": "" }, { "docid": "389de751fe036ebbd3d13315a36df5d4", "score": "0.5898599", "text": "private defpackage.Oo0OOo<T> O00000oO() throws java.lang.Exception {\r\n /*\r\n r5 = this;\r\n r0 = 0;\t Catch:{ all -> 0x002f }\r\n return r0;\t Catch:{ all -> 0x002f }\r\n */\r\n throw new UnsupportedOperationException(\"Method not decompiled: defpackage.O0Oo00.O00000oO():Oo0OOo\");\r\n }", "title": "" }, { "docid": "ec5916a797ccf1e5c80b7380f2bf7b6f", "score": "0.5897746", "text": "public abstract C5726a mo7167a();", "title": "" }, { "docid": "d04e2b419d4cd19da0b67cd00d095d6a", "score": "0.58963317", "text": "public final void mo103164a() {\n }", "title": "" }, { "docid": "9c84446c336efdd09d8d8ad4c72ee27d", "score": "0.58931977", "text": "public final void mo103167b() {\n }", "title": "" }, { "docid": "44cfdc4d8ee11c0906019debae6e3c86", "score": "0.5886246", "text": "private Fields() {\n\t\t\tsuper();\n\t\t}", "title": "" }, { "docid": "6e9879c1eb3d4a89ee98a281b0caf5a8", "score": "0.58842087", "text": "public void O000000o() {\r\n }", "title": "" }, { "docid": "b68594b269d83e62bddc2a7a55cdf9a2", "score": "0.58762234", "text": "public interface C0119d {\n}", "title": "" }, { "docid": "af1b19a1b7be014524c807fdb1806a0f", "score": "0.5875635", "text": "public abstract C13321t mo32978b();", "title": "" }, { "docid": "6da68b604f18d03771f0c13cf44f8683", "score": "0.58706236", "text": "public abstract void mo13154a();", "title": "" }, { "docid": "16edf37955445bd0ac5902f06fbb88f4", "score": "0.58691174", "text": "public abstract void mo27350a();", "title": "" }, { "docid": "6754e3c59cdbcf8e0fbf4425d92fdf68", "score": "0.58535147", "text": "public interface C44908b {\n}", "title": "" }, { "docid": "620c5b4cc922e93ee7d93f067c83149c", "score": "0.5852226", "text": "private GConstent() {\n\t}", "title": "" }, { "docid": "00ea652063e4bb0cef8bf718dcf71f5e", "score": "0.5850765", "text": "protected abstract int mo4139a(C2952d c2952d);", "title": "" }, { "docid": "7f68cebe088aa11562826756b7b2f6ca", "score": "0.5831895", "text": "public abstract void mo9808G();", "title": "" }, { "docid": "e999dcb562479021d223d56830295a36", "score": "0.58226424", "text": "private NonIndexableKey() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 0073 in method: android.provider.SearchIndexablesContract.NonIndexableKey.<init>():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.provider.SearchIndexablesContract.NonIndexableKey.<init>():void\");\n }", "title": "" }, { "docid": "a25fbde778f52f59f990aa0572948f86", "score": "0.58154446", "text": "private ClassOffsetTable() {\n\n }", "title": "" }, { "docid": "af94f9ddfa4b0518e1f432b674b4b231", "score": "0.5809166", "text": "public abstract void mo24447j();", "title": "" }, { "docid": "286c2942feca85c40bae893fbabe8739", "score": "0.5807545", "text": "public accessN30() {\n }", "title": "" }, { "docid": "cff57c1483b91c660ecc4e4f13122960", "score": "0.5803352", "text": "public int method_2514() {\r\n return 0;\r\n }", "title": "" }, { "docid": "3b72c0acdd6dc280477e421c05a58b28", "score": "0.58020216", "text": "public void setPublic()\n {\n setAccess(ACC_PUBLIC);\n }", "title": "" }, { "docid": "98dd411045fd2d1d89b5a730ede72786", "score": "0.5801943", "text": "public void mo3758a() {\n }", "title": "" }, { "docid": "070e1adb9bfd59cb643407a2dabe9b7a", "score": "0.58016336", "text": "private void hinzufügen() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c548b9a664a55dc74028b1bf997c9fcd", "score": "0.5798859", "text": "void mo40679c();", "title": "" }, { "docid": "cd909140cd38511d45f1579abffeb281", "score": "0.57921934", "text": "@Override \r\n int overriddenMethod() { return 0; }", "title": "" }, { "docid": "5352b8a6350c3be17ba32c96a36e8e1b", "score": "0.57877964", "text": "default int getAccess() {\n return GUI_ACCESS_NONE;\n }", "title": "" }, { "docid": "f012b84c45235909d5c121ba5e08bb64", "score": "0.57845217", "text": "public abstract void mo56181a();", "title": "" }, { "docid": "f8b0af74d81481c99923930c98cdfa3c", "score": "0.57800436", "text": "public abstract void mo9807F();", "title": "" }, { "docid": "03a8e43bd34015a82b6c803265b49da5", "score": "0.57782596", "text": "C20675b mo38947d();", "title": "" }, { "docid": "fd7065cf8b57d5af6c625bd970ab007d", "score": "0.57749426", "text": "@Override\n\tpublic void ostype() {\n\t\tSystem.out.println(\"highly modifyed\");\n\t\t\n\t}", "title": "" }, { "docid": "6ca1d67fb8a7d7326b7561de7fbd1df7", "score": "0.5774398", "text": "public abstract int mo19775a();", "title": "" }, { "docid": "469c90392fb12e4553574135278541f5", "score": "0.57692665", "text": "@Override\n\tpublic void attck() {\n\t\t\n\t}", "title": "" }, { "docid": "8d1e22ef1f0126c5ca5498d82b5c7510", "score": "0.5767433", "text": "public Integer mo13158c() {\n throw new UnsupportedOperationException();\n }", "title": "" }, { "docid": "679e990acce6f0e82c0644174cb93cb1", "score": "0.57641685", "text": "public abstract boolean mo9804C();", "title": "" }, { "docid": "ca8810b32ef8e0b0720c4d572b2a3c5e", "score": "0.57514834", "text": "public abstract void mo130958o();", "title": "" }, { "docid": "da5806a74b9696317963ac89993cfee5", "score": "0.5748738", "text": "public interface C0191b {\n}", "title": "" }, { "docid": "c795e1dc39b3e968bafb4050f93fbd17", "score": "0.574665", "text": "public A357586() {\n super(0, new A002467(), 1);\n }", "title": "" }, { "docid": "cf295e86856abd74e859e14e65effaa8", "score": "0.57463974", "text": "private Flags() {}", "title": "" }, { "docid": "82ab90ffadf9b8d43e60c8510a33beba", "score": "0.5739404", "text": "@Override\r\n\tpublic void morirse() {\n\t\t\r\n\t}", "title": "" }, { "docid": "d2943418684c57f5722c53696e5f27f8", "score": "0.57359856", "text": "private interface C0423a {\n void a();\n }", "title": "" }, { "docid": "99a141704693e44b61be5111b307284a", "score": "0.5733878", "text": "protected Material o()\r\n/* 130: */ {\r\n/* 131:131 */ this.O = 2;\r\n/* 132:132 */ return this;\r\n/* 133: */ }", "title": "" }, { "docid": "99e7e966c51a5579d91ee2abe7cf310c", "score": "0.5730568", "text": "public abstract String method_5963();", "title": "" }, { "docid": "af0e25461a2ebe41362dd671e070a209", "score": "0.57285047", "text": "public abstract void mo14452a();", "title": "" }, { "docid": "53a0f8e8ce73c95d9b43dd6bc0575386", "score": "0.57276654", "text": "public void mo3340a() {\n }", "title": "" }, { "docid": "e3110a393bd4b870b4055aa9ed6efd87", "score": "0.57274795", "text": "@Override\n\tpublic void attaquer() {\n\t\t\n\t}", "title": "" }, { "docid": "6b30c8bb29c31a4b6f61d4b6dffb9e0a", "score": "0.5725754", "text": "public void method_2917() {\r\n super.method_2917();\r\n this.field_2333 = 16;\r\n this.method_2974(class_872.field_4245);\r\n }", "title": "" }, { "docid": "5520fa8fd096c36a6bd8fad3ab1e56d3", "score": "0.57179433", "text": "public final void mo2558ro() {\n }", "title": "" }, { "docid": "0deca4cc394959831b516794861322a5", "score": "0.5717365", "text": "public void setPrivate()\n {\n setAccess(ACC_PRIVATE);\n }", "title": "" }, { "docid": "b650d82d599ab1217e037357da86da5e", "score": "0.571551", "text": "@Override\r\n\t\tpublic void coding() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "e2e5635edb032da8328081619452900c", "score": "0.57129973", "text": "public final void mo1370a() {\n }", "title": "" }, { "docid": "9b56e05d631b1ea925ea2c139ee709ad", "score": "0.5706542", "text": "@Override\n\tpublic void adim7() {\n\n\t}", "title": "" }, { "docid": "cf91bec345d321b805b1fd99d0d58149", "score": "0.57025355", "text": "public static void assertPublicAccess() {\n }", "title": "" }, { "docid": "324499c463972056fb47f480b0a770dc", "score": "0.5701364", "text": "@Override\r\n\tpublic void m7() {\n\t\t\r\n\t}", "title": "" }, { "docid": "1acc57d42c31dee937ac33ea6f2a5b0b", "score": "0.5684637", "text": "@Override\r\n\tpublic void comer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "19c2c93e7e91bdee5756bdb7665b3b20", "score": "0.56837463", "text": "public final void mo1370a() {\n }", "title": "" }, { "docid": "19c2c93e7e91bdee5756bdb7665b3b20", "score": "0.56837463", "text": "public final void mo1370a() {\n }", "title": "" }, { "docid": "b2a7d9f122d851ed413fd66ce4af5025", "score": "0.56834495", "text": "abstract ab mo3630a();", "title": "" }, { "docid": "decf794f633b69cf34c530df64080d07", "score": "0.56823486", "text": "public abstract void mo87642a();", "title": "" }, { "docid": "89915ce2e1513c09a4c547508a368fe6", "score": "0.56791127", "text": "public void mo85679a() {\n }", "title": "" }, { "docid": "0b5b11f4251ace8b3d0f5ead186f7beb", "score": "0.56781054", "text": "@Override\n\tpublic void comer() {\n\t\t\n\t}", "title": "" }, { "docid": "0b5b11f4251ace8b3d0f5ead186f7beb", "score": "0.56781054", "text": "@Override\n\tpublic void comer() {\n\t\t\n\t}", "title": "" }, { "docid": "0eed4a05230ce42abb3ad3c9a90302d6", "score": "0.5671352", "text": "public abstract CharSequence mo3228b();", "title": "" }, { "docid": "ade6c120077c07166a63e34c3670b300", "score": "0.56703764", "text": "protected abstract T mo401a(C0489c c0489c);", "title": "" }, { "docid": "e5fa0eebc721dea67da872fd14413bc7", "score": "0.5669678", "text": "@Override\n\tpublic void formule() {\n\t\t\n\t}", "title": "" } ]
c61a1d725b2105d7cf8146f8b7987457
repeated .Server2Client.RetrieveFileResponse.ChunkPossiblePosition chunkPossiblePosition = 3;
[ { "docid": "9261fab5998a090022d7755d29211cbf", "score": "0.5337438", "text": "@java.lang.Override\n public java.util.List<edu.usfca.cs.dfs.proto.Message.Server2Client.RetrieveFileResponse.ChunkPossiblePosition> getChunkPossiblePositionList() {\n return chunkPossiblePosition_;\n }", "title": "" } ]
[ { "docid": "2aa4d2e1c7c30527463a21b24a94701f", "score": "0.70000356", "text": "edu.usfca.cs.dfs.proto.Message.Server2Client.RetrieveFileResponse.ChunkPossiblePosition getChunkPossiblePosition(int index);", "title": "" }, { "docid": "fde2663ab0177a32355a758ef827b13a", "score": "0.66012824", "text": "alluxio.grpc.Chunk getChunk();", "title": "" }, { "docid": "a4c3b91ab8316eea8c31333696f0a442", "score": "0.63277376", "text": "edu.usfca.cs.dfs.proto.Message.Server2Client.RetrieveFileResponse.ChunkPossiblePositionOrBuilder getChunkPossiblePositionOrBuilder(\n int index);", "title": "" }, { "docid": "8fb129352260b51050fcdbf77f995024", "score": "0.6190401", "text": "@Test(timeout = 1000 * 60)\n public void readPartialFile() throws Exception {\n long length = ((GrpcDataReaderTest.CHUNK_SIZE) * 1024) + ((GrpcDataReaderTest.CHUNK_SIZE) / 3);\n long offset = 10;\n long checksumStart = 100;\n long bytesToRead = length / 3;\n try (DataReader reader = create(offset, length)) {\n long checksum = setReadResponses(mClient, length, checksumStart, (bytesToRead - 1));\n long checksumActual = checkChunks(reader, checksumStart, bytesToRead);\n Assert.assertEquals(checksum, checksumActual);\n }\n validateReadRequestSent(mClient, offset, length, true, GrpcDataReaderTest.CHUNK_SIZE);\n }", "title": "" }, { "docid": "47b249022f9068650a79fa2be3d8a9d5", "score": "0.61646867", "text": "edu.usfca.cs.dfs.proto.Message.Node2Client.RetrieveChunkRespond getRetrieveChunkRespond();", "title": "" }, { "docid": "7f1cbf5300c10393adfd2d75e3384916", "score": "0.61592174", "text": "edu.usfca.cs.dfs.proto.Message.Node2Client.RetrieveChunkRespondOrBuilder getRetrieveChunkRespondOrBuilder();", "title": "" }, { "docid": "4e67e191b71c95d205fc3daa5cc7b668", "score": "0.61457956", "text": "boolean getIsFirstChunkResponse();", "title": "" }, { "docid": "310647023a0dac927f898947f52ea126", "score": "0.6102235", "text": "alluxio.grpc.ChunkOrBuilder getChunkOrBuilder();", "title": "" }, { "docid": "02cf60f48d39c19d05a036c40c5e9752", "score": "0.60724556", "text": "public edu.usfca.cs.dfs.proto.Message.Server2Client.RetrieveFileResponse.ChunkPossiblePosition.Builder addChunkPossiblePositionBuilder() {\n return getChunkPossiblePositionFieldBuilder().addBuilder(\n edu.usfca.cs.dfs.proto.Message.Server2Client.RetrieveFileResponse.ChunkPossiblePosition.getDefaultInstance());\n }", "title": "" }, { "docid": "197b152de9b99b4dcb37321e6b5985d4", "score": "0.6041598", "text": "com.google.protobuf.ByteString getChunk();", "title": "" }, { "docid": "197b152de9b99b4dcb37321e6b5985d4", "score": "0.6041598", "text": "com.google.protobuf.ByteString getChunk();", "title": "" }, { "docid": "197b152de9b99b4dcb37321e6b5985d4", "score": "0.6041598", "text": "com.google.protobuf.ByteString getChunk();", "title": "" }, { "docid": "0e1e220646c17dcbcb7614a395b689a0", "score": "0.60380834", "text": "edu.usfca.cs.dfs.proto.Message.Client2Node.RetrieveChunkRequest getRetrieveChunkRequest();", "title": "" }, { "docid": "1309e6426119fda665651fa5d6d183fb", "score": "0.601235", "text": "java.util.List<edu.usfca.cs.dfs.proto.Message.Server2Client.RetrieveFileResponse.ChunkPossiblePosition> \n getChunkPossiblePositionList();", "title": "" }, { "docid": "d9d1ae582009659c9ffaef2b775233d8", "score": "0.6007233", "text": "@java.lang.Override\n public boolean hasRetrieveChunkRequest() {\n return msgCase_ == 2;\n }", "title": "" }, { "docid": "43c5ae039e99e917b344776198c944a9", "score": "0.60060203", "text": "java.util.List<? extends edu.usfca.cs.dfs.proto.Message.Server2Client.RetrieveFileResponse.ChunkPossiblePositionOrBuilder> \n getChunkPossiblePositionOrBuilderList();", "title": "" }, { "docid": "cb54da18b6b2441f4e439cc79140f595", "score": "0.59637994", "text": "public int getChunkSize();", "title": "" }, { "docid": "a811383a972138500a6d0b5d7931a6b5", "score": "0.5936749", "text": "edu.usfca.cs.dfs.proto.Message.Node2Server.RetrieveChunkRequest getRetrieveChunkRequest();", "title": "" }, { "docid": "eb28be2a312894b655c09e90ca2ad0db", "score": "0.59109604", "text": "@java.lang.Override\n public boolean hasRetrieveChunkRequest() {\n return msgCase_ == 2;\n }", "title": "" }, { "docid": "c77ed8fb03a20f9d6dac31111a8dbfa1", "score": "0.58869594", "text": "@Override\n protected FileInfo downFilePartial(String url,File dFile,byte[] buffer)throws Throwable {\n if(mRealUrl != null){\n url = mRealUrl;\n }\n if(mOrigalUrl == null){\n mOrigalUrl = url;\n }\n HttpURLConnection conn = Utils.open(url,this.mImpl.getHttpDNS());\n conn.setRequestMethod(\"GET\");\n //先禁gzip测试\n // conn.setDoOutput(true);// 是否输入参数\n // conn.setRequestMethod(\"POST\");\n long start = dFile.length();\n if (start > 0) {\n conn.setRequestProperty(\"Range\", \"bytes=\" + start + \"-\" + (start + DOWNLOAD_SIZE - 1));\n } else {\n start = 0;\n conn.setRequestProperty(\"Range\", \"bytes=\" + start + \"-\" + (start + DOWNLOAD_SIZE - 1));\n }\n\n\n // conn.setInstanceFollowRedirects(true);\n conn.connect();\n\n statusCode = conn.getResponseCode();\n\n if (statusCode == HttpURLConnection.HTTP_MOVED_TEMP\n || statusCode == HttpURLConnection.HTTP_MOVED_PERM) {\n mRealUrl = null;\n return downFilePartial(conn.getHeaderField(\"Location\"), dFile, buffer);\n }\n\n if (statusCode == HttpURLConnection.HTTP_OK) {\n length = conn.getContentLength();\n start = 0;\n } else if (statusCode == HttpURLConnection.HTTP_PARTIAL) {\n parseRange(conn.getHeaderField(\"Content-Range\"));\n }\n\n mRealUrl = url;\n\n lastModified = conn.getLastModified();\n fileName = parserFileName(conn.getHeaderField(\"Content-Disposition\"));\n\n //if(response.getStatusLine().getStatusCode() == HttpStatus.SC_OK){\n if (statusCode == HttpURLConnection.HTTP_OK\n || statusCode == HttpURLConnection.HTTP_PARTIAL) {\n // final HttpEntity entity = response.getEntity();\n // final long length = entity.getContentLength();\n // InputStream _in = entity.getContent();\n\n // final int length = conn.getContentLength();\n\n OutputStream _out = new FileOutputStream(dFile, true);\n\n InputStream _in = conn.getInputStream();\n\n final boolean isGZIP = _in instanceof GZIPInputStream;\n GZIPInputStream _zin = null;\n if (isGZIP) {\n _zin = (GZIPInputStream) _in;\n }\n\n int count = 0;\n long total = start;\n while ((count = _in.read(buffer)) != -1) {\n _out.write(buffer, 0, count);\n\n // System.out.println(\"1 progress:\"+total+\"\\ttotal:\"+length);\n if (isGZIP) {\n total += getLen(_zin);\n } else {\n total += count;\n }\n mListener.progress(total, length);\n }\n _in.close();\n }\n return new FileInfo(mOrigalUrl,dFile, fileName,lastModified,length);\n }", "title": "" }, { "docid": "d9a8043a7ccfaed1dcfb20ae16ae84bf", "score": "0.5878478", "text": "@Test\n void testChunkedRequestFollowedByAnother() throws Exception {\n support.defineResource(\"/chunkedServlet\", new PseudoServlet() {\n @Override\n public WebResource getPostResponse() {\n return new WebResource(super.getBody(), \"text/plain\");\n }\n });\n\n SocketConnection conn = new SocketConnection(\"localhost\", getHostPort());\n conn.startChunkedResponse(\"POST\", \"/chunkedServlet\");\n conn.sendChunk(\"This \");\n conn.sendChunk(\"is \");\n conn.sendChunk(\"chunked.\");\n SocketConnection.SocketResponse response = conn.getResponse();\n assertEquals(\"This is chunked.\", new String(response.getBody()), \"retrieved body\");\n\n // Make a second request to duplicate the problem...\n conn.startChunkedResponse(\"POST\", \"/chunkedServlet\");\n conn.sendChunk(\"This \");\n conn.sendChunk(\"is \");\n conn.sendChunk(\"also (and with a greater size) \");\n conn.sendChunk(\"chunked.\");\n SocketConnection.SocketResponse response2 = conn.getResponse();\n assertEquals(\"This is also (and with a greater size) chunked.\", new String(response2.getBody()),\n \"retrieved body\");\n }", "title": "" }, { "docid": "802500ced2b0e920d42721b3441ffe9b", "score": "0.58709884", "text": "@java.lang.Override\n public boolean hasRetrieveChunkRequest() {\n return msgCase_ == 4;\n }", "title": "" }, { "docid": "12ee2188e542a11bf7d051bb6b0561e2", "score": "0.58502924", "text": "public edu.usfca.cs.dfs.proto.Message.Server2Client.RetrieveFileResponse.ChunkPossiblePosition getChunkPossiblePosition(int index) {\n if (chunkPossiblePositionBuilder_ == null) {\n return chunkPossiblePosition_.get(index);\n } else {\n return chunkPossiblePositionBuilder_.getMessage(index);\n }\n }", "title": "" }, { "docid": "831a5a869f8aa5c76b1015e8032d0453", "score": "0.58488315", "text": "@java.lang.Override\n public edu.usfca.cs.dfs.proto.Message.Server2Client.RetrieveFileResponse.ChunkPossiblePosition getChunkPossiblePosition(int index) {\n return chunkPossiblePosition_.get(index);\n }", "title": "" }, { "docid": "5cc3728aa28d6ee6668f7ef95c08512b", "score": "0.5834168", "text": "edu.usfca.cs.dfs.proto.Message.Client2Node.RetrieveChunkRequestOrBuilder getRetrieveChunkRequestOrBuilder();", "title": "" }, { "docid": "80c1190f4c6977b624f95dbc148ee1d2", "score": "0.5823404", "text": "@java.lang.Override\n public boolean hasRetrieveChunkRespond() {\n return msgCase_ == 1;\n }", "title": "" }, { "docid": "ee0111b2e54c41d70cd671d2bcaca94a", "score": "0.5817824", "text": "boolean hasRetrieveChunkRespond();", "title": "" }, { "docid": "961766b18b1abe63696c935bd7c92eee", "score": "0.57828486", "text": "@java.lang.Override\n public boolean hasRetrieveChunkRequest() {\n return msgCase_ == 4;\n }", "title": "" }, { "docid": "b769a6202625032e01545dc7f1838bc5", "score": "0.57825446", "text": "@java.lang.Override\n public edu.usfca.cs.dfs.proto.Message.Server2Client.RetrieveFileResponse.ChunkPossiblePositionOrBuilder getChunkPossiblePositionOrBuilder(\n int index) {\n return chunkPossiblePosition_.get(index);\n }", "title": "" }, { "docid": "37d2588f382046632b6b0241daf544c5", "score": "0.5773232", "text": "@Test\n public void testEOF() throws IOException {\n\n int remainder = 149;\n long fileLength = BAM_FILE.length();\n long startPosition = fileLength - remainder;\n int length = 1000;\n\n\n byte[] buffer = new byte[length];\n SeekableStream bufferedStream = new IGVSeekableBufferedStream(new SeekableHTTPStream(HttpUtils.createURL(BAM_URL_STRING)));\n bufferedStream.seek(startPosition);\n int bytesRead = bufferedStream.read(buffer, 0, length);\n assertEquals(remainder, bytesRead);\n\n // Subsequent reads should return -1\n bytesRead = bufferedStream.read(buffer, 0, length);\n assertEquals(-1, bytesRead);\n }", "title": "" }, { "docid": "6038212ad8477c6e1e6aafbec543b64f", "score": "0.5770028", "text": "public edu.usfca.cs.dfs.proto.Message.Server2Client.RetrieveFileResponse.ChunkPossiblePositionOrBuilder getChunkPossiblePositionOrBuilder(\n int index) {\n if (chunkPossiblePositionBuilder_ == null) {\n return chunkPossiblePosition_.get(index); } else {\n return chunkPossiblePositionBuilder_.getMessageOrBuilder(index);\n }\n }", "title": "" }, { "docid": "f545a01ab69d7c5c13888bb2207612f7", "score": "0.57492256", "text": "@Test(timeout = 1000 * 60)\n public void fileLengthUnknown() throws Exception {\n long lengthActual = ((GrpcDataReaderTest.CHUNK_SIZE) * 1024) + ((GrpcDataReaderTest.CHUNK_SIZE) / 3);\n long checksumStart = 100;\n long bytesToRead = lengthActual / 3;\n try (DataReader reader = create(0, Long.MAX_VALUE)) {\n long checksum = setReadResponses(mClient, lengthActual, checksumStart, (bytesToRead - 1));\n long checksumActual = checkChunks(reader, checksumStart, bytesToRead);\n Assert.assertEquals(checksum, checksumActual);\n }\n validateReadRequestSent(mClient, 0, Long.MAX_VALUE, true, GrpcDataReaderTest.CHUNK_SIZE);\n }", "title": "" }, { "docid": "d03102e506efc59385f3716798381105", "score": "0.57384974", "text": "@java.lang.Override\n public boolean hasRetrieveChunkRespond() {\n return msgCase_ == 1;\n }", "title": "" }, { "docid": "45c54d9a4d4d31a1566e793db1395978", "score": "0.5682156", "text": "edu.usfca.cs.dfs.proto.Message.Node2Server.RetrieveChunkRequestOrBuilder getRetrieveChunkRequestOrBuilder();", "title": "" }, { "docid": "aa6251e1d755e3f9ca588e92430963ca", "score": "0.56774205", "text": "private RetrieveChunkRespond(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "title": "" }, { "docid": "c98cb3f672825844e3f1c409fa5d77f1", "score": "0.56578577", "text": "public int getChunkSize() { return chunkSize; }", "title": "" }, { "docid": "9fdd0c5dc83795e6a3316039ef55ac27", "score": "0.5654394", "text": "com.google.protobuf.ByteString getChunkBytes();", "title": "" }, { "docid": "495ebb9f96db2e8671283115704fc2d3", "score": "0.5651634", "text": "public abstract void handleChunk(byte[] bytes);", "title": "" }, { "docid": "f7ca2383e83d3ea02fe62e3d7752c44f", "score": "0.5641876", "text": "@Test(timeout = 1000 * 60)\n public void readFullFile() throws Exception {\n long length = ((GrpcDataReaderTest.CHUNK_SIZE) * 1024) + ((GrpcDataReaderTest.CHUNK_SIZE) / 3);\n try (DataReader reader = create(0, length)) {\n long checksum = setReadResponses(mClient, length, 0, (length - 1));\n long checksumActual = checkChunks(reader, 0, length);\n Assert.assertEquals(checksum, checksumActual);\n }\n validateReadRequestSent(mClient, 0, length, true, GrpcDataReaderTest.CHUNK_SIZE);\n }", "title": "" }, { "docid": "0ecbe590a380e12a340adb2c71b20c1d", "score": "0.5633889", "text": "int getChunkNumber();", "title": "" }, { "docid": "0ecbe590a380e12a340adb2c71b20c1d", "score": "0.5633889", "text": "int getChunkNumber();", "title": "" }, { "docid": "1fc8f5ab80adc730c69f115ea1e1fa3b", "score": "0.5629136", "text": "@java.lang.Override\n public boolean getIsFirstChunkResponse() {\n return isFirstChunkResponse_;\n }", "title": "" }, { "docid": "896fa2eaa07f23674e135002d9eb9975", "score": "0.56280124", "text": "@java.lang.Override\n public java.util.List<? extends edu.usfca.cs.dfs.proto.Message.Server2Client.RetrieveFileResponse.ChunkPossiblePositionOrBuilder> \n getChunkPossiblePositionOrBuilderList() {\n return chunkPossiblePosition_;\n }", "title": "" }, { "docid": "c798820605e1aed4959fb9ef3f733167", "score": "0.5622768", "text": "public static void readMoreThanOneFiles() throws IOException {\n// Client_ReceivesFiles client_receivesFiles = new Client_ReceivesFiles(SERVER, 8080);\n client_receivesFiles=Main.getClient_receivesFiles();\n \n prepareReceivedFilesDestination(\"src/RECEIVED\" + client_receivesFiles.getSocket().getInetAddress() + \"/\");\n \n BufferedReader inp = new BufferedReader(new InputStreamReader(client_receivesFiles.getSocket().getInputStream()));\n PrintWriter out = new PrintWriter(new OutputStreamWriter(client_receivesFiles.getSocket().getOutputStream()), true);\n \n out.println(\"start \" + Main.getMyName());\n out.println(\"get --myID\");\n client_receivesFiles.setID(Integer.parseInt(inp.readLine()));\n \n out.println(\"get file --sharedPlaylist\");\n int numberOfFilesRecieved = inp.read();\n for (int i = 0; i < numberOfFilesRecieved; i++) {\n receiveFile();\n }\n \n \n out.println(\"quit\");\n// client_receivesFiles.getSocket().close();\n }", "title": "" }, { "docid": "7e052884ecc80c58586dfd953e3ed485", "score": "0.5611615", "text": "edu.usfca.cs.dfs.proto.Message.Node2Node.ChunkTransferOrBuilder getChunkTransferOrBuilder();", "title": "" }, { "docid": "57ebee35cec96ac5bd27614261f6f126", "score": "0.5606242", "text": "boolean hasRetrieveChunkRequest();", "title": "" }, { "docid": "57ebee35cec96ac5bd27614261f6f126", "score": "0.5606242", "text": "boolean hasRetrieveChunkRequest();", "title": "" }, { "docid": "01ffcb576bab6f9879f937fd7f76e227", "score": "0.5579183", "text": "edu.usfca.cs.dfs.proto.Message.Node2Node.ChunkTransfer getChunkTransfer();", "title": "" }, { "docid": "7fb58073e19168068189cc48854c7184", "score": "0.556104", "text": "@Test\n public void getRangeDataForExistingTarget_firstOKlastTooBig() throws Exception {\n m_requestPathInfo = \"/existing/versions/2.0.0\";\n m_requestRangeHeader = \"bytes=2-100\";\n m_servlet.doGet(m_request, m_response);\n assertResponseCode(HttpServletResponse.SC_PARTIAL_CONTENT);\n assertResponseHeaderNotPresent(\"Content-Length\");\n assertResponseHeaderValue(\"Content-Range\", \"bytes 2-100/*\");\n assertResponseOutput(2, 98);\n }", "title": "" }, { "docid": "d0ab4164220f9cd09dff334f982f4067", "score": "0.5552309", "text": "@java.lang.Override\n public boolean getIsFirstChunkResponse() {\n return isFirstChunkResponse_;\n }", "title": "" }, { "docid": "98033eeb991797bc00da87319c5108af", "score": "0.55522007", "text": "@Test()\n public void getRangeDataForExistingTarget_firstOKlastOK() throws Exception {\n m_requestPathInfo = \"/existing/versions/2.0.0\";\n m_requestRangeHeader = \"bytes=2-50\";\n m_servlet.doGet(m_request, m_response);\n assertResponseCode(HttpServletResponse.SC_PARTIAL_CONTENT);\n assertResponseHeaderNotPresent(\"Content-Length\");\n assertResponseHeaderValue(\"Content-Range\", \"bytes 2-50/*\");\n assertResponseOutput(2, 49);\n }", "title": "" }, { "docid": "48f454b92c16010ee71dc6df7b474646", "score": "0.5548632", "text": "@Test\n public void getRangeDataForExistingTarget_firstTooBiglastTooBig() throws Exception {\n m_requestPathInfo = \"/existing/versions/2.0.0\";\n m_requestRangeHeader = \"bytes=100-110\";\n m_servlet.doGet(m_request, m_response);\n assertResponseCode(HttpServletResponse.SC_PARTIAL_CONTENT);\n assertResponseHeaderValue(\"Content-Range\", \"bytes 100-110/*\");\n assertResponseHeaderNotPresent(\"Content-Length\");\n assertResponseOutput(-1, 0);\n }", "title": "" }, { "docid": "025f448204903f657c0a3649a2a86821", "score": "0.55273706", "text": "@Test\n public void getRangeDataForExistingTarget_firstOKlastOK2() throws Exception {\n m_requestPathInfo = \"/existing/versions/2.0.0\";\n m_requestRangeHeader = \"bytes=2-99\";\n m_servlet.doGet(m_request, m_response);\n assertResponseCode(HttpServletResponse.SC_PARTIAL_CONTENT);\n assertResponseHeaderNotPresent(\"Content-Length\");\n assertResponseHeaderValue(\"Content-Range\", \"bytes 2-99/*\");\n assertResponseOutput(2, 98);\n }", "title": "" }, { "docid": "73b70856b5a60531d2834d8944526ae6", "score": "0.54880667", "text": "edu.usfca.cs.dfs.proto.Message.Client2Node.StoreChunkRequest getStoreChunkRequest();", "title": "" }, { "docid": "b317eac565ce96d6e5d44d817e831b3c", "score": "0.54754853", "text": "public Builder setIsFirstChunkResponse(boolean value) {\n \n isFirstChunkResponse_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "634569e797182c8329b43563015338bf", "score": "0.54735124", "text": "@Test\n public void testReadBuffer_read_end() throws Exception{\n testBuffStream.seek(10000);\n testBuffStream.read();\n\n int pos = 10000 + halfStreamBufferSize;\n byte[] buffer = new byte[halfStreamBufferSize + 5];\n tstSeekReadBuffer(testBuffStream, expectedBytes, pos, buffer);\n }", "title": "" }, { "docid": "534277e0c2adf41bfb2370c94c3adbf2", "score": "0.5442932", "text": "@Test\n public void getRangeDataForExistingTarget_first0lastOK() throws Exception {\n m_requestPathInfo = \"/existing/versions/2.0.0\";\n m_requestRangeHeader = \"bytes=0-10\";\n m_servlet.doGet(m_request, m_response);\n assertResponseCode(HttpServletResponse.SC_PARTIAL_CONTENT);\n assertResponseHeaderNotPresent(\"Content-Length\");\n assertResponseHeaderValue(\"Content-Range\", \"bytes 0-10/*\");\n }", "title": "" }, { "docid": "150b21f6202ae36019aebab330836bfc", "score": "0.54267985", "text": "com.google.protobuf.ByteString getChunkData();", "title": "" }, { "docid": "d629f24e29b8128d6b2f90c91e6dfddd", "score": "0.54244745", "text": "@Test\n public void testReadBuffer_missing_start_end() throws Exception{\n testBuffStream.seek(5000);\n testBuffStream.read();\n\n int pos = 5000 + halfStreamBufferSize;\n byte[] buffer = new byte[streamBufferSize];\n tstSeekReadBuffer(testBuffStream, expectedBytes, pos, buffer);\n }", "title": "" }, { "docid": "f131ccd1536de10c3ad6f5de19dc05a3", "score": "0.5423452", "text": "@Test\n public void testReadBuffer_read_start() throws Exception{\n testBuffStream.seek(5000);\n testBuffStream.read();\n\n int pos = 5000 - halfStreamBufferSize;\n byte[] buffer = new byte[halfStreamBufferSize - 5];\n tstSeekReadBuffer(testBuffStream, expectedBytes, pos, buffer);\n }", "title": "" }, { "docid": "fd7a4a66150649f8fe77803f44825122", "score": "0.54223806", "text": "@Test\n public void getRangeDataForExistingTarget_firstOKlastTooSmall() throws Exception {\n m_requestPathInfo = \"/existing/versions/2.0.0\";\n m_requestRangeHeader = \"bytes=2-1\";\n m_servlet.doGet(m_request, m_response);\n assertResponseCode(HttpServletResponse.SC_OK);\n assertResponseHeaderNotPresent(\"Content-Length\");\n assertResponseOutput(0, 100);\n }", "title": "" }, { "docid": "0d2b2c548734c824d7439a44040c7d36", "score": "0.54074085", "text": "edu.usfca.cs.dfs.proto.Message.Server2Client.RetrieveFileResponse getRetrieveFileResponse();", "title": "" }, { "docid": "3304d7e982c98ac33d9e763cd4fc33fd", "score": "0.5394894", "text": "@java.lang.Override\n public boolean hasChunkRequest() {\n return msgCase_ == 2;\n }", "title": "" }, { "docid": "8904fda2be9685ce8e2f0d8a80c0b147", "score": "0.53904235", "text": "edu.usfca.cs.dfs.proto.Message.Server2Client.StoreFileResponse getStoreFileResponse();", "title": "" }, { "docid": "a6c1b5b3b0af733d516eaaf50060ecbf", "score": "0.5385885", "text": "@Test()\n public void testCustomChunking() throws Throwable {\n doTest(true);\n }", "title": "" }, { "docid": "bb1778e400634c68d81f21a0bc7234ad", "score": "0.5376461", "text": "@Test\n public void getRangeDataForExistingTarget_firstOKlastANY() throws Exception {\n m_requestPathInfo = \"/existing/versions/2.0.0\";\n m_requestRangeHeader = \"bytes=2-\";\n m_servlet.doGet(m_request, m_response);\n assertResponseCode(HttpServletResponse.SC_PARTIAL_CONTENT);\n assertResponseHeaderNotPresent(\"Content-Length\");\n assertResponseHeaderValue(\"Content-Range\", \"bytes 2-/*\");\n assertResponseOutput(2, 98);\n }", "title": "" }, { "docid": "a83324e13412d729b10c2af594076147", "score": "0.5372153", "text": "public boolean read()\r\n/* 59: */ {\r\n/* 60:151 */ DataInputStream inFile = null;\r\n/* 61:152 */ this.myData = null;\r\n/* 62:153 */ byte[] tmpLong = new byte[4];\r\n/* 63:154 */ byte[] tmpInt = new byte[2];\r\n/* 64: */ try\r\n/* 65: */ {\r\n/* 66:158 */ inFile = new DataInputStream(new FileInputStream(this.myPath));\r\n/* 67: */ \r\n/* 68: */ \r\n/* 69: */ \r\n/* 70:162 */ String chunkID = (char)inFile.readByte() + (char)inFile.readByte() + (char)inFile.readByte() + (char)inFile.readByte();\r\n/* 71: */ \r\n/* 72:164 */ inFile.read(tmpLong);\r\n/* 73:165 */ this.myChunkSize = byteArrayToLong(tmpLong);\r\n/* 74: */ \r\n/* 75:167 */ String format = (char)inFile.readByte() + (char)inFile.readByte() + (char)inFile.readByte() + (char)inFile.readByte();\r\n/* 76: */ \r\n/* 77: */ \r\n/* 78: */ \r\n/* 79: */ \r\n/* 80: */ \r\n/* 81: */ \r\n/* 82:174 */ String subChunk1ID = (char)inFile.readByte() + (char)inFile.readByte() + (char)inFile.readByte() + (char)inFile.readByte();\r\n/* 83: */ \r\n/* 84:176 */ inFile.read(tmpLong);\r\n/* 85:177 */ this.mySubChunk1Size = byteArrayToLong(tmpLong);\r\n/* 86: */ \r\n/* 87:179 */ inFile.read(tmpInt);\r\n/* 88:180 */ this.myFormat = byteArrayToInt(tmpInt);\r\n/* 89: */ \r\n/* 90:182 */ inFile.read(tmpInt);\r\n/* 91:183 */ this.myChannels = byteArrayToInt(tmpInt);\r\n/* 92: */ \r\n/* 93:185 */ inFile.read(tmpLong);\r\n/* 94:186 */ this.mySampleRate = byteArrayToLong(tmpLong);\r\n/* 95: */ \r\n/* 96:188 */ inFile.read(tmpLong);\r\n/* 97:189 */ this.myByteRate = byteArrayToLong(tmpLong);\r\n/* 98: */ \r\n/* 99:191 */ inFile.read(tmpInt);\r\n/* 100:192 */ this.myBlockAlign = byteArrayToInt(tmpInt);\r\n/* 101: */ \r\n/* 102:194 */ inFile.read(tmpInt);\r\n/* 103:195 */ this.myBitsPerSample = byteArrayToInt(tmpInt);\r\n/* 104: */ \r\n/* 105: */ \r\n/* 106: */ \r\n/* 107: */ \r\n/* 108: */ \r\n/* 109: */ \r\n/* 110:202 */ String dataChunkID = (char)inFile.readByte() + (char)inFile.readByte() + (char)inFile.readByte() + (char)inFile.readByte();\r\n/* 111: */ \r\n/* 112:204 */ inFile.read(tmpLong);\r\n/* 113:205 */ this.myDataSize = byteArrayToLong(tmpLong);\r\n/* 114: */ \r\n/* 115: */ \r\n/* 116: */ \r\n/* 117:209 */ this.myData = new byte[(int)this.myDataSize];\r\n/* 118:210 */ inFile.read(this.myData);\r\n/* 119: */ \r\n/* 120: */ \r\n/* 121:213 */ inFile.close();\r\n/* 122: */ }\r\n/* 123: */ catch (Exception e)\r\n/* 124: */ {\r\n/* 125:217 */ return false;\r\n/* 126: */ }\r\n/* 127:220 */ return true;\r\n/* 128: */ }", "title": "" }, { "docid": "a121d4fa31031555b8800ab4cd7b9c62", "score": "0.53719765", "text": "public void processChunk(@com.drew.lang.annotations.NotNull java.lang.String r11, @com.drew.lang.annotations.NotNull byte[] r12) {\n /*\n r10 = this;\n java.lang.String r0 = \"fmt \"\n boolean r0 = r11.equals(r0) // Catch:{ IOException -> 0x0126 }\n r1 = 3\n r2 = 2\n r3 = 4\n r4 = 0\n r5 = 1\n if (r0 == 0) goto L_0x0089\n com.drew.lang.ByteArrayReader r11 = new com.drew.lang.ByteArrayReader // Catch:{ IOException -> 0x0126 }\n r11.<init>(r12) // Catch:{ IOException -> 0x0126 }\n r11.setMotorolaByteOrder(r4) // Catch:{ IOException -> 0x0126 }\n short r12 = r11.getInt16(r4) // Catch:{ IOException -> 0x0126 }\n short r0 = r11.getInt16(r2) // Catch:{ IOException -> 0x0126 }\n int r4 = r11.getInt32(r3) // Catch:{ IOException -> 0x0126 }\n r6 = 8\n int r6 = r11.getInt32(r6) // Catch:{ IOException -> 0x0126 }\n r7 = 12\n short r7 = r11.getInt16(r7) // Catch:{ IOException -> 0x0126 }\n if (r12 == r5) goto L_0x0055\n java.util.HashMap<java.lang.Integer, java.lang.String> r11 = com.drew.metadata.wav.WavDirectory._audioEncodingMap // Catch:{ IOException -> 0x0126 }\n java.lang.Integer r8 = java.lang.Integer.valueOf(r12) // Catch:{ IOException -> 0x0126 }\n boolean r11 = r11.containsKey(r8) // Catch:{ IOException -> 0x0126 }\n if (r11 == 0) goto L_0x004d\n com.drew.metadata.wav.WavDirectory r11 = r10._directory // Catch:{ IOException -> 0x0126 }\n java.util.HashMap<java.lang.Integer, java.lang.String> r8 = com.drew.metadata.wav.WavDirectory._audioEncodingMap // Catch:{ IOException -> 0x0126 }\n java.lang.Integer r12 = java.lang.Integer.valueOf(r12) // Catch:{ IOException -> 0x0126 }\n java.lang.Object r12 = r8.get(r12) // Catch:{ IOException -> 0x0126 }\n java.lang.String r12 = (java.lang.String) r12 // Catch:{ IOException -> 0x0126 }\n r11.setString(r5, r12) // Catch:{ IOException -> 0x0126 }\n goto L_0x0072\n L_0x004d:\n com.drew.metadata.wav.WavDirectory r11 = r10._directory // Catch:{ IOException -> 0x0126 }\n java.lang.String r12 = \"Unknown\"\n r11.setString(r5, r12) // Catch:{ IOException -> 0x0126 }\n goto L_0x0072\n L_0x0055:\n r8 = 14\n short r11 = r11.getInt16(r8) // Catch:{ IOException -> 0x0126 }\n com.drew.metadata.wav.WavDirectory r8 = r10._directory // Catch:{ IOException -> 0x0126 }\n r9 = 6\n r8.setInt(r9, r11) // Catch:{ IOException -> 0x0126 }\n com.drew.metadata.wav.WavDirectory r11 = r10._directory // Catch:{ IOException -> 0x0126 }\n java.util.HashMap<java.lang.Integer, java.lang.String> r8 = com.drew.metadata.wav.WavDirectory._audioEncodingMap // Catch:{ IOException -> 0x0126 }\n java.lang.Integer r12 = java.lang.Integer.valueOf(r12) // Catch:{ IOException -> 0x0126 }\n java.lang.Object r12 = r8.get(r12) // Catch:{ IOException -> 0x0126 }\n java.lang.String r12 = (java.lang.String) r12 // Catch:{ IOException -> 0x0126 }\n r11.setString(r5, r12) // Catch:{ IOException -> 0x0126 }\n L_0x0072:\n com.drew.metadata.wav.WavDirectory r11 = r10._directory // Catch:{ IOException -> 0x0126 }\n r11.setInt(r2, r0) // Catch:{ IOException -> 0x0126 }\n com.drew.metadata.wav.WavDirectory r11 = r10._directory // Catch:{ IOException -> 0x0126 }\n r11.setInt(r1, r4) // Catch:{ IOException -> 0x0126 }\n com.drew.metadata.wav.WavDirectory r11 = r10._directory // Catch:{ IOException -> 0x0126 }\n r11.setInt(r3, r6) // Catch:{ IOException -> 0x0126 }\n com.drew.metadata.wav.WavDirectory r11 = r10._directory // Catch:{ IOException -> 0x0126 }\n r12 = 5\n r11.setInt(r12, r7) // Catch:{ IOException -> 0x0126 }\n goto L_0x0130\n L_0x0089:\n java.lang.String r0 = \"data\"\n boolean r0 = r11.equals(r0) // Catch:{ IOException -> 0x0126 }\n if (r0 == 0) goto L_0x0101\n com.drew.metadata.wav.WavDirectory r11 = r10._directory // Catch:{ MetadataException -> 0x00f9 }\n boolean r11 = r11.containsTag(r3) // Catch:{ MetadataException -> 0x00f9 }\n if (r11 == 0) goto L_0x0130\n int r11 = r12.length // Catch:{ MetadataException -> 0x00f9 }\n double r11 = (double) r11 // Catch:{ MetadataException -> 0x00f9 }\n com.drew.metadata.wav.WavDirectory r0 = r10._directory // Catch:{ MetadataException -> 0x00f9 }\n double r6 = r0.getDouble(r3) // Catch:{ MetadataException -> 0x00f9 }\n java.lang.Double.isNaN(r11)\n double r11 = r11 / r6\n int r0 = (int) r11\n r6 = 4611686018427387904(0x4000000000000000, double:2.0)\n r8 = 4633641066610819072(0x404e000000000000, double:60.0)\n double r6 = java.lang.Math.pow(r8, r6) // Catch:{ MetadataException -> 0x00f9 }\n int r3 = (int) r6 // Catch:{ MetadataException -> 0x00f9 }\n int r3 = r0 / r3\n java.lang.Integer r3 = java.lang.Integer.valueOf(r3) // Catch:{ MetadataException -> 0x00f9 }\n r6 = 4607182418800017408(0x3ff0000000000000, double:1.0)\n double r6 = java.lang.Math.pow(r8, r6) // Catch:{ MetadataException -> 0x00f9 }\n int r6 = (int) r6 // Catch:{ MetadataException -> 0x00f9 }\n int r0 = r0 / r6\n int r6 = r3.intValue() // Catch:{ MetadataException -> 0x00f9 }\n int r6 = r6 * 60\n int r0 = r0 - r6\n java.lang.Integer r0 = java.lang.Integer.valueOf(r0) // Catch:{ MetadataException -> 0x00f9 }\n r6 = 0\n double r6 = java.lang.Math.pow(r8, r6) // Catch:{ MetadataException -> 0x00f9 }\n double r11 = r11 / r6\n int r6 = r0.intValue() // Catch:{ MetadataException -> 0x00f9 }\n int r6 = r6 * 60\n double r6 = (double) r6\n java.lang.Double.isNaN(r6)\n double r11 = r11 - r6\n long r11 = java.lang.Math.round(r11) // Catch:{ MetadataException -> 0x00f9 }\n int r12 = (int) r11 // Catch:{ MetadataException -> 0x00f9 }\n java.lang.Integer r11 = java.lang.Integer.valueOf(r12) // Catch:{ MetadataException -> 0x00f9 }\n java.lang.String r12 = \"%1$02d:%2$02d:%3$02d\"\n java.lang.Object[] r1 = new java.lang.Object[r1] // Catch:{ MetadataException -> 0x00f9 }\n r1[r4] = r3 // Catch:{ MetadataException -> 0x00f9 }\n r1[r5] = r0 // Catch:{ MetadataException -> 0x00f9 }\n r1[r2] = r11 // Catch:{ MetadataException -> 0x00f9 }\n java.lang.String r11 = java.lang.String.format(r12, r1) // Catch:{ MetadataException -> 0x00f9 }\n com.drew.metadata.wav.WavDirectory r12 = r10._directory // Catch:{ MetadataException -> 0x00f9 }\n r0 = 16\n r12.setString(r0, r11) // Catch:{ MetadataException -> 0x00f9 }\n goto L_0x0130\n L_0x00f9:\n com.drew.metadata.wav.WavDirectory r11 = r10._directory // Catch:{ IOException -> 0x0126 }\n java.lang.String r12 = \"Error calculating duration: bytes per second not found\"\n r11.addError(r12) // Catch:{ IOException -> 0x0126 }\n goto L_0x0130\n L_0x0101:\n java.util.HashMap<java.lang.String, java.lang.Integer> r0 = com.drew.metadata.wav.WavDirectory._tagIntegerMap // Catch:{ IOException -> 0x0126 }\n boolean r0 = r0.containsKey(r11) // Catch:{ IOException -> 0x0126 }\n if (r0 == 0) goto L_0x0130\n com.drew.metadata.wav.WavDirectory r0 = r10._directory // Catch:{ IOException -> 0x0126 }\n java.util.HashMap<java.lang.String, java.lang.Integer> r1 = com.drew.metadata.wav.WavDirectory._tagIntegerMap // Catch:{ IOException -> 0x0126 }\n java.lang.Object r11 = r1.get(r11) // Catch:{ IOException -> 0x0126 }\n java.lang.Integer r11 = (java.lang.Integer) r11 // Catch:{ IOException -> 0x0126 }\n int r11 = r11.intValue() // Catch:{ IOException -> 0x0126 }\n java.lang.String r1 = new java.lang.String // Catch:{ IOException -> 0x0126 }\n r1.<init>(r12) // Catch:{ IOException -> 0x0126 }\n int r12 = r12.length // Catch:{ IOException -> 0x0126 }\n int r12 = r12 - r5\n java.lang.String r12 = r1.substring(r4, r12) // Catch:{ IOException -> 0x0126 }\n r0.setString(r11, r12) // Catch:{ IOException -> 0x0126 }\n goto L_0x0130\n L_0x0126:\n r11 = move-exception\n com.drew.metadata.wav.WavDirectory r12 = r10._directory\n java.lang.String r11 = r11.getMessage()\n r12.addError(r11)\n L_0x0130:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.drew.metadata.wav.WavRiffHandler.processChunk(java.lang.String, byte[]):void\");\n }", "title": "" }, { "docid": "1cb9e12bb28100f0a2a15481bbb7a273", "score": "0.5360859", "text": "edu.usfca.cs.dfs.proto.Message.Node2Node.ChunkRequest getChunkRequest();", "title": "" }, { "docid": "c1fc898b67f847d733887318ebf273ba", "score": "0.5327198", "text": "@java.lang.Override\n public boolean hasChunkRequest() {\n return msgCase_ == 2;\n }", "title": "" }, { "docid": "fe62dc3f460e3f98f1e1af5f668590ca", "score": "0.5323786", "text": "private void seekTo(long j) {\n Object e;\n AppMethodBeat.i(137680);\n teardownConnection();\n int i = 0;\n try {\n URL url = this.mURL;\n boolean isLocalHost = isLocalHost(url);\n int i2 = 0;\n int i3 = 0;\n while (true) {\n if (isLocalHost) {\n try {\n this.mConnection = (HttpURLConnection) url.openConnection(Proxy.NO_PROXY);\n } catch (IOException e2) {\n e = e2;\n i = i3;\n this.mTotalSize = -1;\n this.mInputStream = null;\n this.mConnection = null;\n this.mCurrentOffset = -1;\n Logger.e(\"MicroMsg.Music.MMMediaHTTPConnection\", \"seekTo exception:%s\", e + \", response:\" + i);\n AppMethodBeat.o(137680);\n throw e;\n }\n }\n this.mConnection = (HttpURLConnection) url.openConnection();\n this.mConnection.setConnectTimeout(30000);\n this.mConnection.setInstanceFollowRedirects(this.mAllowCrossDomainRedirect);\n String str = \"Accept-Encoding\";\n Object obj = null;\n if (this.mHeaders != null) {\n for (Entry entry : this.mHeaders.entrySet()) {\n this.mConnection.setRequestProperty((String) entry.getKey(), (String) entry.getValue());\n if (obj == null && str.equals(entry.getKey())) {\n e = 1;\n } else {\n e = obj;\n }\n obj = e;\n }\n }\n if (j > 0) {\n this.mConnection.setRequestProperty(\"Range\", \"bytes=\" + j + \"-\");\n }\n if (obj == null) {\n this.mConnection.setRequestProperty(str, \"\");\n }\n i = this.mConnection.getResponseCode();\n g.cI(this.oOa.toString(), i);\n if (i != 300 && i != 301 && i != 302 && i != 303 && i != 307) {\n break;\n }\n int i4 = i2 + 1;\n NoRouteToHostException noRouteToHostException;\n if (i4 > 20) {\n noRouteToHostException = new NoRouteToHostException(\"Too many redirects: \".concat(String.valueOf(i4)));\n AppMethodBeat.o(137680);\n throw noRouteToHostException;\n }\n String requestMethod = this.mConnection.getRequestMethod();\n if (i != 307 || requestMethod.equals(\"GET\") || requestMethod.equals(\"HEAD\")) {\n String headerField = this.mConnection.getHeaderField(\"Location\");\n if (headerField == null) {\n noRouteToHostException = new NoRouteToHostException(\"Invalid redirect\");\n AppMethodBeat.o(137680);\n throw noRouteToHostException;\n }\n url = new URL(this.mURL, headerField);\n if (url.getProtocol().equals(\"https\") || url.getProtocol().equals(\"http\")) {\n boolean equals = this.mURL.getProtocol().equals(url.getProtocol());\n if (this.mAllowCrossProtocolRedirect || equals) {\n equals = this.mURL.getHost().equals(url.getHost());\n if (this.mAllowCrossDomainRedirect || equals) {\n if (i != 307) {\n this.mURL = url;\n }\n i2 = i4;\n i3 = i;\n } else {\n noRouteToHostException = new NoRouteToHostException(\"Cross-domain redirects are disallowed\");\n AppMethodBeat.o(137680);\n throw noRouteToHostException;\n }\n }\n noRouteToHostException = new NoRouteToHostException(\"Cross-protocol redirects are disallowed\");\n AppMethodBeat.o(137680);\n throw noRouteToHostException;\n }\n noRouteToHostException = new NoRouteToHostException(\"Unsupported protocol redirect\");\n AppMethodBeat.o(137680);\n throw noRouteToHostException;\n }\n noRouteToHostException = new NoRouteToHostException(\"Invalid redirect\");\n AppMethodBeat.o(137680);\n throw noRouteToHostException;\n }\n if (TextUtils.isEmpty(this.mMimeType)) {\n this.mMimeType = this.mConnection.getContentType();\n ab.i(\"MicroMsg.Music.MMMediaHTTPConnection\", \"mimeType:\", this.mMimeType);\n }\n if (j <= 0 || i == 206) {\n this.mInputStream = new BufferedInputStream(this.mConnection.getInputStream());\n this.mCurrentOffset = j;\n AppMethodBeat.o(137680);\n return;\n }\n ProtocolException protocolException = new ProtocolException();\n AppMethodBeat.o(137680);\n throw protocolException;\n } catch (IOException e3) {\n e = e3;\n this.mTotalSize = -1;\n this.mInputStream = null;\n this.mConnection = null;\n this.mCurrentOffset = -1;\n Logger.e(\"MicroMsg.Music.MMMediaHTTPConnection\", \"seekTo exception:%s\", e + \", response:\" + i);\n AppMethodBeat.o(137680);\n throw e;\n }\n }", "title": "" }, { "docid": "4b16140af1141c043ceccb3763bbdfd0", "score": "0.53228873", "text": "@Test\n public void testRandomRead() throws IOException {\n\n int startPosition = 500000;\n int length = 50000;\n\n byte[] buffer1 = new byte[length];\n SeekableStream unBufferedStream = new SeekableFileStream(BAM_FILE);\n unBufferedStream.seek(startPosition);\n int bytesRead = unBufferedStream.read(buffer1, 0, length);\n assertEquals(length, bytesRead);\n\n byte[] buffer2 = new byte[length];\n SeekableStream bufferedStream = new IGVSeekableBufferedStream(new SeekableHTTPStream(HttpUtils.createURL(BAM_URL_STRING)));\n bufferedStream.seek(startPosition);\n bytesRead = bufferedStream.read(buffer2, 0, length);\n assertEquals(length, bytesRead);\n\n assertArraysEqual(buffer1, buffer2);\n }", "title": "" }, { "docid": "961e391df41220216ec69e293ab2291d", "score": "0.5317465", "text": "public Builder addChunkPossiblePosition(edu.usfca.cs.dfs.proto.Message.Server2Client.RetrieveFileResponse.ChunkPossiblePosition value) {\n if (chunkPossiblePositionBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureChunkPossiblePositionIsMutable();\n chunkPossiblePosition_.add(value);\n onChanged();\n } else {\n chunkPossiblePositionBuilder_.addMessage(value);\n }\n return this;\n }", "title": "" }, { "docid": "562852a471bcb53ad7e11ab957e13334", "score": "0.5314306", "text": "@Override\r\n\tprotected void seek()\r\n\t{\n\r\n\t}", "title": "" }, { "docid": "1cfe4205fc1e2725fd3196cea0f6a141", "score": "0.5289326", "text": "@Nullable\n @VisibleForTesting\n protected DataBuffer readChunk() throws IOException {\n Preconditions.checkState(!mClient.get().isShutdown(),\n \"Data reader is closed while reading data chunks.\");\n ReadResponse response = mStream.receive(mDataTimeoutMs);\n if (response == null) {\n return null;\n }\n Preconditions.checkState(response.hasChunk() && response.getChunk().hasData(),\n \"response should always contain chunk\");\n\n ByteBuffer byteBuffer = response.getChunk().getData().asReadOnlyByteBuffer();\n DataBuffer buffer = new NioDataBuffer(byteBuffer, byteBuffer.remaining());\n mPosToRead += buffer.readableBytes();\n try {\n mStream.send(mReadRequest.toBuilder().setOffsetReceived(mPosToRead).build());\n } catch (Exception e) {\n // nothing is done as the receipt is sent at best effort\n LOG.debug(\"Failed to send receipt of data to worker {} for request {}\", mAddress,\n mReadRequest, e);\n }\n Preconditions.checkState(mPosToRead - mReadRequest.getOffset() <= mReadRequest.getLength());\n return buffer;\n }", "title": "" }, { "docid": "88193448c0e08f6537c0eee6787188ee", "score": "0.528314", "text": "public java.util.List<? extends edu.usfca.cs.dfs.proto.Message.Server2Client.RetrieveFileResponse.ChunkPossiblePositionOrBuilder> \n getChunkPossiblePositionOrBuilderList() {\n if (chunkPossiblePositionBuilder_ != null) {\n return chunkPossiblePositionBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(chunkPossiblePosition_);\n }\n }", "title": "" }, { "docid": "2f343d7172237e99f3878fe5a073d1e2", "score": "0.52752316", "text": "public int getChunkSize()\n {\n return chunkSize;\n }", "title": "" }, { "docid": "20bfe28f0389da0966c2e5daa095734d", "score": "0.5274624", "text": "int fileChannelBufferSize();", "title": "" }, { "docid": "18c3109c41fc22d81c59182cee4d1cb4", "score": "0.5259648", "text": "@Test\n public void testReadBuffer_noOverlap() throws Exception {\n\n byte[] buffer = new byte[halfStreamBufferSize];\n\n //Read at the beginning\n tstSeekReadBuffer(testBuffStream, expectedBytes, 0, buffer);\n\n //Jump to the end\n int pos = expectedFileSize - streamBufferSize;\n tstSeekReadBuffer(testBuffStream, expectedBytes, pos, buffer);\n\n // Somewhere in the middle\n pos = 700;\n tstSeekReadBuffer(testBuffStream, expectedBytes, pos, buffer);\n }", "title": "" }, { "docid": "4466a4458442c8d8d9053f6221fab0e1", "score": "0.5253133", "text": "@Test\n public void testChunkedRequestsWithTrailers() throws IOException {\n ChunkedRequestTrailersTestCase.connection = null;\n String request = \"POST / HTTP/1.1\\r\\nHost: default\\r\\nTrailer:foo, bar\\r\\nTransfer-Encoding: chunked\\r\\n\\r\\n9\\r\\nabcdefghi\\r\\n0\\r\\nfoo: fooVal\\r\\n bar: barVal\\r\\n\\r\\n\";\n String response1 = \"HTTP/1.1 200 OK\\r\\nConnection: keep-alive\\r\\nContent-Length: 26\\r\\n\\r\\nfoo: fooVal\\r\\nbar: barVal\\r\\n\";// header order is not guaranteed, we really should be parsing this properly\n\n String response2 = \"HTTP/1.1 200 OK\\r\\nConnection: keep-alive\\r\\nContent-Length: 26\\r\\n\\r\\nfoo: fooVal\\r\\nbar: barVal\\r\\n\";// TODO: parse the response properly, or better yet ues a client that supports trailers\n\n Socket s = new Socket(DefaultServer.getDefaultServerAddress().getAddress(), DefaultServer.getDefaultServerAddress().getPort());\n try {\n s.getOutputStream().write(request.getBytes());\n StringBuilder sb = new StringBuilder();\n int read = 0;\n byte[] buf = new byte[300];\n while (read < (response1.length())) {\n int r = s.getInputStream().read(buf);\n if (r <= 0)\n break;\n\n if (r > 0) {\n read += r;\n sb.append(new String(buf, 0, r));\n }\n } \n String actual = sb.toString();\n actual = actual.replaceAll(\"\\r\\nDate:.*\", \"\");\n actual = actual.replaceAll(\"content-length\", \"Content-Length\");\n try {\n // this is pretty yuck\n Assert.assertEquals(response1, actual);\n } catch (AssertionError e) {\n Assert.assertEquals(response2, actual);\n }\n s.getOutputStream().write(request.getBytes());\n sb = new StringBuilder();\n read = 0;\n while (read < (response1.length())) {\n int r = s.getInputStream().read(buf);\n if (r <= 0)\n break;\n\n if (r > 0) {\n read += r;\n sb.append(new String(buf, 0, r));\n }\n } \n actual = sb.toString();\n actual = actual.replaceAll(\"\\r\\nDate:.*\", \"\");\n actual = actual.replaceAll(\"content-length\", \"Content-Length\");\n try {\n Assert.assertEquals(response1, actual);\n } catch (AssertionError e) {\n Assert.assertEquals(response2, actual);\n }\n } finally {\n s.close();\n }\n }", "title": "" }, { "docid": "507d6e2751b23a01f8885e613748ab2d", "score": "0.5247667", "text": "boolean hasChunkTransfer();", "title": "" }, { "docid": "82fd654381731c61930cc3951a765578", "score": "0.5241106", "text": "private MockResponse buildContinuingResponse() {\n int numPackets = 100;\n int contentLength = STRING_1K.length() * numPackets;\n return buildResponse(HTTP_OK, STRING_1K)\n .setHeader(\"Content-length\", contentLength)\n .setHeader(\"Etag\", ETAG)\n .setBytesPerSecond(1024);\n }", "title": "" }, { "docid": "f50c9dd00c0e78c5ecbe7146bcf217da", "score": "0.5238205", "text": "edu.usfca.cs.dfs.proto.Message.Server2Client.RetrieveFileResponseOrBuilder getRetrieveFileResponseOrBuilder();", "title": "" }, { "docid": "22ea20bd09f0f6752bdefb204ecbc61e", "score": "0.5225625", "text": "boolean hasChunkRequest();", "title": "" }, { "docid": "e5c044076e8376eb1e3c6d5fbf3d0014", "score": "0.52221096", "text": "Chunk provideChunk(int var1, int var2);", "title": "" }, { "docid": "3c44f471c40ee8076c0ce5ddad71fd38", "score": "0.5211581", "text": "Chunk nextChunk() {\n return nextChunk(true, false);\n }", "title": "" }, { "docid": "de7f9bc4641a4ef907c7cc6d222fbaeb", "score": "0.5209074", "text": "int getChunkTotalNumber();", "title": "" }, { "docid": "f5c92f86398780066bcae842ca21c5b7", "score": "0.5203171", "text": "public void testLargeFile() throws Exception {\n assertEquals(\"Disabling of idle time has not worked. This test cannot pass.\",\n 0L, SystemUtils.getIdleTime());\n long minPreviewBytes = ((Integer)\n PrivilegedAccessor.getValue(strategy,\"MIN_PREVIEW_BYTES\")\n ).longValue(); // 1 MB\n double minPreviewFraction = ((Float)\n PrivilegedAccessor.getValue(strategy,\"MIN_PREVIEW_FRACTION\")\n ).doubleValue();\n fileSize = (long) ((minPreviewBytes / minPreviewFraction)+2*blockSize);\n \n // For this test, fileSize has been defined such that the preview limit\n // will be fileSize * minPreviewFraction\n long previewLimit = (long) Math.ceil(fileSize*minPreviewFraction);\n \n long alignedPreviewLimit = previewLimit + blockSize;\n alignedPreviewLimit -= alignedPreviewLimit % blockSize;\n \n availableBytes = IntervalSet.createSingletonSet(0, fileSize-1);\n // Cut out everything below previewFraction, except 2 blocks at the beginning\n // and end of that range.\n availableBytes.delete(Range.createRange(2*blockSize-7, \n alignedPreviewLimit-blockSize-2));\n // 4 arbitrary floats for our 4 sequential downloads... make sure to test\n // 1.0 and 0.0\n float[] floats = {1.0f-EPSILON, 0.6298f, 0.77f, 0.0f};\n prng.setFloats(floats);\n \n strategy = createBiasedRandomStrategy(fileSize, prng);\n Range[] expectations = new Range[4];\n // full block chunk\n expectations[0] = Range.createRange(0, blockSize-1);\n // partial block chunk\n expectations[1] = Range.createRange(blockSize, 2*blockSize-8);\n // Skip a few...\n // single byte chunk\n expectations[2] = Range.createRange(alignedPreviewLimit-blockSize-1);\n // full block\n expectations[3] = Range.createRange(alignedPreviewLimit-blockSize,\n alignedPreviewLimit-1);\n \n // Check that we got our 4 sequential downloads\n testAssignments(strategy, availableBytes, fileSize,\n blockSize, expectations);\n \n // Now test that we go into non-sequential downloads\n // Set the float so that we get a non-sequential download durring the\n // 50% random phase.\n prng.setFloat(0.500001f);\n // Set the random index location and a non-sequential random location\n prng.setInt(3);\n prng.setLong(1);\n Range assignment = strategy.pickAssignment(availableBytes,\n availableBytes, blockSize);\n \n // Check that it wasn't a sequential download\n assertNotEquals(\"Got a sequential download when it should have been random.\", \n previewLimit, assignment.getLow());\n \n // Check that we still force a sequential download while the preview\n // length is less than 50%\n prng.setFloat(0.5f-EPSILON);\n \n assignment = strategy.pickAssignment(availableBytes,\n availableBytes, blockSize);\n \n assertEquals(\"Expected sequential assignment.\",\n availableBytes.getFirst().getLow(),\n assignment.getLow());\n assertEquals(\"Expected a full block assignment\",\n blockSize, assignment.getHigh()-assignment.getLow()+1);\n availableBytes.delete(assignment);\n \n // Fast-forward to the case where the download is \n // over 50% previewable.\n \n availableBytes.delete(Range.createRange(0, 1+fileSize/2));\n \n // Test that we can no longer force the download to be non-random\n prng.setFloat(1.0f-EPSILON); // Nearly highest probability of being sequential\n prng.setInt(5); // index into random locations array\n prng.setLong(1); // random location block offset\n \n assignment = strategy.pickAssignment(availableBytes,\n availableBytes, blockSize);\n \n assertNotEquals(\"Expected non-sequential assignment\",\n availableBytes.getFirst().getLow(),\n assignment.getLow());\n assertEquals(\"Expected a full block assignment\",\n blockSize, assignment.getHigh()-assignment.getLow()+1);\n }", "title": "" }, { "docid": "440e2a909dc8c408f2e99e91dedc9771", "score": "0.5202255", "text": "protected boolean readChunk (RepInfo info) throws IOException\n {\n Chunk chunk = null;\n ChunkHeader chunkh = new ChunkHeader (this, info);\n if (!chunkh.readHeader(_dstream)) {\n return false;\n }\n int chunkSize = (int) chunkh.getSize ();\n bytesRemaining -= chunkSize + 8;\n \n String id = chunkh.getID ();\n if (\"FVER\".equals (id)) {\n if (formatVersionChunkSeen) {\n dupChunkError (info, \"Format Version\");\n }\n chunk = new FormatVersionChunk (this, chunkh, _dstream);\n formatVersionChunkSeen = true;\n }\n else if (\"APPL\".equals (id)) {\n chunk = new ApplicationChunk (this, chunkh, _dstream);\n // Any number of application chunks is ok\n }\n else if (\"COMM\".equals (id)) {\n if (commonChunkSeen) {\n dupChunkError (info, \"Common\");\n }\n chunk = new CommonChunk (this, chunkh, _dstream);\n commonChunkSeen = true;\n }\n else if (\"SSND\".equals (id)) {\n // Watch for multiple sound chunks\n if (soundChunkSeen) {\n dupChunkError (info, \"Sound\");\n }\n else {\n chunk = new SoundDataChunk (this, chunkh, _dstream);\n soundChunkSeen = true;\n }\n }\n else if (\"COMT\".equals (id)) {\n if (commentsChunkSeen) {\n dupChunkError (info, \"Comments\");\n }\n chunk = new CommentsChunk (this, chunkh, _dstream);\n commentsChunkSeen = true;\n }\n else if (\"INST\".equals (id)) {\n if (instrumentChunkSeen) {\n dupChunkError (info, \"Instrument\");\n }\n chunk = new InstrumentChunk (this, chunkh, _dstream);\n instrumentChunkSeen = true;\n }\n else if (\"MARK\".equals (id)) {\n if (markerChunkSeen) {\n dupChunkError (info, \"Marker\");\n }\n else {\n chunk = new MarkerChunk (this, chunkh, _dstream);\n markerChunkSeen = true;\n }\n }\n else if (\"MIDI\".equals (id)) {\n chunk = new MidiChunk (this, chunkh, _dstream);\n // Any number of MIDI chunks are allowed\n }\n else if (\"NAME\".equals (id)) {\n if (nameChunkSeen) {\n dupChunkError (info, \"Name\");\n }\n else {\n chunk = new NameChunk (this, chunkh, _dstream);\n nameChunkSeen = true;\n }\n }\n else if (\"AUTH\".equals (id)) {\n if (authorChunkSeen) {\n dupChunkError (info, \"Author\");\n }\n else {\n chunk = new AuthorChunk (this, chunkh, _dstream);\n authorChunkSeen = true;\n }\n }\n else if (\"(c) \".equals (id)) {\n if (copyrightChunkSeen) {\n dupChunkError (info, \"Copyright\");\n }\n else {\n chunk = new CopyrightChunk (this, chunkh, _dstream);\n copyrightChunkSeen = true;\n }\n }\n else if (\"AESD\".equals (id)) {\n if (audioRecChunkSeen) {\n dupChunkError (info, \"Audio Recording\");\n }\n else {\n chunk = new AudioRecChunk (this, chunkh, _dstream);\n audioRecChunkSeen = true;\n }\n }\n else if (\"SAXL\".equals (id)) {\n chunk = new SaxelChunk (this, chunkh, _dstream);\n // Multiple saxel chunks are ok \n }\n else if (\"ANNO\".equals (id)) {\n chunk = new AnnotationChunk (this, chunkh, _dstream);\n // Multiple annotations are OK\n }\n else {\n info.setMessage (new InfoMessage\n (MessageConstants.INF_CHUNK_TYPE_IGNORED + id, _nByte));\n }\n if (chunk != null) {\n if (!chunk.readChunk (info)) {\n return false;\n }\n }\n else {\n // Other chunk types are legal, just skip over them\n skipBytes (_dstream, chunkSize, this);\n }\n if ((chunkSize & 1) != 0) {\n // Must come out to an even byte boundary\n skipBytes (_dstream, 1, this);\n --bytesRemaining;\n }\n return true; \n }", "title": "" }, { "docid": "3c48cf60c030518b48d54525919bc737", "score": "0.5189087", "text": "private void processMultipartResponse(final String str, final Response response, String str2, final File file, final BundleInfo bundleInfo, final DevBundleDownloadListener devBundleDownloadListener) throws IOException {\n if (!new MultipartStreamReader(response.body().source(), str2).readAllParts(new MultipartStreamReader.ChunkListener() {\n /* class com.facebook.react.devsupport.BundleDownloader.AnonymousClass2 */\n\n @Override // com.facebook.react.devsupport.MultipartStreamReader.ChunkListener\n public void onChunkComplete(Map<String, String> map, Buffer buffer, boolean z) throws IOException {\n if (z) {\n int code = response.code();\n if (map.containsKey(\"X-Http-Status\")) {\n code = Integer.parseInt(map.get(\"X-Http-Status\"));\n }\n BundleDownloader.this.processBundleResult(str, code, Headers.of(map), buffer, file, bundleInfo, devBundleDownloadListener);\n } else if (map.containsKey(Events.CONTENT_TYPE) && map.get(Events.CONTENT_TYPE).equals(Events.APP_JSON)) {\n try {\n JSONObject jSONObject = new JSONObject(buffer.readUtf8());\n Integer num = null;\n String string = jSONObject.has(\"status\") ? jSONObject.getString(\"status\") : null;\n Integer valueOf = jSONObject.has(\"done\") ? Integer.valueOf(jSONObject.getInt(\"done\")) : null;\n if (jSONObject.has(Constants.ParametersKeys.TOTAL)) {\n num = Integer.valueOf(jSONObject.getInt(Constants.ParametersKeys.TOTAL));\n }\n devBundleDownloadListener.onProgress(string, valueOf, num);\n } catch (JSONException e) {\n FLog.e(ReactConstants.TAG, \"Error parsing progress JSON. \" + e.toString());\n }\n }\n }\n\n @Override // com.facebook.react.devsupport.MultipartStreamReader.ChunkListener\n public void onChunkProgress(Map<String, String> map, long j, long j2) throws IOException {\n if (\"application/javascript\".equals(map.get(Events.CONTENT_TYPE))) {\n devBundleDownloadListener.onProgress(\"Downloading JavaScript bundle\", Integer.valueOf((int) (j / PlaybackStateCompat.ACTION_PLAY_FROM_MEDIA_ID)), Integer.valueOf((int) (j2 / PlaybackStateCompat.ACTION_PLAY_FROM_MEDIA_ID)));\n }\n }\n })) {\n devBundleDownloadListener.onFailure(new DebugServerException(\"Error while reading multipart response.\\n\\nResponse code: \" + response.code() + \"\\n\\nURL: \" + str.toString() + \"\\n\\n\"));\n }\n }", "title": "" }, { "docid": "80507872f5000b9272128cab17fb49f9", "score": "0.5185105", "text": "public MSG(MusicFile chunk){\n this.type = \"Response\";\n this.sender = \"Broker\";\n this.chunk = chunk;\n }", "title": "" }, { "docid": "5c5f5f5d5675eb16c6d4c3691d4d76ca", "score": "0.51770085", "text": "@java.lang.Override\n public int getChunkNumber() {\n return chunkNumber_;\n }", "title": "" }, { "docid": "389afcca06cbdd5274a873f01c8e095d", "score": "0.5156225", "text": "@Test\n public void testSeekReadUnknownLength() throws Exception {\n tstSeekRead(expectedBytes, new UnknownLengthSeekableStream(testFile), 50);\n }", "title": "" }, { "docid": "a361ed1758a399c75217aa1e402177e2", "score": "0.51542276", "text": "@java.lang.Override\n public edu.usfca.cs.dfs.proto.Message.Node2Client.RetrieveChunkRespondOrBuilder getRetrieveChunkRespondOrBuilder() {\n if (msgCase_ == 1) {\n return (edu.usfca.cs.dfs.proto.Message.Node2Client.RetrieveChunkRespond) msg_;\n }\n return edu.usfca.cs.dfs.proto.Message.Node2Client.RetrieveChunkRespond.getDefaultInstance();\n }", "title": "" }, { "docid": "4bbd42a6c8fa8d541683f002a5532d3a", "score": "0.5141807", "text": "default Future<@Nullable Response> cfLoadchunk(List<String> args) {\n return send(Command.CF_LOADCHUNK, args.toArray(new String[0]));\n }", "title": "" }, { "docid": "5ce7916113437b7170691e484eaf329c", "score": "0.5140543", "text": "public void initRestoreResponseState(String protocolVersion, String hash, String filepath, String chunkNo) {\n\t\t\n\t\tthis.protocolVersion = protocolVersion;\n\t\tthis.filepath = filepath;\n\t\tthis.hashHex = hash;\n\t\tthis.currentChunkNo = Long.parseLong(chunkNo);\n\t}", "title": "" }, { "docid": "fe115edfdb606543454f69fc7f1c8f4f", "score": "0.5128285", "text": "public edu.usfca.cs.dfs.proto.Message.Server2Client.RetrieveFileResponse.ChunkPossiblePosition.Builder addChunkPossiblePositionBuilder(\n int index) {\n return getChunkPossiblePositionFieldBuilder().addBuilder(\n index, edu.usfca.cs.dfs.proto.Message.Server2Client.RetrieveFileResponse.ChunkPossiblePosition.getDefaultInstance());\n }", "title": "" }, { "docid": "700ed478d185dd42672567c1ca2e1615", "score": "0.51254445", "text": "@java.lang.Override\n public boolean hasRetrieveFileResponse() {\n return msgCase_ == 3;\n }", "title": "" }, { "docid": "c8d59ea63b5648271bd6fd82e43808cf", "score": "0.5124263", "text": "@Override\n public void DownloadBegin(){\n }", "title": "" }, { "docid": "7f468f7c95bafe043c80c3f6c3572527", "score": "0.5123999", "text": "public interface IChunkBody extends IChunk{\n /**\n * 获取头部大小\n */\n int getSize();\n}", "title": "" } ]
d234b31192457e4f2e37e21bba336b42
Gets the step Number based on V
[ { "docid": "aca7e243074c6a64fc8502d78c8986ae", "score": "0.8086759", "text": "public int getStepNumberV() {\n return stepNumberV;\n }", "title": "" } ]
[ { "docid": "f4e8e66ff8ca9621e35147bddd1398a6", "score": "0.6455385", "text": "int getStep();", "title": "" }, { "docid": "9fddf910418ad6d70cf9764631431e85", "score": "0.64079666", "text": "double getStep();", "title": "" }, { "docid": "517ff23fdacb08d1367f10b15bbdea30", "score": "0.62176", "text": "int getStepIndex();", "title": "" }, { "docid": "9ca03a4d87bad5e99f86c3b775a9b1cb", "score": "0.60185444", "text": "public int getNumV()\n {\n return numV;\n }", "title": "" }, { "docid": "6d0836e7edd93e9dacabbded52cda915", "score": "0.5938611", "text": "public long getStep() {\n if (stepValues == null || current < 0 || \n stepValues.length <= current) return 500;\n else return stepValues[current];\n }", "title": "" }, { "docid": "80f143202b0cdb2cbb6abf171a082bef", "score": "0.5935482", "text": "public int getStep()\n {\n \treturn step;\n }", "title": "" }, { "docid": "4c103119e22d0d8e5cd5aa0972eb68ef", "score": "0.59251875", "text": "public Integer getStep() {\n return step;\n }", "title": "" }, { "docid": "4c103119e22d0d8e5cd5aa0972eb68ef", "score": "0.59251875", "text": "public Integer getStep() {\n return step;\n }", "title": "" }, { "docid": "141feecf8bcf73ed07f3ce82767b7d99", "score": "0.58926755", "text": "public VectorStep getStep() {\n return VectorStep.this;\n }", "title": "" }, { "docid": "edc80e83f436c3a5d9e13c1b97a22fe3", "score": "0.5875092", "text": "int getSteps();", "title": "" }, { "docid": "e70eb631eb16774e814c79cc3573e56b", "score": "0.5817335", "text": "public int getStepNumberU() {\n return stepNumberU;\n }", "title": "" }, { "docid": "ac72ebca93611e58ac21aa7222fd3b41", "score": "0.5814286", "text": "public int getStep() {\n return step_;\n }", "title": "" }, { "docid": "98f7a2190b9fdf11ca350f98ad69b277", "score": "0.57968324", "text": "public final double getStep()\n\t{\n\t\treturn getJso().getStep();\n\t}", "title": "" }, { "docid": "e4ed92b105be366fa22aa284fc8192c0", "score": "0.57714313", "text": "public abstract int getCurrentStepNo();", "title": "" }, { "docid": "0e03712e8ef1b3cb505c7068849c48e1", "score": "0.5768984", "text": "public UniqueString getStepNumber() {return stepNumber ;}", "title": "" }, { "docid": "54f12618403bcf97485fe43c6b41a7e9", "score": "0.5764561", "text": "public double maxStep()\n\t{\n\t\treturn Math.max(hStep, vStep);\n\t}", "title": "" }, { "docid": "7f6411db117e32a85ae8309f255a6bbc", "score": "0.5761638", "text": "public int getStep() {\r\n\t\treturn step;\r\n\t}", "title": "" }, { "docid": "6216487a054f45fdf228d290f6082798", "score": "0.57184356", "text": "public int getStep() {\n return step_;\n }", "title": "" }, { "docid": "e07f2b28e4fe935ae792dc64f0be8645", "score": "0.5717069", "text": "public double getStep() {\n return step_;\n }", "title": "" }, { "docid": "55eadd7ea9e4c565b29f638f5e8e52d3", "score": "0.5672745", "text": "float getV();", "title": "" }, { "docid": "15944804c4dce2ff4d62a3b2118ba0f5", "score": "0.5646105", "text": "public double getStep() {\n return step_;\n }", "title": "" }, { "docid": "7d45b2eae9a1979fc4279d80f927c397", "score": "0.559484", "text": "public int getDegree(int v);", "title": "" }, { "docid": "7d45b2eae9a1979fc4279d80f927c397", "score": "0.559484", "text": "public int getDegree(int v);", "title": "" }, { "docid": "b76235fd99d697655eef0e2d46f82380", "score": "0.5562315", "text": "public double getV() {\n\t\treturn v;\n\t}", "title": "" }, { "docid": "8eb88228e24e2ef85a760b5603ed1dc3", "score": "0.55595917", "text": "public double getV() {\n return v;\n }", "title": "" }, { "docid": "055806fd38a316ee412a83634744d2ef", "score": "0.5551293", "text": "public double getIntervalV() {\n return intervalV;\n }", "title": "" }, { "docid": "c6863b6224b28ecc5f84b328970f5fd2", "score": "0.5504315", "text": "long getStepMs();", "title": "" }, { "docid": "8121a347097ef5fee1c31a77787e6009", "score": "0.54913723", "text": "private int ceil(double i, int v){\n\t\treturn (int)Math.ceil(i/v) * v;\n\t}", "title": "" }, { "docid": "cc1abbdbf80b25525434708f07cf4583", "score": "0.54558575", "text": "public <X, Y> ConversionStep<X, Y> getStep(int index);", "title": "" }, { "docid": "1e22b69bf627cb2a9be6235e468165b7", "score": "0.54070884", "text": "public LocInGraph getStartingV() {\n\t\treturn _startingV;\n\t}", "title": "" }, { "docid": "13c393422ec69e9c0edb54c7faf79908", "score": "0.5394356", "text": "public int getTotalStepCount();", "title": "" }, { "docid": "37161f7f6038fbf96cc1681e6a69dda2", "score": "0.537963", "text": "java.lang.String getStep();", "title": "" }, { "docid": "62ad152a516238e16143dbbe0d782551", "score": "0.5372725", "text": "public int V()\n\t{\n\t\treturn V;\n\t}", "title": "" }, { "docid": "f06d791e7ee439735f48ff7a150bb7b5", "score": "0.5370449", "text": "public int V() {\n return V;\n }", "title": "" }, { "docid": "f06d791e7ee439735f48ff7a150bb7b5", "score": "0.5370449", "text": "public int V() {\n return V;\n }", "title": "" }, { "docid": "f06d791e7ee439735f48ff7a150bb7b5", "score": "0.5370449", "text": "public int V() {\n return V;\n }", "title": "" }, { "docid": "1c5e6e8c388a0bb43e4d762fd451e377", "score": "0.53500164", "text": "public abstract State getStep(int step);", "title": "" }, { "docid": "f24904ead67957dbf7149d9a7c6af91d", "score": "0.53086966", "text": "public float getV() {\n return v_;\n }", "title": "" }, { "docid": "5dbf2981e155c4acef2413586358fb04", "score": "0.529977", "text": "public float getV() {\n return v_;\n }", "title": "" }, { "docid": "eeba651730b95803b3214e0737a10526", "score": "0.5298974", "text": "public int getNumberOfSteps(){\n \n return numberOfSteps;\n\n }", "title": "" }, { "docid": "4b551464ef77fbe49337b2f716cef45e", "score": "0.52839535", "text": "public int getStepCount() {\n return step_.size();\n }", "title": "" }, { "docid": "8f0742251037d721ec460cb152b39301", "score": "0.527734", "text": "private int floor(double i, int v){\n\t\treturn (int)Math.floor(i/v) * v;\n\t}", "title": "" }, { "docid": "daa2d391be8f8fcbc6b103a46e1cc509", "score": "0.5263706", "text": "public int getSteps () {\n return steps;\n }", "title": "" }, { "docid": "e1b46c68d8c4446a78fc5d41a30a2025", "score": "0.5224701", "text": "public int getSteps() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "be8db14673305c1ddc415c03c0b64f97", "score": "0.52193743", "text": "public int getSteps() {\n return steps;\n }", "title": "" }, { "docid": "52b9a6444d15b09ecd6e3f8cb0ca2379", "score": "0.52169573", "text": "public abstract int getPredecessor(int v);", "title": "" }, { "docid": "a1f8923eba9b1cd17220008b5ed278be", "score": "0.5201177", "text": "public int V() { return V; }", "title": "" }, { "docid": "d48917bd2b35d8e5a51696a1760c7444", "score": "0.5187865", "text": "public long getCurrentStep() {\r\n return currentStep;\r\n }", "title": "" }, { "docid": "25420e749cafa8ec279d37bfcaf96267", "score": "0.51870763", "text": "public int V(){\n return V;\n }", "title": "" }, { "docid": "1436a4e044532a9e9f8b50a44c3fac49", "score": "0.51811516", "text": "void step (double stepsize);", "title": "" }, { "docid": "eb7689212469cba831eeedbb5dee2084", "score": "0.5178487", "text": "private void afficheV(double[][] V) {\n\t\t\n\t\tfor (int i=0 ; i<this.nbStates ; i++) {\n\t\t\t\n\t\t\tif (i%this.size_x==0) {\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tSystem.out.print( (double)(Math.round( V[i][0] * 10))/10+\" \");\t\t\t\n\t\t\t\n\t\t}System.out.println();\t\n\t}", "title": "" }, { "docid": "2fd6616e9831052c8dcfd534b46ab55c", "score": "0.51739657", "text": "public int getFrameNumber(VideoPanel vidPanel) {\n // needed to set layout position correctly on trails\n return VectorStep.this.n;\n }", "title": "" }, { "docid": "e65a90eefc82587dfc8da7b188b118a3", "score": "0.5162503", "text": "public double getStepLength() {\n return (stepLength);\n }", "title": "" }, { "docid": "b2bc54c19eb07e111a7d794715742ac6", "score": "0.5138527", "text": "public float getStepX() {\n return stepX;\n }", "title": "" }, { "docid": "4cb4334b06d6f80f53b7095143848dc2", "score": "0.51253504", "text": "public int ceil(T v) {\n return Boundary.CEIL.apply(find(v));\n }", "title": "" }, { "docid": "3a352034aecff38df53ee93f8d96c8c4", "score": "0.5124904", "text": "@Override\n public Object getPreviousValue() {\n Double num;\n this.setStepSize(getPreviousStepSize());\n\n num = new Double(this.getNumber().doubleValue() - this.getStepSize().doubleValue());\n\n // check lower bound if set\n if ((this.getMinimum() != null) && this.getMinimum().compareTo(num) > 0) {\n num = null;\n }\n\n return num;\n }", "title": "" }, { "docid": "2f9c5045cd1763863fc445bfa51f4818", "score": "0.51155", "text": "public int from() {\n return v;\n }", "title": "" }, { "docid": "8df513233bf7faa78d7ba064cf75352d", "score": "0.5105837", "text": "public int step(int from, int activation);", "title": "" }, { "docid": "8fabf5b01d2df3dc8253108f02e2806c", "score": "0.5103278", "text": "double getOptimizationStep();", "title": "" }, { "docid": "6514e0361686e19bf653ec765d3f114b", "score": "0.5078411", "text": "@Override\n public Object getNextValue() {\n Double num;\n this.setStepSize(getNextStepSize());\n\n num = new Double(this.getNumber().doubleValue() + this.getStepSize().doubleValue());\n\n // check upper bound if set\n if ((this.getMaximum() != null) && this.getMaximum().compareTo(num) < 0) {\n num = null;\n }\n\n return num;\n }", "title": "" }, { "docid": "2ded1f0efc697c70a90b6d84eb6eecb4", "score": "0.5067609", "text": "public org.tensorflow.distruntime.LabeledStepStats getStep(int index) {\n return step_.get(index);\n }", "title": "" }, { "docid": "d6762ddd3ce06fa15c938b0ac82ef85e", "score": "0.506018", "text": "public long[] getSteps()\n {\n return stepValues;\n }", "title": "" }, { "docid": "21f05111a3885dcaba652bc07caf6786", "score": "0.5057246", "text": "public int floor(T v) {\n return Boundary.FLOOR.apply(find(v));\n }", "title": "" }, { "docid": "60b66dc983d9cad543d8a8d4ea44324d", "score": "0.504802", "text": "public int degree(int v) {\n validateVertex(v);\n return adj(v).size();\n }", "title": "" }, { "docid": "507deb5f7312e2ee837b1bfc5c33f91f", "score": "0.50467414", "text": "public Integer getStepInterval() {\n return stepInterval;\n }", "title": "" }, { "docid": "290bfa239ec8b8b29ed7ae1ce3000406", "score": "0.5026482", "text": "double getQuickStepW();", "title": "" }, { "docid": "2af87b71c4e08490f03dfe2e24f4d600", "score": "0.50198996", "text": "@Override\n public double getHHV(int temp) {\n switch (temp) {\n case T25:\n return 2706.4;\n case T20:\n return 2707.4;\n case T15:\n return 2708.3;\n case T0:\n return 2711.1;\n }\n return -1;\n }", "title": "" }, { "docid": "4b2675ac60bbfc5f7cf603424f4e9136", "score": "0.5013374", "text": "public double[][] getV() {\n return v_dir;\n }", "title": "" }, { "docid": "aa7fd484b11cfae0b18811f9ed5ebebe", "score": "0.50098574", "text": "private int getResult(int p, double q, double start, int v, int h) {\n\tdouble mod = (p - start) % q;\n\tif (Math.abs(mod - q) < 0.0001 || mod < 0.0001) {\n\t double div = (p - start) / q;\n\n\t int result = (int) Math.floor(div);\n\n\t if (Math.abs(mod - q) < 0.0001) {\n\t\tresult++;\n\t }\n\n\t if (v == 0) {\n\t\tif (h == 0) {\n\t\t if (result % 2 == 0) {\n\t\t\treturn 2;\n\t\t } else {\n\t\t\treturn 1;\n\t\t }\n\t\t} else {\n\t\t if (result % 2 == 0) {\n\t\t\treturn 1;\n\t\t } else {\n\t\t\treturn 2;\n\t\t }\n\t\t}\n\t } else {\n\t\tif (h == 0) {\n\t\t if (result % 2 == 1) {\n\t\t\treturn 0;\n\t\t } else {\n\t\t\treturn getResult(p, q, 0, 1, 0);\n\t\t }\n\t\t} else {\n\t\t if (result % 2 == 0) {\n\t\t\treturn 0;\n\t\t } else {\n\t\t\treturn getResult(p, q, 0, 1, 0);\n\t\t }\n\t\t}\n\t }\n\t} else {\n\t double div = (p - start) / q;\n\t int result = (int) Math.floor(div);\n\t double top = (mod / q) * p;\n\t double newStart = ((p - top) / top) * mod;\n\n\t if (v == 0 && h == 0) {\n\t\tif (result % 2 == 1) {\n\t\t return getResult(p, q, newStart, 1, 0);\n\t\t} else {\n\t\t return getResult(p, q, newStart, 1, 1);\n\t\t}\n\n\t } else if (v == 0 && h == 1) {\n\t\tif (result % 2 == 1) {\n\t\t return getResult(p, q, newStart, 1, 1);\n\t\t} else {\n\t\t return getResult(p, q, newStart, 1, 0);\n\t\t}\n\n\t } else if (v == 1 && h == 0) {\n\t\tif (result % 2 == 1) {\n\t\t return getResult(p, q, newStart, 0, 0);\n\t\t} else {\n\t\t return getResult(p, q, newStart, 0, 1);\n\t\t}\n\n\t } else {\n\t\tif (result % 2 == 1) {\n\t\t return getResult(p, q, newStart, 0, 1);\n\t\t} else {\n\t\t return getResult(p, q, newStart, 0, 0);\n\t\t}\n\n\t }\n\t}\n\n }", "title": "" }, { "docid": "4d6b1700aefd5ea0d5d8e0cf3fe91a6c", "score": "0.5007841", "text": "public int getNumSteps()\n\t{\n\t\treturn myNumSteps;\n\t}", "title": "" }, { "docid": "1204820a856a10a44af87adde6887572", "score": "0.5007803", "text": "private int calculateStep() {\n return (mActiveSlotsAmount > 21) ? 11 : (mActiveSlotsAmount > 14) ? 9 : 7;\n }", "title": "" }, { "docid": "c9e722f460dc2c1bb43f1c4440f7d424", "score": "0.5005906", "text": "protected void p_Index(){\n\t\tjP = (int) Math.floor((PL-vmin.getValue())/(vmax.getValue()-vmin.getValue())*(vcount-1));\n\t}", "title": "" }, { "docid": "d2bc5726ed9555ce2fc42c85c7f3cd80", "score": "0.50057596", "text": "public Integer getStepOrder() {\n return stepOrder;\n }", "title": "" }, { "docid": "b8fc03b1bf19756b1889aea0f1918b91", "score": "0.4997191", "text": "public int nextStep() {\n Random r = new Random();\n return r.nextInt((steps - 1) + 1) + 1;\n }", "title": "" }, { "docid": "91fbc27cb72daf505cd99abf36cd27f8", "score": "0.49881852", "text": "public int getStepLineNumber()\n\t{\n\t\treturn this.stepLineNumber;\n\t}", "title": "" }, { "docid": "91fbc27cb72daf505cd99abf36cd27f8", "score": "0.49881852", "text": "public int getStepLineNumber()\n\t{\n\t\treturn this.stepLineNumber;\n\t}", "title": "" }, { "docid": "893218734804e0254e71e6fa2fed62ed", "score": "0.49864805", "text": "public int stepForward() {\n return step(1);\n }", "title": "" }, { "docid": "b8dfaed2e3061ea61c604e0e8a206126", "score": "0.49819204", "text": "public double getLimitMinV() {\n return limitMinV;\n }", "title": "" }, { "docid": "d537499aaf55a422d6d096cd18c71828", "score": "0.4958088", "text": "public abstract int getStepSize();", "title": "" }, { "docid": "0f1b0ff7c366efdccad87e5ce49e884f", "score": "0.49542826", "text": "@Override\n public double getHHV(int temp) {\n switch (temp) {\n case T25:\n return 3947.89;\n case T20:\n return 3948.84;\n case T15:\n return 3949.81;\n case T0:\n return 3952.72;\n }\n return -1;\n }", "title": "" }, { "docid": "a1d0ee3961a13d17f9a0404e0bc7d4cc", "score": "0.4948238", "text": "public void setV(double v) {\n\t\tthis.v = v;\n\t}", "title": "" }, { "docid": "0444d595116dc14077b23b10505f8686", "score": "0.4947998", "text": "public int getDegree(int v) \n\t{\n //TO-DO\n if(this.isDirected)\n {\n int inDegree = 0;\n int outDegree = 0;\n for(int vertice = 0; vertice < vertices; vertice++)\n {\n if(matrix[v][vertice] > -1)\n {\n outDegree++;\n }\n if(matrix[vertice][v] > -1)\n {\n inDegree++;\n }\n }\n return inDegree + outDegree;\n }\n return this.getNeighbors(v).size(); // if it is an undirected graph the direction need not be considered\n\t}", "title": "" }, { "docid": "fa9fb477ba3677d265cf7e7e169c81f1", "score": "0.49310657", "text": "private int calcInVC() {\r\n\t\t//find the next available input VC\r\n\t\tfor(int i = 1;i < Integer.MAX_VALUE;i++){\r\n\t\t\tif(!VCtoVC.containsKey(i)){\r\n\t\t\t\treturn i;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn -1;\r\n\t}", "title": "" }, { "docid": "393488c6eb2fecc23ebc3ca9cb46f567", "score": "0.49295858", "text": "@Override\n public int getCurrentSteps() {\n boolean bl = true;\n if (this.getType() != 1) {\n bl = false;\n }\n a.I(bl);\n return this.getInteger(\"current_steps\");\n }", "title": "" }, { "docid": "e7bef9e2b86e92cce34fcec592f4037e", "score": "0.49081185", "text": "int getQuickStepNumIterations() ;", "title": "" }, { "docid": "6960150a7f454a0c0400b225074d6bdb", "score": "0.49069148", "text": "public HashMap<Integer, Double> getV() {\n return myNi;\n }", "title": "" }, { "docid": "62a18d80489f25eabf1e6fd52b2543a2", "score": "0.4869314", "text": "public int getSelectionStep() { return selection_step; }", "title": "" }, { "docid": "2fb6d1ad4829b3c4ce826c3befda47a6", "score": "0.48689398", "text": "public Builder setStep(int value) {\n bitField0_ |= 0x00000001;\n step_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "c982dabcdfb7b6a86c548c6a7934a8b3", "score": "0.4868893", "text": "public int stepBackward() {\n return step(-1);\n }", "title": "" }, { "docid": "828bfee39ddbcd64ca2734f29c1ac487", "score": "0.486838", "text": "private static Object div(Number v, Number w)\n { return v.doubleValue() / w.doubleValue(); }", "title": "" }, { "docid": "a1de8199573d6bdd10aa0e0c28b63226", "score": "0.4864709", "text": "public void setStep(Integer step) {\n this.step = step;\n }", "title": "" }, { "docid": "a1de8199573d6bdd10aa0e0c28b63226", "score": "0.4864709", "text": "public void setStep(Integer step) {\n this.step = step;\n }", "title": "" }, { "docid": "13b20c2b6cbb70bd002b069f59a359d2", "score": "0.48632073", "text": "public int d(V v) {\n return -v.getHeight();\n }", "title": "" }, { "docid": "4897943818889c5bf1a3e4961e89cc54", "score": "0.4863074", "text": "public String nextStep();", "title": "" }, { "docid": "bbad99f2cc62a1b72d977bc30bf2b241", "score": "0.48600897", "text": "private int getTodayStepOverKitKat(SensorEvent event) {\n if (mCurrentSteps < 1) {\n // initial value\n mCurrentSteps = (int) event.values[0];\n }\n\n // Calculate steps taken based on first counter value received.\n mSteps = (int) event.values[0] - mCurrentSteps;\n\n // updateSteps step from database\n DataBase db = DataBase.instance();\n long today = DataBase.getToday();\n\n int todaySteps = db.getSteps(today);\n if (todaySteps == -1) {\n todaySteps = mSteps;\n db.add(today, mSteps, 0);\n } else {\n todaySteps += mSteps;\n db.updateSteps(today, todaySteps);\n }\n db.close();\n\n return todaySteps;\n }", "title": "" }, { "docid": "be56aeef679dd5e054a8ad8676330edf", "score": "0.48500973", "text": "public double getSimStep() {\n\t\treturn stepLength;\n\t}", "title": "" }, { "docid": "ad2cfeb3d2ade487fe833ee726986241", "score": "0.48494214", "text": "public void incCurrentStep() {\r\n this.currentStep++;\r\n }", "title": "" }, { "docid": "0c33f81e0947b053a8f3546dfbe73ce5", "score": "0.48435935", "text": "public final native void setVerticalStep(double step) /*-{\n\t\t\tthis.vStep = step;\n\t\t}-*/;", "title": "" }, { "docid": "3ca514b0c502d4673047f521901f9096", "score": "0.48427555", "text": "private static Object pos(Number v) { return v; }", "title": "" }, { "docid": "45387f3021bc39d94dddc73c0ff71c27", "score": "0.48413524", "text": "public int inDegree(Vertex<E> v){\n\t\treturn(v.getInDegree());\n\t}", "title": "" } ]
9b38029f61ba0ee870e7198c5434c14e
Calculate the ShannonWeaver equitability. This is the diversity normalized to a score between 0 and 1. Treat the data as proportions (each proportion data point Pi), calculate the sum of Pi log (Pi). Divide by the log (number of data points).
[ { "docid": "82beaafeb292d1162565da72b08c6f47", "score": "0.7238606", "text": "public static double equitability (final double [] data) {\n\t\tdouble diversity = diversity(data);\n\t\tdouble equitability = diversity/ Math.log(data.length);\n\t\treturn equitability;\n\t}", "title": "" } ]
[ { "docid": "b83fb2f8f9ca4fb21dc0f89cd65d19fe", "score": "0.62169945", "text": "private double entropy(List<Instance> instances) {\n if (instances.isEmpty()) return 0;\n double result = 0;\n Map<Double, Integer> summary = summarizeValues(valuesByAttribute(instances, instances.get(0).classAttribute()));\n for (Integer val : summary.values()) {\n double proportion = val * 1.0 / instances.size();\n result -= proportion * Math.log(proportion) / Math.log(2);\n }\n return result;\n }", "title": "" }, { "docid": "44d0cb192a111729348cfe12a2f19fca", "score": "0.6148835", "text": "public static double diversity (final double [] data) {\n\t\tdouble [] proportions = getProportions(data);\n\t\tdouble diversity = Arrays.stream(proportions).map(x -> -x * Math.log(x)).sum();\n\t\treturn diversity;\n\t}", "title": "" }, { "docid": "76b1d5aea70f59dffd2b6a18d51ce173", "score": "0.5699965", "text": "public double ComputeFitnessScore(){\n return (18*genes[0]*genes[1]) + (16 * genes[1]) - ((3*genes[0]*genes[0])+(2*genes[1]*genes[1]));\n }", "title": "" }, { "docid": "492bac1fb47f7e38f2b3685ab03d705e", "score": "0.56518084", "text": "public static double equitability (final int [] counts) {\n\t\tdouble [] data = Arrays.stream(counts).asDoubleStream().toArray();\n\t\treturn equitability(data);\n\t}", "title": "" }, { "docid": "73292a1991f91072888a609ef0b4ae05", "score": "0.5620394", "text": "public double[] runTest() {\n\t\tallVariable = data.buildAllVariable();\n//\t\ttargetGeneSetVariable = targetGeneSetVariable.recreate(allVariable);\n\t\ttargetGeneSetVariable.recreate(allVariable);\n\n\t\tfinalTargetGeneAmount = targetGeneSetVariable.size();\n\t\t\n\t\t// Collect structure distributions\n\t\tstarttime = System.currentTimeMillis();\n\t\tStructureProbabilityDistributionEvaluator evaluator = new StructureProbabilityDistributionEvaluator(isConsideringMarkovBlanket, isConsideringAllStructure, independencyPValueThreshold, data, allVariable, targetGeneSetVariable, sampleClass, numberOfProbableStructure, equivalentSampleSize, probabilityPowerFactor, maxParentAmount, priorWeight, edgeDirFixed, includeNeighbor, priorDirectionality, resamplingRate);\n\t\tdouble[][] distribution = evaluator.getProbabilityDistribution();\n\t\t\n//\t\tSystem.out.println(\"Calculating JS divergence\\n\"); \n\n\t\tJS = JensenShannon.divergence(distribution[0], distribution[1]) / log2; // JS = [0, 1];\n\t\tendtime = System.currentTimeMillis() - starttime;\n\t\tSystem.out.println(\"Total time:\" + endtime + \"ms\"); \t\n//\t\tSystem.out.println(JS);\n\t\t\n\t\tdouble[] permutedJS = new double[numberOfPermutation];\n\t\tint caseLargerThanEqualToJS = 0;\n\t\tint nPermutationExit = (int)Math.ceil(numberOfPermutation * pValueThreshold * 2); // 2 is just safety factor\n\n\t\tif (!isSilent) {\n\t\t\tSystem.out.println(\"JS:\\t\" + JS);\n\t\t\tSystem.out.println(\"Running permutation...\");\n\t\t}\n\t\t\n\t\t// Collect JS divergences with randomly permuted sample labels.\n\t\tif (RuntimeConfiguration.IS_WRITING_LOG) {\n\t\t\ttry {\n\t\t\t\t// TODO: need to re-write this part to be consistent with the other part.\n\t\t\t\tBufferedWriter bw = new BufferedWriter(new FileWriter(\"log.txt\"));\n\t\t\t\tint permuted = 0;\n\n\t\t\t\tfor (int i = 0; i < numberOfPermutation; i++) {\n\t\t\t\t\tSampleClass permutedClass = sampleClass.permutedCopy();\n\t\t\t\t\tStructureProbabilityDistributionEvaluator permutationEvaluator = new StructureProbabilityDistributionEvaluator(isConsideringMarkovBlanket, isConsideringAllStructure, independencyPValueThreshold, data, allVariable, targetGeneSetVariable, permutedClass, numberOfProbableStructure, equivalentSampleSize, probabilityPowerFactor, maxParentAmount, priorWeight, edgeDirFixed, includeNeighbor, priorDirectionality, resamplingRate);\n\t\t\t\t\tdouble[][] permutedDistribution = permutationEvaluator.getProbabilityDistribution();\n\t\t\t\t\tpermutedJS[i] = JensenShannon.divergence(permutedDistribution[0], permutedDistribution[1]) / log2;\n\t\t\t\t\t\n\t\t\t\t\tif (RuntimeConfiguration.IS_DEBUG_MODE_LV2)\n\t\t\t\t\t\tSystem.out.print(\"Permutation \" + (i + 1) + \":\\t\" + permutedJS[i]);\n\t\t\t\t\t\n\t\t\t\t\tbw.write(\"Permutation \" + (i + 1) + \":\\t\" + permutedJS[i] + \"\\n\");\n\n\t\t\t\t\tif (permutedJS[i] >= JS) {\n\t\t\t\t\t\tcaseLargerThanEqualToJS++;\n\n\t\t\t\t\t\tif (RuntimeConfiguration.IS_DEBUG_MODE_LV2)\n\t\t\t\t\t\t\tSystem.out.println(\"\\t\" + caseLargerThanEqualToJS + \"th Hit\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (RuntimeConfiguration.IS_DEBUG_MODE_LV2)\n\t\t\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tpermuted++;\n\t\t\t\t}\n\n\t\t\t\tpValue = ((double) caseLargerThanEqualToJS)/((double) permuted);\n\t\t\t\tpermutedAmount = permuted;\n\t\t\t\tSystem.out.println(\"Statistic:\\t\" + JS + \"\\tp-value:\\t\" + pValue);\n\t\t\t\tbw.write(\"Statistic:\\t\" + JS + \"\\tp-value:\\t\" + pValue + \"\\n\");\n\t\t\t\tbw.close();\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(e);\n\t\t\t\tSystem.exit(-1);\n\t\t\t}\n\t\t} else {\n\t\t\tint permuted = 0;\n\t\t\tfor (int i = 0; i < numberOfPermutation; i++) {\n\t\t\t\tSampleClass permutedClass = sampleClass.permutedCopy();\n\t\t\t\tStructureProbabilityDistributionEvaluator permutationEvaluator = new StructureProbabilityDistributionEvaluator(isConsideringMarkovBlanket, isConsideringAllStructure, independencyPValueThreshold, data, allVariable, targetGeneSetVariable, permutedClass, numberOfProbableStructure, equivalentSampleSize, probabilityPowerFactor, maxParentAmount, priorWeight, edgeDirFixed, includeNeighbor, priorDirectionality, resamplingRate);\n\t\t\t\tdouble[][] permutedDistribution = permutationEvaluator.getProbabilityDistribution();\n\t\t\t\tpermutedJS[i] = JensenShannon.divergence(permutedDistribution[0], permutedDistribution[1]) / log2;\n\n\t\t\t\tif (Double.isNaN(permutedJS[i])) {\n\t\t\t\t\tpermutedJS[i]=0;\n//\t\t\t\t\tSystem.out.print(\"NaN JS likely from 2 identical networks\\n\");\n\t\t\t\t};\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tif (!isSilent)\n\t\t\t\t\tSystem.out.print(\"Permutation \" + (i + 1) + \":\\t\" + permutedJS[i]);\n\t\t\t\t\n\t\t\t\tpermuted++;\n\t\t\t\t\n\t\t\t\tif (permutedJS[i] >= JS) {\n\t\t\t\t\tcaseLargerThanEqualToJS++;\n\t\t\t\t\t\n\t\t\t\t\tif (!approximatePermutations & quickPermutationEnabled & permuted > 100 &\n\t\t\t\t\t\t\t(caseLargerThanEqualToJS > nPermutationExit)) \n\t\t\t\t\t\tbreak; // permutation stops since there is no possibility to go below pValueThreshold;\n\t\t\t\t\tif (!isSilent)\n\t\t\t\t\t\tSystem.out.println(\"\\t\" + caseLargerThanEqualToJS + \" hit\");\n\t\t\t\t} else {\n\t\t\t\t\tif (!isSilent)\n\t\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tpValue = caseLargerThanEqualToJS/((double) permuted);\n\t\t\tpermutedAmount = permuted;\n\t\t\t\n\t\t\tif ((permuted==numberOfPermutation) && (approximatePermutations)) {\n\t\t\t\tJSmean = Stat.mean(permutedJS);\n\t\t\t\tJSvariance = Stat.variance(permutedJS);\n\t\t\t\talpha = (((1-JSmean)/JSvariance) - (1/JSmean))*JSmean*JSmean;\n\t\t\t\tbeta = alpha*((1/JSmean)-1);\n\t\t\t\tSystem.out.println(\"JSmean:\" + JSmean + \" JSvariance:\" + JSvariance);\n\t\t\t\tSystem.out.println(\"alpha:\" + alpha + \" beta:\" + beta);\n\t\t\t\tbetaderivedpValue = 1-Stat.betaCDF(alpha,beta,JS);\n\t\t\t\tpValue=betaderivedpValue;\n\t\t\t\tSystem.out.println(\" beta-derived JS p-val:\" + betaderivedpValue);\n\t\t\t}\n\t\t\t\n\t\t\tif (!isSilent)\n\t\t\t\tSystem.out.println(\"Statistic:\\t\" + JS + \"\\tp-value:\\t\" + pValue);\n\t\t}\n\n\t\tif (networkToBeWritten & (pValue < pValueThreshold))\n\t\t\tevaluator.writeNetworkToFile(targetGeneSetVariable.getName());\n\n double[] statistic = new double[3];\n statistic[0] = JS;\n statistic[1] = pValue;\n statistic[2] = permutedAmount; // in many cases, actual # of permutations << specified #\n\n\t\treturn statistic;\n\t}", "title": "" }, { "docid": "e621be8591ddb55312f43e038e19ca74", "score": "0.5619863", "text": "private double problemEntropy() {\n double sumNormalizedEntropy = 0.0;\n int nbUnboundBranchingVar = 0;\n for(int i = 0; i < variables.size(); i++) {\n if(!variables.get(i).isBound() && variables.get(i).isForBranching()){\n sumNormalizedEntropy += variables.get(i).entropy()/Math.log(variables.get(i).size());\n nbUnboundBranchingVar ++;\n }\n }\n return (nbUnboundBranchingVar == 0 ? 0.0 : sumNormalizedEntropy / nbUnboundBranchingVar);\n }", "title": "" }, { "docid": "1332e2b23b1ddf0da9a329c7616b13f3", "score": "0.5610177", "text": "public float PreciseHealth()\n\t{\n\t\treturn healf;\n\t}", "title": "" }, { "docid": "87a8edd144b95edc52ab5eb581a98951", "score": "0.56052625", "text": "private static double calcEntropy(ArrayList<Car> data){\n\n if(data.size() == 0){\n return 100000; //return something too high\n }else{\n //Calculate the instances of each category\n double[] sumOfEachCategory = new double[4]; //0:unacc 1:acc 2:good 3:v-good\n\n for(Car tempcar : data)\n {\n if(tempcar.getCategory().equals(\"unacc\")) {\n sumOfEachCategory[0]++;\n }else if(tempcar.getCategory().equals(\"acc\")){\n sumOfEachCategory[1]++;\n }else if(tempcar.getCategory().equals(\"good\")){\n sumOfEachCategory[2]++;\n }else if(tempcar.getCategory().equals(\"vgood\")){\n sumOfEachCategory[3]++;\n }\n }\n\n //We will store the probality of an instance belonging to each category\n double [] P = new double[4];\n //P[i] = P[C=c]\n for(int i = 0; i < 4; i++){\n\n P[i] = ((double)sumOfEachCategory[i])/data.size();\n System.out.println(\"P[i]: \"+P[i]);\n\n }\n\n double entropy = 0;\n //Entropy = ΣP(C=c)*logP(C=c)\n for(int i = 0; i < 4; i++){\n\n if(P[i] == 0) continue; //Because log(0) is not defined\n entropy -= P[i]*log2(P[i]);\n\n }\n System.out.println(\"Entropy: \"+entropy);\n return entropy;\n }\n }", "title": "" }, { "docid": "39ad505d08ee791de0eb2ee0c67ecde1", "score": "0.55431587", "text": "public static void main(String[] args) {\n\t\tint n = 5;\n\t\tint index = 0; // begins at 0!!!!\n\t\tdouble ss = (3*3);\n\t\tdouble order = 2;\n\t\tdouble maxcount = 3600d;\n\t\tdouble count[] = {600d,400,400,600,800};\n\t\n\t\t// pr array holden\n\t\tdouble pr[] = new double[n];\n\t\tfor (int i = 0; i <pr.length;i++) {\n\t\t\tpr[i] = (count[i]/maxcount);\n\t\t\tSystem.out.println(pr[i]);\n\t\t}\n\t\t\n\t\t\n\t\t/*\n\t\t * \n\t\t * \n\t\t * need to change\n\t\t * \t\t\t\t\t\t\t\t\tpr x1=1 * pr x2=0, \t*\tprx3=2, \t*\tx4=0\n\t\t * x1 = sum_p[1-i] where x1 = 1\n\t\t * \n\t\t * \n\t\t */\n\t\t//add\n\t\tdouble x1 = (pr[0]);\n\t\tdouble x2 = (pr[1]);\n\t\tdouble x3 = (pr[2]);\n\t\tdouble x4 = (pr[3]);\n\t\tdouble x5 = (pr[4]);\n\n\t\t//multi\n\t\tdouble prod_p = (.15123); \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\tdouble pr_this = pr[index];\n\t\tdouble count_q = count[index]; //\n\t\tdouble O_Exp = order/2;\n\t\t\n\t\t\n\t\t// hats\t\n\t\tdouble e_prime = log2(ss);\n\t\tdouble e_hat = 0.0;\n\t\tfor (int i = 0; i <count.length;i++) {\n\t\t\te_hat += ((count[i]/maxcount) * log2((maxcount/count[i])));\n\n\t\t}\n\t\tSystem.out.println(\"orded is:\t\" +order);\n\t\tSystem.out.println(\"e_prime is:\t\" +e_prime);\n\t\tSystem.out.println(\"e_hat is:\t\" +e_hat);\n\t\t\n\t\t// (E'/E)^(O/2)}\n\t\tdouble e_div = e_hat/e_prime;\n\t\tdouble e_exp = Math.pow(e_div, O_Exp);\n\n\t\tSystem.out.println(\"pr(this):\t\" +pr_this);\n\t\tSystem.out.println(\"pr(prod):\t\" +prod_p);\n\t\t\n\t\t// CHI SQ\n\t\tdouble chi_2 = ((Math.pow((pr_this - prod_p), 2))/prod_p); \n\t\tSystem.out.println(\"chi_squared:\t\" +chi_2);\n\t\t\n\t\t//{Chisquare / 2N}^{(E'/E)^(O/2)\n\t\tdouble chi_exp = Math.pow((chi_2/2), e_exp);\n\t\tSystem.out.println(\"chi_squared_pow:\t\" +chi_exp);\n\t\t\n\t\t//(1/PR){Chisquare / 2N}^{(E'/E)^(O/2)}\n\t\tdouble final_thing = (1/pr_this)*chi_exp;\n\t\tSystem.out.println(\"final lhs :\t\" +final_thing);\n\n\n\t\n\t\t\n\t\tSystem.out.print(\"rhs : \" + log2(pr_this/prod_p));\n\t\t\n\n\t}", "title": "" }, { "docid": "531006bd848443f253ec85b1dcd2ceb6", "score": "0.55422384", "text": "public static Double calculateShannonEntropy(List<List> documents) {\n Map<String, Long> termFrequencies = new HashMap<String, Long>();\n\n //number of words\n long numberOfTerms = 0;\n\n for(List<String> tokens: documents)\n for(String token: tokens){\n if(termFrequencies.containsKey(token))\n termFrequencies.put(token, termFrequencies.get(token)+1);\n else\n termFrequencies.put(token, 1l);\n\n numberOfTerms++;\n }\n\n //now for each term, calculate its probability of occurring\n double entropy = 0;\n Iterator it = termFrequencies.entrySet().iterator();\n\n\n while (it.hasNext()) {\n Map.Entry pair = (Map.Entry)it.next();\n\n\n double prob = (Long)pair.getValue()/(double)numberOfTerms; //one of the operands has to be a double\n entropy = entropy+ prob*Math.log(prob);\n\n }\n\n return entropy*-1;\n }", "title": "" }, { "docid": "849428e912b27006f5ba99d28110b22e", "score": "0.5505529", "text": "public abstract double[] logProbabilities();", "title": "" }, { "docid": "e3944e284aa3ae8772ff21111b4b4ad9", "score": "0.55023444", "text": "public double gain() {\n double s = 0;\n for (double odd : oddsList) {\n s += 1/odd;\n }\n return 1/s;\n }", "title": "" }, { "docid": "ec05d2c8998fdc4998b237963b122a1b", "score": "0.5444713", "text": "public double getFitness(){\r\n\t//\treturn this.numberTreated*(this.numberCured/this.numberTreated);\r\n\t\treturn (this.numberCured/this.numberTreated);\r\n\t}", "title": "" }, { "docid": "80f3ace9c39bc5cce3755223cc38708c", "score": "0.54439294", "text": "public static void sense(Cell[][] grid, char W, char N, char E, char S)\r\n {\r\n double total= 0.0;\r\n\r\n //Step 1: Change to decimal values and apply probabilities\r\n for(int row = 0; row < grid.length; row++)\r\n {\r\n for(int col = 0; col < grid[row].length; col++)\r\n {\r\n double value = ((grid[row][col].getValue()/100) * filter(grid, row, col, W, N, E, S));\r\n grid[row][col].setValue(value);\r\n }\r\n }\r\n\r\n //Step 2: Add all updated probabilities to normalize\r\n for(int row = 0; row < grid.length; row++)\r\n {\r\n for(int col = 0; col < grid[row].length; col++)\r\n {\r\n total += grid[row][col].getValue();\r\n }\r\n }\r\n\r\n //Step 3: Normalize and change back to percentage values\r\n for(int row = 0; row < grid.length; row++)\r\n {\r\n for(int col = 0; col < grid[row].length; col++)\r\n {\r\n grid[row][col].setValue((grid[row][col].getValue() / total) * 100);\r\n }\r\n }\r\n\r\n //Step 4 - Print resulting grid\r\n System.out.println(\"Filtering after Evidence [\" + W + \", \" + N + \", \" + E + \", \" + S + \"]\");\r\n printGrid(grid);\r\n }", "title": "" }, { "docid": "381c9d2368f59fe74c5df2971e47b474", "score": "0.54319054", "text": "public abstract double logProbability(int dimension);", "title": "" }, { "docid": "aeefc83a68936c6bb3d0d3591956bd82", "score": "0.5422906", "text": "@Override\n public double hesapla(){\n double a = 1;\n for (int i = 1; i <= sayi; i++) {\n a*=i; \n }\n return a; \n }", "title": "" }, { "docid": "ac88ab18c6dc028d38cc96a4c240f726", "score": "0.53997946", "text": "public double heuristica() {\n double dToEnd = haversineFormula(getLastVert(), objetive);\n return dToEnd / Math.ceil(speedMax);\n }", "title": "" }, { "docid": "3ca1993f970480894f6dff87a4158cc7", "score": "0.5374426", "text": "public void computeScores(double entropyWeight) {\n\t\tint u = 0;\n\t\tint v = 0;\n\t\tint x = 0;\n\t\tint j = 0;\n\t\tdouble d = 0;\n\t\tdouble s = 0;\n\t\tdouble norm = Math.pow(exponentialRate, currentScoreUpdateTimeStep - 1);\n\t\t// compute diffusion rank for users\n\t\tfor (u = 0; u < senderCount; u++) {\n\t\t\tif (!senders[u].diffusedFlag)\n\t\t\t\tcontinue;\n\t\t\tsenders[u].diffusionRank = (double) senders[u].nVisits / totalNVisits;\n\t\t}\n\t\tfor (v = 0; v < receiverCount; v++) {\n\t\t\tif (!receivers[v].infectedFlag)\n\t\t\t\tcontinue;\n\t\t\treceivers[v].diffusionRank = (double) receivers[v].nVisits / totalNVisits;\n\t\t}\n\t\t// compute virality for items\n\t\tIterator<Map.Entry<Integer, TemporalWeight>> inIter = null;\n\t\tMap.Entry<Integer, TemporalWeight> inPair = null;\n\t\tIterator<Map.Entry<Integer, HashMap<Integer, TemporalWeight>>> outIter = null;\n\t\tMap.Entry<Integer, HashMap<Integer, TemporalWeight>> outPair = null;\n\t\t// item virality\n\t\tlogger.info(\"----------- computing virality scores for items\");\n\t\tfor (x = 0; x < itemCount; x++) {\n\t\t\titems[x].virality = 0;\n\t\t\tif (!items[x].isDiffusedFlag)\n\t\t\t\tcontinue;\n\t\t\toutIter = items[x].diffusions.entrySet().iterator();\n\t\t\twhile (outIter.hasNext()) {\n\t\t\t\toutPair = outIter.next();\n\t\t\t\tu = outPair.getKey();\n\t\t\t\tinIter = outPair.getValue().entrySet().iterator();\n\t\t\t\ts = 0;\n\t\t\t\twhile (inIter.hasNext()) {\n\t\t\t\t\tinPair = inIter.next();\n\t\t\t\t\tv = inPair.getKey();\n\t\t\t\t\td = inPair.getValue().weight / norm;\n\t\t\t\t\ts += d * (1 - receivers[v].diffusionRank - senders[u].diffusionRank);\n\t\t\t\t}\n\t\t\t\titems[x].virality += s;\n\t\t\t}\n\t\t\titems[x].virality *= Math.pow(items[x].diffuserExponentialEntropy * items[x].infectorExponentialEntropy,\n\t\t\t\t\tentropyWeight);\n\t\t}\n\n\t\t// user virality\n\t\tlogger.info(\"----------- computing virality scores for senders\");\n\n\t\tfor (u = 0; u < senderCount; u++) {\n\t\t\tsenders[u].virality = 0;\n\t\t\tif (!senders[u].diffusedFlag)\n\t\t\t\tcontinue;\n\t\t\tfor (j = 0; j < senders[u].nItems; j++) {\n\t\t\t\tif (senders[u].nDiffusions[j] == 0)\n\t\t\t\t\tcontinue;\n\t\t\t\tx = senders[u].itemIndexes[j];\n\t\t\t\ttry {\n\t\t\t\t\tinIter = items[x].diffusions.get(u).entrySet().iterator();\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\tSystem.out.println(\"--------------------------------------------\");\n\t\t\t\t\tSystem.out.println(\"j = \" + j);\n\t\t\t\t\tSystem.out.println(\"x = \" + x);\n\t\t\t\t\tSystem.out.println(\"u = \" + u);\n\t\t\t\t\tSystem.out.println(\"nDiffusions = \" + senders[u].nDiffusions[j]);\n\t\t\t\t\tSystem.out.println(\"--------------------------------------------\");\n\t\t\t\t\tsenders[u].printProfile();\n\t\t\t\t\tSystem.out.println(\"--------------------------------------------\");\n\t\t\t\t\titems[x].printProfile();\n\t\t\t\t\tSystem.exit(-1);\n\t\t\t\t}\n\t\t\t\ts = 0;\n\t\t\t\twhile (inIter.hasNext()) {\n\t\t\t\t\tinPair = inIter.next();\n\t\t\t\t\tv = inPair.getKey();\n\t\t\t\t\td = inPair.getValue().weight / norm;\n\t\t\t\t\ts += d * (1 - receivers[v].diffusionRank\n\t\t\t\t\t\t\t- 0.5 * items[x].virality / (items[x].totalNExponentialDiffusions / norm));\n\t\t\t\t}\n\t\t\t\tsenders[u].virality += s;\n\t\t\t}\n\t\t\tsenders[u].virality *= Math.pow(\n\t\t\t\t\tsenders[u].itemExponentialDiffusingEntropy * senders[u].infectorExponentialEntropy, entropyWeight);\n\t\t}\n\n\t\t// user susceptibility\n\t\tlogger.info(\"----------- computing susceptibility scores for receivers\");\n\t\tfor (v = 0; v < receiverCount; v++) {\n\t\t\treceivers[v].susceptibility = 0;\n\t\t\tif (!receivers[v].infectedFlag)\n\t\t\t\tcontinue;\n\t\t\tfor (j = 0; j < receivers[v].nItems; j++) {\n\t\t\t\tif (receivers[v].nAdoptions[j] == 0)\n\t\t\t\t\tcontinue;\n\t\t\t\tx = receivers[v].itemIndexes[j];\n\t\t\t\tinIter = items[x].infections.get(v).entrySet().iterator();\n\t\t\t\ts = 0;\n\t\t\t\twhile (inIter.hasNext()) {\n\t\t\t\t\tinPair = inIter.next();\n\t\t\t\t\tu = inPair.getKey();\n\t\t\t\t\td = inPair.getValue().weight / norm;\n\t\t\t\t\ts += d * (1 - 0.5 * senders[u].virality / (senders[u].totalNExponentialDiffusions / norm)\n\t\t\t\t\t\t\t- 0.5 * items[x].virality / (items[x].totalNExponentialDiffusions / norm));\n\n\t\t\t\t}\n\t\t\t\treceivers[v].susceptibility += s;\n\t\t\t}\n\t\t\treceivers[v].susceptibility *= Math\n\t\t\t\t\t.pow(receivers[v].itemExponentialEntropy * receivers[v].diffuserExponentialEntropy, entropyWeight);\n\t\t}\n\t}", "title": "" }, { "docid": "3040e417e943b3f18ec251fa1a33de4a", "score": "0.5341337", "text": "@Override\n public float calculateFitness(ArrayList<Float> reals) {\n \n float res = 0.0f;\n \n for (float real : reals) {\n res += (float) Math.pow(real, 2);\n }\n \n return res;\n }", "title": "" }, { "docid": "93d1bb3b1a2a48ebcd4b0782e5df7e7a", "score": "0.5331067", "text": "public static double silhouette(ArrayList<Cluster> clusters){\r\n List<List<Double>> a= null;\r\n try {\r\n a = computeA(clusters);\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n List<List<Double>> b= null;\r\n try {\r\n b = computeB(clusters);\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n double result=0.0;\r\n int npoints=0;\r\n for(int i=0;i<a.size();++i){\r\n npoints+=a.get(i).size();\r\n for(int j=0;j<b.get(i).size();++j){\r\n double x=a.get(i).get(j);\r\n double y=b.get(i).get(j);\r\n double tmp= x<y ? 1-(x/y) : (y/x)-1;\r\n result+=tmp;\r\n }\r\n }\r\n return result/npoints;\r\n }", "title": "" }, { "docid": "6456d0a445e0b3526351e1c7c76b7276", "score": "0.5302", "text": "public double Calculation(){\n double amp = getAmplitude();\n amp = 20*Math.log(Math.abs(amp)/32767);\n return amp;\n }", "title": "" }, { "docid": "657961d2c443720d01442cd2971197a6", "score": "0.5271298", "text": "public double sLoop() {\n double avgActual = 0;\n for (int i = 0; i < sChain; i++) {\n double actual = 0;\n int tries = 1;\n int ivs = 0;\n int ha = 0;\n\n // Calculate PID Roll Count\n if (i > 29) {\n tries = 13;\n } else if (i > 19) {\n tries = 9;\n } else if (i > 9) {\n tries = 5;\n }\n if (sosCharm.isSelected()) {\n tries += 2;\n }\n\n // Calculate Shiny Odds\n actual = 1 - (1.0 / 4096);\n actual = Math.pow(actual, tries);\n actual = 1 - actual;\n avgActual += actual;\n }\n avgActual /= sChain;\n return avgActual;\n }", "title": "" }, { "docid": "f6acdc482efbfa6e692f955c1d23670c", "score": "0.5267441", "text": "public void rapportNepsiLog(double epsi) {\n\t\tfor (int i = 0; i < this.tSize.length; i++) {\n\t\t\tthis.tRes[i] = Math.pow(this.tSize[i], epsi)\n\t\t\t\t\t/ Math.log(this.tSize[i]);\n\t\t}\n\t}", "title": "" }, { "docid": "63a2afb2310d3967629b10fc3e5d03bb", "score": "0.52596486", "text": "public static double calculateSimpleEntropy(List<Integer> values) {\n int sum = 0;\n for (int val : values)\n sum += val;\n\n double result = 0;\n for (int val : values) {\n double p = (double) val / (double) sum;\n if (p > 0.0)\n result += -(p) * (Math.log(p) / Math.log(2));\n }\n\n return result;\n }", "title": "" }, { "docid": "86cec973ef852fe2831051fbaa6aeaa9", "score": "0.52445394", "text": "public abstract double logProbability(int dimension, double value);", "title": "" }, { "docid": "cb4d18b4505b0bf52bbb7d4965756520", "score": "0.523382", "text": "public double getMaxIntensity(){\r\n\t\tdouble val = super.getMaxIntensity() * logDivisor;\r\n\t\tval = Math.exp(val);\r\n\t\treturn val;\r\n\t}", "title": "" }, { "docid": "4a62cc233bd313872c63f4e797e869b9", "score": "0.52121586", "text": "float getProbability();", "title": "" }, { "docid": "5c065365c1543d32027bcf270c4b1acd", "score": "0.5198717", "text": "public float calculateAverageFitness() {\n\t\treturn fitnessSum/populationSize;\n\t}", "title": "" }, { "docid": "52c9c23bfa8c4c38abb666d59be71e94", "score": "0.5198154", "text": "private double getProbability(double deltaEnergy) {\n\t\tdouble x = Math.exp(-deltaEnergy / temperature);\n\t\ttemperature = temperature * cooler;\n\t\treturn x;\n\n\t}", "title": "" }, { "docid": "b97b9563ef373c7223cf782ce82a6f24", "score": "0.5187983", "text": "public double calcFitness() {\n long correctGenes = this.chromosome.stream().filter(gene -> gene == 1).count();\n this.fitness = (double) correctGenes / getChromosomeLength();\n return fitness;\n }", "title": "" }, { "docid": "fd5b100b5345e02df790ac1645c186cd", "score": "0.5171337", "text": "private int calculateHealth() {\n int temp = 50 + (10*level) + (5*strength) + (10 * guts);\n switch(type) {\n case FLUNKY: temp = 1;\n break;\n case SOLDIER: int totalStorage = temp;\n temp = temp/2;\n if (totalStorage % 2 > 0) {\n temp+=1;\n }\n break;\n case SWARM: break;\n case ELITE: break;\n case MASTER: temp = 2*temp;\n break;\n default: break;\n }\n return temp;\n }", "title": "" }, { "docid": "167e7eb59e3696dfb576d0db41125c74", "score": "0.5170137", "text": "public static double entropy(ArrayList<double[]>items, int attr) {\n\t\tdouble e = 0;\n\t\tMap<Double, Integer> counter = countUniqueValues(items, attr);\n\t\tdouble aux = 0;\n\t\tfor (Entry<Double, Integer> entry : counter.entrySet()) {\n\t\t\taux = entry.getValue() * 1.0 / items.size();\n\t\t\t// System.out.println(aux + \" \" + entry.getValue() + \" \" + items.length);\n\t\t\te = e + (-aux * Math.log(aux));\n\t\t}\n\n\t\treturn e;\n\t}", "title": "" }, { "docid": "ec08ee4ea673cded76f7bec4b636115a", "score": "0.5156293", "text": "public static Double calculateProbability(int numberOfRolls){\n Double result;\n result = (1.0/6) * (1.0/6);\n result = result * (numberOfRolls - 1);\n return result;\n }", "title": "" }, { "docid": "d1a969ddaec534c4446015124c465b6b", "score": "0.51546204", "text": "public static void main(String[] args) {\n\t\tdouble ans=0;\n\t\tfor(double i=1;i<=100;i++)\n\t\t{\n\t\t\tans+=1.0/i;\n\t\t}\n\t\tSystem.out.println(ans);\n\t}", "title": "" }, { "docid": "706f0374aa509f379b993442d78c44de", "score": "0.51408315", "text": "private double entropy(ClassifierData<T> currentNodeData) {\r\n\r\n\r\n\t\t// Number of data samples of each class\r\n\t\tint classCount0 = currentNodeData.classCount(0);\r\n\t\tint classCount1 = currentNodeData.classCount(1);\r\n\r\n\t\t// If data samples aren't all of the same class\r\n\t\tif (classCount0 > 0 && classCount0 < currentNodeData.numSamples())\r\n\t\t{\r\n\r\n\r\n\t\t\t// Probability of each class\r\n\t\t\tdouble probC0 = (double) classCount0 / currentNodeData.numSamples();\r\n\t\t\tdouble probC1 = (double) classCount1 / currentNodeData.numSamples();\r\n\r\n\r\n\t\t\tdouble entropy = -((probC0 * log2(probC0)) + (probC1 * log2(probC1)));\r\n\r\n\r\n\t\t\treturn entropy;\r\n\t\t}\r\n\t\t// entropy = 1 if all data samples are of the same class\r\n\t\telse {\r\n\t\t\treturn 1.0;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "4ffa64bfa2f3a8a7492baf16cda51949", "score": "0.51307327", "text": "public int getFannoPrediction(double s, int n)\n\t{\n\t\t// These were calculated in Excel, the only variable is %. Calaulted from 1 to 99 percent in whole percents\n\t\tdouble[] binaryEntropy = new double[] { 0.080793136, 0.141440543, 0.194391858, 0.242292189, 0.286396957, 0.327444919, 0.365923651, 0.40217919, 0.436469817, 0.468995594, 0.499915958, 0.529360865, 0.557438185, 0.584238812, 0.609840305, 0.634309555, 0.657704779, 0.680077046, 0.70147146, 0.721928095, 0.74148274, 0.760167503, 0.778011304, 0.795040279, 0.811278124, 0.826746372, 0.841464636, 0.855450811, 0.868721246, 0.881290899, 0.893173458, 0.904381458, 0.914926373, 0.924818705, 0.934068055, 0.942683189, 0.950672093, 0.958042022, 0.964799549, 0.970950594, 0.976500469, 0.981453895, 0.985815037, 0.989587521, 0.992774454, 0.995378439, 0.997401589, 0.998845536, 0.999711442, 1, 0.999711442, 0.998845536, 0.997401589, 0.995378439, 0.992774454, 0.989587521, 0.985815037, 0.981453895, 0.976500469, 0.970950594, 0.964799549, 0.958042022, 0.950672093, 0.942683189, 0.934068055, 0.924818705, 0.914926373, 0.904381458, 0.893173458, 0.881290899, 0.868721246, 0.855450811, 0.841464636, 0.826746372, 0.811278124, 0.795040279, 0.778011304, 0.760167503, 0.74148274, 0.721928095, 0.70147146, 0.680077046, 0.657704779, 0.634309555, 0.609840305, 0.584238812, 0.557438185, 0.529360865, 0.499915958, 0.468995594, 0.436469817, 0.40217919, 0.365923651, 0.327444919, 0.286396957, 0.242292189, 0.194391858, 0.141440543, 0.080793136 };\n\t\tint result = 0;\n double log2 = Math.log(2);\n\n double log2n = Math.log(n - 1) / log2;\n for (int i = 0; i < 99; i++)\n {\n double percentMax = ((i + 1) * .01);\n double FanoS = binaryEntropy[i] + ((1 - percentMax) * log2n);\n\n // entrophy always decreases as percentage of predictability increases\n // therefore as soon as the Fano entrophy is < the tested entrophy we have arrived at the prediction percentage\n if (s > FanoS)\n {\n \t// We have found the closest percentage\n \tresult = i+1;\n \tbreak;\n }\n }\n return result;\n\t}", "title": "" }, { "docid": "577e052ffdbeaa963bb35686fd4fd7e5", "score": "0.51218104", "text": "private double[] computeHD(VacuumRobotState s) {\n /*\n if (this.heavy) {\n return computeHD_jordan(s);\n } else {\n return computeHD_greedy(s);\n }*/\n return computeHD_jordan(s);\n }", "title": "" }, { "docid": "23edafa78be6568121ef13627bc2950e", "score": "0.51116145", "text": "private int findScore(){\n\t\tint score= 0;\n\t\t\n\t\tscore+= 2*count15();\n\t\tscore+= 2*countPair();\n\t\tscore+= scoreRuns();\n\t\tscore+= scoreFlush();\n\t\t\n\t\tif(hasNibs()) score+= 1;\n\t\t\n\t\treturn score;\n\t}", "title": "" }, { "docid": "6b79a6ad9a0d7bdfd138fb2d49686ef5", "score": "0.5110183", "text": "float adjustedFitness(ArrayList<Network> speciesO){\n\t\tfloat sum = 0;\n\t\tfor(int i = 0; i < speciesO.size(); i++){\n\t\t\tsum += speciesO.get(i).fitness / speciesO.size();\n\t\t}\n\t\treturn sum;\n\t}", "title": "" }, { "docid": "92b23b2108437458357a30db03ce4216", "score": "0.5109643", "text": "public double getDistributionEfficiency();", "title": "" }, { "docid": "8fe3aa39868113cdc342a70b38c20191", "score": "0.5107052", "text": "@Override\n\tpublic SimpleMatrix pi(State s) {\n\t\tint[][] moves = s.legalMoves();\n//\t\tboolean[] isFatal = new boolean[moves.length]; \n\t\tSimpleMatrix exponents = new SimpleMatrix(moves.length, 1);\n\t\tSimpleMatrix probs = new SimpleMatrix(moves.length, 1);\n\n\t\t// Get all exponents first\n\t\tdouble maxVal = Double.NEGATIVE_INFINITY;\n\t\tfor (int a_prime = 0; a_prime < moves.length; a_prime++) {\n\t\t\t\n\t\t\tdouble logLikelihood = calculate_log_likelihood(s, a_prime);\n\t\t\tif(logLikelihood > maxVal) {\n\t\t\t\tmaxVal = logLikelihood;\n\t\t\t}\n\t\t\texponents.set(a_prime, logLikelihood);\n\t\t}\n\t\t\n\t\t// If all moves are fatal, return uniform\n\t\tif(maxVal == Double.NEGATIVE_INFINITY) {\n\t\t\tprobs.set(1.0);\n\t\t\treturn probs.scale( 1.0/probs.elementSum() );\n\t\t}\n\t\t\n\t\tfor (int a_prime = 0; a_prime < moves.length; a_prime++) {\n\t\t\tdouble normalizedExponent = exponents.get(a_prime) - maxVal + 10.0;\n\t\t\tdouble likelihood = Math.exp(normalizedExponent);\n\t\t\tprobs.set(a_prime, likelihood);\n\t\t}\n\t\t\n\t\t// Normalize\n\t\tprobs = probs.divide( probs.elementSum() );\n\t\t\n\t\t// Additive exploration (epsilon-exploration)\n\t\tSimpleMatrix smoother = new SimpleMatrix(moves.length, 1);\n\t\tfor (int a_prime = 0; a_prime < moves.length; a_prime++) {\n\t\t\tif(probs.get(a_prime) > 0.0) {\n\t\t\t\tsmoother.set(a_prime, 1.0);\n\t\t\t}\n\t\t}\n\t\tsmoother = smoother.scale( _beta/smoother.elementSum() );\n\t\tprobs = probs.scale(1.0 - _beta);\n\t\tprobs = probs.plus(smoother);\n\t\tprobs = probs.divide( probs.elementSum() ); // Should be normalized, but just in case\n\n\t\t\n\t\treturn probs;\n\t}", "title": "" }, { "docid": "fc61b461ea72bd3fc8a4ded9f3db3dcb", "score": "0.50928843", "text": "private double computeFitness(String binary) {\n double fitness = Integer.parseInt(binary, 2);\n return ((Math.pow(fitness,2)*(-1)) + (7*fitness));\n }", "title": "" }, { "docid": "800108c611bce43d98c9de066bd0de34", "score": "0.5091907", "text": "private IDictionary<String, Double> computeIdfScores(ISet<Webpage> pages) {\n \tIDictionary<String, Double> dict = new ChainedHashDictionary<String, Double>();\n for (Webpage page : pages) {\n \tISet<String> set = new ChainedHashSet<String>();\n \tfor (String word : page.getWords()) {\n \t\tif (!dict.containsKey(word)) {\n \t\t\tset.add(word);\n \t\t\tdict.put(word, 1.0);\n \t\t} else {\n \t\t\tif (!set.contains(word)) {\n \t\t\t\tset.add(word);\n \t\t\t\tdict.put(word, dict.get(word) + 1);\n \t\t\t}\n \t\t}\n \t}\n }\n IDictionary<String, Double> scores = new ChainedHashDictionary<String, Double>();\n for (KVPair<String, Double> kv : dict) {\n \tdouble log = Math.log(pages.size() / kv.getValue());\n scores.put(kv.getKey(), log);\n }\n return scores; \n }", "title": "" }, { "docid": "5f91d98727d255b023188182f7a58c8f", "score": "0.5076797", "text": "public static void main(String[] args) {\n double lambda=2.5;\n int k=5;\n double E=2.71828;\n double result;\n \n double mutliply=Math.pow(lambda,k) * Math.pow(E, -lambda);\n int fact=1;\n for(int i=1;i<=k;i++){\n fact=fact*i;\n \n }\n result=mutliply/fact;\n System.out.printf(\"%.3f\",result);\n \n }", "title": "" }, { "docid": "daa5306c28fae8038b8850080398e9ae", "score": "0.5072588", "text": "public void rapportLogNepsi(double epsi) {\n\t\tfor (int i = 0; i < this.tSize.length; i++) {\n\t\t\tthis.tRes[i] = Math.log(this.tSize[i])\n\t\t\t\t\t/ Math.pow(this.tSize[i], epsi);\n\t\t}\n\t}", "title": "" }, { "docid": "2d0d0bc78f3a3b4c9ce39c6e4c806413", "score": "0.50649935", "text": "private double calculateIndividualFitness(Individual indiv) {\n //return the absolute difference between the individual and the target\n return Math.abs(TARGET - indiv.getVal());\n }", "title": "" }, { "docid": "c756074fa7b047b13f7bbde99d6e0ba7", "score": "0.5061553", "text": "public double getPetroleumIntensityOfElectricityProduction();", "title": "" }, { "docid": "50d3b55b12128b19b21f17114c4dc18e", "score": "0.50569963", "text": "private double calculateEntropy(int x, int y)\r\n\t{\r\n\t\tdouble val1 = x / (double)(x + y);\r\n\t\tdouble val2 = 1 - val1;\r\n\t\t\r\n\t\tif(val1 == 0)\r\n\t\t\tval1 = 1;\r\n\t\tif(val2 == 0)\r\n\t\t\tval2 = 1;\r\n\t\treturn -val1 * Math.log(val1) / Math.log(2) - val2 * Math.log(val2) / Math.log(2);\r\n\t}", "title": "" }, { "docid": "1fdbe50e14f4c706c23f41d1baff725e", "score": "0.5043599", "text": "private double getEntropy(int numPos, int numNeg){\r\n\t\t\r\n\t\tdouble numP = (double) (numPos);\r\n\t\tdouble numN = (double) (numNeg);\r\n\t\t\t\r\n\t\tdouble total = numP + numN;\r\n\t\tdouble fracPos = numP / total;\r\n\t\tdouble fracNeg = numN / total;\r\n\t\t\r\n\t\t// if numPos and numNeg is 0, entropy for that term is 0\r\n\t\tif (numPos == 0 && numNeg == 0) \r\n\t\t\treturn 0;\r\n\r\n\t\t// if numPos or numNeg is 0 but the other is positive, only calculate entropy for non-negative since\r\n\t\t// entropy of the other term will be zero\r\n\t\tif (numPos == 0 && numNeg > 0) {\r\n\t\t\treturn (- log2(fracNeg) * fracNeg);\r\n\t\t} \r\n\t\telse if (numNeg == 0 && numPos > 0)\r\n\t\t\treturn (- log2(fracPos) * fracPos);\r\n\t\t\r\n\t\t// calculate remaining entropy for both positive and negative\r\n\t\treturn (-log2(fracPos) * fracPos - log2(fracNeg) * fracNeg);\r\n\t}", "title": "" }, { "docid": "7fcc42403492862cae456de60c82c48f", "score": "0.5043202", "text": "public double getExpectedInfluence(HashSet <V> active_nodes){\n\t\tdouble expectedInfluence=0;\n\t\tHashSet <V> social_active_nodes=this.filter(active_nodes,socialNetwork);\n\t\t//System.out.println(social_active_nodes);\n\t\tfor (int r=0; r<this.MAX_RUNS; r++){\n\t\t\tint delta_inf=this.getInfluence_v2(social_active_nodes);\n\t\t\t//System.out.println(r+\":\"+delta_inf);\n\t\t\texpectedInfluence+=delta_inf;\t\t\n\t\t}\n\t\t\n\t\t//System.out.println(active_nodes);\n\t\treturn expectedInfluence/this.MAX_RUNS;\t\t\n\t}", "title": "" }, { "docid": "734ba5d5b1c0ad7ec6537b1a8a1323f4", "score": "0.5032093", "text": "private double get_perplexity_estimatedPotentialScaleReduction() {\n double rHat = Double.MAX_VALUE;\n\n //min length of all chains\n int S = Integer.MAX_VALUE;\n for (List<Double> list : perplexity_table.values())\n if (list.size() < S)\n S = list.size();\n\n if (S <= 1)\n return Double.MAX_VALUE;\n\n Map<Integer, Double> chaimMeans = new HashMap<>();\n double W = 0;\n double B = 0;\n double allChainMean = 0;\n\n for (int cid : perplexity_table.keySet()){\n List<Double> llh_list = perplexity_table.get(cid);\n double cmean = 0;\n double cvar = 0;\n for (int i=0; i<S; i++)\n cmean = ( cmean*i + llh_list.get(i) ) /(i+1);\n for (int i=0; i<S; i++)\n cvar += (llh_list.get(i)-cmean) * (llh_list.get(i)-cmean);\n\n allChainMean += cmean;\n cvar /= (S-1);\n W += cvar;\n chaimMeans.put(cid, cmean);\n }\n W /= perplexity_table.size();\n allChainMean /= perplexity_table.size();\n for (int cid : chaimMeans.keySet())\n B += (chaimMeans.get(cid) - allChainMean) * (chaimMeans.get(cid) - allChainMean);\n B *= ((double)S / (perplexity_table.size()-1));\n\n rHat = Math.sqrt( (double)(S-1)/S + B/(W*S) );\n return rHat;\n }", "title": "" }, { "docid": "cef743cd2db8bf9db1cb593322aa2b22", "score": "0.50298417", "text": "private double numerator(){\n\t\tArrayList<Integer> processedHashCode = new ArrayList<>();\n\t\tdouble num = 0;\n\t\t\n\t\tfor (Tuple t: rollingTuple_S){\n\t\t\tif(!processedHashCode.contains(t.getKey())){\n\t\t\t\tprocessedHashCode.add(t.getKey());\n\t\n//\t\t\t\tArrayList<Tuple> searchResultListS = htS.search(t.getKey());\n//\t\t\t\tArrayList<Tuple> searchResultListT = htT.search(t.getKey());\n//\t\t\t\t\n//\t\t\t\tint s_i = 0;\n//\t\t\t\tfor (Tuple ts_i: searchResultListS) {\n//\t\t\t\t\ts_i = s_i + ts_i.getFrequency();\n//\t\t\t\t}\n//\t\t\t\t\n//\t\t\t\tint t_i = 0;\n//\t\t\t\tfor (Tuple tt_i: searchResultListT) {\n//\t\t\t\t\tt_i = t_i + tt_i.getFrequency();\n//\t\t\t\t}\n//\t\t\t\t\n//\t\t\t\tnum = num + s_i * t_i;\n\t\t\t\t\n\t\t\t\tint s_i = htS.search(new Tuple(t.getKey(), DUMMY));\n\t\t\t\tint t_i = htT.search(new Tuple(t.getKey(), DUMMY));\n\t\t\t\tnum = num + s_i * t_i;\n\t\t\t\t\n\t\t\t}\t\n\t\t}\t\t\t\n\t\treturn num;\n\t}", "title": "" }, { "docid": "fd29080873949d62e4267bd3401a2280", "score": "0.5020547", "text": "double getProbability();", "title": "" }, { "docid": "4f5c7491a5d4f2356c7a720c77362181", "score": "0.5019693", "text": "static public void computeNormalizedProbs(List<Double> nbestLogProbs, double scalingFactor){\n \t\t\n \t\t//=== get noralization constant, remember features, remember the combined linear score\n \t\tdouble normalizationConstant = Double.NEGATIVE_INFINITY;//log-semiring\n \t\t\n \t\tfor (double logp : nbestLogProbs) {\n \t\t\tnormalizationConstant = addInLogSemiring(normalizationConstant, logp * scalingFactor, 0);\n \t\t}\n \t\t//System.out.println(\"normalization_constant (logP) is \" + normalization_constant);\n \t\t\n \t\t//=== get normalized prob for each hyp\n \t\tdouble tSum = 0;\n \t\tfor (int i = 0; i < nbestLogProbs.size(); i++) {\n \t\t\t\n \t\t\tdouble normalizedProb = Math.exp(nbestLogProbs.get(i) * scalingFactor-normalizationConstant);\n \t\t\ttSum += normalizedProb;\n \t\t\tnbestLogProbs.set(i, normalizedProb);\n \t\t\t\n \t\t\tif (Double.isNaN(normalizedProb)) {\n \t\t\t\tthrow new RuntimeException(\n \t\t\t\t\t\"prob is NaN, must be wrong\\nnbest_logps.get(i): \"\n \t\t\t\t\t+ nbestLogProbs.get(i)\n \t\t\t\t\t+ \"; scaling_factor: \" + scalingFactor\n \t\t\t\t\t+ \"; normalization_constant:\" + normalizationConstant );\n \t\t\t}\n \t\t\t//logger.info(\"probability: \" + normalized_prob);\n \t\t}\n \t\t\n \t\t//sanity check\n \t\tif (Math.abs(tSum - 1.0) > 1e-4) {\n \t\t\tthrow new RuntimeException(\"probabilities not sum to one, must be wrong\");\n \t\t}\n \t\t\n \t}", "title": "" }, { "docid": "6d84ded895dd16c54c96f889b72cbdfc", "score": "0.50186914", "text": "double getRiskAlleleFrequency();", "title": "" }, { "docid": "d1b9fd81632a05b547a850a80dbd3f69", "score": "0.5009252", "text": "public static double ewensLikelihoodRatio(int[] countsX, int[] countsY, double lambda) {\n\n\t\tif (countsX.length != countsY.length) {\n\t\t\tthrow new IllegalArgumentException(\"both arrays must contain the same number of dimensions\");\n\t\t}\n\n\t\t@Var\n\t\tdouble logLikelihood = 0.0;\n\t\t@Var\n\t\tdouble alpha;\n\n\t\t@Var\n\t\tint totalX = 0;\n\t\t@Var\n\t\tint totalY = 0;\n\t\t@Var\n\t\tint total = 0;\n\n\t\t@Var\n\t\tint x;\n\t\t@Var\n\t\tint y;\n\n//\t\tFirst count up the totals\n\t\tfor (int key=0; key < countsX.length; key++) {\n\t\t\tx = countsX[key];\n\t\t\ty = countsY[key];\n\n\t\t\ttotalX += x;\n\t\t\ttotalY += y;\n\t\t\ttotal += x + y;\n\t\t}\n\n//\t\tNow allocate some arrays for the sufficient statisitics \n//\t\t(the number of classes that contain x elements)\n\n\t\tint[] countHistogramX = new int[total + 1];\n\t\tint[] countHistogramY = new int[total + 1];\n\t\tint[] countHistogramBoth = new int[total + 1];\n\n\t\tfor (int key=0; key < countsX.length; key++) {\n\t\t\tx = countsX[key];\n\t\t\ty = countsY[key];\n\n\t\t\tcountHistogramX[ x ]++;\n\t\t\tcountHistogramX[ y ]++;\n\t\t\tcountHistogramBoth[ x + y ]++;\n\t\t}\n\n\t\tfor (int j=1; j <= total; j++) {\n\t\t\tif (countHistogramX[ j ] == 0 &&\n\t\t\t\t\tcountHistogramY[ j ] == 0 &&\n\t\t\t\t\tcountHistogramBoth[ j ] == 0) {\n\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tlogLikelihood += (countHistogramBoth[ j ] - countHistogramX[ j ] - countHistogramY[ j ]) *\n\t\t\tMath.log( lambda / j );\n\n\t\t\tlogLikelihood += logGamma(countHistogramX[ j ] + 1) + logGamma(countHistogramY[ j ] + 1)\n\t\t\t- logGamma(countHistogramBoth[ j ] + 1);\n\n\t\t}\n\n\t\tlogLikelihood += logGamma(total + 1)\n\t\t- logGamma(totalX + 1) - logGamma(totalY + 1);\n\n\t\tlogLikelihood += logGamma(lambda + totalX) + logGamma(lambda + totalY) \n\t\t- logGamma(lambda) - logGamma(lambda + totalX + totalY);\n\n\t\treturn logLikelihood;\n\t}", "title": "" }, { "docid": "019a38e0e6ab253bcf7d5ad05b5d2971", "score": "0.50029045", "text": "private double calculateHamOverSpam(Word word){\n\t\treturn (word.ham / (double)amountOfHamMails)/\n\t\t\t\t(word.spam / (double)amountOfSpamMails);\n\t}", "title": "" }, { "docid": "9cb4ddd7e83f3ea6529d44b0296b884f", "score": "0.49916705", "text": "public static double daviesBouldin(ArrayList<Cluster> clusters) throws Exception {\r\n\r\n double davis= 0.0;\r\n\r\n for (int i= 0; i < clusters.size(); i++){\r\n double sum_avgs= clusters.get(i).avgDistanceToCentroid() +\r\n clusters.get((i+1) % clusters.size())\r\n .avgDistanceToCentroid();\r\n\r\n double dist= clusters.get(i)\r\n .getCenter()\r\n .euclidean(clusters.get((i+1)%clusters.size())\r\n .getCenter());\r\n double max_value= sum_avgs / dist;\r\n\r\n for (int j= (i+2) % clusters.size(); j != i; j= (j+1) % clusters.size()){\r\n sum_avgs= clusters.get(i).avgDistanceToCentroid() +\r\n clusters.get(j).avgDistanceToCentroid();\r\n\r\n dist= clusters.get(i).getCenter()\r\n .euclidean(clusters.get(j).getCenter());\r\n\r\n if (max_value < (sum_avgs / dist)) max_value= sum_avgs / dist;\r\n }\r\n\r\n davis += max_value;\r\n }\r\n\r\n return davis / clusters.size();\r\n }", "title": "" }, { "docid": "9d5568ef596d7d38ea58154ea2badf6b", "score": "0.49736413", "text": "double getUserDiversity() {\n HashSet<String> userIds = new HashSet<>();\n for (Tweet tweet : getTweets()) {\n userIds.add(tweet.getUserId());\n }\n double uniqueUserIdCount = userIds.size();\n double clusterSize = size();\n return uniqueUserIdCount / clusterSize;\n }", "title": "" }, { "docid": "b1c96b33e17a12c77cbe932c6c222af1", "score": "0.49711734", "text": "public static void main(String[] args) {\n int m = Integer.parseInt(args[0]);\n // Number of integers\n int n = 0;\n //freq[i] = number of times x appears\n\n int[] freq = new int[m + 1];\n while (!StdIn.isEmpty()) {\n int x = StdIn.readInt();\n freq[x]++;\n n++;\n\n }\n //Compute Shannon Entropy\n double sEntropy = 0.0;\n for (int i = 1; i <= m; i++) {\n double prop = 1.0 * freq[i] / n;\n if (freq[i] > 0)\n sEntropy -= prop * Math.log(prop) / Math.log(2);\n }\n // print results\n StdOut.printf(\"%.4f\\n\", sEntropy);\n }", "title": "" }, { "docid": "efdf1b63a6ae247ef10c0b551d6d9f40", "score": "0.49657884", "text": "public double analyze( int aef, int aep, int anf, int anp );", "title": "" }, { "docid": "cf5586bf91c56879caa97d283073bb6c", "score": "0.49652565", "text": "private int calcNiScore() {\n\t\tdouble[] slopes = new double[5];\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tslopes[i] = calcSlope(netIncome[i+1], netIncome[i], i, i + 1);\n\t\t}\n\t\tslopes[4] = calcSlope(netIncome[4], netIncome[0], 0, 4);\n\t\tint score = 0;\n\t\t//for each quarter that revenue increases add 2 to score\n\t\tfor (int i = 0; i < slopes.length; i++) {\n\t\t\tif (slopes[i] > 0) {\n\t\t\t\tscore += 2;\n\t\t\t}\n\t\t}\n\t\t//handle the case where score is 1x\n\t\tif (score == 0) {\n\t\t\treturn 1;\n\t\t}\n\t\treturn score;\n\t}", "title": "" }, { "docid": "4d5be15f2735e3726b34c29582b12b81", "score": "0.4960908", "text": "public double getExplosiveness() {\n for (Map<String, Double> fuelEntry : ConfigSystem.settings.fuel.fuels.values()) {\n if (fuelEntry.containsKey(currentFluid)) {\n return fluidLevel * fuelEntry.get(currentFluid) / 10000D;\n }\n }\n return 0;\n }", "title": "" }, { "docid": "c2f5412f4ca0d5dd76b8d91b8710fd4d", "score": "0.4958802", "text": "public double fLoop() {\n double avgActual = 0;\n for (int i = 0; i < fChain; i++) {\n double actual = 0;\n int tries = 0;\n\n // Calculate PID Roll Count\n if (i > 20) {\n tries = 41;\n } else {\n tries = 1 + 2 * i;\n }\n if (fishingCharm.isSelected()) {\n tries += 2;\n }\n\n // Calculate Shiny Odds\n actual = 1 - (1.0 / 4096);\n actual = Math.pow(actual, tries);\n actual = 1 - actual;\n avgActual += actual;\n }\n avgActual /= fChain;\n return avgActual;\n }", "title": "" }, { "docid": "5c806bfd66d858ecdc6fbee7bd89db16", "score": "0.4950513", "text": "static int H (String chave) {\n int c= ((int) chave.charAt(1))*100 + ((int) chave.charAt(0));\n double d=OURO*c;\n //return c % m;\n return (int) ((d- Math.floor(d)) * m);\n }", "title": "" }, { "docid": "e95ee5eba112cf57bd077c45abbe9aab", "score": "0.49492845", "text": "public void calcFitness(UserStats givenStats)\r\n\t{\n\t\tnormMax = normalizeMax(maxPerc);\r\n\t\tmaxIncrease = (givenStats.getPercDmg() / 100.0) * (1 - (givenStats.getDefPerc() / 100));\r\n\t\tmaxIncrease *= (givenStats.getWeapBasePow() + (.5 * (normMax / 100) * (givenStats.getWeapMaxPow() - givenStats.getWeapMinPow()))\r\n\t\t\t+ (givenStats.getBaseAP() - givenStats.getWeapBasePow()));\r\n\t\t\r\n\t\t\r\n\t\t//Find increase provided by normalized critical hit rate\r\n\t\tnormCrit = normalizeCrit(critPerc);\r\n\t\tcritIncrease = (givenStats.getBaseAP() * (1 - (normCrit / 100) + ((normCrit / 100) * (givenStats.getCritMod() / 100))) - givenStats.getBaseAP());\r\n\t\tcritIncrease += ((.5 * (normMax / 100) * (givenStats.getWeapMaxPow() - givenStats.getWeapMinPow()))\r\n\t\t\t* (1 - (normCrit / 100) + ((normCrit / 100) * (givenStats.getCritMod() / 100))));\r\n\t\tcritIncrease = critIncrease * (givenStats.getPercDmg() / 100.0) * (1 - (givenStats.getDefPerc() / 100));\r\n\t\t\r\n\t\t//Find increase provided by normalized additional damage\r\n\t\tnormAdd = normalizeAdd(addPerc);\r\n\t\taddIncrease = givenStats.getBaseAP() * (9.0 / 16.0) * (normAdd / 100) * Math.pow((givenStats.getPercDmg() / 100), 0.65);\r\n\t\t\r\n\t\t//Sum together to find total damage increase - the fitness\r\n\t\tfitness = maxIncrease + critIncrease + addIncrease - givenStats.getBaseDamage();\r\n\t}", "title": "" }, { "docid": "f03708a4d1521d101e7a9b6782d1c658", "score": "0.49450976", "text": "private Double computeKiwiSaver() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "cbcdb4db02e1c0ff3b465ee6c8cf5aee", "score": "0.49417454", "text": "private double computeHapaxLegomanaRatio() {\n\t\tString[] allWordsArr = TextTools.getWords(text);\n\t\tint totalWords = allWordsArr.length;\n\n\t\tArrayList<String> allWordsAL = new ArrayList<String>();\n\t\tArrayList<String> uniqueWords = new ArrayList<String>();\n\n\t\tfor (int i = 0; i < allWordsArr.length; i++) {\n\t\t\tString curWord = TextTools.cleanString(allWordsArr[i]);\n\n\t\t\t// if the ArrayList of all of the words does NOT contain the current\n\t\t\t// word being looked at, add it to the ArrayList of all words and\n\t\t\t// ArrayList of unique words\n\t\t\tif (!allWordsAL.contains(curWord)) {\n\t\t\t\tallWordsAL.add(curWord);\n\t\t\t\tuniqueWords.add(curWord);\n\t\t\t}// end if statement\n\t\t\t\n\t\t\t// if the word being examined already exist in the ArrayList of all words, \n\t\t\t// remove it from the ArrayList of unique words\n\t\t\telse {\n\t\t\t\tif (uniqueWords.contains(curWord)) {\n\t\t\t\t\tuniqueWords.remove(curWord);\n\t\t\t\t}// end if statement\n\t\t\t}// end else statement\n\t\t}// end for loop with counter\n\n\t\thapaxLegomanaRatio = (double) uniqueWords.size() / totalWords;\n\n\t\treturn hapaxLegomanaRatio;\n\t}", "title": "" }, { "docid": "c81176e549d5a65ce6062f268f39de16", "score": "0.49241227", "text": "public double stddev() \n {\n return StdStats.stddev(percolationThreshold); \n }", "title": "" }, { "docid": "2f0739b86d95fd538529cccafdb17888", "score": "0.49208212", "text": "public double evaluate() {\n if (!getPlayerTurn()) {\n // MIN's turn\n if (getMoves().isEmpty()) {\n // MAX's win\n return MAX_WIN_VALUE;\n } else {\n // stone 1 not taken, return 0\n if (getStone(1)) {\n return 0;\n } else if (lastMove == 1) {\n // if size of successors is odd, return -0.5 else 0.5\n if (getMoves().size() % 2 == 1) {\n return -0.5;\n } else {\n return 0.5;\n }\n } else if (Helper.isPrime(lastMove)) {\n int countOfPrimesMultiple = 0;\n // find the count of the primes multiple in successors\n for (Integer m : getMoves()) {\n if (m % lastMove == 0) {\n countOfPrimesMultiple++;\n }\n }\n // if count is odd, return -0.7, else 0.7\n if (countOfPrimesMultiple % 2 == 1) {\n return -0.7;\n } else {\n return 0.7;\n }\n } else if (!Helper.isPrime(lastMove)) {\n // lastMove is composite number\n int largestPrimeFactor = Helper.getLargestPrimeFactor(lastMove);\n int countOfLargestPrimeFactorMultiples = 0;\n for (Integer m : getMoves()) {\n if (m % largestPrimeFactor == 0) {\n countOfLargestPrimeFactorMultiples++;\n }\n }\n\n // return -0.6 if number of multiples of largestPrimeFactor in successors is odd, else 0.6\n if (countOfLargestPrimeFactorMultiples % 2 == 1) {\n return -0.6;\n } else {\n return 0.6;\n }\n }\n }\n } else {\n // MAX's turn\n if (getMoves().isEmpty()) {\n // MIN's win\n return MIN_WIN_VALUE;\n } else {\n // stone 1 not taken, return 0\n if (getStone(1)) {\n return 0;\n } else if (lastMove == 1) {\n // if size of successors is odd, return 0.5 else -0.5\n if (getMoves().size() % 2 == 1) {\n return 0.5;\n } else {\n return -0.5;\n }\n } else if (Helper.isPrime(lastMove)) {\n int countOfPrimesMultiple = 0;\n // find the count of the primes multiple in successors\n for (Integer m : getMoves()) {\n if (m % lastMove == 0) {\n countOfPrimesMultiple++;\n }\n }\n // if count is odd, return 0.7, else -0.7\n if (countOfPrimesMultiple % 2 == 1) {\n return 0.7;\n } else {\n return -0.7;\n }\n } else if (!Helper.isPrime(lastMove)) {\n // lastMove is composite number\n int largestPrimeFactor = Helper.getLargestPrimeFactor(lastMove);\n int countOfLargestPrimeFactorMultiples = 0;\n for (Integer m : getMoves()) {\n if (m % largestPrimeFactor == 0) {\n countOfLargestPrimeFactorMultiples++;\n }\n }\n\n // return 0.6 if number of multiples of largestPrimeFactor in successors is odd, else -0.6\n if (countOfLargestPrimeFactorMultiples % 2 == 1) {\n return 0.6;\n } else {\n return -0.6;\n }\n }\n }\n }\n\n // should not come here\n return 0.0;\n }", "title": "" }, { "docid": "91460a0fcb89d647ec4da68d446458c4", "score": "0.49092406", "text": "private double getProbability(int validDirections) {\n if (validDirections == 0) return 0;\n double powerOf = 1.5;\n double val = 4 - validDirections;\n\n double newValue = Math.pow(val, powerOf);\n\n return 100 / newValue;\n }", "title": "" }, { "docid": "b952be362d2ee3b9cfcb3798647d344f", "score": "0.4892177", "text": "double priseEau(double diametre, double vitesse);", "title": "" }, { "docid": "5f4a9047d5611d48753be82a82a8d625", "score": "0.48908854", "text": "public static double getAverageVision(FutureTrooper trooper) {\n return 9.0;\n }", "title": "" }, { "docid": "32834f3429300647af44eeb7e081fe78", "score": "0.48906335", "text": "private double calculateSpam(HashSet<String> words){\n\t\tdouble probability = 1;\n\t\tfor(String w: words){\n\t\t\tWord ws = mostSpecificSpam.get(w);\n\t\t\tWord wh = mostSpecificHam.get(w);\n\t\t\tif(ws != null){\n\t\t\t\tprobability = probability * calculateHamOverSpam(ws);\n\t\t\t} else if(wh != null){\n\t\t\t\tprobability = probability * calculateHamOverSpam(wh);\n\t\t\t}\n\t\t}\n\t\treturn calculateBayersFormula(probability);\n\t}", "title": "" }, { "docid": "8c9c5cfc48a0e1ccfa92397b300dd0c0", "score": "0.48902026", "text": "public static double diversity (final int [] counts) {\n\t\tdouble [] data = Arrays.stream(counts).asDoubleStream().toArray();\n\t\treturn diversity(data);\n\t}", "title": "" }, { "docid": "dc336c178d2a425c00077c7b8f017c72", "score": "0.48897535", "text": "public static double sysEnergy(Particle3D[] p) {\n\tdouble energy = 0;\n\tfor (int i=0; i<p.length; i++) {\n\t for (int j=i+1; j<p.length; j++) {\n\t\tenergy += potEnergy(p[i],p[j]);\n\t }\n\t energy += kEnergy(p[i]);\n\t}\n\treturn energy;\n }", "title": "" }, { "docid": "953cb99d84d3723413376dfa0e5eb98c", "score": "0.48861519", "text": "public abstract double computeSilhouette(double[][][] items);", "title": "" }, { "docid": "a1968e67b895aaa4fc763bf20c7c58f1", "score": "0.48853448", "text": "public static void calculateHits() {\n\t\tdouble[] gen5_1 = new double[2];\n\t\tdouble[] gen5_2 = new double[2];\n\t\tdouble[] gen5_3 = new double[2];\n\t\tdouble[] gen5_4 = new double[2];\n\t\t\n\t\t//Temp calculation holders\n\t\tdouble tempPimLow1 = 0;\n\t\tdouble tempPimHigh1 = 0;\n\t\tdouble tempPimLow2 = 0;\n\t\tdouble tempPimHigh2 = 0;\n\t\tdouble tempPimLow3 = 0;\n\t\tdouble tempPimHigh3 = 0;\n\t\tdouble tempPimLow4 = 0;\n\t\tdouble tempPimHigh4 = 0;\n\t\t\n\t\t//5G Transmission Frequencies\n\t\tgen5_1[0] = 3575;\n\t\tgen5_1[1] = 3600;\n\t\tgen5_2[0] = 3600;\n\t\tgen5_2[1] = 3625;\n\t\tgen5_3[0] = 3525;\n\t\tgen5_3[1] = 3550;\n\t\tgen5_4[0] = 3550;\n\t\tgen5_4[1] = 3575;\n\t\t\n\t\t//Set of array list that will capture all the PIM calculations\n\t\t//5Gen 1 PIM Variables\n\t\tArrayList<Double> PIM1 = new ArrayList<Double>(); \n\t\tArrayList<Double> PIM2 = new ArrayList<Double>();\n\t\tArrayList<Double> PIM3 = new ArrayList<Double>();\n\t\tArrayList<Double> PIM4 = new ArrayList<Double>();\n\t\tArrayList<Double> PIM5 = new ArrayList<Double>();\n\t\tArrayList<Double> PIM6 = new ArrayList<Double>();\n\t\t\n\t\t//5Gen 2 PIM Variables\n\t\tArrayList<Double> PIM7 = new ArrayList<Double>();\n\t\tArrayList<Double> PIM8 = new ArrayList<Double>();\n\t\tArrayList<Double> PIM9 = new ArrayList<Double>();\n\t\tArrayList<Double> PIM10 = new ArrayList<Double>();\n\t\tArrayList<Double> PIM11 = new ArrayList<Double>();\n\t\tArrayList<Double> PIM12 = new ArrayList<Double>();\n\t\t\n\t\t//5Gen 3 PIM Variables\n\t\tArrayList<Double> PIM13 = new ArrayList<Double>();\n\t\tArrayList<Double> PIM14 = new ArrayList<Double>();\n\t\tArrayList<Double> PIM15 = new ArrayList<Double>();\n\t\tArrayList<Double> PIM16 = new ArrayList<Double>();\n\t\tArrayList<Double> PIM17 = new ArrayList<Double>();\n\t\tArrayList<Double> PIM18 = new ArrayList<Double>();\n\t\t\n\t\t//5Gen 4 PIM Variables\n\t\tArrayList<Double> PIM19 = new ArrayList<Double>();\n\t\tArrayList<Double> PIM20 = new ArrayList<Double>();\n\t\tArrayList<Double> PIM21 = new ArrayList<Double>();\n\t\tArrayList<Double> PIM22 = new ArrayList<Double>();\n\t\tArrayList<Double> PIM23 = new ArrayList<Double>();\n\t\tArrayList<Double> PIM24 = new ArrayList<Double>();\n\t\t\n\t\t//Output for hit locations\n\t\tList<String> whereTrans = new ArrayList<String>();\n\t\t\n\t\t/*---------End of the Variables -------------*/\n\t\t\n\t\t/*\n\t\t * Variables for PIM calculation with all transmission frequency and can be checked\n\t\t * against only 5G receiver frequencies or all receiver frequency bands\n\t\t */\n\t\t\n\t\t//Temporary calculation holders\n\t\tdouble tempPimLow5 = 0;\n\t\tdouble tempPimHigh5 = 0;\n\t\t\n\t\t//Array to store the PIM Calculations\n\t\tArrayList<Double> pimAll1 = new ArrayList<Double>(); \n\t\tArrayList<Double> pimAll2 = new ArrayList<Double>();\n\t\tArrayList<Double> pimAll3 = new ArrayList<Double>();\n\t\tArrayList<Double> pimAll4 = new ArrayList<Double>();\n\t\tArrayList<Double> pimAll5 = new ArrayList<Double>();\n\t\tArrayList<Double> pimAll6 = new ArrayList<Double>();\n\t\t\n\t\t//Transmission and Receiver frequency files\n\t\tList<Double> trans = new ArrayList<Double>();\n\t\tList<Double> rcv = new ArrayList<Double>();\n\t\t\n\t\t//Frequency file for only 5G frequencies\n\t\tList<Double> rcv_5G = new ArrayList<Double>();\n\t\t\n\t\t//Output for hit locations\n\t\tList<String> whereTrans1 = new ArrayList<String>();\n\t\t\n\t\t//Array list to organize the string that will be outputted\n\t\t//5Gen 1\n\t\tArrayList<String> pimCalc1 = new ArrayList<String>();\n\t\tArrayList<String> pimCalc2 = new ArrayList<String>();\n\t\tArrayList<String> pimCalc3 = new ArrayList<String>();\n\t\tArrayList<String> pimCalc4 = new ArrayList<String>();\n\t\tArrayList<String> pimCalc5 = new ArrayList<String>();\n\t\tArrayList<String> pimCalc6 = new ArrayList<String>();\n\t\t//5Gen 2\n\t\tArrayList<String> pimCalc7 = new ArrayList<String>();\n\t\tArrayList<String> pimCalc8 = new ArrayList<String>();\n\t\tArrayList<String> pimCalc9 = new ArrayList<String>();\n\t\tArrayList<String> pimCalc10 = new ArrayList<String>();\n\t\tArrayList<String> pimCalc11 = new ArrayList<String>();\n\t\tArrayList<String> pimCalc12 = new ArrayList<String>();\n\t\t//5Gen 3\n\t\tArrayList<String> pimCalc13 = new ArrayList<String>();\n\t\tArrayList<String> pimCalc14 = new ArrayList<String>();\n\t\tArrayList<String> pimCalc15 = new ArrayList<String>();\n\t\tArrayList<String> pimCalc16 = new ArrayList<String>();\n\t\tArrayList<String> pimCalc17 = new ArrayList<String>();\n\t\tArrayList<String> pimCalc18 = new ArrayList<String>();\n\t\t//5Gen 4\n\t\tArrayList<String> pimCalc19 = new ArrayList<String>();\n\t\tArrayList<String> pimCalc20 = new ArrayList<String>();\n\t\tArrayList<String> pimCalc21 = new ArrayList<String>();\n\t\tArrayList<String> pimCalc22 = new ArrayList<String>();\n\t\tArrayList<String> pimCalc23 = new ArrayList<String>();\n\t\tArrayList<String> pimCalc24 = new ArrayList<String>();\n\t\t\n\t\t//Array list to organize output string \n\t\tArrayList<String> pimAllCalc1 = new ArrayList<String>();\n\t\tArrayList<String> pimAllCalc2 = new ArrayList<String>();\n\t\tArrayList<String> pimAllCalc3 = new ArrayList<String>();\n\t\tArrayList<String> pimAllCalc4 = new ArrayList<String>();\n\t\tArrayList<String> pimAllCalc5 = new ArrayList<String>();\n\t\tArrayList<String> pimAllCalc6 = new ArrayList<String>();\n\t\t\n\t\t/*-------------End of Variables----------------*/\n\t\t\n\t\t//Grabs the appropriate text files\n\t\tFile transmission = new File(\"Transmission.txt\");\n\t\tFile receiver = new File(\"Receiver.txt\");\n\t\tFile receiver_5G = new File(\"Receiver5G.txt\");\n\t\t\n\t\tBufferedReader reader = null;\n\t\tBufferedReader reader2 = null;\n\t\tBufferedReader reader3 = null;\n\t\t\n\t\t//Grab the data from the 3 text files\n\t\ttry (FileInputStream fis = new FileInputStream(transmission)) {\n\t\t\treader = new BufferedReader(new FileReader(transmission));\n\t\t\tString text = null;\n\t\t\t\n\t\t\twhile((text = reader.readLine()) != null) {\n\t\t\t\ttrans.add(Double.parseDouble(text));\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (reader != null) {\n\t\t\t\t\treader.close();\n\t\t\t\t}\n\t\t\t} catch (IOException e) {\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\ttry (FileInputStream fis = new FileInputStream(receiver)) {\n\t\t\treader2 = new BufferedReader(new FileReader(receiver));\n\t\t\tString text2 = null;\n\t\t\t\n\t\t\twhile((text2 = reader2.readLine()) != null) {\n\t\t\t\trcv.add(Double.parseDouble(text2));\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (reader2 != null) {\n\t\t\t\t\treader2.close();\n\t\t\t\t}\n\t\t\t} catch (IOException e) {\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\ttry (FileInputStream fis = new FileInputStream(receiver_5G)) {\n\t\t\treader3 = new BufferedReader(new FileReader(receiver_5G));\n\t\t\tString text3 = null;\n\t\t\t\n\t\t\twhile((text3 = reader3.readLine()) != null) {\n\t\t\t\trcv_5G.add(Double.parseDouble(text3));\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (reader3 != null) {\n\t\t\t\t\treader3.close();\n\t\t\t\t}\n\t\t\t} catch (IOException e) {\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\t//variable to hold the counts\n\t\tint hits = 0;\n\t\tint hits_5G = 0;\n\n\t\t/*------------------------Calculations-------------------------*/\n\t\t//Calculate the 3rd Order Intermod with minimum one 5G frequency\n\t\t//+ + +\n\t\tfor(int i = 0; i < trans.size(); i = i+2) {\n\t\t\tfor(int j = i; j < trans.size(); j=j+2) {\n\t\t\t\t//5Gen 1\n\t\t\t\ttempPimLow1 = trans.get(i) + trans.get(j) + gen5_1[0];\n\t\t\t\ttempPimHigh1 = trans.get(i+1) + trans.get(j+1) + gen5_1[1];\n\t\t\t\t//5Gen 2\n\t\t\t\ttempPimLow2 = trans.get(i) + trans.get(j) + gen5_2[0];\n\t\t\t\ttempPimHigh2 = trans.get(i+1) + trans.get(j+1) + gen5_2[1];\n\t\t\t\t//5Gen 3\n\t\t\t\ttempPimLow3 = trans.get(i) + trans.get(j) + gen5_3[0];\n\t\t\t\ttempPimHigh3 = trans.get(i+1) + trans.get(j+1) + gen5_3[1];\n\t\t\t\t//5Gen 4\n\t\t\t\ttempPimLow3 = trans.get(i) + trans.get(j) + gen5_4[0];\n\t\t\t\ttempPimHigh3 = trans.get(i+1) + trans.get(j+1) + gen5_4[1];\n\t\t\t\t//Push to the PIMs\n\t\t\t\tPIM1.add(tempPimLow1);\n\t\t\t\tPIM7.add(tempPimLow2);\n\t\t\t\tPIM13.add(tempPimLow3);\n\t\t\t\tPIM19.add(tempPimLow4);\n\t\t\t\tPIM1.add(tempPimHigh1);\n\t\t\t\tPIM7.add(tempPimHigh2);\n\t\t\t\tPIM13.add(tempPimHigh3);\n\t\t\t\tPIM19.add(tempPimHigh4);\n\t\t\t\tpimCalc1.add(\" + [\" + trans.get(i) + \" \" + trans.get(i+1) + \"] + [\" \n\t\t\t\t\t\t+ trans.get(j) + \" \" + trans.get(j+1) + \"] + [\" \n\t\t\t\t\t\t+ gen5_1[0] + \" \" + gen5_1[1] + \"] = \");\n\t\t\t\tpimCalc7.add(\" + [\" + trans.get(i) + \" \" + trans.get(i+1) + \"] + [\" \n\t\t\t\t\t\t+ trans.get(j) + \" \" + trans.get(j+1) + \"] + [\" \n\t\t\t\t\t\t+ gen5_2[0] + \" \" + gen5_2[1] + \"] = \");\n\t\t\t\tpimCalc13.add(\" + [\" + trans.get(i) + \" \" + trans.get(i+1) + \"] + [\" \n\t\t\t\t\t\t+ trans.get(j) + \" \" + trans.get(j+1) + \"] + [\" \n\t\t\t\t\t\t+ gen5_3[0] + \" \" + gen5_3[1] + \"] = \");\n\t\t\t\tpimCalc19.add(\" + [\" + trans.get(i) + \" \" + trans.get(i+1) + \"] + [\" \n\t\t\t\t\t\t+ trans.get(j) + \" \" + trans.get(j+1) + \"] + [\" \n\t\t\t\t\t\t+ gen5_4[0] + \" \" + gen5_4[1] + \"] = \");\n\t\t\t}\n\t\t}\n\t\t\n\t\t// - + +\n\t\tfor(int i = 0; i < trans.size(); i = i+2) {\n\t\t\tfor(int j = i; j < trans.size(); j=j+2) {\n\t\t\t\t//5Gen 1\n\t\t\t\ttempPimLow1 = -trans.get(i+1) + trans.get(j) + gen5_1[0];\n\t\t\t\ttempPimHigh1 = -trans.get(i) + trans.get(j+1) + gen5_1[1];\n\t\t\t\t//5Gen 2\n\t\t\t\ttempPimLow2 = -trans.get(i+1) + trans.get(j) + gen5_2[0];\n\t\t\t\ttempPimHigh2 = -trans.get(i) + trans.get(j+1) + gen5_2[1];\n\t\t\t\t//5Gen 3\n\t\t\t\ttempPimLow3 = -trans.get(i+1) + trans.get(j) + gen5_3[0];\n\t\t\t\ttempPimHigh3 = -trans.get(i) + trans.get(j+1) + gen5_3[1];\n\t\t\t\t//5Gen 4\n\t\t\t\ttempPimLow4 = -trans.get(i+1) + trans.get(j) + gen5_4[0];\n\t\t\t\ttempPimHigh4 = -trans.get(i) + trans.get(j+1) + gen5_4[1];\n\t\t\t\t//Push to Pims\n\t\t\t\tPIM2.add(tempPimLow1);\n\t\t\t\tPIM8.add(tempPimLow2);\n\t\t\t\tPIM14.add(tempPimLow3);\n\t\t\t\tPIM20.add(tempPimLow4);\n\t\t\t\tPIM2.add(tempPimHigh1);\n\t\t\t\tPIM8.add(tempPimHigh2);\n\t\t\t\tPIM14.add(tempPimHigh3);\n\t\t\t\tPIM20.add(tempPimHigh4);\n\t\t\t\tpimCalc2.add(\" - [\" + trans.get(i) + \" \" + trans.get(i+1) + \"] + [\" \n\t\t\t\t\t\t+ trans.get(j) + \" \" + trans.get(j+1) + \"] + [\" \n\t\t\t\t\t\t+ gen5_1[0] + \" \" + gen5_1[1] + \"] = \");\n\t\t\t\tpimCalc8.add(\" - [\" + trans.get(i) + \" \" + trans.get(i+1) + \"] + [\" \n\t\t\t\t\t\t+ trans.get(j) + \" \" + trans.get(j+1) + \"] + [\" \n\t\t\t\t\t\t+ gen5_2[0] + \" \" + gen5_2[1] + \"] = \");\n\t\t\t\tpimCalc14.add(\" - [\" + trans.get(i) + \" \" + trans.get(i+1) + \"] + [\" \n\t\t\t\t\t\t+ trans.get(j) + \" \" + trans.get(j+1) + \"] + [\" \n\t\t\t\t\t\t+ gen5_3[0] + \" \" + gen5_3[1] + \"] = \");\n\t\t\t\tpimCalc20.add(\" - [\" + trans.get(i) + \" \" + trans.get(i+1) + \"] + [\" \n\t\t\t\t\t\t+ trans.get(j) + \" \" + trans.get(j+1) + \"] + [\" \n\t\t\t\t\t\t+ gen5_4[0] + \" \" + gen5_4[1] + \"] = \");\n\t\t\t}\n\t\t}\n\t\t\n\t\t// - - +\n\t\tfor(int i = 0; i < trans.size(); i = i+2) {\n\t\t\tfor(int j = i; j < trans.size(); j=j+2) {\n\t\t\t\t//5Gen 1\n\t\t\t\ttempPimLow1 = -trans.get(i+1) - trans.get(j+1) + gen5_1[0];\n\t\t\t\ttempPimHigh1 = -trans.get(i) - trans.get(j) + gen5_1[1];\n\t\t\t\t//5Gen 2\n\t\t\t\ttempPimLow2 = -trans.get(i+1) - trans.get(j+1) + gen5_2[0];\n\t\t\t\ttempPimHigh2 = -trans.get(i) - trans.get(j) + gen5_2[1];\n\t\t\t\t//5Gen 3\n\t\t\t\ttempPimLow3 = -trans.get(i+1) - trans.get(j+1) + gen5_3[0];\n\t\t\t\ttempPimHigh3 = -trans.get(i) - trans.get(j) + gen5_3[1];\n\t\t\t\t//5Gen 4\n\t\t\t\ttempPimLow4 = -trans.get(i+1) - trans.get(j+1) + gen5_4[0];\n\t\t\t\ttempPimHigh4 = -trans.get(i) - trans.get(j) + gen5_4[1];\n\t\t\t\t//Push to Pim\n\t\t\t\tPIM3.add(tempPimLow1);\n\t\t\t\tPIM9.add(tempPimLow2);\n\t\t\t\tPIM15.add(tempPimLow3);\n\t\t\t\tPIM21.add(tempPimLow4);\n\t\t\t\tPIM3.add(tempPimHigh1);\n\t\t\t\tPIM9.add(tempPimHigh2);\n\t\t\t\tPIM15.add(tempPimHigh3);\n\t\t\t\tPIM21.add(tempPimHigh4);\n\t\t\t\tpimCalc3.add(\" - [\" + trans.get(i) + \" \" + trans.get(i+1) + \"] - [\" \n\t\t\t\t\t\t+ trans.get(j) + \" \" + trans.get(j+1) + \"] + [\" \n\t\t\t\t\t\t+ gen5_1[0] + \" \" + gen5_1[1] + \"] = \");\n\t\t\t\tpimCalc9.add(\" - [\" + trans.get(i) + \" \" + trans.get(i+1) + \"] - [\" \n\t\t\t\t\t\t+ trans.get(j) + \" \" + trans.get(j+1) + \"] + [\" \n\t\t\t\t\t\t+ gen5_2[0] + \" \" + gen5_2[1] + \"] = \");\n\t\t\t\tpimCalc15.add(\" - [\" + trans.get(i) + \" \" + trans.get(i+1) + \"] - [\" \n\t\t\t\t\t\t+ trans.get(j) + \" \" + trans.get(j+1) + \"] + [\" \n\t\t\t\t\t\t+ gen5_3[0] + \" \" + gen5_3[1] + \"] = \");\n\t\t\t\tpimCalc21.add(\" - [\" + trans.get(i) + \" \" + trans.get(i+1) + \"] - [\" \n\t\t\t\t\t\t+ trans.get(j) + \" \" + trans.get(j+1) + \"] + [\" \n\t\t\t\t\t\t+ gen5_4[0] + \" \" + gen5_4[1] + \"] = \");\n\t\t\t}\n\t\t}\n\t\t\n\t\t// + - +\n\t\tfor(int i = 0; i < trans.size(); i = i+2) {\n\t\t\tfor(int j = i; j < trans.size(); j=j+2) {\n\t\t\t\t//5Gen 1\n\t\t\t\ttempPimLow1 = trans.get(i) - trans.get(j+1) + gen5_1[0];\n\t\t\t\ttempPimHigh1 = trans.get(i+1) - trans.get(j) + gen5_1[1];\n\t\t\t\t//5Gen 2\n\t\t\t\ttempPimLow2 = trans.get(i) - trans.get(j+1) + gen5_2[0];\n\t\t\t\ttempPimHigh2 = trans.get(i+1) - trans.get(j) + gen5_2[1];\n\t\t\t\t//5Gen 3\n\t\t\t\ttempPimLow3 = trans.get(i) - trans.get(j+1) + gen5_3[0];\n\t\t\t\ttempPimHigh3 = trans.get(i+1) - trans.get(j) + gen5_3[1];\n\t\t\t\t//5Gen 4\n\t\t\t\ttempPimLow4 = trans.get(i) - trans.get(j+1) + gen5_4[0];\n\t\t\t\ttempPimHigh4 = trans.get(i+1) - trans.get(j) + gen5_4[1];\n\t\t\t\t//Push to Pim\n\t\t\t\tPIM4.add(tempPimLow1);\n\t\t\t\tPIM10.add(tempPimLow2);\n\t\t\t\tPIM16.add(tempPimLow3);\n\t\t\t\tPIM22.add(tempPimLow4);\n\t\t\t\tPIM4.add(tempPimHigh1);\n\t\t\t\tPIM10.add(tempPimHigh2);\n\t\t\t\tPIM16.add(tempPimHigh3);\n\t\t\t\tPIM22.add(tempPimHigh4);\n\t\t\t\tpimCalc4.add(\" + [\" + trans.get(i) + \" \" + trans.get(i+1) + \"] - [\" \n\t\t\t\t\t\t+ trans.get(j) + \" \" + trans.get(j+1) + \"] + [\" \n\t\t\t\t\t\t+ gen5_1[0] + \" \" + gen5_1[1] + \"] = \");\n\t\t\t\tpimCalc10.add(\" + [\" + trans.get(i) + \" \" + trans.get(i+1) + \"] - [\" \n\t\t\t\t\t\t+ trans.get(j) + \" \" + trans.get(j+1) + \"] + [\" \n\t\t\t\t\t\t+ gen5_2[0] + \" \" + gen5_2[1] + \"] = \");\n\t\t\t\tpimCalc16.add(\" + [\" + trans.get(i) + \" \" + trans.get(i+1) + \"] - [\" \n\t\t\t\t\t\t+ trans.get(j) + \" \" + trans.get(j+1) + \"] + [\" \n\t\t\t\t\t\t+ gen5_3[0] + \" \" + gen5_3[1] + \"] = \");\n\t\t\t\tpimCalc22.add(\" + [\" + trans.get(i) + \" \" + trans.get(i+1) + \"] - [\" \n\t\t\t\t\t\t+ trans.get(j) + \" \" + trans.get(j+1) + \"] + [\" \n\t\t\t\t\t\t+ gen5_4[0] + \" \" + gen5_4[1] + \"] = \");\n\t\t\t}\n\t\t}\n\t\t\n\t\t// + - -\n\t\tfor(int i = 0; i < trans.size(); i = i+2) {\n\t\t\tfor(int j = i; j < trans.size(); j=j+2) {\n\t\t\t\t//5Gen 1\n\t\t\t\ttempPimLow1 = trans.get(i) - trans.get(j+1) - gen5_1[1];\n\t\t\t\ttempPimHigh1 = trans.get(i+1) - trans.get(j) - gen5_1[0];\n\t\t\t\t//5Gen 2\n\t\t\t\ttempPimLow2 = trans.get(i) - trans.get(j+1) - gen5_2[1];\n\t\t\t\ttempPimHigh2 = trans.get(i+1) - trans.get(j) - gen5_2[0];\n\t\t\t\t//5Gen 3\n\t\t\t\ttempPimLow3 = trans.get(i) - trans.get(j+1) - gen5_3[1];\n\t\t\t\ttempPimHigh3 = trans.get(i+1) - trans.get(j) - gen5_3[0];\n\t\t\t\t//5Gen 4\n\t\t\t\ttempPimLow4 = trans.get(i) - trans.get(j+1) - gen5_4[1];\n\t\t\t\ttempPimHigh4 = trans.get(i+1) - trans.get(j) - gen5_4[0];\n\t\t\t\t//Push to Pim\n\t\t\t\tPIM5.add(tempPimLow1);\n\t\t\t\tPIM11.add(tempPimLow2);\n\t\t\t\tPIM17.add(tempPimLow3);\n\t\t\t\tPIM23.add(tempPimLow4);\n\t\t\t\tPIM5.add(tempPimHigh1);\n\t\t\t\tPIM11.add(tempPimHigh2);\n\t\t\t\tPIM17.add(tempPimHigh3);\n\t\t\t\tPIM23.add(tempPimHigh4);\n\t\t\t\tpimCalc5.add(\" + [\" + trans.get(i) + \" \" + trans.get(i+1) + \"] - [\" \n\t\t\t\t\t\t+ trans.get(j) + \" \" + trans.get(j+1) + \"] - [\" \n\t\t\t\t\t\t+ gen5_1[0] + \" \" + gen5_1[1] + \"] = \");\n\t\t\t\tpimCalc11.add(\" + [\" + trans.get(i) + \" \" + trans.get(i+1) + \"] - [\" \n\t\t\t\t\t\t+ trans.get(j) + \" \" + trans.get(j+1) + \"] - [\" \n\t\t\t\t\t\t+ gen5_2[0] + \" \" + gen5_2[1] + \"] = \");\n\t\t\t\tpimCalc17.add(\" + [\" + trans.get(i) + \" \" + trans.get(i+1) + \"] - [\" \n\t\t\t\t\t\t+ trans.get(j) + \" \" + trans.get(j+1) + \"] - [\" \n\t\t\t\t\t\t+ gen5_3[0] + \" \" + gen5_3[1] + \"] = \");\n\t\t\t\tpimCalc23.add(\" + [\" + trans.get(i) + \" \" + trans.get(i+1) + \"] - [\" \n\t\t\t\t\t\t+ trans.get(j) + \" \" + trans.get(j+1) + \"] - [\" \n\t\t\t\t\t\t+ gen5_4[0] + \" \" + gen5_4[1] + \"] = \");\n\t\t\t}\n\t\t}\n\t\t\n\t\t// + + -\n\t\tfor(int i = 0; i < trans.size(); i = i+2) {\n\t\t\tfor(int j = i; j < trans.size(); j=j+2) {\n\t\t\t\t//5Gen 1\n\t\t\t\ttempPimLow1 = trans.get(i) + trans.get(j) - gen5_1[1];\n\t\t\t\ttempPimHigh1 = trans.get(i+1) + trans.get(j+1) - gen5_1[0];\n\t\t\t\t//5Gen 2\n\t\t\t\ttempPimLow2 = trans.get(i) + trans.get(j) - gen5_2[1];\n\t\t\t\ttempPimHigh2 = trans.get(i+1) + trans.get(j+1) - gen5_2[0];\n\t\t\t\t//5Gen 3\n\t\t\t\ttempPimLow3 = trans.get(i) + trans.get(j) - gen5_3[1];\n\t\t\t\ttempPimHigh3 = trans.get(i+1) + trans.get(j+1) - gen5_3[0];\n\t\t\t\t//5Gen 4\n\t\t\t\ttempPimLow4 = trans.get(i) + trans.get(j) - gen5_4[1];\n\t\t\t\ttempPimHigh4 = trans.get(i+1) + trans.get(j+1) - gen5_4[0];\n\t\t\t\t//Push to Pim\n\t\t\t\tPIM6.add(tempPimLow1);\n\t\t\t\tPIM12.add(tempPimLow2);\n\t\t\t\tPIM18.add(tempPimLow3);\n\t\t\t\tPIM24.add(tempPimLow4);\n\t\t\t\tPIM6.add(tempPimHigh1);\n\t\t\t\tPIM12.add(tempPimHigh2);\n\t\t\t\tPIM18.add(tempPimHigh3);\n\t\t\t\tPIM24.add(tempPimHigh4);\n\t\t\t\tpimCalc6.add(\" + [\" + trans.get(i) + \" \" + trans.get(i+1) + \"] + [\" \n\t\t\t\t\t\t+ trans.get(j) + \" \" + trans.get(j+1) + \"] - [\" \n\t\t\t\t\t\t+ gen5_1[0] + \" \" + gen5_1[1] + \"] = \");\n\t\t\t\tpimCalc12.add(\" + [\" + trans.get(i) + \" \" + trans.get(i+1) + \"] + [\" \n\t\t\t\t\t\t+ trans.get(j) + \" \" + trans.get(j+1) + \"] - [\" \n\t\t\t\t\t\t+ gen5_2[0] + \" \" + gen5_2[1] + \"] = \");\n\t\t\t\tpimCalc18.add(\" + [\" + trans.get(i) + \" \" + trans.get(i+1) + \"] + [\" \n\t\t\t\t\t\t+ trans.get(j) + \" \" + trans.get(j+1) + \"] - [\" \n\t\t\t\t\t\t+ gen5_3[0] + \" \" + gen5_3[1] + \"] = \");\n\t\t\t\tpimCalc24.add(\" + [\" + trans.get(i) + \" \" + trans.get(i+1) + \"] + [\" \n\t\t\t\t\t\t+ trans.get(j) + \" \" + trans.get(j+1) + \"] - [\" \n\t\t\t\t\t\t+ gen5_4[0] + \" \" + gen5_4[1] + \"] = \");\n\t\t\t}\n\t\t}\n\n\t\t//Calculate 3rd order Intermod using all frequencies \n\t\t//+ + +\n\t\tfor(int i = 0; i < trans.size(); i = i+2) {\n\t\t\tfor(int j = i; j < trans.size(); j = j+2) {\n\t\t\t\tfor(int k = j; k < trans.size(); k = k+2) {\n\t\t\t\t\ttempPimLow5 = trans.get(i) + trans.get(j) + trans.get(k);\n\t\t\t\t\ttempPimHigh5 = trans.get(i+1) + trans.get(j+1) + trans.get(k+1);\n\t\t\t\t\tif((trans.get(i) >= 2496 || trans.get(j) >= 2496 || trans.get(k) >= 2496) && tempPimHigh5 >= 2496) {\n\t\t\t\t\t\tpimAll1.add((double) 0);\n\t\t\t\t\t\tpimAll1.add((double) 0);\n\t\t\t\t\t\tpimAllCalc1.add(\" \");\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tpimAll1.add(tempPimLow5);\n\t\t\t\t\tpimAll1.add(tempPimHigh5);\n\t\t\t\t\tpimAllCalc1.add(\" + [\" + trans.get(i) + \" \" + trans.get(i+1) + \"] + [\" \n\t\t\t\t\t\t\t+ trans.get(j) + \" \" + trans.get(j+1) + \"] + [\" \n\t\t\t\t\t\t\t+ trans.get(k) + \" \" + trans.get(k+1) + \"] = \");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t// - + +\n\t\tfor(int i = 0; i < trans.size(); i = i+2) {\n\t\t\tfor(int j = i; j < trans.size(); j = j+2) {\n\t\t\t\tfor(int k = j; k < trans.size(); k = k+2) {\n\t\t\t\t\ttempPimLow5 = -trans.get(i+1) + trans.get(j) + trans.get(k);\n\t\t\t\t\ttempPimHigh5 = -trans.get(i) + trans.get(j+1) + trans.get(k+1);\n\t\t\t\t\tif((trans.get(i) >= 2496 || trans.get(j) >= 2496 || trans.get(k) >= 2496) && tempPimHigh5 >= 2496) {\n\t\t\t\t\t\tpimAll2.add((double) 0);\n\t\t\t\t\t\tpimAll2.add((double) 0);\n\t\t\t\t\t\tpimAllCalc2.add(\" \");\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tpimAll2.add(tempPimLow5);\n\t\t\t\t\tpimAll2.add(tempPimHigh5);\n\t\t\t\t\tpimAllCalc2.add(\" - [\" + trans.get(i) + \" \" + trans.get(i+1) + \"] + [\" \n\t\t\t\t\t\t\t+ trans.get(j) + \" \" + trans.get(j+1) + \"] + [\" \n\t\t\t\t\t\t\t+ trans.get(k) + \" \" + trans.get(k+1) + \"] = \");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t// - - +\n\t\tfor(int i = 0; i < trans.size(); i = i+2) {\n\t\t\tfor(int j = i; j < trans.size(); j = j+2) {\n\t\t\t\tfor(int k = j; k < trans.size(); k = k+2) {\n\t\t\t\t\ttempPimLow5 = -trans.get(i+1) - trans.get(j+1) + trans.get(k);\n\t\t\t\t\ttempPimHigh5 = -trans.get(i) - trans.get(j) + trans.get(k+1);\n\t\t\t\t\tif((trans.get(i) >= 2496 || trans.get(j) >= 2496 || trans.get(k) >= 2496) && tempPimHigh5 >= 2496) {\n\t\t\t\t\t\tpimAll3.add((double) 0);\n\t\t\t\t\t\tpimAll3.add((double) 0);\n\t\t\t\t\t\tpimAllCalc3.add(\" \");\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tpimAll3.add(tempPimLow5);\n\t\t\t\t\tpimAll3.add(tempPimHigh5);\n\t\t\t\t\tpimAllCalc3.add(\" - [\" + trans.get(i) + \" \" + trans.get(i+1) + \"] - [\" \n\t\t\t\t\t\t\t+ trans.get(j) + \" \" + trans.get(j+1) + \"] + [\" \n\t\t\t\t\t\t\t+ trans.get(k) + \" \" + trans.get(k+1) + \"] = \");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t//+ - +\n\t\tfor(int i = 0; i < trans.size(); i = i+2) {\n\t\t\tfor(int j = i; j < trans.size(); j = j+2) {\n\t\t\t\tfor(int k = j; k < trans.size(); k = k+2) {\n\t\t\t\t\tif(trans.get(i) == trans.get(j)) {\n\t\t\t\t\t\tpimAll4.add((double) 0);\n\t\t\t\t\t\tpimAll4.add((double) 0);\n\t\t\t\t\t\tpimAllCalc4.add(\" \");\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tif(trans.get(j) == trans.get(k)) {\n\t\t\t\t\t\tpimAll4.add((double) 0);\n\t\t\t\t\t\tpimAll4.add((double) 0);\n\t\t\t\t\t\tpimAllCalc4.add(\" \");\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\ttempPimLow5 = trans.get(i) - trans.get(j+1) + trans.get(k);\n\t\t\t\t\ttempPimHigh5 = trans.get(i+1) - trans.get(j) + trans.get(k+1);\n\t\t\t\t\tif((trans.get(i) >= 2496 || trans.get(j) >= 2496 || trans.get(k) >= 2496) && tempPimHigh5 >= 2496) {\n\t\t\t\t\t\tpimAll4.add((double) 0);\n\t\t\t\t\t\tpimAll4.add((double) 0);\n\t\t\t\t\t\tpimAllCalc4.add(\" \");\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tpimAll4.add(tempPimLow5);\n\t\t\t\t\tpimAll4.add(tempPimHigh5);\n\t\t\t\t\tpimAllCalc4.add(\" + [\" + trans.get(i) + \" \" + trans.get(i+1) + \"] - [\" \n\t\t\t\t\t\t\t+ trans.get(j) + \" \" + trans.get(j+1) + \"] + [\" \n\t\t\t\t\t\t\t+ trans.get(k) + \" \" + trans.get(k+1) + \"] = \");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t//+ - -\n\t\tfor(int i = 0; i < trans.size(); i = i+2) {\n\t\t\tfor(int j = i; j < trans.size(); j = j+2) {\n\t\t\t\tfor(int k = j; k < trans.size(); k = k+2) {\n\t\t\t\t\ttempPimLow5 = trans.get(i) - trans.get(j+1) - trans.get(k+1);\n\t\t\t\t\ttempPimHigh5 = trans.get(i+1) - trans.get(j) - trans.get(k);\n\t\t\t\t\tif((trans.get(i) >= 2496 || trans.get(j) >= 2496 || trans.get(k) >= 2496) && tempPimHigh5 >= 2496) {\n\t\t\t\t\t\tpimAll5.add((double) 0);\n\t\t\t\t\t\tpimAll5.add((double) 0);\n\t\t\t\t\t\tpimAllCalc5.add(\" \");\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tpimAll5.add(tempPimLow5);\n\t\t\t\t\tpimAll5.add(tempPimHigh5);\n\t\t\t\t\tpimAllCalc5.add(\" + [\" + trans.get(i) + \" \" + trans.get(i+1) + \"] - [\" \n\t\t\t\t\t\t\t+ trans.get(j) + \" \" + trans.get(j+1) + \"] - [\" \n\t\t\t\t\t\t\t+ trans.get(k) + \" \" + trans.get(k+1) + \"] = \");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t//+ + -\n\t\tfor(int i = 0; i < trans.size(); i = i+2) {\n\t\t\tfor(int j = i; j < trans.size(); j = j+2) {\n\t\t\t\tfor(int k = j; k < trans.size(); k = k+2) {\n\t\t\t\t\tif(trans.get(i) == trans.get(k)) {\n\t\t\t\t\t\tpimAll6.add((double) 0);\n\t\t\t\t\t\tpimAll6.add((double) 0);\n\t\t\t\t\t\tpimAllCalc6.add(\" \");\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\ttempPimLow5 = trans.get(i) + trans.get(j) - trans.get(k+1);\n\t\t\t\t\ttempPimHigh5 = trans.get(i+1) + trans.get(j+1) - trans.get(k);\n\t\t\t\t\tif((trans.get(i) >= 2496 || trans.get(j) >= 2496 || trans.get(k) >= 2496) && tempPimHigh5 >= 2496) {\n\t\t\t\t\t\tpimAll6.add((double) 0);\n\t\t\t\t\t\tpimAll6.add((double) 0);\n\t\t\t\t\t\tpimAllCalc6.add(\" \");\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tpimAll6.add(tempPimLow5);\n\t\t\t\t\tpimAll6.add(tempPimHigh5);\n\t\t\t\t\tpimAllCalc6.add(\" + [\" + trans.get(i) + \" \" + trans.get(i+1) + \"] + [\" \n\t\t\t\t\t\t\t+ trans.get(j) + \" \" + trans.get(j+1) + \"] - [\" \n\t\t\t\t\t\t\t+ trans.get(k) + \" \" + trans.get(k+1) + \"] = \");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t/*-----------------------------Calculations Complete ------------------------------------------*/\n\t\t\n\t\t/*=----------------------------Begin doing comparison-----------------------------------------*/\n\t\t\n\t\t//Comparison with the method using at least one 5G frequency\n\t\tfor(int x = 0; x < PIM1.size(); x = x+2) {\n\t\t\tfor(int q = 0; q < rcv.size(); q = q+2) {\n\t\t\t\t//5Gen 1\n\t\t\t\tif(PIM1.get(x+1) <= rcv.get(q+1) && PIM1.get(x+1) >= rcv.get(q)) {\n\t\t\t\t\twhereTrans.add(pimCalc1.get(x/2) + \"[\" + PIM1.get(x) + \" \" + PIM1.get(x+1) + \"] RX: \" + rcv.get(q) + \" \" + rcv.get(q+1));\n\t\t\t\t\thits++;\n\t\t\t\t}\n\t\t\t\tif(PIM1.get(x) >= rcv.get(q) && PIM1.get(x) < rcv.get(q+1)) {\n\t\t\t\t\twhereTrans.add(pimCalc1.get(x/2) + \"[\" + PIM1.get(x) + \" \" + PIM1.get(x+1) + \"] RX: \" + rcv.get(q) + \" \" + rcv.get(q+1));\n\t\t\t\t\thits++;\n\t\t\t\t}\n\t\t\t\tif(PIM2.get(x+1) <= rcv.get(q+1) && PIM2.get(x+1) >= rcv.get(q)) {\n\t\t\t\t\twhereTrans.add(pimCalc2.get(x/2) + \"[\" + PIM2.get(x) + \" \" + PIM2.get(x+1) + \"] RX: \" + rcv.get(q) + \" \" + rcv.get(q+1));\n\t\t\t\t\thits++;\n\t\t\t\t}\n\t\t\t\tif(PIM2.get(x) >= rcv.get(q) && PIM2.get(x) < rcv.get(q+1)) {\n\t\t\t\t\twhereTrans.add(pimCalc2.get(x/2) + \"[\" + PIM2.get(x) + \" \" + PIM2.get(x+1) + \"] RX: \" + rcv.get(q) + \" \" + rcv.get(q+1));\n\t\t\t\t\thits++;\n\t\t\t\t}\n\t\t\t\tif(PIM3.get(x+1) <= rcv.get(q+1) && PIM3.get(x+1) >= rcv.get(q)) {\n\t\t\t\t\twhereTrans.add(pimCalc3.get(x/2) + \"[\" + PIM3.get(x) + \" \" + PIM3.get(x+1) + \"] RX: \" + rcv.get(q) + \" \" + rcv.get(q+1));\n\t\t\t\t\thits++;\n\t\t\t\t}\n\t\t\t\tif(PIM3.get(x) >= rcv.get(q) && PIM3.get(x) < rcv.get(q+1)) {\n\t\t\t\t\twhereTrans.add(pimCalc3.get(x/2) + \"[\" + PIM3.get(x) + \" \" + PIM3.get(x+1) + \"] RX: \" + rcv.get(q) + \" \" + rcv.get(q+1));\n\t\t\t\t\thits++;\n\t\t\t\t}\n\t\t\t\tif(PIM4.get(x+1) <= rcv.get(q+1) && PIM4.get(x+1) >= rcv.get(q)) {\n\t\t\t\t\twhereTrans.add(pimCalc4.get(x/2) + \"[\" + PIM4.get(x) + \" \" + PIM4.get(x+1) + \"] RX: \" + rcv.get(q) + \" \" + rcv.get(q+1));\n\t\t\t\t\thits++;\n\t\t\t\t}\n\t\t\t\tif(PIM4.get(x) >= rcv.get(q) && PIM4.get(x) < rcv.get(q+1)) {\n\t\t\t\t\twhereTrans.add(pimCalc4.get(x/2) + \"[\" + PIM4.get(x) + \" \" + PIM4.get(x+1) + \"] RX: \" + rcv.get(q) + \" \" + rcv.get(q+1));\n\t\t\t\t\thits++;\n\t\t\t\t}\n\t\t\t\tif(PIM5.get(x+1) <= rcv.get(q+1) && PIM5.get(x+1) >= rcv.get(q)) {\n\t\t\t\t\twhereTrans.add(pimCalc5.get(x/2) + \"[\" + PIM5.get(x) + \" \" + PIM5.get(x+1) + \"] RX: \" + rcv.get(q) + \" \" + rcv.get(q+1));\n\t\t\t\t\thits++;\n\t\t\t\t}\n\t\t\t\tif(PIM5.get(x) >= rcv.get(q) && PIM5.get(x) < rcv.get(q+1)) {\n\t\t\t\t\twhereTrans.add(pimCalc5.get(x/2) + \"[\" + PIM5.get(x) + \" \" + PIM5.get(x+1) + \"] RX: \" + rcv.get(q) + \" \" + rcv.get(q+1));\n\t\t\t\t\thits++;\n\t\t\t\t}\n\t\t\t\tif(PIM6.get(x+1) <= rcv.get(q+1) && PIM6.get(x+1) >= rcv.get(q)) {\n\t\t\t\t\twhereTrans.add(pimCalc6.get(x/2) + \"[\" + PIM6.get(x) + \" \" + PIM6.get(x+1) + \"] RX: \" + rcv.get(q) + \" \" + rcv.get(q+1));\n\t\t\t\t\thits++;\n\t\t\t\t}\n\t\t\t\tif(PIM6.get(x) >= rcv.get(q) && PIM6.get(x) < rcv.get(q+1)) {\n\t\t\t\t\twhereTrans.add(pimCalc6.get(x/2) + \"[\" + PIM6.get(x) + \" \" + PIM6.get(x+1) + \"] RX: \" + rcv.get(q) + \" \" + rcv.get(q+1));\n\t\t\t\t\thits++;\n\t\t\t\t}\n\t\t\t\t//5Gen 2\n\t\t\t\tif(PIM7.get(x+1) <= rcv.get(q+1) && PIM7.get(x+1) >= rcv.get(q)) {\n\t\t\t\t\twhereTrans.add(pimCalc7.get(x/2) + \"[\" + PIM7.get(x) + \" \" + PIM7.get(x+1) + \"] RX: \" + rcv.get(q) + \" \" + rcv.get(q+1));\n\t\t\t\t\thits++;\n\t\t\t\t}\n\t\t\t\tif(PIM7.get(x) >= rcv.get(q) && PIM7.get(x) < rcv.get(q+1)) {\n\t\t\t\t\twhereTrans.add(pimCalc7.get(x/2) + \"[\" + PIM7.get(x) + \" \" + PIM7.get(x+1) + \"] RX: \" + rcv.get(q) + \" \" + rcv.get(q+1));\n\t\t\t\t\thits++;\n\t\t\t\t}\n\t\t\t\tif(PIM8.get(x+1) <= rcv.get(q+1) && PIM8.get(x+1) >= rcv.get(q)) {\n\t\t\t\t\twhereTrans.add(pimCalc8.get(x/2) + \"[\" + PIM8.get(x) + \" \" + PIM8.get(x+1) + \"] RX: \" + rcv.get(q) + \" \" + rcv.get(q+1));\n\t\t\t\t\thits++;\n\t\t\t\t}\n\t\t\t\tif(PIM8.get(x) >= rcv.get(q) && PIM8.get(x) < rcv.get(q+1)) {\n\t\t\t\t\twhereTrans.add(pimCalc8.get(x/2) + \"[\" + PIM8.get(x) + \" \" + PIM8.get(x+1) + \"] RX: \" + rcv.get(q) + \" \" + rcv.get(q+1));\n\t\t\t\t\thits++;\n\t\t\t\t}\n\t\t\t\tif(PIM9.get(x+1) <= rcv.get(q+1) && PIM9.get(x+1) >= rcv.get(q)) {\n\t\t\t\t\twhereTrans.add(pimCalc9.get(x/2) + \"[\" + PIM9.get(x) + \" \" + PIM9.get(x+1) + \"] RX: \" + rcv.get(q) + \" \" + rcv.get(q+1));\n\t\t\t\t\thits++;\n\t\t\t\t}\n\t\t\t\tif(PIM9.get(x) >= rcv.get(q) && PIM9.get(x) < rcv.get(q+1)) {\n\t\t\t\t\twhereTrans.add(pimCalc9.get(x/2) + \"[\" + PIM9.get(x) + \" \" + PIM9.get(x+1) + \"] RX: \" + rcv.get(q) + \" \" + rcv.get(q+1));\n\t\t\t\t\thits++;\n\t\t\t\t}\n\t\t\t\tif(PIM10.get(x+1) <= rcv.get(q+1) && PIM10.get(x+1) >= rcv.get(q)) {\n\t\t\t\t\twhereTrans.add(pimCalc10.get(x/2) + \"[\" + PIM10.get(x) + \" \" + PIM10.get(x+1) + \"] RX: \" + rcv.get(q) + \" \" + rcv.get(q+1));\n\t\t\t\t\thits++;\n\t\t\t\t}\n\t\t\t\tif(PIM10.get(x) >= rcv.get(q) && PIM10.get(x) < rcv.get(q+1)) {\n\t\t\t\t\twhereTrans.add(pimCalc10.get(x/2) + \"[\" + PIM10.get(x) + \" \" + PIM10.get(x+1) + \"] RX: \" + rcv.get(q) + \" \" + rcv.get(q+1));\n\t\t\t\t\thits++;\n\t\t\t\t}\n\t\t\t\tif(PIM11.get(x+1) <= rcv.get(q+1) && PIM11.get(x+1) >= rcv.get(q)) {\n\t\t\t\t\twhereTrans.add(pimCalc11.get(x/2) + \"[\" + PIM11.get(x) + \" \" + PIM11.get(x+1) + \"] RX: \" + rcv.get(q) + \" \" + rcv.get(q+1));\n\t\t\t\t\thits++;\n\t\t\t\t}\n\t\t\t\tif(PIM11.get(x) >= rcv.get(q) && PIM11.get(x) < rcv.get(q+1)) {\n\t\t\t\t\twhereTrans.add(pimCalc11.get(x/2) + \"[\" + PIM11.get(x) + \" \" + PIM11.get(x+1) + \"] RX: \" + rcv.get(q) + \" \" + rcv.get(q+1));\n\t\t\t\t\thits++;\n\t\t\t\t}\n\t\t\t\tif(PIM12.get(x+1) <= rcv.get(q+1) && PIM12.get(x+1) >= rcv.get(q)) {\n\t\t\t\t\twhereTrans.add(pimCalc12.get(x/2) + \"[\" + PIM12.get(x) + \" \" + PIM12.get(x+1) + \"] RX: \" + rcv.get(q) + \" \" + rcv.get(q+1));\n\t\t\t\t\thits++;\n\t\t\t\t}\n\t\t\t\tif(PIM12.get(x) >= rcv.get(q) && PIM12.get(x) < rcv.get(q+1)) {\n\t\t\t\t\twhereTrans.add(pimCalc12.get(x/2) + \"[\" + PIM12.get(x) + \" \" + PIM12.get(x+1) + \"] RX: \" + rcv.get(q) + \" \" + rcv.get(q+1));\n\t\t\t\t\thits++;\n\t\t\t\t}\n\t\t\t\t//5Gen 3\n\t\t\t\tif(PIM13.get(x+1) <= rcv.get(q+1) && PIM13.get(x+1) >= rcv.get(q)) {\n\t\t\t\t\twhereTrans.add(pimCalc13.get(x/2) + \"[\" + PIM13.get(x) + \" \" + PIM13.get(x+1) + \"] RX: \" + rcv.get(q) + \" \" + rcv.get(q+1));\n\t\t\t\t\thits++;\n\t\t\t\t}\n\t\t\t\tif(PIM13.get(x) >= rcv.get(q) && PIM13.get(x) < rcv.get(q+1)) {\n\t\t\t\t\twhereTrans.add(pimCalc13.get(x/2) + \"[\" + PIM13.get(x) + \" \" + PIM13.get(x+1) + \"] RX: \" + rcv.get(q) + \" \" + rcv.get(q+1));\n\t\t\t\t\thits++;\n\t\t\t\t}\n\t\t\t\tif(PIM14.get(x+1) <= rcv.get(q+1) && PIM14.get(x+1) >= rcv.get(q)) {\n\t\t\t\t\twhereTrans.add(pimCalc14.get(x/2) + \"[\" + PIM14.get(x) + \" \" + PIM14.get(x+1) + \"] RX: \" + rcv.get(q) + \" \" + rcv.get(q+1));\n\t\t\t\t\thits++;\n\t\t\t\t}\n\t\t\t\tif(PIM14.get(x) >= rcv.get(q) && PIM14.get(x) < rcv.get(q+1)) {\n\t\t\t\t\twhereTrans.add(pimCalc14.get(x/2) + \"[\" + PIM14.get(x) + \" \" + PIM14.get(x+1) + \"] RX: \" + rcv.get(q) + \" \" + rcv.get(q+1));\n\t\t\t\t\thits++;\n\t\t\t\t}\n\t\t\t\tif(PIM15.get(x+1) <= rcv.get(q+1) && PIM15.get(x+1) >= rcv.get(q)) {\n\t\t\t\t\twhereTrans.add(pimCalc14.get(x/2) + \"[\" + PIM15.get(x) + \" \" + PIM15.get(x+1) + \"] RX: \" + rcv.get(q) + \" \" + rcv.get(q+1));\n\t\t\t\t\thits++;\n\t\t\t\t}\n\t\t\t\tif(PIM15.get(x) >= rcv.get(q) && PIM15.get(x) < rcv.get(q+1)) {\n\t\t\t\t\twhereTrans.add(pimCalc15.get(x/2) + \"[\" + PIM15.get(x) + \" \" + PIM15.get(x+1) + \"] RX: \" + rcv.get(q) + \" \" + rcv.get(q+1));\n\t\t\t\t\thits++;\n\t\t\t\t}\n\t\t\t\tif(PIM16.get(x+1) <= rcv.get(q+1) && PIM16.get(x+1) >= rcv.get(q)) {\n\t\t\t\t\twhereTrans.add(pimCalc16.get(x/2) + \"[\" + PIM16.get(x) + \" \" + PIM16.get(x+1) + \"] RX: \" + rcv.get(q) + \" \" + rcv.get(q+1));\n\t\t\t\t\thits++;\n\t\t\t\t}\n\t\t\t\tif(PIM16.get(x) >= rcv.get(q) && PIM16.get(x) < rcv.get(q+1)) {\n\t\t\t\t\twhereTrans.add(pimCalc16.get(x/2) + \"[\" + PIM16.get(x) + \" \" + PIM16.get(x+1) + \"] RX: \" + rcv.get(q) + \" \" + rcv.get(q+1));\n\t\t\t\t\thits++;\n\t\t\t\t}\n\t\t\t\tif(PIM17.get(x+1) <= rcv.get(q+1) && PIM17.get(x+1) >= rcv.get(q)) {\n\t\t\t\t\twhereTrans.add(pimCalc17.get(x/2) + \"[\" + PIM17.get(x) + \" \" + PIM17.get(x+1) + \"] RX: \" + rcv.get(q) + \" \" + rcv.get(q+1));\n\t\t\t\t\thits++;\n\t\t\t\t}\n\t\t\t\tif(PIM17.get(x) >= rcv.get(q) && PIM17.get(x) < rcv.get(q+1)) {\n\t\t\t\t\twhereTrans.add(pimCalc17.get(x/2) + \"[\" + PIM17.get(x) + \" \" + PIM17.get(x+1) + \"] RX: \" + rcv.get(q) + \" \" + rcv.get(q+1));\n\t\t\t\t\thits++;\n\t\t\t\t}\n\t\t\t\tif(PIM18.get(x+1) <= rcv.get(q+1) && PIM18.get(x+1) >= rcv.get(q)) {\n\t\t\t\t\twhereTrans.add(pimCalc18.get(x/2) + \"[\" + PIM18.get(x) + \" \" + PIM18.get(x+1) + \"] RX: \" + rcv.get(q) + \" \" + rcv.get(q+1));\n\t\t\t\t\thits++;\n\t\t\t\t}\n\t\t\t\tif(PIM18.get(x) >= rcv.get(q) && PIM18.get(x) < rcv.get(q+1)) {\n\t\t\t\t\twhereTrans.add(pimCalc18.get(x/2) + \"[\" + PIM18.get(x) + \" \" + PIM18.get(x+1) + \"] RX: \" + rcv.get(q) + \" \" + rcv.get(q+1));\n\t\t\t\t\thits++;\n\t\t\t\t}\n\t\t\t\t//5Gen 4\n\t\t\t\tif(PIM19.get(x+1) <= rcv.get(q+1) && PIM19.get(x+1) >= rcv.get(q)) {\n\t\t\t\t\twhereTrans.add(pimCalc19.get(x/2) + \"[\" + PIM19.get(x) + \" \" + PIM19.get(x+1) + \"] RX: \" + rcv.get(q) + \" \" + rcv.get(q+1));\n\t\t\t\t\thits++;\n\t\t\t\t}\n\t\t\t\tif(PIM19.get(x) >= rcv.get(q) && PIM19.get(x) < rcv.get(q+1)) {\n\t\t\t\t\twhereTrans.add(pimCalc19.get(x/2) + \"[\" + PIM19.get(x) + \" \" + PIM19.get(x+1) + \"] RX: \" + rcv.get(q) + \" \" + rcv.get(q+1));\n\t\t\t\t\thits++;\n\t\t\t\t}\n\t\t\t\tif(PIM20.get(x+1) <= rcv.get(q+1) && PIM20.get(x+1) >= rcv.get(q)) {\n\t\t\t\t\twhereTrans.add(pimCalc20.get(x/2) + \"[\" + PIM20.get(x) + \" \" + PIM20.get(x+1) + \"] RX: \" + rcv.get(q) + \" \" + rcv.get(q+1));\n\t\t\t\t\thits++;\n\t\t\t\t}\n\t\t\t\tif(PIM20.get(x) >= rcv.get(q) && PIM20.get(x) < rcv.get(q+1)) {\n\t\t\t\t\twhereTrans.add(pimCalc20.get(x/2) + \"[\" + PIM20.get(x) + \" \" + PIM20.get(x+1) + \"] RX: \" + rcv.get(q) + \" \" + rcv.get(q+1));\n\t\t\t\t\thits++;\n\t\t\t\t}\n\t\t\t\tif(PIM21.get(x+1) <= rcv.get(q+1) && PIM21.get(x+1) >= rcv.get(q)) {\n\t\t\t\t\twhereTrans.add(pimCalc21.get(x/2) + \"[\" + PIM21.get(x) + \" \" + PIM21.get(x+1) + \"] RX: \" + rcv.get(q) + \" \" + rcv.get(q+1));\n\t\t\t\t\thits++;\n\t\t\t\t}\n\t\t\t\tif(PIM21.get(x) >= rcv.get(q) && PIM21.get(x) < rcv.get(q+1)) {\n\t\t\t\t\twhereTrans.add(pimCalc21.get(x/2) + \"[\" + PIM21.get(x) + \" \" + PIM21.get(x+1) + \"] RX: \" + rcv.get(q) + \" \" + rcv.get(q+1));\n\t\t\t\t\thits++;\n\t\t\t\t}\n\t\t\t\tif(PIM22.get(x+1) <= rcv.get(q+1) && PIM22.get(x+1) >= rcv.get(q)) {\n\t\t\t\t\twhereTrans.add(pimCalc22.get(x/2) + \"[\" + PIM22.get(x) + \" \" + PIM22.get(x+1) + \"] RX: \" + rcv.get(q) + \" \" + rcv.get(q+1));\n\t\t\t\t\thits++;\n\t\t\t\t}\n\t\t\t\tif(PIM22.get(x) >= rcv.get(q) && PIM22.get(x) < rcv.get(q+1)) {\n\t\t\t\t\twhereTrans.add(pimCalc22.get(x/2) + \"[\" + PIM22.get(x) + \" \" + PIM22.get(x+1) + \"] RX: \" + rcv.get(q) + \" \" + rcv.get(q+1));\n\t\t\t\t\thits++;\n\t\t\t\t}\n\t\t\t\tif(PIM23.get(x+1) <= rcv.get(q+1) && PIM23.get(x+1) >= rcv.get(q)) {\n\t\t\t\t\twhereTrans.add(pimCalc23.get(x/2) + \"[\" + PIM23.get(x) + \" \" + PIM23.get(x+1) + \"] RX: \" + rcv.get(q) + \" \" + rcv.get(q+1));\n\t\t\t\t\thits++;\n\t\t\t\t}\n\t\t\t\tif(PIM23.get(x) >= rcv.get(q) && PIM23.get(x) < rcv.get(q+1)) {\n\t\t\t\t\twhereTrans.add(pimCalc23.get(x/2) + \"[\" + PIM23.get(x) + \" \" + PIM23.get(x+1) + \"] RX: \" + rcv.get(q) + \" \" + rcv.get(q+1));\n\t\t\t\t\thits++;\n\t\t\t\t}\n\t\t\t\tif(PIM24.get(x+1) <= rcv.get(q+1) && PIM24.get(x+1) >= rcv.get(q)) {\n\t\t\t\t\twhereTrans.add(pimCalc24.get(x/2) + \"[\" + PIM24.get(x) + \" \" + PIM24.get(x+1) + \"] RX: \" + rcv.get(q) + \" \" + rcv.get(q+1));\n\t\t\t\t\thits++;\n\t\t\t\t}\n\t\t\t\tif(PIM24.get(x) >= rcv.get(q) && PIM24.get(x) < rcv.get(q+1)) {\n\t\t\t\t\twhereTrans.add(pimCalc24.get(x/2) + \"[\" + PIM24.get(x) + \" \" + PIM24.get(x+1) + \"] RX: \" + rcv.get(q) + \" \" + rcv.get(q+1));\n\t\t\t\t\thits++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Comparison using all frequency band on receiver and transmiter\n\t\tfor(int x = 0; x < pimAll1.size(); x = x+2) {\n\t\t\tfor(int q = 0; q < rcv.size(); q = q+2) {\n\t\t\t\t//+ + + Pattern hit checks\n\t\t\t\tif(pimAll1.get(x+1) < rcv.get(q+1) && pimAll1.get(x+1) > rcv.get(q)) {\n\t\t\t\t\twhereTrans1.add(pimAllCalc1.get(x/2) + \"[\" + pimAll1.get(x) + \" \" + pimAll1.get(x+1) + \"] RX: \" + rcv.get(q) + \" \" + rcv.get(q+1));\n\t\t\t\t\thits_5G++;\n\t\t\t\t}\n\t\t\t\tif(pimAll1.get(x) >= rcv.get(q) && pimAll1.get(x) < rcv.get(q+1)) {\n\t\t\t\t\twhereTrans1.add(pimAllCalc1.get(x/2) + \"[\" + pimAll1.get(x) + \" \" + pimAll1.get(x+1) + \"] RX: \" + rcv.get(q) + \" \" + rcv.get(q+1));\n\t\t\t\t\thits_5G++;\n\t\t\t\t}\n\t\t\t\tif(pimAll1.get(x) <= rcv.get(q) && pimAll1.get(x+1) >= rcv.get(q+1))\n\t\t\t\t{\n\t\t\t\t\twhereTrans1.add(pimAllCalc1.get(x/2) + \"[\" + pimAll1.get(x) + \" \" + pimAll1.get(x+1) + \"] RX: \" + rcv.get(q) + \" \" + rcv.get(q+1));\n\t\t\t\t\thits_5G++;\n\t\t\t\t}\n\t\t\t\t// - + + Pattern hit checks\n\t\t\t\tif(pimAll2.get(x+1) < rcv.get(q+1) && pimAll2.get(x+1) > rcv.get(q)) {\n\t\t\t\t\twhereTrans1.add(pimAllCalc2.get(x/2) + \"[\" + pimAll2.get(x) + \" \" + pimAll2.get(x+1) + \"] RX: \" + rcv.get(q) + \" \" + rcv.get(q+1));\n\t\t\t\t\thits_5G++;\n\t\t\t\t}\n\t\t\t\tif(pimAll2.get(x) > rcv.get(q) && pimAll2.get(x) < rcv.get(q+1)) {\n\t\t\t\t\twhereTrans1.add(pimAllCalc2.get(x/2) + \"[\" + pimAll2.get(x) + \" \" + pimAll2.get(x+1) + \"] RX: \" + rcv.get(q) + \" \" + rcv.get(q+1));\n\t\t\t\t\thits_5G++;\n\t\t\t\t}\n\t\t\t\tif(pimAll2.get(x) <= rcv.get(q) && pimAll2.get(x+1) >= rcv.get(q+1))\n\t\t\t\t{\n\t\t\t\t\twhereTrans1.add(pimAllCalc2.get(x/2) + \"[\" + pimAll2.get(x) + \" \" + pimAll2.get(x+1) + \"] RX: \" + rcv.get(q) + \" \" + rcv.get(q+1));\n\t\t\t\t\thits_5G++;\n\t\t\t\t}\n\t\t\t\t// - - + Pattern hit checks\n\t\t\t\tif(pimAll3.get(x+1) < rcv.get(q+1) && pimAll3.get(x+1) > rcv.get(q)) {\n\t\t\t\t\twhereTrans1.add(pimAllCalc3.get(x/2) + \"[\" + pimAll3.get(x) + \" \" + pimAll3.get(x+1) + \"] RX: \" + rcv.get(q) + \" \" + rcv.get(q+1));\n\t\t\t\t\thits_5G++;\n\t\t\t\t}\n\t\t\t\tif(pimAll3.get(x) > rcv.get(q) && pimAll3.get(x) < rcv.get(q+1)) {\n\t\t\t\t\twhereTrans1.add(pimAllCalc3.get(x/2) + \"[\" + pimAll3.get(x) + \" \" + pimAll3.get(x+1) + \"] RX: \" + rcv.get(q) + \" \" + rcv.get(q+1));\n\t\t\t\t\thits_5G++;\n\t\t\t\t}\n\t\t\t\tif(pimAll3.get(x) <= rcv.get(q) && pimAll3.get(x+1) >= rcv.get(q+1))\n\t\t\t\t{\n\t\t\t\t\twhereTrans1.add(pimAllCalc3.get(x/2) + \"[\" + pimAll3.get(x) + \" \" + pimAll3.get(x+1) + \"] RX: \" + rcv.get(q) + \" \" + rcv.get(q+1));\n\t\t\t\t\thits_5G++;\n\t\t\t\t}\n\t\t\t\t//+ - +Pattern hit checks\n\t\t\t\tif(pimAll4.get(x+1) < rcv.get(q+1) && pimAll4.get(x+1) > rcv.get(q)) {\n\t\t\t\t\twhereTrans1.add(pimAllCalc4.get(x/2) + \"[\" + pimAll4.get(x) + \" \" + pimAll4.get(x+1) + \"] RX: \" + rcv.get(q) + \" \" + rcv.get(q+1));\n\t\t\t\t\thits_5G++;\n\t\t\t\t}\n\t\t\t\tif(pimAll4.get(x) > rcv.get(q) && pimAll4.get(x) < rcv.get(q+1)) {\n\t\t\t\t\twhereTrans1.add(pimAllCalc4.get(x/2) + \"[\" + pimAll4.get(x) + \" \" + pimAll4.get(x+1) + \"] RX: \" + rcv.get(q) + \" \" + rcv.get(q+1));\n\t\t\t\t\thits_5G++;\n\t\t\t\t}\n\t\t\t\tif(pimAll4.get(x) <= rcv.get(q) && pimAll4.get(x+1) >= rcv.get(q+1)) {\n\t\t\t\t\twhereTrans1.add(pimAllCalc4.get(x/2) + \"[\" + pimAll4.get(x) + \" \" + pimAll4.get(x+1) + \"] RX: \" + rcv.get(q) + \" \" + rcv.get(q+1));\n\t\t\t\t\thits_5G++;\n\t\t\t\t}\n\t\t\t\t//+ - - Pattern hit checks\n\t\t\t\tif(pimAll5.get(x+1) < rcv.get(q+1) && pimAll5.get(x+1) > rcv.get(q)) {\n\t\t\t\t\twhereTrans1.add(pimAllCalc5.get(x/2) + \"[\" + pimAll5.get(x) + \" \" + pimAll5.get(x+1) + \"] RX: \" + rcv.get(q) + \" \" + rcv.get(q+1));\n\t\t\t\t\thits_5G++;\n\t\t\t\t}\n\t\t\t\tif(pimAll5.get(x) >= rcv.get(q) && pimAll5.get(x) < rcv.get(q+1)) {\n\t\t\t\t\twhereTrans1.add(pimAllCalc5.get(x/2) + \"[\" + pimAll5.get(x) + \" \" + pimAll5.get(x+1) + \"] RX: \" + rcv.get(q) + \" \" + rcv.get(q+1));\n\t\t\t\t\thits_5G++;\n\t\t\t\t}\n\t\t\t\tif(pimAll5.get(x) <= rcv.get(q) && pimAll5.get(x+1) >= rcv.get(q+1))\n\t\t\t\t{\n\t\t\t\t\twhereTrans1.add(pimAllCalc5.get(x/2) + \"[\" + pimAll5.get(x) + \" \" + pimAll5.get(x+1) + \"] RX: \" + rcv.get(q) + \" \" + rcv.get(q+1));\n\t\t\t\t\thits_5G++;\n\t\t\t\t}\n\t\t\t\t//+ + - Pattern hit checks\n\t\t\t\tif(pimAll6.get(x+1) < rcv.get(q+1) && pimAll6.get(x+1) > rcv.get(q)) {\n\t\t\t\t\twhereTrans1.add(pimAllCalc6.get(x/2) + \"[\" + pimAll6.get(x) + \" \" + pimAll6.get(x+1) + \"] RX: \" + rcv.get(q) + \" \" + rcv.get(q+1));\n\t\t\t\t\thits_5G++;\n\t\t\t\t}\n\t\t\t\tif(pimAll6.get(x) > rcv.get(q) && pimAll6.get(x) < rcv.get(q+1)) {\n\t\t\t\t\twhereTrans1.add(pimAllCalc6.get(x/2) + \"[\" + pimAll6.get(x) + \" \" + pimAll6.get(x+1) + \"] RX: \" + rcv.get(q) + \" \" + rcv.get(q+1));\n\t\t\t\t\thits_5G++;\n\t\t\t\t}\n\t\t\t\tif(pimAll6.get(x) <= rcv.get(q) && pimAll6.get(x+1) >= rcv.get(q+1))\n\t\t\t\t{\n\t\t\t\t\twhereTrans1.add(pimAllCalc6.get(x/2) + \"[\" + pimAll6.get(x) + \" \" + pimAll6.get(x+1) + \"] RX: \" + rcv.get(q) + \" \" + rcv.get(q+1));\n\t\t\t\t\thits_5G++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Write list to file\n\t\t//5Gen 1\n\t\tPrintStream pimStream1 = null;\n\t\tPrintStream pimStream2 = null;\n\t\tPrintStream pimStream3 = null;\n\t\tPrintStream pimStream4 = null;\n\t\tPrintStream pimStream5 = null;\n\t\tPrintStream pimStream6 = null;\n\t\t//5Gen 2\n\t\tPrintStream pimStream7 = null;\n\t\tPrintStream pimStream8 = null;\n\t\tPrintStream pimStream9 = null;\n\t\tPrintStream pimStream10 = null;\n\t\tPrintStream pimStream11 = null;\n\t\tPrintStream pimStream12 = null;\n\t\t//5Gen 3\n\t\tPrintStream pimStream13 = null;\n\t\tPrintStream pimStream14 = null;\n\t\tPrintStream pimStream15 = null;\n\t\tPrintStream pimStream16 = null;\n\t\tPrintStream pimStream17 = null;\n\t\tPrintStream pimStream18 = null;\n\t\t//5Gen 4\n\t\tPrintStream pimStream19 = null;\n\t\tPrintStream pimStream20 = null;\n\t\tPrintStream pimStream21 = null;\n\t\tPrintStream pimStream22 = null;\n\t\tPrintStream pimStream23 = null;\n\t\tPrintStream pimStream24 = null;\n\t\t\n\t\t//All frequencies\n\t\tPrintStream pimAllStream1 = null;\n\t\tPrintStream pimAllStream2 = null;\n\t\tPrintStream pimAllStream3 = null;\n\t\tPrintStream pimAllStream4 = null;\n\t\tPrintStream pimAllStream5 = null;\n\t\tPrintStream pimAllStream6 = null;\n\t\t\n\t\t//Output location of the hits\n\t\tPrintStream transStream = null;\n\t\tPrintStream transAllStream = null;\n\t\t\n\t\t//Assign files to output the data into\n\t\ttry {\n\t\t\t//5Gen 1\n\t\t\tpimStream1 = new PrintStream(\"C:\\\\Users\\\\Gary.Jiang\\\\Desktop\\\\PIM Calc\\\\PIM1.txt\");\n\t\t\tpimStream2 = new PrintStream(\"C:\\\\Users\\\\Gary.Jiang\\\\Desktop\\\\PIM Calc\\\\PIM2.txt\");\n\t\t\tpimStream3 = new PrintStream(\"C:\\\\Users\\\\Gary.Jiang\\\\Desktop\\\\PIM Calc\\\\PIM3.txt\");\n\t\t\tpimStream4 = new PrintStream(\"C:\\\\Users\\\\Gary.Jiang\\\\Desktop\\\\PIM Calc\\\\PIM4.txt\");\n\t\t\tpimStream5 = new PrintStream(\"C:\\\\Users\\\\Gary.Jiang\\\\Desktop\\\\PIM Calc\\\\PIM5.txt\");\n\t\t\tpimStream6 = new PrintStream(\"C:\\\\Users\\\\Gary.Jiang\\\\Desktop\\\\PIM Calc\\\\PIM6.txt\");\n\t\t\t//5Gen 2\n\t\t\tpimStream7 = new PrintStream(\"C:\\\\Users\\\\Gary.Jiang\\\\Desktop\\\\PIM Calc\\\\PIM7.txt\");\n\t\t\tpimStream8 = new PrintStream(\"C:\\\\Users\\\\Gary.Jiang\\\\Desktop\\\\PIM Calc\\\\PIM8.txt\");\n\t\t\tpimStream9 = new PrintStream(\"C:\\\\Users\\\\Gary.Jiang\\\\Desktop\\\\PIM Calc\\\\PIM9.txt\");\n\t\t\tpimStream10 = new PrintStream(\"C:\\\\Users\\\\Gary.Jiang\\\\Desktop\\\\PIM Calc\\\\PIM10.txt\");\n\t\t\tpimStream11 = new PrintStream(\"C:\\\\Users\\\\Gary.Jiang\\\\Desktop\\\\PIM Calc\\\\PIM11.txt\");\n\t\t\tpimStream12 = new PrintStream(\"C:\\\\Users\\\\Gary.Jiang\\\\Desktop\\\\PIM Calc\\\\PIM12.txt\");\n\t\t\t//5Gen 3\n\t\t\tpimStream13 = new PrintStream(\"C:\\\\Users\\\\Gary.Jiang\\\\Desktop\\\\PIM Calc\\\\PIM13.txt\");\n\t\t\tpimStream14 = new PrintStream(\"C:\\\\Users\\\\Gary.Jiang\\\\Desktop\\\\PIM Calc\\\\PIM14.txt\");\n\t\t\tpimStream15 = new PrintStream(\"C:\\\\Users\\\\Gary.Jiang\\\\Desktop\\\\PIM Calc\\\\PIM15.txt\");\n\t\t\tpimStream16 = new PrintStream(\"C:\\\\Users\\\\Gary.Jiang\\\\Desktop\\\\PIM Calc\\\\PIM16.txt\");\n\t\t\tpimStream17 = new PrintStream(\"C:\\\\Users\\\\Gary.Jiang\\\\Desktop\\\\PIM Calc\\\\PIM17.txt\");\n\t\t\tpimStream18 = new PrintStream(\"C:\\\\Users\\\\Gary.Jiang\\\\Desktop\\\\PIM Calc\\\\PIM18.txt\");\n\t\t\t//5Gen 4\n\t\t\tpimStream19 = new PrintStream(\"C:\\\\Users\\\\Gary.Jiang\\\\Desktop\\\\PIM Calc\\\\PIM19.txt\");\n\t\t\tpimStream20 = new PrintStream(\"C:\\\\Users\\\\Gary.Jiang\\\\Desktop\\\\PIM Calc\\\\PIM20.txt\");\n\t\t\tpimStream21 = new PrintStream(\"C:\\\\Users\\\\Gary.Jiang\\\\Desktop\\\\PIM Calc\\\\PIM21.txt\");\n\t\t\tpimStream22 = new PrintStream(\"C:\\\\Users\\\\Gary.Jiang\\\\Desktop\\\\PIM Calc\\\\PIM22.txt\");\n\t\t\tpimStream23 = new PrintStream(\"C:\\\\Users\\\\Gary.Jiang\\\\Desktop\\\\PIM Calc\\\\PIM23.txt\");\n\t\t\tpimStream24 = new PrintStream(\"C:\\\\Users\\\\Gary.Jiang\\\\Desktop\\\\PIM Calc\\\\PIM24.txt\");\n\t\t\t\n\t\t\t//All Frequencies\n\t\t\tpimAllStream1 = new PrintStream(\"C:\\\\Users\\\\Gary.Jiang\\\\Desktop\\\\PIM Calc\\\\pimAll1.txt\");\n\t\t\tpimAllStream2 = new PrintStream(\"C:\\\\Users\\\\Gary.Jiang\\\\Desktop\\\\PIM Calc\\\\pimAll2.txt\");\n\t\t\tpimAllStream3 = new PrintStream(\"C:\\\\Users\\\\Gary.Jiang\\\\Desktop\\\\PIM Calc\\\\pimAll3.txt\");\n\t\t\tpimAllStream4 = new PrintStream(\"C:\\\\Users\\\\Gary.Jiang\\\\Desktop\\\\PIM Calc\\\\pimAll4.txt\");\n\t\t\tpimAllStream5 = new PrintStream(\"C:\\\\Users\\\\Gary.Jiang\\\\Desktop\\\\PIM Calc\\\\pimAll5.txt\");\n\t\t\tpimAllStream6 = new PrintStream(\"C:\\\\Users\\\\Gary.Jiang\\\\Desktop\\\\PIM Calc\\\\pimAll6.txt\");\n\t\t\t\n\t\t\t//Location of hits\n\t\t\ttransStream = new PrintStream(\"C:\\\\Users\\\\Gary.Jiang\\\\Desktop\\\\PIM Calc\\\\whereTrans.txt\");\n\t\t\ttransAllStream = new PrintStream(\"C:\\\\Users\\\\Gary.Jiang\\\\Desktop\\\\PIM Calc\\\\whereAllTrans.txt\");\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tfor(int i = 0; i < PIM1.size(); i++) {\n\t\t\tpimStream1.println(PIM1.get(i));\n\t\t\tpimStream2.println(PIM2.get(i));\n\t\t\tpimStream3.println(PIM3.get(i));\n\t\t\tpimStream4.println(PIM4.get(i));\n\t\t\tpimStream5.println(PIM5.get(i));\n\t\t\tpimStream6.println(PIM6.get(i));\n\t\t\tpimStream7.println(PIM7.get(i));\n\t\t\tpimStream8.println(PIM8.get(i));\n\t\t\tpimStream9.println(PIM9.get(i));\n\t\t\tpimStream10.println(PIM10.get(i));\n\t\t\tpimStream11.println(PIM11.get(i));\n\t\t\tpimStream12.println(PIM12.get(i));\n\t\t\tpimStream13.println(PIM13.get(i));\n\t\t\tpimStream14.println(PIM14.get(i));\n\t\t\tpimStream15.println(PIM15.get(i));\n\t\t\tpimStream16.println(PIM16.get(i));\n\t\t\tpimStream17.println(PIM17.get(i));\n\t\t\tpimStream18.println(PIM18.get(i));\n\t\t\tpimStream19.println(PIM19.get(i));\n\t\t\tpimStream20.println(PIM20.get(i));\n\t\t\tpimStream21.println(PIM21.get(i));\n\t\t\tpimStream22.println(PIM22.get(i));\n\t\t\tpimStream23.println(PIM23.get(i));\n\t\t\tpimStream24.println(PIM24.get(i));\n\t\t\t\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < pimAll1.size(); i++) {\n\t\t\tpimAllStream1.println(pimAll1.get(i));\n\t\t\tpimAllStream2.println(pimAll2.get(i));\n\t\t\tpimAllStream3.println(pimAll3.get(i));\n\t\t\tpimAllStream4.println(pimAll4.get(i));\n\t\t\tpimAllStream5.println(pimAll5.get(i));\n\t\t\tpimAllStream6.println(pimAll6.get(i));\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < whereTrans.size(); i++) {\n\t\t\ttransStream.println(whereTrans.get(i));\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < whereTrans1.size(); i++) {\n\t\t\ttransAllStream.println(whereTrans1.get(i));\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Number of hits for adding in 5G: \" + hits);\n\t\tSystem.out.println(\"Number of hits for all frequencies: \" + hits_5G);\n\t}", "title": "" }, { "docid": "c1d49724a0f1f4c5cbfb6bc1e44197ee", "score": "0.48830062", "text": "private double calculateW(Set<Integer> coalEvents, boolean[][] R){\n double w = 1.0;\n w = w * fact(1, coalEvents.size());\n for (int i: coalEvents) {\n int a = 0;\n for (int j: coalEvents) {\n if(i!=j && R[i][j])\n a++;\n }\n w = w * (1.0/(1 + a));\n }\n return w;\n }", "title": "" }, { "docid": "00a38c0fdebbd30d0c7e8fef7f1069c3", "score": "0.4878319", "text": "public static void main(String[] args) {\n int n = 5;\n int[] X = {95, 85, 80, 70, 60};\n int[] Y = {85, 95, 70, 65, 70};\n int mathScore = 80;\n \n int mean_x = mean(X, n);\n int mean_y = mean(Y, n);\n \n /* Calculate b = pearson_cofficient * stdev(y) / stdev(x) */\n double b = pearson(X, Y, n) * stdev(Y, n) / stdev(X, n);\n double a = mean_y - b * mean_x;\n \n /* y = a + b.x */\n double output = a + b * 80;\n System.out.format(\"%.3f\",output); \n }", "title": "" }, { "docid": "a5c0eb337f3f15c64e10c05da2808e6e", "score": "0.4874356", "text": "private double get_llh_estimatedPotentialScaleReduction() {\n double rHat = Double.MAX_VALUE;\n\n //min length of all chains\n int S = Integer.MAX_VALUE;\n for (List<Double> list : llh_table.values())\n if (list.size() < S)\n S = list.size();\n\n if (S <= 1)\n return Double.MAX_VALUE;\n\n Map<Integer, Double> chaimMeans = new HashMap<>();\n double W = 0;\n double B = 0;\n double allChainMean = 0;\n\n for (int cid : llh_table.keySet()){\n List<Double> llh_list = llh_table.get(cid);\n double cmean = 0;\n double cvar = 0;\n for (int i=0; i<S; i++)\n cmean = ( cmean*i + llh_list.get(i) ) /(i+1);\n for (int i=0; i<S; i++)\n cvar += (llh_list.get(i)-cmean) * (llh_list.get(i)-cmean);\n// System.out.println(Debugger.getCallerPosition()+\" chainId-\"+cid+\" chain mean=\"+cmean+\" chain variance=\"+cvar);\n\n allChainMean += cmean;\n cvar /= (S-1);\n W += cvar;\n chaimMeans.put(cid, cmean);\n }\n W /= llh_table.size();\n allChainMean /= llh_table.size();\n for (int cid : chaimMeans.keySet())\n B += (chaimMeans.get(cid) - allChainMean) * (chaimMeans.get(cid) - allChainMean);\n B *= ((double)S / (llh_table.size()-1));\n\n System.out.println(Debugger.getCallerPosition()+\" W=\"+W+\" B=\"+B);\n\n rHat = Math.sqrt( (double)(S-1)/S + B/(W*S) );\n return rHat;\n }", "title": "" }, { "docid": "68c44362219c19bcb0d73776c371b96f", "score": "0.48672628", "text": "double getUpperProbability();", "title": "" }, { "docid": "cf6af3e56ab5b10d2c54a7f8b145d9e8", "score": "0.4861025", "text": "public static double calcTestStatistic( float[] genotypes, BitSet classLabels ){ \r\n \r\n int numPos=0, numNeg=0;\r\n double sumPos=0.0, sumNeg=0.0;\r\n for (int i = 0; i < genotypes.length; i++) {\r\n float f = genotypes[i];\r\n if ( Float.isNaN( f ) )\r\n continue;\r\n if ( classLabels.get(i) ) { // positive class (cancer patients)\r\n numPos++;\r\n sumPos += f; // this will be +0.0 for persons not having the gene mutated\r\n } else { // negative class (healthy controls)\r\n numNeg++;\r\n sumNeg += f;\r\n }\r\n }\r\n return ( ( sumPos / numPos ) - ( sumNeg / numNeg ) );\r\n \r\n }", "title": "" }, { "docid": "8a95aae43057b4382cc856b9ec0bd5f5", "score": "0.4857461", "text": "private int eval() {\n\t\t\tint score = 0;\n\n\t\t\t\n\t\t\t\n\t\t\t// point given by state of diseases on the board (general)\n\t\t\tfor (String city : infectionLevel.keySet()) {\n\t\t\t\tfor (Disease d : Disease.values()) {\n\n\t\t\t\t\tif (infectionLevel.get(city).get(d) == 1) {\n\t\t\t\t\t\tscore += 1;\n\t\t\t\t\t\tscore += game.neighbours(city).size();\n\n\t\t\t\t\t}\n\t\t\t\t\tif (infectionLevel.get(city).get(d) == 2) {\n\t\t\t\t\t\tscore += 4;\n\t\t\t\t\t\tscore += game.neighbours(city).size();\n\n\t\t\t\t\t}\n\t\t\t\t\tif (infectionLevel.get(city).get(d) == 3) {\n\t\t\t\t\t\tscore += 9;\n\t\t\t\t\t\tscore += game.neighbours(city).size() * 2;\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// points given by diseases on player location and neighbors (ability to be cured easily later on)\n\t\t\tfor (Disease d : Disease.values()) {\n\t\t\t\t\n\t\t\t\tif (infectionLevel.get(fakeLocation).get(d) > 0) {\n\t\t\t\t\tscore = score - (infectionLevel.get(fakeLocation).get(d) * 2);\n\t\t\t\t\t// Bonus if location is close to outbreak\n\t\t\t\t\tif (infectionLevel.get(fakeLocation).get(d) >=3)\n\t\t\t\t\t\tscore = score - 500; //-100\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\tfor (String city : game.neighbours(fakeLocation)) {\n\t\t\t\t\tscore = score - infectionLevel.get(city).get(d);\n\t\t\t\t\t// Bonus if location is close to outbreak\n\t\t\t\t\tif (infectionLevel.get(city).get(d) >=3 )\n\t\t\t\t\t\tscore = score - 250; //-10\n\t\t\t\t}\n\n\t\t\t}\n\t\t\t\n\t\t\t// points for outbreak probability that has been reduced or not by the action taken\n\t\t\tif (nbCloseOutbreaks - nbCloseOutbreaksAfterAction>0) {\n\t\t\t}\n\t\t\tscore = score - (nbCloseOutbreaks - nbCloseOutbreaksAfterAction)*1000;\n\n\t\t\t\n\t\t\t// points given by disease blocks already used on the board (only if less than 24 cubes for a disease)\n\t\t\tfor (Disease d : Disease.values()) {\n\t\t\t\tif (nbDiseaseBlocksLeft.get(d) < 24)\n\t\t\t\t\tscore = score - nbDiseaseBlocksLeft.get(d)*10;\n\t\t\t}\n\n\t\t\treturn score ;\n\t\t}", "title": "" }, { "docid": "5865b4fa796be08c04fa73d3e84571f9", "score": "0.48561335", "text": "@Test(timeout = 4000)\n public void test21() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"main\");\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \" \");\n double double0 = evaluation0.m_SumAbsErr;\n double double1 = evaluation0.weightedAreaUnderROC();\n assertEquals(Double.NaN, double1, 0.01);\n \n double double2 = evaluation0.SFPriorEntropy();\n assertEquals(0.0, double2, 0.01);\n assertNotEquals(double2, double1, 0.01);\n }", "title": "" }, { "docid": "4dd4ca4b773f672f160cc7e83eef7f03", "score": "0.48536775", "text": "public double mediaEsami() {\r\n\t\tdouble media = 0;\r\n\r\n\t\tfor (Esame e : esami) {\r\n\t\t\tmedia += e.getVoto();\r\n\t\t}\r\n\r\n\t\treturn media / esami.size();\r\n\r\n\t}", "title": "" }, { "docid": "e4900d684aba02bf2491104b72513e61", "score": "0.48505437", "text": "public int calculateScore(int correctCount ,int incoretCount,int log){\n while (inicial != 0){\n if(incoretCount == 1 ){\n inicial -=10;\n } \n }\n return inicial;\n\n }", "title": "" }, { "docid": "2c58f1f91fbba81c9fc4dd6719edd851", "score": "0.48495686", "text": "private double getSMOG() {\n double score = 1.043 * Math.sqrt(polysyllablesCount * (30.0 / sentencesCount)) + 3.1291;\n return round(score, 2);\n }", "title": "" }, { "docid": "21d4f8c16bb6419466383a5ac222a687", "score": "0.48478642", "text": "public double distributionCalculate(double p, double q) {\n return Math.log(1 - q) / Math.log(1 - p);\n }", "title": "" }, { "docid": "9befc98db1995e40884bf2fa61a91f8a", "score": "0.4847762", "text": "public void calculateFitnessSum() {\n\t\tfitnessSum = 0;\n\t\tfor (int i = 0; i < snakes.length; i++)\n\t\t\tfitnessSum += snakes[i].calculateFitness();\n\t}", "title": "" }, { "docid": "f42d53d4e37db043678690ae84e05d47", "score": "0.48449874", "text": "private double calculateTotalProbability(int x, int y, double totalSum){\n\n\t\tdouble result = ((Math.pow(world.getPheromone()[x][y].getPheromoneValue(), world.getAlpha())) * (Math.pow(world.getInvertedMatrix()[x][y], world.getBeta()))) ;\n\t\treturn result / totalSum;\n\t}", "title": "" }, { "docid": "766574d4f443e2ea7f8ef99c6425d0b8", "score": "0.48445812", "text": "public double getFScore() {\n if (fScore < 0) {\n double filter_prior = DBUtil.FILTER_PRIOR * getUniformity();\n fScore = filter_prior / ((1 - filter_prior) * getLikelihood());\n }\n return fScore;\n }", "title": "" }, { "docid": "2dae722d3c655c730af63e1ec81a52fd", "score": "0.48426864", "text": "private static double calcLshProbability(final double x) {\n double prob = 1.0;\n\n prob -= 2.0 * LSHTool.standardNormalCdf(-x, 0.0001);\n prob -= (2.0 / (sqrt(2.0*PI) * x)) * (1.0 - exp(-(x*x) / 2.0));\n return prob;\n }", "title": "" }, { "docid": "fa95c390d367d4a41d1d0107f4cf4392", "score": "0.48414943", "text": "int sing() {\n return (int) Math.floor(speed() * DOOF_RAGE_COEF);\n }", "title": "" }, { "docid": "004e4e1930f141909614ddd38d7685e6", "score": "0.48349962", "text": "public Float getHovesucr() {\n return hovesucr;\n }", "title": "" }, { "docid": "79c09b8cf9d0bd91b8a3fda965c71be6", "score": "0.48312384", "text": "public double mae() {\n\t\tdouble resultMae = 0;\n\t\tint tempTestCount = 0;\n\n\t\tfor (int i = 0; i < dataset.getNumUsers(); i++) {\n\t\t\tfor (int j = 0; j < dataset.getUserNumRatings(i); j++) {\n\t\t\t\t// Ignore the training set.\n\t\t\t\tif (dataset.getTrainIndication(i, j)) {\n\t\t\t\t\tcontinue;\n\t\t\t\t} // Of if\n\n\t\t\t\tTriple tempTriple = dataset.getTriple(i, j);\n\t\t\t\tint tempUserId = tempTriple.user;\n\t\t\t\tint tempItemId = tempTriple.item;\n\t\t\t\tdouble tempRate = tempTriple.rating;\n\n\t\t\t\tdouble tempPrediction = predict(tempUserId, tempItemId);\n\n\t\t\t\tif (tempPrediction < dataset.getRatingLowerBound()) {\n\t\t\t\t\ttempPrediction = dataset.getRatingLowerBound();\n\t\t\t\t} else if (tempPrediction > dataset.getRatingUpperBound()) {\n\t\t\t\t\ttempPrediction = dataset.getRatingUpperBound();\n\t\t\t\t} // Of if\n\n\t\t\t\tdouble tempError = tempRate - tempPrediction;\n\n\t\t\t\tresultMae += Math.abs(tempError);\n\t\t\t\t// System.out.println(\"resultMae: \" + resultMae);\n\t\t\t\ttempTestCount++;\n\t\t\t} // Of for j\n\t\t} // Of for i\n\n\t\treturn (resultMae / tempTestCount);\n\t}", "title": "" }, { "docid": "2932b7ccb0063333d246d6021b1ab923", "score": "0.482895", "text": "public static void testSWATHIntensityVar(){\n\t\tString spectrumFile = \"../mixture_linked/msdata/gringar/swath_development/14344_UPS1_400fm_Ecolilysate_SWATH_5600.mzXML\";\n\t\t//String spectrumFile = \"../mixture_linked/ACG_swathdevelopment_P94_UPS_Ecoli_MSGFDB_IDs_uniqpeps_plusDecoy2_test.mgf\";\n\t\tMZXMLReader reader = new MZXMLReader(spectrumFile);\n\t\t//LargeSpectrumLibIterator reader = new LargeSpectrumLibIterator(spectrumFile);\n\t\tint Bins = 501;\n\t\tdouble[] IntRange = new double[Bins];\n\t\tlong[] count = new long[Bins];\n\t\tdouble[] means = new double[Bins];\n\t\tdouble[] variances = new double[Bins];\n\t\tdouble minInt = 0;\n\t\tdouble stepInt = 1;\n\t\tfor(int i = 0; i < IntRange.length; i++){\n\t\t\tIntRange[i] = minInt+i*stepInt;\n\t\t}\n\t\tIntRange[Bins-1] = Double.MAX_VALUE;\n\t\twhile(reader.hasNext()){\n\t\t\tSpectrum s = (Spectrum)reader.next();\n\t\t\t//if(true) continue;\n\t\t\t//s.windowFilterPeaks2(15, 25);\n\t\t\ts.filterPeaksByIntensity(30);\n\t\t\ts.computePeaksZScore(0.5);\n\t\t\tList<Peak> pList = s.getPeak();\n\t\t\tfor(int i = 0; i < pList.size(); i++){\n\t\t\t\tPeak p = pList.get(i);\n\t\t\t\tint index = ArrayUtils.getIntervalIndex(p.getIntensity(), IntRange);\n\t\t\t\tif(index < IntRange.length){\n\t\t\t\t\tif(count[index] > 0){\t\n\t\t\t\t\t\tmeans[index]=(count[index]/(double)(count[index]+1))*means[index] + p.getIntensity()/(count[index]+1);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tmeans[index]+= p.getIntensity();\n\t\t\t\t\t}\n\t\t\t\t\tcount[index]+=1;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(s.scanNumber > 70000){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treader = new MZXMLReader(spectrumFile);\n\t\t//reader = new LargeSpectrumLibIterator(spectrumFile);\n\t\t//computing var\n\t\twhile(reader.hasNext()){\n\t\t\tSpectrum s = (Spectrum)reader.next();\n\t\t\tList<Peak> pList = s.getPeak();\n\t\t\tfor(int i = 0; i < pList.size(); i++){\n\t\t\t\tPeak p = pList.get(i);\n\t\t\t\tint index = ArrayUtils.getIntervalIndex(p.getIntensity(), IntRange);\n\t\t\t\tif(index < IntRange.length){\n\t\t\t\t\tdouble dev = p.getIntensity() - means[index];\n\t\t\t\t\tvariances[index] += dev*dev / count[index];\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(s.scanNumber > 70000){\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < means.length; i++){\n\t\t\tSystem.out.println(minInt+i*stepInt + \"\\t\" + means[i] + \"\\t\" + variances[i] +\"\\t\" + count[i]);\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "14892f520202cc83f9110f90069735a4", "score": "0.4824579", "text": "public double functionsEvaluation(RealVector chromossome) {\r\n\t\tdouble f = 0.0;\r\n\t\tfor (int varIndex = 0; varIndex < chromossome.getDimension(); varIndex+=9) { // iterate variables\r\n\t\t\tf += overlap_factor(chromossome, varIndex) + coverage_factor(chromossome, varIndex);\r\n\t\t}\r\n\t\treturn 1.0/f;\r\n\t}", "title": "" }, { "docid": "e322efe9092bf20ffed15aa4c56bda8f", "score": "0.48204204", "text": "private static double dev(long[] nums) {\n double avg = avg(nums);\n double sum = 0;\n for (long num : nums) {\n sum += (avg - num) * (avg - num);\n }\n return Math.sqrt(sum / nums.length);\n }", "title": "" }, { "docid": "afe012e2b6a6bcf6cd6c017e2d5babc3", "score": "0.48166257", "text": "@Override\r\n\tpublic float calculate(Set<Review> reviews) {\n float product = 1; \r\n \r\n // Compute the product of all the \r\n // elements in the array.\r\n int n = reviews.size();\r\n\t\tif(n== 0)\r\n\t\t\treturn 0;\r\n\t\tfor(Review review : reviews) \r\n\t\t\tproduct = product * review.getRate();\r\n\t\t\r\n\r\n \r\n // compute geometric mean through \r\n // formula pow(product, 1/n) and \r\n // return the value to main function. \r\n float gm = (float)Math.pow(product, (float)1 / n); \r\n return gm; \r\n\t}", "title": "" } ]
2b23ebebb7c2d3ef9dd082849d653da6
User data change Listener
[ { "docid": "a8fc6532fb2ff3cb936fe9ab3395a125", "score": "0.74970704", "text": "private void addUserChangeListener() {\n // User data change Listener\n mFDatabase.child(userId).addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n UserInfo user = dataSnapshot.getValue(UserInfo.class);\n // Check for null\n if (user == null) {\n Log.e(TAG, \"User data is null\");\n return;\n }\n Log.e(TAG, \"User data is changed!\" + user.id + \", \" + user.pwd);\n // clear edit text\n inputID.setText(\"\");\n inputPWD.setText(\"\");\n\n //toggleButton();\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n // Failed to read value\n Log.e(TAG, \"Failed to read user\", databaseError.toException());\n }\n });\n }", "title": "" } ]
[ { "docid": "db19845031983dc6eea7dded814e5bd2", "score": "0.7503803", "text": "private void addUserChangeListener() {\n // User data change listener\n mFirebaseDatabase.child(userId).addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n Deals deal = dataSnapshot.getValue(Deals.class);\n\n // Check for null\n if (deal == null) {\n Log.e(TAG, \"User data is null!\");\n return;\n }\n\n Log.e(TAG, \"User data is changed!\" + deal.resort + \", \" + deal.price);\n toggleButton();\n }\n\n @Override\n public void onCancelled(DatabaseError error) {\n // Failed to read value\n Log.e(TAG, \"Failed to read user\", error.toException());\n }\n });\n }", "title": "" }, { "docid": "ef600881aa69abfd627beefc642df81f", "score": "0.7443278", "text": "private void addUserChangeListener() {\n // User data change listener\n mFirebaseDatabase.child(String.valueOf(mac_id)).addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n User user = dataSnapshot.getValue(User.class);\n\n // Check for null\n if (user == null) {\n Log.e(TAG, \"User data is null!\");\n return;\n }\n\n Log.e(TAG, \"User data is changed!\" + user.block + \", \" + user.pos1 + \", \" + user.pos2 + \", \" + user.pos3 + \", \" + user.mac + \", \" + user.ssid);\n\n // Display newly updated name and email\n // txtDetails.setText(user.block + \", \" + user.pos + \", \"+user.mac);\n\n // clear edit text\n AP_block.setText(\"\");\n AP_position1.setText(\"\");\n AP_position2.setText(\"\");\n AP_position3.setText(\"\");\n mac_id.setText(\"\");\n ssid.setText(\"\");\n\n }\n\n @Override\n public void onCancelled(DatabaseError error) {\n // Failed to read value\n Log.e(TAG, \"Failed to read user\", error.toException());\n }\n });\n }", "title": "" }, { "docid": "7ddeb6a7080c6d3c0fa0690fcffda737", "score": "0.7292268", "text": "private void addUserChangeListener() {\n // User data change listener\n myRef.child(userId).addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n User user = dataSnapshot.getValue(User.class);\n\n // Check for null\n if (user == null) {\n Log.e(TAG, \"User data is null!\");\n return;\n }\n Log.e(TAG, \"User data is changed!\" + user.name + \", \" + user.email);\n\n // Display newly updated name and email\n displayText.setText(user.name + \",\" + user.email);\n\n //clear edit text\n\n emailText.setText(\"\");\n nameText.setText(\"\");\n\n toggleButton();\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n // Failed to read value\n Log.e(TAG, \"Failed to read user\", databaseError.toException());\n\n }\n });\n\n\n }", "title": "" }, { "docid": "2804ed401da2c3ad609309d049683e05", "score": "0.7237319", "text": "public void onDataChanged(IData data);", "title": "" }, { "docid": "1e5bb0a85a5fe911ebb9988175bd3290", "score": "0.7211613", "text": "private void addUserChangeListener() {\n // User data change listener\n mFirebaseDatabase.child(edtUserName.getText().toString().trim()).addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n User user = dataSnapshot.getValue(User.class);\n\n // Check for null\n if (user == null) {\n Log.e(TAG, \"User data is null!\");\n return;\n }\n\n Log.e(TAG, \"User data is changed!\" + user.firstName + \", \" + user.lastName);\n\n\n Log.e(TAG, \"\" + user.firstName + \", \" + user.lastName);\n\n\n }\n\n @Override\n public void onCancelled(DatabaseError error) {\n // Failed to read value\n Log.e(TAG, \"Failed to read user\", error.toException());\n }\n\n\n });\n }", "title": "" }, { "docid": "c593f70890f3bc2cebb40a3e648a8497", "score": "0.7035303", "text": "public void onDataChanged(IData data) {\n\r\n\t}", "title": "" }, { "docid": "d35af7a1ec571c96007122771a20dae0", "score": "0.7017225", "text": "void onDataChanged(T data);", "title": "" }, { "docid": "344af497af00ca4ee4fbed7116f9a379", "score": "0.6940557", "text": "private void addUserChangeListener() {\n // User data change listener\n mFirebaseDatabaseUser.child(userId).addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n User user = dataSnapshot.getValue(User.class);\n\n // Check for null\n if (user == null) {\n Log.e(TAG, \"User data is null!\");\n return;\n }\n\n Log.e(TAG, \"User data is changed!\" + user.toString());\n\n // Display newly updated name and email\n mTextViewSurname.setText(user.userName);\n mTextViewEmail.setText(user.email);\n mTextViewGender.setText(user.gender);\n mTextViewInterest.setText(user.interest);\n //mTextViewCredibility.setText(String.valueOf(user.credibility));\n\n// Picasso.get().load(user.uplaodedProfileImageKey).into(mImageViewProfilePicture);\n\n Picasso.get()\n .load(user.uploadedProfileImageKey)\n .error(R.drawable.common_google_signin_btn_icon_dark)\n .into(mImageViewProfilePicture);\n }\n\n @Override\n public void onCancelled(DatabaseError error) {\n // Failed to read value\n Log.e(TAG, \"Failed to read user\", error.toException());\n }\n });\n }", "title": "" }, { "docid": "ee8b47c89d4db0919b9e88204b54c57b", "score": "0.6892447", "text": "@Override\n public void onDataChanged() {\n }", "title": "" }, { "docid": "6b9ab22da296cfe000f9dfc133e7ef45", "score": "0.6890763", "text": "void handleDataUpdated();", "title": "" }, { "docid": "cbe9f3e603485343b63e835fc911aba4", "score": "0.6788559", "text": "private void notificaDataChageListener() {\n\t\tfor(DataChangeListeners listeners : dataChangeListeners) {\n\t\t\tlisteners.onDataChaged();\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "46ec5ff6f6fe2f1a132adb289e853241", "score": "0.67401445", "text": "UserChanged createUserChanged();", "title": "" }, { "docid": "60b27aa1369c061e93a9b7832f3fa9aa", "score": "0.6647432", "text": "@Override\n\t\tpublic void run() {\n\t\t\tif(MultiThreadServer.ovUser.hasChanged()){\n\t\t\t\tSystem.out.println(\"changed\");\n\t\t\t\tMultiThreadServer.ovUser.notifyObservers();\n\t\t\t};\n\t\t}", "title": "" }, { "docid": "fc0157f31627eb945f3bf2938d0a83a8", "score": "0.65565085", "text": "@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n User retrievedUser = dataSnapshot.getValue(User.class);\n callback.onRetrieveData(retrievedUser);\n }", "title": "" }, { "docid": "384957c42f1493f09341c4de12af381d", "score": "0.65036196", "text": "public interface UserInfoChangeListener {\n\n //通知MainActivity更新用户头像和昵称\n void userInfoChanged();\n}", "title": "" }, { "docid": "dc97bdea9c57fedc5a5dcefd1610ad3d", "score": "0.64866215", "text": "private void addPointsChangeListener() {\n showProgressDialog();\n mFirebaseUserDatabase.child(Utils.getUserId(MainActivity.this)).addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n User user = dataSnapshot.getValue(User.class);\n\n // Check for null\n\n if (user == null) {\n return;\n }\n\n PrefUtils.saveLongToPrefs(MainActivity.this, Constants.LAST_DAILY_REWARD,user.getLastopen());\n PrefUtils.saveStringToPrefs(MainActivity.this, Constants.USER_NAME,user.getName());\n\n txtPoints.setText(\" \" + user.getPoints() + \" \");\n LogUtil.e(\"last open \"+user.getLastopen());\n hideProgressDialog();\n }\n\n @Override\n public void onCancelled(DatabaseError error) {\n // Failed to read value\n hideProgressDialog();\n }\n });\n }", "title": "" }, { "docid": "05503b58226271c926bde6026674159b", "score": "0.64808965", "text": "@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n UserModel theUser = dataSnapshot.getValue(UserModel.class);\n ((ApplicationClass)(getApplicationContext())).setUser(theUser);\n\n }", "title": "" }, { "docid": "850e36880800258c04e62d6623838fd2", "score": "0.64751756", "text": "void onNewData(T data);", "title": "" }, { "docid": "44da889002dea44d80adb71e1cbcdd0c", "score": "0.64627016", "text": "@Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n UserInfo userInfo = dataSnapshot.getValue(UserInfo.class);\n\n /* Update UI */\n userInfoLiveData.postValue(userInfo);\n }", "title": "" }, { "docid": "84cc3e5d89eaeafab1449e04b6f522fa", "score": "0.6419084", "text": "void dataChanged(final CloudnamePath path, final String data);", "title": "" }, { "docid": "5ccca316bbf51a7bf6f086640b214555", "score": "0.6386642", "text": "public void changeData(User updated) {\n\n try {\n\n utx.begin();\n user = rv.getLoggedUser();\n if (!\"\".equals(updated.getName())) {\n user.setName(updated.getName());\n }\n if (!\"\".equals(updated.getSurname())) {\n user.setSurname(updated.getSurname());\n }\n if (!\"\".equals(updated.getPassword())) {\n user.setPassword(updated.getPassword());\n }\n if (!\"\".equals(updated.getUsername())) {\n user.setUsername(updated.getUsername());\n }\n\n utx.commit();\n\n } catch (Exception e) {\n\n e.printStackTrace();\n try {\n utx.rollback();\n } catch (IllegalStateException | SecurityException | SystemException exception) {\n }\n\n }\n\n }", "title": "" }, { "docid": "114ba97dbdd82573c1a94d22ea6ec0e0", "score": "0.6364835", "text": "public void updateData() {\n\t\tUser user = SessionHandler.get();\n\t\tDBManager.getCommunicator().refresh(user);\n\t\tname.setValue(user.getFirstName() + \" \" + user.getLastName());\n\t\tembImage.setSource(FileUtil.getUserImage(user, getApplication()));\n\t}", "title": "" }, { "docid": "32afafb76f7ad7378cf5056609c12d05", "score": "0.63173425", "text": "public void updateUser() {\n\n\t}", "title": "" }, { "docid": "f088f00843553f7c51745022d3e9143e", "score": "0.63120353", "text": "public interface onDisplayDataFinishedListener {\n //successfully retrieves user information from database\n void setCustomers(String[] response);\n }", "title": "" }, { "docid": "0cf939a58a9b2c616bb3275f20e2d41c", "score": "0.63116103", "text": "public interface UserInfoUpdateListener {\n String TYPE_DISPLAY_NAME = \"display_name\";\n String TYPE_DISPLAY_STATUS = \"display_status\";\n String TYPE_ICON = \"display_icon\";\n\n /**\n * Called when update is successful\n *\n * @param updateType The type of info being updated\n */\n void onSuccess(String updateType);\n\n /**\n * Called when update is failed\n *\n * @param updateType The type of info being updated\n */\n void onFailure(String updateType, Exception e);\n }", "title": "" }, { "docid": "a03910193ccdd544355fe20fabb4f0bc", "score": "0.6281563", "text": "@Override\r\n public void onUserChangeRoomProperty(RoomData arg0, String arg1,\r\n HashMap<String, Object> arg2, HashMap<String, String> arg3) {\n\r\n }", "title": "" }, { "docid": "69ec81738c6400978784c3dcd81e490e", "score": "0.62700397", "text": "public interface IUserLocalStateListener {\n void onLocalUserStateUpdated(IUser user);\n }", "title": "" }, { "docid": "c3c9aa7ef7f69fcbf56ee7ef536ab6d9", "score": "0.6267067", "text": "public void propagateUserPropertyChange() {\r\n fireUserChangedEvents(getActiveUser(), getActiveUser());\r\n }", "title": "" }, { "docid": "2052e3c477c212ed529ad420a758f481", "score": "0.62569606", "text": "@Override\n\tpublic void notifyListener(Object listener, int type, Object data)\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "e726478c0d64b94826a6c38f87f0d0f0", "score": "0.625464", "text": "public void onData(SocketIOClient arg0, String username, AckRequest arg2) throws Exception {\n \t\tSystem.out.println(username);\n \t\tint playerIndex = users.indexOf(username);\n \t\t//Change their status (binary)\n \t\tif(usersReady.get(playerIndex)==0) {\n \t\t\tusersReady.set(playerIndex, 1);\n \t\t} else {\n \t\t\tusersReady.set(playerIndex, 0);\n \t\t}\n \t\tSystem.out.println(usersReady.get(playerIndex));\n \t\t//Send the clients an update version of who's ready/not ready\n \t\tserver.getBroadcastOperations().sendEvent(\"existed users\", users, usersReady);\n }", "title": "" }, { "docid": "0f202a009aa90acfca025b56bade1ffc", "score": "0.6250076", "text": "@Override\n\tpublic void valueChanged(ListSelectionEvent e) {\n\t\tif(e.getSource() == userList) {\n\t\t\tUser selectedUser = userList.getSelectedValue();\n\t\t\tupdateApptList(selectedUser);\n\t\t}\n\t}", "title": "" }, { "docid": "941633e977de3d30e92b8a93de778f4e", "score": "0.62174106", "text": "public void setDataUpdated()\r\n\t{\r\n\t\tDataUpdated = true;\t\t\r\n\t\t\r\n\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "c171a8eef7febb4a5f4f9145f0e33838", "score": "0.61951846", "text": "@Override\n\t\t\tpublic void onDataChange(DataSnapshot snap) {\n\t\t\t}", "title": "" }, { "docid": "468fc1a266545f6b729cba7524aebe07", "score": "0.6188778", "text": "public void updateUser() {\n\t\tSystem.out.println(\"updateUser\");\r\n\t}", "title": "" }, { "docid": "c651233e0be30734b5d742bf66cd4631", "score": "0.61723834", "text": "public void reactToChange();", "title": "" }, { "docid": "4d3235dcf645d874b0313a67a68a150d", "score": "0.6170772", "text": "public interface IUserDataCallback {\n void updateUserData(UserData data);\n}", "title": "" }, { "docid": "1f1eae945d38ffd0a7a56c37b6dcd408", "score": "0.61668086", "text": "@Override\n \tprotected void refreshIfUserSwitched() {\n \t}", "title": "" }, { "docid": "58a832b24826867936a5bc3b99953899", "score": "0.61485016", "text": "@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n\n UserSettings userset = mFirebaseMethods.getUserSettings(dataSnapshot);\n System.out.println(userset + \"datachange userset ::\");\n setProfileWidgets(userset);\n //retrieve images for the user in question\n }", "title": "" }, { "docid": "faba76db64b248371dfa878e3f703fbf", "score": "0.6146251", "text": "@Override\n\t\t\tpublic void onDataArrived(DataArrivedEvent event) {\n\t\t\t}", "title": "" }, { "docid": "359baecec3490e447005ef4ddf7ff48e", "score": "0.6123223", "text": "public void addUserEventListener(EventListener listener);", "title": "" }, { "docid": "7dce8f8d82316b0d722fdad2d55361ab", "score": "0.6116164", "text": "UpdateData() {}", "title": "" }, { "docid": "d9a9cd3af0e0166f51dc2c9161ca3de7", "score": "0.61134046", "text": "public void onRestart() {\r\n\t\tmData.loadUser();\r\n\t\tapplyDataToGui();\r\n\t}", "title": "" }, { "docid": "ffc8995337867a67dcf8c0372d50ba61", "score": "0.6109807", "text": "private void setData()\r\n {\n final UserListViewModel viewModel = ViewModelProviders.of(this).get(UserListViewModel.class);\r\n viewModel.getUserListObservable().observe(this, new Observer<UserResponseJson>() {\r\n @Override\r\n public void onChanged(@Nullable UserResponseJson userResponseJson) {\r\n if(userResponseJson.results!=null) {\r\n progressBar.setVisibility(View.GONE);\r\n userListAdapter.updateData(userResponseJson.results);\r\n }\r\n }\r\n });\r\n }", "title": "" }, { "docid": "3f213af329dfbc83893394c54856c277", "score": "0.609437", "text": "public interface DataUpDateListener {\n}", "title": "" }, { "docid": "17ec5a76734a630677377bcc8c315031", "score": "0.6089256", "text": "void presenceChanged(User user, Presence oldPresence, Presence presence);", "title": "" }, { "docid": "a2ae96e037f02966ad8a1d29b009a98d", "score": "0.6077312", "text": "public void onlogin() {\n\n userMutableLiveData.setValue(user);\n }", "title": "" }, { "docid": "fc3b73f07a6c343f5526e19ac06b631d", "score": "0.60763454", "text": "@Override\n public void onPositionChanged(LocalUser localUser) {\n }", "title": "" }, { "docid": "fc3b73f07a6c343f5526e19ac06b631d", "score": "0.60763454", "text": "@Override\n public void onPositionChanged(LocalUser localUser) {\n }", "title": "" }, { "docid": "981ade784b63de99fb3f45dc1cdf80a6", "score": "0.60507166", "text": "private void alertChangeListeners() {\n ChangeEvent e = new ChangeEvent(PerVCProverModel.this);\n for (ChangeListener l : myChangeListeners) {\n l.stateChanged(e);\n }\n\n if (myAutomatedProver != null) {\n myAutomatedProver.uiUpdateFinished();\n }\n }", "title": "" }, { "docid": "153db7716fd2d8e6ec2e9880422dd4f2", "score": "0.6050403", "text": "void addChangeListener (ChangeListener l);", "title": "" }, { "docid": "90ec5252044a984681681eda05df09c3", "score": "0.60273457", "text": "@Override\r\n\tpublic void updateData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "9631cb0645695ad6eb64fc1440b77359", "score": "0.60251224", "text": "@Override\n\t\tpublic void onDataChange(DataSnapshot snapshot) {\n\t\t}", "title": "" }, { "docid": "f31987d44a078d4102cecbb04038b898", "score": "0.60172737", "text": "private void setListeners(){\n SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(this);\n Button cancelButton = findViewById(R.id.edit_profile_cancel);\n Button saveButton = findViewById(R.id.edit_profile_save);\n EditText username = findViewById(R.id.edit_profile_username_edit);\n username.setText(sp.getString(PreferenceKeys.LOGGED_IN_USER_USERNAME, \"\"));\n\n cancelButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n finish();\n }\n });\n\n saveButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n checkAccountUpdates();\n }\n });\n }", "title": "" }, { "docid": "a07f0dec3403f15544d6c050ee447afc", "score": "0.60146195", "text": "@Override\r\n public void dataChanged(Data changedData) {\r\n updateLabelContent();\r\n updateLocation();\r\n dataHasChanged();\r\n }", "title": "" }, { "docid": "3f097c4f03a982765217e92d48e3c843", "score": "0.6008317", "text": "@Override\r\n\tpublic void update(User user) {\n\t\t\r\n\t}", "title": "" }, { "docid": "3f097c4f03a982765217e92d48e3c843", "score": "0.6008317", "text": "@Override\r\n\tpublic void update(User user) {\n\t\t\r\n\t}", "title": "" }, { "docid": "3f097c4f03a982765217e92d48e3c843", "score": "0.6008317", "text": "@Override\r\n\tpublic void update(User user) {\n\t\t\r\n\t}", "title": "" }, { "docid": "34f729fa0882185c019c203fb23be62e", "score": "0.5991011", "text": "private void notifyChange() {\n // Note that this could be done much more cleanly, by notifying the\n // listeners about only the items that changed. If this game started\n // hosting many dungeons, then it would be more important, but given\n // the current scale of the game the current mechanism is easier.\n final ListDataEvent event =\n new ListDataEvent(this, ListDataEvent.CONTENTS_CHANGED,\n 0, data.size() - 1);\n \n SwingUtilities.invokeLater(new Runnable() {\n public void run() {\n for (ListDataListener listener : listeners)\n listener.contentsChanged(event);\n }\n });\n }", "title": "" }, { "docid": "8d42eb6465c65eba39cf6eeaa2427d96", "score": "0.59896815", "text": "@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n mUser = dataSnapshot.child(\"users\").child(id).getValue(UserData.class);\n points_display.setText(\"Score: \" + mUser.highScore);\n }", "title": "" }, { "docid": "dcd9eb46c8fcbae9da6260ebd118747b", "score": "0.59654343", "text": "@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n User user = dataSnapshot.getValue(User.class);\n if(user != null && user.getUsername() != null && changed) {\n FirebaseUtil.user.setIngroup(!user.getIngroup());\n changed = false;\n }\n if(user != null && user.getUsername() != null && FirebaseUtil.getUser().getIngroup() != user.getIngroup()) {\n System.out.println(\"USER CHANGE\");\n System.out.println(\"USERNAME: \" + user.getUsername());\n FirebaseUtil.setUser(user);\n changed = false;\n System.out.println(\"CHECKING USER GROUP: \" + FirebaseUtil.getUser().getGroup());\n if (!FirebaseUtil.getUser().getIngroup()) {\n System.out.println(\"NO GROUP, SHOWING HOME SCREEN\");\n showHome();\n } else {\n System.out.println(\"FOUND GROUP, SHOWING GROUP PAGE\");\n showHome();\n }\n } else {\n System.out.println(\"ERROR: USER IS NULL!!\");\n }\n }", "title": "" }, { "docid": "0ed97bf8d044dc38d5e5b9269a5230c1", "score": "0.5961128", "text": "public void dataChanged(byte[] data);", "title": "" }, { "docid": "6b9febb67cf876937c167e4361d47ba3", "score": "0.595518", "text": "@Override\n\tpublic void update(User t) {\n\t\t\n\t}", "title": "" }, { "docid": "01e788aab7eac2b23b4d8f709d3b077d", "score": "0.59549975", "text": "@Override\r\n\t\tpublic void update(User us) {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "3515316efcd7502ef43787737e96d50c", "score": "0.5954581", "text": "@Override\n\tpublic void update(User user) {\n\t\t\n\t}", "title": "" }, { "docid": "79e41762a73593224ed536621aaa63eb", "score": "0.594382", "text": "protected abstract void notifyListenerDataAdded(LISTENER_CLASS listener, String key, DATA data);", "title": "" }, { "docid": "5cdb89c5d279b3180d3dee097353a5cf", "score": "0.5941341", "text": "public void setUser(String newUser) { \r\n\tuser = newUser;\r\n}", "title": "" }, { "docid": "05ab3081545ef01c66ea604721f559e8", "score": "0.5938514", "text": "public void onlineNannyInformation(ChangeData data) {\n\t\tnannyDao.onlineNannyInformation(data);\n\t}", "title": "" }, { "docid": "398eb725288741e383546866e750b78e", "score": "0.59373975", "text": "@Override\r\n\tpublic void update(User user) {\n\r\n\t}", "title": "" }, { "docid": "cbeabc398ec91bd8e7804229512799f6", "score": "0.593195", "text": "@Override\r\n\t\t\tpublic void updatedata() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "f12bedd73510e04a3c12a43de77584f0", "score": "0.5931655", "text": "private interface ModifyListener {\n void onModified();\n }", "title": "" }, { "docid": "660e4020a02e76970ac694a2c31ecd64", "score": "0.592728", "text": "@Override\n public void onChanged(@Nullable final List<User> userList) {\n for (User u : userList\n ) {\n System.out.println(u.getName());\n }\n adapter.setUsers(userList);\n }", "title": "" }, { "docid": "8ea11be6474021877f536005cc865328", "score": "0.5923496", "text": "public void setUserData(Object data);", "title": "" }, { "docid": "364796c6940f9c427aef20d3004afe16", "score": "0.591742", "text": "void setUser(int user);", "title": "" }, { "docid": "632823d20f2997e877fc55a894ce17ba", "score": "0.5915023", "text": "@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n if(dataSnapshot.getKey()!=null)\n {\n usuario.setLogin(\"vazio\"); \n usuario.setId(\"nulo\");\n }else{\n //Usuario encontrado também pode ser lido desta forma\n usuario=dataSnapshot.getValue(Usuario.class);\n usuario.setId(dataSnapshot.getKey());\n }\n \n done.countDown();\n }", "title": "" }, { "docid": "20d1104d56830949e904caf01553c565", "score": "0.5913388", "text": "public void observeAndUpdate();", "title": "" }, { "docid": "2e9a7022f5d2d161517f5c3a9b882fc1", "score": "0.5911795", "text": "public interface ChangeManagerListener {\n public void onChangeManagerChange(ChangeManager changeManager);\n}", "title": "" }, { "docid": "01a2ef6e1aa2ce29d12cc197648192ee", "score": "0.59067035", "text": "@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n long count = dataSnapshot.getChildrenCount();\n int newUser = (int) count + 1;\n Log.d(\"responses\", \"count: \" + String.valueOf(count) + \" | newUser: \" + String.valueOf(newUser));\n jukeuser user;\n if (newUser == 1) {\n user = new jukeuser(newUser, nickname, 1);\n } else {\n user = new jukeuser(newUser, nickname, 0);\n }\n //final jukeuser user = new jukeuser(newUser, nickname, 0);\n appDatabase.child(String.valueOf(lobby)).child(\"users\").child(String.valueOf(user.userId)).setValue(user);\n uid = String.valueOf(user.userId);\n }", "title": "" }, { "docid": "498f1e779f872d8ea8a1673f26502b9c", "score": "0.5905555", "text": "@Override\r\n\tpublic void updateData() {\n\r\n\t}", "title": "" }, { "docid": "4e2e1bdea9a8fd8106767e38625df886", "score": "0.59041536", "text": "@Override\n public void OnUserInfoUpdate(UserInfoResponse info) {\n this.currentUser = info;\n notifyPropertyChanged(BR.currentUser);\n }", "title": "" }, { "docid": "6131932996a533f1de9952c3548bcfff", "score": "0.5904099", "text": "@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n User user = dataSnapshot.getValue(User.class);\n\n }", "title": "" }, { "docid": "9e4f72236c9f44f923048459d4649e5b", "score": "0.59015846", "text": "public interface ObserveValuesListener {\n\n void observeNewAddedValues();\n}", "title": "" }, { "docid": "8189c19d5bdb425e59c56fcd4aecd876", "score": "0.5879279", "text": "public interface DataChangeListener {\r\n\r\n /**\r\n * Fire when node data changed.<p>\r\n * <B>Notice</B>: This method may be called concurrently, make sure you have add lock around code that should be executed sequentially.\r\n * @param data The changed data\r\n */\r\n public void dataChanged(byte[] data);\r\n}", "title": "" }, { "docid": "5f6b549deb2080e5ceedb7cf40813494", "score": "0.58680695", "text": "@Override\n public void onDataChange(@NonNull DataSnapshot snapshot) {\n usuarioLogado = snapshot.getValue(Usuario.class);\n\n //verificar se usuario logado já está seguindo amigo selecionado\n verificaSeguindoUsuarioAmigo();\n }", "title": "" }, { "docid": "e314d3631080a8c337e47573ae18332f", "score": "0.58641875", "text": "@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n if (!dataSnapshot.hasChild(userId)) {\n mUserDatabaseRef.child(userId).setValue(user);\n }\n // retrieve user info if this is an existing user\n else {\n mUserDatabaseRef.child(userId).addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n user = dataSnapshot.getValue(User.class);\n }\n @Override\n public void onCancelled(DatabaseError databaseError) {}\n });\n }\n // update account info in navigation drawer\n TextView accountNameTextView = (TextView) findViewById(R.id.tv_account_name);\n TextView accountEmailTextView = (TextView) findViewById(R.id.tv_account_email);\n if (accountNameTextView != null && accountEmailTextView != null) {\n accountNameTextView.setText(user.getName());\n accountEmailTextView.setText(user.getEmail());\n }\n }", "title": "" }, { "docid": "46d788715d60665c197386fd95feca16", "score": "0.58585083", "text": "public interface LeaderChangedListener extends EventListener {\n void own();\n\n void lost();\n}", "title": "" }, { "docid": "0e8545c4dfc9cfad18d2938f455f6732", "score": "0.5849096", "text": "public void startNonUserChange() {\n\t\tfNonUserChange += 1;\n\t}", "title": "" }, { "docid": "ff6d746d8cada9ed57824532dd7138b9", "score": "0.5843916", "text": "public void fireArmylistDataChange(){\n this.core.refreshArmylistData();\n }", "title": "" }, { "docid": "bc690726c550f312f791f33fc49ae370", "score": "0.58419955", "text": "private void listenForVoiceMessageStatListener() {\n voiceMessageStatListener = new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n if (dataSnapshot.getValue() == null)\n return;\n\n\n String messageId = dataSnapshot.getKey();\n\n RealmHelper.getInstance().updateVoiceMessageStatLocally(messageId, user.getUid());\n\n\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n\n }\n };\n }", "title": "" }, { "docid": "cd994d5e2dfb926788e8679ba1be1adf", "score": "0.58404285", "text": "@Override\n\t\tpublic void update(Object data) {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "247692a00f08571875dea54fe7da17b2", "score": "0.58383405", "text": "public interface Atz_Struct_DataChangeListener extends EventListener {\n\n void handleDataChange(Atz_Struct_DataChangeEvent e);\n\n}", "title": "" }, { "docid": "78e02bcf07543299697603f8aa19d91c", "score": "0.5833086", "text": "@Override\n public void onDataUpdated(StatisticsViewModel viewModel) {\n }", "title": "" }, { "docid": "8ae1a2b20bc61d136d0a04e891c9c090", "score": "0.5831391", "text": "public void setUser(java.lang.String param){\n localUserTracker = true;\n \n this.localUser=param;\n \n\n }", "title": "" }, { "docid": "2f3fae7dd6f6d483acd77fc693d40013", "score": "0.5814487", "text": "public interface UIDataListener<T> {\n void onDataChanged(T result);\n\n void onErrorHappend(String errorMsg);\n}", "title": "" }, { "docid": "05c100443417499ec1d13223ffee0608", "score": "0.5805264", "text": "void onChange(VPerson driver);", "title": "" }, { "docid": "408d9902fec3fc04c51cfbbf3164c2ee", "score": "0.5800795", "text": "private void listenForMessageStatListener() {\n messageStatListener = new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n if (dataSnapshot.getValue() == null)\n return;\n\n\n int val = dataSnapshot.getValue(Integer.class);\n String messageId = dataSnapshot.getKey();\n RealmHelper.getInstance().updateMessageStatLocally(messageId, user.getUid(), val);\n if (val == MessageStat.READ && fireListener != null) {\n //free up resources since this will not be updated anymore!\n fireListener.removeListener(dataSnapshot.getRef(), messageStatListener);\n }\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n\n }\n };\n\n }", "title": "" }, { "docid": "7b28bd137693aef25440df076627aeb0", "score": "0.5800404", "text": "protected synchronized void updateState() {\n\t\tT data = dataProvider.getCurrentUIData();\n\t\tif (data == null) {\n\t\t\tthrow new NullPointerException(dataProvider + \" returned null.\");\n\t\t}\n\t\tif (lastData == null || !data.equals(lastData)) {\n\t\t\tfor (IUpdateReceiver<T> r : receivers) {\n\t\t\t\tr.uiUpdate(data);\n\t\t\t}\n\t\t\tlastData = data;\n\t\t}\n\t}", "title": "" }, { "docid": "835784e72914493534e5c9742fd517f5", "score": "0.5797956", "text": "public void addDataChangeListener(Consumer<DataEvent> l) {\r\n\t\tchangeListeners.add(l);\r\n\t}", "title": "" }, { "docid": "2fd4e78572930f021c3a7e4ce99db17b", "score": "0.5797863", "text": "public void update(User user) {\n\n\t}", "title": "" }, { "docid": "c0830efd305d13dbf60184d2b40d2a16", "score": "0.5779986", "text": "@Override\r\n public void onEvent (UserEvent event)\r\n {\r\n // Empty\r\n }", "title": "" }, { "docid": "79981a557b2f86877a3c8ff66ae1adad", "score": "0.57719284", "text": "@Override\r\n\tpublic void updateUser(UserBean usr) {\n\r\n\t}", "title": "" } ]
662b3a84bb1dc03794734a87d1d2559d
All the booking for a member are retrieved
[ { "docid": "4c56326fe261791fe5c1300b68d44a2e", "score": "0.5843095", "text": "@Test\n\tpublic void intTest09getAllBookingsForAMember() throws Exception {\n\t\tuserMemberId = \"UserTest\";\n\t\tassertTrue(\"The result should be 1\", managerHandler.getBookBookingManager().getAllBookingsForMember(userMemberId).size() == 1);\n\t}", "title": "" } ]
[ { "docid": "754442300edb34ba67092f7283cfc0a2", "score": "0.7327085", "text": "public List<Booking> getAllBookings();", "title": "" }, { "docid": "32db06b5d178749ac422e1f8c0459299", "score": "0.70767576", "text": "public void getList() {\n //clear the ArrayList\n bbqList.clear();\n gymList.clear();\n poolList.clear();\n saunaList.clear();\n studyList.clear();\n try {\n List<Booking> booking = bookingFacade.findAll();\n for (int i = 0; i < booking.size(); i++) {\n Booking b = booking.get(i);\n //make sure it is booked by login customer\n if (b.getSchCustId().getCustId().equals(SessionUtils.getUserId())) {\n if (b.getSchBbqId()!= null) {\n bbqList.add(b);\n } else if (b.getSchGymId() != null) {\n gymList.add(b);\n } else if (b.getSchPoolId() != null) {\n poolList.add(b);\n } else if (b.getSchSaunaId() != null) {\n saunaList.add(b);\n } else if (b.getSchStudyId() != null) {\n studyList.add(b);\n }\n }\n }\n } catch (Exception ex) {\n System.out.println(ex);\n }\n }", "title": "" }, { "docid": "dcd2007ebed1755c7e395b6800fe310f", "score": "0.70606047", "text": "public List<BookingBean> getBookingDetails();", "title": "" }, { "docid": "7f13146ee3c05459b10ba6fa510e15b5", "score": "0.7045782", "text": "public List<Booking> getBookings(){\n\t\treturn bookingRepository.findAll();\t\t\n\t}", "title": "" }, { "docid": "966a61146f325f29b84e61f7c405d2b5", "score": "0.7016815", "text": "@Override\r\n\tpublic List<Booking> displayAllBooking() {\n\t\tList<Booking> b = repository.findAll();\r\n\t\tif (b.isEmpty()) {\r\n\t\t\tthrow new NullPointerException(\"Currently No booking Available in the list\");\r\n\t\t} else\r\n\t\t\treturn b;\r\n\t}", "title": "" }, { "docid": "f3a80e8a3400ad94ded4755add1c1f54", "score": "0.6952756", "text": "Set<BookingDTO> getAllBookings();", "title": "" }, { "docid": "595939b627023c58f5d9a7f9f890273a", "score": "0.6683351", "text": "public Set<Booking> getBooking() {\n return booking;\n }", "title": "" }, { "docid": "af4fe48b168caf08a4c2c12ba278129e", "score": "0.6558763", "text": "@GetMapping\n\tpublic ResponseEntity<List<Booking>> getAllBookings(){\n\t\t\n\t\tIterable<Booking> bookings= bookingsRepo.findAll();\n\t\t\n\t\tIterator<Booking> it= bookings.iterator();\n\t\t\n\t\tArrayList<Booking> bookingsList= new ArrayList<>();\n\t\t\n\t\twhile(it.hasNext()) {\n\t\t\tbookingsList.add(it.next());\n\t\t}\n\t\t\n\t\tif (bookingsList.size()==0) {\n\t\t\t\n\t\t\treturn new ResponseEntity<List<Booking>>(HttpStatus.NO_CONTENT);\n\t\t}else {\n\t\t\treturn new ResponseEntity<List<Booking>>(bookingsList, HttpStatus.OK);\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "bc9176e18e267c623c9ef31afd3a28fa", "score": "0.6452131", "text": "@GetMapping(\"/select/bookings\")\n public List<Booking> findAllBookings() {\n List<Booking> bookings = bookingRepository.findAll();\n return bookings;\n }", "title": "" }, { "docid": "7aec21129d6a1bb9f5ff1368a6a9e794", "score": "0.63967043", "text": "public void getBookings(String reg){\n past.clear();\n future.clear();\n ArrayList<Vehicle> v = vr.searchReg(reg);\n int id = v.get(0).getId();\n ArrayList<DiagRepairBooking> bookingList = new ArrayList();\n bookingList = br.searchBookingByCustID(String.valueOf(id));\n if(bookingList != null){\n for(DiagRepairBooking drb : bookingList){\n float amount = 0;\n if (parseLocalDateTime(drb.getBookdate() + \" \" + drb.getStarttime()).compareTo(NOW_LOCALDATETIME()) >= 0){\n amount = getBillCost(drb);\n future.add(new VehicleBill(drb,amount));\n }\n else if(parseLocalDateTime(drb.getBookdate() + \" \" + drb.getStarttime()).compareTo(NOW_LOCALDATETIME()) < 0){\n amount = getBillCost(drb);\n past.add(new VehicleBill(drb,amount));\n }\n }\n pastBookingsTable.setItems(past);\n futureBookingsTable.setItems(future); \n }\n else{\n componentLoader cl = new componentLoader();\n cl.showNoResults();\n }\n }", "title": "" }, { "docid": "c2a5db0a05262b75782de56d4e523f4d", "score": "0.635765", "text": "public ArrayList<Booking> readAll() {\n ArrayList<Booking> bookingList = new ArrayList<>();\n SqlRowSet sqlRowSet = jdbc.queryForRowSet(\"SELECT * FROM bookings ORDER BY date\");\n while (sqlRowSet.next()) {\n bookingList.add(\n new Booking(\n sqlRowSet.getInt(\"id\"),\n aR.read(sqlRowSet.getInt(\"activityID\")),\n cR.read(sqlRowSet.getInt(\"customerID\")),\n sqlRowSet.getTimestamp(\"date\").toLocalDateTime(),\n sqlRowSet.getString(\"description\"), sqlRowSet.getInt(\"numOfParticipants\"),\n iR.read(sqlRowSet.getInt(\"instructorID\"))));\n }\n return bookingList;\n }", "title": "" }, { "docid": "8f086612d41921a3e56b8047617ab3f1", "score": "0.63541836", "text": "@RequestMapping(\"/getBookinglist\")\n\tpublic String getBookingListByMemberNo(int m_no, Model model) throws Exception {\n\t\tList<Booking> bookingList = bookingService.selectAllByMemberNo(m_no);\n\t\tmodel.addAttribute(\"bookingList\", bookingList);\n\t\treturn \"bookingListTest\";\n\t}", "title": "" }, { "docid": "65de8df34cdedc2f78ee576c7ee35d49", "score": "0.63456815", "text": "ObservableList<Booking> getBookingList();", "title": "" }, { "docid": "4317234e08150f9e156f9b83bb28ce75", "score": "0.63432163", "text": "List<BookReservation> getActiveReservationsList() throws TechnicalException, NotFoundException;", "title": "" }, { "docid": "a39683c1b1b9b616ae3ed022c0dd1473", "score": "0.6340369", "text": "public void processListAllBookings() {\n ArrayList<Booking> bookList = this.bookingDAO.retrieveAll();\n System.out.println(\"Facility Booking DateTime Start DateTime Duration Student\");\n for (int i = 0; i < bookList.size(); i ++){\n System.out.format(\"%-11s\",bookList.get(i).getFacility().getId());\n System.out.format(\"%-19s\",bookList.get(i).getBookingDate().toString());\n System.out.format(\"%-18s\",bookList.get(i).getStartDate().toString());\n System.out.format(\"%-10s\",bookList.get(i).getDuration());\n System.out.println(bookList.get(i).getStudent().getUsername());\n\n }\n }", "title": "" }, { "docid": "c8f127a00a2eb143b093ba6ad70a7d58", "score": "0.630944", "text": "@RequestMapping(value=\"/travelagent/bookings\",method=RequestMethod.GET)\n\tpublic @ResponseBody Collection<Booking> listEntries() {\n\n\t\tif (clientBookings.size() == 0) throw new NoSuchBookingException();\n\t\treturn clientBookings.values();\n\t}", "title": "" }, { "docid": "d750aff4fb8e6f801d8ff099c52635c5", "score": "0.62510324", "text": "List<BookReservation> getReservationsList() throws TechnicalException, NotFoundException;", "title": "" }, { "docid": "5c33a98c1b8adc738e84c10e2f3e0fb0", "score": "0.62464833", "text": "@GetMapping(\"/fetchBookedList/{memberNo}\")\n public ResponseEntity<List<BookedConcertResponse>> fetchBookedList(@PathVariable(\"memberNo\") Integer memberNo) throws Exception {\n\n List<BookedConcertResponse> bookedConcertResponseList = concertService.getBookedConcertList(new Long(memberNo));\n\n return new ResponseEntity<List<BookedConcertResponse>>(bookedConcertResponseList, HttpStatus.OK);\n }", "title": "" }, { "docid": "94282acf80e784936a2080856842fc89", "score": "0.6200997", "text": "LinkedList<Booking> getBookings() {\n return bookings;\n }", "title": "" }, { "docid": "1f59458f276219e25f607591ed84a751", "score": "0.61585593", "text": "public List<Booking> findByBookingId(long bookingID);", "title": "" }, { "docid": "c73df50e3db081d8adb14568b51bea30", "score": "0.61383224", "text": "public BookingListDTO findBookings(String passportNo);", "title": "" }, { "docid": "a2bdfd6848327705e347f57b48593068", "score": "0.6126233", "text": "public Set<Booking> getBookings() {\n\t\tif(bookings != null) return this.bookings;\n\t\treturn new HashSet<Booking>();\n\t}", "title": "" }, { "docid": "61a7bd6c3c397b88b195815d4abad0bf", "score": "0.6075065", "text": "public void checkIn() {\n\t\tBookingPerson person = service.findBookingPerson();\n\t\tReservation reservationAcutal = null;\n\t\tfor (Reservation reservation : service.findAllReservations()) {\n\t\t\tif (reservation.getPerson() == person) {\n\t\t\t\treservationAcutal = reservation;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tservice.checkIn();\n\t\tview.printCheckIn(reservationAcutal);\t\n\t}", "title": "" }, { "docid": "3aa1b1fa83a8ba4731895b62359b0a68", "score": "0.6065212", "text": "List<ReservationDTO> getAllReservations();", "title": "" }, { "docid": "7df064f558137da5139e593309d85a3d", "score": "0.59705865", "text": "@Override\n public List<TopoBookingDTO> searchAllTopoBookingByIdBorrower(int accountId) {\n \n List<TopoBooking> topoBookingList = topoBookingRepository.findAllByIdAccountBorrower(accountId);\n List<TopoBookingDTO> topoBookingDTOList = new ArrayList<>();\n \n for (TopoBooking topoBooking : topoBookingList){\n topoBookingDTOList.add(topoBookingMapper.fromTopoBookingToDto(topoBooking));\n }\n \n return topoBookingDTOList;\n }", "title": "" }, { "docid": "090e31c13766a10a90407079480605a9", "score": "0.59188265", "text": "public static ArrayList<Booking> getBookings() {\n return (ArrayList<Booking>) Data.getObjectFromPath(SaveLoadPath.BOOKING_PATH, Booking.class);\n\n }", "title": "" }, { "docid": "a238da439fcbbda2263aac192a45de05", "score": "0.5918323", "text": "public Flux<Booking> getBookedRooms(FreeRoomRequest request) {\n Flux<BookingDetail> lst = bookingDetailsRepository\r\n .getCreatedBookingDetails(\r\n request.getHotel(),\r\n request.getStartDate(),\r\n request.getEndDate()\r\n );\r\n Mono<Set<BookingDetail>> bookingDetails = lst.collect(Collectors.toSet());\r\n //get all bookings\r\n Flux<Booking> result = bookingDetails.flatMapMany(s -> {\r\n Set<BookingPrimaryKey> ss = new HashSet<>();\r\n s.forEach(bd -> {\r\n ss.add(new BookingPrimaryKey(bd.getHotelId(), bd.getStartDate(), bd.getEndDate(), bd.getRoom()));\r\n });\r\n return bookingRepository.findAllById(ss);\r\n });\r\n return result;\r\n }", "title": "" }, { "docid": "643023e08296714bef52b7b578fae560", "score": "0.59028274", "text": "@Override\n public List<BookDTO> findBooksForReturn() {\n List<BookDTO> bookDTOs = bookMapper.booksToBookDtos(bookRepository.getAllBooksThatAreOnLoan());\n\n // For each book get its users\n for (int i = 0; i < bookDTOs.size(); i++) {\n List<User> users = userRepository.getUsersLoanedBook(bookDTOs.get(i).getId());\n bookDTOs.get(i).setAvailableUsers(userMapper.usersToUserDtos(users));\n }\n\n return bookDTOs;\n }", "title": "" }, { "docid": "d16926eacb2549a31d3b6eabb8436f2c", "score": "0.5894685", "text": "public Booking getBooking(int nr){\r\n String sql1 = \"SELECT * FROM Booking WHERE nr = \" + nr;\r\n HotelDatabaseManager hdbm = new HotelDatabaseManager();\r\n int dateFrom = 0, dateTo = 0, cardnr = 0, phonenr = 0, roomnr = 0, hotelnr = 0, cancel = 0;\r\n Hotel h;\r\n Room r;\r\n String name = \"\", address= \"\", email = \"\", hotelName, hotelAddress, hotelWebsite;\r\n try (Connection conn = connect();\r\n Statement stmt = conn.createStatement();\r\n ResultSet rs = stmt.executeQuery(sql1)){\r\n \r\n name = rs.getString(\"name\");\r\n address = rs.getString(\"address\");\r\n email = rs.getString(\"email\");\r\n dateFrom = rs.getInt(\"dateFrom\");\r\n dateTo = rs.getInt(\"dateTo\");\r\n cardnr = rs.getInt(\"cardnr\");\r\n phonenr = rs.getInt(\"phonenr\");\r\n roomnr = rs.getInt(\"roomnr\");\r\n cancel = rs.getInt(\"cancel\");\r\n hotelnr = rs.getInt(\"hotelnr\");\r\n \r\n \r\n } catch (SQLException e) {\r\n System.out.println(e.getMessage());\r\n }\r\n r = hdbm.getRoomObject(hotelnr, roomnr);\r\n h = hdbm.getHotelObject(hotelnr);\r\n \r\n Booking b = new Booking(name, address, email, phonenr, cardnr, h, r, dateFrom, dateTo);\r\n return b;\r\n }", "title": "" }, { "docid": "5d191060b772746be92399efd886ca72", "score": "0.5893278", "text": "BookingDTO getBooking(int bookingId);", "title": "" }, { "docid": "f092384405beccc36a279832f98225f0", "score": "0.5886329", "text": "@Override\n\tpublic HashMap<Integer, Bus> showAllBusDetails() throws BusBookingException {\n\t\t// TODO Auto-generated method stub\n\t\treturn null;\n\t}", "title": "" }, { "docid": "eb0b907e4b220e93cc552aed3ea203a0", "score": "0.5844067", "text": "List<ReservationDTO> findAllPendingReservations();", "title": "" }, { "docid": "73e116806a0deaf751f52d3d95a39132", "score": "0.57646906", "text": "@GetMapping(value = \"/book\", produces = \"application/json\")\r\n\tpublic Booking dummyBooking(){\n\t\treturn transitService.getBooking();\r\n\t}", "title": "" }, { "docid": "4d138ee0b0fd605824de93a9960a8098", "score": "0.57554334", "text": "public List<Member> getAllMembers();", "title": "" }, { "docid": "c8043328706079eaa5088e43ae2ebd69", "score": "0.5743677", "text": "List<ReservationDTO> getReservationsToConfirm();", "title": "" }, { "docid": "294045a1f7d8ab65ef008b4cd07f5f27", "score": "0.5727203", "text": "@Override\n public List<BookDTO> findBooksForLoan() {\n List<BookDTO> bookDTOs = bookMapper.booksToBookDtos(bookRepository.findByCopiesAvailableGreaterThan(0));\n // Get all the users that are available for loan\n List<User> usersAvailableForLoan = userRepository.getUsersAvailableForLoan();\n\n // For each book get its users\n for (int i = 0; i < bookDTOs.size(); i++) {\n List<User> users = userRepository.getUsersAvailableForGivenBook(bookDTOs.get(i).getId());\n users.retainAll(usersAvailableForLoan);\n bookDTOs.get(i).setAvailableUsers(userMapper.usersToUserDtos(users));\n }\n\n return bookDTOs;\n }", "title": "" }, { "docid": "9b61a3f334fcff04ad0c70302f5b50f2", "score": "0.5712382", "text": "public static Iterable<Booking> prepareBookedMealsList() {\n\n Iterable<Booking> bookedMeals = PersistenceContext.repositories().booking().findBookedBookings();\n\n return bookedMeals;\n }", "title": "" }, { "docid": "ec00a44dab81bbde02b9de85761065a8", "score": "0.57036734", "text": "public List<Reservation> getReservations() { return iReservations; }", "title": "" }, { "docid": "8bdc21f085301095facc16f39d180a6b", "score": "0.5698873", "text": "public List<Booking> getPropertyBookings(Integer id, Integer limit,\n\t\t\tInteger offset) \n\t{\n\t\tString queryString = \"select new Booking(id,startDate,endDate,property.name) from Booking where property.owner.id=:ownerId order by startDate desc, id desc and reserved != 1\";\n\t\tQuery query = dao.getEntityManager().createQuery(queryString);\n\t\tquery.setParameter(\"ownerId\",id);\n\t\tquery.setMaxResults(limit);\n\t\tquery.setFirstResult(offset);\n\t\treturn query.getResultList();\n\t}", "title": "" }, { "docid": "f259e33a93f38ac34beb3e79c7073904", "score": "0.56605667", "text": "public void processListAllBookingByAStudent() {\n Scanner sc = new Scanner(System.in);\n System.out.println(\"Enter Username:\");\n String username = sc.nextLine();\n ArrayList<Booking> user = new ArrayList<>();\n user = bookingDAO.retrieve(username);\n for (int i = 0; i < user.size(); i++){\n System.out.println(user.get(i).getStartDate().toString());\n }\n\n }", "title": "" }, { "docid": "f7073a546b3b6521bb5ea3523ce3820c", "score": "0.5643784", "text": "public List<RoomDTO> findBookedRoomInRange(HotelDTO hotelDTO, Date start, Date end);", "title": "" }, { "docid": "44c565437004a21cf089b265e5ce691b", "score": "0.56292874", "text": "@RequestMapping(value=\"/bloodbanks\",method=RequestMethod.GET)\n\tpublic List<BloodBank> listMember(){\n\t\treturn bloodBankService.getAllBloodBanks();\n\t }", "title": "" }, { "docid": "37cf57e92dd0679ffbd13f6b4d4cfe42", "score": "0.5609679", "text": "@Override\n\tpublic List<BorrowDetail> bookPopular() {\n\t\treturn bokmDAO.bookPopular();\n\t}", "title": "" }, { "docid": "e559312d8585b1ee5cff92399e67f77f", "score": "0.5607108", "text": "@Override\r\n\tpublic ArrayList<Member> getAll() {\n\t\tdao = sqlSession.getMapper(MemberDao.class);\r\n\t\treturn dao.selectAll();\r\n\t}", "title": "" }, { "docid": "013d6b49d91ff6fc4c7a2f4f7da7d1b1", "score": "0.56016636", "text": "@Override\n\tpublic ArrayList<MemberVO> memberSelectAll() {\n\t\tSystem.out.println(\"MemberServiceImpl memberSelectAll() 함수 진입 >>> : \");\n\t\t\n\t\tMemberDAO mdao = new MemberDAOImpl();\n\t\treturn mdao.memberSelectAll();\n\t}", "title": "" }, { "docid": "c35a24a3fb77e0c2f0b1ac98b17b02d2", "score": "0.559089", "text": "@GetMapping(\"/travel-reservations\")\n @Timed\n public List<TravelReservation> getAllTravelReservations() {\n log.debug(\"REST request to get all TravelReservations\");\n return travelReservationRepository.findAll();\n }", "title": "" }, { "docid": "ea6be998c4528fbf3ad062f9d7533f10", "score": "0.558115", "text": "private void getInFormationRoomBooking() {\n mDatabaseBookingRoom = FirebaseDatabase.getInstance().getReference().child(Common.MEETINGDETAIL);\n ValueEventListener listener = new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot snapshot) {\n listMeeting = new ArrayList<>();\n for (DataSnapshot dataMeetingDetail : snapshot.getChildren()){\n MeetingDetail meetingDetail = dataMeetingDetail.getValue(MeetingDetail.class);\n for (User user : meetingDetail.getMemberjoin())\n {\n if (user.getId().toLowerCase().trim().equals(Common.currentUser))\n {\n meetingDetail.setKey(dataMeetingDetail.getKey());\n m_user = user;\n listMeeting.add(meetingDetail);\n }\n }\n }\n Collections.sort(listMeeting, new Comparator<MeetingDetail>() {\n Date date1 = null;\n Date date2 = null;\n @Override\n public int compare(MeetingDetail m1, MeetingDetail m2) {\n try {\n date1 = Common.formatDate.parse(m1.getDate());\n date2 = Common.formatDate.parse(m2.getDate());\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return date1.compareTo(date2);\n }\n });\n\n pushAllNotify(listMeeting);\n\n txt_count_meeting.setText(Html.fromHtml(getString(R.string.danhsachcuochop,\" <b><u>\"+listMeeting.size()+\"</u></b>\")));\n adapterHomeBooking = new AdapterHomeBooking(MainActivity.this, R.layout.custom_recycler_layout_detail_room, listMeeting);\n recycler_room_detail_home.setAdapter(adapterHomeBooking);\n if (listMeeting.size() > 2)\n {\n txt_view_all.setVisibility(View.VISIBLE);\n }\n else if (listMeeting.size() == 0)\n {\n img_no_meeting.setVisibility(View.VISIBLE);\n }\n adapterHomeBooking.notifyDataSetChanged();\n if (alertDialog.isShowing()) alertDialog.dismiss();\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError error) {\n if (alertDialog.isShowing()) alertDialog.dismiss();\n }\n };\n mDatabaseBookingRoom.addValueEventListener(listener);\n }", "title": "" }, { "docid": "9a755e060655c5760ce23bef04d291cb", "score": "0.55748534", "text": "@Override\n public List<TopoBookingDTO> searchAllTopoBookingByIdOwner(int accountId) {\n \n List<TopoBooking> topoBookingList = topoBookingRepository.findAllByIdAccountOwner(accountId);\n List<TopoBookingDTO> topoBookingDTOList = new ArrayList<>();\n \n for (TopoBooking topoBooking : topoBookingList){\n topoBookingDTOList.add(topoBookingMapper.fromTopoBookingToDto(topoBooking));\n }\n \n return topoBookingDTOList;\n }", "title": "" }, { "docid": "ca48bef501a4ab5e556558aafea60d38", "score": "0.55746263", "text": "List<BookReservation> getActiveReservationListForBook(final Integer bookId)\n throws TechnicalException, NotFoundException;", "title": "" }, { "docid": "6d4b9689540da61e1977a754f6c7e5a1", "score": "0.55734676", "text": "public List<Reservations> getAll(){\n\treturn (List<Reservations>) reservationCrudRepository.findAll();\n }", "title": "" }, { "docid": "7fb88ed837330a3f675f9ce5d13b9aa8", "score": "0.55687773", "text": "@Test\n public void testViewBookings() {\n Mockito.when(bookingRepository.getAllByCustomerUserUsernameAndStatus(Mockito.any(), Mockito.any()))\n .thenReturn(Collections.singletonList(expectedBookingEntity));\n\n List<BookingResponse> expected = Collections.singletonList(\n new BookingResponse(\n \"Minecraft\",\n \"Marcus Pearson\",\n LocalDateTime.of(2020, 10, 15, 15, 30),\n 0,\n \"Notch\"\n )\n );\n\n List<BookingResponse> actual = bookingService.viewBookings(\"Notch\", Status.ACTIVE);\n\n Assertions.assertEquals(expected, actual);\n }", "title": "" }, { "docid": "f06327b4d8aba7d67b0aaf5d1a5965c0", "score": "0.55511194", "text": "ObservableList<Booking> getFilteredBookingList();", "title": "" }, { "docid": "93c9bc3cf5e1ac8796e56678ce75c5af", "score": "0.5546979", "text": "public void setGuestDetails()throws Exception{\n PreparedStatement preparedStatement =\n Database.c.prepareStatement(\"SELECT fk_roomID, firstName, lastName, bookingUntil\\n\" +\n \"FROM bookings\\n\" +\n \"INNER JOIN guests ON bookings.fk_guestID = guests.guestID\\n\" +\n \"WHERE bookingID = \"+bookingID);\n ResultSet rsHead = preparedStatement.executeQuery();\n while (rsHead.next()){\n int roomID = rsHead.getInt(\"fk_roomID\");\n lblRoomNr.setText(String.valueOf(roomID));\n //System.out.println(\"roomid angezeigt\");\n String firstName = rsHead.getString(\"firstName\");\n String lastName = rsHead.getString(\"lastName\");\n lblGuestName.setText(firstName+ \" \" + lastName);\n Date bookingUntil = rsHead.getDate(\"bookingUntil\");\n lblDepature.setText(String.valueOf(bookingUntil));\n }\n }", "title": "" }, { "docid": "f7e3e1a5f1e31465c094d4fc6fc521fd", "score": "0.5544611", "text": "@Override\n\tpublic ArrayList<Member> getAll() {\n\t\treturn dao.selectAll();\n\t}", "title": "" }, { "docid": "5162c51a66fdb8e7f962b9190559909a", "score": "0.55443764", "text": "@GET\n\t@Produces(MediaType.APPLICATION_JSON)\n\t@Path(\"/all\")\n\tpublic Response getAllMembers(){\n\t\tList<Member> memberList = dao.findAll();\n\t\t\n\t\tif(memberList.isEmpty())\n\t\t\treturn Response.noContent().build();\n\t\telse\n\t\t\treturn Response.ok(memberList).build();\n\t}", "title": "" }, { "docid": "f42609e0e982d910d759eb55909f5cdf", "score": "0.55408007", "text": "private EList<Room> getAvaiableRoomsHepler(Date from, Date to, Booking b) {\n\t\tif(!DateUtil.isDateRangeValid(from, to)) {\n\t\t\tthrow new IllegalArgumentException(\"The specified time period is not valid\");\n\t\t}\n\t\t\n\t\tEList<Room> rooms = new BasicEList<Room>(roomManager.getRooms());\n\t\tEList<Booking> bookings = getBookings(from, to);\n\t\tEList<Room> bookedRooms = new BasicEList<Room>();\n\t\t\n\t\tif(b != null) {\n\t\t\tbookings.remove(b);\n\t\t}\n\t\t\n\t\t// Remove all rooms that are specifically booked\n\t\tfor(Booking booking : bookings) {\n\t\t\tif(booking.getRoomStay() != null && !booking.isCanceled()) {\n\t\t\t\tbookedRooms.add(booking.getRoomStay().getRoom());\n\t\t\t}\n\t\t}\n\t\t\n\t\trooms.removeAll(bookedRooms);\n\t\t\n\t\t// Remove rooms that are not operational or is being cleaned\n\t\tIterator<Room> roomIter = rooms.iterator();\n\t\twhile(roomIter.hasNext()) {\n\t\t\tRoom curRoom = roomIter.next();\n\t\t\tif(!curRoom.isOperational() || curRoom.isBeingCleaned()) {\n\t\t\t\troomIter.remove();\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Remove all rooms that cannot be booked since that specific room type is booked up\n\t\tMap<RoomType, Integer> availableRoomTypes = getAvailableRoomTypeAmounts(from, to);\n\t\tEList<Room> availableRooms = new BasicEList<Room>();\n\t\t\n\t\t\n\t\tRoomType bookingRoomType = null;\n\t\tif(b != null) {\n\t\t\tbookingRoomType = b.getRoomType();\n\t\t}\n\t\t\n\t\tfor(Room room: rooms) {\n\t\t\tif(availableRoomTypes.get(room.getRoomType()) != 0) {\n\t\t\t\tavailableRooms.add(room);\n\t\t\t} else if(bookingRoomType != null && bookingRoomType.getName().equals(room.getRoomType().getName())) {\n\t\t\t\t// Exclude the booking from the search\n\t\t\t\tavailableRooms.add(room);\n\t\t\t\t// Do it only once for the booking\n\t\t\t\tbookingRoomType = null;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn availableRooms;\n\t}", "title": "" }, { "docid": "5cc8a6411c3c32508b1b1deb695332cb", "score": "0.5538975", "text": "@GetMapping(\"/search/booking/{activity}\")\n public List searchAllBookingsWActivity(@PathVariable String activity) {\n List<Booking> bookingList = bookingRepository.findAllByActivity(activity);\n\n return bookingList;\n }", "title": "" }, { "docid": "758361a95134a927f213b00b0a3b75a1", "score": "0.5531165", "text": "@GET\n\t@Path(\"/reservation\")\n\t@Produces(\"application/xml,application/json\")\n\tpublic ReservationList getStudentList() {\n\t\tList<Customer> custList;\n\t\tReservationList listOfReservations = new ReservationList();\n\t\tSystem.out.println(\"ReservationList getReservationList()\");\n\t\tcustList = hotelreservation.getReservationList();\n\t\tSystem.out.println(\"ReservationList getReservationList() 2\");\n\t\tlistOfReservations.setStudentList(custList);\n\t\treturn listOfReservations;\n\t}", "title": "" }, { "docid": "7f70e2b37fd090dc64fa3f22e5c24135", "score": "0.5528896", "text": "public List<Reservation> getReservations(){\n return new ArrayList<>(reservations);\n }", "title": "" }, { "docid": "bb833d648ea4b28d2af43b771923f440", "score": "0.55186117", "text": "public String getBookingId(){\n return bookingid;\n }", "title": "" }, { "docid": "9c9c5f227c8b945c88787efc7eb0233d", "score": "0.55182785", "text": "public Reservations getReservation() {\n return reservation;\n }", "title": "" }, { "docid": "c8f3e3f8c3535b370e53edc8bb611975", "score": "0.55181706", "text": "public void processBookAFacility() {\n Scanner sc = new Scanner(System.in);\n System.out.println(\"Enter Username\");\n String username = sc.nextLine();\n if (studentDAO.retrieve(username) == null){\n System.out.println(\"Invalid Username\");\n return;\n }\n Student studentbook = studentDAO.retrieve(username);\n\n System.out.println(\"Enter Facility ID\");\n String facility = sc.nextLine();\n if (facilityDAO.retrieve(facility) == null){\n System.out.println(\"Invalid Facility ID\");\n return;\n }\n Facility facilitybook = facilityDAO.retrieve(facility);\n\n System.out.println(\"Enter start date (DD/MM/YYYY) \");\n String startDate = sc.nextLine();\n System.out.println(\"Enter start time (HH:00) \");\n String startTime = sc.nextLine();\n String startDateTime = startDate + \" \" +startTime;\n BrosDate time = new BrosDate(startDateTime);\n System.out.println(\"Enter Duration\");\n int duration = sc.nextInt();\n int cost = duration * 2 ;\n if (cost > studentbook.getBalance()){\n System.out.println(\"Not enough balance\");\n return;\n }\n Booking another = new Booking(studentbook,facilitybook,time,duration);\n ArrayList<Booking> bookinglist = bookingDAO.retrieveAll();\n if (bookinglist.add(another) == true){\n System.out.println(\"Successfully Added\");\n studentDAO.retrieve(username).deduct(cost);\n }\n else{\n System.out.println(\"Invalid Booking\");\n }\n// for (int i = 0; i < bookinglist.size(); i ++){\n// if (bookinglist.get(i).getFacility().getId() == facilitybook.getId()){\n// if (bookinglist.get(i).overlaps(another) == true){\n// System.out.println(\"Booking overlaps with another booking. Please try again.\");\n// return;\n// }\n// }\n//\n// }\n\n\n\n\n }", "title": "" }, { "docid": "a6b0287cd4730f3ee002400a4d32f5a3", "score": "0.55178446", "text": "private void refreshBooking() {\n\t\ttry {\n\t\t\tString query = \"select * from Reserv\";\n\t\t\tpst = connection.prepareStatement(query);\n\t\t\trs = pst.executeQuery();\n\t\t\tbookingsTable.setModel(DbUtils.resultSetToTableModel(rs));\n\n\t\t\t// close the DB\n\t\t\tpst.close();\n\t\t\trs.close();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "6180b2cb3a1cab3d2ee83bca930a9601", "score": "0.5511805", "text": "@GetMapping(value = \"/mybookings\")\n private String myBookings(Model model){\n\n List<Tuple3<Booking, BookingType, Boolean>> bookingList = // list of user's bookings\n bookingService.fetchUsersBoookings(http.getRemoteUser()); // fetch from database\n\n filterBookings(bookingList); // removes all cancelled bookings from list\n\n Tuple2<Boolean, Boolean> hasBookings = userHasBooking(bookingList); // booleans true if user has test or vaccine booking respectively\n\n model.addAttribute(\"navItem\", \"mybookings\");\n model.addAttribute(\"hasSecondShot\", bookingService.userHasSecondShot(http.getRemoteUser())); // displays option to print certificate if true\n model.addAttribute(\"hasTestBooking\", hasBookings.getFirst()); // if false the table is never rendered\n model.addAttribute(\"hasVaccineBooking\", hasBookings.getSecond()); // if false the table is never rendered\n model.addAttribute(\"bookings\", bookingList);\n model.addAttribute(\"user\", new User()); // is never used, prevents page fragment from throwing error\n return \"profile/myBookings\";\n }", "title": "" }, { "docid": "d9594a15a7d3db4c14acdfd0cd4b023f", "score": "0.55047923", "text": "public List<Booking> findByBookingStatus(String bookingStatus);", "title": "" }, { "docid": "881bfe204f64f14844384219399702ac", "score": "0.5499126", "text": "public void completeBooking() {\n Booking booking = new Booking(tickets, client, showing);\n if (!booking.getTickets().isEmpty()) {\n System.out.println();\n System.out.println(\"Thank you for booking with us! To view your bookings please look at your booking history.\");\n System.out.println(\"Your booking ID is \" + booking.getBookingID());\n System.out.println(\"Your total amount owed is S$\" + booking.getTotalPrice());\n System.out.println(\"Please proceed to pay at the counter\");\n System.out.println();\n\n ArrayList<Booking> bookings;\n if ((bookings = (ArrayList<Booking>) Data.getInstance().getObjectFromPath(SaveLoadPath.BOOKING_PATH,\n Booking.class)) == null)\n bookings = new ArrayList<>();\n bookings.add(booking);\n Data.getInstance().saveObjectToPath(SaveLoadPath.BOOKING_PATH, bookings);\n }\n\n }", "title": "" }, { "docid": "dca6f587f43bd4072b5beb321f71d6d6", "score": "0.5498503", "text": "@GetMapping\n public ResponseEntity<List<Booking>> getAllBookings(\n @RequestParam(name = \"date\", required = false) String date\n ){\n if (date != null){\n return new ResponseEntity<>(bookingRepository.findByDate(date), HttpStatus.OK);\n }\n return new ResponseEntity<>(bookingRepository.findAll(), HttpStatus.OK);\n }", "title": "" }, { "docid": "e54f40ae9e7d6b101fc76a60ed7a5063", "score": "0.54983443", "text": "private QueryBidsByOrderBookResponse() {\n initFields();\n }", "title": "" }, { "docid": "0cfe9886716496f892a91f59851e36f1", "score": "0.54890144", "text": "public ResultSet recupererReservations() {\n try {\n Statement stmt = this.connection.createStatement();\n ResultSet res = stmt.executeQuery(\"select reservation.id_reservation, nb_nuits, date_reservation, nb_personne, date_debut, date_fin, rc.id_chambre, s.nom as saison, s.pourcentage as prixSaison, c.nom as categorie, c.pourcentage as prixCategorie, t.nom as type, t.prix as prixCategorie, cl.id_client, cl.nom, prenom, cin, telephone, cb \" +\n \"FROM reservation \" +\n \"JOIN reservation_chambre rc on reservation.id_reservation = rc.id_reservation \" +\n \"JOIN chambre ch on rc.id_chambre = ch.id_chambre \" +\n \"JOIN saison s on ch.id_saison = s.id_saison \" +\n \"JOIN categorie c on ch.id_categorie = c.id_categorie \" +\n \"JOIN type t on ch.id_type = t.id_type \" +\n \"JOIN client cl on cl.id_client = reservation.id_client;\");\n return res;\n } catch (Exception e) {\n System.out.println(e);\n return null;\n }\n }", "title": "" }, { "docid": "7d797c93e5c387d2937a0f1214f4cb8f", "score": "0.54820836", "text": "private void getAdventures() {\n //setupProgress(getString(R.string.progress_retrieving_adventures));\n //showProgress();\n\n int action;\n\n if (whichFilter == 1) {\n // Get Adventures for this user\n action = DbHandlerConstants.DBMSG_GET_ADVENTURES_OWNEROF;\n } else if (whichFilter == 2) {\n // Get Adventures this user is a member of\n action = DbHandlerConstants.DBMSG_GET_ADVENTURES_MEMBEROF;\n } else {\n // Get all adventures\n action = DbHandlerConstants.DBMSG_GET_ALL_ADVENTURES;\n }\n mApp.sendMsgToDbHandler(rspHandler, getActivity().getApplicationContext(), action);\n }", "title": "" }, { "docid": "f15f66e2ad7faa8a4dd04b24db572098", "score": "0.5470087", "text": "public static void allBooking() throws IOException, ParseException ,NullPointerException{\r\n\t//Registration reg[]=new Registration[10];\r\n\r\n\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\r\n\t\t\t\tSimpleDateFormat formatter1=new SimpleDateFormat(\"dd/MM/yyyy\"); \r\n\t\t\t\t//Date date1=formatter1.parse(day);\r\n\t\t\t\t//customer[i].date=date1;\r\n\t\t\t\tSystem.out.println(\"View all bookings:\");\r\n\t\t\t\tSystem.out.println(\"Enter the starting date\");\r\n\t\t\t\tString sDate=br.readLine();\r\n\t\t\t\tSystem.out.println(\"Enter the end date\");\r\n\t\t\t\tString eDate=br.readLine();\r\n\t\t\t\tDate startDate=formatter1.parse(sDate);\r\n\t\t\t\tDate endDate=formatter1.parse(eDate);\r\n\t\t\t\t//Date date1=new SimpleDateFormat(\"dd/MM/yyyy\").parse(day); \r\n\t\t\t//\tDate d=new Date();\r\n\t\t\t\tDate d;\r\n\t\t\t\tSystem.out.println(\"The bookings made from \"+ sDate+\" to \"+ eDate+\" are\");\r\n\t\t\t\tSystem.out.println(\"Room No. \\t Customer name\");\r\n\t\t\t\tint flag=0;\r\n\t\t\t\tfor(int k=0;k<=regId;k++)\r\n\t\t\t\t{\r\n\t\t\t\t\t//if(reg[k].date!=NULL)\r\n\t\t\t\t\td=reg[k].date;\r\n\t\t\t\t\t//System.out.println(\"start date \"+d.after(startDate));\r\n\t\t\t\t\t//System.out.println(\"end date \"+d.after(endDate));\r\n\t\t\t\t\tif(d.after(startDate)&&(d.before(endDate)))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.println(reg[k].id+\"\\t\"+reg[k].name);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t//System.out.println(\"No bookings on these days\");\r\n\t\t\t\t\t\tflag++;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\tif(flag==regId)\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.println(\"No bookings on these days\");\r\n\t\t\t\t}\r\n}", "title": "" }, { "docid": "9b2e58fc059ca709746377db0eb3be07", "score": "0.54667044", "text": "List<CoordinationMember> members();", "title": "" }, { "docid": "a7138852355743a0370f9d056a2c0f5a", "score": "0.5450539", "text": "public HashMap<Long, Reservation> getReservations() {\r\n\t\treturn this.reservations;\r\n\t}", "title": "" }, { "docid": "bd293818b03c72e5ea9a9f1c6c03c6c0", "score": "0.54474014", "text": "@Override\r\n\tpublic List<TranVO> getAllByMember_idFinal(String member_id) {\n\t\tConnection con = null;\r\n\t\tPreparedStatement pstmt;\r\n\t\tTranVO tranVO=null;\r\n\t\tList<TranVO> list=new ArrayList<>();\r\n\t\ttry {\r\n\t\t\tClass.forName(driver);\r\n\t\t\tcon = DriverManager.getConnection(url,userid,passwd);\r\n\t\r\n\t\t\tpstmt = con.prepareStatement(GET_ALL_BY_MEMBER_ID_FINAL);\r\n\t\r\n\t\t\tpstmt.setString(1, member_id);\r\n\t\t\tpstmt.setString(2, member_id);\r\n\t\t\tResultSet rs = pstmt.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\ttranVO = new TranVO();\r\n\t\t\t\ttranVO.setTid(rs.getInt(1));\r\n\t\t\t\ttranVO.setRes_member_id(rs.getString(2));\r\n\t\t\t\ttranVO.setRes_gid(rs.getInt(3));\r\n\t\t\t\ttranVO.setReq_member_id(rs.getString(4));\r\n\t\t\t\ttranVO.setReq_gid(rs.getInt(5));\r\n\t\t\t\ttranVO.setRes_date(rs.getTimestamp(6));\r\n\t\t\t\ttranVO.setReq_date(rs.getTimestamp(7));\r\n\t\t\t\ttranVO.setStatus(rs.getInt(8));\r\n\t\t\t\t\r\n\t\t\t\tlist.add(tranVO);\r\n\t\r\n\t\t\t}\r\n\t\t} catch (Exception ex) {\r\n\t\t\tSystem.out.println(ex.getMessage());\r\n\t\t} finally {\r\n\t\t\tif (con != null)\r\n\t\t\t\ttry {\r\n\t\t\t\t\tcon.close();\r\n\t\t\t\t} catch (SQLException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t}\r\n\t\treturn list;\r\n\t}", "title": "" }, { "docid": "a3e4a1453645e546434a53a11f779651", "score": "0.54459196", "text": "@PostMapping(\"/bookingConfirm\") public String viewRooms(\n @RequestParam(name = \"from\", required= false) String fromDate,\n @RequestParam(name = \"to\", required = false) String toDate,\n @RequestParam(name = \"idRoom\", required = false) String idRoom, \n @RequestParam(name = \"cost\", required = false) float cost, \n Model model) {\n \n Room room = roomService.findById(idRoom);\n System.out.println(room.getName());\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd\");\n try {\n Date checkIn = dateFormat.parse(fromDate);\n Date checkOut = dateFormat.parse(toDate);\n Date createdAt = new Date();\n\n //List<Room> listRooms = roomService.retrieveAvailableRooms(from, to,\"2\");\n //model.addAttribute(\"listRooms\", listRooms);\n model.addAttribute(\"from\", fromDate);\n model.addAttribute(\"to\", toDate);\n\n //crea la instancia del objeto reserva\n Booking booking = new Booking();\n booking.setRoom(room);\n booking.setCheckIn(checkIn);\n booking.setCheckOut(checkOut);\n booking.setCreatedAt(createdAt);\n booking.setCost(cost);\n //obtiene el objeto user como instancia de usuario logueado\n Authentication auth = SecurityContextHolder.getContext().getAuthentication();\n User guest = (User) auth.getPrincipal();\n booking.setGuest(guest);\n\n bookingService.addBooking(booking);\n \n } catch (ParseException e) {\n e.printStackTrace();\n }\n return \"availability\";\n\n\n\n\n\n \n }", "title": "" }, { "docid": "9035a783e0ab4e62ea2df2a8ff46b258", "score": "0.5438713", "text": "public List<Member> findAll() {\n \treturn memberRepository.findAll();\n }", "title": "" }, { "docid": "29b7672fa37d48db2ae557d3794e5528", "score": "0.54307246", "text": "@GetMapping(\"/getBook\")\n\t\tpublic List<Book> findAllBook(){\n\t\t\tLOGGER.info(\"Controller findAllBook method is caiing....\");\n\t\t\treturn bookService.getAllBook();\n\t\t}", "title": "" }, { "docid": "3c6bd5c3c1d407b757c6a9d10bc62409", "score": "0.54031676", "text": "@Override\n\tpublic List<Member> list() {\n\t\treturn memberDao.list();\n\t}", "title": "" }, { "docid": "fc60c3565575007552cd9ef1c8bf59f2", "score": "0.53993475", "text": "private ArrayList<Agenda> getAvailableSlots(LocalDate selected, int doctor_id){\n ArrayList<Unavailable> availableSlots = new ArrayList<>();\n ArrayList<Agenda> available = new ArrayList<>();\n ArrayList<Agenda> appointments = new ArrayList<>();\n try {\n if (doctor_id > 0)\n availableSlots = model.getDbController().getUnvailability(doctor_id); //returns availability of that doctor\n else\n availableSlots = model.getDbController().getUnvailability(-1);\n appointments = model.getDbController().getAppointments(-1, \"\");\n } catch(Exception e) {\n e.printStackTrace();\n }\n\n for (int i = 0; i < availableSlots.size(); i++){\n if (!availableSlots.get(i).getStartTime().toLocalDate().isEqual(selected))\n availableSlots.remove(i);\n }\n\n for (int i = 0; i < availableSlots.size(); i++){\n for (int j = 0; j < appointments.size(); j++){\n if (appointments.get(j).getStartTime().toLocalDate().isEqual(selected) && availableSlots.get(i).getStartTime().toLocalDate().isEqual(selected))\n if (availableSlots.get(i).getStartTime().toLocalTime().equals(appointments.get(j).getStartTime().toLocalTime()))\n availableSlots.remove(i);\n }\n }\n\n for (int i = 0; i < availableSlots.size(); i++)\n available.add((Agenda) availableSlots.get(i));\n\n\n return available;\n //now you have the available slots, get the appointment slots of all doctors? then check all pag may nagequal start time, tanggalin mo yung availability na yun\n //after the loop ok na return it\n }", "title": "" }, { "docid": "f47edcc8e3d1471b93744538d21613fe", "score": "0.539871", "text": "public List<RoomReservation> findAllRoomReservations();", "title": "" }, { "docid": "90dba5ef6ea5ba24497ccc3a2dda50d7", "score": "0.5389538", "text": "List<Reservation> findAll();", "title": "" }, { "docid": "cac6c66cc781f813c5ea06daea91f780", "score": "0.53843397", "text": "@Override\n\tpublic List<Reservation> getAll() {\n\t\tSession session = HibernateUtil.getSessionFactory().openSession();\n\t\tsession.beginTransaction();\n\t\t\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<Reservation> result = session.createQuery(\"FROM Reservation a ORDER by a.date DESC, a.firstTime DESC\")\n\t\t\t\t\t\t\t\t\t\t\t.getResultList();\n\t\t\n\t\tsession.getTransaction().commit();\n\t\tsession.close();\n\t\t\n\t\treturn result;\n\t}", "title": "" }, { "docid": "01c4eda7038af56692f9888c2cc6fa70", "score": "0.5380332", "text": "public ArrayList<Vacation> getAllAvailableVacations(String registeredUerName){\n ArrayList<Vacation> res = new ArrayList<Vacation>();\n String sql;\n sql = \"SELECT vacationID,seller,aviationCompany,departureTime,launchTime,backDepartureTime,backLaunchTime,baggage,tickets,fromCountry,destinationCountry,ticketType,price,avalible FROM vacations WHERE seller != ? AND avalible = 1 ;\";\n try (Connection conn = this.connect();\n PreparedStatement pstmt = conn.prepareStatement(sql)) {\n pstmt.setString(1,registeredUerName);\n // set the value\n ResultSet rs = pstmt.executeQuery();\n\n // loop through the result set\n while (rs.next()) {\n Vacation currRecord = new Vacation(rs.getInt(\"vacationID\"),\n rs.getString(\"seller\"),\n rs.getString(\"aviationCompany\"),\n rs.getDate(\"departureTime\"),\n rs.getDate(\"launchTime\"),\n rs.getDate(\"backDepartureTime\"),\n rs.getDate(\"backLaunchTime\"),\n rs.getInt(\"baggage\"),\n rs.getInt(\"tickets\"),\n rs.getString(\"fromCountry\"),\n rs.getString(\"destinationCountry\"),\n rs.getString(\"ticketType\"),\n rs.getDouble(\"price\"),\n rs.getInt(\"avalible\"));\n res.add(currRecord);\n }\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n\n return res;\n }", "title": "" }, { "docid": "48e5c2adb80ce4f00e32aa43fdf072c8", "score": "0.53799367", "text": "public List<BenefActivNewDto> allBeneficiaryDetails() {\n String selectQuery = \"SELECT * FROM \" + TABLE_REGISTRATION + \" where \" + FPSDBConstants.KEY_REGISTRATION_STATUS + \" = 'S'\";\n Cursor cursor = database.rawQuery(selectQuery, null);\n List<BenefActivNewDto> beneficiary = new ArrayList<BenefActivNewDto>();\n cursor.moveToFirst();\n for (int i = 0; i < cursor.getCount(); i++) {\n BenefActivNewDto beneficiaryDto = new BenefActivNewDto(cursor);\n beneficiaryDto.setActivationType(\"PENDING_REGISTRATION\");\n beneficiary.add(beneficiaryDto);\n cursor.moveToNext();\n }\n return beneficiary;\n\n\n }", "title": "" }, { "docid": "341197f2fe6700a92cc5f409539332fd", "score": "0.53767985", "text": "public void listBirthdays(){\n\t\tAsyncCallback<ArrayList<BmObject>> callback = new AsyncCallback<ArrayList<BmObject>>() {\n\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\tprocessing = false;\n\t\t\t\tshowErrorMessage(this.getClass().getName() + \"-listBirthdays() ERROR: \" + caught.toString());\t\n\t\t\t}\n\t\t\tpublic void onSuccess(ArrayList<BmObject> result) {\n\t\t\t\tprocessing = false;\n\t\t\t\tpopulateBirthdayList(result);\n\t\t\t}\n\t\t};\n\t\ttry {\n\t\t\tif (!processing) {\n\t\t\t\tprocessing = true;\n\t\t\t\tBmoCustomer bmoCustomer = new BmoCustomer();\n\t\t\t\tDate today = new Date();\n\t\t\t\tBmFilter bmFilter = new BmFilter();\n\t\t\t\tbmFilter.setDayMonthFilter(bmoCustomer.getKind(), bmoCustomer.getBirthdate().getName(), \n\t\t\t\t\t\tbmoCustomer.getBirthdate().getName(),\n\t\t\t\t\t\tDateTimeFormat.getFormat(\"M\").format(today),\n\t\t\t\t\t\tDateTimeFormat.getFormat(\"d\").format(today));\n\t\t\t\tgetUiParams().getBmObjectServiceAsync().list(bmoCustomer.getPmClass(), bmFilter, callback);\n\t\t\t}\n\t\t} catch (SFException e) {\n\t\t\tshowErrorMessage(this.getClass().getName() + \"-listBirthdays() ERROR: \" + e.toString());\n\t\t}\n\t}", "title": "" }, { "docid": "e04e978882278388ce3aacae48038307", "score": "0.537623", "text": "public void getTransactions() {\r\n Iterator result;\r\n String memberID = getToken(\"Enter member id\");\r\n Calendar date = getDate(\"Please enter the date for which you want records as mm/dd/yy\");\r\n result = library.getTransactions(memberID,date);\r\n if (result == null) {\r\n System.out.println(\"Invalid member.Member ID\");\r\n } else {\r\n while(result.hasNext()) {\r\n Transaction transaction = (Transaction) result.next();\r\n System.out.println(transaction.getType() + \" \" + transaction.getTitle() + \"\\n\");\r\n }\r\n System.out.println(\"\\n There are no more transactions \\n\" );\r\n }\r\n }", "title": "" }, { "docid": "491f3d2bf5f40632b311a48ab5b27148", "score": "0.53761184", "text": "public ArrayList<Transaction> getOutgoingOngoing(int id) {\n PreparedStatement stmt = null;\n String sql = \"select * from transaction where borrower_id = ? and transaction_status='ONGOING';\";\n ArrayList<Transaction> transactions = new ArrayList<>();\n try {\n stmt = getConn().prepareStatement(sql);\n stmt.setInt(1, id);\n ResultSet resultSet = stmt.executeQuery();\n while (resultSet.next()) {\n int transactionId = resultSet.getInt(\"transaction_id\");\n\n int bookId = resultSet.getInt(\"book_id\");\n Book book = getBook(bookId);\n\n int borrowerId = resultSet.getInt(\"borrower_id\");\n Consumer borrower = getConsumer(borrowerId);\n\n String transactionStatusRtv = resultSet.getString(\"transaction_status\");\n TransactionStatus transactionStatus = TransactionStatus.valueOf(transactionStatusRtv);\n\n Date requestDateRtv = resultSet.getDate(\"request_date\");\n Calendar requestDate = new GregorianCalendar();\n requestDate.setTime(requestDateRtv);\n\n Date startDateRtv = resultSet.getDate(\"start_date\");\n Calendar startDate = new GregorianCalendar();\n if (startDateRtv != null) {\n startDate.setTime(startDateRtv);\n } else {\n startDate = null;\n }\n\n Date finishDateRtv = resultSet.getDate(\"finish_date\");\n Calendar finishDate = new GregorianCalendar();\n if (finishDateRtv != null) {\n finishDate.setTime(finishDateRtv);\n } else {\n finishDate = null;\n }\n\n Transaction transaction = new Transaction(transactionId, book, borrower, transactionStatus, requestDate, startDate, finishDate);\n transactions.add(transaction);\n }\n stmt.close();\n return transactions;\n } catch (SQLException e) {\n e.printStackTrace();\n return transactions;\n }\n }", "title": "" }, { "docid": "90dc625e32d587567d81f794ba230e94", "score": "0.5370104", "text": "private Cursor getAllGuests() {\n // Inside, call query on mDb passing in the table name and projection String [] order by COLUMN_TIMESTAMP\n return mDb.query(\n WaitListContract.WaitListEntry.TABLE_NAME,\n null,\n null,\n null,\n null,\n null,\n WaitListContract.WaitListEntry.COLUMN_TIMESTAMP\n );\n }", "title": "" }, { "docid": "a6bb2ca5f37c4050ec7bda43e18124fe", "score": "0.53550285", "text": "@Override\n public List<TopoBookingDTO> searchAllTopoBookingByIdOwnerWithPendingStatus(Integer accountId){\n List<TopoBookingDTO> topoBookingDTOList = searchAllTopoBookingByIdOwner(accountId);\n List<TopoBookingDTO> topoBookingPendingDTOList = new ArrayList<>();\n \n for (TopoBookingDTO topoBookingDTO : topoBookingDTOList){\n if(topoBookingDTO.getStatus().equals(EnumStatus.PENDING.getAbbreviation())){\n topoBookingPendingDTOList.add(topoBookingDTO);\n }\n }\n \n return topoBookingPendingDTOList;\n }", "title": "" }, { "docid": "c8d58d2f650ef92fd14ff8ce69d2289e", "score": "0.53519917", "text": "private void viewBookings(User currentUser) {\n Set<Order> userOrders = currentUser.getOrders();\n Object[] userOrdersArray = userOrders.toArray();\n for (int i = 0; i < userOrdersArray.length; i++) {\n System.out.println(userOrdersArray[i]);\n }\n }", "title": "" }, { "docid": "2a4e1ba35c16112e49f057e8d9f1e143", "score": "0.5351589", "text": "@Override\r\n\tpublic List<TranVO> getAllByMember_idWait(String member_id) {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "4035299cf3c038f443014d254ab8a2fb", "score": "0.53515774", "text": "private void give_members_display() {\n\n Query query = membersRef.whereEqualTo(\"status\", \"Active\");\n FirestoreRecyclerOptions<Members> options = new FirestoreRecyclerOptions.Builder<Members>()\n .setQuery(query, Members.class)\n .build();\n\n adapter = new GiveMedicineAdapter(options);\n\n add_medicine_recycler_list = findViewById(R.id.add_medicine_recycler_list);\n add_medicine_recycler_list.setHasFixedSize(true);\n add_medicine_recycler_list.setLayoutManager(new LinearLayoutManager(this));\n add_medicine_recycler_list.setAdapter(adapter);\n\n\n }", "title": "" }, { "docid": "12654b7cfebf065e003fd334175850e1", "score": "0.53505033", "text": "@Override\n\tpublic List<RoomSpecificDTO> getRoomSpecificByBooking(int hotel_ID,\n\t\t\tString type) throws EmptyResultException {\n\t\tArrayList<RoomSpecificDTO> cast = new ArrayList<RoomSpecificDTO>();\n\t\ttry{\n\t\t\t//Statement stmnt = connection.createStatement();\n\t\t\tString query_cast = \"SELECT ROOM_ID, ROOM_NO, ROOM_TYPE_SPECIFIC, HOTEL_ID FROM TBL_ROOMS_SPECIFIC WHERE ROOM_CONDITION = 'AVAILABLE' AND ROOM_TYPE_SPECIFIC = (?) AND HOTEL_ID = (?)\";\n\t\t\tPreparedStatement count_stmnt = connection.prepareStatement(query_cast);\n\t\t\tcount_stmnt.setString(1,type);\n\t\t\tcount_stmnt.setInt(2,hotel_ID);\n\t\t\tResultSet res = count_stmnt.executeQuery();\n\t\t\tlogger.info(\"The result set size is \"+res.getFetchSize());\n\t\t\twhile(res.next()){\n\t\t\t\tint ID = res.getInt(\"ROOM_ID\");\n\t\t\t\tlogger.info(\" \"+ID);\n\t\t\t\tint number = res.getInt(\"ROOM_NO\");\n\t\t\t\tlogger.info(\" \"+number);\n\t\t\t\thotel_ID = res.getInt(\"HOTEL_ID\");\n\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tcast.add(new RoomSpecificDTO(ID, number,type,\"AVAILABLE\",hotel_ID));\n\t\t\t}\n\t\t\t\n\t\t\tres.close();\n\t\t\tcount_stmnt.close();\n\t\t\t\n\t\t}catch(Exception e){\n\t\t\tSystem.out.println(\"Caught Exception\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn cast;\n\t}", "title": "" }, { "docid": "2fdbafea0c8272e6dcf02502ff50e756", "score": "0.5348715", "text": "public void displayAllGuest() {\n\t\tint roomNumber = 0;\n\t\tIterator<Room> roomIterator = rooms.iterator();\n\t\twhile (roomIterator.hasNext()) {\n\t\t\tRoom room = roomIterator.next();\n\t\t\tif(room.getAvailable()==1) {\n\t\t\tSystem.out.println(\"Room Number is : \" + roomNumber);\n\t\t\tSystem.out.println(\"Name of guest : \" + room.getGuest().getName());\n\t\t\tSystem.out.println(\"Age of guest : \" + room.getGuest().getKey());\n\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\telse{\n\t\t\t\tSystem.out.println(\"Room Number : \" + roomNumber +\"is not booked\");\t\n\t\t\t\t\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\troomNumber = roomNumber + 1;\n\t\t}\n\t}", "title": "" }, { "docid": "65a77a1a2f37e4ac900d91d13af50d8f", "score": "0.53470635", "text": "public ArrayList<Reserva> getAll(){\n\t\t\n\t\tStatement stmt=null;\n\t\tResultSet rs=null;\n\t\tArrayList<Reserva> reservas= new ArrayList<Reserva>();\n\t\ttry {\n\t\t\tstmt = FactoryConexion.getInstancia()\n\t\t\t\t\t.getConn().createStatement();\n\t\t\trs = stmt.executeQuery(\"select r.IdReserva,r.FechaDesde,r.FechaHasta,r.IdPersona,r.IdCabana,r.CantidadDias,r.PrecioTotal,c.Lugar,p.Nombre,p.Apellido from reserva r \"\n\t\t\t\t\t+ \"inner join cabana c on r.IdCabana=c.IdCabana \" + \" inner join persona p on r.IdPersona=p.IdPersona\");\n\t\t\tif(rs!=null){\n\t\t\t\twhile(rs.next()){\n\t\t\t\t\tReserva r = new Reserva();\n\t\t\t\t\tCabana c = new Cabana();\n\t\t\t\t\tPersona p = new Persona();\n\t\t\t\t\tc.setLugar(rs.getString(\"c.Lugar\"));\n\t\t\t\t\tr.setIdReserva(rs.getInt(\"r.IdReserva\"));\n\t\t\t\t\tr.setFechaDesde(rs.getTimestamp(\"r.FechaDesde\"));\n\t\t\t\t\tr.setFechaHasta(rs.getTimestamp(\"r.FechaHasta\"));\n\n\t\t\t\t\tp.setIdPersona(rs.getInt(\"r.IdPersona\"));\n\t\t\t\t\tc.setIdCabana(rs.getInt(\"r.IdCabana\"));\n\n\t\t\t\t\tr.setCantidadDias(rs.getInt(\"r.CantidadDias\"));\n\t\t\t\t\tr.setPrecioTotal(rs.getDouble(\"r.PrecioTotal\"));\n\t\t\t\t\tp.setNombre(rs.getString(\"p.Nombre\"));\n p.setApellido(rs.getString(\"p.Apellido\"));\n\t\t\t\t\tr.setPer(p);\n\t\t\t\t\tr.setCaba(c);\n\n\t\t\t\t\treservas.add(r);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\t\n\t\t\te.printStackTrace();\n\t\t}\n\t\ttry {\n\t\t\tif(rs!=null) rs.close();\n\t\t\tif(stmt!=null) stmt.close();\n\t\t\tFactoryConexion.getInstancia().releaseConn();\n\t\t} catch (SQLException e) {\t\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn reservas;\t\n\t}", "title": "" }, { "docid": "32a56888aea3f5822a95ff55b1a8d1bf", "score": "0.5346868", "text": "public Reservation getReservation();", "title": "" }, { "docid": "05751f9ed3b0bf498cc4e9f2b48ab91f", "score": "0.53339267", "text": "public ArrayList<Transaction> getIncomingOngoing(int id) {\n PreparedStatement stmt = null;\n String sql =\n \"select transaction_id,book_id,owner_id,borrower_id,transaction_status,request_date,start_date,finish_date \" +\n \"from transaction natural join book \" +\n \"where transaction_status='ONGOING' and owner_id=?;\";\n try {\n stmt = getConn().prepareStatement(sql);\n stmt.setInt(1, id);\n ArrayList<Transaction> transactions = new ArrayList<>();\n ResultSet resultSet = stmt.executeQuery();\n while (resultSet.next()) {\n int transactionId = resultSet.getInt(\"transaction_id\");\n\n int bookId = resultSet.getInt(\"book_id\");\n Book book = getBook(bookId);\n\n int ownerId = resultSet.getInt(\"owner_id\");\n\n int borrowerId = resultSet.getInt(\"borrower_id\");\n Consumer borrower = getConsumer(borrowerId);\n\n String transactionStatusRtv = resultSet.getString(\"transaction_status\");\n TransactionStatus transactionStatus = TransactionStatus.valueOf(transactionStatusRtv);\n\n Date requestDateRtv = resultSet.getDate(\"request_date\");\n Calendar requestDate = new GregorianCalendar();\n requestDate.setTime(requestDateRtv);\n\n Date startDateRtv = resultSet.getDate(\"start_date\");\n Calendar startDate = new GregorianCalendar();\n if (startDateRtv != null) {\n startDate.setTime(startDateRtv);\n } else {\n startDate = null;\n }\n\n Date finishDateRtv = resultSet.getDate(\"finish_date\");\n Calendar finishDate = new GregorianCalendar();\n if (finishDateRtv != null) {\n finishDate.setTime(finishDateRtv);\n } else {\n finishDate = null;\n }\n\n Transaction transaction = new Transaction(transactionId, book, borrower, transactionStatus, requestDate, startDate, finishDate);\n transactions.add(transaction);\n }\n stmt.close();\n return transactions;\n } catch (SQLException e) {\n e.printStackTrace();\n return null;\n }\n }", "title": "" }, { "docid": "6d87d40b62f8983c0aa1251bb99c2ed3", "score": "0.53334266", "text": "ArrayList<Guest> getAllGuest();", "title": "" }, { "docid": "f575db81b609f5e6aeca08cd9cceaf9d", "score": "0.5326702", "text": "@GET\n\t@Produces({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON, MediaType.TEXT_XML })\n\tpublic List<Data>getBooks(){\n\t\treturn PubDao.INSTANCE.getAllDonor();\n\t}", "title": "" }, { "docid": "b74f91fa9e232cb794b5de8569778886", "score": "0.53236544", "text": "private void getAllMemberWisegive() {\n\n final SweetAlertDialog pDialog = new SweetAlertDialog(getActivity(), SweetAlertDialog.PROGRESS_TYPE);\n pDialog.getProgressHelper().setBarColor(getResources().getColor(R.color.colorPrimary));\n pDialog.setTitleText(\"Loading\");\n pDialog.setCancelable(false);\n pDialog.show();\n Api.getClient().getAllGive(new Callback<List<AllGiveResponse>>() {\n @Override\n public void success(List<AllGiveResponse> allGiveRespons, Response response) {\n\n allGiveResponses = allGiveRespons;\n if (allGiveRespons.get(0).getSuccess().equalsIgnoreCase(\"false\")){\n Toast.makeText(getActivity(), allGiveRespons.get(0).getMessage(), Toast.LENGTH_SHORT).show();\n }else {\n setDataInRecyclerViewgiv();\n }\n\n pDialog.dismiss();\n }\n @Override\n public void failure(RetrofitError error) {\n Toast.makeText(getActivity(), error.toString(), Toast.LENGTH_SHORT).show();\n pDialog.dismiss();\n }\n });\n\n }", "title": "" } ]
c6498960d6ba33e686ef5e67c68b7c01
get vertices from an ordered vertex priority queue
[ { "docid": "652a799749aef7fe33e49c980345f3a9", "score": "0.76859725", "text": "private static int[] getOrderedVertexList(TreeSet<VertexPriorityBean> q) {\n int qSize = q.size();\n int[] vList = new int[qSize];\n\n int i = 0;\n while (!q.isEmpty()) {\n vList[i] = q.pollFirst().getVIdx();\n i++;\n\n }\n return vList;\n }", "title": "" } ]
[ { "docid": "9f6663e090a504270490ae08bc5e36d8", "score": "0.76225525", "text": "UnboundedQueueInterface<Type> getToVertices(Type vertex);", "title": "" }, { "docid": "78c84dc4b24fbbd713a576fbed5d5114", "score": "0.6774012", "text": "@SuppressWarnings(\"unchecked\")\r\n @Override\r\n public UnboundedQueueInterface<String> getToVertices(String vertex) {\r\n System.out.println(\"vertex = \" + vertex);\r\n UnboundedQueueInterface<data> adjVertices = new LinkedUnboundQueue<data>();\r\n int start;\r\n int end;\r\n start = indexIs((data) vertex);\r\n\r\n for (end = 0; end < numVertices; end++) {\r\n System.out.println(\"start = \" + start + \" end \" + end);\r\n System.out.println(\"edges = \" + edges[start][end] + \" nulledge = \" + NULL_EDGE);\r\n if (edges[start][end] != NULL_EDGE) // corrects start -1\r\n {\r\n System.out.println(\"start = \" + start + \" end \" + end);\r\n System.out.println(\"edges = \" + edges[start][end]);\r\n adjVertices.enqueue(vertices[end]);\r\n }\r\n }\r\n return (UnboundedQueueInterface<String>) adjVertices;\r\n }", "title": "" }, { "docid": "a73be304a299ea3529c0756c0e892c7b", "score": "0.6761376", "text": "static int[] getOrderedVertexList(GlobalVariable gv, IPriority pcb,\n IOrder ocb) {\n TreeSet<VertexPriorityBean> q = getOrderedVertexPriorityQueue(gv, pcb, ocb);\n return getOrderedVertexList(q);\n }", "title": "" }, { "docid": "a3fd7f2bf2e116d15620288d78b0a219", "score": "0.6672918", "text": "protected void add_vertices() \n {\n if(DEBUG)\n System.out.println(\"GreedyGraph.add_vertices\");\n vertices=new GreedyVertex[order];\n q=new GreedyPriorityQueue();\n \n for (int i=0; i<order; i++) \n {\n vertices[i]=new GreedyVertex(i);\n }\n }", "title": "" }, { "docid": "1b71ad2282550ddff871ad7b509026ca", "score": "0.6622946", "text": "private static TreeSet<VertexPriorityBean> getOrderedVertexPriorityQueue(GlobalVariable gv,\n IPriority pcb, IOrder ocb) {\n List<VertexPriorityBean> vpList = OrderPackageUtil.getVertexPriorityList(gv, pcb);\n TreeSet<VertexPriorityBean> q = new TreeSet<>(ocb.getComparator());\n for(VertexPriorityBean b:vpList){\n q.add(b);\n }\n return q;\n }", "title": "" }, { "docid": "aff82c14858b1ed98168673642e02f26", "score": "0.64601403", "text": "Iterable<V> vertices();", "title": "" }, { "docid": "7102ee7ac66154df4e4595fa97a17042", "score": "0.63970834", "text": "public Iterable<Vertex<V>> vertices();", "title": "" }, { "docid": "9dd5d52ac5358344fde317a5d2d53903", "score": "0.6389634", "text": "private static List<VertexPriorityBean> getVertexPriorityList(GlobalVariable gv, IPriority pcb) {\n List<VertexPriorityBean> vertexPriorityBeanList = new ArrayList<>();\n int[] idxLst = gv.getIdxLst();\n for (int i : idxLst) {\n float priority = pcb.getPriority(gv, i);\n Util.addElementToList(vertexPriorityBeanList, new VertexPriorityBean(i, priority));\n }\n\n return vertexPriorityBeanList;\n }", "title": "" }, { "docid": "5597172a794136534495b5dae36a8302", "score": "0.6353487", "text": "public List<T> getAdjacentVerticesOf(T vertex) {\n \treturn verticesMap.get(vertex);\n }", "title": "" }, { "docid": "9b7908c17ff482b0d4b83c32cef32fb7", "score": "0.63026255", "text": "public java.util.Collection getVertices();", "title": "" }, { "docid": "08ec92a99cec96242f7e047e55e17a30", "score": "0.622862", "text": "List<Vertex> uniformCostSearch(){\n Integer current; //the current vertex identifier\n LinkedList<Integer> queue = new LinkedList<>();\n vertices.get(start).setDistance(0); //Setting starting vertex distance to 0\n queue.add(start);\n while(!queue.isEmpty()) {\n current = queue.removeFirst(); //get first element in the queue\n if (!vertices.get(current).isVisited()) { //check if the vertex has been visited already\n vertices.get(current).visit(); //visit the vertex\n if (current == end) { //check if vertex is the goal\n return getShortestPath(vertices.get(end)); //return path if it is the goal\n }\n for (Vertex v : adjMatrix.get(current)) { //for each neighbor of current vertex\n if (vertices.get(v.identifier()).getDistance() > vertices.get(current).getDistance()+1) { //check if current vertex can provide shorter path than existing\n List<Integer> temp = Arrays.asList(v.identifier()); //removeAll needs Collection parameter\n queue.removeAll(temp); //remove all previous instances of the neighbor in the queue\n vertices.get(v.identifier()).setDistance(vertices.get(current).getDistance()+1); //set the distance to 1 + parents distance\n vertices.get(v.identifier()).setParent(current); //set parent to current vertex\n queue.add(v.identifier()); //add it to the queue\n }\n }\n adjMatrix.remove(current);\n }\n }\n return null;\n }", "title": "" }, { "docid": "93b7beb153c693a9eb89031158eab0e8", "score": "0.62185454", "text": "Set<V> getVertices();", "title": "" }, { "docid": "93b7beb153c693a9eb89031158eab0e8", "score": "0.62185454", "text": "Set<V> getVertices();", "title": "" }, { "docid": "3f2445f4693c2739c6f0ff87ee3c4c5c", "score": "0.62087053", "text": "public ArrayList<Vertex> vertices();", "title": "" }, { "docid": "da8cb5eecf0f75ee5e659b4ead9870bb", "score": "0.61096483", "text": "public Point[] getVertexs(){\n\treturn this.vertexs;\n }", "title": "" }, { "docid": "54638f45911946c7adf218a270676f4c", "score": "0.61014414", "text": "public Iterator<Integer> getVertices();", "title": "" }, { "docid": "573c6d646e9948709499715fa1f34161", "score": "0.60791856", "text": "public List<String> getVertices() {\n\n List<String> vertices = new ArrayList<>();\n\n if (adjListMap != null) {\n vertices.addAll(adjListMap.keySet());\n } else {\n System.out.println(\"No vertex present in graph\");\n }\n return vertices;\n }", "title": "" }, { "docid": "ec4c60c17aceab84f8412c60ca80460b", "score": "0.6040864", "text": "@Override\n\tpublic Iterable<V> vertices() {\n\t\treturn IterableIterator.wrap(this.vertices);\n\t\t\n\t\t//simpler way to solve this problem but this costs time and memory\n\t\t//return (Iterable<V>) this.vertices.clone();\n\t\t\n\t\t//TODO: write an VertexIterator such that remove method will actually\n\t\t//call the removeVertex method in the graph?\n\t}", "title": "" }, { "docid": "d366a41a6b1ed3e8bf6f24f199620182", "score": "0.5935092", "text": "public Iterable<ChebiVertex> getVertices() {\n return graph.getVertices();\n }", "title": "" }, { "docid": "d366a41a6b1ed3e8bf6f24f199620182", "score": "0.5935092", "text": "public Iterable<ChebiVertex> getVertices() {\n return graph.getVertices();\n }", "title": "" }, { "docid": "de94de34122e27f58788231ad532fdba", "score": "0.5914854", "text": "@Override\r\n\tpublic List<Vertex> getVertices() {\n\t\tList<Vertex>arr=new ArrayList<Vertex>();\r\n\t\t\r\n\t\t\tfor (Vertex o : mapping.keySet()) {\r\n\t\t\t arr.add(o);\r\n\t\t\t }\r\n\t\t\r\n\t\treturn arr;\r\n\t}", "title": "" }, { "docid": "f0e7f0e4a6e5abd75af6365394705e74", "score": "0.59141713", "text": "public void findSP(){\n\t\tfor (int i=1; i<graph.getVertices().size()+1; i++){\n\t\t\tfor (String v: vertexOrdering){\n\t\t\t\tVertex vertex=graph.getVertices().get(v);\n\t\t\t\tint vIndex=vertexOrdering.indexOf(v);\n\t\t\t\tArrayList<String> inwardEdges=vertex.getCollection().getInwards();\n\t\t\t\tdouble newVal=getMinPredecessor(inwardEdges, i-1);\n\t\t\t\tString predecessor=getPredecessor(inwardEdges, i-1);\n\t\t\t\tD[vIndex][i]=newVal;\n\t\t\t\tS[vIndex][i]=predecessor;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "ff3f50117dfe561707eb87796c153952", "score": "0.5903831", "text": "Iterable<AtlasVertex<V, E>> vertices();", "title": "" }, { "docid": "0fed6b5a18c125cd1b5a6207a53d6178", "score": "0.59022546", "text": "Iterable<Object> vertexIds();", "title": "" }, { "docid": "923e12e009f7584088f8e8782aa8a1a8", "score": "0.58701503", "text": "public Vertex getFromVertex(){\n return fromVertex;\n }", "title": "" }, { "docid": "57d5fca353c135f27d517b09d596ac1d", "score": "0.5842332", "text": "@Override\r\n\tpublic Point[] getVertices() {\n\t\treturn vertices;\r\n\t}", "title": "" }, { "docid": "5c9cd8ca37c372aa03260e8b4de698ae", "score": "0.5837984", "text": "public Graph<Vertex<V>> prim();", "title": "" }, { "docid": "0136904a41db7743d05c5b58e2df9d50", "score": "0.58355945", "text": "public List<Vertex> getPositionsOfVertices() {\n\t\tList<Vertex> vertices = new ArrayList<Vertex>();\n\t\t\n\t\t// Getting the estimates\n\t\tdouble [] pos = NDKGraphGetPositionOfAllVertices(addrGraph);\n\t\t\n\t\t// For all estimates\n\t\tfor (int i=0;i<pos.length;i+=4)\n\t\t{\n\t\t\t// Cast id to int\n\t\t\tDouble idDouble = pos[i];\n\t\t\tVertex vertex = new Vertex(idDouble.intValue(), pos[i+1], pos[i+2], pos[i+3]);\n\t\t\t// Add new vertex\n\t\t\tvertices.add(vertex);\n\t\t}\n\t\t// Return the list of vertices\n\t\treturn vertices;\n\t}", "title": "" }, { "docid": "8f5e8ff8b6949c555689056f720b196d", "score": "0.58146554", "text": "List<Integer> getAdjacentVertices(int v);", "title": "" }, { "docid": "172cd1c8bf5d652531fbdec460808747", "score": "0.5813768", "text": "Set<ParityVertex> getVertices();", "title": "" }, { "docid": "68a83c3f1dfa1b91607ad24a9b2ef3a4", "score": "0.57734597", "text": "public static Queue<Integer> collectPreorder(GT<PGElem> pg) {\n\t\tif (pg == null || pg.empty())\n\t\t\treturn new LinkedQueue<>();\n\t\tpg.findRoot();\n\t\treturn collectPreorder(pg, pg.retrieve());\n\t}", "title": "" }, { "docid": "e3a2117aca09793e565345b00d3c2a9f", "score": "0.5760771", "text": "public GreedyVertex getVertex(int index) \n {\n return (GreedyVertex)vertices[index];\n }", "title": "" }, { "docid": "9f373487973d94bfe20c36ba297f0eff", "score": "0.57398206", "text": "public LinkedList<Vertex<K,V>> vertices(){\n\t\treturn vertices;\n\t\t\n\t}", "title": "" }, { "docid": "6addd6926294890a91c340888949baae", "score": "0.57216454", "text": "public int order() { \t\n \treturn verticesMap.size();\n }", "title": "" }, { "docid": "2f2b899fc4203217ef8f309a757b9377", "score": "0.56832284", "text": "static List<Vertex> toplogicalOrder1(Graph g) {\r\n\r\n\t\tQueue<Vertex> queue = new LinkedList<Vertex>();\r\n\t\tList<Vertex> list = new ArrayList<Vertex>();\r\n\r\n\t\tArrayList<Integer> indegree = computeIndegree(g);\r\n\t\tfor (int i = 1; i < indegree.size(); i++) {\r\n\t\t\tif (indegree.get(i) == 0)\r\n\t\t\t\tqueue.add(g.verts.get(i));\r\n\t\t}\r\n\r\n\t\twhile (!queue.isEmpty()) {\r\n\t\t\tVertex u = queue.poll();\r\n\t\t\tlist.add(u);\r\n\t\t\tfor (Edge e : u.Adj) {\r\n\t\t\t\tVertex v = e.To;\r\n\t\t\t\tindegree.set(v.name, indegree.get(v.name) - 1);\r\n\t\t\t\tif (indegree.get(v.name) == 0) {\r\n\t\t\t\t\tqueue.add(v);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\treturn list;\r\n\t}", "title": "" }, { "docid": "2f57fe700cb934117dca8ea282b98a48", "score": "0.5680609", "text": "@Override\n public Set<L> vertices() {\n return new HashSet<>(this.vertices);\n }", "title": "" }, { "docid": "08c4aafeafd99b3ac87f727c1342d5da", "score": "0.56735665", "text": "public V nextVertex();", "title": "" }, { "docid": "093f6f99f96583d127f9a176fd47fe7a", "score": "0.5667574", "text": "@Override\n public Iterator<CS16Vertex<V>> vertices() {\n return _vertices.iterator();\n }", "title": "" }, { "docid": "f5f4c4e843cdd67a4afaf466bccf9e88", "score": "0.56562763", "text": "private ArrayList<Edge> lazyPrim(Vertex root)\n\t{\n\t\tPriorityQueue<Edge> pq = new PriorityQueue<Edge>(e);\n\t\tArrayList<Edge> mst = new ArrayList<Edge>(v-1);\n\n\t\troot.marked = true;\n\t\tfor(Edge edge : root.list)\n\t\t\tpq.offer(edge);\n\n\t\twhile(pq.size() > 0)\n\t\t{\n\t\t\tEdge nextEdge = pq.poll();\n\t\t\tif(nextEdge.v1.marked && nextEdge.v2.marked) continue; //lazy trim cycles\n\t\t\tmst.add(nextEdge);\n\t\t\tVertex dest = nextEdge.v1.marked ? nextEdge.v2 : nextEdge.v1;\n\t\t\tdest.marked = true;\n\t\t\tfor(Edge edge : dest.list) //enqueue neighbors\n\t\t\t\tpq.offer(edge);\n\t\t}\n\n\t\treturn mst;\n\t}", "title": "" }, { "docid": "dc0708c4e44e528fbd90cdb7d681c00e", "score": "0.5653767", "text": "public Set<V> vertices() {\n return Collections.unmodifiableSet(vertices);\n }", "title": "" }, { "docid": "f63891cda51f0a44611e43de34ba661d", "score": "0.56503266", "text": "Iterable<Object> vertexIds(int limit);", "title": "" }, { "docid": "c4f784bd98fada68a57dbfcaa481d4e3", "score": "0.56416774", "text": "public List<Vertex> getVertices() {\n\t\treturn Collections.unmodifiableList(mVertices);\n\t}", "title": "" }, { "docid": "2c798aca7b681b08087874ae9ea8b48a", "score": "0.5625348", "text": "public ArrayList<Vertice<V>> vertices()\n\t{\n\t\tArrayList<Vertice<V>> listaVertices = new ArrayList<Vertice<V>>();\n\t\t\n\t\tfor (Vertice<V> vertice: digrafo.keySet())\n\t\t{\n\t\t\tlistaVertices.add(vertice);\n\t\t}\n\t\treturn listaVertices;\n\t}", "title": "" }, { "docid": "cde0081ad75af41b14780f0695db7789", "score": "0.56250864", "text": "public Point[] getVertices() {\n\t\treturn vertices;\r\n\t}", "title": "" }, { "docid": "c6ee8dd21d90cafe7eadb1db816dfb7b", "score": "0.55986154", "text": "List<Vertex> breadthFirstSearch(){\n Integer current;\n List<Vertex> currentPath = new ArrayList<>();\n LinkedList<Integer> queue = new LinkedList<>();\n queue.add(start);\n while(!queue.isEmpty()) {\n current = queue.removeFirst();\n if (!vertices.get(current).isVisited()) {\n vertices.get(current).visit();\n currentPath.add(vertices.get(current));\n if (current == end) {\n return currentPath;\n }\n if (adjMatrix.get(current) != null) {\n for (Vertex v : adjMatrix.get(current)) {\n if (!vertices.get(v.identifier()).isVisited()) {\n queue.add(v.identifier());\n }\n }\n }\n adjMatrix.remove(current);\n }\n }\n return null;\n }", "title": "" }, { "docid": "dbdbaea80f7ce187df4bfd51766a0f7c", "score": "0.55890715", "text": "public ArrayList<Vertex> getVertices(){\n\t\treturn vertices;\n\t}", "title": "" }, { "docid": "f89aebf2989e15db36ae39ef3ba4b655", "score": "0.55702454", "text": "@Override\n public GraphColorVertex getVertex(int key) {\n GraphColorVertex toReturn = null;\n for (int i = 0; i < vertexList.size(); i++) {\n if (vertexList.get(i).key == key) {\n toReturn = (GraphColorVertex) vertexList.get(i);\n }\n }\n return toReturn;\n }", "title": "" }, { "docid": "48294167ede49aea6bb1c58824a75dce", "score": "0.55691504", "text": "public Collection<Vertex> vertices() {\n\t\treturn vertices;\n\t}", "title": "" }, { "docid": "8f45f48449bf450e5aca316c3c1ff486", "score": "0.5563553", "text": "int getVertex3();", "title": "" }, { "docid": "1af52744bd023026d3f5cba8d8c94904", "score": "0.5561869", "text": "public int getVertex(int index) {\n\t\treturn vertices[index];\n\t}", "title": "" }, { "docid": "18cdac2599554d728b0c77f2b5c82fdd", "score": "0.55605996", "text": "public List<Vertex<V, E, F>> getAdjacentVertices() {\n\t\t\tVertexCollector<V, E, F> vC = new VertexCollector<V, E, F>();\n\t\t\tthis.visitAdjacentVertices(vC);\n\t\t\treturn vC.getList();\n\t\t}", "title": "" }, { "docid": "e93032ca54d096b2dfb96a0d42d6d841", "score": "0.5559754", "text": "int getVertexNumberFrom();", "title": "" }, { "docid": "e93032ca54d096b2dfb96a0d42d6d841", "score": "0.5559754", "text": "int getVertexNumberFrom();", "title": "" }, { "docid": "d0df25d744ab50c545c81c477769c238", "score": "0.55513626", "text": "public ArrayList<Integer> V2V(int ux, int uy, int vx, int vy){\n //Checks to make sure that the start node isn't the end node\n ArrayList<Integer> quick = new ArrayList<Integer>();\n if(ux == vx && uy == vy){\n quick.add(ux);\n quick.add(uy);\n return quick;\n }\n\n // A path between a start and end node\n ArrayList<Integer> [] path = new ArrayList[numVertices];\n\n // Initialize the start and end points\n Point start = new Point(ux, uy); // Point start\n String startString = PointToString(start); // String start\n\n //Checks to see if a the source does not have any neighbors\n if(!placement.containsKey(startString)){\n return quick;\n }\n\n Point end = new Point(vx, vy); // Point end\n String endString = PointToString(end); // String end\n\n // Checks for visited\n HashSet<String> SPT = new HashSet<String>();\n\n // Distance used to store the distance of vertex from a source\n int [] distance = new int[numVertices];\n\n // Initialize all the distance to infinity\n for (int i = 0; i < numVertices ; i++) {\n distance[i] = Integer.MAX_VALUE;\n path[i] = new ArrayList<Integer>();\n }\n\n // The min heap\n MinHeap minheap = new MinHeap();\n\n // Create the pair for for the first index, 0 distance 0 index\n distance[0] = 0;\n\n //Create the path for the first index, source point\n path[0].add(start.x);\n path[0].add(start.y);\n\n // Adding the start node to the heap\n minheap.add(start, 0);\n \n // Rearrange the source vertex to be in the front of the vertices\n if(!vertices.get(startString).equals(0)){\n int replaceKey = vertices.get(startString); //Get the value of the source\n vertices.replace(startString, 0); //Set the source value to 0\n vertices.replace(firstVertex, replaceKey); //Swap for the old source's vertex\n }\n\n //helper method for finding the shortest path\n ArrayList<Integer> returnedPath = findSP(path, end, SPT, distance, minheap, adjacencyList, placement, vertices, endString);\n //TEST TEST TEST DELETE BEFORE TURNING IN PLEASE\n // Find the total cost of the end point\n int sEnd = distance[vertices.get(endString)];\n // Find the smallest path using sEnd as key\n System.out.println(\"Shortest weight: \" + sEnd);\n //END OF TEST\n return returnedPath;\n }", "title": "" }, { "docid": "fccd85b4a6bfce1acc46b61ce5bcdcda", "score": "0.5540485", "text": "public Set<V> listVertices() {\n checkRep();\n return Collections.unmodifiableSet(graphMap.keySet());\n }", "title": "" }, { "docid": "a2f2c57608ce130342a964aa5b66261e", "score": "0.55256385", "text": "@Override\n public Collection<Long> vertexSet() {\n return nodeEdges.keySet();\n }", "title": "" }, { "docid": "4d42f9546f65e989de6a6846b09cb522", "score": "0.5524002", "text": "public List<Vertex> topologicalOrder1() {\n depthFirstSearch();\n if(cyclic){ // check if contains cycle in graph\n return null;\n }\n return topList;\n }", "title": "" }, { "docid": "787c422c4b0ec86819c8863fc555bbaf", "score": "0.5518568", "text": "public void getVertex(int index, Vector vertex);", "title": "" }, { "docid": "187f40d841d76db6ed00149ef5ee885e", "score": "0.5500327", "text": "public Set<T> getAllVertices() {\n return verticesMap.keySet();\n }", "title": "" }, { "docid": "3aaa671deb296713e6ca1a2f82a434b4", "score": "0.5497641", "text": "@Override\n\tpublic ILista<Vertex<K, V>> vertices() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "f447d67bbfdf2dd26c54f5c58639edb1", "score": "0.54955274", "text": "public Integer[] topSort() throws IllegalArgumentException {\n Integer[] in = indegrees();\n\n // Will hold the sorted vertices\n Integer[] sortedV = new Integer[arr.length];\n\n LinkedList<Integer> q = new LinkedList<Integer>();\n\n int i;\n // Check the indegree array for all the vertices with 0 indegrees\n for(i = 0; i < arr.length; i++){\n if( in[i] == 0)\n q.add(i+1);\n }\n\n // Check if the graph is cyclic\n // i.e. all vertices have an indegree and so nothing was added to the\n // queue\n if( q.size() == 0)\n throw new IllegalArgumentException(\"Cyclic Graph\");\n\n i = 0;\n\n while(q.size() != 0){\n\n // System.out.println(q);\n\n // q is in java indexing\n Integer index = q.remove();\n // sortedV holds the values in a natural Index\n sortedV[i] = index;\n i++;\n\n // Decrease the indegrees\n for(int j = 0; j < arr[index-1].size(); j++){\n Integer v = arr[index-1].get(j);\n in[v-1]--;\n if(in[v-1] == 0)\n q.add(v);\n }\n }\n return sortedV;\n }", "title": "" }, { "docid": "0db8f83465cb12b219aa6123bf648da7", "score": "0.54888684", "text": "public HashSet<Vertex> findMinimumSet()\n\t{\n\t\tint nVert = getNumVertices();\n\t\tHashSet<Vertex> visited = new HashSet<Vertex>();\t// Keep track of visited vertices\n\t\tHashSet<Vertex> minSet = new HashSet<Vertex>(); \t// Keeps a minimum set of vertices\n\t\t\n\t\t// Sort vertices by in-degrees in descending order\n\t\tMap<Vertex,Integer> sorted = MapUtil.sortByValue(inDegrees, true);\n\t\t\n\t\t// list each vertex in sorted order while including neighbors until all vertices are accounted for\n\t\tfor (Vertex v : sorted.keySet()) {\n\t\t\t//System.out.println(\"Visiting \"+v.getID()+\" (\"+sorted.get(v)+\")\");\n\t\t\tif (visited.size() == nVert) return minSet;\n\t\t\tif (!minSet.contains(v))\n\t\t\t\tupdateTracking(v, visited, minSet);\n\t\t}\n\t\treturn minSet;\n\t}", "title": "" }, { "docid": "ac51cd666dd859a5f2338513433b9089", "score": "0.5487548", "text": "public Collection<SemiClusteringVertex> getVertices() {\n\t\treturn (Collection) vertices;\n\t}", "title": "" }, { "docid": "facea88b91cfe59b474ee413f5d25587", "score": "0.5481206", "text": "public List<Vertex> getInputVertices() {\n\t\tfinal Set<Vertex> set = new HashSet<Vertex>();\n\t\tfor (final Connector<B> c : connectors)\n\t\t\tset.addAll(c.getInputVertices());\n\n\t\tfor (final Connector<B> c : connectors)\n\t\t\tset.removeAll(c.getOutputVertices());\n\n\t\tfinal List<Vertex> list = new ArrayList<Vertex>(set);\n\t\tCollections.sort(list);\n\t\treturn list;\n\t}", "title": "" }, { "docid": "009ba61e2132806ff455477da2b6a34c", "score": "0.54722214", "text": "public void coloringOrder(){\n int nodeIndex = 0;\n waitingList.add(0);\n visited[0] = true;\n while (!waitingList.isEmpty()){\n nodeOrder[nodeIndex] = this.graph.getVertex(waitingList.get(0));\n addToWaitingList(waitingList.get(0));\n visited[waitingList.get(0)] = true;\n waitingList.remove(0);\n nodeIndex++;\n }\n findIsolatedNodes(nodeIndex);\n\n}", "title": "" }, { "docid": "be29797cb3cf8abb7fa50684cefb5df6", "score": "0.54721296", "text": "public Vertex getToVertex(){\n return toVertex;\n }", "title": "" }, { "docid": "9ae42618016330dd89169108e9dfd874", "score": "0.54672533", "text": "protected abstract VertexTraversal<Cap, SideEffect, Mark> castToVertices();", "title": "" }, { "docid": "513ba797256dde46a6e72919f3732e89", "score": "0.5451564", "text": "int getVertexNumber();", "title": "" }, { "docid": "2130c515ab035cc53de855ee2ec8ebde", "score": "0.54497224", "text": "Iterable<AtlasVertex<V, E>> vertices(int limit);", "title": "" }, { "docid": "55435ff1f2e892109a72455dde80b6ee", "score": "0.54439723", "text": "public ArrayList<Vertex> getVertexes()\n {\n return this.vertexes;\n }", "title": "" }, { "docid": "38f0b5312df0cd907a69c8c5524471c8", "score": "0.5443597", "text": "public E getPredecessorReverse(E vertex);", "title": "" }, { "docid": "38298179c26d2de66ab92b21603abb00", "score": "0.54431474", "text": "public Vertex getVertex( int index )\n {\n return this.vertexes.get( index );\n }", "title": "" }, { "docid": "a8a169f4e8f0b439bff4d8d275e9ebad", "score": "0.5442244", "text": "ArrayList<Integer> V2S(int ux, int uy, ArrayList<Integer> S){\n //Made a HashSet to hold the vertices from the given Set\n HashSet<String> setPoints = new HashSet<String>();\n for(int i = 0; i < S.size(); i = i + 2){\n String stringPoint = Integer.toString(S.get(i)) + \",\" + Integer.toString(S.get(i + 1));\n setPoints.add(stringPoint);\n }\n\n // A path between a start and end node\n ArrayList<Integer> [] path = new ArrayList[numVertices];\n\n // Initialize the start and end points\n Point start = new Point(ux, uy); // Point start\n String startString = PointToString(start); // String start\n\n //Checks to make sure that the start node isn't the end node\n ArrayList<Integer> quick = new ArrayList<Integer>();\n if(setPoints.contains(startString)){\n quick.add(ux);\n quick.add(uy);\n return quick;\n }\n\n //Checks to see if a the source does not have any neighbors\n if(!placement.containsKey(startString)){\n return quick;\n }\n\n // Checks for visited\n HashSet<String> SPT = new HashSet<String>();\n\n // Distance used to store the distance of vertex from a source\n int [] distance = new int[numVertices];\n\n // Initialize all the distance to infinity\n for (int i = 0; i < numVertices ; i++) {\n distance[i] = Integer.MAX_VALUE;\n path[i] = new ArrayList<Integer>();\n }\n\n // The min heap for navigating through the graph\n MinHeap minheap = new MinHeap();\n\n //The min heap for holding the smallest paths that are in the given set\n MinHeap givenSetMinHeap = new MinHeap();\n\n // Create the pair for for the first index, 0 distance 0 index\n distance[0] = 0;\n\n //Create the path for the first index, source point\n path[0].add(start.x);\n path[0].add(start.y);\n\n // Adding the start node to the heap\n minheap.add(start, 0);\n\n // Rearrange the source vertex to be in the front of the vertices\n if(!vertices.get(startString).equals(0)){\n int replaceKey = vertices.get(startString); //Get the value of the source\n vertices.replace(startString, 0); //Set the source value to 0\n vertices.replace(firstVertex, replaceKey); //Swap for the old source's vertex\n }\n\n while(!minheap.isEmpty()){\n // Extracted vertex\n Point extractedVertex = (Point) minheap.extractMin();\n\n // Find string to check placement for extracted vertex\n String evString = PointToString(extractedVertex);\n\n if(!SPT.contains(evString)) {\n SPT.add(evString);\n\n // Go through the neighbors\n LinkedList<Edge> list = adjacencyList[placement.get(evString)];\n for (int i = 0; i < list.size(); i++) {\n Edge edge = list.get(i);\n Point destination = edge.destination;\n // String form\n String dest = PointToString(destination);\n\n // Only if edge destination is not present in SPT\n if (!SPT.contains(dest)) {\n ArrayList<Integer> newPath = new ArrayList<Integer>();\n\n int newKey = distance[vertices.get(evString)] + edge.weight;\n\n //Get the new path\n newPath = new ArrayList<Integer>(path[vertices.get(evString)]);\n\n //Adding the extra edge to the path\n newPath.add(destination.x);\n newPath.add(destination.y);\n\n int currentKey = distance[vertices.get(dest)];\n\n // If the path needs to be updated\n if (currentKey>newKey) {\n\n // If key already exists\n if (placement.containsKey(dest)) { minheap.add(destination, newKey); }\n\n //Update paths and weight for the smallest path\n distance[vertices.get(dest)] = newKey;\n path[vertices.get(dest)] = new ArrayList<Integer>(newPath);\n\n //if updated path's endpoint exists in set, add it to minheap\n if(setPoints.contains(dest)){\n givenSetMinHeap.add(newPath, newKey);\n }\n\n }\n }\n }\n }\n }\n\n //TEST TEST TEST DELETE BEFORE TURNING IN PLEASE\n // Find the smallest path using sEnd as key\n System.out.println(\"Shortest weight: \" + givenSetMinHeap.getKey(0));\n //END OF TEST\n //Check to see if the path exists\n ArrayList<Integer> check = new ArrayList<Integer>();\n if(!givenSetMinHeap.isEmpty()){\n check = (ArrayList<Integer>) givenSetMinHeap.getValue(0);\n }\n return check;\n }", "title": "" }, { "docid": "b3db6694be1a39086730116321d68474", "score": "0.544182", "text": "protected Collection<Integer> getVertexChildsVisited() {\r\n\t\t\r\n\t\tCollection<Integer> parent = new LinkedList<Integer>();\r\n\r\n\t\tfor (Integer i = 0; i < this.getArity(); i++) {\r\n\r\n\t\t\ttry {\r\n\t\t\t\tif (((String) this.getProperty(\"Vertex\" + this.getVertexIdentity()\r\n\t\t\t\t\t\t+ \"Port\" + i.toString())).equals(\"Visited\")) {\r\n\t\t\t\t\tparent.add(new Integer(i));\r\n\t\t\t\t}\r\n\t\t\t} catch (NoSuchElementException e) {\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn parent;\r\n\t}", "title": "" }, { "docid": "757fdcd1a655f257e373cee799fadd1b", "score": "0.54403365", "text": "private Set<TaskGraphMapper> dataflowTaskGraphPrioritize(DataflowTaskGraphGenerator taskGraph) {\n final IDataflowTaskGraph<TaskGraphMapper, DataflowOperation>\n dataflowTaskgraph = taskGraph.getTGraph();\n Set<TaskGraphMapper> taskVertices = dataflowTaskgraph.getTaskVertexSet();\n try {\n taskVertices.stream()\n .filter(task -> dataflowTaskgraph.inDegreeOf(task) == 0)\n .forEach(task -> dataflowTaskGraphParse(dataflowTaskgraph, task));\n } catch (NullPointerException npe) {\n npe.printStackTrace();\n }\n return taskVertices;\n }", "title": "" }, { "docid": "76c99996107fb5edb86505595e8b22a3", "score": "0.54370743", "text": "public Collection<Vertex> getVertices() {\n return vertexNames.values();\n }", "title": "" }, { "docid": "dd522a2653d51d763792757fdefc8154", "score": "0.54297096", "text": "public List<Vertice> vertices()\n {\n\t\tthrow new UnsupportedOperationException();\n }", "title": "" }, { "docid": "9a8995cdb15333ffd0d6934bb96cd7f2", "score": "0.54105043", "text": "public List<NavVertex> listVertices() {\r\n List<NavVertex> result = new ArrayList<>(vertices.values());\r\n return result;\r\n }", "title": "" }, { "docid": "6a6f13e17e00ae441540a171b311788a", "score": "0.54073155", "text": "@Override\r\n\tpublic List<Vertex> getUpstreamNeighbors(Vertex v) {\n\t\tint i =0;\r\n\t\tList<Vertex>arr = new ArrayList<Vertex>();\r\n\t\t\r\n\t\tif(mapping.containsKey(v))\r\n\t\t\ti = mapping.get(v);\r\n\t\t\r\n\t\tSystem.out.println(i);\r\n\t\tfor(int j = 0; j<adj_list.size(); j++){\r\n\t\t\tif(adj_list.get(j).get(i)==1){\r\n\t\t\t\tfor (Vertex o : mapping.keySet()) {\r\n\t\t\t\t if (mapping.get(o).equals(j)) {\r\n\t\t\t\t arr.add(o);\r\n\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t}\r\n\t\treturn arr;\r\n\t}", "title": "" }, { "docid": "7bf8ddbf2f6d3dc33ca262df7a8b089a", "score": "0.5404586", "text": "Iterable<Object> vertexIds(int offset, int limit);", "title": "" }, { "docid": "3a1fd7f58e5f441e3db98e5913df684d", "score": "0.5398332", "text": "public Vector<Partition> getInOrder() {\r\n\t\t\tVector<Partition> order = new Vector<Partition>(0, 1);\r\n\t\t\treturn getInOrder(order);\r\n\t\t}", "title": "" }, { "docid": "a633a6d0210a975160f0e0cfe024c3da", "score": "0.5390471", "text": "@Override\n \tpublic Vertex getVertex() {\n \t\treturn vertex;\n \t}", "title": "" }, { "docid": "2fefd308771e8904a0c72a319cfb69d1", "score": "0.5374988", "text": "int getVertex1();", "title": "" }, { "docid": "35dc3ad214ac56a0d25a33654eff0fe0", "score": "0.53749585", "text": "public String[] getCenters() {\r\n\t\tp = new PriorityQueueLinked<Integer>();\r\n\t\tPriorityQueueLinked<Integer> p1 = new PriorityQueueLinked<Integer>();\r\n\t\tint [] parent = new int [vertex.length];\r\n\t\tint [] visited = new int[vertex.length];\r\n\t\tint [] distance = new int[vertex.length];\r\n\r\n\t\tfor(int i = 0 ; i < vertex.length;i++){\r\n\t\t\tfor(int k = 0; k < vertex.length; k++) {\r\n\t\t\t\tdistance[k] = Integer.MAX_VALUE;\r\n\t\t\t\tvisited[k] = 0;\r\n\t\t\t\tparent[k] = -1;\r\n\t\t\t}\r\n\t\t\tint max = 0;\r\n\t\t\tp.enqueue(i, 0);\r\n\t\t\tdistance[i] = 0;\r\n\t\t\twhile(!p.isEmpty()){\r\n\t\t\t\tint v1 = p.dequeue();\r\n\t\t\t\tvisited[i] = 1;\r\n\t\t\t\tIterator itr = adj[v1].iterator();\t\t\t\r\n\t\t\t\twhile(itr.hasNext()){\r\n\t\t\t\t\tint j = (int)itr.next();\r\n\t\t\t\t\tif(visited[j] == 0){\t\t\t\r\n\t\t\t\t\t\tint newDist = distance[v1] + 1;\r\n\t\t\t\t\t\tif(distance[j] > newDist){\r\n\t\t\t\t\t\t\tdistance[j] = newDist;\r\n\t\t\t\t\t\t\tparent[j] = v1;\r\n\t\t\t\t\t\t\tp.enqueue(j, distance[j]);\r\n\t\t\t\t\t\t\tif(distance[j] > max) max = distance[j];\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(max != 0) p1.enqueue(i, max);\r\n\t\t}\r\n\t\tint lowp = p1.examine();\r\n\t\tArrayList<Integer> obj = new ArrayList<Integer>();\r\n\t\twhile(!p1.isEmpty() && p1.examine() == lowp){\r\n\t\t\tobj.add(p1.dequeue());\r\n\t\t}\r\n\t\tString [] s = new String [obj.size()];\r\n\t\tfor(int i = 0; i < obj.size(); i++){\r\n\t\t\ts[i] = vertex[obj.get(i)];\r\n\t\t}\r\n\t\treturn s;\r\n\t\t\r\n\t}", "title": "" }, { "docid": "0121bd02fe0e8710ec2cbdcce12db953", "score": "0.5367755", "text": "public ArrayList<Point3D> getVertices()\n {\n vertices.clear();\n setVertices(blockLocations);\n ArrayList<Point3D> result = new ArrayList<Point3D>();\n\n for(Point3D point : vertices)\n {\n result.add(point.add(location));\n }\n vertices.clear();\n for(Point3D point:result)\n {\n vertices.add(point);\n }\n\n\n return result;\n }", "title": "" }, { "docid": "e210c42f1f8d5c653cee56ed0ed6d275", "score": "0.53602034", "text": "Iterable<E> incomingEdges(V vertex);", "title": "" }, { "docid": "96a3ccc16a3417973869b8e4b1f448bf", "score": "0.5359926", "text": "public float[] getVertices() {\n return vertices;\n }", "title": "" }, { "docid": "96a3ccc16a3417973869b8e4b1f448bf", "score": "0.5359926", "text": "public float[] getVertices() {\n return vertices;\n }", "title": "" }, { "docid": "7f77c5d912dff938a7c5e2115e762b8a", "score": "0.5358365", "text": "@Override\n\tpublic List<IGraph.Vertex<V>> getNeighbors(String vertex) {\n\t\tif (!vertices.containsKey(vertex)) {\n\t\t\tthrow new NoSuchVertexException();\n\t\t}\n\n\t\t// Store neighbors in a set so we don't run into duplicates.\n\t\tHashSet<IGraph.Vertex<V>> ret = new HashSet<IGraph.Vertex<V>>();\n\n\t\t// Get the set of edges extending from the input vertex.\n\t\tSet<IGraph.Edge<E>> s = edges.get(vertex);\n\t\tfor (IGraph.Edge<E> e : s) {\n\t\t\tret.add(getVertex(e.getVertexName2()));\n\t\t}\n\t\t\n\t\t// If this is an undirected graph, include the set of vertices \n\t\t// extending from another vertex, into this vertex.\n\t\tif (!directed) {\n\t\t\tSet<IGraph.Edge<E>> i = inverseEdges.get(vertex);\n\t\t\tfor (IGraph.Edge<E> e : i) {\n\t\t\t\tret.add(getVertex(e.getVertexName2()));\n\t\t\t}\n\t\t}\n\n\t\t// Return the neighbors set as a List.\n\t\treturn new ArrayList<IGraph.Vertex<V>>(ret);\n\t}", "title": "" }, { "docid": "9d89214f3bba61658a5d2a06b15354e1", "score": "0.535576", "text": "public Set<Vertex> getAdjacentVertices(Vertex vertex) {\n if (!containsVertex(vertex)) {\n throw new IllegalArgumentException(\"Vertex \" + vertex + \" not found !\");\n }\n return m_adjacencyMap.get(vertex);\n }", "title": "" }, { "docid": "fa7712320ac743724d4650e61b669082", "score": "0.5348192", "text": "private List<DoublePoint> getInPoints(ISugiyamaVertex vertex){\n\t\tList<DoublePoint> points = new LinkedList<DoublePoint>();\n\t\tdouble width = vertex.getSize().x;\n\t\tint x = vertex.getX();\n\t\tint y = vertex.getY();\n\t\tint inDeg = this.inOutDeg.get(vertex.getID())[0];\n\t\tfor(int i = 1; i <= inDeg; i++){\n\t\t\tpoints.add(new DoublePoint(x + (i /( inDeg + 1.0)) * width, y));\n\t\t}\n\t\treturn points;\n\t}", "title": "" }, { "docid": "4e0fff8cf029021eb44772dd664625b7", "score": "0.5347324", "text": "private Queue<Integer> nodesToCompute() {\n Queue<Integer> queue = new LinkedList<Integer>();\n for (int i=0 ; i<R ; i++)\n if (!(removed.isMember(i)))\n queue.add(i);\n return queue;\n }", "title": "" }, { "docid": "8912a3652aaaf2bb7f6b62213f0722ab", "score": "0.5340397", "text": "int getVertexNumberTo();", "title": "" }, { "docid": "8912a3652aaaf2bb7f6b62213f0722ab", "score": "0.5340397", "text": "int getVertexNumberTo();", "title": "" }, { "docid": "1a1abfc5eb7b94b280a3ca3f8d4d00cc", "score": "0.5334487", "text": "public Graph getVertices(String expression) {\n return null;\n }", "title": "" }, { "docid": "f74665b579e284690856957c0fc251ce", "score": "0.5333741", "text": "public List<Vertex<V, E, F>> getOuterVertices() {\n\t\t\tif (outerComponent != null) {\n\t\t\t\tVertexCollector<V, E, F> vC = new VertexCollector<V, E, F>();\n\t\t\t\touterComponent.visitRing(vC);\n\t\t\t\treturn vC.getList();\n\t\t\t}\n\t\t\treturn new ArrayList<Vertex<V, E, F>>();\n\t\t}", "title": "" }, { "docid": "ac40c9443919333e40aaebea28854948", "score": "0.53333914", "text": "public int getVertex() {\n return this.vertex;\n }", "title": "" }, { "docid": "c5978cf5e9015c537fb65b7d8beeff1b", "score": "0.5305441", "text": "public Vertex getVertex(int index) {\n\t\treturn vertices[index];\n\t}", "title": "" }, { "docid": "d280c14b763d5f5586f674cf54f37781", "score": "0.5299679", "text": "private void sortInOutVertices(){\n\t\tfor(List<List<ISugiyamaVertex>> list : this.inOutVertices.values()){\n\t\t\tlist.get(0).sort((v1,v2)->Integer.compare(v1.getX(),v2.getX()));\n\t\t\tlist.get(1).sort((v1,v2)->Integer.compare(v1.getX(),v2.getX()));\n\t\t}\n\t}", "title": "" }, { "docid": "5b7d2a5b3de64537740dd98ff113f899", "score": "0.52848625", "text": "public void PrimMST() {\n marked = new boolean[this.v];\n distTo = new int[this.v];\n edgeTo = new int[this.v];\n pq = new IndexMinPQ<Integer>(this.v);\n for (int vert = 0; vert < this.v; vert++) {\n distTo[vert] = INFINITY;\n marked[vert] = false;\n }\n //distTo[source] = 0;\n //marked[source] = true;\n int nMarked = 1;\n\n for (int vert = 0; vert < this.v; vert++) { // run from each vertex to find\n int curr = vert;\n if (!marked[vert]) {\n distTo[vert] = 0;\n pq.insert(vert, distTo[vert]);\n while(!pq.isEmpty()) {\n visit(G, pq.delMin());\n //int V = pq.delMin();\n // scan(V);\n }\n\n // Check for disconnected graph\n if(curr > 0) {\n marked[curr] = true;\n nMarked++;\n } else {\n break;\n }\n } \n }\n for (int i = 1; i < G.v; i++) {\n for(WeightedUndirectedEdge e : G.adj(i)) {\n System.out.printf(\"%s,%s : %d\\n\", cityNames[e.from()], cityNames[e.to()],\n e.distance_weight());\n break;\n }\n //System.out.println();\n }\n }", "title": "" } ]
7ef2510b8577d87d21a36272ddda8a18
Sorts a given array by insertion sort.
[ { "docid": "df25dfe62d63fa78a480f7e9216be730", "score": "0.71607417", "text": "public static int[] InsertionSort(int[] sortMe) {\n\t\tfor (int i = 1; i < sortMe.length; i++) {\n\t\t\tint elem = sortMe[i];\n\t\t\tint index = i - 1;\n\t\t\twhile (index >= 0 && sortMe[index] > elem) {\n\t\t\t\tsortMe[index + 1] = sortMe[index];\n\t\t\t\tindex--;\n\t\t\t}\n\t\t\tsortMe[index + 1] = elem;\n\t\t}\n\t\treturn sortMe;\n\t}", "title": "" } ]
[ { "docid": "33700b1d64e4f2db534aa1449af4c76b", "score": "0.8218271", "text": "public static void insertionSort(int[] array) {\n for (int i = 1; i < array.length; i++) {\n int temp = array[i];\n int k;\n \n for (k = i - 1; k >= 0 && array[k] > temp; k--) {\n array[k + 1] = array[k];\n }\n array[k + 1] = temp;\n \n }\n }", "title": "" }, { "docid": "33700b1d64e4f2db534aa1449af4c76b", "score": "0.8218271", "text": "public static void insertionSort(int[] array) {\n for (int i = 1; i < array.length; i++) {\n int temp = array[i];\n int k;\n \n for (k = i - 1; k >= 0 && array[k] > temp; k--) {\n array[k + 1] = array[k];\n }\n array[k + 1] = temp;\n \n }\n }", "title": "" }, { "docid": "b8f80768aadac406a40eed5d8db1518a", "score": "0.8210934", "text": "public static void insertionSort(int[] array) {\n int key;\n int i;\n for (int j = 1; j < array.length; j++) {\n key = array[j];\n i = j - 1;\n while((i >= 0) && (array[i] > key)) {\n array[i + 1] = array[i];\n i--;\n }\n array[i + 1] = key;\n }\n }", "title": "" }, { "docid": "9708a7b64d0d8a7ee2f461e6cbcac1ca", "score": "0.8166918", "text": "public static <T extends Comparable<T>> void insertionsort(T[] arr) {\n\t\t/*\n\t\t * Pseudo Code\n\t\t * for i = 1 to n elements of array\n\t\t * \tvalueToInsert = array[i];\n\t\t * \tfor (j = i; (j > 0 && valToinsert < array[j - 1]); j--)\n\t\t * \t\tarray[j] = array[j - 1]; \n\t\t * \tarray[j] = valueToInsert;\n\t\t */\n\t\tT valToInsert;\n\t\tint holePosition;\n\t\tfor(int i = 1; i < arr.length; i++){\n\t\t\tvalToInsert = arr[i];\n\t\t\tfor(holePosition = i; (holePosition > 0 && strictlyLess(valToInsert, arr[holePosition - 1])); holePosition--){\n\t\t\t\tarr[holePosition] = arr[holePosition - 1];\n\t\t\t}\n\t\t\tarr[holePosition] = valToInsert;\n\t\t}\n\t}", "title": "" }, { "docid": "2da7b820589e1a8d7e7b35ce9b797ec8", "score": "0.80515325", "text": "public static void insertionSort(int[] arr){\n int origIndex;\n for(int i=1;i<arr.length; i++){\n for(int j=i; j>0; j--){\n if(arr[j-1]>arr[j]){\n sortingUtil.swap(arr, j-1, j);\n }\n }\n }\n }", "title": "" }, { "docid": "7bf9d3861dbc20b5169350b8952dbdf9", "score": "0.8034256", "text": "public static int[] insertionSort(int[] array) {\n // consider the first element of the list to be sorted\n for (int i = 1; i < array.length; i++) {\n int j = i;\n int k = i - 1;\n while (k >= 0 && array[j] < array[k]) {\n swap(array, j, k);\n j--;\n k--;\n }\n }\n return array;\n }", "title": "" }, { "docid": "308110b4870977f3e4ca3797df9240c9", "score": "0.8006155", "text": "public static <T extends Comparable<T>> void insertionSort(T[] array) {\n\t\tint i = 0, j = 0, w;\n\t\tfor (i = 0; i < array.length; i++) {\n\t\t\tfor (j = 0; j <= i; j++) {\n\t\t\t\tif (array[j].compareTo(array[i]) > 0) {\n\t\t\t\t\tT temp = array[j];\n\t\t\t\t\tarray[j] = array[i];\n\t\t\t\t\tfor (w = i; w > j + 1; w--)\n\t\t\t\t\t\tarray[w] = array[w - 1];\n\t\t\t\t\tarray[w] = temp;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (T kl : array)\n\t\t\tSystem.out.println(kl + \" \");\n\t\tSystem.out.println(\" \");\n\t}", "title": "" }, { "docid": "27cc9c13c3f73b49294d2bd608e171a6", "score": "0.79935014", "text": "public static void insertionSort(int arr[])\r\n\t{\r\n\t\tint length = arr.length;\r\n\t\tint j, key;\r\n\t\tfor(int i=1;i<length;i++)\r\n\t\t{\r\n\t\t\tkey = arr[i];\r\n\t\t\tj=i-1;\r\n\t\t\t\r\n\t\t\twhile(j>=0 && arr[j]>key)\r\n\t\t\t{\r\n\t\t\t\tarr[j+1] = arr[j];\r\n\t\t\t\tj=j-1;\r\n\t\t\t}\r\n\t\t\tarr[j+1] = key ;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "f51272298c639a2152aa254350b764df", "score": "0.79822725", "text": "public static void insertionSort(Integer[] arr) {\n for (int n = 1; n < arr.length; n++) {\n int i = n;\n while (i > 0 && arr[i - 1] > arr[i]) {\n swap(arr, i - 1, i);\n i--;\n }\n }\n }", "title": "" }, { "docid": "b9fd75f284646113e525b82a6029463d", "score": "0.7854598", "text": "public static int[] insertionSort(int[] arr) {\n if (arr.length <= 1) return arr;\n\n for (int i = 1; i < arr.length; i++) {\n int j = i;\n while (j > 0 && arr[j] < arr[j - 1]) {\n swap(arr, j, j - 1);\n j--;\n }\n }\n return arr;\n }", "title": "" }, { "docid": "3546753ecaf35d541b6836b9d4c487cc", "score": "0.78526247", "text": "public void insertionSorting(int arr[]){\n\t\tfor (int i : arr) {\n\t\t\tSystem.out.print(i+\" \");\n\t\t}\n\t\tSystem.out.println();\n\t\tfor (int i = 1; i < arr.length; i++) {\n\t\t\tint temp = arr[i];\n\t\t\tint j = i-1;\n\t\t\twhile(j >= 0 && arr[j] > temp ) {\n\t\t\t\t\tarr[j+1] = arr[j];\n\t\t\t\t\tj--;\n\t\t\t}\n\t\t\tarr[j+1] = temp;\n\t\t}\n\t\tfor (int i : arr) {\n\t\t\tSystem.out.print(i+\" \");\n\t\t}\n\t\tSystem.out.println();\n\t}", "title": "" }, { "docid": "a6110e243e85491e3586e866ecc2740d", "score": "0.78524286", "text": "@Override\n void doSort(int[] array) {\n for (int i = 1; i < array.length; i++) {\n int toInsert = array[i];\n // [0, j] is sorted\n int j = i - 1;\n // Is insert element is less than\n // the last index of sorted part?\n while (j >= 0 && toInsert < array[j]) {\n // move forward the element\n array[j + 1] = array[j];\n j--;\n }\n // find the idle to place insert\n array[j + 1] = toInsert;\n }\n }", "title": "" }, { "docid": "08ece2453ac82c6edb13ebb6689f28e3", "score": "0.780372", "text": "static double [] insertionSort (double a[]){\n\n int n = a.length;\n\n //Iterate through input array\n for(int i=0; i<n; i++)\n {\n double temp = a[i];\n //Compare a[i] with a[i-1]\n int j = i-1;\n\n //Iterate through all possible comparisons and swap accordingly\n while(j>=0 && a[j] > temp)\n {\n a[j+1] = a[j];\n j = j-1;\n }\n a[j+1] = temp;\n }\n return a;\n }", "title": "" }, { "docid": "cde8452ee5f4e75581edf3279b40179f", "score": "0.77870977", "text": "public static void Insertion_Sort(int[] arr) {\r\n\r\n\t\tint value;\r\n\t\t\r\n\t\tfor (int i=1;i<arr.length;i++) {\r\n\r\n\t\t\tvalue=arr[i];\r\n\t\t\tint j=i-1;\r\n\t\t\t\r\n\t\t\twhile (j>=0&&value<arr[j]){\r\n\r\n\t\t\t\t\tSelectionSort.Swap(arr, j, i);\r\n\t\t\t\t\tj--;\r\n\t\t\t\t\ti--;\r\n\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t}", "title": "" }, { "docid": "968632986c1726ff9588eab58eb0e5c8", "score": "0.7770521", "text": "public static void insertionSort(int[] arr){\n\t\t//write your code here\n int start=1;\n\t\tint end=arr.length-1;\n\t\tint temp;\n\t\twhile(start<=end)\n\t\t{\n\t\t\tint i=start-1;\n\t\t\ttemp=arr[start];\n\t\t\twhile(i>=0 && arr[i]>temp)\n\t\t\t{\n\t\t\t\tarr[i+1]=arr[i];\n\t\t\t\ti-=1;\n\t\t\t}\n\t\t\tarr[i+1]=temp;\n\t\t\tstart+=1;\n\t\t}\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "f3cd30d65a3870207ed189c496115ab8", "score": "0.7764482", "text": "public void insertionSort (int[] integers) {\n\t\tfor (int i = 1; i < integers.length; i++) {\n\t\t\tint j = i;\n\t\t\tint temp = integers[i];\n\t\t\t\n\t\t\twhile ((j > 0) && (integers[j-1] > temp)) {\n\t\t\t\tintegers[j] = integers[j-1];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tintegers[j] = temp;\n\t\t}\n\t}", "title": "" }, { "docid": "20fb01861411796ceb244e0d346609f4", "score": "0.77067274", "text": "public static void insertionSort(Comparable[] a)\n\t{\n\t\tint N = a.length;\n\t\tint min = 0;\n\t\t//int count = 0;\n\t\tboolean exchange = false;\n\t\t//8/31/2017\n\t\t/************************/\n\t\tint index = N-1;\n\t\t\n\t\t//Set the first positions to the smallest value in the list.\n\t\t//That way when these values are reached if the less method is called,\n\t\t//It will never return true when we compare j with j-1. Since the values\n\t\t//in index will stop the less(a[j], a[j-1]) in the condition for going past\n\t\t//the 0 index, it is called a sentinel value.\n\t\twhile((index>0))\n\t\t{\n\t\t\tif(less(a[index], a[index-1]))\n\t\t\t{\n\t\t\texch2(a, index, index-1);\n\t\t\t//9/01/2017: StdOut.println(\"Max Index value = \"+a[index]+\" Min Index Value = \"+a[index-1]+\" Min Index = \"+(index-1));\n\t\t\t}\n\t\t\tindex--;\n\t\t}\n\t\t/************************/\n\t\tfor(int i = 1; i < N; i++)\n\t\t{\n\t\t\t//count=0;\n\t\t\texchange = false;\n\t\t\t//IDEA:\n\t\t\t//P250: Make space to insert the current item by moving\n\t\t\t//larger items one position to the right, before inserting\n\t\t\t//the current item into the vacated position. \n\t\t\t\n\t\t\t//As in selection\n\t\t\t//sort, the items to the left of the current index are in \n\t\t\t//sorted order during the sort, but they are not in their\n\t\t\t//final position, as they may have to be moved to make room\n\t\t\t//for smaller items encountered later. If the array is large \n\t\t\t//and its entries are already in order, then insertion sort is\n\t\t\t//faster than if the entries are randomly ordered or in reverse \n\t\t\t//order.\n\t\t\t\n\t\t\t//P258: Insertion sort is slow for large unordered arrays because\n\t\t\t//the only exchanges it does involves adjacent entries, so items \n\t\t\t//can move through the array only one place at a time.\n\t\t\t\n\t\t\t//Insert a[i] among a[i-1], a[i-2], a[i-3]\n\t\t\t\n\t\t\t//j = i;\n\t\t\tComparable temp = a[i];\n\t\t\t/************************/\n\t\t\t//9/01/2017: StdOut.println(\"************i = \"+i);\n\t\t\tfor(int j=i; (/*j > 0 && */less(a[j],/*less(temp,*/ a[j-1]))/*||(j > 0 &&(equal(a[j], a[j-1])))*/; j--)\n\t\t\t{\n\t\t\t\t//Exchange the position of a[j] and a[j-1], since it is the new min value.\n\t\t\t\texch2(a, j, j-1);\n\t\t\t\t\n\t\t\t\t//Sets Min, and move largest value right\n\t\t\t\t//8/31/2017: min = moveMaxValueRight(a, j);\n\t\t\t\texchange = true;\t\t\t\t\n\t\t\t\t//min = j-1;\n\t\t\t\t//9/01/2017: StdOut.println(\"************j = \"+j);\n\t\t\t}//for\n\t\t\t//Print after the min value has been found\n\t\t\t//8/31/2017\n\t\t\t/************************/\n\t\t\t//a[j]=temp;\n\t\t\t/************************/\n\t\t\tinsertionGraph(a, i, min, exchange);\n\t\t\tyOffset-=35;\n\t\t}//for\n\t}", "title": "" }, { "docid": "bd5baa862bdda96c3cea14215bc87926", "score": "0.76765066", "text": "public static int[] insertionSort(int[] array) {\n insertionSort(array, 1, array.length);\n return array;\n }", "title": "" }, { "docid": "c1d04021053eda687373e1bbb8fe4397", "score": "0.7639659", "text": "public void insertionSort();", "title": "" }, { "docid": "a4c51cbba45c0cdeb0e037c950898355", "score": "0.7638422", "text": "@Override\r\n public void insertionSort() {\r\n for (int i = 1; i < size; i++) {\r\n int current = i;\r\n while (current > 0 && mainArray[current] < mainArray[current - 1]) {\r\n int temp_data = mainArray[current];\r\n mainArray[current] = mainArray[current - 1];\r\n mainArray[current - 1] = temp_data;\r\n current--;\r\n }\r\n }\r\n }", "title": "" }, { "docid": "9ce6d586bc877922f357bd8d8fa7adad", "score": "0.76340705", "text": "public static int[] insertionSort(int[] ar) {\n int n = ar.length;\n int i;\n for (i = 1; i < n; i++) {\n int index = ar[i];\n int j = i;\n while(j > 0 && ar[j-1] > index) {\n ar[j] = ar[j-1];\n j--;\n }\n ar[j] = index;\n }\n return ar;\n }", "title": "" }, { "docid": "4a089c8247c969e427ee51e37eaa0be7", "score": "0.76043737", "text": "public static int[] insertionSort(int unsortedArray[])\n {\t\n for (int i = 1; i < unsortedArray.length; i++){\n \tint j = i;\n \twhile(j > 0 && unsortedArray[j-1] > unsortedArray[j]){\n \t\tint bob = unsortedArray[j-1];\n \t\tunsortedArray[j-1] = unsortedArray[j];\n \t\tunsortedArray[j] = bob;\n \t\tj--;\n \t}\n \t\n }\n\n return unsortedArray;\n }", "title": "" }, { "docid": "a1054812042f84aa1894c5660b6085dc", "score": "0.75925976", "text": "public static void insertionSort(int[] arr){\n\t\tint swaps = 0;\n\t\tfor(int j=0;j<arr.length;j++){\n\t\t\tboolean added = false;\n\t\t\tfor(int i = 0; i < arr.length; i++){\n\t\t\t\tif (arr[j] < arr[i]){\n\t\t\t\t\tint temp = arr[j];\n\t\t\t\t\tarr[j] = arr[i];\n\t\t\t\t\tarr[i] = temp;\n\t\t\t\t\tadded = true;\n\t\t\t\t\tswaps++;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!added);\n\t\t}\n\t\t\n\t\tSystem.out.print(\"Insertion Sorted values: \");\n\t\tfor(int i=0;i<arr.length;i++){\n\t\t\tif(i == arr.length-1){\n\t\t\t\tSystem.out.printf(\"%d\\n\", arr[i]);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tSystem.out.printf(\"%d, \", arr[i]);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"Insertion Sort swaps: \" + swaps);\n\t}", "title": "" }, { "docid": "5d848909feaa0c2434a238ed6b536c9d", "score": "0.7590824", "text": "static void insertionSort(int[] x) {\n int i, k, y;\n int n = x.length;\n for (k = 1; k < n; k++) {\n y = x[k];\n for (i = k-1; i >= 0 && y < x[i]; --i)\n x[i+1] = x[i];\n\n /* Insert y into its proper\n position */\n x[i+1] = y;\n }\n }", "title": "" }, { "docid": "731560a8b59f4fa2ffd97ea891cbf9cd", "score": "0.75635105", "text": "private void insertionSort(Comparable[] a, int low, int high) {\n\t\tfor( int p = low + 1; p <= high; p++) {\n\t\t\tComparable tmp = a[p];\n\t\t\tint j;\n\t\t\tfor (j = p; j > low && tmp.compareTo(a[j-1]) < 0; j--) {\n\t\t\t\ta[j] = a[j-1];\t\t\t\t\n\t\t\t}\n\t\t\ta[j] = tmp;\n\t\t}\n\t}", "title": "" }, { "docid": "00f9ea877c8411a273b83e4744832fa7", "score": "0.75399625", "text": "private static void insertionsort(PyObject[] array, int off, int size,\n PyObject compare)\n {\n int end = off+size;\n for (int i=off+1; i<end; i++) {\n PyObject key = array[i];\n int j = i;\n while (--j >= off) {\n PyObject q = array[j];\n if (docompare(q, key, compare) <= 0)\n break;\n array[j+1] = q;\n array[j] = key;\n }\n }\n }", "title": "" }, { "docid": "9ea61eba3b777866894d0c9262536a33", "score": "0.7536358", "text": "public void InsertionSortAlphabetical(String[] array) {\r\n // proceeding through the array \r\n for (int i = 0; i < array.length - 1; i++) {\r\n // saving this position \r\n int position = i;\r\n\r\n while (position >= 0 && array[position].compareTo(array[position + 1]) > 0) {\r\n // swap down if it is not in the right order\r\n Swap(array, position, position + 1);\r\n position--;\r\n }\r\n\r\n }\r\n }", "title": "" }, { "docid": "daa155565e40bb2439de729230b4eeb6", "score": "0.75266933", "text": "public static void insertionSort(int[] array, int low, int high) {\n int key;\n int i;\n for (int j = low + 1; j <= high; j++) {\n key = array[j];\n i = j - 1;\n while((i >= low) && (array[i] > key)) {\n array[i + 1] = array[i];\n i--;\n }\n array[i + 1] = key;\n }\n }", "title": "" }, { "docid": "54fda35a5ea6e4b95a9face6f6ea6e84", "score": "0.7498147", "text": "public static void Insertionsort1(int[] array) {\r\n\t\t\r\n\t\tfor(int i = 0; i < array.length; i++) {\r\n\t\t\t// Set a[i] between a[i-1], a[i-2], a[i-3] etc.\r\n\t\t\tfor(int j = i; j > 0 && (array[j] < array[j-1]); j--) {\r\n\t\t\t\tint temp = array[j];\r\n\t\t\t\tarray[j] = array[j-1];\r\n\t\t\t\tarray[j-1] = temp;\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\t// Testing\r\n\t\tfor(int i = 0; i < array.length; i++) {\r\n\t\t\tSystem.out.print(array[i] + \" \");\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "ab4cf515ee391d476e632e4213e9934c", "score": "0.7497082", "text": "private static int[] insertionSortAscending(int[] data) {\r\n\t\tSystem.out.println(\"Original Array:\");\r\n\t\tprintArray(data);\r\n\t\tSystem.out.println(\"\\nSorting...\");\r\n\r\n\t\tfor (int j = 1; j < data.length; j++) {\r\n\t\t\tint key = data[j];\r\n\t\t\tint i = j - 1;\r\n\t\t\twhile (i >= 0 && data[i] > key) {\r\n\t\t\t\tdata[i + 1] = data[i];\r\n\t\t\t\ti--;\r\n\t\t\t}\r\n\t\t\tdata[i + 1] = key;\r\n\t\t\tprintArray(data);\r\n\t\t\tSystem.out.println(\"\");\r\n\t\t}\r\n\t\treturn data;\r\n\t}", "title": "" }, { "docid": "67ce4fec48a89c377a05ddcf8ba60653", "score": "0.74749726", "text": "public void insertionSort(int[] a, int first, int last){\n\t\tfor(int i = first + 1; i < last; i++){\n\t\t\tint nextToInsert = a[i];\n\t\t\tinsertInOrder(nextToInsert, a, first, i - 1);\n\t\t}\n\t\tdisplayArray(a);\n\t}", "title": "" }, { "docid": "8949d84d7016709e229f5ae587fad119", "score": "0.7437032", "text": "public static <T extends Comparable<? super T>> void insertionSort(T[] data) {\n\n for (int index = 1; index < data.length; index++) {\n T key = data[index];\n int position = index;\n\n /** Shift larger values to the right */\n while (position > 0 && data[position - 1].compareTo(key) > 0) {\n data[position] = data[position - 1];\n position--;\n }\n\n data[position] = key;\n }\n }", "title": "" }, { "docid": "097066c83ce8cf477ccb9c162d4b79a3", "score": "0.7435242", "text": "static void sortByInsertion(int [] arr)\r\n {\r\n \r\n int swaps = 0;\r\n for(int i = 1; i < arr.length ; i++)\r\n {\r\n int pos = arr[i];\r\n int prePos = i - 1;\r\n while(prePos >= 0 && arr[prePos] > pos )\r\n {\r\n arr[prePos + 1] = arr[prePos];\r\n prePos = prePos -1; \r\n arr[prePos + 1] = pos;\r\n swaps += 1;\r\n System.out.println(\"Sorted array so far: \"+Arrays.toString(arr));\r\n }\r\n \r\n }\r\n System.out.println(\"\\nNumber of swaps: \" + swaps);\r\n }", "title": "" }, { "docid": "963a05e637156a9afa357e774892a141", "score": "0.7434041", "text": "public static int[] insertionSortUsingInt(int array[])throws InvalidException\n \t\t{\n \t\t if(array.length>3)\n \t\t {\n \t\t\tfor(int i = 1;i<array.length;i++)\n \t\t\t{\n \t\t\t\tfor(int j = i; j > 0 ; j--)\n \t\t\t\t{\n \t\t\t\t\tif(array[j-1] > array[j])\n \t\t\t\t\t{//Swap the two elemets\n \t\t\t\t\t\tint temp = array[j-1];\n \t\t\t\t\t\tarray[j-1] = array[j];\n \t\t\t\t\t\tarray[j] = temp;\n \t\t\t\t\t}\n \t\t\t\t}\n\n \t\t\t}\n \t\t\t\n \t\t\tfor(int i = 0; i<array.length;i++)\n \t\t\t{\n \t\t\t\tSystem.out.print(array[i]+\" \");\n \t\t\t}\n \t\t\treturn array;\n \t\t } throw new InvalidException(\"array length is invalid\");\n \t\t}", "title": "" }, { "docid": "908a6ed762e554989c02f90b15520f19", "score": "0.7426918", "text": "public static <T> void insertionSort(T[] arr, Comparator<T> comparator) {\n if (arr == null) {\n throw new IllegalArgumentException(\"Array cannot be null!\");\n }\n if (comparator == null) {\n throw new IllegalArgumentException(\"Comparator cannot be null!\");\n }\n\n for (int i = 1; i < arr.length; i++) {\n int internali = i;\n for (int j = i - 1; j >= 0; j--) {\n if (comparator.compare(arr[internali], arr[j]) < 0) {\n swap(arr, internali, j);\n internali--;\n } else {\n j = -1;\n }\n }\n }\n }", "title": "" }, { "docid": "382890def834df09adba907214cf00f4", "score": "0.7425665", "text": "public static void insertionSort1(int[] ar) {\n for(int i=ar.length-1; i>=0; i--){\r\n int insertData = ar[i];\r\n int j=i-1;\r\n for(;j>=0; j--){\r\n if(ar[j] > insertData){\r\n ar[j+1] = ar[j]; \r\n printArray(ar);\r\n }else{\r\n break;\r\n }\r\n }\r\n ar[j+1] = insertData;\r\n }\r\n printArray(ar);\r\n }", "title": "" }, { "docid": "3b5a85e7838d7a7908cec078efd2c393", "score": "0.74068904", "text": "static int[] insertionSort(int[] array) {\n\t\tlong start = System.currentTimeMillis();\n\t\tint j;\n\n\t\ttry (ProgressBar pb = new ProgressBar(\"Insertion Progress\", array.length)) {\n\t\t\tfor (int i = 1; i < array.length; i++) {\n\t\t\t\tpb.step();\n\n\t\t\t\tint key = array[i];\n\n\t\t\t\tfor (j = i - 1; (j >= 0) && (key < array[j]); j--) {\n\t\t\t\t\tarray[j + 1] = array[j];\n\t\t\t\t}\n\t\t\t\tarray[j + 1] = key;\n\t\t\t}\n\t\t\tpb.setExtraMessage(\"Completed\");\n\n\t\t}\n\t\tlong end = System.currentTimeMillis();\n\t\tSystem.out.println(\"Array sorted with insertion sort in :\" + (end - start) + \"ms\");\n\n\t\treturn array;\n\t}", "title": "" }, { "docid": "ffbd22e85df2053b632bfbe67dc6f1c7", "score": "0.7405292", "text": "public static void insertionSortInterative(int[] array) {\n for (int firstUnsortedIndex = 1; firstUnsortedIndex < array.length; firstUnsortedIndex++) {\n // Save the value of the first element at unsorted partition which is to be placed into sorted partition. \n int newElement = array[firstUnsortedIndex];\n\n int i;\n // Traverse through unsorted partition starting from the first element until the first element's index becomes 0.\n // If insertion position is 0, the element is the smallest element in the sorted partition.\n // We want to keep traversing as long as the element we're trying to insert in the sorted partition is greater than\n // the one we currently have the pointer at (index i). If the element we have is greater than the element in the sorted partition,\n // we've found the correct index for the elemen in the sorted partition.\n // Basically we're traversing down the sorted partition - from the largest to the smallest, and \n for (i = firstUnsortedIndex; i > 0 && array[i - 1] > newElement; i--) {\n array[i] = array[i - 1];\n }\n array[i] = newElement;\n }\n }", "title": "" }, { "docid": "71d496a468d8e4d087f94fc01ebe41d3", "score": "0.7391594", "text": "private static <AnyType extends Comparable<? super AnyType>>\n void insertionSort( AnyType [ ] a, int left, int right )\n {\n for( int p = left + 1; p <= right; p++ )\n {\n AnyType tmp = a[ p ];\n int j;\n\n for( j = p; j > left && tmp.compareTo( a[ j - 1 ] ) < 0; j-- )\n a[ j ] = a[ j - 1 ];\n a[ j ] = tmp;\n }\n }", "title": "" }, { "docid": "8c1f921f81b4d89f4671df3ab89479eb", "score": "0.7358063", "text": "private static int[] sortInserition(int[] array) {\n\t\tint key;\n\t\tint i;\n\t\tfor(int j=1;j<array.length;j++) {\n\t\t\tkey=array[j];\n\t\t\ti=j-1;\n\t\t\twhile (i>=0 && array[i]>key) {\n\t\t\t\tarray[i+1]=array[i];\n\t\t\t\ti--;\n//\t\t\t\tif(i<0) {\n//\t\t\t\t\tbreak;\n//\t\t\t\t}\n\t\t\t}\n\t\t\tarray[i+1]=key;\n\t\t}\n\t\treturn array;\n\t}", "title": "" }, { "docid": "53bc900782edff021670dca0f2d4c552", "score": "0.73451245", "text": "public static void insertionSort(int[] x) {\n\n // incrementing through array\n for (int i = 1; i < x.length; ++i) {\n int key = x[i];\n int j = i - 1;\n\n // move element that is larger than key over by 1 position\n while (j >= 0 && x[j] < key) {\n x[j + 1] = x[j];\n j = j - 1;\n }\n x[j + 1] = key;\n }\n }", "title": "" }, { "docid": "d5655b781566d0ff9a554c6f4997138c", "score": "0.7335698", "text": "public static <T extends Comparable<? super T>> void insertionSort(T[] list) {\n int N = list.length;\n\n for (int i = 0; i < N; i++) {\n for (int j = i; j > 0; j--) {\n if (ComparableJ.less(list[j], list[j - 1])) ComparableJ.exchange(list, j, j - 1);\n else break;\n }\n }\n assert isSorted(list);\n }", "title": "" }, { "docid": "a90616d2d8fb2d99363fb9d9eaa6b012", "score": "0.7321508", "text": "public static <T> void insertionSort(T[] arr, Comparator<T> comparator) {\n if (comparator == null || arr == null) {\n throw new IllegalArgumentException(\"Array or Comparator is null\");\n }\n for (int i = 1; i < arr.length; i++) {\n int j = i - 1;\n T curr = arr[i];\n while (j >= 0 && comparator.compare(curr, arr[j]) < 0) {\n arr[j + 1] = arr[j];\n j--;\n }\n arr[j + 1] = curr;\n }\n\n }", "title": "" }, { "docid": "7a49590fdb0870797a5aad75ca71d7a4", "score": "0.73122334", "text": "private static void insertionsort(int[] input) {\n for (int i = 1; i < input.length; i++) {\n int val = input[i];\n int hole = i;\n while (hole > 0 && input[hole-1] > val) {\n input[hole] = input[hole-1];\n hole = hole -1;\n }\n input[hole] = val;\n }\n }", "title": "" }, { "docid": "71ee0b03f0bbde2eeffe03661ff2e162", "score": "0.7295399", "text": "public static <T extends Comparable<T>> void insertionSort (T[] list) \n\t{\n\t\tint size = list.length;\n\t\tint outCounter, inCounter;\n\t\tT temp;\n\t\t// Sort list[] into increasing order.\n\t\tfor (outCounter = 1; outCounter < size; outCounter++)\n\t\t{\n\t\t\ttemp = list[outCounter];\n\t\t\tfor (inCounter = outCounter; inCounter > 0 && list[inCounter - 1].compareTo(temp) > 0; inCounter--)\n\t\t\t{\n\t\t\t\tlist[inCounter] = list[inCounter - 1];\n\t\t\t}\n\t\t\tlist[inCounter] = temp;\n\t\t}\n\t}", "title": "" }, { "docid": "ec4df397710ed889c29daf0f4aa0fde2", "score": "0.7289319", "text": "public static <E> void insertionSort(E[] array, Comparator<E> comparator) {\n for (int i = 1; i < array.length; i++) {\n E x = array[i];\n int j;\n for (j=i-1; j>=0; j--) {\n if (comparator.compare(x,array[j]) >= 0) { break; }\n array[j + 1] = array[j];\n }\n array[j + 1] = x;\n }\n }", "title": "" }, { "docid": "f71ddc084bf3e6e92a7873efb2755f2d", "score": "0.72442085", "text": "public static void insertionSort(int[] a, int n) {\n for (int i = 1; i < n; i++) {\n int tmp = a[i];\n int j = i - 1;\n for (; j >= 0 && a[j] > tmp; j--) {\n a[j+1] = a[j];\n }\n a[j+1] = tmp;\n }\n }", "title": "" }, { "docid": "8bd803b8cbd359a89fb87d154c5a98ff", "score": "0.72219646", "text": "public void insertSort(int[] input) {\n if (input == null || input.length == 0) {\n return;\n }\n\n for (int i = 1; i < input.length; i++) {\n int j = i-1;\n int current = input[i];\n while (j >= 0 && current < input[j]) {\n input[j+1] = input[j];\n j--;\n }\n input[j+1] = current;\n }\n System.out.println(\"insert sort\");\n for (int i = 0; i < input.length; i++) {\n System.out.print(input[i] + \"\\t\");\n }\n System.out.println();\n }", "title": "" }, { "docid": "af70f385f87246d855b453aa86859cb4", "score": "0.71692675", "text": "public static void sort(Comparable[] a) {\n // repeatedly find minimum element, and insert it in position\n for (int i = 0; i < a.length; i++) {\n int min = i;\n for (int j = i; j < a.length; j++) {\n if (less(a[j], a[min])) {\n // found a new minimum, update records\n min = j;\n }\n }\n exch(a, min, i); // insert minimum element in position\n } \n }", "title": "" }, { "docid": "6c6cb7fcbc0f45ff32950638e00ab940", "score": "0.7161237", "text": "public void insertionSort() {\n for (int i = 0; i < entries.size(); i++) {\n T key = entries.get(i);\n int j = i;\n while (j > 0 && ((key.compareTo(entries.get(j - 1)) < 0))) {\n entries.set(j, entries.get(j - 1));\n j--;\n }\n entries.set(j, key);\n }\n sorted = true;\n }", "title": "" }, { "docid": "e47139c5c84cae9a89e19ff4eed9f251", "score": "0.7137478", "text": "@Override\n public int[] sort(int[] data) {\n System.out.println(\"ordering\" + data + \", using Insertion sort\");\n int[] sortedData = data; //this is only here to compile\n return sortedData;\n }", "title": "" }, { "docid": "29390fba4bf3ed71937ae5fdc730344c", "score": "0.713433", "text": "public static void insertionSort2(int[] elements) \n { \n for (int j = elements.length - 2; j >= 0; j--) \n { \n int temp = elements[j]; \n int possibleIndex = j; \n while (possibleIndex < elements.length - 1 && temp > elements[possibleIndex + 1])\n { \n elements[possibleIndex] = elements[possibleIndex+1]; \n possibleIndex++; \n } \n elements[possibleIndex] = temp; \n } \n }", "title": "" }, { "docid": "18247b5dc63fbc8750ffe5cda6637c32", "score": "0.71223295", "text": "public static void insertionSort(int[] elements) \n { \n for (int j = 1; j < elements.length; j++) \n { \n int temp = elements[j]; \n int possibleIndex = j; \n while (possibleIndex > 0 && temp < elements[possibleIndex -1])\n { \n elements[possibleIndex] = elements[possibleIndex - 1];\n System.out.println(\"Possible element: \" + temp);\n possibleIndex--; \n } \n elements[possibleIndex] = temp; \n } \n }", "title": "" }, { "docid": "c3b0ca94468c5f4e6ee06938bd0bfc89", "score": "0.7058029", "text": "public static void insertionSort(int[] list1) {\r\n\t\tfor (int i = 1; i < list1.length; i++) {\r\n\t\t\tint j = i-1;\r\n\t\t\tint k = i;\r\n\t\t\twhile (j != -1 && list1[k] < list1[j]) {\r\n\t\t\t\tswap(list1, k, j);\r\n\t\t\t\tj--;\r\n\t\t\t\tk--;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "3a1283113c9e7974aebc28ff0bf6e9bf", "score": "0.7047841", "text": "@Override\n\tpublic void sort(Comparable[] a) {\n\t\tint N=a.length;\n//\t\tSort.show(a);\n//\t\tSystem.out.println(\"==========start=============\");\n\t\tfor(int i=0;i<N;i++) {\n\t\t\tint min=i;\n\t\t\tfor(int j=i+1;j<N;j++) {\n\t\t\t\tif(Sort.less(a[j],a[min])) min=j;\n\t\t\t}\n\t\t\tSort.exch(a,i,min);\n//\t\t\tSort.show(a);\n\t\t}\n\t}", "title": "" }, { "docid": "377b588c9ba1bd95828b160a197a0b13", "score": "0.6997547", "text": "public static String[] insertionSort(int[] arrayIn, String dataType)\n\t{\n\t\tarray = arrayIn;\n\t\tif(debug)\n\t\t\tprintArray();\n\n\t\tcomparisons = 0;\n\t\tmovements = 0;\n\n\t\tstart = System.currentTimeMillis();\n\t\t//Start the algorithm******************************************************************************************\n\t\tfor(int i = 1; i < array.length; i++)\n\t\t{\n\t\t\tcomparisons++;\n\t\t\tmovements++;\n\t\t\tint temp = array[i];\n\t\t\tint j;\n\t\t\tfor(j = i - 1; j >= 0 && temp < array[j]; j--)\n\t\t\t{\n\t\t\t\tcomparisons++;\n\t\t\t\tmovements++;\n\t\t\t\tarray[j + 1] = array[j];\n\t\t\t}\n\n\t\t\t//Check if the two numbers are different to know whether it is making a movement\n\t\t\tif(array[j + 1] == temp)\n\t\t\t\tmovements++;\n\t\t\tarray[j + 1] = temp;\n\t\t}\n\t\tend = System.currentTimeMillis();\n\t\t//Algorithm is finished****************************************************************************************\n\t\tif(debug)\n\t\t\tprintArray();\n\n\t\ttime = end - start;\n\n\t\treturn new String[]{\"\" + array.length, dataType, \"Insertion Sort\", \"\" + comparisons, \"\" + movements, \"\" +\n\t\t time};\n\t}", "title": "" }, { "docid": "a4d6b503936ee93bccde90a6b9f60be9", "score": "0.6997239", "text": "public static void insertSort(int[] x, int n){\t\t//O(n) if almost sorted; o(n^2) otherwise\n\t\tint swap;\n\t\t\n\t\tfor(int i=0;i<n; i++){\n\t\t\tfor(int j=0; j<n-1; j++){\n\t\t\t\tif(x[j]>x[j+1]){\n\t\t\t\t\tswap = x[j];\n\t\t\t\t\tx[j]=x[j+1];\n\t\t\t\t\tx[j+1]=swap;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "bc48206f2ed40c2fb3b1cf073788c4c4", "score": "0.69756365", "text": "public void insertionSort(int arr[],int left, int right){\n for(int i =left;i<=right;i++){\n int key = arr[i];\n int j = i-1;\n while(j>=left && arr[j]>key){\n arr[j+1] =arr[j];\n j --;\n counter++;\n }\n arr[j+1] = key;\n counter++;\n }\n }", "title": "" }, { "docid": "1e9ce82afc381b8b5dabe7a720dccd5e", "score": "0.6968324", "text": "public static <T> void insertionSort(ArrayList<T> inputArray, Comparator<? super T> comp, int low, int high)\r\n throws NullPointerException {\r\n int indexPosition;\r\n T element;\r\n\r\n for (int iter = low; iter <= high; iter++) {\r\n indexPosition = iter;\r\n element = inputArray.get(indexPosition);\r\n\r\n // locate position to insert\r\n while (indexPosition > 0 && indexPosition >= low && indexPosition <= high\r\n && comp.compare(inputArray.get(indexPosition - 1), element) > 0) {\r\n inputArray.set(indexPosition, inputArray.get(indexPosition - 1));\r\n indexPosition--;\r\n }\r\n inputArray.set(indexPosition, element);\r\n }\r\n }", "title": "" }, { "docid": "ab14a03ebc4486a286b898b01c4de9ce", "score": "0.69623554", "text": "public static <T extends Comparable<? super T>> void sort(T[] a) {\n int k = 0;\n while (h(k) < a.length) {\n k++;\n }\n while (k >= 0) {\n int gap = h(k--);\n // step-gap shell sort\n for (int i = gap; i < a.length; i++) {\n int j = i;\n while (j >= gap && Util.less(a[j], a[j - gap])) {\n Util.exch(a, j, j - gap);\n j -= gap;\n }\n }\n }\n }", "title": "" }, { "docid": "b9d3ac7d9553902c106adec1c0df3fd6", "score": "0.69611555", "text": "@Override\n public int[] sort(int[] array) {\n if (array.length <= INSERTION_THRESHOLD) return smallSorter.sort(array);\n int[] left = Arrays.copyOfRange(array, 0, array.length/2);\n int[] right = Arrays.copyOfRange(array, array.length/2, array.length);\n left = sort(left);\n right = sort(right);\n return merge(left, right);\n }", "title": "" }, { "docid": "bec687301c9100155d6cb8b8e1f1ae64", "score": "0.6905957", "text": "public void sort(Comparable[] a) {\n int N = a.length;\n for (int i = 0; i < N; i++) {\n int min = i;\n for (int j = i+1; j < N; j++) {\n if (less(a[j], a[min])) min = j;\n }\n exch(a, i, min);\n assert isSorted(a, 0, i);\n }\n assert isSorted(a);\n }", "title": "" }, { "docid": "9b1954ec86b55892dee9e013dde0212a", "score": "0.69056255", "text": "public static void insertionSort(int[] a,int p, int r)\r\n\t{\n\t\t\r\n\t\tfor(int x = p;x<r;x++)\r\n\t\t{\r\n\t\t\t\r\n\t\t\tfor(int y=p; y <= x;y++)\r\n\t\t\t{\r\n\t\t\t\tif(a[y]>a[x])\r\n\t\t\t\t{\r\n\t\t\t\t\tswap(a,y,x);\r\n\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "254b834270531293baa13a088b0e874e", "score": "0.690019", "text": "public static String[] insertionSortUsingString(String[] array)throws InvalidException\n \t\t{ \n \t\t if(array.length>2)\n\n \t\t{\n \t\t\tfor(int i=1;i<array.length;i++)\n \t\t\t{\n \t\t\t\tfor(int j=i; j>0 ;j--)\n \t\t\t\t{\n \t\t\t\t\tif(array[j-1].compareTo(array[j]) > 0)\n \t\t\t\t\t{//Swap the two elemets\n \t\t\t\t\t\tString temp=array[j-1]; \n \t\t\t\t\t\tarray[j-1]=array[j];\n \t\t\t\t\t\tarray[j]=temp;\n \t\t\t\t\t}\n \t\t\t\t}\n\n \t\t\t}\n \t\t\t\n \t\t\tfor(int i=0; i<array.length;i++)\n \t\t\t{\n \t\t\t\tSystem.out.print(array[i]+\" \");\n \t\t\t}\t\n \t\t\treturn array;\n \t\t} \n \t\t throw new InvalidException(\"range is invalid\");\n \t\t}", "title": "" }, { "docid": "7e13b61a268042b9ca74e407b3c1890a", "score": "0.6898392", "text": "public static void sort(Comparable[] a) {\n int N = a.length;\n\n // 3x+1 increment sequence: 1, 4, 13, 40, 121, 364, 1093, ... \n int h = 1;\n while (h < N/3) h = 3*h + 1; \n\n while (h >= 1) {\n // h-sort the array\n for (int i = h; i < N; i++) {\n for (int j = i; j >= h && less(a[j], a[j-h]); j -= h) {\n exch(a, j, j-h);\n }\n }\n assert isSorted(a, h); \n h /= 3;\n }\n assert isSorted(a);\n }", "title": "" }, { "docid": "5eaf1847f480ff984b4299e4cdf51632", "score": "0.68894655", "text": "public int[] sortInsertion() {\n int[] sorted = clone(original);\n for (int i = 0; i < sorted.length; i++) {\n int j = i;\n while (j > 0 && sorted[j] < sorted[j - 1]) {\n swap(sorted, j, j - 1);\n j -= 1;\n }\n\n }\n return sorted;\n }", "title": "" }, { "docid": "4478c7ac33e412672885fd8049e9ec89", "score": "0.6888261", "text": "public static void insertionSort3(int[] elements)\n {\n for(int j = 1; j < elements.length; j++)\n {\n int temp = elements[j];\n int possibleIndex = j;\n while(possibleIndex > 0 && temp > elements[possibleIndex - 1])\n {\n elements[possibleIndex] = elements[possibleIndex - 1];\n possibleIndex--;\n }\n elements[possibleIndex] = temp;\n }\n }", "title": "" }, { "docid": "802e9f0600fb897a32d1f65190c24fa4", "score": "0.68711704", "text": "public static void sort(Comparable[] arr) {\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\tint min = i;\n\t\t\tfor (int j = i+1; j < arr.length; j++) {\n\t\t\t\tif (SortingUtils.less(arr[j], arr[min]))\n\t\t\t\t\tmin = j;\n\t\t\t}\n\t\t\tSortingUtils.exch(arr, i, min);\n\t\t}\n\t}", "title": "" }, { "docid": "003804b5f7ec2406e95baa2ed075cf83", "score": "0.6852671", "text": "static double [] shellSort (double a[]){\n\n int n = a.length;\n\n //Start with a gap of a.length/2, keep reducing by half\n for(int gap = n/2; gap > 0; gap /= 2) {\n\n //Perform insertion sort within the gaps\n for(int i = gap; i < n; i += 1) {\n\n //Store a[i] into tmp\n double tmp = a[i];\n\n //Shift earlier gap-sorted elements up until a[i] position is found\n int j;\n for(j=i; j>=gap && a[j-gap] > tmp; j -= gap) {\n\n a[j] = a[j-gap];\n\n }\n\n //Place tmp in its correct location\n a[j] = tmp;\n }\n }\n return a;\n }", "title": "" }, { "docid": "878fe3ca94d3c5b0bd222e7233e2df7b", "score": "0.6827912", "text": "public static void main(String args[]) {\n Test5_InsertionSorting ob = new Test5_InsertionSorting();\r\n int arr[] = {64, 34, 25, 12, 22, 11, 90};\r\n ob.InsertionSort(arr);\r\n System.out.println(\"The Sorted array is : \");\r\n\r\n for (int i=0; i<arr.length; ++i)\r\n System.out.print(arr[i] + \" \");\r\n }", "title": "" }, { "docid": "23f21a51daf2ca5e80167f5a11865f32", "score": "0.68276244", "text": "public static void sort(Comparable[] a) {\n\t\tint n = a.length;\n\t\t\n\t\t//3x+1 increment sequence: 1, 4, 13, 40, 121, 363, 1093, ...\n\t\tint h = 1;\n\t\twhile(h < n/3) {\n\t\t\th = 3*h + 1;\n\t\t}\n\t\t\n\t\twhile(h >= 1) {\n\t\t\t// h-sort the array\n\t\t\tfor(int i=h; i<n; i++) {\n\t\t\t\tfor(int j=i; j>=h && less(a[j], a[j-h]); j-=h) {\n\t\t\t\t\texch(a, j, j-h);\n\t\t\t\t}\n\t\t\t}\n\t\t\tassert isHsorted(a, h);\n\t\t\th /= 3;\n\t\t}\n\t\tassert isSorted(a);\n\t}", "title": "" }, { "docid": "7538e68e23af2985a8a905679f635ed8", "score": "0.6816123", "text": "public ArrayOfNumbers sort(ArrayOfNumbers array) {\n\t}", "title": "" }, { "docid": "f941cb297752cbd5e203b52bb7b3d4a4", "score": "0.68139756", "text": "public static void insertionSortRecursive(int[] array, int numItems) {\n if (numItems < 2) {\n return;\n }\n\n // Sort one less element in each recursion\n insertionSortRecursive(array, numItems - 1);\n\n int newElement = array[numItems - 1];\n\n int i;\n // Traverse through unsorted partition starting from the first element until the first element's index becomes 0.\n // If insertion position is 0, the element is the smallest element in the sorted partition.\n // We want to keep traversing as long as the element we're trying to insert in the sorted partition is greater than\n // the one we currently have the pointer at (index i). If the element we have is greater than the element in the sorted partition,\n // we've found the correct index for the elemen in the sorted partition.\n // Basically we're traversing down the sorted partition - from the largest to the smallest, and \n for (i = numItems - 1; i > 0 && array[i - 1] > newElement; i--) {\n array[i] = array[i - 1];\n }\n array[i] = newElement;\n\n }", "title": "" }, { "docid": "f106e2f32283909eea8b0959c2775416", "score": "0.680976", "text": "@Override\n void doSort(int[] array) {\n for (int i = 0; i < array.length - 1; i++) {\n // assume i is the min in [i, len-1]\n int min = i;\n // find the min in [i, len-1]\n for (int j = i + 1; j < array.length; j++) {\n min = array[j] < array[min] ? j : min;\n }\n // if min != i: swap i,min\n // then [0, i] is sorted\n if (min != i) swap(array, i, min);\n }\n }", "title": "" }, { "docid": "eaac98a29915cee3cb4ba4279f590097", "score": "0.67783904", "text": "static void insertionSort(int[] arr, int n, int c)\n {\n Instant startTime = Instant.now(); //algorithm starting point\n String sortName = \"Insertion Sort\";\n int temp, j, i;\n for(j = 1; j < n; j++)\n {\n temp = arr[j];\n i = j;\n while(i > 0 && arr[i-1] >= temp)\n {\n arr[i] = arr[i-1];\n i--;\n c++;\n }\n arr[i] = temp;\n }\n\n Instant endTime = Instant.now(); //algorithm end point\n long timeElapsed = Duration.between(startTime, endTime).toMillis(); //in millis\n\n System.out.println(\"-------------------------------------------------------------------------\\n\" +\n sortName + \" | \"+ n + \" | \"+ c + \" | \" + timeElapsed +\" (ms.)\" +\"\\n\" +\n \"-------------------------------------------------------------------------\");\n }", "title": "" }, { "docid": "1fbba734ecb4588130a4c2a643f5963d", "score": "0.67773587", "text": "public static void modifiedInsertionSort(Integer array[], int n)\n\t{\n\t\tint locationToAdd, m, current = 0;\n\t\tfor (int i = 1; i < n; ++i)\n\t\t{\n\t\t\tm = i - 1;\n\t\t\tif(array[i]!=null)\n\t\t\t{\n\t\t\t\tcurrent = array[i];\n\t\t\t\t// find position where new element should be inserted\n\t\t\t\tlocationToAdd = binarySearch(array, current, 0, m);\n\t\t\t\t// Move all elements after location to create space\n\t\t\t\twhile (m >= locationToAdd)\n\t\t\t\t{\n\t\t\t\t\tarray[m+1] = array[m];\n\t\t\t\t\tm--;\n\t\t\t\t}\n\t\t\t\tarray[m+1] = current;\n\t\t\t }\n }\n\t }", "title": "" }, { "docid": "abf378938b640928d0bfd0fe0b042f3a", "score": "0.67738265", "text": "public static void sort(int[] array) {\n for(int i = 0; i < array.length - 1; i++) {\n for(int j = i + 1; j < array.length; j++) {\n if(array[j] < array[i]) {\n int temp = array[i];\n array[i] = array[j];\n array[j] = temp;\n }\n }\n }\n }", "title": "" }, { "docid": "ec2662142dad1dc1c754b2146dfd744d", "score": "0.6760617", "text": "public void insertionSort(ArrayList<String> data, int firstIndex, int numberToSort);", "title": "" }, { "docid": "71d8c5e23d7efac2fab9e851564491a7", "score": "0.67508477", "text": "public void sort(int [] a)\n\t{\n\t\tint n = a.length; \n\t\t//for loop to iterate through each element of the array\n for (int i = 0; i < n-1; i++)\n { \n for (int j = 0; j < n-i-1; j++)\n { \n if (a[j] > a[j+1]) \n { \n // this swaps arr[j+1] and arr[i] \n int temp = a[j]; \n a[j] = a[j+1]; \n a[j+1] = temp; \n } \n }\n }\n \n\n\t}", "title": "" }, { "docid": "bcde04ad62b814b67f0940bed10dbc9a", "score": "0.67450875", "text": "@Override\n public void sortInsert() {\n for (int i = 1; i < size; i++) {\n E temp = data[i];\n int in = i;\n while (in > 0 && data[in - 1].compareTo(temp) >= 0) {\n data[in] = data[in - 1];\n in--;\n }\n data[in] = temp;\n }\n }", "title": "" }, { "docid": "93a214b81295aa05f9ed422543546dc0", "score": "0.67308676", "text": "public void sort(K[] array) {\n\t\tDefaultComparator comp = new DefaultComparator();\n\t\tint n = array.length;\n\t\tint cur;\n\t\tfor (int i=0;i <= (n-2);i++) {\n\t\t\t cur = i;\n\t\t\tfor(int j = (i+1); j<= n-1;j++) {\n\t\t\t\tif(comp.compare(array[j], array[cur]) < 0) {\n\t\t\t\t\tcur = j;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(cur != i) {\n\t\t\t\tswap(array,i,cur);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "53f1b6ceb02f9692dc0cdfad6be01d77", "score": "0.67158026", "text": "public static <T> void insertionSort(T[] list, Comparator<? super T> compartator) {\n\tfor (int p = 1; p < list.length; p++) {\n\t // the initial state the first element, considering by itself, is\n\t // sorted.\n\t T temporary = list[p];\n\t int j = p;\n\t // when the second loop is entered we are guaranteed that the\n\t // elements in array positions 0 through\n\t // p–1 have already been sorted and that we need to extend this to\n\t // positions 0 to p\n\t for (; j > 0 && compartator.compare(temporary, list[j - 1]) < 0; j--)\n\t\tlist[j] = list[j - 1];\n\t list[j] = temporary;\n\t}\n }", "title": "" }, { "docid": "fd8bd6740df967a00d94d1ae2aed9ff1", "score": "0.66858464", "text": "public abstract void sort (int [] arr);", "title": "" }, { "docid": "245bfea9247218bf31ae7c1316b789f5", "score": "0.66810375", "text": "public void insertionSortCity(List<City> arr) {\n\t\tfor(int a = 1; a < arr.size(); a++) {\n\t\t\tCity nextElem = arr.get(a);\n\t\t\tint index = a;\n\t\t\t\n\t\t\twhile (index > 0 && nextElem.compareToCity(arr.get(index-1)) < 0) {\n\t\t\t\tarr.set(index,arr.get(index-1));\n\t\t\t\tindex--;\n\t\t\t}\n\t\t\tarr.set(index, nextElem);\n\t\t}\n\t}", "title": "" }, { "docid": "e8678a85a75ca2bb966589ea09ae6236", "score": "0.66492015", "text": "public void sort(int[] a)\n {\n for (int i = 0; i < a.length; i++){\n for (int j = i; j > 0; j--){\n if (less(a[j-1], a[j])){\n swap(a, j, j-1);\n }\n }\n }\n }", "title": "" }, { "docid": "85823ef7a7e1c4609be7bb2a4913586d", "score": "0.66346365", "text": "public static void insertionSort4(int[] elements)\n {\n for(int j = elements.length - 2; j >= 0; j--)\n {\n int temp = elements[j];\n int possibleIndex = j;\n while(possibleIndex < elements.length - 1 && temp < elements[possibleIndex + 1])\n {\n elements[possibleIndex] = elements[possibleIndex + 1];\n possibleIndex--;\n }\n elements[possibleIndex] = temp;\n }\n }", "title": "" }, { "docid": "396579d6a99ce356dc8b578945e470aa", "score": "0.66333044", "text": "public static void sort(int[] arr) {\n if (null != arr && arr.length > 1) {\n int currentElement, previousIndex;\n\n // Iterate over array starting from second element.\n\n for (int i = 1; i < arr.length; i++) {\n currentElement = arr[i];\n previousIndex = i - 1;\n\n // Insert element into the right place.\n\n while (previousIndex >= 0 && arr[previousIndex] > currentElement) {\n swap(arr, previousIndex, previousIndex+1);\n previousIndex--;\n }\n }\n }\n }", "title": "" }, { "docid": "8da693984b95b27e677200383c3ff90a", "score": "0.66292995", "text": "public void sortArrayInPlace(int[] array) \n\t{\n\t sorted=checkSort(array);\n\t\tint min;\n\t //use a variable called cursor to keep track of what has been sorted\n\t\t// NEEDS TO BE IMPLEMENTED\n\t while((!sorted)&& (cursor<array.length))\n\t\t{\n\t\t //System.out.println(\"in the while loop\");\n\t\t min=findMinimum(cursor,array); //find the index of the smallest value\n\t\t\t//System.out.println\n\t\t swap(min, cursor,array);\n\t\t\tcursor=cursor+1; //uncomment this later\n\t\t\tsorted=checkSort(array);\n\t\t}\n\t}", "title": "" }, { "docid": "7750ff89fd82bb6797227d147a3be4f0", "score": "0.6628847", "text": "private final void tr_insertionsort( final int[] SA, final int depth, final int num_bstar, final int first,\n final int last )\n {\n int a, b;\n int t, r;\n\n for ( a = first + 1; a < last; ++a )\n {\n for ( t = SA[a], b = a - 1; 0 > ( r =\n TR_GETC( SA, depth, num_bstar, t ) - TR_GETC( SA, depth, num_bstar, SA[b] ) ); )\n {\n do\n {\n SA[b + 1] = SA[b];\n }\n while ( ( first <= --b ) && ( SA[b] < 0 ) );\n if ( b < first )\n {\n break;\n }\n }\n if ( r == 0 )\n {\n SA[b] = ~SA[b];\n }\n SA[b + 1] = t;\n }\n }", "title": "" }, { "docid": "f4fe6a3cd94076eda529472953c79c16", "score": "0.66059774", "text": "@Override\n\tpublic int[] sort(int[] arr) {\n\t\tint[] temp = new int[arr.length];\n\t\tmergeSortEngine(arr, 0, arr.length - 1, temp);\n\t\treturn arr;\n\t}", "title": "" }, { "docid": "f910796cb112ed882fde4195a1ce49b7", "score": "0.6602654", "text": "public static void testInsertionSort(String[] names, String format){\n\t\tString[] testArray = Arrays.copyOf(names, names.length);\n\t\t\n\t\tlong start = System.nanoTime();\n\t\tInsertionSort.sort(testArray);\n\t\tlong stop = System.nanoTime();\n\t\t\n\t\tlong diff = stop - start;\n\t\t\n\t\tSystem.out.printf(format, \"Insertion Sort:\", diff, testArray[0], testArray[testArray.length - 1]);\n\n\t\ttestArray = null;\n\t}", "title": "" }, { "docid": "c7c088cadc5acbee770917071861ba2b", "score": "0.6587407", "text": "public void insertionSort(int[] list)\n {\n // Replace these lines with your code\n int position, key; \n \n System.out.println();\n System.out.println(\"Insertion Sort\");\n System.out.println();\n \n steps++; //initialization of outer\n for(int outer = 1; outer < list.length; outer++)\n {\n steps += 5; \n //1 - boundary check of outer loop\n //2 - increment outer++\n //3 - initialization of position \n //4 - initialization of key\n //5 - while loop comparison \n position = outer; \n key = list[position]; \n \n //shift larger values to the right\n while(position > 0 && list[position - 1] > key) \n {\n list[position] = list[position - 1]; \n position--; \n steps += 2; //swap of list[position] & list[position - 1] \n }\n list[position] = key; \n steps++; //initialize list[position] with key\n }\n }", "title": "" }, { "docid": "f7a2aa74696b12b5a0aac2c420da346e", "score": "0.658537", "text": "@Override\n public <T extends Comparable<? super T>> void sort(T[] array) {\n if (array == null) throw new NullPointerException(Sort.class.getSimpleName()\n + \".sort(): Null array argument.\");\n for (T elem: array)\n if (elem == null)\n throw new NullPointerException(\n Sort.class.getSimpleName() +\n \".sort(): Array cannot have null elements\");\n\n for (int j = 1; j < array.length; j++) {\n T key = array[j];\n int i = j - 1;\n while ( (i > -1) && ( array[i].compareTo(key) > 0 ) ) {\n array [i+1] = array [i];\n i--;\n }\n array[i+1] = key;\n }\n }", "title": "" }, { "docid": "ac000c4d69f2f766241338cf2168bb8b", "score": "0.65777755", "text": "public void insertar(){\r\n\t\tint j, aux;\r\n\t\tfor(int i = 1; i < array.length; i++){\r\n\t\t\taux=array[i];\r\n\t\t\tfor(j = i-1; ((j >= 0) && (aux < array[j])); j--){\r\n\t\t\t\tarray[j+1]=array[j];\r\n\t\t\t}\r\n\t\t\tarray[j+1]=aux;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "456144ad75eab4c24e60729141ba8fc6", "score": "0.65753055", "text": "public int[] sort(int[] array){\n int[] a = array;\n int len = a.length;\n int ptr;\n int temp;\n for(int i = 0; i < len - 1; i ++){\n ptr = i;\n for(int j = i + 1; j < len - 1; j ++){\n if (a[j] < a[ptr]){\n ptr = j;\n }\n }\n //swap operation\n temp = a[i];\n a[i] = a[ptr];\n a[ptr] = temp;\n }\n return a;\n }", "title": "" }, { "docid": "6b6ce8f05519d9c7466069be9d5ad624", "score": "0.6574899", "text": "@Override\r\n\tpublic void run() throws Exception {\n\t\tSystem.out.println(\"Sort input array using Insertion Sort\");\r\n\t\t\t\t\r\n\t\tfor (int i = 1; i <= inputArray.length - 1 ; i++)\r\n\t\t{\r\n\t\t\tint j = i;\r\n\t\t\tint cur = inputArray[i];\r\n\t\t\twhile (j > 0 && inputArray[j-1] > cur)\r\n\t\t\t{\r\n\t\t\t\tinputArray[j] = inputArray[j-1];\r\n\t\t\t\tj--;\r\n\t\t\t}\r\n\t\t\tinputArray[j] = cur;\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.printf(\"Sorted input array after ***Insertion Sort*** : %s\", Arrays.toString(inputArray));\r\n\t}", "title": "" }, { "docid": "3afbbaa72fee3ecc108730cd80400765", "score": "0.6563411", "text": "public static void sort(int[] arr) {\n\t\tfor(int i = 0 ; i < arr.length-1 ; ++i)\n\t\t\tfor(int j = arr.length-1 ; j > i ; --j)\n\t\t\t\tif(arr[j] < arr[j-1]) {\n\t\t\t\t\tint temp = arr[j-1];\n\t\t\t\t\tarr[j-1] = arr[j];\n\t\t\t\t\tarr[j] = temp;\n\t\t\t\t}\n\t}", "title": "" }, { "docid": "358a67ddbc06901e5adc7f97eaa7dd6e", "score": "0.6562274", "text": "@Override\n public void sort(int[] input) {\n for (int firstUnsortedIndex = 1; firstUnsortedIndex < input.length; firstUnsortedIndex++){\n int temp = input[firstUnsortedIndex];\n\n int i;\n\n for (i = firstUnsortedIndex; i > 0 && input[i - 1] > temp; i--){\n input[i] = input[i - 1]; // shift from left to right\n }\n\n input[i] = temp;\n }\n }", "title": "" }, { "docid": "c6ab7c59a80066e7f921528ba6012777", "score": "0.6550673", "text": "public static void sort(int arr[])\n\t { \n\t\t int n = arr.length; \n for (int i = 1; i < n; ++i) \n { \n int key = arr[i]; \n int j = i - 1; \n\n while (j >= 0 && arr[j] > key) \n { \n arr[j + 1] = arr[j]; \n j = j - 1; \n } \n arr[j + 1] = key; \n } \n\t }", "title": "" }, { "docid": "e4486432196c711a8f7495981777c7a5", "score": "0.6547393", "text": "abstract void sort(int a[]);", "title": "" } ]
0c8695f6f2be28e46c3beedff6728532
Get configuration value: JaCoCoverage themePrefix.
[ { "docid": "2db83434f7f666a8869a8b3f764cc351", "score": "0.5098171", "text": "public static int getCfgTheme() {\n return pref.getInt(GlobalsOfConfig.PROP_THEME, GlobalsOfConfig.DEF_THEME);\n }", "title": "" } ]
[ { "docid": "12d0f1ed529a13b4f779676712ad4020", "score": "0.59060144", "text": "String getPropertyPrefix();", "title": "" }, { "docid": "6963b64ece89004f8a2ac54de9040fed", "score": "0.57495856", "text": "public String getPrefix() {\n return prefix.getValue();\n }", "title": "" }, { "docid": "61ef4ccff0fe6fcffa36ae2e2d4347b5", "score": "0.5594012", "text": "@javax.annotation.Nullable\n @ApiModelProperty(\n value =\n \"An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER.\")\n public String getPrefix() {\n return prefix;\n }", "title": "" }, { "docid": "3e557133012ef64e5d96b1de26e9712e", "score": "0.5588628", "text": "public String getPrefix() {\n return prefix;\n }", "title": "" }, { "docid": "3e557133012ef64e5d96b1de26e9712e", "score": "0.5588628", "text": "public String getPrefix() {\n return prefix;\n }", "title": "" }, { "docid": "3e557133012ef64e5d96b1de26e9712e", "score": "0.5588628", "text": "public String getPrefix() {\n return prefix;\n }", "title": "" }, { "docid": "3e557133012ef64e5d96b1de26e9712e", "score": "0.5588628", "text": "public String getPrefix() {\n return prefix;\n }", "title": "" }, { "docid": "c1f5c5c99c5ec7f58ad57313ceaacd1a", "score": "0.5565754", "text": "public String getPrefix() {\n\t\treturn prefix;\n\t}", "title": "" }, { "docid": "6b5f57c020eb38bec137731fbf7960e6", "score": "0.55237377", "text": "public String getPrefix() {\n return prefix;\n }", "title": "" }, { "docid": "048993de5d85d8b139275699e1b13956", "score": "0.54980433", "text": "protected String getPropertyPrefix() {\n\t\treturn propertyPrefix;\n\t}", "title": "" }, { "docid": "2f8586d40cf52895398a03a0e2cb3c49", "score": "0.54920506", "text": "public String getPrefix()\n {\n return prefix;\n }", "title": "" }, { "docid": "dd6946d8c9c0a4669d5e7827ffc8832b", "score": "0.5469221", "text": "protected String getPropertyPrefix() {\n return this.getClass().getSimpleName();\n }", "title": "" }, { "docid": "fb6ee95eb9bef7a2b7149af0bacfbfbe", "score": "0.5458036", "text": "public String prefix() {\n return this.prefix;\n }", "title": "" }, { "docid": "b9942983fbebc549700fc6e9eabe8553", "score": "0.5436283", "text": "public String getPrefix() {\n Scheme scheme = getScheme(remoteURI.getScheme());\n switch (scheme) {\n case HTTP:\n case HTTPS:\n Matcher matcher = getMatcher();\n if (!matcher.matches()) {\n throw new IllegalArgumentException(\n \"Unable to determine Gerrit prefix from remote \" + remoteURI);\n }\n\n return matcher.group(1);\n case SSH:\n return \"\";\n default:\n throw new IllegalStateException(\"Unknown scheme \" + scheme);\n }\n }", "title": "" }, { "docid": "e92280caa6831af51725a6fd9d1b4fc0", "score": "0.5379735", "text": "public static String getCfgCustomJacocoJarPath() {\n return pref.get(GlobalsFileMgmt.PROP_CUSTOM_JACOCO_JAR_PATH, GlobalsFileMgmt.DEF_CUSTOM_JACOCO_JAR_PATH);\n }", "title": "" }, { "docid": "7975e64cf0b6bf7459b477d88e67a616", "score": "0.5346027", "text": "String getPrefix();", "title": "" }, { "docid": "7975e64cf0b6bf7459b477d88e67a616", "score": "0.5346027", "text": "String getPrefix();", "title": "" }, { "docid": "7975e64cf0b6bf7459b477d88e67a616", "score": "0.5346027", "text": "String getPrefix();", "title": "" }, { "docid": "7975e64cf0b6bf7459b477d88e67a616", "score": "0.5346027", "text": "String getPrefix();", "title": "" }, { "docid": "1e990b01a0887be393eb90acd340a4bf", "score": "0.5342395", "text": "public Identifier getPrefix() {\n String importPrefix = rootNode.prefix().isPresent()\n ? rootNode.prefix().get().prefix().text()\n : rootNode.moduleName().get(rootNode.moduleName().size() - 1).text();\n return new Identifier(importPrefix);\n }", "title": "" }, { "docid": "d79ccf92ccb72cee797c8713e3f82245", "score": "0.5314902", "text": "public UnicodeString getPrefix() {\n return prefix;\n }", "title": "" }, { "docid": "60e1e0607f8c8f14d20723fc1bd1a86f", "score": "0.53076905", "text": "java.lang.String getKubernetesMetricsPrefix();", "title": "" }, { "docid": "06f9f791a4071a7dd792dda5a70db7bf", "score": "0.52727985", "text": "public String getPrefix() {\n return siteID+DELIM+deploymentID;\n }", "title": "" }, { "docid": "0da31b53e6dcdb567b5cd6865bac4d8f", "score": "0.52267176", "text": "public String getPrefix ()\n\t { return prefix;\n\t }", "title": "" }, { "docid": "2a91b76df37e771bb38bf40b828ab6a4", "score": "0.52258205", "text": "public static String getTheme() {\n return theme;\n }", "title": "" }, { "docid": "d00e5c86fd779051a924b6d5dc2d17b8", "score": "0.51833296", "text": "public Path getPrefix()\n {\n return prefix;\n }", "title": "" }, { "docid": "fc7e26c96fb121101d4f06be0fadfa28", "score": "0.5179929", "text": "public Integer getPrefix() {\n return prefix;\n }", "title": "" }, { "docid": "25f9649297ec9a9cc9d0c2c7a116a7fa", "score": "0.51762646", "text": "private String getHighlighterFlag() {\n\t\tString highlighterFlag;\n\n\t\tif (appConfig.getProperty(Constants.HIGHLIGHT_FLAG)\n\t\t\t\t.equalsIgnoreCase(Constants.HIGHLIGHTERFLAG_VALUE_FROM_JENKINS)) {\n\t\t\thighlighterFlag = System.getProperty(\"HighlighterFlag\");\n\t\t} else\n\t\t\thighlighterFlag = appConfig.getProperty(Constants.HIGHLIGHT_FLAG);\n\t\treturn highlighterFlag;\n\t}", "title": "" }, { "docid": "f064466b8160c58e189b1104aea16d99", "score": "0.5167022", "text": "public String getPrefix();", "title": "" }, { "docid": "6f0202debff9c356a691db6d87a08663", "score": "0.51243967", "text": "public String getTitlePrefixValue()\n\t{\n\t\treturn (titlePrefix == null) ? null : titlePrefix.value;\n\t}", "title": "" }, { "docid": "5dbd0f963c7c998f3770c73969c0c421", "score": "0.51193213", "text": "public String getServicePrefix() {\n return myServicePrefix;\n }", "title": "" }, { "docid": "4c99296c8eaaef981246a1409302d424", "score": "0.51043886", "text": "public static String getURLPrefix()\r\n\t{\r\n\t\treturn URL_PREFIX;\r\n\t}", "title": "" }, { "docid": "f4a82179da84ccf89d4c19177898eab9", "score": "0.50990593", "text": "@Override\n public String getPropertyPrefix() {\n return PROPERTY_PREFIX;\n }", "title": "" }, { "docid": "688746d0db8758ab0119b05e0cedf808", "score": "0.50676507", "text": "public String getXmlPrefix() {\r\n return xmlPrefix;\r\n }", "title": "" }, { "docid": "88ded5c95536c2af8a778518220989b5", "score": "0.503343", "text": "public String getFilePrefix() {\n return this.filePrefix;\n }", "title": "" }, { "docid": "47fc8d7f4e88a23ad6b36a10dc902441", "score": "0.5029949", "text": "public String getPrefix()\n {\n String pre=\"\";\n if(_color!=1 || _backColor!=0)\n {\n String c1=\"\";\n if(_color!=1)\n {\n c1=c1+_color;\n if(_color<10) c1=\"0\"+c1;\n }\n String c2=\"\";\n if(_backColor!=0)\n {\n c2=\"\"+_backColor;\n if(_backColor<10) c2=\"0\"+c2;\n c2=\",\"+c2;\n }\n if(c2.length()>0 && c1.length()==0) c1=\"1\";\n pre=pre+(char)3+c1+c2;\n }\n if(_bold) pre+=(char)2;\n if(_underline) pre+=(char)31;\n return pre;\n }", "title": "" }, { "docid": "b4d64e19e974c6efd6d1adfba1300e24", "score": "0.5014643", "text": "public com.google.protobuf.ByteString getPrefix() {\n return prefix_;\n }", "title": "" }, { "docid": "b4d64e19e974c6efd6d1adfba1300e24", "score": "0.5014643", "text": "public com.google.protobuf.ByteString getPrefix() {\n return prefix_;\n }", "title": "" }, { "docid": "99e01586034f0c9b8bda2ccb19ca5d15", "score": "0.49807438", "text": "public com.google.protobuf.ByteString getPrefix() {\n return prefix_;\n }", "title": "" }, { "docid": "99e01586034f0c9b8bda2ccb19ca5d15", "score": "0.49807438", "text": "public com.google.protobuf.ByteString getPrefix() {\n return prefix_;\n }", "title": "" }, { "docid": "6c20d023a12ff9fd03177d562cab3366", "score": "0.4976389", "text": "public abstract String getPrefix();", "title": "" }, { "docid": "683683fc021b88ae6d73a17b9fc2f4a0", "score": "0.49404806", "text": "public String getUrlPrefix();", "title": "" }, { "docid": "341fa7961a978fa8fd9a2fd1a4f114c4", "score": "0.4937183", "text": "public String getConfigurationLocator();", "title": "" }, { "docid": "f535565241775f5ef74e4431df276b06", "score": "0.49369192", "text": "public String addressPrefix() {\n return this.addressPrefix;\n }", "title": "" }, { "docid": "f535565241775f5ef74e4431df276b06", "score": "0.4935741", "text": "public String addressPrefix() {\n return this.addressPrefix;\n }", "title": "" }, { "docid": "7ac6d36d09f7c902e0a4027a56f853fb", "score": "0.49005958", "text": "@Nonnull @NotEmpty protected String getLogPrefix() {\n // local cache of cached entry to allow unsynchronized clearing of per class cache.\n String prefix = logPrefix;\n if (null == prefix) {\n if (getId() != null) {\n final StringBuilder builder = new StringBuilder(\"Service '\").append(getId()).append(\"':\");\n prefix = builder.toString();\n if (null == logPrefix) {\n logPrefix = prefix;\n }\n } else {\n prefix = \"Service:\";\n }\n }\n return prefix;\n }", "title": "" }, { "docid": "5fed7a239beff054f605569a48147978", "score": "0.48927578", "text": "protected abstract String getPrefix();", "title": "" }, { "docid": "57d680adc2be16ca3612d8f06ebf5150", "score": "0.4889756", "text": "public String getSkin() {\r\n return skin;\r\n }", "title": "" }, { "docid": "d2251469043db1ecbe83494829afc160", "score": "0.48761323", "text": "public int getRollOverColorTheme() {\r\n\t\treturn rollOverColorTheme;\r\n\t}", "title": "" }, { "docid": "69cfd44e8a1731b9c962937bb28a7865", "score": "0.48548487", "text": "int getPrefix();", "title": "" }, { "docid": "22d76e4b1cb44b99a51ae7464d6875ee", "score": "0.48491588", "text": "public String getStringMapPrefix() {\n return stringMapPrefix;\n }", "title": "" }, { "docid": "53ae3068fd93c165e5a0b3cadefb9666", "score": "0.48279697", "text": "com.google.protobuf.ByteString getPrefix();", "title": "" }, { "docid": "53ae3068fd93c165e5a0b3cadefb9666", "score": "0.48279697", "text": "com.google.protobuf.ByteString getPrefix();", "title": "" }, { "docid": "711c8d53c0ee3492bc3e712db80dd199", "score": "0.4827468", "text": "public String getLogPrefix() {\n\t\tif (popInfo == null){\n\t\t\treturn this.getClass().getName() + \".Intilizing:\";\n\t\t} else {\n\t\t\treturn this.getClass().getName() + \".\"\n\t\t\t\t\t+ popInfo.getClass().getName() + \":\";\n\t\t}\n\t}", "title": "" }, { "docid": "cce704dbc896cf57610049a7730499f0", "score": "0.4824317", "text": "String getNamespacePrefix();", "title": "" }, { "docid": "38f6263b82a52a89994ecd41002ea40b", "score": "0.48206368", "text": "public String getToolSkinCSS(String skinRepo);", "title": "" }, { "docid": "b4a608fee211f2d6e7f82476f2558a5d", "score": "0.48165524", "text": "public String getPackageNamePrefix()\r\n {\r\n return _sPackageNamePrefix;\r\n }", "title": "" }, { "docid": "2a33b23ddaf729477905994257f236ab", "score": "0.47909358", "text": "public String getPrefix(String namespaceURI) {\n\t\t\treturn uri2Prefix.get(namespaceURI);\n\t\t}", "title": "" }, { "docid": "cf057c50155fcaebf8f65a02948538cb", "score": "0.47817397", "text": "public final String getCommentPrefix() {\n return _commentPrefix;\n }", "title": "" }, { "docid": "93d868af0b14b60879bfad2e17497a30", "score": "0.47631127", "text": "default String getConfigResourceName() {\n return \"config.json\";\n }", "title": "" }, { "docid": "3aede46d0f5c12e9e4fdc5409c32c118", "score": "0.47484192", "text": "public String getHistogramPrefix() {\n return histogramPrefix;\n }", "title": "" }, { "docid": "c597a2717cfe76d5381dfcd2baf6276f", "score": "0.47234535", "text": "public String getConfiguratorClassName();", "title": "" }, { "docid": "4170e4c7e2b11b0150212905494cb56f", "score": "0.46966058", "text": "public String getConfig()\r\n/* 33: */ {\r\n/* 34:49 */ return CONFIG;\r\n/* 35: */ }", "title": "" }, { "docid": "085215f55587a9d24470e91aed0d8753", "score": "0.4695009", "text": "public String getPrefix(String namespaceURI) {\n\t\t\treturn sourceDocument.lookupPrefix(namespaceURI);\n\t\t}", "title": "" }, { "docid": "c7b10500bf8b46bbd51752c8cc90a334", "score": "0.46826258", "text": "public String getThemeColor() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "8481cc6470cebb2d9da21b64fe219224", "score": "0.46508473", "text": "public String getConfigurationFileName(){\n \treturn CONFIGURATION_FILE_NAME;\n }", "title": "" }, { "docid": "83e7814b2ef560fb9820cd825f56eb51", "score": "0.46487197", "text": "private String getUniquePrefix(String preferredPrefix) {\n String basePrefix = (preferredPrefix == null) ? \"ns\" : preferredPrefix;\n String testPrefix = basePrefix;\n int prefixCounter = 2;\n\n while (namespacePrefixes.containsValue( testPrefix )) {\n testPrefix = basePrefix + prefixCounter;\n prefixCounter++;\n }\n return testPrefix;\n }", "title": "" }, { "docid": "91c78f9a54146c71807e5a50ed0fd4fb", "score": "0.46223724", "text": "public ImmutableList<String> getPackagePrefix() {\n\t\treturn packagePrefix;\n\t}", "title": "" }, { "docid": "9d6d7aefca532b32aa3f54f6cd554715", "score": "0.4619466", "text": "public String configName() {\n return name().toLowerCase(Locale.US).replace(\"_\", \"-\");\n }", "title": "" }, { "docid": "e726a29fc73d63dba1f9c6ce96eb72ea", "score": "0.46126777", "text": "public String getDefaultConfigurationLocator();", "title": "" }, { "docid": "cf9e2ff42b6733156ab694b8b6de7724", "score": "0.4604117", "text": "public String getGlobalPhonePrefix();", "title": "" }, { "docid": "8d5902348dc2d9f8b2c30f99681686f3", "score": "0.45941493", "text": "public String getKeyPrefix() {\n\t\treturn keyPrefix;\n\t}", "title": "" }, { "docid": "8d5902348dc2d9f8b2c30f99681686f3", "score": "0.45941493", "text": "public String getKeyPrefix() {\n\t\treturn keyPrefix;\n\t}", "title": "" }, { "docid": "908071ff2aeb6e6d837bb48c8e83604d", "score": "0.45910648", "text": "public String getKeyPrefix() {\n return keyPrefix;\n }", "title": "" }, { "docid": "485a6ee2014d69cd4ad52e8b674589ee", "score": "0.4586523", "text": "public com.google.protobuf.StringValue getPricePrefix() {\n if (pricePrefixBuilder_ == null) {\n return pricePrefix_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : pricePrefix_;\n } else {\n return pricePrefixBuilder_.getMessage();\n }\n }", "title": "" }, { "docid": "e498a3689d648b4d9cfeeda212ad8ea6", "score": "0.4582275", "text": "public String getThreadPrefix() {\n\n return PREFIX_DEFAULT;\n }", "title": "" }, { "docid": "725a3fd72c929fb438f354cd05a1b683", "score": "0.45764118", "text": "@Override\n public String getPrefix(String namespaceURI) {\n return null;\n }", "title": "" }, { "docid": "4c76679d4d09e275125109822eccae27", "score": "0.4558748", "text": "public static String rsTempPrefix(Configuration conf) {\n return conf.get(RAIDRS_TMP_LOCATION_KEY, DEFAULT_RAIDRS_TMP_LOCATION);\n }", "title": "" }, { "docid": "279d37b176d32bd65c3d042773eed2d7", "score": "0.45580024", "text": "public String hostnamePrefix() {\n return this.hostnamePrefix;\n }", "title": "" }, { "docid": "a78da7d3b42b2c8c401894de60eda17f", "score": "0.45472676", "text": "public Label getLblTheme() {\r\n\t\tif (lblTheme == null)\r\n\t\t{\r\n\t\t\tlblTheme = new Label(\"Theme : \");\r\n\t\t\tlblTheme.setTextFill(Color.web(\"blue\"));\r\n\t\t}\r\n\t\treturn lblTheme;\r\n\t}", "title": "" }, { "docid": "b787f2700f218157784e93658ba3679a", "score": "0.45469156", "text": "@Override\n public String getPrefix(String uri) {\n return namespaceContext.getPrefix(uri);\n\n }", "title": "" }, { "docid": "f50596196ec5296c782f606903c89295", "score": "0.45447347", "text": "public static Optional<String> getCommonProjectPrefix(\n List<String> commandArgs, BuckConfig buckConfig) {\n ImmutableSet<String> buildTargets = getBuildTargets(commandArgs, buckConfig);\n\n return getCommonProjectPrefix(buildTargets);\n }", "title": "" }, { "docid": "f8469b168cf9378d0284cc656b7ddcf5", "score": "0.45442432", "text": "@Override\n public String getConfigurationNamespace() {\n return configurationNamespace;\n }", "title": "" }, { "docid": "97c60af2e08b5d58c7a9ce7be2de1d63", "score": "0.45420566", "text": "@Override\n\tprotected File getConfigTemplateFile() {\n\t\treturn getCodegenConfigFile(SCRIPT_DIR + TEST_DIR, currentTestType);\n\t}", "title": "" }, { "docid": "f18ace39240186bd8f4364bff8b6bc6d", "score": "0.45369", "text": "public String getPreset() {\n return preset;\n }", "title": "" }, { "docid": "3313acf8c96d3f5bb2dc9b37a98fb194", "score": "0.4524798", "text": "public static ConfigurationObject getTestNamespace() throws Exception {\r\n ConfigurationFileManager configurationFileManager = new ConfigurationFileManager(CONFIG_FILE);\r\n return configurationFileManager.getConfiguration(\"BaseGenerator\");\r\n }", "title": "" }, { "docid": "fd1adcdddfcb14999e4549e2cfd2a3af", "score": "0.45170596", "text": "public static String getDomainPostmasterEmailId() {\n String postmasterEmailPrefix = getPropertyStringValue(\"PostmasterEmailIdPrefix\");\n //String postmasterEmailPrefix = getSetting(\"POSTMASTER_EMAIL_ID_PREFIX\");\n LOG.info(\"postmasterEmailPrefix \" + postmasterEmailPrefix);\n if (postmasterEmailPrefix != null) {\n return postmasterEmailPrefix;\n }\n //If not found, then use the default value\n return DEFAULT_POSTMASTER_EMAIL_ID_PREFIX;\n }", "title": "" }, { "docid": "a463957c641b5dad880ddf9aa8d0764c", "score": "0.451663", "text": "public Xml setPrefix(String value) {\n\t\tprefix = value;\n\t\treturn this;\n\t}", "title": "" }, { "docid": "e91f5141a8c8b5dd61c819fd17e1f65e", "score": "0.45165527", "text": "@JsonProperty(\"customConfigurationsName\")\n public String getCustomConfigurationsName() {\n return customConfigurationsName;\n }", "title": "" }, { "docid": "538cf2e90123f43c681f8800e180d49e", "score": "0.45143208", "text": "public String getConfigName() {\n return configName;\n }", "title": "" }, { "docid": "1878af945316630fc28a46c5f66d605f", "score": "0.4509451", "text": "public IpPrefix ipPrefix() {\n return ipPrefix;\n }", "title": "" }, { "docid": "3d75ad318bfda27b656a6ce5470f1c7e", "score": "0.4489136", "text": "private Text getFactionPrefix(final Faction playerFaction)\n {\n if(this.chatConfig.getChatPrefixType().equals(\"tag\"))\n {\n if(playerFaction.getTag().toPlain().equals(\"\"))\n return playerFaction.getTag();\n\n Text factionTag = playerFaction.getTag();\n if (!this.chatConfig.canColorTags())\n factionTag = factionTag.toBuilder().color(TextColors.GREEN).build();\n\n return Text.builder()\n .append(this.chatConfig.getFactionStartPrefix(), factionTag, this.chatConfig.getFactionEndPrefix())\n .onHover(TextActions.showText(Text.of(TextColors.BLUE, \"Click to view information about the faction!\")))\n .onClick(TextActions.runCommand(\"/f info \" + playerFaction.getName()))\n .build();\n }\n else if (this.chatConfig.getChatPrefixType().equals(\"name\"))\n {\n return Text.builder()\n .append(this.chatConfig.getFactionStartPrefix(), Text.of(TextColors.GREEN, playerFaction.getName(), TextColors.RESET), this.chatConfig.getFactionEndPrefix())\n .onHover(TextActions.showText(Text.of(TextColors.BLUE, \"Click to view information about the faction!\")))\n .onClick(TextActions.runCommand(\"/f info \" + playerFaction.getName()))\n .build();\n }\n else\n {\n return null;\n }\n }", "title": "" }, { "docid": "e13552bba8b6071a71aaa843f6f0a733", "score": "0.44878095", "text": "public int getSelectedColorTheme() {\r\n\t\treturn selectedColorTheme;\r\n\t}", "title": "" }, { "docid": "9b42f497ca6e90276fa5ebede7d3c0b6", "score": "0.44836497", "text": "public String getConfigFileName() {\n return this.CONFIGFILE.getName();\n }", "title": "" }, { "docid": "094952174bff0b0f8375d8c853d45c21", "score": "0.44756308", "text": "public String getPrefix() {\n\t\tif (Strings.isNullOrEmpty(prefix)) {\n\t\t\tString p = Utils.makePrefix(getModelInstanceNamespace());\n\t\t\tif (Strings.isNullOrEmpty(p)) {\n\t\t\t\tp = Utils.makeIdentifier(getName().toLowerCase());\n\t\t\t\tif (Utils.IDENT.equalsIgnoreCase(p) )\n\t\t\t\t\treturn \"\";\n\t\t\t\treturn p;\n\t\t\t} \n\t\t\treturn \"\";\n\t\t}\n\t\tString p2 = Utils.makeIdentifier(prefix);\n\t\tif (Utils.IDENT.equalsIgnoreCase(p2))\n\t\t\treturn \"\";\n\t\treturn p2;\n\t}", "title": "" }, { "docid": "663340f316b052f0bdc316ac020c0fc1", "score": "0.44666734", "text": "public String getGlobalConfigName() {\n return Util.fixEmptyAndTrim(globalConfigName);\n }", "title": "" }, { "docid": "70e45cc7b27b6e3fa0180255bebff884", "score": "0.44656262", "text": "public String getPrefix() {\n \treturn Network.getOperatorPrefixfromNumber(this.getNumber());\n }", "title": "" }, { "docid": "46c8eca2656e202c7d393de169968b6b", "score": "0.44643822", "text": "public ObjectProperty<EditorPlatform.GluonTheme> gluonThemeProperty() {\n return gluonThemeProperty;\n }", "title": "" }, { "docid": "13e3f1ce8cbc3ecfb8a572ae27fcd382", "score": "0.44584882", "text": "@UiThread\n public static int getTheme(Context context) {\n int id = getId(context, STRING, \"app_theme\");\n if (id == 0) return 0;\n\n String fieldName = getResources(context).getString(id);\n return context.getResources().getIdentifier(fieldName, STYLE, context.getPackageName());\n }", "title": "" }, { "docid": "34090cef3b539fe9d2470b3dd7d5289c", "score": "0.44524306", "text": "public static String getGlobalTestConfig() { \n // First Check System Property\n String config = System.getProperty(ATG_DUST_TESTCONFIG);\n // If NULL check environment variable\n if (config == null)\n config = System.getenv(ATG_DUST_TESTCONFIG_ENV);\n // If that's null, there is no global test config specified\n return config;\n }", "title": "" } ]
417e25e388b2c78f33800ba9481548c5
Thread discoveryThread = new Thread(DiscoveryThread.getInstance()); discoveryThread.start();
[ { "docid": "6630e260de6c72eaf50f3d9f734d6cb8", "score": "0.0", "text": "public static void run(String uri) {\n try {\n ServerSocket serverSocket = new ServerSocket(5000);\n\n while (true) {\n System.out.println(\"Fingerprint server is running\");\n Socket socket = serverSocket.accept();\n ObjectOutputStream oos = new ObjectOutputStream(socket.getOutputStream());\n ObjectInputStream ois = new ObjectInputStream(socket.getInputStream());\n\n try {\n String utf = ois.readUTF();\n System.out.println(utf);\n String[] request = utf.split(\"/\");\n Service service = Service.valueOf(request[0]);\n String place = request[1];\n int floor = Integer.parseInt(request[2]);\n\n String databaseName = place + \"_rssi\";\n MongoDatabase database = MongoDBHelper.connectMongoDB(uri, databaseName);\n\n if (service == Service.LOCATE) {\n String observedRSSValues = request[3];\n ArrayList<Float> observedRSSList = Convert.toList(observedRSSValues);\n\n MongoCollection apCollection = MongoDBHelper.fetchCollection(database, place + \"_\" + floor + \"_ap\");\n MongoCollection rpCollection = MongoDBHelper.fetchCollection(database, place + \"_\" + floor + \"_rp\");\n\n ArrayList<ReferencePoint> referencePoints = MongoDBHelper.populateFingerprintDataSet(apCollection, rpCollection);\n Location location = Localization.KNN_WKNN_Algorithm(referencePoints, observedRSSList, 4, true);\n String json = new Gson().toJson(location);\n oos.writeObject(json);\n oos.flush();\n System.out.println(\"Location sent\");\n }\n\n else if (service == Service.LOAD_MAP) {\n MongoCollection mapCollection = MongoDBHelper.fetchCollection(database, place + \"_map_layout\");\n FloorLayout floorLayout = MongoDBHelper.generateMapLayout(mapCollection, floor);\n String json = new Gson().toJson(floorLayout);\n oos.writeObject(json);\n oos.flush();\n }\n\n else if (service == Service.NAVIGATE) {\n String[] coordinates = request[3].split(\"_\");\n int startx = Integer.parseInt(coordinates[0]);\n int starty = Integer.parseInt(coordinates[1]);\n int startFloor = Integer.parseInt(coordinates[2]);\n int endx = Integer.parseInt(coordinates[3]);\n int endy = Integer.parseInt(coordinates[4]);\n int endFloor = Integer.parseInt(coordinates[5]);\n\n String collectionName = place + \"_map_layout\";\n MongoCollection layoutCollection = MongoDBHelper.fetchCollection(database, collectionName);\n FloorLayout floorLayout = MongoDBHelper.generateMapLayout(layoutCollection, floor);\n\n if (startFloor != endFloor) {\n endx = floorLayout.getExitx();\n endy = floorLayout.getExity();\n }\n\n Navigation navigation = new Navigation(startx, starty, endx, endy, floor, place);\n Path path = new Path(navigation.run(floorLayout));\n String json = new Gson().toJson(path);\n oos.writeObject(json);\n oos.flush();\n }\n\n else if (service == Service.DETECT_FLOOR) {\n float airPressure = Float.parseFloat(request[3]);\n String collectionName = place + \"_building_info\";\n MongoCollection floorCollection = MongoDBHelper.fetchCollection(database, collectionName);\n BuildingInfo buildingInfo = MongoDBHelper.detectFloor(floorCollection, airPressure);\n FloorDetection floorDetection = new FloorDetection(buildingInfo, airPressure);\n int detectedFloor = floorDetection.detectFloor();\n oos.writeObject(detectedFloor);\n oos.flush();\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n } catch (IOException ioe) {\n ioe.printStackTrace();\n }\n }", "title": "" } ]
[ { "docid": "f7770df3b09d83ef1139c5110dfac542", "score": "0.6737587", "text": "private void doDiscovery() {\n try {\n\t\t\t_deviceProvider.beginDiscovery(this, this);\n\t\t} catch (Exception e) {\n\t\t\tUIHelper.ShowAlertDialog(this, \"Unable to start discovery\", \"Unable to start discovery: \" + e.getMessage());\n\t\t\tAppLog.error(\"Unable to start discovery\", e);\n\t\t}\n }", "title": "" }, { "docid": "355aaaab6af2482a600f9ad20fea3c42", "score": "0.66729575", "text": "private Movimentation() {\n\tthread = new Thread(Start.tgrpSonic, this, \"Movimentation Thread\");\n }", "title": "" }, { "docid": "9ec8c354c4d3b8e94cfcb840aa5c50bc", "score": "0.6640021", "text": "private synchronized void initDiscoveryService()\n {\n if (mArdiscoveryServiceConnection == null)\n {\n mArdiscoveryServiceConnection = new ServiceConnection()\n {\n @Override\n public void onServiceConnected(ComponentName name, IBinder service)\n {\n mArdiscoveryService = ((ARDiscoveryService.LocalBinder) service).getService();\n\n startDiscovery();\n }\n\n @Override\n public void onServiceDisconnected(ComponentName name)\n {\n mArdiscoveryService = null;\n }\n };\n }\n\n if (mArdiscoveryService == null)\n {\n // if the discovery service doesn't exists, bind to it\n Intent i = new Intent(getApplicationContext(), ARDiscoveryService.class);\n getApplicationContext().bindService(i, mArdiscoveryServiceConnection, Context.BIND_AUTO_CREATE);\n }\n else\n {\n // if the discovery service already exists, start discovery\n startDiscovery();\n }\n }", "title": "" }, { "docid": "74ffc60511fb7a0fa6001a3bcc6143cd", "score": "0.6497196", "text": "private void startInfoServiceListUpdateThread()\n\t{\n\t\tsynchronized (this)\n\t\t{\n\t\t\tif (m_updateInfoServiceListThread == null)\n\t\t\t{\n\t\t\t\tLogHolder.log(LogLevel.INFO, LogType.MISC, \"JAPRoutingRegistrationInfoServices: startInfoServiceListUpdateThread: The infoservice registration management thread is started.\");\n\t\t\t\tm_updateInfoServiceListThread = new Thread(this);\n\t\t\t\tm_updateInfoServiceListThread.setDaemon(true);\n\t\t\t\tm_updateInfoServiceListThread.start();\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tLogHolder.log(LogLevel.INFO, LogType.MISC, \"JAPRoutingRegistrationInfoServices: startInfoServiceListUpdateThread: The infoservice registration management thread was already started.\");\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "ca58c47c8701bf743229bd39f4ba91aa", "score": "0.64531", "text": "private void startIsTargetOnlineThread() {\n\t\tIsOnlineThread isOnlineThread = new IsOnlineThread(this);\n\t\tisOnlineThread.setDaemon(true);\n\t\tisOnlineThread.start();\n\t}", "title": "" }, { "docid": "902a0bd2f1a234b2e69f655d42faeb4c", "score": "0.642496", "text": "private EngineThread() {\r\n\t}", "title": "" }, { "docid": "0754f75255f89a43b292fe3097430a03", "score": "0.6404924", "text": "private void startPollThread() {\n \tworkerThread = new Thread(new Poller(), \"GreeterService poller\");\n \tworkerThread.setDaemon(true);\n \tworkerThread.start();\n }", "title": "" }, { "docid": "162373abc0aa1d31f7f69a0b01f6eb4f", "score": "0.6393747", "text": "public void start() {\n\t\tLog.info(String.format(\"Starting Discovery announcements on: %s for: %s -> %s\", addr, domainName,serviceURI));\n\t\t//<nome-do-domínio>:<serviço><tab><uri-do-servidor>\n\t\tbyte[] announceBytes = String.format(\"%s:%s%s%s\",domainName,serviceName,DELIMITER,serviceURI).getBytes();\n\t\tDatagramPacket announcePkt = new DatagramPacket(announceBytes, announceBytes.length, addr);\n\t\t\n\t\t//int [] times = {DISCOVERY_PERIOD*2,DISCOVERY_PERIOD*3,DISCOVERY_PERIOD*4};\n\t\t//Random rd = new Random();\n\t\t//times[rd.nextInt(times.length)]\n\t\ttry {\n\t\t\tMulticastSocket ms = new MulticastSocket( addr.getPort());\n\t\t\tms.joinGroup(addr, NetworkInterface.getByInetAddress(InetAddress.getLocalHost()));\n\t\t\t// start thread to send periodic announcements\n\t\t\tnew Thread(() -> {\n\t\t\t\tfor (;;) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tms.send(announcePkt);\n\t\t\t\t\t\tThread.sleep(DISCOVERY_PERIOD);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t// do nothing\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}).start();\n\t\t\t\n\t\t\t// start thread to collect announcements\n\t\t\t\n\t\t\tnew Thread(() -> {\n\t\t\t\tWrapper wp;\n\t\t\t\tDatagramPacket pkt = new DatagramPacket(new byte[1024], 1024);\n\t\t\t\tfor (;;) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tpkt.setLength(1024);\n\t\t\t\t\t\tms.receive(pkt);\n\t\t\t\t\t\t\n\t\t\t\t\t\tString msg = new String( pkt.getData(), 0, pkt.getLength());\n\t\t\t\t\t\tString[] msgElems = msg.split(DELIMITER);\n\t\t\t\t\t\tif( msgElems.length == 2) {\t//periodic announcement\n\t\t\t\t\t\t\tsynchronized (services) {\n\t\t\t\t\t\t\t\tif(!(serviceId.equals(msgElems[ZERO]))) {\n\t\t\t\t\t\t\t\t\twp = services.get(msgElems[ZERO]);\n\t\t\t\t\t\t\t\t\tif(wp==null) {\n\t\t\t\t\t\t\t\t\t\twp = new Wrapper(msgElems[ONE]);\n\t\t\t\t\t\t\t\t\t\tservices.put(msgElems[ZERO],wp);\n\t\t\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\t\t\twp.addUriString(msgElems[ONE]);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t//removeLastKnownService();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t// do nothing\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}).start();\n\t\t\t\n\t\t\t/*periodically removes the uris from terminated servers*/\n\t\t\t\n\t\t\tnew Thread(() -> {\n\t\t\t\tfor (;;) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(DISCOVERY_TIMEOUT);\n\t\t\t\t\t\tremoveLastKnownService();\n\t\t\t\t\t} catch (Exception e) {}\n\t\t\t\t}\n\t\t\t}).start();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "d3561f8be36e2043e63e7944fb8cd39c", "score": "0.6371379", "text": "private void startDiscovery(){\n if (mBluetoothAdapter!=null){\n if(!mBluetoothAdapter.isEnabled()){\n setBluetoothAdapterEnable();\n }\n else\n mBluetoothAdapter.startDiscovery();\n }\n }", "title": "" }, { "docid": "58e085d75ffd3cc0a1d2239affa9e9cd", "score": "0.63709277", "text": "public void startListening(){\n\n\t\tworker = new Thread(this);\n\t\tworker.start();\n\t}", "title": "" }, { "docid": "ba5a1559beba16bc17fe20124f922a38", "score": "0.6281314", "text": "public void initializeDiscoveryListener() {\n mDiscoveryListener = new NsdManager.DiscoveryListener() {\n\n // Called as soon as service discovery begins.\n @Override\n public void onDiscoveryStarted(String regType) {\n Log.d(TAG, \"Service discovery started\");\n }\n\n @Override\n public void onServiceFound(NsdServiceInfo service) {\n // A service was found! Do something with it.\n Log.d(TAG, \"Service discovery success: \" + service);\n if (!service.getServiceType().equals(SERVICE_TYPE)) {\n // Service type is the string containing the protocol and\n // transport layer for this service.\n Log.d(TAG, \"Unknown Service Type: \" + service.getServiceType());\n } else if (service.getServiceName().equals(mServiceName)) {\n // The name of the service tells the user what they'd be\n // connecting to. It could be \"Bob's Chat App\".\n Log.d(TAG, \"Same machine: \" + mServiceName);\n } else if (service.getServiceName().contains(\"Staring Contest\")){\n Log.d(TAG, \"NSDChat\");\n //mNsdManager.resolveService(service, mResolveListener);\n }\n }\n\n @Override\n public void onServiceLost(NsdServiceInfo service) {\n // When the network service is no longer available.\n // Internal bookkeeping code goes here.\n Log.e(TAG, \"service lost\" + service);\n }\n\n @Override\n public void onDiscoveryStopped(String serviceType) {\n Log.i(TAG, \"Discovery stopped: \" + serviceType);\n }\n\n @Override\n public void onStartDiscoveryFailed(String serviceType, int errorCode) {\n Log.e(TAG, \"Discovery failed: Error code:\" + errorCode);\n mNsdManager.stopServiceDiscovery(this);\n }\n\n @Override\n public void onStopDiscoveryFailed(String serviceType, int errorCode) {\n Log.e(TAG, \"Discovery failed: Error code:\" + errorCode);\n mNsdManager.stopServiceDiscovery(this);\n }\n };\n }", "title": "" }, { "docid": "7930a2d7e883bb04fd00c6fda2c73500", "score": "0.62629616", "text": "public void start(){\n if(thread == null) {\n thread = new Thread(this);\n\n thread.start();\n }\n }", "title": "" }, { "docid": "6af6a5127ace12aef6936c16c8fc7468", "score": "0.6218054", "text": "private static Thread loadCacheSweeper() {\n Thread t = new Thread(new CacheSweeper());\n t.setName(OpenAMAuthHandler.class.getSimpleName() + \"-\" + CacheSweeper.class.getSimpleName());\n t.setDaemon(true);\n t.start();\n return t;\n }", "title": "" }, { "docid": "68d61c30b625581659ef8bb0f513d430", "score": "0.6214691", "text": "public void run() {\n\n p2p.discoverServices(channel, new WifiP2pManager.ActionListener() {\n\n public void onSuccess() {\n addText(\"Started service discovery\");\n myServiceState = ServiceState.DiscoverService;\n\n tStartServiceDiscovery = System.currentTimeMillis();\n // use last disconnection time, to see how long it took to get here\n // if we got errors, and multiple tries for starting discovery, we can see it from this value\n if(tDisconnected != 0) {// first time the disconnection in zero, so lets skip that\n tFromDcToSd = (tStartServiceDiscovery - tDisconnected);\n }else{\n tFromDcToSd = 0;\n }\n }\n\n public void onFailure(int reason) {\n addText(\"Starting service discovery failed, error code \" + reason);\n\n if (reason == WifiP2pManager.NO_SERVICE_REQUESTS\n // If we start getting this error, we either got the race condition\n // or we are client, that just got disconnected when group owner removed the group\n // anyways, sometimes only way, and 'nearly' always working fix is to\n // toggle Wifi off/on, it appears to reset what ever is blocking there.\n || reason == WifiP2pManager.ERROR){\n // this happens randomly with Kitkat-to-Kitkat connections on client side.\n\n if (reason == WifiP2pManager.NO_SERVICE_REQUESTS){\n mySpeech.speak(\"Service Discovery error 3\");\n }else{\n mySpeech.speak(\"Service Discovery generic zero error\");\n }\n\n doReConectWifi = true;\n\n //It appears that with KitKat, this event also sometimes does corrupt\n // our local services advertising, so stopping & restarting (once connected)\n // to make sure we are discoverable still\n stopLocalServices();\n\n WifiManager wifiManager = (WifiManager) that.getSystemService(Context.WIFI_SERVICE);\n wifiManager.setWifiEnabled(false);\n //wait for WIFI_P2P_STATE_CHANGED_ACTION & do the re-connection\n }\n }\n });\n }", "title": "" }, { "docid": "2f6fa73038e65986be743ab7528b510f", "score": "0.6194424", "text": "public void discovery() throws IOException, XMLStreamException {\n String received;\n String[] receivedAr;\n byte buf[] = new byte[1024];\n String nodeMessage;\n int rmiPort;\n String rmiStr;\n AgentInterface rmiPreviousNode;\n\n Thread updateUpThr;\n Thread failureCheckThr;\n Thread shutdownCheckThr;\n DatagramSocket UCreceivingSocket = new DatagramSocket(Constants.UDP_PORT);\n DatagramSocket UCsendingSocket = new DatagramSocket();\n DatagramPacket receivingPack = new DatagramPacket(buf, buf.length);\n\n System.out.println(\"Discovery started\");\n while (discoveryRunning)\n {\n try {\n UCreceivingSocket.receive(receivingPack);\n received = new String(receivingPack.getData(), 0, receivingPack.getLength());\n System.out.println(\"received: \" + received);\n if (receivingPack.getAddress().toString().equals(\"/192.168.0.4\")) //if from server IP\n {\n receivedAr = received.split(\" \");\n amountOfNodes = Integer.parseInt(receivedAr[0]);\n System.out.println(\"AoN: \" + amountOfNodes);\n\n Thread fillFilenameMapThr = new Thread(new Runnable() {\n @Override\n public void run() {\n fillFilenameMap();\n }\n });\n fillFilenameMapThr.start();\n fillFilenameMapThr.join();\n\n if (amountOfNodes == 1)\n {\n nextNodeID = thisNodeID;\n previousNodeID = thisNodeID;\n System.out.println(\"nextNode = \" + nextNodeID + \" , previousNode = \" + previousNodeID);\n }\n else if (amountOfNodes > 1)\n {\n previousNodeID = Integer.parseInt(receivedAr[1]);\n nextNodeID = Integer.parseInt(receivedAr[2]);\n\n if (previousNodeID.equals(nextNodeID))\n {\n\n nodeMessage = \"pn \" + thisNodeID;\n UDPSend(UCsendingSocket, nodeMessage, namingServer.getIP(previousNodeID), Constants.UDP_PORT);\n //Previous node RMI (your client)\n /*try{rmiStr = Integer.toString(thisNodeID);\n rmiPort = 1000 + Math.abs(rmiStr.hashCode()) % 1000;\n rmiPreviousNode = (AgentInterface) UnicastRemoteObject.exportObject(this, 0);\n SvRegistery = LocateRegistry.createRegistry(rmiPort);\n SvRegistery.bind(\"AgentInterface\", rmiPreviousNode);\n System.out.println(rmiPreviousNode);}catch(Exception e){\n System.err.println(\"server exc \"+e.toString());\n e.printStackTrace();\n }*/\n\n\n\n nodeMessage = \"pn \" + thisNodeID;\n UDPSend(UCsendingSocket, nodeMessage, namingServer.getIP(previousNodeID), Constants.UDP_PORT);\n }\n else\n {\n nodeMessage = \"p \" + thisNodeID;\n UDPSend(UCsendingSocket, nodeMessage, namingServer.getIP(previousNodeID), Constants.UDP_PORT);\n\n nodeMessage = \"n \" + thisNodeID;\n UDPSend(UCsendingSocket, nodeMessage, namingServer.getIP(nextNodeID), Constants.UDP_PORT);\n }\n System.out.println(\"nextNode = \" + nextNodeID + \" , previousNode = \" + previousNodeID);\n\n Thread startUpThr = new Thread(new Runnable() {\n @Override\n public void run() {\n try{ fileReplicationStartup(); }catch(Exception e) {}\n }\n });\n startUpThr.start();\n\n\n /*Thread fileAgentHandlerThr = new Thread(new Runnable() {\n @Override\n public void run() {\n try{ fileAgentHandler(); }catch(Exception e) {}\n }\n });\n fileAgentHandlerThr.start();*/\n\n }\n else System.out.println(\"Error: amount of nodes smaller than 0!\");\n }\n else //if from any other IP => node\n {\n receivedAr = received.split(\" \");\n switch (receivedAr[0])\n {\n case \"p\": //its a previous node message\n previousNodeID = Integer.valueOf(receivedAr[1]); //his ID is now your previous nodeID\n System.out.println(\"nextNode = \" + nextNodeID + \" , previousNode = \" + previousNodeID);\n break;\n\n case \"n\": //its a next node message\n nextNodeID = Integer.valueOf(receivedAr[1]); //his ID is now your next nodeID\n System.out.println(\"nextNode = \" + nextNodeID + \" , previousNode = \" + previousNodeID);\n break;\n\n case \"pn\": //next and previous node are the same (amount of nodes = 2)\n nextNodeID = Integer.valueOf(receivedAr[1]); //his ID is now your next nodeID\n previousNodeID = Integer.valueOf(receivedAr[1]);\n System.out.println(\"nextNode = \" + nextNodeID + \" , previousNode = \" + previousNodeID);\n amountOfNodes = amountOfNodes + 1; //doesn't respond with the truth. Only does on NamingServer\n waitForFileRep = true;\n break;\n\n default:\n break;\n }\n }\n\n failureCheckThr = new Thread(new Runnable() {\n @Override\n public void run() {\n try{\n failureCheck(previousNodeID);\n }catch(Exception e){}\n }\n });\n failureCheckThr.start();\n\n shutdownCheckThr = new Thread(new Runnable() {\n @Override\n public void run() {\n try{\n shutdownCheck();\n }catch(Exception e){}\n }\n });\n shutdownCheckThr.start();\n\n } catch (Exception s) {\n // shutdown(namingServer,thisNodeID,nextNodeID,previousNodeID);\n //break;\n }\n }\n }", "title": "" }, { "docid": "e0cd7806386dd44ac94378ac3322a630", "score": "0.61839354", "text": "public void discoveryEnabled();", "title": "" }, { "docid": "f0235749ae39666560b8ac85a7011ac8", "score": "0.61741525", "text": "void start() {\r\n mWorkerIsRunning = true;\r\n Thread thread = new Thread(this);\r\n // thread.setPriority(Thread.MAX_PRIORITY);\r\n thread.start();\r\n Log.d(TAG, \"Started worker thread for client \" + mReplyAddr + \":\" + mReplyPort);\r\n }", "title": "" }, { "docid": "72a7399e50640c98274c9fe799214bda", "score": "0.6173078", "text": "public void startThread() {\n }", "title": "" }, { "docid": "54d0f39e61ba1fa303a3b93a676fd56d", "score": "0.6165718", "text": "public static synchronized LocalMusicScraper getInstance() {\n if (instance == null) {\n instance = new LocalMusicScraper();\n }\n return instance;\n}", "title": "" }, { "docid": "3cad3d59d0701bd6cecd5659ab749580", "score": "0.6142058", "text": "public synchronized void startCollection() {\n itsKeepRunning = true;\n itsThread = new Thread(this, \"ExternalSystem \" + itsName);\n itsThread.setDaemon(true);\n itsThread.start();\n }", "title": "" }, { "docid": "0a5aa8c1c8eec5ed70587c2730df1c57", "score": "0.6139518", "text": "public void start() {\n\t\tif (thread == null) {\n\t\t\tthread = new Thread(this);\n\t\t\tSystem.out.println(\"MQTT_Thread.start()\");\n\t\t\tthread.start();\n\t\t}\n\n\t}", "title": "" }, { "docid": "3f117e88cd1d4506470232c085e5c53d", "score": "0.61325073", "text": "@Override\n public void onDiscoveryStarted(String regType) {\n Log.d(TAG, \"Service discovery started\");\n }", "title": "" }, { "docid": "3f117e88cd1d4506470232c085e5c53d", "score": "0.61325073", "text": "@Override\n public void onDiscoveryStarted(String regType) {\n Log.d(TAG, \"Service discovery started\");\n }", "title": "" }, { "docid": "706c9eca6b55af22d60bf2721b44f488", "score": "0.61257786", "text": "public void fetch_advertisements() {\r\n new Thread(\"JPFS2: Search for Advertisements\") {\r\n public void run() {\r\n \ttry {\r\n\t\t\t\tsleep(2000); // wait a couple seconds before getting advertisements\r\n\t\t\t} catch (InterruptedException e1) { }\r\n \twhile(true) {\r\n \t\ttry{\r\n \t\t\tif(discovery != null)\r\n \t\t\t\tdiscovery.getRemoteAdvertisements(null, DiscoveryService.ADV, \"Name\", \"JPFSPipe\", 1, null);\r\n \t\t\telse\r\n \t\t\t\tJPFSPrinting.logError(\"Error Initializing the Discovery Service for Advertisements\", errorLevel.SEVERE);\r\n \t\r\n \t\t\tsleep(3000);\r\n \r\n \t\t} catch(InterruptedException e) {} \r\n \t\tcatch(IllegalStateException e) {\r\n \tJPFSPrinting.logWarning(\"Discovery thread fetch_advertisements being skipped\");\r\n \t\t}\r\n \t}\r\n }\r\n }.start();\r\n }", "title": "" }, { "docid": "03a3b920db4278e0aaa96a6a73071375", "score": "0.611086", "text": "public void startListening() {\n if (mThread != null) {\n return;\n }\n\n mThread = new Thread() {\n @Override\n public void run() {\n final ReferenceQueue<Object> rq = new ReferenceQueue<>();\n\n //noinspection unused\n PhantomReference<Object> phantom = new PhantomReference<>(new Object(), rq);\n while (!isInterrupted()) {\n\n if (Thread.interrupted()) {\n return;\n }\n\n if (rq.poll() != null) {\n Log.d(\"GC TRACKER\", \"gc was called\");\n //noinspection UnusedAssignment\n phantom = new PhantomReference<>(new Object(), rq);\n }\n\n try {\n Thread.sleep(16);\n } catch (InterruptedException ignored) {\n }\n }\n }\n };\n mThread.setPriority(Thread.MIN_PRIORITY);\n mThread.start();\n }", "title": "" }, { "docid": "b1e8aeb02fcddae1f94a3564a3caa2b4", "score": "0.60887885", "text": "private void doThreadStart() {\n background = new BackgroundThread();\n background.start();\n }", "title": "" }, { "docid": "675ee4cc161fcd9e1c2c53e6d1bfa381", "score": "0.6083398", "text": "public void start(ThreadInfo thread) {\n }", "title": "" }, { "docid": "eb16d74a1333277890b34b716adadedf", "score": "0.6078941", "text": "private void startBackgroundThreads()\n\t{\n\t\t//aggiungere qui thread da avviare in background...\n\t\tcheckConnections.start();\n\t}", "title": "" }, { "docid": "c342851ad31bdb6372839eeb5ed70403", "score": "0.60752076", "text": "@Override\n public void onDiscoveryStarted(String regType) {\n Log.d(PRFX, key + \" Service discovery started\");\n }", "title": "" }, { "docid": "a781f40be82c984d341fc51eb847c64e", "score": "0.6061134", "text": "public void startThread(){\n\t\tnew Thread() { \n\t\t\tpublic void run() {\n\t\t\twhile (true) {\n\t\t\t\ttry {\n\t\t\t\t\tif (server.getConnection()) {\n\t\t\t\t\t\tinitalSetup();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t} catch (InterruptedException e1) {\n\t\t\t\t}\n\t\t\t}\n\t\t\t}\n\t\t}.start();\n\t}", "title": "" }, { "docid": "55ea11c14107c7c5e1da6ba6686b92a9", "score": "0.6058606", "text": "public void run() {\n\t\tCollecter.parseShopThread.start();\r\n\t\tCollecter.collectbuyinfoThread.start();\r\n\t\tCollecter.collectfavThread.start();\r\n\t\tCollecter.collectsaleinfoThread.start();\r\n\t}", "title": "" }, { "docid": "7069671a675693ad286844eda7d0b740", "score": "0.60526305", "text": "@TargetApi(Build.VERSION_CODES.JELLY_BEAN)\n private void discoverService() {\n //create instance of text record listener\n DnsSdTxtRecordListener txtRecList = new DnsSdTxtRecordListener() {\n @Override\n public void onDnsSdTxtRecordAvailable(String fullDomainName\n , Map<String, String> txtRecordMap\n , WifiP2pDevice srcDevice) {\n //send different types of requests\n\n }\n };\n\n\n DnsSdServiceResponseListener servRespListener\n = new DnsSdServiceResponseListener() {\n //if service is available, this method is called\n @Override\n public void onDnsSdServiceAvailable(String instanceName, String registrationType,\n WifiP2pDevice resourceType) {\n\n if (\"DPF\".equals(instanceName)|| \"GO\".equals(instanceName)) {\n //add service to list to display to user\n ServiceObject serviceToAdd = new ServiceObject();\n serviceToAdd.initiator = resourceType;\n serviceToAdd.serviceName = instanceName;\n serviceToAdd.registrationType = registrationType;\n availableServicesAdapter.add(serviceToAdd);\n availableServicesAdapter.notifyDataSetChanged();\n }\n }\n };\n\n //set the listeners to current channel\n mManager.setDnsSdResponseListeners(mChannel, servRespListener, txtRecList);\n //create a new service to request\n serviceRequest = WifiP2pDnsSdServiceRequest.newInstance();\n //add the request to current channel\n mManager.addServiceRequest(mChannel,\n serviceRequest,\n new ActionListener() {\n @Override\n public void onSuccess() {\n }\n @Override\n public void onFailure(int reasonCode) {\n }\n });\n\n mManager.discoverServices(mChannel, new ActionListener() {\n\n @Override\n public void onSuccess() {\n Toast.makeText(MainActivity.this, \"Service discovery initiated\",\n Toast.LENGTH_SHORT).show();\n }\n\n @Override\n public void onFailure(int arg0) {\n Toast.makeText(MainActivity.this, \"Service discovery failed \" + arg0,\n Toast.LENGTH_SHORT).show();\n }\n });\n\n\n }", "title": "" }, { "docid": "1aeb8ddb056e484b30647dbb065a5348", "score": "0.60424256", "text": "public synchronized void start(){\r\n\r\n if(done)\r\n Log.d(Tag, \"start\");\r\n // Terminate threads trying to make connection\r\n if(mConnectThread != null){\r\n mConnectThread.cancel();\r\n mConnectThread = null;\r\n }\r\n // terminate the thread currently running an instance\r\n if(mConnectedThread != null){\r\n mConnectedThread.cancel();\r\n mConnectedThread = null;\r\n }\r\n // start thread to listen to blutooth connections\r\n if(mAcceptThread == null){\r\n mAcceptThread = new AcceptThread();\r\n mAcceptThread.start();\r\n }\r\n setState(STATE_LISTEN);\r\n\r\n }", "title": "" }, { "docid": "4bb5a700a87d685c42640732a4034f09", "score": "0.6026656", "text": "private void discover() {\n mBluetoothAdapter.startDiscovery();\n\n IntentFilter intentFilter = new IntentFilter(BluetoothDevice.ACTION_FOUND);\n\n registerReceiver(discoverReceiver, intentFilter);\n\n List<BluetoothDevice> list = new ArrayList<>(discoverableDevices);\n\n discoverableAdapter = new ArrayAdapterBluetooth(getApplicationContext(),\n R.layout.row_device_discoring, list);\n\n Server server = new Server();\n server.start();\n }", "title": "" }, { "docid": "35b47ac5f9922a9e8e5752ec726906f7", "score": "0.60209316", "text": "public void start ()\n {\n startThread();\n }", "title": "" }, { "docid": "7e88fc8f1e4c1236700070d68f259dc0", "score": "0.60194534", "text": "public void startRemoteCheck() {\r\n\t\tif (MainActivity.mConnectivityStateCheck == null) {\r\n\t\t\tLog.i(TAG, \"Try to start remote checker thread...\");\r\n\t\t\tMainActivity.mConnectivityStateCheck = new ConnectivityStateCheck(mContext);\r\n\t\t\tif (MainActivity.mConnectivityStateCheck.startConnectivityStateThread()) {\r\n\t\t\t\tLog.d(TAG, \"Remote checker thread is running.\");\r\n\t\t\t} else {\r\n\t\t\t\tLog.e(TAG, \"Error: Can't start remote checker thread.\");\r\n\t\t\t}\r\n\r\n\t\t} else {\r\n\t\t\tLog.e(TAG, \"Remote checker thread is still running.\");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "a15b99c64ef2e1b69afef0e38f49be68", "score": "0.5971074", "text": "public void start(){\n\t\tthis.serverThread.start();\n\t}", "title": "" }, { "docid": "a7442ce8da22c7fec0e599d3ecbb863d", "score": "0.5966766", "text": "public void run() {\n primaryThread = new Thread(primary);\n primaryThread.start();\n }", "title": "" }, { "docid": "ccb4ac4faefcb7eab89c3d9cf4d45082", "score": "0.5966359", "text": "private void initializeMonitor() {\n\t\tList<ServiceRegistry> serviceRegistries = serviceRegistry.getAll();\n\t\t\t\t\t\t\n\t\t// Create thread for each service vs subscriber\n\t\tfor (ServiceRegistry sr : serviceRegistries) {\n\t\t\texecuteTask(sr);\n\t\t}\t\t\n\t}", "title": "" }, { "docid": "4b318a5768e23abe7e3922fb23261ae9", "score": "0.5965576", "text": "private void startServiceDiscovery() {\n stopDiscovery();\n tAddServiceRequest = System.currentTimeMillis();\n\n //WifiP2pDnsSdServiceInfo service = WifiP2pDnsSdServiceInfo.newInstance( SERVICE_PORT_INSTANCE, SERVICE_TYPE, record);\n\n WifiP2pDnsSdServiceRequest request = WifiP2pDnsSdServiceRequest.newInstance(SERVICE_TYPE);\n final Handler handler = new Handler();\n p2p.addServiceRequest(channel, request, new WifiP2pManager.ActionListener() {\n\n public void onSuccess() {\n addText(\"Added service request\");\n // Calling discoverServices() after disconnection from Group\n // causes NO_SERVICE_REQUESTS error with pre-lollipop devices (Tested with Kitkat 4.4.4)\n // only way found so far is to disconnect wifi, and re-connect it again\n // http://stackoverflow.com/questions/21816730/wifidirect-discoverservices-keeps-failing-with-error-3-no-service-requests\n\n handler.postDelayed(new Runnable() {\n //There are supposedly a possible race-condition bug with the service discovery\n // thus to avoid it, we are delaying the service discovery start here\n public void run() {\n\n p2p.discoverServices(channel, new WifiP2pManager.ActionListener() {\n\n public void onSuccess() {\n addText(\"Started service discovery\");\n myServiceState = ServiceState.DiscoverService;\n\n tStartServiceDiscovery = System.currentTimeMillis();\n // use last disconnection time, to see how long it took to get here\n // if we got errors, and multiple tries for starting discovery, we can see it from this value\n if(tDisconnected != 0) {// first time the disconnection in zero, so lets skip that\n tFromDcToSd = (tStartServiceDiscovery - tDisconnected);\n }else{\n tFromDcToSd = 0;\n }\n }\n\n public void onFailure(int reason) {\n addText(\"Starting service discovery failed, error code \" + reason);\n\n if (reason == WifiP2pManager.NO_SERVICE_REQUESTS\n // If we start getting this error, we either got the race condition\n // or we are client, that just got disconnected when group owner removed the group\n // anyways, sometimes only way, and 'nearly' always working fix is to\n // toggle Wifi off/on, it appears to reset what ever is blocking there.\n || reason == WifiP2pManager.ERROR){\n // this happens randomly with Kitkat-to-Kitkat connections on client side.\n\n if (reason == WifiP2pManager.NO_SERVICE_REQUESTS){\n mySpeech.speak(\"Service Discovery error 3\");\n }else{\n mySpeech.speak(\"Service Discovery generic zero error\");\n }\n\n doReConectWifi = true;\n\n //It appears that with KitKat, this event also sometimes does corrupt\n // our local services advertising, so stopping & restarting (once connected)\n // to make sure we are discoverable still\n stopLocalServices();\n\n WifiManager wifiManager = (WifiManager) that.getSystemService(Context.WIFI_SERVICE);\n wifiManager.setWifiEnabled(false);\n //wait for WIFI_P2P_STATE_CHANGED_ACTION & do the re-connection\n }\n }\n });\n }\n }, 1000);\n }\n\n public void onFailure(int reason) {\n addText(\"Adding service request failed, error code \" + reason);\n // No point starting service discovery\n }\n });\n\n }", "title": "" }, { "docid": "353c31c6d03a4692b8490cc7303cfac7", "score": "0.5959828", "text": "@Override\n public void run() {\n\n\n System.out.println(Thread.currentThread().getName() + \":\" + ThreadLocalSingleton.getInstance());\n System.out.println(Thread.currentThread().getName() + \":\" + ThreadLocalSingleton.getInstance());\n System.out.println(Thread.currentThread().getName() + \":\" + ThreadLocalSingleton.getInstance());\n System.out.println(Thread.currentThread().getName() + \":\" + ThreadLocalSingleton.getInstance());\n System.out.println(Thread.currentThread().getName() + \":\" + ThreadLocalSingleton.getInstance());\n }", "title": "" }, { "docid": "60378542a56f5151e67289842c2930d3", "score": "0.59535533", "text": "void startPublicThreads();", "title": "" }, { "docid": "b086fa208c7383fce66a2964cd15d895", "score": "0.59349024", "text": "public void doDiscovery() {\n if (D) Log.d(TAG, \"doDiscovery()\");\n if (mBtAdapter.isDiscovering()) {\n mBtAdapter.cancelDiscovery();\n }\n mBtAdapter.startDiscovery();\n //progressDialog.dismiss();\n }", "title": "" }, { "docid": "04217a46f25603d4eec3090e38ee9a85", "score": "0.5934449", "text": "public interface ScanThreadFactory {\n\n ScanThread createScanThread();\n}", "title": "" }, { "docid": "9ddb52883d93d01ffa1a2142a88f3982", "score": "0.59340227", "text": "public void start(){\n Thread runner = new Thread(this);\n runner.start();\n }", "title": "" }, { "docid": "4c9be022eaa810ec68d252a7495336dd", "score": "0.59254754", "text": "void startTestThread() {\n m_logTestThread = new Thread(new LogServiceTest(), \"LogService Tester\");\r\n m_logTestThread.setDaemon(true);\r\n m_logTestThread.start();\r\n }", "title": "" }, { "docid": "a38c59544941fdb9a0248dcd8d75187c", "score": "0.59081763", "text": "public void run() {\n myBt.cancelDiscovery();\n Log.e(LOG_TAG, \"stopping discovery\");\n\n try {\n // Connect the device through the socket. This will block\n // until it succeeds or throws an exception\n Log.e(LOG_TAG, \"connecting!\");\n\n mmSocket.connect();\n } catch (IOException connectException) {\n\n Log.e(LOG_TAG, \"failed to connect\");\n\n // Unable to connect; close the socket and get out\n try {\n Log.e(LOG_TAG, \"close-ah-da-socket\");\n\n mmSocket.close();\n } catch (IOException closeException) {\n Log.e(LOG_TAG, \"failed to close hte socket\");\n\n }\n Log.e(LOG_TAG, \"returning..\");\n\n return;\n }\n\n Log.e(LOG_TAG, \"we can now manage our connection!\");\n\n // Do work to manage the connection (in a separate thread)\n manageConnectedSocket(mmSocket);\n }", "title": "" }, { "docid": "1cedf9963298e4b21084433130e6e43e", "score": "0.5900265", "text": "public void start()\n {\n Thread callbackConnectionThread = new Thread(this);\n callbackConnectionThread.setDaemon(true);\n callbackConnectionThread.setName(\"InTrace-Launch-CallbackHandler\");\n callbackConnectionThread.start();\n }", "title": "" }, { "docid": "ae982a9c567123de2db0a0ff26f6aba4", "score": "0.58946985", "text": "public void run()\n\t{\n\t\tboolean stopThread = false;\n\t\twhile (stopThread == false)\n\t\t{\n\t\t\tsynchronized (m_updateInfoServiceListThread)\n\t\t\t{\n\t\t\t\tstopThread = Thread.interrupted();\n\t\t\t\tif (stopThread == false)\n\t\t\t\t{\n\t\t\t\t\ttry\n\t\t\t\t\t{\n\t\t\t\t\t\tm_updateInfoServiceListThread.wait(INFOSERVICELIST_UPDATE_INTERVAL);\n\t\t\t\t\t}\n\t\t\t\t\tcatch (Exception e)\n\t\t\t\t\t{\n\t\t\t\t\t\t/* there was an exception, this should only be an interrupted exception */\n\t\t\t\t\t\tstopThread = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (stopThread == false)\n\t\t\t{\n\t\t\t\t/* get all running infoservices */\n\t\t\t\tHashtable runningInfoServicesList = InfoServiceHolder.getInstance().getInfoServices();\n\t\t\t\tif (runningInfoServicesList != null)\n\t\t\t\t{\n\t\t\t\t\t/* communication was successful */\n\t\t\t\t\tEnumeration runningInfoServices = runningInfoServicesList.elements();\n\t\t\t\t\twhile (runningInfoServices.hasMoreElements())\n\t\t\t\t\t{\n\t\t\t\t\t\tInfoServiceDBEntry currentInfoService = (InfoServiceDBEntry) (runningInfoServices.\n\t\t\t\t\t\t\tnextElement());\n\t\t\t\t\t\tif (currentInfoService.hasPrimaryForwarderList())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tsynchronized (m_runningInfoServiceRegistrations)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t/* check, whether we are already registrated at this infoservice */\n\t\t\t\t\t\t\t\tif (m_runningInfoServiceRegistrations.contains(currentInfoService.getId()) == false)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t/* this is a new infoservice -> start a new propaganda instance and add the\n\t\t\t\t\t\t\t\t\t * it to the running propagandists list, this needs no check, whether the\n\t\t\t\t\t\t\t\t\t * propaganda is running because this thread only is running, when the\n\t\t\t\t\t\t\t\t\t * propaganda is running also\n\t\t\t\t\t\t\t\t\t */\n\t\t\t\t\t\t\t\t\tJAPModel.getInstance().getRoutingSettings().addPropagandaInstance(\n\t\t\t\t\t\t\t\t\t\tcurrentInfoService);\n\t\t\t\t\t\t\t\t\tm_runningInfoServiceRegistrations.addElement(currentInfoService.getId());\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\t}", "title": "" }, { "docid": "153110d75586b7692c6574ddc36eae55", "score": "0.58930814", "text": "@Override\n public void onCreate() {\n init_threads();\n }", "title": "" }, { "docid": "71e63516558d9b14513754518a79b3b8", "score": "0.5888392", "text": "public void start() {\n Thread t = new Thread(this);\n logger.debug(\"About to start Extractor thread.\");\n t.start();\n logger.info(\"Extractor thread started.\");\n }", "title": "" }, { "docid": "c383f496540151839777bed13d984c7d", "score": "0.5881687", "text": "public synchronized void startThread(){\n thread = new Thread(this);\n running = true;\n thread.start();\n }", "title": "" }, { "docid": "c54eab59fb35b6f9d12d47d16373a4de", "score": "0.5880939", "text": "@Override\n public void run() {\n timeCounter = timeCounter + 1;\n ((TextView) findViewById(R.id.TimeBox)).setText(\"T: \" + timeCounter);\n\n mPeerDiscoveryWatchdog = mPeerDiscoveryWatchdog + 1;\n //this is just to make absolutely sure, that if for some reason\n // peer discovery fails to start completely, we will be trying to\n // kick-start it after some not too small time limit\n // specific issue is Error 0 with Kitkat happening randomly\n if(mPeerDiscoveryWatchdogLimit < mPeerDiscoveryWatchdog){\n mPeerDiscoveryWatchdog = 0;\n mySpeech.speak(\"Watchdog for peer discovery resetted\");\n addText(\"Watchdog for peer discovery resetted\");\n startPeerDiscovery();\n }\n\n mHandler.postDelayed(mStatusChecker, mInterval);\n }", "title": "" }, { "docid": "d177d7ce1b8b7ed1679bc817f4622842", "score": "0.58755577", "text": "@Override\n\tpublic void start() {\n\t\tthis.thread = new Thread(this);\n\t\tthis.thread.start();\n\t}", "title": "" }, { "docid": "03cc66ed26c6b27d75fd1082e84b80ca", "score": "0.58739", "text": "private static void startInternal() {\r\n\t\texecutorTassadar = Executors.newScheduledThreadPool(1);\r\n\t\tfuture = executorTassadar.scheduleAtFixedRate(probe, 0, 300,\r\n\t\t\t\tTimeUnit.MILLISECONDS);\r\n\t}", "title": "" }, { "docid": "c7110cefababe44adfc2f85db4230650", "score": "0.587167", "text": "public void startDiscovery(@NonNull Context context)\n {\n if(!DualStackDiscoveryAgent.getInstance().isDiscovering()) {\n try {\n DualStackDiscoveryAgent.getInstance().startDiscovery(context);\n Log.d(TAG, \"Start discovery\");\n } catch (DiscoveryException e) {\n Log.e(TAG, \"DiscoveryException: \" + e.getMessage());\n }\n }\n }", "title": "" }, { "docid": "dcc97cdfb116fabbf0220789d458c7a1", "score": "0.58653873", "text": "public synchronized void start(){\n if(isRunning) return;\n isRunning = true;\n thread = new Thread(this);\n thread.start();\n }", "title": "" }, { "docid": "5ec3a3504d8fae7d975089f1748ed356", "score": "0.58622247", "text": "@Override\n public void onResume() {\n super.onResume();\n receiver = new WiFiDirectBroadcastReceiver(manager, channel, this);\n registerReceiver(receiver, intentFilter);\n manager.discoverPeers(channel, new WifiP2pManager.ActionListener() {\n\n @Override\n public void onSuccess() {\n// Toast.makeText(ShareActivity.this, \"Discovery initiated\", Toast.LENGTH_SHORT).show();\n }\n\n @Override\n public void onFailure(int reasonCode) {\n Toast.makeText(ShareActivity.this, \"Discovery failed: \" + reasonCode + \".\\n Please check wifi connection!\", Toast.LENGTH_SHORT).show();\n }\n });\n }", "title": "" }, { "docid": "9f64913a1efa164c1e0ff16381ab1b0b", "score": "0.5851999", "text": "public synchronized void start() {\r\n\r\n thread = new Thread(this);\r\n thread.start();\r\n\r\n }", "title": "" }, { "docid": "9672bb21254aa9b7eeff5c16c5ec7f50", "score": "0.5845081", "text": "public void start() {\n\t\tthis.stop = false;\n\t\tthis.forceStop = false;\n\n\t\tif (this.thread == null || !this.thread.isAlive()) {\n\t\t\tthis.thread = new Thread(this);\n\t\t\tthis.thread.setName(\"bt-announce(\" +\n\t\t\t\tthis.peer.getShortHexPeerId() + \")\");\n\t\t\tthis.thread.start();\n\t\t}\n\t}", "title": "" }, { "docid": "46dedb3b7ddd197870a1150915e0807e", "score": "0.5844237", "text": "public void start() {\n receiveThread = new Thread(this);\r\n receiveThread.start();\r\n\r\n }", "title": "" }, { "docid": "87f59d2723d4cebdb1c30210b876fa56", "score": "0.58440185", "text": "private static void start () {\n controlThread = new Thread(new BackgroundClassLoader());\n try {\n controlThread.setName(\"BackgroundLoader\");\n controlThread.setPriority((Thread.MIN_PRIORITY +\n Thread.NORM_PRIORITY) /\n 2);\n }\n catch (Exception e) {\n }\n controlThread.start();\n }", "title": "" }, { "docid": "17829eb90b980d193d6cbf339f53a7db", "score": "0.58402413", "text": "@Override\n public void run() {\n if(!isAlive())\n return;\n try{\n passiveRequestManager.start();\n }catch (Exception e){\n //TODO Catchear bien todas las excepciones\n e.printStackTrace();\n }finally {\n //TODO Cerrar todo por si acaso\n //requestManager.finish();\n }\n }", "title": "" }, { "docid": "b537131ca961e4e6b46d825bb754ffe2", "score": "0.58349377", "text": "public void start() {\n InternalLog.loggingSituation(this.getClass().getName(), new Object(){}.getClass().getEnclosingMethod().getName());\n try {\n RMIListenerInterface rmiListener = new RMIListener(this);\n Registry registry = null;\n try {\n registry = LocateRegistry.createRegistry(Constants.RMI_PORT);\n } catch (ExportException e) {\n registry = LocateRegistry.getRegistry();\n }\n registry.rebind(Constants.SERVER, rmiListener);\n SocketListener socketListener = SocketListener.getInstance(this);\n Thread thread = new Thread(socketListener);\n thread.start();\n } catch (RemoteException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "958ee3e6ae2d7a92520d6bfbade785e2", "score": "0.58273524", "text": "private void startUpActivity(){\n activityRunning = true;\n\n // initialize media\n createMediaConstraints();\n\n // loop sending out heartbeat signals and loop hanging get to receive server responses\n startHangingGet();\n startHeartBeat();\n\n // Set up server list\n setUpListView();\n }", "title": "" }, { "docid": "48621ae469c3da8d494fe1f06bb142c7", "score": "0.5817767", "text": "@Override\n\t\tpublic void run() {\n\n\t\t\ttry {\n\t\t\t\tcalculateDistance();\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t\tif (BTAdapter.isDiscovering()){\n\t\t\t\tBTAdapter.cancelDiscovery();\n\t\t\t}\n\t\t\tBTAdapter.startDiscovery();\n\t\t}", "title": "" }, { "docid": "ff4a1bc31cdb269128f9cd27c6ca3484", "score": "0.58137655", "text": "@Override\r\n public void start() {\n\r\n }", "title": "" }, { "docid": "9d9ca336fb17faf68bfe2e273e238d58", "score": "0.5812758", "text": "public synchronized void start(){\n\t\tif(running){\n\t\t\treturn;\n\t\t}\n\t\trunning = true;\n\t\tthread = new Thread(this);\n\t\tthread.start();\n\t}", "title": "" }, { "docid": "eb8dcfd773ef1f32c4de9165c5349f3a", "score": "0.5812506", "text": "private NiProxyMonitor() {\n executor = Executors.newCachedThreadPool();\n }", "title": "" }, { "docid": "0efe1a9cb8bc4e4fa0f86f546ba83e0d", "score": "0.58049977", "text": "public void init() {\n\t\tnotifierThread = new Thread() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tboolean done = false;\n\t\t\t\twhile (!done) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tprocessNextMessage();\n\t\t\t\t\t}\n\t\t\t\t\tcatch (InterruptedException e) {\n\t\t\t\t\t\tdone = true;\n\t\t\t\t\t\tlog.error(e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tnotifierThread.start();\n\t}", "title": "" }, { "docid": "98d7d3c6229855ac872e943d71d2e753", "score": "0.5802436", "text": "public CentralIndxServer() {\n\t\tRegisterRequestThread();\n\t\tSearchRequestThread();\n\t\tSearchAllRequestThread();\n\t}", "title": "" }, { "docid": "e444d4f8f09ba0fc05eaf514ab68f305", "score": "0.5801053", "text": "public ConnectionThread() {\n this.server = true;\n }", "title": "" }, { "docid": "cdfe94e7c9cdd5487baa6cf0fe813f68", "score": "0.5784817", "text": "public void start()\r\n\t{\n\t\tThread th = new Thread(this);\r\n\t\t//start the thread\r\n\t\tth.start();\r\n\t}", "title": "" }, { "docid": "8c6f626acc20c51a5cbe9e496621d99f", "score": "0.57590216", "text": "@Override\r\npublic void run() {\n\t\r\n}", "title": "" }, { "docid": "903c6d0985542bbe9c80c33186b7d130", "score": "0.5758176", "text": "private void startup() {\n\t\tThread thread = new Thread(tCPDataThread);\n\t\tthread.start();\n\t}", "title": "" }, { "docid": "d56c073f6cd3450c4a9d0244138dc273", "score": "0.5757227", "text": "public void start() {\n\t\tlog.warn(\"Online Thread started\");\n\t\tinitServer();\n\t}", "title": "" }, { "docid": "b164994acd0ef2220fe0a66952b463f5", "score": "0.5742621", "text": "public void startThread() {\n run = true;\n FindStation.FindNewStationTread myFindNewStationTread = new FindStation.FindNewStationTread(this.jlFindStations);\n Thread mythread = new Thread(myFindNewStationTread);\n mythread.start();\n this.setResizable(false);\n }", "title": "" }, { "docid": "ee89046b198e6dcc3c58d3ff2987a9e4", "score": "0.57366556", "text": "@Override\r\n public void run() {\n\r\n }", "title": "" }, { "docid": "d62334b10c9bb3284bcf3c84c31e4e46", "score": "0.57320416", "text": "public void start()\n\t{\n\t\tif (thread == null)\n\t\t{\n\t\t\tthread = new Thread (this);\n\t\t\tthread.start();\n\t\t}\n\t}", "title": "" }, { "docid": "20e1e559a51c00f358c2be050ec79073", "score": "0.5727276", "text": "public static void iniciar(){\n\t\tif(!started){\n\t\t\tstarted = true;\n\t\t\tnew ThreadServidor().start();\n\t\t}\n\t}", "title": "" }, { "docid": "3f2d8e31f3d62fe4faf89a2e1d8d918f", "score": "0.5707888", "text": "@Override\n\tpublic synchronized void run() {\n\t\twhile(true) {\n\t\t\t// if no have participants or arenas are busy wait 1 minute \n\t\t\tif(registered.size() < 2 || free == 0) {\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(Config.ARENA_CALL_INTERVAL); \n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\tif(Config.ENABLE_ALL_EXCEPTIONS)\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tList<Pair> opponents = selectOpponents();\n\t\t\tif(opponents != null && opponents.size() == 2) {\n\t\t\t\tThread T = new Thread(new EvtArenaTask(opponents));\n\t\t\t\tT.setDaemon(true);\n\t\t\t\tT.start();\n\t\t\t}\n\t\t\t//wait 1 minute for not stress server\n\t\t\ttry {\n\t\t\t\tThread.sleep(Config.ARENA_CALL_INTERVAL); \n\t\t\t} catch (InterruptedException e) {\n\t\t\t\tif(Config.ENABLE_ALL_EXCEPTIONS)\n\t\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "011378b7e07a09992d6a1d0635f7c87b", "score": "0.57048106", "text": "public void run() {\n while(!stopFetching) {\n // create a new thread if the response is empty\n// if(response == null || response.compareTo(\"\")!=0){\n try {\n FacadeModule.getFacadeModule(context).SendRequestForMatchList();\n Thread checker = new Thread() {\n public void run() {\n boolean running = true;\n while (!stopFetching && running == true) {\n// String response = FacadeModule.getFacadeModule(context).GetResponseMessage();\n try {\n // Get the match list\n// if (FacadeModule.getFacadeModule(context).GetResponse().compareTo(\"\") != 0) {\n if(FacadeModule.getFacadeModule(context).LastRequestResult() != 0){\n final ArrayList matches = FacadeModule.getFacadeModule(context).GetMatchList();\n\n if(matches != null) {\n Log.d(\"tag\", \"matches-size:\" + matches.size());\n Log.d(\"tag\", \"response: \" + FacadeModule.getFacadeModule(context).GetResponse());\n// listAdapter.setUserList(matches);\n getActivity().runOnUiThread(new Runnable() {\n @Override\n public void run() {\n listAdapter.setUserList(matches);\n// listAdapter.notifyDataSetChanged();\n Log.d(\"tag\", \"actual list size: \" + listAdapter.getUserList().size());\n }\n });\n }\n\n running = false;\n }\n\n // Sleep for 100 milliseconds\n Thread.sleep(100);\n } catch (InterruptedException e) {\n e.printStackTrace();\n running = false;\n Thread.currentThread().interrupt();\n }\n }\n }\n };\n checker.start();\n\n // sleep for 5 seconds\n Thread.sleep(5001);\n } catch (InterruptedException e){\n e.printStackTrace();\n Thread.currentThread().interrupt();\n }\n// }\n\n// response = FacadeModule.getFacadeModule(context).GetResponseMessage();\n// counter += 1;\n }\n }", "title": "" }, { "docid": "18c4c988433d8da3b3067f7465c18fbd", "score": "0.5698051", "text": "public void startRegistration() {\n }", "title": "" }, { "docid": "cf3e66dee8bbbd7624c87b4a9ae01623", "score": "0.5693798", "text": "public void run() {\n mBluetoothAdapter.cancelDiscovery();\n\n try {\n // This will block until it succeeds in connecting to the device\n // through the bluetoothSocket or throws an exception\n bluetoothSocket.connect();\n } catch (IOException connectException) {\n connectException.printStackTrace();\n try {\n bluetoothSocket.close();\n } catch (IOException closeException) {\n closeException.printStackTrace();\n }\n }\n\n\n //Intent intent = new Intent(getApplicationContext(), BluetoothBroadcastReceiver.class);\n // PendingIntent.getBroadcast(getApplicationContext(), 0, intent, PendingIntent.FLAG_UPDATE_CURRENT);\n\n // Code to manage the connection in a separate thread\n /*\n manageBluetoothConnection(bluetoothSocket);\n */\n }", "title": "" }, { "docid": "36cd49f4cee4b06facb64868ba5f6d46", "score": "0.5693289", "text": "public void start()\r\n{\r\n\tt=new Thread(this,\"mainthread\");\r\n\tstopFlag=false;\r\n\tt.start();\r\n}", "title": "" }, { "docid": "77015492be8ea087eade95496f7c37c0", "score": "0.5686089", "text": "@Override\n public void run() {\n _setup();\n }", "title": "" }, { "docid": "e1fc2111a3dd013aca680ac36fa92a53", "score": "0.5679529", "text": "private void doDiscovery() {// 搜索蓝牙设备\r\n\t\tif (BluetoothChat.Debuggable)\r\n\t\t\tLog.d(TAG, \"doDiscovery()\");\r\n\r\n\t\t// If we're already discovering, stop it\r\n\t\tif (mBtAdapter.isDiscovering()) {// 如果正在搜索\r\n\t\t\tmBtAdapter.cancelDiscovery();// 取消搜索\r\n\t\t}\r\n\r\n\t\t// Request discover from BluetoothAdapter\r\n\t\tmBtAdapter.startDiscovery();// 开始搜索蓝牙设备\r\n\t}", "title": "" }, { "docid": "4d49882ea5c4ca16760fd34a13df526c", "score": "0.5676982", "text": "@Override\n\tprotected void onStart() {\n\t\tsuper.onStart();\n\t\tthis.registerReceiver(resultProc, new IntentFilter(BluetoothAdapter.ACTION_DISCOVERY_FINISHED));\n\t\tthis.registerReceiver(resultProc, new IntentFilter(BluetoothDevice.ACTION_FOUND));\n\t\t//Gionee zhangke add for CR01569170 start\n\t\tif (false == btAdapter.isEnabled()) {\n\t\t\tbtAdapter.enable();\n\t\t\tnew Thread(new Runnable() {\n\t\t\t\tpublic void run() {\n\t\t\t\t\tint i = 0;\n\t\t\t\t\ttry {\n\t\t\t\t\t\twhile (!btAdapter.isEnabled()) {\n\t\t\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t\t\t\ti++;\n\t\t\t\t\t\t\tif (i > 20) {\n\t\t\t\t\t\t\t\tDswLog.e(TAG, \"Bluetooth cannot open!!!\");\n\t\t\t\t\t\t\t\t((AutoMMI)getApplication()).recordResult(TAG, \"\", \"0\");\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//Gionee zhangke 20151027 add for CR01575479 start\n btAdapter.startDiscovery();\n\t\t\t\t\t\t//Gionee zhangke 20151027 add for CR01575479 end\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}\n\t\t\t}).start();\n\t\t} else {\n\t\t\tbtAdapter.startDiscovery();\n\t\t}\n\t\t//Gionee zhangke 20151027 add for CR01575479 start\n\t\tmTv.setText(R.string.scanning_bluetooth_device);\n\t\t//Gionee zhangke 20151027 add for CR01575479 start\n\t\t//Gionee zhangke add for CR01569170 end\n\t\t\n\t}", "title": "" }, { "docid": "dde0d98d4d4f02c6ab8380bbf284b067", "score": "0.5672554", "text": "protected synchronized void startListening() {\n\t\t\n\t}", "title": "" }, { "docid": "12b07ad45e32e67d83d40b8cc8e1457d", "score": "0.56710595", "text": "public static void main(String[] args) {\n\t\tRunnable r1 = new Runnable() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tSystem.out.println(Singleton.getInstance());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t};\r\n\r\n\t\tThread t1 = new Thread(r1);\r\n\t\tThread t2 = new Thread(r1);\r\n\t\t\r\n\t\tt1.start();\r\n\t\tt2.start();\r\n\r\n\t}", "title": "" }, { "docid": "84045c50fde7b3eb82f7e72bf7dcb25f", "score": "0.5670738", "text": "@Override\r\n\tpublic void run() {\n\r\n\t}", "title": "" }, { "docid": "84045c50fde7b3eb82f7e72bf7dcb25f", "score": "0.5670738", "text": "@Override\r\n\tpublic void run() {\n\r\n\t}", "title": "" }, { "docid": "93c9c004c9f6f6d42df7eea098cb4ea0", "score": "0.5667505", "text": "@Override\n public void run() {\n apReg();\n }", "title": "" }, { "docid": "b7c8fdd39cb872da8c0d6066207456d8", "score": "0.5656954", "text": "private void startBackgroundThread() {\n backgroundThread = new HandlerThread(\"sharedCameraBackground\");\n backgroundThread.start();\n backgroundHandler = new Handler(backgroundThread.getLooper());\n }", "title": "" }, { "docid": "751455c5cdd6af0de14226abb87405d2", "score": "0.5653253", "text": "private void initiateConnectedThread() {\n\t\tif (myConnectedThread == null\n\t\t\t\t&& connected_socket_for_connection != null) {\n\t\t\tmyConnectedThread = new ConnectedThread(\n\t\t\t\t\tconnected_socket_for_connection);\n\t\t\tmyConnectedThread.start();\n\t\t}\n\t}", "title": "" }, { "docid": "9bfa0d8ecd89e75a2c4a8cc031bb1041", "score": "0.56525373", "text": "@Override\n\t\t\tpublic void run() {\n\t\t\t\tthread();\n\t\t\t}", "title": "" }, { "docid": "583c4dee08597668f9a0499c7caba4b9", "score": "0.5652319", "text": "private BroadcastServerThread(){}", "title": "" }, { "docid": "54940ed86595e97a43d0bdb9a0b37163", "score": "0.5645994", "text": "public void start() {\n Thread newRunner = new Thread(this);\n newRunner.setDaemon(true);\n runner = newRunner;\n newRunner.start();\n }", "title": "" }, { "docid": "1e0ad6fab8a99fb59772fce44d98eb35", "score": "0.5642197", "text": "public void start() {\n\t\tSystem.out.println(\"leaf\");\n\t\tif (t == null){\n\t\t\tt = new Thread(this, threadName);\n\t\t\tt.start();\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "3be476e03489451d98856fe261f4ec87", "score": "0.5639737", "text": "public Teflon() {\n alive = true;\n remoteHandler = new RemoteHandler(this);\n localHandler = new LocalHandler(this);\n remoteHandlerThread = new Thread(remoteHandler, \"UDP I/O Thread\");\n localHandlerThread = new Thread(localHandler, \"UI Helper Thread\");\n \n remoteHandlerThread.start();\n localHandlerThread.start();\n \n try {\n remoteHandlerThread.join();\n localHandlerThread.join();\n } catch (InterruptedException ie) {\n reportException(ie);\n }\n \n debugMessage(\"main thread exiting\");\n }", "title": "" }, { "docid": "1fb002a182f19e0a798bdb3a314f8858", "score": "0.5637574", "text": "@Override\n\tpublic void run() {\n\t\tif (PassengerQuene.getsize() != 0) {\n\t\t\tPassenger passenger = PassengerQuene.pullPassenger();\n\t\t\tThread t = new Thread(passenger);\n\t\t\tt.setName(\"passenger \" + i);\n\t\t\ti++;\n\t\t\tt.start();\n\t\t}\n\t}", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "8ed6ece15d4c1ae1264944e241952dc5", "score": "0.0", "text": "public void deleteAuthorByName(String name) throws DataAccessException {\n\t\tAuthor author = getAuthorByName(name);\r\n\t\tdeleteAuthor(author.getId());\r\n\t\t\r\n\t}", "title": "" } ]
[ { "docid": "ffe5fe3cec40acf4b0b07ea257dfa06a", "score": "0.68310827", "text": "private void apparence()\r\n\t\t{\r\n\r\n\t\t}", "title": "" }, { "docid": "838a915c9ea69d56cc37df198cff9cb2", "score": "0.67588294", "text": "@Override\n\t\t\t\tpublic void pintar() {\n\t\t\t\t\t\n\t\t\t\t}", "title": "" }, { "docid": "479340d7603590876396cc58262a3776", "score": "0.6593205", "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": "ff9130d3531037a891a2580fd00e89e9", "score": "0.649533", "text": "@Override\r\n\tpublic void refuel() {\n\r\n\t}", "title": "" }, { "docid": "4faa810505ebcb260aff0793654a731e", "score": "0.6478805", "text": "@Override\n\tpublic void refuel() {\n\t\t\n\t}", "title": "" }, { "docid": "440ce72c689aef1dd3c429cf5498732b", "score": "0.644366", "text": "@Override\n\tpublic void pohyb() {\n\n\t}", "title": "" }, { "docid": "c2f383f280f298416bf45e72c374ecfa", "score": "0.6413091", "text": "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "title": "" }, { "docid": "592b765f0188dd7fa8d3f1f3683fa9d7", "score": "0.6288102", "text": "@Override\n\tprotected void generateData() {\n\t\t\n\t}", "title": "" }, { "docid": "4bc8e88e84699c223ea476caacb4d454", "score": "0.6277961", "text": "@Override\r\n\tpublic void sauter() {\n\t\t\r\n\t}", "title": "" }, { "docid": "db6adf52deb87c2723f80c6df873c47d", "score": "0.62721884", "text": "public void mo4741aD() {\n }", "title": "" }, { "docid": "80d10ea62cee927f9ad0a7965909eaba", "score": "0.6230883", "text": "@Override\n\tprotected void remplit() {\n\t\t\n\t}", "title": "" }, { "docid": "95ffa256b098e9b494cb96d4874e063f", "score": "0.6218227", "text": "@Override\n\tvoid refuel() {\n\n\t}", "title": "" }, { "docid": "03d7171196199db238d56b8aeab47987", "score": "0.6127248", "text": "private void welcom() {\n\n\t}", "title": "" }, { "docid": "093a096d6e96e05b160fe2406b1e8a2d", "score": "0.6105816", "text": "@Override\n\tpublic void parir() {\n\t\t\n\t}", "title": "" }, { "docid": "23f3a7415a3f7463e8a1124d06cf4cf2", "score": "0.609205", "text": "@Override\n\tpublic void valide() {\n\t\t\n\t}", "title": "" }, { "docid": "ce165aec4a92510d2d7f78a45c6a1f81", "score": "0.60919595", "text": "@Override\r\n\tpublic void retirer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "e2c0ee2f563aa58a1d1fbb6ed1a49084", "score": "0.6055849", "text": "public void namam() {\n\t\t\r\n\t}", "title": "" }, { "docid": "e2c0ee2f563aa58a1d1fbb6ed1a49084", "score": "0.6055849", "text": "public void namam() {\n\t\t\r\n\t}", "title": "" }, { "docid": "453637afdcc490de35afa10f347a4092", "score": "0.6051393", "text": "protected void mo4927v() {\n }", "title": "" }, { "docid": "081ae6b4d91b610b8046f5ebfe7ba326", "score": "0.60334456", "text": "@Override\r\n\tpublic void fertilizar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "4c9e25ea6f293e2f67da562cd4a0b657", "score": "0.6019909", "text": "public final void mo8553EA() {\n }", "title": "" }, { "docid": "5fda61f75e47491fe0badbfe139070a9", "score": "0.6019185", "text": "@Override\n\tprotected void initdata() {\n\n\t}", "title": "" }, { "docid": "b1cf16017c8057c0255a9ad368ecaee5", "score": "0.60176474", "text": "@Override\r\n\tprotected void init() {\n\r\n\t}", "title": "" }, { "docid": "4c957ed6879296e2489fa4cc534c9d68", "score": "0.601267", "text": "@Override\r\n\tpublic void geefMeerprijs() {\n\t\t\r\n\t}", "title": "" }, { "docid": "fa1a013b1df2f5f1062e1cc971135645", "score": "0.5987798", "text": "@Override\n\tpublic void mamar() {\n\t\t\n\t}", "title": "" }, { "docid": "e1a5212784625cf033b8b0d71916d9a8", "score": "0.59848756", "text": "@Override\r\n\tpublic void se_baisser() {\n\t\t\r\n\t}", "title": "" }, { "docid": "ab92fd509dcf9edd6498a0302e1555e9", "score": "0.59838766", "text": "@Override\n\tpublic void withdrawl() {\n\t\t\n\t}", "title": "" }, { "docid": "8a997a9a187c71891dd8b44afdbaa2a2", "score": "0.59794307", "text": "private void noOtomatis(){\n\n \n \n \n\n }", "title": "" }, { "docid": "0056b38abf02cf94e7a1afab1755d909", "score": "0.5966258", "text": "@Override\r\n\tpublic void defendre() {\n\t\t\r\n\t}", "title": "" }, { "docid": "05b92fe6834e71a629bc6b218827d95f", "score": "0.5962418", "text": "Intervencion() {\n\t}", "title": "" }, { "docid": "acc39f55f5b37ab7050a241c64f9a4f9", "score": "0.595814", "text": "@Override\n\tpublic void actualize() {\n\t\t\n\t}", "title": "" }, { "docid": "9a1a66628f4518af9fa213c400d9592e", "score": "0.5950224", "text": "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t}", "title": "" }, { "docid": "16a4669a2213802ac94829fc8d9946ff", "score": "0.5934789", "text": "@Override\n\t\tpublic void init() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "b4f806add60ad7a84ab034d616e626e7", "score": "0.5923358", "text": "@Override\n public void Ramasser() {\n }", "title": "" }, { "docid": "8b18fd12dbb5303a665e92c25393fb78", "score": "0.5922823", "text": "@Override\n\tprotected void initData() {\n\t\t\n\t}", "title": "" }, { "docid": "fb8e5a5b14d5c382d38f4afcb6d4f55d", "score": "0.591248", "text": "@Override\r\n\tpublic void reculer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c9b74342d0ae0e22bc7119b60588c66a", "score": "0.58970994", "text": "@Override\n\t\t\tpublic int getType() {\n\t\t\t\treturn 0;\n\t\t\t}", "title": "" }, { "docid": "835a3677095e4c9f21649ab17f1ba40b", "score": "0.5893168", "text": "private static void diwalioffer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "4967494f628119c8d3a4740e09278944", "score": "0.5856793", "text": "@Override\r\n\tprotected void initData() {\n\r\n\t}", "title": "" }, { "docid": "4967494f628119c8d3a4740e09278944", "score": "0.5856793", "text": "@Override\r\n\tprotected void initData() {\n\r\n\t}", "title": "" }, { "docid": "47bef3d0c0ee761e936de1dada2442ec", "score": "0.5846272", "text": "private void Partida() {\r\n\t}", "title": "" }, { "docid": "c34617230b51592fc8652a6c8fc39d7b", "score": "0.58408314", "text": "@Override\n\t\t public int describeContents() { \n\t\t return 0;\n\t\t }", "title": "" }, { "docid": "39c15addb7f9cae9284ae4af01c5a911", "score": "0.5836928", "text": "@Override\r\n\tpublic void cortar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "74acf90efa52ac7bee2d28c6dee180bf", "score": "0.58083814", "text": "public void mo25302P() {\n }", "title": "" }, { "docid": "9d2f44c3ebe1fb8de1ac4ae677e2d851", "score": "0.58065355", "text": "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b14d9313b224be37257260448fc816d3", "score": "0.5805624", "text": "@Override\n\tpublic void breathes()\n\t{\n\n\t}", "title": "" }, { "docid": "4958a5331fdb65d09e333f006441f701", "score": "0.58002454", "text": "@Override\n public int size() {\n // TODO Auto-generated method stub\n return 0;\n }", "title": "" }, { "docid": "ce91051d32625345f2bf3562abbb93de", "score": "0.5793332", "text": "@Override\n\tprotected void inicializar() {\n\t}", "title": "" }, { "docid": "2a790ebdc342a2b85b21b58d99e8bb02", "score": "0.579329", "text": "@Override\n\tpublic void landen()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.57912874", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b17089ec7f3b873adc1ebff906be9241", "score": "0.5790191", "text": "@Override\r\n\tpublic void carregar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "925ab02db0448f51f913efd603e7b5b4", "score": "0.5787601", "text": "@Override\n\tpublic void breathe() {\n\n\t\t\n\t}", "title": "" }, { "docid": "3f682cd35cc51a176e84d31bb70401ec", "score": "0.5787479", "text": "@Override\n\t\t\tpublic int Order() {\n\t\t\t\treturn 1;\n\t\t\t}", "title": "" }, { "docid": "3f682cd35cc51a176e84d31bb70401ec", "score": "0.5787479", "text": "@Override\n\t\t\tpublic int Order() {\n\t\t\t\treturn 1;\n\t\t\t}", "title": "" }, { "docid": "b0f36892991e52a8359bd9bea7916606", "score": "0.5774706", "text": "@Override\r\n\tpublic void Value() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b0f36892991e52a8359bd9bea7916606", "score": "0.5774706", "text": "@Override\r\n\tpublic void Value() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773351", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773351", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773351", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773351", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773351", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773351", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773351", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773351", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773351", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773351", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773351", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773351", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "e7dbef6468de164eadd6d220b4ed2936", "score": "0.57623994", "text": "@Override\n\tpublic void vegetais() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.5758614", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "1985dddb6264adc2fb069a687b25f36b", "score": "0.57541037", "text": "@Override\n\tpublic void groom() {\n\t\t\n\t}", "title": "" }, { "docid": "627bf6ef88b45b88b902a23fc9a6eb2b", "score": "0.5753287", "text": "@Override\r\n\tpublic void init()\r\n\t{\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.574912", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.574912", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.574912", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.574912", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.574912", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.574912", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "dfa3deb699f1baaf610b77ae9370559a", "score": "0.5747224", "text": "@Override\n\tpublic void gravar() {\n\n\t}", "title": "" }, { "docid": "bf96ef68c4dc727efe52fcae4e20a6c6", "score": "0.5735879", "text": "@Override\r\n public int getType() {\n return 1;\r\n }", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.5732775", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.5732775", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "a7ae27b45bb1a02a96ba4232264be825", "score": "0.573135", "text": "@Override\n\tpublic void embarcar() {\n\t\t\n\t}", "title": "" }, { "docid": "8b16d59a149827c698e510477f7a4e9d", "score": "0.57286674", "text": "public void mo9585b() {\n }", "title": "" }, { "docid": "0ce436410fb4ad1af4e012ab5253a43a", "score": "0.57229525", "text": "@Override\n\tpublic void maas() {\n\t\t\n\t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5714821", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "10daa0b69fc83ea1f81c27147cd56557", "score": "0.5711608", "text": "@Override\n\tpublic void Ordenar() {\n\t\t\n\t}", "title": "" }, { "docid": "78a0d7cad7b423dba2c6000b1302b9a0", "score": "0.5705802", "text": "@Override\n\tprotected void ganharExp() {\n\t\t\n\t}", "title": "" }, { "docid": "39132efb6b42f8ec625d96ff6226d80b", "score": "0.5699", "text": "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "title": "" }, { "docid": "162a468b891a508701c52265588e91b6", "score": "0.56986195", "text": "@Override\r\n public void init() {\n\r\n }", "title": "" }, { "docid": "6fba68e503150b58bb627390fe723ce3", "score": "0.56939334", "text": "@Override\r\n\tpublic void servir() {\n\t\t\r\n\t}", "title": "" }, { "docid": "9e8299e02e2afca4b347ab5022949b84", "score": "0.56932366", "text": "@Override\n public void rest() {\n \n }", "title": "" }, { "docid": "ddd8d8a26991b887b8f19171d700e1d3", "score": "0.5691995", "text": "@Override\n\tpublic void proveerdatos() {\n\t\t\n\t}", "title": "" }, { "docid": "e21063ae833db842230f1d37006a0359", "score": "0.56844974", "text": "@Override public int getAtaque(){\n\n return 0;\n\n }", "title": "" }, { "docid": "b6c641fa6ba40a5b14cc33cb07aa0671", "score": "0.5668476", "text": "@Override\n\tprotected void initData() {\n\t}", "title": "" }, { "docid": "a0b89d2fbd83aefeb636ae04ad1fcd91", "score": "0.56620806", "text": "public void init(){\n\t //TODO Auto-generated method stub\n\t}", "title": "" }, { "docid": "2aed4e4b25907c376dc30c486b4f975f", "score": "0.56568927", "text": "public final void mo73469b() {\n }", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5654782", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5654782", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5654782", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5654782", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" } ]
574204603842605a9350ef5012700414
add blank item to inventory
[ { "docid": "a6ff71dfede78b7b27fd2db587160d6c", "score": "0.683025", "text": "public void addItem(Inventory inventory){\n InventoryItem newItem = new InventoryItem();\n inventory.addItem(newItem);\n }", "title": "" } ]
[ { "docid": "26b4c03caf2a1266fdfd5509b67b895e", "score": "0.7107795", "text": "public void addItem(Item i){\r\n inventory1.add(i);\r\n }", "title": "" }, { "docid": "fb1ff66d252508aba255adfbb2f36b32", "score": "0.6980173", "text": "public static void addItem(InventoryItem inventoryItem) {\n\t\tfor(int i=0; i<items.length; i++) {\n\t\t\tif(items[i] == null) {\n\t\t\t\titems[i] = inventoryItem;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tConsole.println(\"Your inventory has no space.\");\n\t\t}\n\t}", "title": "" }, { "docid": "a457e41725fd306f119845b65cf47ae4", "score": "0.6932171", "text": "public void justAddItem(Item item){\n \titems.add(item); \n\t}", "title": "" }, { "docid": "c2da3083706d994a1192d3229e359979", "score": "0.6854734", "text": "public void addToInventory(Item item)\r\n\t{\r\n\t\tscanner = new Scanner(System.in);\r\n\t\tString input = \"\";\r\n\t\tString replacedItem = \"a nameless\";\r\n\t\tString newItem = \"a nameless\";\r\n\t\tint number = 0;\r\n\t\tboolean numberFlag = false;\r\n\r\n\t\t// general check to see if the item is valid \r\n\t\tif(item != null)\r\n\t\t{\r\n\t\t\t// set new item name string\t\t\r\n\t\t\tif(item.getItemName() != null)\r\n\t\t\t{\r\n\t\t\t\tnewItem = \"[\" + item.getItemName() + \"]\";\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tnewItem += \" \" + item.getItemType().toLowerCase();\r\n\t\t\t}\r\n\r\n\t\t\t// general check to see if the list is valid\r\n\t\t\tif(list != null)\r\n\t\t\t{\r\n\t\t\t\t// acquisition message\r\n\t\t\t\tif(item.getItemName() != null)\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.println(wrapIt(\"You acquire the \" + item.getItemType().toLowerCase() + \r\n\t\t\t\t\t\t\t\" \" + newItem + \".\"));\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.println(\"You acquire \" + newItem + \".\");\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// if the item is a key item, allocate space\r\n\t\t\t\tif(item.getIsKeyItem())\r\n\t\t\t\t{\r\n\t\t\t\t\tmaxItems ++;\r\n\t\t\t\t\tlist.add(item);\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// if inventory space is available, add the new item\r\n\t\t\t\telse if(list.size() < maxItems)\r\n\t\t\t\t{\r\n\t\t\t\t\tlist.add(item);\t\t\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.println(\"Your inventory is full.\");\r\n\r\n\t\t\t\t\t// get user input for item to discard\r\n\t\t\t\t\tCollections.sort(list);\r\n\t\t\t\t\tSystem.out.print(displayItems());\r\n\t\t\t\t\tSystem.out.print(wrapIt(\"Please select an item to discard. (0 to refuse \" + \r\n\t\t\t\t\t\t\tnewItem) + \")\\n> \");\r\n\t\t\t\t\tinput = scanner.nextLine();\r\n\r\n\t\t\t\t\t// attempts to parse an appropriate integer from user input\r\n\t\t\t\t\tdo\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\ttry\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tnumber = Integer.parseInt(input);\r\n\t\t\t\t\t\t\tnumberFlag = true;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t// attempts to get an integer value again\r\n\t\t\t\t\t\tcatch(NumberFormatException e)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.println(\"Integer value not detected.\");\r\n\t\t\t\t\t\t\tSystem.out.print(wrapIt(\"Please select an item to discard. (0 to refuse \" + \r\n\t\t\t\t\t\t\t\t\tnewItem) + \")\\n> \");\r\n\t\t\t\t\t\t\tinput = scanner.nextLine();\r\n\t\t\t\t\t\t\tnumberFlag = false;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tif(numberFlag)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t// make the number align with indexes\r\n\t\t\t\t\t\t\tnumber --;\r\n\r\n\t\t\t\t\t\t\t// if number checks out, see if it is abandoned\r\n\t\t\t\t\t\t\tif(number == -1)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"You abandon the new item.\");\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t// if it is a key item or number is outside of bounds\r\n\t\t\t\t\t\t\telse if(number < -1 || number >= list.size())\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"Value out of bounds.\");\r\n\r\n\t\t\t\t\t\t\t\t// ask for new input\r\n\t\t\t\t\t\t\t\tSystem.out.print(wrapIt(\"Please select an item to discard. (0 to refuse \" + \r\n\t\t\t\t\t\t\t\t\t\tnewItem) + \")\\n> \");\r\n\t\t\t\t\t\t\t\tinput = scanner.nextLine();\r\n\t\t\t\t\t\t\t\tnumberFlag = false;\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t// if trying to replace a key item\r\n\t\t\t\t\t\t\telse if(list.get(number).getIsKeyItem())\t\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t// ask for new input\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"You cannot discard a key item.\");\r\n\t\t\t\t\t\t\t\tSystem.out.print(wrapIt(\"Please select an item to discard. (0 to refuse \" + \r\n\t\t\t\t\t\t\t\t\t\tnewItem) + \")\\n> \");\r\n\t\t\t\t\t\t\t\tinput = scanner.nextLine();\r\n\t\t\t\t\t\t\t\tnumberFlag = false;\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t// replace an item with the new item\r\n\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t// set replaced item name string\r\n\t\t\t\t\t\t\t\tif(list.get(number).getItemName() != null)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\treplacedItem = \"[\" + list.get(number).getItemName() + \"]\";\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\treplacedItem += list.get(number).getItemType().toLowerCase();\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t// output replace message\r\n\t\t\t\t\t\t\t\tSystem.out.println(wrapIt(\"You replace \" + replacedItem + \" with \" + newItem + \".\"));\r\n\r\n\t\t\t\t\t\t\t\t// remove and replace the specified item with new item\r\n\t\t\t\t\t\t\t\tlist.remove(number);\r\n\t\t\t\t\t\t\t\tlist.add(item);\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\twhile(!numberFlag);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"INVENTORY LIST NOT FOUND\");\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tSystem.out.println(\"CANNOT ADD NULL TO LIST\");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "3fda27e0e662c2f5d51f2e26b47a2de2", "score": "0.6838124", "text": "public void addItem(Item item) {\n inventory.add(item);\n }", "title": "" }, { "docid": "fecb432253a7f95647ef68f96c979308", "score": "0.67154104", "text": "public void addItemToInventory(Item item) throws InventoryOutOfRange {\r\n\t\tif (this.inventory.size() < INVENTORY_MAXIMUM_SIZE) {\r\n\t\t\tthis.inventory.add(item);\r\n\t\t} else {\r\n\t\t\tthrow new InventoryOutOfRange();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "521fd1ff7f0a5b228a8f3fc230240cf5", "score": "0.66898066", "text": "public void addItem(Item i) {\n if (items.contains(i)) return; //Don't add an item that already is in inventory multiple times\n items.add(i);\n }", "title": "" }, { "docid": "e69deab92f010f92d187ee311a20d1dc", "score": "0.66858375", "text": "private void addToInventorry(Player player) {\n player.addToInventory(Item.clone(_supplyOf));\n }", "title": "" }, { "docid": "da2691264e5cc8f776b86309d4df7241", "score": "0.64265484", "text": "public void add(Item item, HasInventory o)\n\t{\n\t\to.getInventory().add(item);\n\t\tthis.add(item);\n\t}", "title": "" }, { "docid": "fd95048c13557f64fe2a35a0a9cc6421", "score": "0.6416662", "text": "public Inventory()\n {\n items = new ArrayList<>();\n }", "title": "" }, { "docid": "7281638f59e15bef859632b0e535184b", "score": "0.63878894", "text": "public Inventory(){\n\t\t items = new ArrayList<Item>(); \n \t}", "title": "" }, { "docid": "c78c09733e2d91a9eb97cdb0e76c0612", "score": "0.6383851", "text": "@Test\r\n\tpublic void testAddInventoryItemOnNewItem() {\r\n\t\tassertTrue(myAuction.checkForDuplicates(myNewItem));\r\n\t}", "title": "" }, { "docid": "d893a9ba9571e7b781c596b03741fe55", "score": "0.6369144", "text": "private void takeCareOfStrayItem(@Nullable ItemStack item) {\n if (item != null) {\n if (inventory[slotDefinition.getMinOutputSlot()] == null) {\n inventory[slotDefinition.getMinOutputSlot()] = item;\n markDirty();\n } else if (inventory[slotDefinition.getMinOutputSlot() + 1] == null) {\n inventory[slotDefinition.getMinOutputSlot() + 1] = item;\n markDirty();\n } else {\n ItemUtil.spawnItemInWorldWithRandomMotion(getWorldObj(), buffer_in, xCoord, yCoord, zCoord);\n }\n }\n }", "title": "" }, { "docid": "db9b3040b4ee18f5b443b4dc628bbe83", "score": "0.6349687", "text": "@Override\n\tpublic int getSizeInventory() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "8ae2fa06a03dea2284ca933320c61ee5", "score": "0.6340782", "text": "public void addWeapon(){\n myInventory.add(weapons.get(0));\n weapons.remove(0);\n\n }", "title": "" }, { "docid": "3c050103c0db82a6f9080605f13a1f71", "score": "0.6335217", "text": "public void guardaItem(Item item){\n for(int i=0;i<this.inventario.length;i++){\n if(this.inventario[i]==null){\n this.inventario[i]=item;\n break;\n }\n \n }\n }", "title": "" }, { "docid": "365ef68ef3681215f8a8823bcb856804", "score": "0.63284755", "text": "public void addNPCItem(Item newItem){\r\n\t\tinven.addItem(newItem);\r\n\t}", "title": "" }, { "docid": "0e39f05aecc75b8b051768ff4036f38e", "score": "0.6326806", "text": "private void addIIToWorldInventory(){\r\n\t\t\r\n\t\tif (dataSphere.getWorldInventory() != null){\r\n\t\t\tSystem.out.println(\"Adding Item to WorldInventory\");\r\n\t\t\tdataSphere.setInventory1(dataSphere.getWorldInventory());\r\n\t\t\tdataSphere.setInventory2(inventoryJPanel.getItem());\r\n\t\t\tinventoryManager.performAction(\"addToInventory\", dataSphere);\r\n\t\t}\r\n\t\telse{\r\n\t\t\tSystem.out.println(\"No World Inventory\");\r\n\t\t\tJOptionPane.showMessageDialog(inventoryJPanel.getJFrame(), \"You must have an active World Inventory first.\");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "3dc2fa05383f36c1bfda0819db566757", "score": "0.6319651", "text": "public void addItem(AddOnContainer i) {\n if (addOnItems.contains(i)) return; //Don't add an item that already is in inventory multiple times\n addOnItems.add(i);\n }", "title": "" }, { "docid": "5bd9300cb392ea3792e502dfb33cd0c9", "score": "0.6317964", "text": "public void addItem(Item addItem){\n\t\ttotalInventory.add(addItem);\n\t}", "title": "" }, { "docid": "3a9da4eb914bedf4c5e0c1521af4aa9e", "score": "0.62780184", "text": "public void createRandomInventory() {\r\n\t\tfor (int i = 0; i < INVENTORY_MAXIMUM_SIZE; i++) {\r\n\t\t\ttry {\r\n\t\t\t\taddItemToInventory(World.getInstance().getRandomItem());\r\n\t\t\t} catch (InventoryOutOfRange 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": "b0cae5138700750fa8a0a2ad5b2d7f15", "score": "0.6260736", "text": "public void addItem(Item item) {\n\t\thashTable.put(item.getCode(), item);\n\t\tSystem.out.println(item.description() + \"added to inventory\");\n\t}", "title": "" }, { "docid": "2c6de89e215fa930a2b7e63470787902", "score": "0.62538666", "text": "void addNewItem() {\n\t\tItem salesItems = new Item();\n\t\tScanner theScn = null;\n\t\tSystem.out.println(\"Please enter the item name: \");\n\t\tString name = theScn.nextLine();\n\t\tsalesItem.n = name;\n\t\tSystem.out.println(\"Please enter the item description: \");\n\t\tString description = theScn.nextLine();\n\t\tsalesItem.d = description;\n\t\tSystem.out.print(\"Please enter the minimum bid for this item: \");\n\t\tint minimumBid = theScn.nextInt();\n\t\tsalesItem.min = minimumBid;\n\t}", "title": "" }, { "docid": "e195d1a9a569240c783c1456f5607ada", "score": "0.62465495", "text": "public void addArmour(){\n myInventory.add(armour.get(0));\n armour.remove(0);\n\n }", "title": "" }, { "docid": "e46d9ccf3f966bda8680a4f5fd727ac2", "score": "0.6238775", "text": "private void createInventory() {\n gameScene.resetInventory();\n\n List<Block> inventoryList = currentMap.getBuilder().getInventory();\n for (Block block : inventoryList) {\n drawer.drawInventory(block.getBlockType(), inventoryList.indexOf(block));\n }\n\n if (mapAction.getSelectedInvBlock() == -1) {\n gameScene.setSelectedBlock(\"No Block Currently Selected\");\n }\n }", "title": "" }, { "docid": "f3b337e8ecb8a44499c04448c0c0a8b1", "score": "0.6223595", "text": "public SearchResultPage addNonZeroAmountItemToCart() {\n if (!lblPaymentAmountInItem1().getText().contains(\"$0.00\")) {\n Log.logScriptInfo(\"Adding item from row 1\");\n addItemToCart(1);\n } else {\n Log.logScriptInfo(\"Adding item from row 2\");\n addItemToCart(2);\n }\n return this;\n }", "title": "" }, { "docid": "7906890716e2a94ca201ce4f5ee9d328", "score": "0.6200036", "text": "public void pickupItem(Item item) {\n if (inventory[invSlot] != null)\n dropItem();\n\n inventory[invSlot] = item;\n item.setVisible(false);\n }", "title": "" }, { "docid": "69b72cc3e19156648d6641652c9a2be0", "score": "0.6198025", "text": "public void setItemInventory() throws ParseException {\n // add time query here\n for (Map.Entry<String, Product> entry : inventory.entrySet()) {\n Product value = entry.getValue();\n if (value.itemSearched.equals(item) && inQuery(value)) {\n itemInventory.put(value.id, value);\n addToPrintOut(value);\n } // close if\n } // close for loop\n if (itemInventory.size() != 0) {\n displayInventory();\n qmh.setResults(printout);\n setVisible(true);\n } // close if\n else if (itemInventory.size() == 0 && !searchType.equals(\"online\")) {\n sg.displayEmptySearch(item);\n } // close else if\n }", "title": "" }, { "docid": "255e16d7f5d93ce1b458da32786d8159", "score": "0.61676896", "text": "protected void successfulAdd(Item item, int n, int totalSpace){\r\n this.inventory.put(item.getType(), n + getItemCount(item.getType()));\r\n this.caughtSpace += totalSpace;\r\n }", "title": "" }, { "docid": "182d606abb91c59cb4f8e0dac4d517a7", "score": "0.61452174", "text": "public void addItem(Consumable cons) {\r\n\t\tthis.inventory.add(cons);\r\n\t}", "title": "" }, { "docid": "d4ae8ff0a1b82010a9b107bad8f9f61e", "score": "0.6122119", "text": "public Inventory()\r\n\t{\r\n\t\t// null\r\n\t}", "title": "" }, { "docid": "fc51785724e4236aaa387acd17fb1a88", "score": "0.6105796", "text": "public ItemStack pickUpItemStack(EntityPlayerBase player, ItemStack stack)\r\n\t{\r\n\t\tint slot;\r\n\t\tint size = stack.getStackSize();\r\n\t\t\r\n\t\tplayer.onInventoryChange();\t\t\r\n\t\t\r\n\t\tif((slot = doesPartialStackExist(stack)) != -1) //Is there already a partial stack of the item?\r\n\t\t{\r\n\t\t\tplayer.changedInventorySlots.add(\"i \" + slot);\r\n\t\t\tif(mainInventory[slot].getStackSize() + size > mainInventory[slot].getMaxStackSize()) //Is there more than enough to fill that stack? is so fill up that stack and continue;\r\n\t\t\t{\r\n\t\t\t\tint t = stack.getMaxStackSize() - mainInventory[slot].getStackSize();\r\n\t\t\t\tsize -= t;\r\n\t\t\t\tinventoryTotals.put(mainInventory[slot].getItemName(), inventoryTotals.get(mainInventory[slot].getItemName()) + t);\r\n\t\t\t\tmainInventory[slot].addToStack(t);\t\t\t\t\r\n\t\t\t}\r\n\t\t\telse //If there isn't, add the stacks and return\r\n\t\t\t{\r\n\t\t\t\tmainInventory[slot].addToStack(size);\r\n\t\t\t\tinventoryTotals.put(mainInventory[slot].getItemName(), inventoryTotals.get(mainInventory[slot].getItemName()) + size);\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\t\t\r\n\t\tif((slot = getFirstEmptySlot()) == -1) //Is there A free inventory space? If not return what's left of the itemStack \r\n\t\t{\r\n\t\t\tstack.setStackSize(size);\r\n\t\t\treturn stack;\r\n\t\t}\r\n\t\telse //If there is space, Start adding items to the inventory\r\n\t\t{\r\n\t\t\tfor(int i = 0; i < size; )\r\n\t\t\t{\r\n\t\t\t\tslot = getFirstEmptySlot(); //Get first empty slot\r\n\t\t\t\tif(slot == -1)\r\n\t\t\t\t\tbreak;\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tplayer.changedInventorySlots.add(\"i \" + slot);\r\n\t\t\t\t\tif(size > stack.getMaxStackSize()) //Is there more than a stack of the item? if so loop again\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tmainInventory[slot] = new ItemStack(stack.getItemID(), stack.getStackSize());\r\n\t\t\t\t\t\tmainInventory[slot].setStackSize(stack.getMaxStackSize());\r\n\t\t\t\t\t\tinventoryTotals.put(mainInventory[slot].getItemName(), inventoryTotals.get(mainInventory[slot].getItemName()) + mainInventory[slot].getStackSize());\t\t\t\t\t\t\r\n\t\t\t\t\t\tsize -= stack.getMaxStackSize();\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse //If not, put what's left of the stack in the inventory and return\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tmainInventory[slot] = new ItemStack(stack);\r\n\t\t\t\t\t\tmainInventory[slot].setStackSize(size);\r\n\t\t\t\t\t\tinventoryTotals.put(mainInventory[slot].getItemName(), inventoryTotals.get(mainInventory[slot].getItemName()) + size);\r\n\t\t\t\t\t\tsize = 0;\r\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\t\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tstack.setStackSize(size);\r\n\t\treturn stack;\r\n\t}", "title": "" }, { "docid": "336a55c40e2cdbb55cfe183267706a2e", "score": "0.6104896", "text": "public void ShouldAllowNullItem() {\n\t\tItem item = new Item(null, new Sync(TestHelper.newID()));\r\n\t\tassertEquals(item.getContent().getPayload(), NullContent.PAYLOAD);\r\n\t}", "title": "" }, { "docid": "4b5b0985e796550a9d7fe9bbded83eea", "score": "0.6095236", "text": "public void addAllToInventory(View view) {\n cp.removeAllIngredientFromShoppingList(true);\n updateUI();\n }", "title": "" }, { "docid": "78dde87e47d97db3182a942c1a1b8570", "score": "0.6090303", "text": "public Item(InventoryItemType type) {\n this.quantity = 0;\n this.value = type.itemCost;\n }", "title": "" }, { "docid": "8912344a28d9c4e3b5b3b277321bd5bd", "score": "0.60758984", "text": "@Test\n public void reserveItemTest() throws NotAvailableItem {\n Shop shop = env.getShop();\n ShoppingCart cart = env.newShoppingCart();\n Item raton = new Item(202L, \"Raton\", 5, new BigDecimal(11.0));\n //añadimos el item al stock\n shop.saveItem(raton);\n shop.reserveItem(202L, 1, cart);\n assertEquals(1, cart.getProductCount());\n }", "title": "" }, { "docid": "dfe8e5b593b23dab4d94bf68d11e5611", "score": "0.6075499", "text": "private void addItem(Player player, String[] args) {\r\n\t\tPlayer t = Repository.getPlayerByDisplay(args[1]);\r\n\t\tif (t == null) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tint id = toInteger(args[2]);\r\n\t\tint amount = toInteger(args[3]);\r\n\t\tItem item = new Item(id, amount);\r\n\t\tt.getInventory().add(item);\r\n\t\tplayer.getPacketDispatch().sendMessage(\"You just gave \" + t.getUsername() + \" the item - \" + item);\r\n\t}", "title": "" }, { "docid": "099896983854df53a592b19c40f98c5b", "score": "0.6069164", "text": "@Test\n\tpublic void testAddSugarZero() throws InventoryException{\n\t\tin.addSugar(\"0\");\n\t\tassertEquals(in.getSugar(), sugar);\n\t}", "title": "" }, { "docid": "4a75820537ae8df1f6416b307a01965f", "score": "0.6049886", "text": "public void dropItem() {\n Item item = inventory[invSlot];\n\n if (item == null)\n return;\n\n inventory[invSlot] = null;\n item.setVisible(true);\n }", "title": "" }, { "docid": "54ccddfb899fe2e4b21abdc448d3a04b", "score": "0.6038419", "text": "public void addInventoryItem(InventoryItem item) throws InvalidInventoryItemException, DuplicateInventoryItemException {\n if (item != null) {\n if (item.getComponentName() != null && !item.getComponentName().isEmpty()) {\n if (!this.getInventoryItems().containsKey(item.getComponentName())) {\n this.getInventoryItems().put(item.getComponentName(), item);\n } else {\n throw new DuplicateInventoryItemException(\"An inventory item with name '\" + item.getComponentName() + \"' already exists\");\n }\n } else {\n throw new InvalidInventoryItemException(\"An inventory item with a null or empty component name cannot be added to the inventory\");\n }\n } else {\n throw new InvalidInventoryItemException(\"A null inventory item cannot be added to the inventory\");\n }\n }", "title": "" }, { "docid": "528791037cc59aaac26774165a4da4fd", "score": "0.60324335", "text": "@Test(expected = InventoryException.class)\r\n public void testAddInventory() throws InventoryException {\r\n coffeeMaker.addInventory(\"4\", \"7\", \"0\", \"9\");\r\n coffeeMaker.addInventory(\"5\", \"5\", \"5\", \"5\");\r\n }", "title": "" }, { "docid": "a1cff17e513e4d16cd28963555286ae1", "score": "0.602932", "text": "public void grabNextItem() {\r\n if (!getNPC().hasTrait(Inventory.class)) {\r\n return;\r\n }\r\n Inventory inv = getNPC().getTrait(Inventory.class);\r\n ItemStack[] items = inv.getContents();\r\n ItemStack held = items[0];\r\n if (held != null && held.getType() != Material.AIR) {\r\n return;\r\n }\r\n for (int i = 0; i < items.length; i++) {\r\n ItemStack item = items[i];\r\n if (item != null) {\r\n item = item.clone();\r\n Material mat = item.getType();\r\n if (SentinelTarget.isWeapon(mat)) {\r\n if (item.getAmount() > 1) {\r\n item.setAmount(item.getAmount() - 1);\r\n items[i] = item;\r\n items[0] = item.clone();\r\n items[0].setAmount(1);\r\n inv.setContents(items);\r\n item = item.clone();\r\n item.setAmount(1);\r\n return;\r\n }\r\n else {\r\n items[i] = new ItemStack(Material.AIR);\r\n items[0] = item.clone();\r\n inv.setContents(items);\r\n return;\r\n }\r\n }\r\n }\r\n }\r\n }", "title": "" }, { "docid": "f36857e914cfa440459e1bf8b9bdc045", "score": "0.60272616", "text": "@Override\n\tpublic Boolean insertItemIntoDatabase(Integer player_id, Integer inventoryItem, String name,\n\t\t\tString description, Integer uses, Integer amount, Integer x, Integer y, Integer z, Integer damage) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "3d3dcf87290998cc10f081c4432f9d82", "score": "0.6022876", "text": "@Override\r\n public void addItem(GroceryItem aArg0) throws PantryException\r\n {\n\t\r\n }", "title": "" }, { "docid": "05be16248beaec710ed55771180b823e", "score": "0.5999187", "text": "int insertItemAt(ItemStack item, int slot, boolean simulate);", "title": "" }, { "docid": "59c138bd9877f9df70d2195fb972021e", "score": "0.5984943", "text": "@SuppressWarnings(\"deprecation\")\n public static ItemStack duplicateItem(ItemStack item) {\n if (item == null) {\n return new ItemStack(Material.AIR, 0, (short)0);\n }\n ItemStack clone = item.clone();\n if (item.getTypeId() < 0) {\n clone.setType(Material.AIR);\n }\n if (item.getDurability() < 0) {\n clone.setDurability((short) 0);\n }\n if (item.getAmount() < 1) {\n clone.setAmount(1);\n }\n return clone;\n }", "title": "" }, { "docid": "ca6750c793d56db585236bbc2ffa93a8", "score": "0.5982193", "text": "@Test\n public void addItemsToBasketWithNullItem() {\n try {\n basketTest.addItem(bike, 2);\n fail(\"NullPointerException was not thrown.\");\n }\n catch (NullPointerException e) {\n assertEquals(\"Choose item.\", e.getMessage());\n }\n }", "title": "" }, { "docid": "f64c40b8c8292a71cf6dbc51bb3e683c", "score": "0.5969048", "text": "public ItemStack pickUpQuiverItemStack(EntityPlayerBase player, ItemStack stack)\r\n\t{\r\n\t\tint slot;\r\n\t\tint size = stack.getStackSize();\t\t\r\n\t\tplayer.onInventoryChange();\r\n\t\t\t\r\n\t\tif((slot = doesPartialQuiverStackExist(stack)) != -1) //Is there already a partial stack of the item?\r\n\t\t{\r\n\t\t\tplayer.changedInventorySlots.add(\"q \" + slot);\r\n\t\t\tif(quiver[slot].getStackSize() + size > quiver[slot].getMaxStackSize()) //Is there more than enough to fill that stack? is so fill up that stack and continue;\r\n\t\t\t{\r\n\t\t\t\tint t = stack.getMaxStackSize() - quiver[slot].getStackSize();\r\n\t\t\t\tsize -= t;\r\n\t\t\t\tquiver[slot].addToStack(t);\t\t\t\t\r\n\t\t\t}\r\n\t\t\telse //If there isn't, add the stacks and return\r\n\t\t\t{\r\n\t\t\t\tquiver[slot].addToStack(size);\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\t\t\r\n\t\tif((slot = getFirstEmptyQuiverSlot()) == -1) //Is there A free inventory space? If not return what's left of the itemStack \r\n\t\t{\r\n\t\t\tstack.setStackSize(size);\r\n\t\t\treturn stack;\r\n\t\t}\r\n\t\telse //If there is space, Start adding items to the inventory\r\n\t\t{\r\n\t\t\tfor(int i = 0; i < size; )\r\n\t\t\t{\r\n\t\t\t\tslot = getFirstEmptyQuiverSlot(); //Get first empty slot\r\n\t\t\t\tif(slot == -1) break;\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tplayer.changedInventorySlots.add(\"q \" + slot);\r\n\t\t\t\t\tif(size > stack.getMaxStackSize()) //Is there more than a stack of the item? if so loop again\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tquiver[slot] = new ItemStack(stack.getItemID(), stack.getStackSize());\r\n\t\t\t\t\t\tquiver[slot].setStackSize(stack.getMaxStackSize());\r\n\t\t\t\t\t\tsize -= stack.getMaxStackSize();\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse //If not, put what's left of the stack in the inventory and return\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tquiver[slot] = new ItemStack(stack.getItemID(), stack.getStackSize());\r\n\t\t\t\t\t\tquiver[slot].setStackSize(size);\r\n\t\t\t\t\t\tsize = 0;\r\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\t\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tstack.setStackSize(size);\r\n\t\treturn stack;\r\n\t}", "title": "" }, { "docid": "ebb078f0189e91cf13becbda9928c981", "score": "0.59539986", "text": "public int addItem(Item item, int n){\r\n if (item == null || n<=0){\r\n System.out.println(GENERAL_ERROR_MSG);\r\n return FAIL;\r\n }\r\n int itemVolume = item.getVolume();\r\n String itemName = item.getType();\r\n if (n*itemVolume<=availableCapacity){\r\n inventory.put(itemName,n+getItemCount(itemName));\r\n availableCapacity -= itemVolume*n;\r\n return SUCCESS;\r\n } else if (n*itemVolume>availableCapacity){\r\n System.out.println(FAIL_MSG+SPACE+NO_ROOM_MSG_1+SPACE+n+SPACE+NO_ROOM_MSG_2+\r\n SPACE+itemName);\r\n return FAIL;\r\n }\r\n System.out.println(GENERAL_ERROR_MSG);\r\n return FAIL;\r\n }", "title": "" }, { "docid": "499ccfaee80cede760f3c2ececc1c87d", "score": "0.59529316", "text": "private void insertItem() {\n ContentValues values = new ContentValues();\n values.put(InventoryEntry.COLUMN_ITEM_NAME, \"Iphone 420X\");\n values.put(InventoryEntry.COLUMN_ITEM_PRICE, 2000);\n values.put(InventoryEntry.COLUMN_ITEM_QUANTITY, 7);\n values.put(InventoryEntry.COLUMN_ITEM_LOCATION, InventoryEntry.LOCATION_STOCK);\n values.put(InventoryEntry.COLUMN_ITEM_SUPPLIER, \"Apple\");\n values.put(InventoryEntry.COLUMN_ITEM_SUPPLIER_CONTACT, \"777777777\");\n\n Uri newUri = getContentResolver().insert(InventoryEntry.CONTENT_URI, values);\n }", "title": "" }, { "docid": "4ba87e3c8798fa01db91e911e4f0c872", "score": "0.5944335", "text": "public void fill(Chest c) {\n\t\tc.getInventory().clear();\r\n\t\t// Some variable to determine which item to try and add and if we should add it\r\n\t\tfloat r = 0;\r\n\t\tint x = 0;\r\n\t\t// Loop thru each chest slot and attempt to add an item\r\n\t\tfor(int i = 0; i < c.getInventory().getSize(); i++) {\r\n\t\t\tr = rand.nextFloat();\r\n\t\t\tx = rand.nextInt(fill.size());\r\n\t\t\tif(r < fill.get(x).getValue()) {\r\n\t\t\t\tc.getInventory().setItem(i, new ItemStack(fill.get(x).getKey(), 1));\r\n\t\t\t}\r\n\t\t}\r\n\t\t// If there are any diamond or iron remove all sticks or vice-versa\r\n\t\t// Stick takes precedence if lower tier chests, diamond/iron if upper tier\r\n\t\tif(tier >= 1) {\r\n\t\t\tif(c.getInventory().contains(Material.IRON_INGOT) || c.getInventory().contains(Material.DIAMOND)) {\r\n\t\t\t\tc.getInventory().remove(Material.STICK);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tif(c.getInventory().contains(Material.STICK)) {\r\n\t\t\t\tc.getInventory().remove(Material.IRON_INGOT);\r\n\t\t\t\tc.getInventory().remove(Material.DIAMOND);\r\n\t\t\t}\r\n\t\t}\r\n\t\t// If nothing got added, add something\r\n\t\tboolean empty = true;\r\n\t\tIterator<ItemStack> iter = c.getInventory().iterator();\r\n\t\twhile(iter.hasNext()) {\r\n\t\t\tif(iter.next() != null) {\r\n\t\t\t\tempty = false;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\tg.p.getLogger().info(\"IS EMPTY: \" + empty);\r\n\t\tif(empty) {\r\n\t\t\t// Give it an apple in a random slot\r\n\t\t\tc.getInventory().setItem(rand.nextInt(c.getInventory().getSize()), new ItemStack(Material.APPLE, 1));\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "1713762bd669207606e695cb79229823", "score": "0.59344804", "text": "public void addItem(Item item){\n }", "title": "" }, { "docid": "e838b75e81fc345b6ffce9e1448e2490", "score": "0.59307724", "text": "public static void clearInventory() {\r\n ENTRY_LIST.clear();\r\n }", "title": "" }, { "docid": "44a69e90264a4484d0eac8ebaaa0daec", "score": "0.59301615", "text": "@Test\r\n\tpublic void testAddInventoryItemOnTheSameItem() {\r\n\t\tassertFalse(myAuction.checkForDuplicates(myDuplicateItem));\r\n\t}", "title": "" }, { "docid": "b9330666ee9e41312273493599451a83", "score": "0.5929715", "text": "private static void addAnItem() {\n\t\t\tSystem.out.print(\"Enter a pet name: \");\n\t\t\tString name = in.nextLine();\n\t\t\tSystem.out.print(\"Enter a owner name: \");\n\t\t\tString owner = in.nextLine();\n\t\t\tListPet toAdd = new ListPet(name, owner);\n\t\t\tlih.insertItem(toAdd);\n\n\t\t}", "title": "" }, { "docid": "5ee26077278b07f9b9a42b2240a30560", "score": "0.5903207", "text": "public Item() {\n\t\tname = \"\";\n\t\tprice = 0;\n\t\tquantity = 0;\n\t\tweight = 0;\n\t\t//item_type = \"\";\n\t}", "title": "" }, { "docid": "6fdfc89dcbf83294dd1da71abf865bef", "score": "0.590145", "text": "private void addBIToWorldInventory(){\r\n\t\t\t\t\t\t\r\n\t\tif (dataSphere.getWorldInventory() != null){\r\n\t\t\tSystem.out.println(\"Adding inventory to WorldInventory\");\r\n\t\t\tdataSphere.setInventory1(dataSphere.getWorldInventory());\r\n\t\t\tdataSphere.setInventory2(inventoryJPanel.getBasicInventory());\r\n\t\t\tinventoryManager.performAction(\"addToInventory\", dataSphere);\r\n\t\t}\r\n\t\telse{\r\n\t\t\tSystem.out.println(\"No World Inventory\");\r\n\t\t\tJOptionPane.showMessageDialog(inventoryJPanel.getJFrame(), \"You must have an active World Inventory first.\");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "d8e100bd5745bb1be4e666a85b022173", "score": "0.589818", "text": "public void addItem(int index){\r\n Item item = Main.getItemList()[index];\r\n if (item.getStock()>0){\r\n basketItems[index]++;\r\n item.decrementStock();\r\n System.out.println(\"Added 1 \"+item.getName()+\" to the basket.\");\r\n }else{\r\n System.out.println(\"Sorry, \"+item.getName()+\" is out of stock.\");\r\n }\r\n }", "title": "" }, { "docid": "7c5bd4bb4d2c12ae5a382c9af0d44f8f", "score": "0.5891607", "text": "public void addItem(Item item){\r\n push(item);\r\n }", "title": "" }, { "docid": "e5d0cd8484a7e124bf27e12bd92d9c7b", "score": "0.58870286", "text": "public InventoryItem(String iName){\r\n this.item_name = iName;\r\n this.i_status = true;\r\n }", "title": "" }, { "docid": "fd902b4464c9d0cdb43d75802d27ef19", "score": "0.5880223", "text": "public void addToInventory(ActionEvent event) {\n String product = productTextField.getText();\n String description = descriptionTextField.getText().equals(\"\") ? \"-\" \n : descriptionTextField.getText();\n String comment = commentTextField.getText().equals(\"\") \n ? \"-\" \n : commentTextField.getText();\n\n double price = priceTextField.getText().equals(\"\") \n ? 0.0 \n : Double.parseDouble(priceTextField.getText().trim());\n int stock = stockTextField.getText().equals(\"\") \n ? 0 \n : (int) Double.parseDouble(stockTextField.getText().trim());\n\n if (product.equals(\"\")) {\n Tooltip tip;\n tip = new Tooltip(\"Product cannot be empty.\");\n tip.setAutoHide(true);\n tip.show(salesAddButton.getScene().getWindow());\n return;\n } else {\n try {\n InventoryLoader iv = new InventoryLoader();\n iv.loadEntry(product, description, stock, price, comment);\n inventoryTableView.getItems().clear();\n inventoryTableView.getItems().addAll(iv.getInvetory());\n // clear text fields after update\n productTextField.clear();\n descriptionTextField.clear();\n stockTextField.clear();\n priceTextField.clear();\n commentTextField.clear();\n\n } catch (Exception ex) {\n Alert alert = new Alert(Alert.AlertType.ERROR,\n \"Cannot update database. \"\n + \"Make sure entered data is correct.\");\n alert.setTitle(\"Error, could not update databas. \");\n alert.setHeaderText(\"Update Failed.\");\n alert.showAndWait();\n // log error\n Trace.getTrace().log(this.getClass(), Trace.Levels.ERROR, ex);\n }\n\n }\n }", "title": "" }, { "docid": "49dfa6486f9d208a5d4499eed3afa3c3", "score": "0.5875964", "text": "public void pickUpItem()\n\t{\n\t\t// Find out what item is underneath the player\n\t\tint itemToAdd = itemGrid[currentRow + 1][currentColumn + 1];\n\t\t// Ends the game if the player picks up the key\n\n\t\tif (itemToAdd == 1)\n\t\t{\n\t\t\tnoOfBolts++;\n\t\t}\n\t\telse if (itemToAdd == 2)\n\t\t{\n\t\t\t// Animates the end of the game\n\t\t\tanimateEnding = true;\n\t\t\tfor (int spin = 0; spin < 10; spin++)\n\t\t\t{\n\t\t\t\tfor (int frame = 0; frame < 3; frame++)\n\t\t\t\t{\n\t\t\t\t\tendSceneFrame = frame;\n\t\t\t\t\tpaintImmediately(currentColumn * IMAGE_WIDTH,\n\t\t\t\t\t\t\tcurrentRow\n\t\t\t\t\t\t\t\t\t* IMAGE_WIDTH, IMAGE_WIDTH, IMAGE_WIDTH);\n\t\t\t\t\tdelay(28);\n\t\t\t\t}\n\t\t\t}\n\t\t\tanimateEnding = false;\n\n\t\t\tsaveMap();\n\t\t\tcurrentMapColumn = 12;\n\t\t\tcurrentMapRow = 0;\n\t\t\tmapStatus = 2;\n\t\t\tsetUpMapGrid(MAP_NO[currentMapRow][currentMapColumn],\n\t\t\t\t\tITEM_MAP_NO[currentMapRow][currentMapColumn]);\n\t\t\tendMessageIsDisplayed = true;\n\t\t\treturn;\n\t\t}\n\t\t// Searches for the inventory slot to add the item to. If there are no\n\t\t// matches to the item, an empty slot is found. If there is a match, the\n\t\t// slot of the match is found\n\t\tint inventorySpotToAdd = 0;\n\t\twhile (inventory[0][inventorySpotToAdd] != 0\n\t\t\t\t&& inventory[0][inventorySpotToAdd] != itemToAdd)\n\t\t{\n\t\t\tinventorySpotToAdd++;\n\t\t}\n\t\t// Adds the item to the specified slot, and adds one to the quantity of\n\t\t// the item\n\t\tinventory[0][inventorySpotToAdd] = itemToAdd;\n\t\tinventory[1][inventorySpotToAdd]++;\n\t\t// If a block is removed from the top of a button, any lowered spikes\n\t\t// are raised\n\t\tif (itemGrid[currentRow + 1][currentColumn + 1] == 5\n\t\t\t\t&& mapGrid[currentRow + 1][currentColumn + 1] == 2)\n\t\t{\n\t\t\tfor (int row = 1; row < mapGrid.length - 1; row++)\n\t\t\t{\n\t\t\t\tfor (int column = 1; column < mapGrid[0].length; column++)\n\t\t\t\t{\n\t\t\t\t\tif (mapGrid[row][column] == 3)\n\t\t\t\t\t{\n\t\t\t\t\t\tmapGrid[row][column] = 4;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// Reassigns 0 at the location of the item on the itemGrid\n\t\titemGrid[currentRow + 1][currentColumn + 1] = 0;\n\t}", "title": "" }, { "docid": "95f91a94e0fadee4afc48039a016b82f", "score": "0.5872985", "text": "void addTicketsInventory();", "title": "" }, { "docid": "861a788d17c8d886ae7e37a3d31892f7", "score": "0.58723134", "text": "public void addItem(){\r\n tableView.getItems().add(0, new ShoppingItem(0, \"New Item\"));\r\n }", "title": "" }, { "docid": "ac2c9dbb8a4ea6b625eb08d30c2501df", "score": "0.5871153", "text": "public void addItem() {\r\n\tString prod = read.readAndReturn(\"Enter Product ID\");\r\n\t\r\n\t\r\n\t\r\n\t\r\n\tString q = read.readAndReturn(\"Enter the Quantity\");\r\n\tif(isInteger(q)){\r\n\t receipt.addItemToSale(prod, Integer.valueOf(q));\r\n\t}\r\n\telse {\r\n\t write.write(\"This is not a valid quantity. Please enter an integer\");\r\n\t}\r\n\t\r\n }", "title": "" }, { "docid": "d096416295e9d92a3d3798d6e3b0c104", "score": "0.5869563", "text": "@Before\r\n\tpublic void createDryItem() throws StockException{\r\n\t\tapple = new Item(\"apple\", 1.2, 2.3, 3, 4);\r\n\t\tbanana = new Item(\"banana\", 6.7, 7.8, 8, 9, 10.1);\r\n\t}", "title": "" }, { "docid": "96edd239317c2b8f8d66afe22a53f490", "score": "0.5863868", "text": "public void addItem(Item currentItem)\n {\n itemsRoom.add(currentItem);\n }", "title": "" }, { "docid": "d041aceffe7fc93c606009332b3479f3", "score": "0.58629024", "text": "public void addInventary(Item i, int quant) {\r\n // TODO - implement Character.addInventary\r\n if(this.inventory.containsKey(i)){\r\n int quantity = this.inventory.get(i);\r\n quantity = quantity + quant;\r\n this.inventory.replace(i, quantity);\r\n }\r\n else{\r\n this.inventory.put(i, quant);\r\n }\r\n }", "title": "" }, { "docid": "d4d113d43b873f837166fb801e265410", "score": "0.5848111", "text": "public void addItem(View view) {\n // Check if the name is valid\n EditText name = findViewById(R.id.text_name);\n if (name.getText().length() == 0 || name.getText().toString().equals(\"\")) {\n Toast.makeText(this, getString(R.string.item_name_warning), Toast.LENGTH_SHORT).show();\n return;\n }\n // Check if the price is valid\n EditText price = findViewById(R.id.text_price);\n if (price.getText().length() == 0 || Double.isNaN(Double.parseDouble(price.getText().toString()))) {\n Toast.makeText(this, getString(R.string.item_price_warning), Toast.LENGTH_SHORT).show();\n return;\n }\n // Get the ingredients\n EditText ingredients = findViewById(R.id.text_ingredients);\n\n // Add the item\n Item item = new Item(name.getText().toString(), Double.parseDouble(price.getText().toString()),\n ingredients.getText().toString(), type.ordinal(), WTPActivity.selectedFolderID);\n item.id = db.addItem(item);\n if (item.id != -1) {\n Toast.makeText(this, getString(R.string.item_add_success), Toast.LENGTH_LONG).show();\n setResult(Activity.RESULT_OK, null);\n } else {\n Toast.makeText(this, getString(R.string.item_add_error), Toast.LENGTH_LONG).show();\n }\n finish();\n }", "title": "" }, { "docid": "6cc5006f8b160be5f924d31c2f55bdad", "score": "0.5846584", "text": "public BookStoreItem() {\r\n\t\ttitle = null;\r\n\t\tprice = 0.0;\r\n\t\tinventory = 0;\r\n\t}", "title": "" }, { "docid": "29c2c2bb5fd97a7936afbcf946657a69", "score": "0.58371294", "text": "public Item addItemToInventory(Item newItem) throws SQLException {\n\t\t\n\t\tif(getItemByName(newItem.getName()) != null) {\n\t\t\tdeleteItemByName(newItem.getName());\n\t\t}\n\t\tdbConnection.connect();\n\t\tPreparedStatement preparedStatement = dbConnection.getJdbcConnection().prepareStatement(\"insert into fruits values(?,?)\");\n\t\tpreparedStatement.setString(1, newItem.getName());\n\t\tpreparedStatement.setInt(2, newItem.getQuantity());\n\t\t\n\t\tif(preparedStatement.executeUpdate()>0) {\n\t\t\treturn newItem;\n\t\t}\n\t\t\n\t\tpreparedStatement.close();\n\t\tdbConnection.disconnect();\n\t\treturn newItem;\n\t}", "title": "" }, { "docid": "883dec62a10340a6183bc8bf48623d00", "score": "0.5810037", "text": "public void addItem (Item item) {\n carrying.add(item);\n }", "title": "" }, { "docid": "a47b626eb223a94c9fb9ba42d3e21275", "score": "0.57974577", "text": "public BlankUnit(){\n Weapon[] inventory = new Weapon[3];\n inventory[0] = new NoWeapon();\n inventory[1] = new NoWeapon();\n inventory[2] = new NoWeapon();\n name = \"Blank\";\n allegiance = \"Nothing\";\n symbol = \" \";\n color = \"\\u001B[31m\\u001B[1m\"; //Red and High Intensity\n level = 0;\n experience = 0;\n maxHP = 0;\n HP = 0;\n ATK = 0;\n DEF = 0;\n MAG = 0;\n RES = 0;\n SKL = 0;\n SPD = 0;\n LUK = 0;\n maxMove = 0;\n drop = 0;\n arrayholder = -1;\n }", "title": "" }, { "docid": "fb3fc7a2f067cf22187520346dfbb583", "score": "0.57932657", "text": "@Transactional\n\tpublic void createItemInventory(ItemInventory itemInventory) {\n\t\tem.persist(itemInventory);\n\t}", "title": "" }, { "docid": "f4a33eb1cad4d5de67961fb25485e31f", "score": "0.5791337", "text": "public void resetSlots() {\n\n IProduct item = theShop.getProductList(thePlayer.worldObj, thePlayer).get(currentRecipeIndex);\n\n int money = MCEconomyAPI.getPlayerMP(thePlayer);\n\n /*if(thePlayer!=null){\n \tNBTTagCompound nbt = thePlayer.getEntityData();\n \tmoney = nbt.getInteger(\"money\");\n \t//System.out.println(\"resetSlots0\"+money);\n }/*else if(thePlayer2!=null){\n \tNBTTagCompound nbt = thePlayer2.getEntityData();\n \tmoney = nbt.getInteger(\"money\");\n \tSystem.out.println(\"resetSlots0\"+money);\n }*/\n\n if (money >= item.getCost(theShop, thePlayer.worldObj, thePlayer) && item.canBuy(theShop, thePlayer.worldObj, thePlayer)) {\n this.setInventorySlotContents(0, item.getItem(theShop, thePlayer.worldObj, thePlayer).copy());\n //System.out.println(\"resetSlots\");\n } else {\n this.setInventorySlotContents(0, (ItemStack) null);\n\n //System.out.println(\"resetSlots2\");\n }\n //System.out.println(\"resetSlots\");\n\n }", "title": "" }, { "docid": "7ae08ae2132adc40df932cc763fa2040", "score": "0.57895076", "text": "@Override\n\tpublic void pickItem(ItemEntity item,Inventory inventory) {\n\t\tthis.setInInventory(true);\n\t\tboolean stacking =false;\n\t\tfor(int i=0;i<inventory.slots.length;i++){\n\t\t\tfor(int j=0;j<inventory.slots[0].length;j++){\n\t\t\t\tif(inventory.slots[i][j]!=null)\n\t\t\t\tif(inventory.slots[i][j].getItem().getName().equals(this.getName())){\n\t\t\t\t\tinventory.slots[i][j].setStack(inventory.slots[i][j].getStack()+1);\n\t\t\t\t\tstacking=true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tboolean found=false;\n\t\tif(!stacking){\n\t\t\tfor(int i=0;i<inventory.slots.length;i++){\n\t\t\t\tfor(int j=0;j<inventory.slots[0].length;j++){\n\t\t\t\t\tif(!found)\n\t\t\t\t\tif(inventory.slots[i][j]==null){\n\t\t\t\t\t\tinventory.slots[i][j]=new InventorySlot(item);\n\t\t\t\t\t\tinventory.slots[i][j].setStack(1);\n\t\t\t\t\t\tfound=true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "43221a4362ee70d32a8ee8a2b9f5484e", "score": "0.5785364", "text": "public void takeItem(Room room, String name)\n {\n\n inventory.setItem(name, room.getItem(name));\n \n }", "title": "" }, { "docid": "3d9305cb36f7e780b348f6a68429eca3", "score": "0.5784928", "text": "public void setInventory(String input)\r\n\t{\r\n\t\tinventory = input;\r\n\t}", "title": "" }, { "docid": "c85660d05912469b8758a22b706daee1", "score": "0.5784177", "text": "private void addRIToWorldInventory(){\r\n\t\t\r\n\t\tif (dataSphere.getWorldInventory() != null){\r\n\t\t\tSystem.out.println(\"Adding Region to WorldInventory\");\r\n\t\t\tdataSphere.setInventory1(dataSphere.getWorldInventory());\r\n\t\t\tdataSphere.setInventory2(inventoryJPanel.getRegion());\r\n\t\t\tinventoryManager.performAction(\"addToInventory\", dataSphere);\r\n\t\t}\r\n\t\telse{\r\n\t\t\tSystem.out.println(\"No World Inventory\");\r\n\t\t\tJOptionPane.showMessageDialog(inventoryJPanel.getJFrame(), \"You must have an active World Inventory first.\");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "6c81f4751661c80d92bb3d9e6182fe60", "score": "0.5778582", "text": "public void AddItem(Item i) {\n\t\tItems.add(i);\n\t}", "title": "" }, { "docid": "afc7c557b50f073aabaa616cac9aa253", "score": "0.5761402", "text": "public static InventoryItem[] createItems() {\n\r\n InventoryItem[] inventory = new InventoryItem[7];\r\n\r\n InventoryItem oxen = new InventoryItem();\r\n oxen.setDescription(ItemType.Oxen.name());\r\n oxen.setQuantityInStock(0);\r\n oxen.setRequiredAmount(0);\r\n oxen.setCost(40.00);\r\n inventory[ItemType.Oxen.ordinal()] = oxen;\r\n\r\n InventoryItem food = new InventoryItem();\r\n food.setDescription(ItemType.Food.name());\r\n food.setQuantityInStock(0);\r\n food.setRequiredAmount(0);\r\n food.setCost(00.20);\r\n inventory[ItemType.Food.ordinal()] = food;\r\n\r\n InventoryItem clothing = new InventoryItem();\r\n clothing.setDescription(ItemType.Clothing.name());\r\n clothing.setQuantityInStock(0);\r\n clothing.setRequiredAmount(0);\r\n clothing.setCost(10.00);\r\n inventory[ItemType.Clothing.ordinal()] = clothing;\r\n\r\n InventoryItem ammunition = new InventoryItem();\r\n ammunition.setDescription(ItemType.Ammunition.name());\r\n ammunition.setQuantityInStock(0);\r\n ammunition.setRequiredAmount(0);\r\n ammunition.setCost(2.00);\r\n inventory[ItemType.Ammunition.ordinal()] = ammunition;\r\n\r\n InventoryItem wheel = new InventoryItem();\r\n wheel.setDescription(ItemType.Wheel.name());\r\n wheel.setQuantityInStock(0);\r\n wheel.setRequiredAmount(0);\r\n wheel.setCost(10.00);\r\n inventory[ItemType.Wheel.ordinal()] = wheel;\r\n\r\n InventoryItem axle = new InventoryItem();\r\n axle.setDescription(ItemType.Axle.name());\r\n axle.setQuantityInStock(0);\r\n axle.setRequiredAmount(0);\r\n axle.setCost(10.00);\r\n inventory[ItemType.Axle.ordinal()] = axle;\r\n\r\n InventoryItem tongue = new InventoryItem();\r\n tongue.setDescription(ItemType.Tongue.name());\r\n tongue.setQuantityInStock(0);\r\n tongue.setRequiredAmount(0);\r\n tongue.setCost(10.00);\r\n inventory[ItemType.Tongue.ordinal()] = tongue;\r\n\r\n return inventory;\r\n }", "title": "" }, { "docid": "18f0808f2807279030f35162323a46c8", "score": "0.5758228", "text": "public void addItemToSales(ActionEvent event) {\n String id = salesItemIdTextField.getText();\n String q = salesQuantityTextField.getText();\n\n SalesEntryObject salesObj = null;\n InventoryObject obj = null;\n Tooltip tip = null;\n if (id.equals(\"\")) {\n tip = new Tooltip(\"ID cannot be empty.\");\n tip.setAutoHide(true);\n tip.show(salesAddButton.getScene().getWindow());\n return;\n }\n if (q.equals(\"\")) {\n tip = new Tooltip(\"Amount cannot be empty.\");\n tip.setAutoHide(true);\n tip.show(salesAddButton.getScene().getWindow());\n return;\n }\n try {\n InventoryLoader iv = new InventoryLoader();\n\n obj = iv.getEntry(Integer.parseInt(id));\n if (obj != null) {\n salesObj = new SalesEntryObject(obj.getProduct(),\n obj.getDescription(), Integer.parseInt(q),\n obj.getPrice(), obj.getId());\n if (Integer.parseInt(q) <= obj.getStock()) {\n customerInfoTable.getItems().add(salesObj);\n salesQuantityTextField.clear();\n salesItemIdTextField.clear();\n updateSalesTotal();\n } else {\n Alert alert = new Alert(Alert.AlertType.INFORMATION,\n \"Not enough \" + obj.getProduct() + \" in Inventory.\");\n alert.setTitle(\"Insufficient Inventory\");\n alert.setHeaderText(\"Insufficient Inventory\");\n alert.showAndWait();\n }\n\n } else {\n Alert alert = new Alert(Alert.AlertType.INFORMATION, \"Item ID \" \n + id + \" does not exist.\");\n alert.setHeaderText(\"Item is not in inventoryo\");\n alert.setTitle(\"No inventory item\");\n alert.showAndWait();\n }\n } catch (Exception ex) {\n // log error\n Trace.getTrace().log(this.getClass(), Trace.Levels.ERROR, ex);\n }\n\n }", "title": "" }, { "docid": "33b0d09eb887632f585bd0ec6d5a81ac", "score": "0.5757636", "text": "protected boolean isInventoryEmpty() {\n return this.isInventoryEmpty(0, this.inv.size());\n }", "title": "" }, { "docid": "b89bdcbeb9ea8cb2ad3b54537fff21fe", "score": "0.5755441", "text": "@Override\n\tpublic void additem() {\n\t\t\n\t}", "title": "" }, { "docid": "8e26620e3fdf3ff5e68f00eda59802d9", "score": "0.5753912", "text": "private void buyItem(Hero hero, ItemTemplate itemTemplate){\n\t\t// If either hero doesn't have item gold or not enough stack of it\n\t\tif(!hero.canAfford(itemTemplate.getPrice())) {\n\t\t\tSystem.out.println(\"Vous n'avez pas assez d'argent !\");\n\t\t\treturn;\n\t\t}\n\t\t// Create a new ItemInstance from the template\n\t\tItemInstance itemInstance = ItemGenerator.getInstance().createItem(itemTemplate);\n\t\tif(hero.getInventory().addItem(itemInstance)){\n\t\t\thero.decreaseGold(itemTemplate.getPrice());\n\t\t} else {\n\t\t\tSystem.out.println(\"Impossible d'ajouter l'item à votre inventaire!\");\n\t\t}\n\t}", "title": "" }, { "docid": "54c87ede289ed62d16e3022e67f66f10", "score": "0.5746184", "text": "public void addSlots(InventoryPlayer aPlayerInventory) {\n //\n }", "title": "" }, { "docid": "324386e2cbdf723b0c81d1bd613f1df6", "score": "0.5742188", "text": "Item(){\r\n\t\tprice = 0.0;\r\n\t\tweightInOunces = 0;\r\n\t\tdescription = \"Sample Item\";\r\n\t\tquantity = 1;\r\n\t}", "title": "" }, { "docid": "20ea59bad8ffc74bef43ed65b72a3b59", "score": "0.57415926", "text": "private void createNewInventory(Message<JsonObject> message) {\n\t\tJsonObject body = message.body();\n\t\tRegisterNewInventory registerNewInventory = new RegisterNewInventory();\n\t\t\n\t\t//Create ID here because it's a new inventory\n\t\tregisterNewInventory.setCommandId(System.currentTimeMillis()); \n\t\tregisterNewInventory.setName(body.getString(\"name\"));\n\t\tregisterNewInventory.setDesc(body.getString(\"desc\"));\n\t\tregisterNewInventory.setCategory(body.getString(\"category\"));\n\t\tregisterNewInventory.setQty(Double.valueOf(body.getString(\"qty\")));\n\n\t\t// Send to command bus\n\t\tthis.commandBus.write(KafkaProducerRecord.create(\"CMD_TOPIC\", registerNewInventory.getCommandId(), \n\t\t\tregisterNewInventory), done -> {\n\t\t\t\tif (done.succeeded()) {\n\t\t\t\t\tRecordMetadata recordMetadata = done.result();\n\t\t\t\t\tLOGGER.info(\"Message written on topic=\" + recordMetadata.getTopic() + \", partition=\"\n\t\t\t\t\t\t\t+ recordMetadata.getPartition() + \", offset=\" + recordMetadata.getOffset());\n\n\t\t\t\t\tmessage.reply(new JsonObject().put(\"response\", \"success\"));\n\t\t\t\t} else {\n\t\t\t\t\tLOGGER.error(done.cause().getMessage(), done.cause());\n\t\t\t\t\tmessage.fail(1, done.cause().getMessage());\n\t\t\t\t}\n\t\t\t});\n\t}", "title": "" }, { "docid": "9076d86b90c4fd77040dede67edbddd9", "score": "0.57406527", "text": "public static void addItem(InventoryItem inventoryItem, int item) {\n\t\t\tif(items[item] != null) {\n\t\t\t\titems[item] = inventoryItem;\n\t\t\t}\n\t}", "title": "" }, { "docid": "9226f6d730f4b5cb50026c81a190a0f2", "score": "0.57373226", "text": "public Command addInventory() throws IOException {\n\t //Read in amt coffee\n\t String coffeeString = inputOutput(\"\\nPlease enter the units of coffee to add: \");\n\t \t \n\t //Read in amt milk\n\t String milkString = inputOutput(\"\\nPlease enter the units of milk to add: \");\n\t \t \n\t //Read in amt sugar\n\t String sugarString = inputOutput(\"\\nPlease enter the units of sugar to add: \");\n\t \t \n\t //Read in amt chocolate\n\t String chocolateString = inputOutput(\"\\nPlease enter the units of chocolate to add: \");\n\t \n\t return new AddInventory(Integer.parseInt(coffeeString), \n\t \t\tInteger.parseInt(milkString), \n\t \t\tInteger.parseInt(sugarString), \n\t \t\tInteger.parseInt(chocolateString));\n }", "title": "" }, { "docid": "73e269754f8f5511b7147a784885ae27", "score": "0.5733994", "text": "private void getAddAction() {\r\n\t\t//sets the text to blank so you don't have to erase it yourself each time\r\n\t\t//basically reseting the menu to its default\r\n\t\taddItem.getChildren().clear();\r\n\t\tname.setText(\"\");\r\n\t\tdescription.setText(\"\");\r\n\t\tquantity.setText(\"\");\r\n\t\tweight.setText(\"\");\r\n\t\tvalue.setText(\"\");\r\n\t\td4.setText(\"\");\r\n\t\td6.setText(\"\");\r\n\t\td8.setText(\"\");\r\n\t\td10.setText(\"\");\r\n\t\td12.setText(\"\");\r\n\t\trange.setSelected(false);\r\n\t\tnormalRange.setText(\"\");\r\n\t\tmaxRange.setText(\"\");\r\n\t\tproperties.getItems().clear();\r\n\t\tpropertyEnter.setText(\"\");\r\n\t\tstrengthRequirement.setText(\"\");\r\n\t\tarmorClass.setText(\"\");\r\n\t\thasDexMod.setSelected(false);\r\n\t\tmaxDex.setText(\"\");\r\n\t\t\r\n\t\t\r\n\t\tnormalRange.setDisable(true);\r\n\t\tmaxRange.setDisable(true);\r\n\t\t\r\n\t\taddItemStage = new Stage();\r\n\t\taddItemStage.setTitle(\"Create Item\");\r\n\t\t\r\n\t\tHBox p = new HBox();\r\n\t\t\r\n\t\tp.getChildren().addAll(getAddMenu());\r\n\t\tp.setAlignment(Pos.CENTER);\r\n\t\t\r\n\t\taddItemScene = new Scene(p,500,350);\r\n\t\t\r\n\t\taddItemStage.setScene(addItemScene);\r\n\t\t\r\n\t\taddItemStage.show();\r\n\t}", "title": "" }, { "docid": "e90f49c572983ee12b0168e158a18cb1", "score": "0.57308435", "text": "private void addItem(ItemDTO item,int quantity){\n registeredItemsList.add(new ItemAndQuantity(item, quantity));\n //System.out.println(\"Item was added\");\n }", "title": "" }, { "docid": "77332028a3719d0e4e843601eda4b720", "score": "0.5730398", "text": "public void agregarItem(int cantidad,Producto producto){\n items.add(new Item(cantidad,producto));\n }", "title": "" }, { "docid": "589cf54e4f15879ae7f78bb5bfbdf96a", "score": "0.57210386", "text": "public void pickupItem(Player player, Room room)\n\t{\n\t\t//this.setRoomNum(0);\n\t\tplayer.addItem(this);\n\t\troom.removeItem(this);\n\t\tSystem.out.println(\" \" + this.getItemName() + \" has been picked up from the \" + room.getRoomName() + \" and successfully added to the player inventory.\");\n\t}", "title": "" }, { "docid": "80f8c22e46f13315b92339be3bd1e1cb", "score": "0.57203346", "text": "public Inventory(){\r\n\t\titems = new ArrayList<Item>();\r\n\t\tinventoryTile = Sprite.inventoryTile;\r\n\t\tnumHealth = 0;\r\n\t\tnumStam = 0;\r\n\t\tnumDamage = 0;\r\n\t}", "title": "" }, { "docid": "29981d8ee3251bc1698bcc786244fa3d", "score": "0.5711859", "text": "private static void addAnItem() {\n\t\tSystem.out.print(\"Enter the pet's type: \");\r\n\t\tString type = in.nextLine();\r\n\t\tSystem.out.print(\"Enter the pet's name: \");\r\n\t\tString name = in.nextLine();\r\n\t\tSystem.out.print(\"Enter the owner's name: \");\r\n\t\tString owner = in.nextLine();\r\n\t\tTableOwnerinfo toAdd = new TableOwnerinfo(type, name, owner);\r\n\t\toih.insertItem(toAdd);\r\n\t}", "title": "" }, { "docid": "39b8c1f0c7abad80da971356a903a8ef", "score": "0.57072216", "text": "void addItem(String name) {\n this.addItem(name, SINGLE_QUANTITY);\n }", "title": "" }, { "docid": "414cce47c022fb32b363bc9dc552272d", "score": "0.570607", "text": "public static void saferItemGive(PlayerInventory playerInventory, ItemStack item) {\r\n \t// After bukkit is fixed:\r\n \t// player.getInventory().addItem(givingItems);\r\n\t\t\r\n while (true) {\r\n // Do we already have a stack of it?\r\n int firstPartial = firstPartial(item, (ItemStack[])playerInventory.getContents());\r\n\r\n // Drat! no partial stack\r\n if (firstPartial == -1) {\r\n // Find a free spot!\r\n int firstFree = firstEmpty((ItemStack[])playerInventory.getContents());\r\n\r\n if (firstFree == -1) {\r\n // No space at all!\r\n // Bukkit returns unplaced items, but floAuction only calls this after checking for space.\r\n break;\r\n } else {\r\n \t// Again, floAuction checks for this elsewhere before calling this...technically this would never occur, no reason to code for it.\r\n \t\r\n // More than a single stack!\r\n/* if (item.getAmount() > getMaxStackSize(item)) {\r\n CraftItemStack stack = new CraftItemStack(item.getTypeId(), getMaxStackSize(item), item.getDurability());\r\n stack.addUnsafeEnchantments(item.getEnchantments());\r\n playerInventory.setItem(firstFree, stack);\r\n item.setAmount(item.getAmount() - getMaxStackSize(item));\r\n } else {*/\r\n // Just store it\r\n \tplayerInventory.setItem(firstFree, item);\r\n break;\r\n// }\r\n }\r\n } else {\r\n // So, apparently it might only partially fit, well lets do just that\r\n ItemStack partialItem = playerInventory.getItem(firstPartial);\r\n\r\n int amount = item.getAmount();\r\n int partialAmount = partialItem.getAmount();\r\n int maxAmount = partialItem.getMaxStackSize();\r\n\r\n // Check if it fully fits\r\n if (amount + partialAmount <= maxAmount) {\r\n partialItem.setAmount(amount + partialAmount);\r\n break;\r\n }\r\n\r\n // It fits partially\r\n partialItem.setAmount(maxAmount);\r\n item.setAmount(amount + partialAmount - maxAmount);\r\n }\r\n }\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "481d97f3ee8a596e4061d0952ad78ce4", "score": "0.5702446", "text": "@EventHandler\n\tpublic void onPlayerCraft(PrepareItemCraftEvent event) {\n if (event.isRepair()) {\n for (ItemStack item : event.getInventory()) {\n \tif (item != null && item.getType() != Material.AIR) {\n \t\tif (GeneralUtil.isProfessionItem(item)) {\n \t\t\tevent.getInventory().setResult(null);\n \t\t}\n \t}\n }\n }\n\t}", "title": "" }, { "docid": "7fffda7c4a98ada770f96f7e8c37f972", "score": "0.5697648", "text": "public void addNewItem(Item item) {\n //If passed all the checks, add the item to the list\n itemList.add(item);\n Collections.sort(itemList);\n System.out.println(\"Item has been added.\\n\");\n }", "title": "" } ]
6fa6b58d5e41f8388ffe1ff42e513416
Make a new connection to a Group Router
[ { "docid": "d022c8ecd23ed7f16a5e1f208b10f921", "score": "0.7195003", "text": "private void connectToGroupRouter(String grIP, int port) {\r\n\t\ttry{\r\n\t\t\t// Setup the server side connection data to Group Router\r\n\t\t\tgroupRouterAddress = InetAddress.getByName(grIP);\r\n\t\t\tendpoint = new InetSocketAddress(groupRouterAddress, port);\r\n\r\n\t\t\t//Make a TCP connection \r\n\t\t\tgroupRouterSock = new Socket();\r\n\r\n\t\t\t// Make the connection\r\n\t\t\ttry {\r\n\t\t\t\tgroupRouterSock.connect(endpoint);\r\n\t\t\t} catch(ConnectException e) {\r\n\t\t\t\tSystem.err.println(\"Cannot connect to server.\");\r\n\t\t\t\tSystem.exit(1);\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//Send PING message to give group router necessary info\r\n\t\t\tString ping = \"PING \" + csPort + \" \" + System.getProperty(\"line.separator\");\r\n\t\t\tthis.write(groupRouterSock, ping);\r\n\t\t\tthis.read(groupRouterSock);\r\n\t\t\t\r\n\t\t\t//Start new thread the infinitely reads and writes from Group Router\r\n\t\t\ttoGroupRouter = new ChatServerProcesses(this, groupRouterSock, clientSockets);\r\n\t\t\ttoGroupRouter.start();\r\n\t\t}\r\n\t\tcatch(Exception e) {\r\n\t\t\tSystem.err.println(\"Cannot connect to server.\");\r\n\t\t\tSystem.exit(1);\r\n\t\t\treturn;\r\n\t\t}\r\n\t}", "title": "" } ]
[ { "docid": "1613cbbf03463eec3282e4ddb7f78245", "score": "0.6253702", "text": "private void spawnOutgoingConnections() {\n \t}", "title": "" }, { "docid": "39fd37642cf5e388ae4813af4002f4b6", "score": "0.5722347", "text": "public void createGroup() {\n\n mManager.createGroup(mChannel, new WifiP2pManager.ActionListener() {\n @Override\n public void onSuccess() {\n\n Log.i(TAG, \"CreateGroup OK \");\n Toast.makeText(WifidirectScan.this, \"Gruppo creato con successo\", Toast.LENGTH_SHORT).show();\n sonoGO = true;\n\n }\n\n @Override\n public void onFailure(int reasonCode) {\n Log.i(TAG, \"CreateGroup NOT OK\");\n String codiceErrore = String.valueOf(reasonCode);\n Log.i(TAG, codiceErrore);\n }\n });\n\n }", "title": "" }, { "docid": "bf2b7a5616b5ae665c0cdce4d047144e", "score": "0.5664337", "text": "public void iniciarGrupo() {\n try {\n MULTCAST_ADDRESS = InetAddress.getByName(\"235.0.0.1\");\n GROUP_CONECTION = new MulticastSocket(CLIENT_PORT);\n GROUP_CONECTION.joinGroup(MULTCAST_ADDRESS);\n new ThreadCliente(GROUP_CONECTION).start();\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "cd9dccda062fd08b8722496e6e185c63", "score": "0.5619649", "text": "public void createRouter() {\r\n\t\trouter = new FatTreeRouter();\r\n\t}", "title": "" }, { "docid": "39b505f98fb09a0da72cebc16f7cb220", "score": "0.55949605", "text": "public static void main(String[] args) {\n // the host that has the Router at addr\n String remHost = \"localhost\";\n int remPort = 19191;\n\n // Set up Router\n try {\n int port = 19191;\n int r2r = 19192;\n\n RouterEnv routerEnv = new RouterEnv(port, r2r, \"Router-2\");\n Router router = routerEnv.getRouter();\n\n // check\n if (routerEnv.isActive()) {\n } else {\n throw new Exception(\"Router failed to start\");\n }\n\n // set ID\n router.setAddress(new GIDAddress(2));\n\n // connnect to the other router\n // first we tal kto my own ManagementConsole\n RouterInteractor selfInteractor = new RouterInteractor(\"localhost\", 18191);\n\n // then set up Router-to-Router data connection\n selfInteractor.createConnection(remHost + \":\" + remPort, 20);\n\n // and stop talking to the ManagementConsole\n selfInteractor.quit();\n\n\n\n } catch (Exception e) {\n System.err.println(\"SimpleConsumer exception: \" + e);\n e.printStackTrace();\n System.exit(2);\n }\n\n // allocate an AggPoint\n AggPoint aggPoint = new AggPoint();\n\n // process args\n int argc = args.length;\n\n for (int arg = 0; arg < argc; arg++) {\n String thisArg = args[arg];\n\n // check if its a flag\n if (thisArg.charAt(0) == '-') {\n // get option\n char option = thisArg.charAt(1);\n\n // gwet next arg\n String argValue = args[++arg];\n\n switch (option) {\n\n case 'i': {\n String[] parts = argValue.split(\"/\");\n Scanner sc = new Scanner(parts[0]);\n int addr = sc.nextInt();\n sc.close();\n sc = new Scanner(parts[1]);\n int port = sc.nextInt();\n sc.close();\n\n Address gidAddr = new GIDAddress(addr);\n\n SocketAddress newInputAddr = new SocketAddress(gidAddr, port);\n aggPoint.setInputAddress(newInputAddr);\n break;\n }\n\n case 'o': {\n String[] parts = argValue.split(\"/\");\n Scanner sc = new Scanner(parts[0]);\n int addr = sc.nextInt();\n sc.close();\n sc = new Scanner(parts[1]);\n int port = sc.nextInt();\n sc.close();\n Address gidAddr = new GIDAddress(addr);\n SocketAddress newOutputAddr = new SocketAddress(gidAddr, port);\n aggPoint.setOutputAddress(newOutputAddr);\n break;\n }\n\n case 'a': {\n if (argValue.equals(\"average\")) {\n aggPoint.setAggregateFn(AggregateFnSpecifer.Average);\n } else if (argValue.equals(\"variance\")) {\n aggPoint.setAggregateFn(AggregateFnSpecifer.Variance);\n } else if (argValue.equals(\"sum\")) {\n aggPoint.setAggregateFn(AggregateFnSpecifer.Sum);\n } else if (argValue.equals(\"min\")) {\n aggPoint.setAggregateFn(AggregateFnSpecifer.Min);\n } else if (argValue.equals(\"max\")) {\n aggPoint.setAggregateFn(AggregateFnSpecifer.Max);\n } else {\n System.err.println(\"AggPoint: unknown aggregation function \" + argValue);\n }\n break;\n }\n case 'f': {\n if (argValue.equals(\"always\")) {\n aggPoint.setFilter(FilterSpecifer.Always);\n } else if (argValue.equals(\"2%\")) {\n aggPoint.setFilter(FilterSpecifer.Percent2);\n } else if (argValue.equals(\"5%\")) {\n aggPoint.setFilter(FilterSpecifer.Percent5);\n } else if (argValue.equals(\"10%\")) {\n aggPoint.setFilter(FilterSpecifer.Percent10);\n } else {\n System.err.println(\"AggPoint: unknown filter \" + argValue);\n }\n break;\n }\n\n case 'l': {\n // assume a file name\n File potentialPath = new File(argValue);\n\n // check if directory part exists\n if (potentialPath.isDirectory() && potentialPath.canWrite()) {\n aggPoint.setCollectionPath(argValue);\n } else {\n System.err.println(\"AggPoint: cannot write file in directory \" + argValue);\n System.exit(1);\n }\n break;\n }\n\n case 't': {\n Scanner sc = new Scanner(argValue);\n int t = sc.nextInt();\n sc.close();\n aggPoint.setSleepTime(t);\n break;\n }\n\n case 'n': {\n aggPoint.setName(argValue);\n break;\n }\n\n default:\n System.err.println(\"AggPoint: unknown option \" + option);\n break;\n }\n\n }\n }\n\n\n // set up ProbeAttributes where there is one value from a Measurement\n List<ProbeAttribute> pList = new ArrayList<ProbeAttribute>();\n // field 0 is the value\n DefaultProbeAttribute pa0 = new DefaultProbeAttribute(0, \"value\", ProbeAttributeType.DOUBLE, \"n\");\n\n pList.add(pa0);\n\n aggPoint.setProbeAttributes(pList);\n\n // start the agg point\n aggPoint.start();\n }", "title": "" }, { "docid": "35592880a5daf024e60e495a64885218", "score": "0.55691457", "text": "public void startProtocol(int x) {\n z = z + x;\n if (z>0){\n discoverPeers();\n\n } else {\n\n // Nel metodo createGroup setto il flag sonoGo = TRUE\n createGroup();\n\n }\n }", "title": "" }, { "docid": "0a309b7847d7984921512525b61cc8a2", "score": "0.5523972", "text": "public IGroup createTeamRoom(String name, List<IRemoteConnection> members);", "title": "" }, { "docid": "c6ebe0402035aaa4d01a3196a7e13351", "score": "0.54858416", "text": "public void addConnection(Router theOther){\n Connection newConnection = new Connection(this, theOther);\n myConnections.add(newConnection);\n Connection newConnection2 = new Connection(theOther, this);\n theOther.myConnections.add(newConnection2);\n timeUpdate();\n }", "title": "" }, { "docid": "5929b45f54100a635b8932964e92d1fd", "score": "0.54734707", "text": "public void makeConnection() {\n try {\n socket.connect();\n //changeT(\"...Connection established and data link opened...\");\n } catch (IOException e) {\n changeT(\"Connection Failed\");\n }\n }", "title": "" }, { "docid": "1529dd8cd12f6ba435c83b802a724170", "score": "0.5425991", "text": "public abstract void connect(Network n);", "title": "" }, { "docid": "77535d8902e69302eef8d6f9ad64aa65", "score": "0.54187423", "text": "public abstract void connect();", "title": "" }, { "docid": "59cc393109ea7d07f0b829bc75bc550b", "score": "0.5413599", "text": "public static Group server(){\n final Server server = new Server ( ci, Executors.newSingleThreadScheduledExecutor () ); \n Group group = null;\n try {\n\t\t\tserver.connect ();\n\t \n\t\t\ttry {\n\t\t\t\tgroup = server.addGroup ( \"group\" );\n\t\t\t\t group.setActive ( true );\n\t\t\t} catch (NotConnectedException e) {\n\t\t\t\t\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (DuplicateGroupException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} \n\t // group is initially active ... just for demonstration \n\t \n\t\t} catch (IllegalArgumentException 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 (JIException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (AlreadyConnectedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn group; \n }", "title": "" }, { "docid": "5acf6c88aaf5ebed1404fece38b91dcb", "score": "0.5403732", "text": "void connect();", "title": "" }, { "docid": "724b26447292478e2ae7f956abb2b16d", "score": "0.53971887", "text": "protected abstract void connect(Gateway gateway);", "title": "" }, { "docid": "4d9ef5c8fd6b5ab1588fc2f0179ebecf", "score": "0.5388593", "text": "@Override\n public void onConnectionInfoAvailable(WifiP2pInfo info) {\n\n\n\n if (info.isGroupOwner && !isClientRegistrationStarted){\n\n umtConnection.startServerSocket(SERVER_PORT);\n isClientRegistrationStarted=true;\n isGroupOwner=true;\n\n Toast.makeText(mContext, \"Group Owner\", Toast.LENGTH_SHORT).show();\n\n }\n else if (!isClientConnected & !info.isGroupOwner & info.groupFormed) {\n\n umtCallbackConnectToService.response(true,0);\n\n InetAddress mAddress;\n mAddress=info.groupOwnerAddress;\n isGroupOwner=false;\n\n umtConnection.connectToServer(mAddress,SERVER_PORT ,CurrentDevice.deviceAddress);\n isClientConnected=true;\n\n Toast.makeText(mContext, \"Its Client\", Toast.LENGTH_SHORT).show();\n\n }\n\n\n }", "title": "" }, { "docid": "ab9b6ac2c148346f1a967b4afd3a8158", "score": "0.5339544", "text": "public final void rule__Connection__Group__1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../ru.spbau.luchikhin.graph.ui/src-gen/ru/spbau/luchikhin/ui/contentassist/antlr/internal/InternalGraph.g:358:1: ( rule__Connection__Group__1__Impl rule__Connection__Group__2 )\r\n // ../ru.spbau.luchikhin.graph.ui/src-gen/ru/spbau/luchikhin/ui/contentassist/antlr/internal/InternalGraph.g:359:2: rule__Connection__Group__1__Impl rule__Connection__Group__2\r\n {\r\n pushFollow(FOLLOW_rule__Connection__Group__1__Impl_in_rule__Connection__Group__1669);\r\n rule__Connection__Group__1__Impl();\r\n\r\n state._fsp--;\r\n\r\n pushFollow(FOLLOW_rule__Connection__Group__2_in_rule__Connection__Group__1672);\r\n rule__Connection__Group__2();\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": "b5e5b0c8abc8112e5e45832fe726b9e3", "score": "0.5333112", "text": "public void doConnect() {\n\t\t\n\t}", "title": "" }, { "docid": "5ee15b1d593465745c17977afa27d27c", "score": "0.5317808", "text": "Group createGroup();", "title": "" }, { "docid": "aa29216fbd0cf614c8bc9470ea5c3934", "score": "0.52971685", "text": "private void client() {\n\t\ttry {\n\t\t\t// Try to get registry if it is available\n\t\t\tConnectionImpl.registry = LocateRegistry.getRegistry(\"localhost\",PORT);\n\t\t\t// Try to get other player from that registry\n\t\t\tthis.otherPlayer = (Connection)ConnectionImpl.registry.lookup(\"ConnectionImpl\");\n\t\t} catch (RemoteException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (NotBoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tSystem.out.println(\"Connection has been made\");\n\t}", "title": "" }, { "docid": "fa7710c9bdfa8b2af6e6a4335c7b3a36", "score": "0.5280408", "text": "@Override\n\tpublic void makeConnection() \n\t{\n\t\ttry {\n\t\t\tsock = new Socket(\"127.0.0.1\",2396);\n\t\t\t\n\t\t\t//for sending messages\n\t\t\toos = new ObjectOutputStream(sock.getOutputStream());\n\t\t\t\n\t\t\t//send message of type JOIN to game server\n\t\t\tthis.sendMessage(new CardGameMessage(CardGameMessage.JOIN, -1, this.name));\n\t\t\t\n\t\t\t//send message of type READY to game server\n\t\t\tthis.sendMessage(new CardGameMessage(CardGameMessage.READY, -1, null));\n\t\t\t\n\t\t\t//for receiving messages\n\t\t\tois = new ObjectInputStream(sock.getInputStream());\n\t\t\t//thread to read messages\n\t\t\tserverHandlerThread = new Thread(new ServerHandler());\n\t\t\tserverHandlerThread.start();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\ttable.println(\"Cannot connect to server\");\n\t\t}\n\t}", "title": "" }, { "docid": "2aad89cd58a76dac676ee5db7fcec244", "score": "0.52696675", "text": "public void connect() {\n\t\t// Construct the list of shardinfo\n\t\tList<JedisShardInfo> shards = new ArrayList<JedisShardInfo>();\n\t\tfor (String host: redisHosts) {\n\t\t\tshards.add(new JedisShardInfo(getJedisHostName(host), getJedisHostPort(host)));\n\t\t}\n\t\t\n\t\t//jedis = new ShardedJedis(shards);\n\t\tsubscriberJedis = new ShardedJedis(shards);\n\t\tpublisherJedis = new ShardedJedis(shards);\n\t}", "title": "" }, { "docid": "ceaca51816123788583a80aff0469019", "score": "0.5233847", "text": "abstract void connect();", "title": "" }, { "docid": "e65cd636a1af8f8cb887138f550a68f9", "score": "0.51997495", "text": "public IGroup createGroup();", "title": "" }, { "docid": "c699c6d78dad4d6a65bae4c114b9bf7f", "score": "0.51987016", "text": "public void connect(Identity sender, Identity receiver);", "title": "" }, { "docid": "c224704d83dde86e4c2d7bbaf7f3b13f", "score": "0.51931655", "text": "void connectDrone(DroneConnectionType type);", "title": "" }, { "docid": "c551177b0517995e3d0b3b967bbc0471", "score": "0.5186484", "text": "public void connectNeo4j(){\n\t}", "title": "" }, { "docid": "cc0ab99e533f4def85e16fd72f3eda96", "score": "0.5175363", "text": "public ConnectedRouter(Context context) {\n super(context);\n }", "title": "" }, { "docid": "46abc4220f8418527ceb4083b5f4c9f5", "score": "0.5163556", "text": "public void makeConnection() {\n\t\t// make a server socket, input stream and start listening\n\t\ttry {\n\t\t\tserverSocket = new ServerSocket(port);\n\t\t\tsocket = serverSocket.accept();\n\t\t\tinStream = new ObjectInputStream(socket.getInputStream());\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "4d1e582f31eaf464b168e7849eb9d5c7", "score": "0.5159791", "text": "@Override\n public synchronized Restlet createInboundRoot() {\n Router router = new Router(getContext());\n\n //Put dependencies into the router context so that the Resource handlers can access them\n router.getContext().getAttributes().put(AbstractCubeResource.SUBMISSION_STORE_KEY, submissionStore);\n router.getContext().getAttributes().put(AbstractCubeResource.HUNT_STATUS_STORE_KEY, huntStatusStore);\n router.getContext().getAttributes().put(AbstractCubeResource.EVENT_PROCESSOR_KEY, eventProcessor);\n\n //Define routes\n router.attach(\"/submissions\", SubmissionsResource.class);\n router.attach(\"/submissions/{id}\", SubmissionResource.class);\n router.attach(\"/visibilities\", VisibilitiesResource.class);\n router.attach(\"/visibilities/{teamId}/{puzzleId}\", VisibilityResource.class);\n router.attach(\"/events\", EventsResource.class);\n router.attach(\"/teams/{id}\", TeamResource.class);\n\n return router;\n }", "title": "" }, { "docid": "4ee6c0f30032236ef5b941180c638215", "score": "0.51585996", "text": "public void addConnection(GeppettoMessageInbound newVisitor){\r\n \t\t_connections.put(Integer.valueOf(newVisitor.getConnectionID()), newVisitor);\r\n \r\n \t\tperformStartUpCheck(newVisitor);\r\n \t}", "title": "" }, { "docid": "778b6fba42ab487fb2b4d7f2356aedc6", "score": "0.51506245", "text": "ROUTER use(int mask, Pattern path, String rawDef, String[] inUrlParams, CtxHandler[] handlers);", "title": "" }, { "docid": "c9f0f2d8dfd35350511fd58a9f12e7c3", "score": "0.5149127", "text": "public void addConnection() {\n resetNodes();\n\n AnchorNode[] connectibleNodes = TwoNodeStorage.getAndClear();\n if(connectibleNodes != null) {\n AnchorNode start = connectibleNodes[0];\n AnchorNode end = connectibleNodes[1];\n\n addConnection(start,end);\n } else {\n //todo alert\n }\n }", "title": "" }, { "docid": "5128fbfb6d993b51d819dcaf1028d70b", "score": "0.5144484", "text": "public void connect(Node yNode, String xGroupName, String yGroupName) {\n Node xNode = this;\n\n // check if same\n if (xNode.equals(yNode)) {\n if(verbose) System.out.println(\"Error: can't connect node to itself\");\n return;\n }\n // check if groups exist\n if (!xNode.connectionGroups.containsKey(xGroupName)) {\n xNode.connectionGroups.put(xGroupName, new ArrayList<>());\n }\n if (!yNode.connectionGroups.containsKey(yGroupName)) {\n yNode.connectionGroups.put(yGroupName, new ArrayList<>());\n }\n Connection connection = new Connection(this, yNode);\n xNode.connectionGroups.get(xGroupName).add(connection);\n yNode.connectionGroups.get(yGroupName).add(connection);\n }", "title": "" }, { "docid": "24ba27b8bd2cf723fa77d54c66c5f1de", "score": "0.5139614", "text": "private void manageConnection() {\r\n \tSocket cs = clientStore.addClient(ss); \r\n \t\r\n \tGLogger.info(Modules.NETWORK, \"Connected to client: \" + cs.toString());\r\n \r\n \tRunnable cr = new ClientHandle(cs);\r\n \t\r\n \tThread t = new Thread(cr);\r\n \tt.setDaemon(true);\r\n \tt.start();\t\r\n\t}", "title": "" }, { "docid": "2852edb4841103758f9051bffcd38073", "score": "0.5138816", "text": "private void connect() \n {\n try \n {\n //instantiating the Connection class \n //First parameter is appropriate Host required for connection to the SMSC\n //2nd parameter sets the port for communication\n //3rd parameter sets the connection type ie Synchronous or Asynchronous\n //synchronous is assigned if parameter is ignored\n conn = new Connection(\"localhost\", 2775, true);\n \n //attaches the ConnectionObserver interface to the established Connection object.\n //Hence adds the Recieving Functionalities of the interface to the connection\n conn.addObserver(this);\n \n } \n catch (UnknownHostException msg) \n {\n System.exit(0);\n }\n \n boolean tryAgain = false;\n \n while (!tryAgain) \n {\n try \n {\n //connection is established by binding application to the SMSC as a TRX\n //2nd parameter sets the systemID. 3rd parameter sets connection password\n //4th parameter sets the System type ie voicemail,mms etc\n //system type for SMSCs are always null.\n conn.bind(Connection.TRANSCEIVER, \"smppclient\", \"password\", null);\n tryAgain = true;// initialised to stop while loop if no exceptions are thrown\n } \n catch ( IOException ioeMsg ) \n {\n //System.out.println( msg );\n try \n {\n //if for some reason, connection fails, application sleeps for a minute\n //and tries to a reconnection after the sleep\n sleep( 60 * 1000 );\n } \n catch ( InterruptedException ieMsg ) \n {\n }\n }\n }\n \n }", "title": "" }, { "docid": "18569f4771992d9f74262e29ba1822cc", "score": "0.5133653", "text": "public interface RouterConnector {\n\n void connectClient(AbstractSpeaker speaker);\n void connectAgent(AbstractSpeaker speaker);\n\n}", "title": "" }, { "docid": "489bc5605dbc6b24d048d83e41d82f58", "score": "0.5128177", "text": "protected ClientConnectionOperator createConnectionOperator(SchemeRegistry schreg)\n/* */ {\n/* 140 */ return new DefaultClientConnectionOperator(schreg);\n/* */ }", "title": "" }, { "docid": "3d2c430679cdb83c48bd035ee9add1f6", "score": "0.51255995", "text": "Unicast createUnicast();", "title": "" }, { "docid": "c7cdc0e0521fa0a6e3c998e7d21cc859", "score": "0.51212686", "text": "WithCreate withConnectedGateway(String connectedGateway);", "title": "" }, { "docid": "fabe903ab52cfc97d4ef5890b46c50fe", "score": "0.5073218", "text": "public abstract String construct(Connector conn, int moduleid, int groupid);", "title": "" }, { "docid": "000292603d849c05ffebb4f901856d92", "score": "0.50699526", "text": "protected void connectSocket(String ip, RemoteView remoteView, String name, boolean singleplayer){\n new Thread(() -> {\n Thread.currentThread().setName(\"Socket connection handler\");\n try(Socket connection = new Socket(ip, SOCKET_PORT)){\n ObjectOutputStream out = new ObjectOutputStream(connection.getOutputStream());\n ObjectInputStream in = new ObjectInputStream(connection.getInputStream());\n out.writeObject(name);\n out.writeObject(singleplayer);\n String response = (String) in.readObject();\n if(response.equals(\"ERROR\")){\n connectionError();\n return;\n }\n ClientSocketHandler clientSocketHandler = new ClientSocketHandler(in, out, remoteView);\n setRemoteController(clientSocketHandler);\n clientSocketHandler.mainLoop();\n }catch (IOException e) {\n notifyDisconnection();\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n }\n }).start();\n }", "title": "" }, { "docid": "5ad17eb6226f08728f7b17de5c703381", "score": "0.506836", "text": "@Override\n public Link.Connection connect() throws IOException {\n BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter();\n BluetoothServerSocket serverSocket = adapter.listenUsingRfcommWithServiceRecord(service.name, service.uuid);\n\n // accept incoming connection\n BluetoothSocket socket = serverSocket.accept();\n serverSocket.close();\n\n Link.Connection connection = new Link.Connection();\n connection.in = socket.getInputStream();\n connection.out = socket.getOutputStream();\n connection.closeable = socket;\n\n return connection;\n }", "title": "" }, { "docid": "c0142e6d342b65872e40d713c26a3fa3", "score": "0.50579023", "text": "protected abstract void attachAll(Router router);", "title": "" }, { "docid": "da8d1bddd3bbced2d26663d2c88bd0fe", "score": "0.5053367", "text": "public final void ruleConnection() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../ru.spbau.luchikhin.graph.ui/src-gen/ru/spbau/luchikhin/ui/contentassist/antlr/internal/InternalGraph.g:129:2: ( ( ( rule__Connection__Group__0 ) ) )\r\n // ../ru.spbau.luchikhin.graph.ui/src-gen/ru/spbau/luchikhin/ui/contentassist/antlr/internal/InternalGraph.g:130:1: ( ( rule__Connection__Group__0 ) )\r\n {\r\n // ../ru.spbau.luchikhin.graph.ui/src-gen/ru/spbau/luchikhin/ui/contentassist/antlr/internal/InternalGraph.g:130:1: ( ( rule__Connection__Group__0 ) )\r\n // ../ru.spbau.luchikhin.graph.ui/src-gen/ru/spbau/luchikhin/ui/contentassist/antlr/internal/InternalGraph.g:131:1: ( rule__Connection__Group__0 )\r\n {\r\n before(grammarAccess.getConnectionAccess().getGroup()); \r\n // ../ru.spbau.luchikhin.graph.ui/src-gen/ru/spbau/luchikhin/ui/contentassist/antlr/internal/InternalGraph.g:132:1: ( rule__Connection__Group__0 )\r\n // ../ru.spbau.luchikhin.graph.ui/src-gen/ru/spbau/luchikhin/ui/contentassist/antlr/internal/InternalGraph.g:132:2: rule__Connection__Group__0\r\n {\r\n pushFollow(FOLLOW_rule__Connection__Group__0_in_ruleConnection215);\r\n rule__Connection__Group__0();\r\n\r\n state._fsp--;\r\n\r\n\r\n }\r\n\r\n after(grammarAccess.getConnectionAccess().getGroup()); \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": "5d0672618907bbe322d02acfbfa0879e", "score": "0.50510484", "text": "public void link(){\n try {\n Socket socket = new Socket(targetPeer.hostName, targetPeer.portNumber);\n\n out = new ObjectOutputStream(socket.getOutputStream());\n out.flush();\n\n in = new ObjectInputStream(socket.getInputStream());\n\n //create message handler this will handle dealing with incoming messages as well as sending responses to messages\n MessageHandler handler = new MessageHandler(in, out, peer, socket); //(assuming we want peer and socket maybe not needed?)\n// peer.setOut(out);\n\n //start handler on own thread\n Thread serverThread = new Thread(handler);\n serverThread.start();\n\n }\n catch (ConnectException e) {\n System.err.println(\"Connection refused. You need to initiate a server first.\");\n }\n catch(UnknownHostException unknownHost){\n System.err.println(\"You are trying to connect to an unknown host!\");\n }\n catch(IOException ioException){\n System.err.println(\"IoException!\");\n ioException.printStackTrace();\n }\n }", "title": "" }, { "docid": "8e05380e74d74b028181ac694c076485", "score": "0.5047074", "text": "GroupService() {\n super();\n this.startServe();\n }", "title": "" }, { "docid": "28e32aa66d9a8168e855c6e2bb26fdff", "score": "0.50463855", "text": "public void conn() {\r\n this.setName(\"z\"+((int)(10.0 * Math.random()) + 1)+((int)(10.0 * Math.random()) + 1)+((int)(10.0 * Math.random()) + 1)+((int)(10.0 * Math.random()) + 1)+((int)(10.0 * Math.random()) + 1)+((int)(10.0 * Math.random()) + 1)+((int)(10.0 * Math.random()) + 1)+((int)(10.0 * Math.random()) + 1));\r\n try {\r\n Thread.sleep( 60000 - ( ( ( System.currentTimeMillis() /1000 ) %60 ) * 1000 ) );\r\n } catch (Exception e) { System.out.println(e); }\r\n if (z0rControl.allowConnect() && z0rControl.allowVersion()) {\r\n\tSystem.out.println(\"CONNECT TO IRC BY: \" + this.setIrcNick);\r\n //this.startIdentServer();\r\n try { this.connect(z0rControl.getIp(), z0rControl.getPort()); this.reconnect(); }\r\n catch (Exception e) { System.out.println(\"FUCKED\"); }\r\n this.sendMessage(\"[email protected]\", \"auth \" + z0rControl.getQname() + \" \" + z0rControl.getQpass());\r\n this.sendRawLineViaQueue(\"mode \"+ this.getNick()+ \" +x\");\r\n try { Thread.sleep(15000); } catch (Exception ez) {}\r\n this.sendMessage(this.getNick(), \"what is my host?\");\r\n }\r\n }", "title": "" }, { "docid": "2a2ef4bc2dd7ba7b1505b0c70c46a32f", "score": "0.50395244", "text": "void connectNetwork(NetInfo net);", "title": "" }, { "docid": "d82e0cec2dd209f1504e4e1b4d5648a6", "score": "0.5034721", "text": "@SuppressWarnings(\"unchecked\")\n\tprivate void connect() {\n\t\tfriends = new ArrayList<RemoteType>();\n\t\t\n\t\tfor (int i = 0; i < slots.size(); i++) {\n\t\t\tString uri = slots.get(i);\n\t\t\twhile (true) {\n\t\t\t\ttry {\n\t\t\t\t\tfriends.add((RemoteType) Naming.lookup(uri));\n\t\t\t\t\tprint(\"CON \" + i + \" \" + uri);\n\t\t\t\t\tbreak;\n\t\t\t\t} catch (MalformedURLException | NotBoundException | RemoteException e) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(500);\n\t\t\t\t\t} catch (InterruptedException e2) {}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "9f5a3b1e8d8e4832c070f27904095c4d", "score": "0.50237787", "text": "public void createGroup(final UMTCallback callback){\n manager.createGroup(channel, new WifiP2pManager.ActionListener() {\n @Override\n public void onSuccess() {\n callback.response(true,0);\n }\n\n @Override\n public void onFailure(int reason) {\n callback.response(false,reason);\n }\n });\n\n\n }", "title": "" }, { "docid": "ea601130dd1a4d0fedfa489dd0844eaf", "score": "0.5018387", "text": "public final void rule__Connection__Group__0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../ru.spbau.luchikhin.graph.ui/src-gen/ru/spbau/luchikhin/ui/contentassist/antlr/internal/InternalGraph.g:327:1: ( rule__Connection__Group__0__Impl rule__Connection__Group__1 )\r\n // ../ru.spbau.luchikhin.graph.ui/src-gen/ru/spbau/luchikhin/ui/contentassist/antlr/internal/InternalGraph.g:328:2: rule__Connection__Group__0__Impl rule__Connection__Group__1\r\n {\r\n pushFollow(FOLLOW_rule__Connection__Group__0__Impl_in_rule__Connection__Group__0607);\r\n rule__Connection__Group__0__Impl();\r\n\r\n state._fsp--;\r\n\r\n pushFollow(FOLLOW_rule__Connection__Group__1_in_rule__Connection__Group__0610);\r\n rule__Connection__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": "e394cd52e4ae042bf8d4451899dc6d79", "score": "0.50112075", "text": "@Override\r\n\tpublic void connectToModel() throws RemoteException{\r\n\t\tString url = \"//in-csci-rrpc01.cs.iupui.edu:2323/Server\";\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\t// capturing remote Model Object by url\r\n\t\t\tmodel = (Model) Naming.lookup(url);\r\n\t\t\t\r\n\t\t\tmodel.connect(); //to ModelImpl\r\n\t\t\tint id=model.getVisitorNumber();\r\n\t\t\tSystem.out.println(\"Visit number: \"+id);\r\n\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "0165de407f88d6ecd4f77bf19052a2a1", "score": "0.49873996", "text": "void configureNetwork();", "title": "" }, { "docid": "b29649a37c8a3f3047b8f0e8c7e39dac", "score": "0.4983251", "text": "@Override\r\n public synchronized Restlet createInboundRoot() {\r\n // Create a router Restlet that routes each call to a\r\n // new instance of ApiAllSetsResource.\r\n Router router = new Router(getContext());\r\n\r\n // Defines only one route\r\n router.attach(\"/set\", ViewContextResource.class);\r\n\r\n return router;\r\n }", "title": "" }, { "docid": "3b1b97d5f52c38339a32f3c9fe43408f", "score": "0.49796245", "text": "static Connection makeConnection() {\r\n count++;\r\n return new Connection();\r\n }", "title": "" }, { "docid": "6b00035381369cf30ffc4ebf35fb6c37", "score": "0.49684325", "text": "private static void constructRedirectSessionPool() {\n List<String> nodeUrls = new ArrayList<>();\n nodeUrls.add(\"127.0.0.1:6667\");\n nodeUrls.add(\"127.0.0.1:6668\");\n sessionPool =\n new SessionPool.Builder()\n .nodeUrls(nodeUrls)\n .user(\"root\")\n .password(\"root\")\n .maxSize(3)\n .build();\n }", "title": "" }, { "docid": "08f8d055ca09488ead9e381ed583d622", "score": "0.49668655", "text": "private BridgePanel doAddBridge(String ip1, String ip2, boolean doPack) {\n BridgePanel bp = new BridgePanel(null, ip1, true, false, null, ip2, true, false);\n _pnlBridges.add(bp);\n if(doPack)\n specialPack();\n return bp;\n }", "title": "" }, { "docid": "c10d04cf258343aa55fc40256ad27bff", "score": "0.49657765", "text": "@Override\n\t\t\tpublic void run() {\n\t\t\t\tconnC = new ConnectionControl(mIP, mPort);\n\t\t\t\tconnC.setConniction();\n\t\t\t}", "title": "" }, { "docid": "2e066ec1be0060e0e9fd75a69a3e1b89", "score": "0.49637946", "text": "private void createOtherRemotes() throws RemoteException {\n ClientID++;\n FileServer fileServer=new FileServer(currentUser);\n RuntimeServer runtimeServer=new RuntimeServer(currentUser,ioProcessors.get(ioProcessors.size()-1));\n port=GlobalConstant.INITIAL_PORT+ClientID;\n LocateRegistry.createRegistry(port);\n\n try {\n Naming.bind(\"rmi://localhost:\"+port+\"/fileServer\",fileServer);\n Naming.bind(\"rmi://localhost:\"+port+\"/runtimeServer\",runtimeServer);\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }catch (AlreadyBoundException e) {\n e.printStackTrace();\n }\n\n }", "title": "" }, { "docid": "bc1ea52afa7c22761d14a623606d994d", "score": "0.49600446", "text": "@Test\n public void testRouterMandatory() {\n if (ZMQ.getFullVersion() < ZMQ.makeVersion(3, 2, 0))\n return;\n \n ZMQ.Context context = ZMQ.context(1);\n \n ZMQ.Socket sock = context.socket(ZMQ.ROUTER);\n boolean ret = sock.sendMore(\"UNREACHABLE\");\n assertEquals(true, ret);\n sock.send(\"END\");\n \n sock.setRouterMandatory(true);\n try {\n sock.sendMore(\"UNREACHABLE\");\n assertFalse(true);\n } catch (ZMQException e) {\n assertEquals(ZMQ.EHOSTUNREACH(), e.getErrorCode());\n }\n \n sock.close();\n context.term();\n }", "title": "" }, { "docid": "1f7c2381cf5a4705136d99482c284645", "score": "0.4956938", "text": "protected AbstractConnPool createConnectionPool(HttpParams params)\n/* */ {\n/* 122 */ return new ConnPoolByRoute(this.connOperator, params);\n/* */ }", "title": "" }, { "docid": "fe4c7747d213529affdeb46606b51948", "score": "0.49532261", "text": "Route createRoute();", "title": "" }, { "docid": "ddb063cf102bdce8c65cd5e7d226b278", "score": "0.49424347", "text": "public void connectToRelay(){\n Boolean foundRelay=false;\n int i=0;\n while (!foundRelay){\n String[] hostInfo=allRelay.get(i).split(\":\");\n launchClient(hostInfo[0],Integer.parseInt(hostInfo[1]));\n foundRelay=sendWhoAMI();\n i++;\n i=i%getNumberOfRelay();\n }\n System.out.println(\"Connected to : \"+getRelayHostname()+\":\"+getRelayPort());\n }", "title": "" }, { "docid": "b2f734606c29ede1ad2794516a7ca087", "score": "0.49409088", "text": "public void routeExternal(DatagramPacket packet) {\r\n\t\t\tssCache.addServer(getRRFromPacket(packet));\r\n\t\t\tString subnet = getSubnet(getIP());\r\n\t\t\tVector subnets = getVisitedSubnets(getVisitedFromPacket(packet));\r\n\t\t\tif(!subnets.contains(subnet)) {\r\n\t\t\t\tString newSubnets = getVisitedFromPacket(packet) + \",\" + subnet;\r\n\t\t\t\ttry {\r\n\t\t\t\t\tDatagramPacket sdPacket = constructPacket(getRRFromPacket(packet).getDomain(), newSubnets);\r\n\t\t\t\t\tsdPacket.setAddress(InetAddress.getByName(Utils.SERVER_MULTICAST_GROUP));\r\n\t\t\t\t\tsdPacket.setPort(Utils.DAEMON_PORT);\r\n\t\t\t\t\tsdSocket.send(sdPacket);\r\n\t\t\t\t}\r\n\t\t\t\tcatch(IOException exc) {\r\n\t\t\t\t\texc.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}", "title": "" }, { "docid": "1830864dc26a5a4cd5adbae4c7d3d50f", "score": "0.49381143", "text": "public static RestHighLevelClient makeConnection() {\n\t\t \n\t if(restHighLevelClient == null) {\n\t restHighLevelClient = new RestHighLevelClient(\n\t RestClient.builder(\n\t new HttpHost(HOST, PORT_ONE, SCHEME),\n\t new HttpHost(HOST, PORT_TWO, SCHEME)));\n\t }\n\t \n\t return restHighLevelClient;\n\t}", "title": "" }, { "docid": "33188abb83b440017a2e282586495269", "score": "0.49349967", "text": "private void createPeerConnection() {\n try {\n PeerConnection.RTCConfiguration rtcConfig =\n new PeerConnection.RTCConfiguration(peerIceServers);\n // TCP candidates are only useful when connecting to a server that supports\n // ICE-TCP.\n rtcConfig.tcpCandidatePolicy = PeerConnection.TcpCandidatePolicy.DISABLED;\n rtcConfig.bundlePolicy = PeerConnection.BundlePolicy.MAXBUNDLE;\n rtcConfig.rtcpMuxPolicy = PeerConnection.RtcpMuxPolicy.REQUIRE;\n rtcConfig.continualGatheringPolicy = PeerConnection.ContinualGatheringPolicy.GATHER_CONTINUALLY;\n // Use ECDSA encryption.\n\n\n rtcConfig.keyType = PeerConnection.KeyType.ECDSA;\n\n\n localPeer = peerConnectionFactory.createPeerConnection(rtcConfig, new CustomPeerConnectionObserver(\"localPeerCreation\") {\n @Override\n public void onIceCandidate(IceCandidate iceCandidate) {\n super.onIceCandidate(iceCandidate);\n Log.v(\"ahmed s\", iceCandidate.sdp.toString());\n onIceCandidateReceived(iceCandidate);\n }\n\n @Override\n public void onAddStream(MediaStream mediaStream) {\n// showToast(\"Received Remote stream\");\n super.onAddStream(mediaStream);\n gotRemoteStream(mediaStream);\n }\n });\n\n addStreamToLocalPeer();\n } catch (Exception e) {\n e.getMessage();\n Log.v(\"SignallingClient\", \"from docall \");\n }\n }", "title": "" }, { "docid": "e016dd7035a027667e85b568d3f56733", "score": "0.49341223", "text": "public final void startConnect() {\n }", "title": "" }, { "docid": "668657ba4abbd71377bada3440286786", "score": "0.49330425", "text": "@Override\n\tvoid createGroup() {\n\t\t\n\t}", "title": "" }, { "docid": "cfe8af8ef3ac91655abdb2a6d56a0b68", "score": "0.49229333", "text": "public final void rule__Connection__Group_2__0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../ru.spbau.luchikhin.graph.ui/src-gen/ru/spbau/luchikhin/ui/contentassist/antlr/internal/InternalGraph.g:421:1: ( rule__Connection__Group_2__0__Impl rule__Connection__Group_2__1 )\r\n // ../ru.spbau.luchikhin.graph.ui/src-gen/ru/spbau/luchikhin/ui/contentassist/antlr/internal/InternalGraph.g:422:2: rule__Connection__Group_2__0__Impl rule__Connection__Group_2__1\r\n {\r\n pushFollow(FOLLOW_rule__Connection__Group_2__0__Impl_in_rule__Connection__Group_2__0793);\r\n rule__Connection__Group_2__0__Impl();\r\n\r\n state._fsp--;\r\n\r\n pushFollow(FOLLOW_rule__Connection__Group_2__1_in_rule__Connection__Group_2__0796);\r\n rule__Connection__Group_2__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": "cf764cdb302d04c6175b9c1d6fc3688d", "score": "0.49186498", "text": "@Override\r\n\tpublic void doConnection() {\n\t\t\r\n\t}", "title": "" }, { "docid": "7bc73d3f49f7945d5bf8c1910b407857", "score": "0.4915341", "text": "public void route();", "title": "" }, { "docid": "85fb9a29b926ac075e232b2949b7d291", "score": "0.49094993", "text": "@Override\n\tpublic void run() {\n\n\t\tfor (int i : MainClass.domainNameListMap.keySet()) {\n\t\t\tString host = MainClass.domainNameListMap.get(i);\n\t\t\tint port = MainClass.portNumerListMap.get(i);\n\n\t\t\tByteBuffer byteBuffer;\n\t\t\tbyteBuffer = ByteBuffer.allocate(512);\n\n\t\t\tSystem.out.println(\"Sending connection to :\" + \"Sever port\" + port\n\t\t\t\t\t+ \"server host\" + host);\n\n\t\t\ttry {\n\t\t\t\tSctpChannel ClientSock;\n\t\t\t\tInetSocketAddress serverAddr = new InetSocketAddress(host, port);\n\n\t\t\t\tdo {\n\t\t\t\t\tClientSock = SctpChannel.open();\n\t\t\t\t\tClientSock.connect(serverAddr, 0, 0);\n\t\t\t\t\tMainClass.connectionChannel.add(ClientSock);\n\t\t\t\t\tMainClass.connectionChannelMap.put(i, ClientSock);\n\n\t\t\t\t} while (!ClientSock.finishConnect());\n\n\t\t\t\tSystem.out.println(\"Created Connection Successfully\");\n\t\t\t\t/*\n\t\t\t\t * MessageInfo messageInfo = ClientSock.receive(byteBuffer,\n\t\t\t\t * null, null); String message =\n\t\t\t\t * MainClass.byteToString(byteBuffer);\n\t\t\t\t * System.out.println(\"Received Message from Server:\" + i);\n\t\t\t\t * System.out.println(message);\n\t\t\t\t * \n\t\t\t\t * MainClass.sendMessage(ClientSock,\n\t\t\t\t * \"connection.........establishbed with client\" +\n\t\t\t\t * MainClass.nodeId);\n\t\t\t\t */\n\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} finally {\n\t\t\t\tSystem.out.println(\"ALL connections established\");\n\t\t\t}\n\n\t\t}\n\n\t}", "title": "" }, { "docid": "40928e0ccd321482ae31bd4ef07e6dc0", "score": "0.49079448", "text": "protected void on_join_group() {\n\t\ttry {\n\t\t\t// 가입주소 얻어오기\n\t\t\tString ip = jtf_address.getText().trim();\n\t\t\tif (ip.isEmpty())\n\t\t\t\treturn;\n\n\t\t\t// 가입여부체크\n\t\t\tif (group_list.contains(ip)) {\n\t\t\t\tJOptionPane.showMessageDialog(this, \"이미 가입된 주소입니다\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t// String 형식 IP=> InetAddress\n\t\t\tInetAddress ia = InetAddress.getByName(ip);\n\t\t\t// 가입\n\t\t\tclient.joinGroup(ia);\n\n\t\t\t// ArrayList\n\t\t\tgroup_list.add(ip);\n\n\t\t\t// JList갱신\n\t\t\tmy_update_group_list();\n\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "title": "" }, { "docid": "f8610aa6e572c8cb78c29ec510bf9d87", "score": "0.49059188", "text": "Connection_Manager createConnection_Manager();", "title": "" }, { "docid": "8b6fc082e3b55b447f01d56834753ec4", "score": "0.4902538", "text": "public void resolvePortGroups() {\r\n\t\t\r\n\t}", "title": "" }, { "docid": "d568ec761ce6090be93f64284253ae80", "score": "0.4898748", "text": "public void createRoom(){\n\t\tsendToServer(\"create\");\n\t}", "title": "" }, { "docid": "91d382915ab8865a9050c12941f14345", "score": "0.4892107", "text": "@Override\r\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\tbNetworkMonitor = connect(IHttpRequestUtils.SRV_URL, 0);\r\n\t\t\t\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t}", "title": "" }, { "docid": "acdfcd72273422c15ce8ce2b38016a77", "score": "0.4890929", "text": "void connectDeviceToNetwork(Device device, Network network);", "title": "" }, { "docid": "fdcb54ea05841fb3082aa56c4016d1fa", "score": "0.48897487", "text": "public static void main(String[] args) throws KeeperException, InterruptedException, IOException {\n\t\tCreateGroup createGroup = new CreateGroup();\n\t\tcreateGroup.connect(args[0]);\n\t\tcreateGroup.create(args[1]);\n\t\tcreateGroup.close();\n\t}", "title": "" }, { "docid": "4973ca946699039f7e8739329df0ef0d", "score": "0.48893052", "text": "private PaletteContainer createConnections2Group() {\n\t\tPaletteDrawer paletteContainer = new PaletteDrawer(\n\t\t\t\tCapOverTime.diagram.part.Messages.Connections2Group_title);\n\t\tpaletteContainer.setId(\"createConnections2Group\"); //$NON-NLS-1$\n\t\tpaletteContainer.add(createAccumulation1CreationTool());\n\t\tpaletteContainer.add(createDecomposes2CreationTool());\n\t\tpaletteContainer.add(createSatisfies3CreationTool());\n\t\treturn paletteContainer;\n\t}", "title": "" }, { "docid": "8058e1d72c43a084e933e99eb1647d1b", "score": "0.48890516", "text": "public void go() throws IOException {\r\n\r\n ThreadGroup thg = new ThreadGroup(\"server\"){\r\n public void uncaughtException(Thread t, Throwable e) {\r\n Logger.global.log(Level.SEVERE,t.toString(), e);\r\n }\r\n };\r\n \r\n while (true) {\r\n Socket sck = srv.accept();\r\n new Thread(thg, launchSession(sck)).start();\r\n }\r\n \r\n }", "title": "" }, { "docid": "0f4034d8d4985501589c83bf56f3743f", "score": "0.4886128", "text": "public EndPoint joinGroup(Object group) {\n\t\treturn Multicasting.joinGroup(group, this);\n\t}", "title": "" }, { "docid": "9646d59e99fa36292967891e16817eed", "score": "0.48849818", "text": "@Override\n public void channelActive(ChannelHandlerContext ctx) throws Exception {\n\n super.channelActive(ctx);\n InetRemoteIdentifier inetRemoteIdentifier = new InetRemoteIdentifier();\n inetRemoteIdentifier.setAddress((InetSocketAddress) ctx.channel().remoteAddress());\n LancerConnectionImpl lancerConnection = new LancerConnectionImpl(inetRemoteIdentifier);\n lancerConnection.setChannel(ctx.channel());\n lancer.addLancerConnection(lancerConnection);\n\n }", "title": "" }, { "docid": "e2410b2eac80c73807fff254bb7f0b5c", "score": "0.48771173", "text": "@Override\r\n public String getRouterName() {\r\n return \"D-Link Router\";\r\n }", "title": "" }, { "docid": "bbfc5ca1cc6c07f166542e6d059333e1", "score": "0.48758996", "text": "private void connectToMaster() throws IOException {\n System.out.println(\"Kobler til...\");\n String masterIp = BrickFinder.find(\"MASTER\")[0].getIPAddress();\n connection = new Socket(masterIp, 9999);\n connection.setTcpNoDelay(true);\n in = new DataInputStream(new BufferedInputStream(connection.getInputStream()));\n out = new DataOutputStream(new BufferedOutputStream(connection.getOutputStream()));\n \n System.out.println(\"Tilkoblet\");\n }", "title": "" }, { "docid": "8bacd7f82cecfacbeeac47b53f3ca5f9", "score": "0.48670474", "text": "@Override\n\t\tpublic void setRouter(Router router) {\n\n\t\t}", "title": "" }, { "docid": "a9b9bc919ee328a1f37a81db6e9fa745", "score": "0.4862209", "text": "private void setNewGameRoutes(String apiBaseURL) {\n from(\"direct:newgame\")\n .log(\"New game\")\n .bean(CreateNewGameBean.class)\n .log(simple(\"${body.xPlayer}\").getExpressionText())\n .choice()\n .when(simple(\"${body.xPlayer} != null\")).to(\"direct:newgamesend\")\n .otherwise().bean(DefaultBean.class).to(\"telegram:bots\");\n\n // The command was correct, send it to the API.\n from(\"direct:newgamesend\")\n .marshal().json(JsonLibrary.Jackson)\n .setHeader(Exchange.HTTP_METHOD, constant(\"POST\"))\n .setHeader(Exchange.CONTENT_TYPE, constant(\"application/json\"))\n .to(apiBaseURL + \"?throwExceptionOnFailure=false\")\n .choice()\n .when(simple(\"${header.CamelHttpResponseCode} == 200\")).to(\"direct:newgamesuccess\")\n .otherwise().to(\"direct:newgamefailure\");\n\n // The API told us that the creation was successful.\n from(\"direct:newgamesuccess\")\n .unmarshal(new JacksonDataFormat(CreateNewGameSuccessResponse.class))\n .bean(CreateNewGameBean.class).to(\"telegram:bots\");\n\n // The API told us that the creation was not successful.\n from(\"direct:newgamefailure\")\n .unmarshal(new JacksonDataFormat(CreateNewGameFailureResponse.class))\n .bean(CreateNewGameBean.class).to(\"telegram:bots\");\n }", "title": "" }, { "docid": "61b07561cfbbb67f68ab48f1a32cc19a", "score": "0.4857922", "text": "public void connect(){\n wasToldToConnect = true;\n this.connectHelper();\n this.notifyDidChangeConnectionState();\n }", "title": "" }, { "docid": "643e7b4a2baad7b904491f5d034f904b", "score": "0.48555452", "text": "public SdnRouting(ShortestPathAlgorithm algo) {\n\t\tnetwork_map=new NetworkMap(algo);\n\t}", "title": "" }, { "docid": "08017d033e9d39b4a9344a56a5905df2", "score": "0.48526198", "text": "private static synchronized RestHighLevelClient makeConnection() {\n\n if(restHighLevelClient == null) {\n restHighLevelClient = new RestHighLevelClient(\n RestClient.builder(\n new HttpHost(HOST, PORT_ONE, SCHEME),\n new HttpHost(HOST, PORT_TWO, SCHEME)));\n }\n\n return restHighLevelClient;\n }", "title": "" }, { "docid": "12ff783e2fec3efbf157ac3641af7573", "score": "0.48428503", "text": "public final void rule__Connection__Group__2__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../ru.spbau.luchikhin.graph.ui/src-gen/ru/spbau/luchikhin/ui/contentassist/antlr/internal/InternalGraph.g:398:1: ( ( ( rule__Connection__Group_2__0 )* ) )\r\n // ../ru.spbau.luchikhin.graph.ui/src-gen/ru/spbau/luchikhin/ui/contentassist/antlr/internal/InternalGraph.g:399:1: ( ( rule__Connection__Group_2__0 )* )\r\n {\r\n // ../ru.spbau.luchikhin.graph.ui/src-gen/ru/spbau/luchikhin/ui/contentassist/antlr/internal/InternalGraph.g:399:1: ( ( rule__Connection__Group_2__0 )* )\r\n // ../ru.spbau.luchikhin.graph.ui/src-gen/ru/spbau/luchikhin/ui/contentassist/antlr/internal/InternalGraph.g:400:1: ( rule__Connection__Group_2__0 )*\r\n {\r\n before(grammarAccess.getConnectionAccess().getGroup_2()); \r\n // ../ru.spbau.luchikhin.graph.ui/src-gen/ru/spbau/luchikhin/ui/contentassist/antlr/internal/InternalGraph.g:401:1: ( rule__Connection__Group_2__0 )*\r\n loop3:\r\n do {\r\n int alt3=2;\r\n int LA3_0 = input.LA(1);\r\n\r\n if ( (LA3_0==14) ) {\r\n alt3=1;\r\n }\r\n\r\n\r\n switch (alt3) {\r\n \tcase 1 :\r\n \t // ../ru.spbau.luchikhin.graph.ui/src-gen/ru/spbau/luchikhin/ui/contentassist/antlr/internal/InternalGraph.g:401:2: rule__Connection__Group_2__0\r\n \t {\r\n \t pushFollow(FOLLOW_rule__Connection__Group_2__0_in_rule__Connection__Group__2__Impl756);\r\n \t rule__Connection__Group_2__0();\r\n\r\n \t state._fsp--;\r\n\r\n\r\n \t }\r\n \t break;\r\n\r\n \tdefault :\r\n \t break loop3;\r\n }\r\n } while (true);\r\n\r\n after(grammarAccess.getConnectionAccess().getGroup_2()); \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": "3a23afd75bdd20b75b160fd07dffeaef", "score": "0.48399654", "text": "public static void main(String[] args) {\n ServiceNode node1 = new ServiceNode(\"IDC1\",\"127.0.0.1\",8080);\n ServiceNode node2 = new ServiceNode(\"IDC1\",\"127.0.0.1\",8081);\n ServiceNode node3 = new ServiceNode(\"IDC1\",\"127.0.0.1\",8082);\n ServiceNode node4 = new ServiceNode(\"IDC1\",\"127.0.0.1\",8084);\n\n //hash them to hash ring\n ConsistentHashRouter consistentHashRouter =\n new ConsistentHashRouter(Arrays.asList(node1,node2,node3,node4),3 );\n\n //we have 5 requester ip, we are trying them to route to one service node\n String requestIP1 = \"192.168.0.1\";\n String requestIP2 = \"192.168.0.2\";\n String requestIP3 = \"192.168.0.3\";\n String requestIP4 = \"192.168.0.4\";\n String requestIP5 = \"192.168.0.5\";\n\n goRoute(consistentHashRouter,requestIP1,requestIP2,requestIP3,requestIP4,requestIP5);\n\n ServiceNode node5 = new ServiceNode(\"IDC2\",\"127.0.0.1\",8080);//put new service online\n System.out.println(\"-------------putting new node online \" +node5.getKey()+\"------------\");\n consistentHashRouter.addNode(node5,3);\n\n goRoute(consistentHashRouter,requestIP1,requestIP2,requestIP3,requestIP4,requestIP5);\n\n consistentHashRouter.removeNode(node3);\n System.out.println(\"-------------remove node online \" + node3.getKey() + \"------------\");\n goRoute(consistentHashRouter,requestIP1,requestIP2,requestIP3,requestIP4,requestIP5);\n\n\n }", "title": "" }, { "docid": "59e2c7c108dba914d287f3d6dadd2f5c", "score": "0.48372537", "text": "public Socket connect()\n\t{\n\t\tfor (int i = 0; i < hosts.length; i++)\n\t\t{\n\t\t\ttry {\n\t\t\t\t//Vivek Mishra : Added in order to avoid null current host.\n\t\t\t\tcurrent_host = hosts[i];\n\t\t\t\tparentSocket = new Socket(hosts[i], port);\n\t\t\t\tisConnected = true;\n\t\t\t\t//current_host = hosts[i];\n\t\t\t\treturn parentSocket;\n\t\t\t} catch (UnknownHostException e) {\n\t\t\t\tSystem.out.println(e.toString());\n\t\t\t\tlog.error(e.toString());\n\t\t\t\tcontinue;\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.out.println(e.toString());\n\t\t\t\tlog.error(e.toString());\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t}\n\t\t//isConnected = false;\n\t\treturn null;\n\t}", "title": "" }, { "docid": "97c64330e4369e566ef85756fd9492c6", "score": "0.48371407", "text": "public void connect()throws Exception{\n socket = new DatagramSocket();\n tcpSocket = new Socket(address, 8001);\n out = new ObjectOutputStream(tcpSocket.getOutputStream());\n in = new ObjectInputStream(tcpSocket.getInputStream());\n }", "title": "" }, { "docid": "7729c2814eed6d846789d31f317d7432", "score": "0.48355108", "text": "public void onClick(DialogInterface dialog,\n int id) {\n if(!(userInputGroupPIN.getText().length() == 0 ))\n {\n //TODO join the group...\n String type = \"join_group\";\n String groupPIN = userInputGroupPIN.getText().toString();\n\n\n ClientToServerMessage msg = new ClientToServerMessage(type,mUsername,\"token\",mPhotoUrl, \"gr_name\",\n groupPIN,\n null,\n null, \"user_to_lock\");\n //mFirebaseDatabaseReference = FirebaseDatabase.getInstance().getReference();\n mFirebaseDatabaseReference.push().setValue(msg);\n //group created, now handler for ground_created message will take over.\n }\n\n }", "title": "" }, { "docid": "d8fdf9c0024a0e10884658f67d438f06", "score": "0.48336783", "text": "public Connection publishConnect(Connection keys);", "title": "" }, { "docid": "88385111f1c1fbcfd52f6c2c981a389a", "score": "0.4833407", "text": "public void openConnection()\n\t{\n\t\ttry\n\t\t{\n\t\t\tthis.socket = new Socket(this.configInfo.getDestAddress(),this.configInfo.getOutPortNo());\n\t\t\tthis.start();\n\t\t}\n\t\tcatch(Exception ex)\n\t\t{\n\t\t\tex.printStackTrace();\n\t\t}\n\t\tthis.blockingQueue = new LinkedBlockingQueue<Message<T>>();\n\t}", "title": "" }, { "docid": "aa42428fc659ca18427d388669fc6439", "score": "0.4829942", "text": "public void initiateConnections() {\n\t\ttry {\n\t\t\tint i = 0;\n\t\t\tfor (InetSocketAddress worker : workers) {\n\t\t\t\tSocket socket = Utilities.createClientSocket(worker);\n\t\t\t\tworkerToSocket.put(worker, socket);\n\t\t\t\tworkerToComm.put(worker, new CommLayer(socket, CommLayer.CLIENT));\n\t\t\t\ti++;\n\t\t\t}\n\t\t} catch (IOException ioe) {\n\t\t\tioe.printStackTrace();\n\t\t\tSystem.exit(-1);\n\t\t}\n\n\t}", "title": "" }, { "docid": "81436908a522b7d3a256e8bf8d1a25bf", "score": "0.48238862", "text": "public static void initializeNetworkSockets( ) {\n // Assign initial ports\n H2O.API_PORT = H2O.ARGS.port == 0 ? H2O.ARGS.baseport : H2O.ARGS.port;\n\n // Late instantiation of Jetty object, if needed.\n if (H2O.getJetty() == null) {\n H2O.setJetty(new JettyHTTPD());\n }\n\n // API socket is only used to find opened port on given ip.\n ServerSocket apiSocket = null;\n\n // At this point we would like to allocate 2 consecutive ports\n //\n while (true) {\n H2O.H2O_PORT = H2O.API_PORT+1;\n try {\n // kbn. seems like we need to set SO_REUSEADDR before binding?\n // http://www.javadocexamples.com/java/net/java.net.ServerSocket.html#setReuseAddress:boolean\n // When a TCP connection is closed the connection may remain in a timeout state\n // for a period of time after the connection is closed (typically known as the\n // TIME_WAIT state or 2MSL wait state). For applications using a well known socket address\n // or port it may not be possible to bind a socket to the required SocketAddress\n // if there is a connection in the timeout state involving the socket address or port.\n // Enabling SO_REUSEADDR prior to binding the socket using bind(SocketAddress)\n // allows the socket to be bound even though a previous connection is in a timeout state.\n // cnc: this is busted on windows. Back to the old code.\n if (!H2O.ARGS.disable_web) {\n apiSocket = H2O.ARGS.web_ip == null // Listen to any interface\n ? new ServerSocket(H2O.API_PORT)\n : new ServerSocket(H2O.API_PORT, -1, getInetAddress(H2O.ARGS.web_ip, null));\n apiSocket.setReuseAddress(true);\n }\n // Bind to the UDP socket\n _udpSocket = DatagramChannel.open();\n _udpSocket.socket().setReuseAddress(true);\n InetSocketAddress isa = new InetSocketAddress(H2O.SELF_ADDRESS, H2O.H2O_PORT);\n _udpSocket.socket().bind(isa);\n // Bind to the TCP socket also\n _tcpSocket = ServerSocketChannel.open();\n _tcpSocket.socket().setReceiveBufferSize(water.AutoBuffer.TCP_BUF_SIZ);\n _tcpSocket.socket().bind(isa);\n\n // Warning: There is a ip:port race between socket close and starting Jetty\n if (! H2O.ARGS.disable_web) {\n apiSocket.close();\n H2O.getJetty().start(H2O.ARGS.web_ip, H2O.API_PORT);\n }\n break;\n } catch (Exception e) {\n if( apiSocket != null ) try { apiSocket.close(); } catch( IOException ohwell ) { Log.err(ohwell); }\n if( _udpSocket != null ) try { _udpSocket.close(); } catch( IOException ie ) { }\n if( _tcpSocket != null ) try { _tcpSocket.close(); } catch( IOException ie ) { }\n apiSocket = null;\n _udpSocket = null;\n _tcpSocket = null;\n if( H2O.ARGS.port != 0 )\n H2O.die(\"On \" + H2O.SELF_ADDRESS +\n \" some of the required ports \" + H2O.ARGS.port +\n \", \" + (H2O.ARGS.port+1) +\n \" are not available, change -port PORT and try again.\");\n }\n // Try next available port to bound\n H2O.API_PORT += 2;\n }\n boolean isIPv6 = H2O.SELF_ADDRESS instanceof Inet6Address; // Is IPv6 address was assigned to this node\n H2O.SELF = H2ONode.self(H2O.SELF_ADDRESS);\n Log.info(\"Internal communication uses port: \", H2O.H2O_PORT, \"\\n\" +\n \"Listening for HTTP and REST traffic on \" + H2O.getURL(H2O.getJetty().getScheme()) + \"/\");\n try { Log.debug(\"Interface MTU: \", (NetworkInterface.getByInetAddress(H2O.SELF_ADDRESS)).getMTU());\n } catch (SocketException se) { Log.debug(\"No MTU due to SocketException. \"+se.toString()); }\n\n String embeddedConfigFlatfile = null;\n AbstractEmbeddedH2OConfig ec = H2O.getEmbeddedH2OConfig();\n if (ec != null) {\n ec.notifyAboutEmbeddedWebServerIpPort (H2O.SELF_ADDRESS, H2O.API_PORT);\n if (ec.providesFlatfile()) {\n try {\n embeddedConfigFlatfile = ec.fetchFlatfile();\n }\n catch (Exception e) {\n Log.err(\"Failed to get embedded config flatfile\");\n Log.err(e);\n H2O.exit(1);\n }\n }\n }\n\n // Read a flatfile of allowed nodes\n if (embeddedConfigFlatfile != null)\n H2O.STATIC_H2OS = parseFlatFileFromString(embeddedConfigFlatfile);\n else \n H2O.STATIC_H2OS = parseFlatFile(H2O.ARGS.flatfile);\n\n // All the machines has to agree on the same multicast address (i.e., multicast group)\n // Hence use the cloud name to generate multicast address\n // Note: if necessary we should permit configuration of multicast address manually\n // Note:\n // - IPv4 Multicast IPs are in the range E1.00.00.00 to EF.FF.FF.FF\n // - IPv6 Multicast IPs are in the range defined in NetworkUtils\n int hash = H2O.ARGS.name.hashCode();\n try {\n H2O.CLOUD_MULTICAST_GROUP = isIPv6 ? NetworkUtils.getIPv6MulticastGroup(hash, NetworkUtils.getIPv6Scope(H2O.SELF_ADDRESS))\n : NetworkUtils.getIPv4MulticastGroup(hash);\n } catch (UnknownHostException e) {\n Log.err(\"Cannot get multicast group address for \" + H2O.SELF_ADDRESS);\n Log.throwErr(e);\n }\n H2O.CLOUD_MULTICAST_PORT = NetworkUtils.getMulticastPort(hash);\n }", "title": "" }, { "docid": "6399f4bed80b7e8bca5dd956b1e4f24e", "score": "0.48161885", "text": "private void connectLike() {\n try{\n //Enviem el nom de l'usuari associat i del que volem connectar-nos\n dataOut.writeUTF(connectController.getSourceUsername());\n dataOut.writeUTF(connectController.getConnectUsername());\n //Llegim si aquests dos tenen una relacio i es un match\n boolean isMatch = dataIn.readBoolean();\n //Fem certes accions en funcio de si es match o no\n connectController.matchActions(isMatch);\n\n }catch (IOException e){\n connectController.showWarning(\"Error communicating with Server.\");\n }\n }", "title": "" } ]
5a7b8b76fe3f15b44669716a65284329
check if blindSpot was already registered
[ { "docid": "1a479000a8428e529e3ca5a5b043865e", "score": "0.5298862", "text": "private boolean checkIfRepeated(JSONObject loc) {\n String lat;\n String lon;\n\n try {\n // for minimum of 60 meters radius\n lat = loc.get(\"latitude\").toString().substring(0, 6); // ##.###\n lon = loc.get(\"longitude\").toString().substring(0, 6); // ##.###\n } catch (Exception e) {\n return true;\n }\n\n String key = lat + lon;\n if (blindLocations.get(key) != null) {\n return true;\n } else {\n blindLocations.put(key, 1L);\n return false;\n }\n }", "title": "" } ]
[ { "docid": "ec057c5b79c5bacc92e80fb7db40e680", "score": "0.6109953", "text": "Boolean isSpot();", "title": "" }, { "docid": "d4fd49548a60b73b4afa438d7ec07dc5", "score": "0.5834894", "text": "public boolean checkSpot() {\n return this.piece == null;\n }", "title": "" }, { "docid": "bc739a46223435ff5f01b19aa59095ab", "score": "0.5824079", "text": "boolean isRegistered();", "title": "" }, { "docid": "c414f90543a85537b0acee05c8c2210b", "score": "0.5812687", "text": "boolean hasNewSlot();", "title": "" }, { "docid": "928c8eb18eab169caa06a095bdfb6ae2", "score": "0.5797629", "text": "@Override\r\n\tboolean isOccupied(char spot) {\r\n\t\tif (spot == 'l') {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "4142471011ec6dfb33e44d306a0fe912", "score": "0.5760193", "text": "boolean hasRegisterDecks();", "title": "" }, { "docid": "974b02669652c95f58bcc8b351ab7e54", "score": "0.56713057", "text": "protected boolean isInUse()\n {\n return!bNotInUse;\n }", "title": "" }, { "docid": "97b8ae21d31595aef23f8400c4741c69", "score": "0.5580116", "text": "public abstract boolean isRegistered(String name);", "title": "" }, { "docid": "49ee524a3e052d262f35c06ef7f0d5b3", "score": "0.5575251", "text": "boolean hasNeedRingName();", "title": "" }, { "docid": "10b77006748de1a3d2e9e5c62e1e1ff0", "score": "0.55743337", "text": "boolean hasSharedSlot();", "title": "" }, { "docid": "102aa3d07e0589569cf1fe199ed00eea", "score": "0.55661386", "text": "protected boolean checkRegistrationFor(String app_name)\n {\n return registration.containsKey(app_name);\n }", "title": "" }, { "docid": "5071374ed891f184723d52811d587824", "score": "0.55636865", "text": "public boolean isPlugged(int symbol) {\n\t\treturn (plugs[symbol] != symbol);\n\t}", "title": "" }, { "docid": "4c60ebc8832e781dd2ab3a9f6768f49e", "score": "0.55630416", "text": "boolean hasRegisterData();", "title": "" }, { "docid": "f7722aa2cf0d50344c43ea815180d000", "score": "0.5538407", "text": "public boolean canFitInSpot(ParkingSpot spot) {\n return true;\n }", "title": "" }, { "docid": "556448f4f8800e9e3fa01cab1c71d8ed", "score": "0.54894805", "text": "public void missedSpot(ImageView spot) {\n if (gameOver) // if the game is already over, exit\n return;\n\n // if the game has been lost\n // end else\n }", "title": "" }, { "docid": "90614e5110ad7bf9c25efa4cad0b069e", "score": "0.5459638", "text": "@Override\n public boolean canFitinSpot(ParkingSpot spot) {\n return spot.canFitVehicle(this);\n }", "title": "" }, { "docid": "5c6f385343ce918277cfb6d19a4697b7", "score": "0.54159176", "text": "boolean hasBeenSeen();", "title": "" }, { "docid": "16f9c03d9551b11795d98b12a1f33f4e", "score": "0.53859913", "text": "@Override\n\tprotected boolean isRegisterGameMessage()\n\t{\n\t\treturn false;\n\t}", "title": "" }, { "docid": "9ee93502a542c8f7c4c6a3f07d2507c9", "score": "0.53858954", "text": "public boolean hasJackpot() {\n return jackpot_ != null;\n }", "title": "" }, { "docid": "fa8cff57d1b6a19945fe9bdfeb77445c", "score": "0.535799", "text": "@Override\n public boolean activate() {\n return !Inventory.contains(Ui.boneID) && Objects.bankID() != null;\n }", "title": "" }, { "docid": "49c49de6a692bd96a813fde0e1de736a", "score": "0.53312397", "text": "public boolean canStay() {\n return (this.myGame.getMap()[this.getPosX()][this.getPosY()].isTokenHere() == false);\n }", "title": "" }, { "docid": "3c3ff9bbf87047bcb38e056e5e79967e", "score": "0.53211755", "text": "boolean hasBinder();", "title": "" }, { "docid": "aacdba40d03110afd46d9b8cbdd6745f", "score": "0.5317859", "text": "private static boolean isBlackListed() {\n\n \t//System.out.println(blacklistEdge);\n\n Point crt = getCurrentPosition();\n double angle = getCurrentAngle();\n double hypotenuse = 25;\n\n double dx = DIST_US_SENSOR_X + Math.sin(Math.toRadians(angle)) * (hypotenuse + DIST_US_SENSOR_Y); // x\n // displacement\n double dy = Math.cos(Math.toRadians(angle)) * (hypotenuse + DIST_US_SENSOR_Y); // y displacement\n\n Point npt = new Point(crt.x + dx / (TILE_SIZE * 100), crt.y + dy / (TILE_SIZE * 100));\n\n /*\n * Debug:\n System.out.println(\"angle = \" + angle); System.out.println(\"hypo = \" +\n (hypotenuse + DIST_US_SENSOR_Y)); System.out.println(\"dx = \" + dx + DIST_US_SENSOR_X); System.out.println(\"dy = \" + dy);\n System.out.println(\"Point curr = \" + crt); System.out.println(\"Point seen = \" + npt);\n */\n \n if (new Rect(Resources.island).contains(npt)) {\n return false;\n }\n\n if (new Rect(Resources.startZone).contains(npt)) {\n \treturn false;\n }\n\n return true;\n }", "title": "" }, { "docid": "3988fbd173ce64a5d9ba33a82f83ec22", "score": "0.53151596", "text": "public boolean isRegisterd(){\n return pref.getBoolean(IS_REGISTER,false);\n }", "title": "" }, { "docid": "2142f0c75e162f52cec54f114cbbfcfb", "score": "0.5311586", "text": "boolean hasGongxun();", "title": "" }, { "docid": "bd04c5c36cbf5126fc1354bb501942d8", "score": "0.53110975", "text": "public boolean isRegistered(String localProfileUri) throws SipException {\n/* 182 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "title": "" }, { "docid": "84cf33665e5cd4cdb49c16188695e618", "score": "0.52889466", "text": "private boolean isUsed(String key) {\n if (components.containsKey(key) || inrecovery.containsKey(key)) {\n return true;\n }\n try {\n for (ADERegistry ar : registries.keySet()) {\n\t\t// MS: FIXED: should use remote call\n\t\t// if (ar.isUsed(key, this)) {\n if ((Boolean)rctReg.remoteCall(\"isUsed\", ar, key, this)) {\n return true;\n }\n }\n } catch (Exception e) {\n // something wrong, be conservative and assume the key might be in use...\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "a39f5185f8b5c1685a2258f1d84b382e", "score": "0.5263964", "text": "public boolean isUsed(Key key)\n {\n return registry.containsKey(key);\n }", "title": "" }, { "docid": "c30948726e1bc9ac13cb62560336621c", "score": "0.52468246", "text": "private boolean isModelRegistered() {\n \t\treturn m_model != null;\n \t}", "title": "" }, { "docid": "c93f6bb8561e84030de224fecc5055f6", "score": "0.5244521", "text": "public boolean isLost();", "title": "" }, { "docid": "b87ac3bd5a6230b69146312e04af2449", "score": "0.52265084", "text": "boolean hasInstanceId();", "title": "" }, { "docid": "387aae85a6cdb27f255065c968e70ca1", "score": "0.5210181", "text": "boolean wasExistingTargetPreserved();", "title": "" }, { "docid": "a295c483a4b7774fb93f814a2d295c09", "score": "0.52054805", "text": "private boolean wasSpareFrame() {\n // to have a spare frame it must exist so frames must have elements and\n // the score of the previous frame must be equal to the number of pins\n // in two bowls\n return frames.size() > 0\n && frames.getLast().getScore() == Frame.NUMBER_OF_PINS\n && frames.getLast().getRolls().size() == 2;\n }", "title": "" }, { "docid": "08a8a326a094c9ae3977dd428637bf6b", "score": "0.5202676", "text": "private void register() {\n\t\tif (truckID == -1) {\n\t\t\ttruckID = nextID++;\n\t\t} else {\n\t\t\tSystem.out.println(\"Already registered\");\n\t\t}\n\t}", "title": "" }, { "docid": "14094f28abc81981f51d3c6307f7b2cd", "score": "0.51940304", "text": "public boolean hasRegistrator()\n {\n return registrator != null;\n }", "title": "" }, { "docid": "da8229f1dbbc3b7285a90a4a25bd57aa", "score": "0.5175189", "text": "boolean stickyTracking();", "title": "" }, { "docid": "eef21e8daf8a7f068d48f9a83bf470f1", "score": "0.51706886", "text": "public boolean hasJackpot() {\n return jackpotBuilder_ != null || jackpot_ != null;\n }", "title": "" }, { "docid": "8ea8b67c22e2c3edd6862e8caf01017c", "score": "0.51687187", "text": "static boolean isRegistered(Object value) {\n return getRegistry().contains(value);\n }", "title": "" }, { "docid": "9703256c58a95a64ad9239b49863fae6", "score": "0.5159862", "text": "public void isSeen()\n {\n if (hasBeenSeen)\n {\n return;\n }\n double distFromPlayer = Math.abs(Player.xPosition - xCor) + Math.abs(Player.yPosition - yCor);\n if (distFromPlayer <= Player.playerSightRange)\n {\n hasBeenSeen = true;\n }\n }", "title": "" }, { "docid": "d83302d991b933b074ca4dd12f9d42ce", "score": "0.5156427", "text": "@Override\n protected boolean isEnemyPresent(Location currentLocation) {\n Ocean ocean = Ocean.getInstanse();\n return ocean.getFishByLocation(currentLocation) instanceof Shark;\n }", "title": "" }, { "docid": "907ac020c22349af37f31079a976e116", "score": "0.5151641", "text": "boolean hasAdditionalBackpackSlots();", "title": "" }, { "docid": "396cd31b8d8607fe0084289f839745ec", "score": "0.5149224", "text": "boolean hasRing();", "title": "" }, { "docid": "396cd31b8d8607fe0084289f839745ec", "score": "0.5149224", "text": "boolean hasRing();", "title": "" }, { "docid": "f0e54d1cd1ad9fd24249160c9e3f61d9", "score": "0.5149073", "text": "public boolean isRegistered() {\n return registered;\n }", "title": "" }, { "docid": "609853a4a65c07f7012adf8ca800b25f", "score": "0.5135362", "text": "public boolean playbackLastRegister(Editor editor, DataContext context, Project project, int count) {\n if (lastRegister != 0) {\n return playbackRegister(editor, context, project, lastRegister, count);\n }\n\n return false;\n }", "title": "" }, { "docid": "6fd9960ad10556de2317ba50571e5b91", "score": "0.51351976", "text": "boolean hasGauntletInstanceId();", "title": "" }, { "docid": "2b5b60ac23234f2a48ef279ef623aadb", "score": "0.5127608", "text": "public boolean isAlreadyStored(Tweet t) {\r\n return t.equals(tweets);\r\n }", "title": "" }, { "docid": "b6169a4c459c3140885e9917421d5cd8", "score": "0.512709", "text": "@PluginMethod\n public void isSecretStored(PluginCall call) {\n try {\n Boolean res = implementation.isSecretStored();\n rHandler.retResult(call, res, null);\n return;\n } catch (Exception e) {\n String msg = \"IsSecretStored: \" + e.getMessage();\n rHandler.retResult(call, null, msg);\n return;\n }\n }", "title": "" }, { "docid": "5de4726b120091f779b7a81f1e79271e", "score": "0.5125806", "text": "public void registerHit(){\n life--;\n if (life != 0) {\n controller.remotePainterAccess(new Position(shotThatHitYouPosition));\n jukebox.playMP3(JukeBox2.ENEMYHIT);\n }\n else\n die();\n }", "title": "" }, { "docid": "b8ddaa537e8c2c9183c214b2d5368f8b", "score": "0.512427", "text": "public boolean isRegistered() {\n return (registered);\n }", "title": "" }, { "docid": "13cc306914a139d394d8bfb6c529f174", "score": "0.5117299", "text": "boolean hasSn();", "title": "" }, { "docid": "06ec2fe60076a87e560707271a30bb01", "score": "0.51122534", "text": "public boolean isHoldingBall() {\n return !this.microswitch.get();\n }", "title": "" }, { "docid": "d0ec2d0c51ef5f376ad2de128342c002", "score": "0.5107303", "text": "public boolean hasBust() {\n\t\treturn hand.isOver();\n\t}", "title": "" }, { "docid": "8c7268b6443129656d6449041794c70e", "score": "0.5107047", "text": "public boolean hasPin() {\r\n return bankPin != null;\r\n }", "title": "" }, { "docid": "13cd56cd39c39b301786a14af6fa4f3c", "score": "0.5099363", "text": "void checkForTie(){\n if(freeTilesList.isEmpty()) {\n gameOver = true;\n showGameOverDialog(\"Nobody\");\n }\n }", "title": "" }, { "docid": "6a468123d61a6c7e63aa409c03d99309", "score": "0.50881934", "text": "private boolean checkForBusted() {\n // return true if there is a guard in the same room as the player\n for (Guard guard : guards) {\n if (currentRoom.getLocation().equals(guard.getRoom().getLocation())) {\n gotBusted = true;\n return true;\n }\n if (currentRoom.getLocation().equals(guard.getOldRoom().getLocation()) && oldRoom.getLocation().equals(guard.getRoom().getLocation())) {\n gotBusted = true;\n return true;\n }\n\n }\n return false;\n }", "title": "" }, { "docid": "a5c93803ad4502b4046472bcdeb1162e", "score": "0.5086072", "text": "boolean isUsed(ScrapComponent cc) \n{\n return used_components.contains(cc);\n}", "title": "" }, { "docid": "dae4a20878b86e9731f0f6eddd3e4d9a", "score": "0.5080963", "text": "Update withIsSpot(Boolean isSpot);", "title": "" }, { "docid": "437ad818d8d67d071194ae756ce2216c", "score": "0.5080196", "text": "public abstract boolean isSingleUse();", "title": "" }, { "docid": "9287069d47df85597911595c7ad5350c", "score": "0.50798434", "text": "public boolean saveNeeded() {\r\n return hasPin();\r\n }", "title": "" }, { "docid": "d2dabe92ed38ac75e63305b4ffa70cb7", "score": "0.50737417", "text": "public boolean isGrabbing () { \n return isGrabbing;\n }", "title": "" }, { "docid": "83762fb900cacf8126acf0c54c6e29f6", "score": "0.50721407", "text": "private void checkScanningNotStarted() {\n if (/*region != null*/ result_scanner != null) {\n throw new IllegalStateException(\"scanning already started\");\n }\n }", "title": "" }, { "docid": "2f41e1ef9dce9268ef8500abccda405d", "score": "0.5068529", "text": "public abstract boolean isRegistered(Command cmd);", "title": "" }, { "docid": "206f0656915393454766172da5f06a2c", "score": "0.50684583", "text": "public boolean isOpponentPots();", "title": "" }, { "docid": "382c43d73b4f36dcc5e4d0ba873cde10", "score": "0.50683063", "text": "public boolean hasRegisterData() {\n return instance.hasRegisterData();\n }", "title": "" }, { "docid": "57ecd440bec35191ec07d89dbe480963", "score": "0.50620455", "text": "private boolean isRegisterKeyValid(String registerKey) {\n\tif (Builds.BETA.isCurrent()) {\n\t\tif (registerKey != null) {\n\t\t\tEntity entity = DatastoreUtils.getSingleEntity(DatastoreTables.BETA_KEY, new FilterWrapper(CBetaKey.KEY, registerKey));\n\n\t\t\t// Found key\n\t\t\tif (entity != null) {\n\t\t\t\t// Not used\n\t\t\t\tBoolean used = (Boolean) entity.getProperty(CBetaKey.USED);\n\t\t\t\tif (used != null && !used) {\n\t\t\t\t\tmBetaKeyEntity = entity;\n\t\t\t\t\treturn true;\n\t\t\t\t} else {\n\t\t\t\t\tmResponse.status = Statuses.FAIL_REGISTER_KEY_USED;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tmResponse.status = Statuses.FAIL_REGISTER_KEY_INVALID;\n\t\t\t}\n\t\t} else {\n\t\t\tmResponse.status = Statuses.FAIL_REGISTER_KEY_INVALID;\n\t\t}\n\t\treturn false;\n\t}\n\t// Not beta buildType\n\telse {\n\t\treturn true;\n\t}\n}", "title": "" }, { "docid": "6850645f97fa490b9b87c08fc5b0d9fd", "score": "0.50591", "text": "private static boolean isRegistered(Class<?> from, Class<?> to) {\n return REGISTRY.get(new Pair<Class<?>, Class<?>>(from, to)) != null;\n }", "title": "" }, { "docid": "3ea292be18a9a3e942e983d431356ed4", "score": "0.5050593", "text": "private void checkAndAttachSensors() {\n mSensorManager = (SensorManager) getSystemService(Context.SENSOR_SERVICE);\n if (mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER) != null){\n mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER);\n mSensorManager.registerListener(this, mSensor, SensorManager.SENSOR_DELAY_NORMAL);\n canVibrate = true;\n }\n else {\n canVibrate = false;\n }\n\n }", "title": "" }, { "docid": "55723306f57342e2e9232d34a5f6d6be", "score": "0.50484365", "text": "public boolean isPots();", "title": "" }, { "docid": "20dd886f7b3d0120af476ac163a9e7b1", "score": "0.50472486", "text": "boolean hasBoosterType();", "title": "" }, { "docid": "1a978a7001f37472baefaa0033135e39", "score": "0.50444853", "text": "@Override\n public boolean fireCurrentPlace() {\n return History.getToken() != null && !History.getToken().isEmpty() && super.fireCurrentPlace();\n }", "title": "" }, { "docid": "3e0270a1f248f5710e1450f6fd4c9156", "score": "0.50423884", "text": "private boolean checkPresence() {\r\n\t\tred.fetchSample(samplered, 0);\r\n\t\treturn(samplered[0]>0.2);\t\r\n\t}", "title": "" }, { "docid": "ae905796e2fb8050b2536c7ca3ae5946", "score": "0.50354415", "text": "public boolean defined() {\n\t\treturn getClass() != dummy_inst.getClass();\n\t}", "title": "" }, { "docid": "98f505503a3f3670d84a79c910420c15", "score": "0.5029989", "text": "protected boolean hasCurrent()\n {\n return m_token != null;\n }", "title": "" }, { "docid": "03c3e086d4228c21ac60a40ef2559b6e", "score": "0.5028609", "text": "boolean registered() {\r\n\t\treturn m_registered;\r\n\t}", "title": "" }, { "docid": "dbb1ddcab9190fde0979c041ae2f7aeb", "score": "0.50272274", "text": "public boolean isSameSpot(){\n if(oldPosition.z == getPosition().z && oldPosition.x == getPosition().x){\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "eb8873afd8bb8333fa91fbaa995db4d8", "score": "0.502473", "text": "private void checkIfClueFound(){\n MainActivity mainActivity = (MainActivity) getActivity();\n mainActivity.needToShowGPSAlert = true;\n if(mainActivity.checkIfGPSEnabled()) {\n Location curLocation = mainActivity.mLastLocation;\n if (curLocation != null) {\n Waypoint curWaypoint = quest.getWaypoints()[numClue];\n double lat = curWaypoint.getLat();\n double lon = curWaypoint.getLng();\n double rad = curWaypoint.getRad();\n float[] results = new float[1];\n\n Location.distanceBetween(curLocation.getLatitude(), curLocation.getLongitude(),\n lat, lon,\n results);\n if (results[0] <= rad) {\n clueCompleted();\n } else {\n //String to display if hint is not already showing\n String alertString = getActivity().getResources().getString(R.string.location_not_found_hint);\n TextView txtHint = (TextView) v.findViewById(R.id.txt_hint);\n if (txtHint.getVisibility() == View.VISIBLE) {\n //String to display if hint is already showing\n alertString = getActivity().getResources().getString(R.string.location_not_found);\n }\n mainActivity.showAlertDialog(alertString,\n new AlertDialog.Builder(mainActivity).create());\n }\n } else {\n Log.i(logMessages.LOCATION, \"QuestInProgressFragment: checkIfClueFound: location is null\");\n //: this shouln't happen. Handle it better...\n }\n }\n }", "title": "" }, { "docid": "6b3347791c70ae37bec0f063fad48a97", "score": "0.5022753", "text": "boolean hasTourneySalt();", "title": "" }, { "docid": "9d65394af77a38fb498359aa17005da6", "score": "0.5016025", "text": "boolean freeSpotOnShelf() {\r\n return booksCount < bookCapacity;\r\n }", "title": "" }, { "docid": "6bca41f0a301bcdd4f83871c29ed1872", "score": "0.5010897", "text": "private Boolean checkSpawnPoint( Point point ) {\n\n\n if ( saveSpawns.size() == 0 ) {\n return true;\n }\n\n for ( Point point2 : saveSpawns ) {\n\n if ( point2.distance(point) >= minSpawnDistance ) {\n\n Block block = world.getBlock(point);\n\n if ( block.getMaterial() instanceof Solid ) {\n return true;\n }\n\n }\n\n }\n\n return false;\n }", "title": "" }, { "docid": "1d3bbc76a80f4feb8246b5870e98d480", "score": "0.50092626", "text": "boolean hasS2CMastery();", "title": "" }, { "docid": "1a24421badc5b24a29a609b547272c1a", "score": "0.50053525", "text": "private boolean checkBreeding() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "cc2932ed8038ba3400d24cecb77b8504", "score": "0.5003068", "text": "boolean hasClothing();", "title": "" }, { "docid": "f701fbe6a32b421f43d2c0b6daab94bc", "score": "0.5001239", "text": "public boolean isRegistered(String id);", "title": "" }, { "docid": "e05e824afb7c9a0fc6d535313fee736e", "score": "0.49992287", "text": "boolean hasIsBaoJing();", "title": "" }, { "docid": "56f56cbcb50ab0bd23d0e78dc9c18638", "score": "0.49980465", "text": "public boolean isLotAdded(ParkingLot parkingLot) {\n if(this.parkingLotList.contains(parkingLot)){\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "699157d5f38f6c1cdb98eda75c93da1f", "score": "0.49887842", "text": "private void removeAvailableSpot(int position){\n if(availableSpots.containsKey(position))\n availableSpots.remove(position);\n }", "title": "" }, { "docid": "fc967b239bde535d39f2ad4ef592b667", "score": "0.49876535", "text": "public boolean hasHold();", "title": "" }, { "docid": "0586d8a31cb6cb81fc3a1d055b6c1a11", "score": "0.49861583", "text": "@java.lang.Override\n public boolean hasTokenBucket() {\n return tokenBucket_ != null;\n }", "title": "" }, { "docid": "a38917faa685ddaa158771a9212aba6b", "score": "0.4983116", "text": "public boolean isFiredAvailable();", "title": "" }, { "docid": "30629cc389524de1ff8617e164296ece", "score": "0.49830222", "text": "public Match register(Match bet) {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "e514410caca6f949ea8a652e085007b8", "score": "0.49803007", "text": "public boolean isPlugged();", "title": "" }, { "docid": "df218530c6341eb0ead792942ccb8b59", "score": "0.49790624", "text": "protected static boolean isRegistered(Server server) {\n if (!addServerTestsCalled) {\n throw new IllegalStateException(\"Cannot call isRegistered here. It is allowed only in suite method after addServerTests is called.\");\n }\n if (server == ANY) {\n return !alreadyRegistered.isEmpty();\n } else {\n return alreadyRegistered.contains(server);\n }\n }", "title": "" }, { "docid": "4e658cefe81dea42e951aa5100d764bd", "score": "0.4978164", "text": "boolean hasLocation();", "title": "" }, { "docid": "4e658cefe81dea42e951aa5100d764bd", "score": "0.4978164", "text": "boolean hasLocation();", "title": "" }, { "docid": "1bcb22f04cefe616dce88e57f0851bf8", "score": "0.49763265", "text": "public boolean isKeywordRegistered(String keyword);", "title": "" }, { "docid": "a1d11865a5ea241c32e0bfc527713cd9", "score": "0.49738225", "text": "public boolean addGuppy(Guppy guppy) {\n if (guppy == null) {\n return false;\n }\n return guppiesInPool.add(guppy);\n }", "title": "" }, { "docid": "0aa33be97d1715814fef6397432b7ea0", "score": "0.49574414", "text": "private boolean checkBlinds() {\n if (RoomPageContent.getMenu().equals(\"add\")) {\n if (addBlinds.getText().isEmpty() || (!addBlinds.getText().equals(\"true\") && !addBlinds.getText().equals(\"false\"))) {\n addBlindsCheck.setText(\"You have to complete this field with 'true' or 'false' !\");\n return false;\n }\n addBlindsCheck.setText(\"\");\n return true;\n } else {\n if (editBlinds.getText().isEmpty() || (!editBlinds.getText().equals(\"true\") && !editBlinds.getText().equals(\"false\"))) {\n editBlindsCheck.setText(\"You have to complete this field with 'true' or 'false' !\");\n return false;\n }\n editBlindsCheck.setText(\"\");\n return true;\n }\n\n }", "title": "" }, { "docid": "551547864c96cd5286ad3a39ae308a9d", "score": "0.49574277", "text": "private void checkTreasure() {\n\t\tif (ship.hasTreasure == true){ \n\t\t\tstop = true;\n\t\t\taddWinImage(root);\n\t\t\tSystem.out.println(\"You found the treasure! You win!\");\n\t\t}\n\t}", "title": "" }, { "docid": "31ef5d9b936bc027c3ea5a3a4f930c87", "score": "0.4949922", "text": "@Override\n public boolean check(Location loc) {\n return gameGroup.getCurrentMap().canPaste(new BoundingBox(loc.toVector(), loc.toVector()));\n }", "title": "" } ]
ef95bc290350421a511e117b6a5b56a9
pre: none post: returns the data values of the tree in preorder traversal
[ { "docid": "47a4bdf6ef1e62354bae6de2c5fc7754", "score": "0.61387825", "text": "private String getPreOrder(IntTreeNode root, String result) {\r\n if (root != null) {\r\n result = result + root.data + \" \";\r\n result = getPreOrder(root.left, result);\r\n result = getPreOrder(root.right, result);\r\n }\r\n\r\n return result;\r\n }", "title": "" } ]
[ { "docid": "063bcaa1abbd899c67a0a84568b3a9c5", "score": "0.72572756", "text": "public List<Integer> preorderTraversal(TreeNode root) {\n /**\n * stack\n */\n// Stack<TreeNode> stack = new Stack<>();\n// List<Integer> list = new ArrayList<>();\n// if(root == null){\n// return list;\n// }\n// stack.push(root);\n// while (!stack.isEmpty()){\n// TreeNode node = stack.pop();\n// list.add(node.val);\n// if(node.left != null){\n// stack.push(node.left);\n// }\n// if(node.right != null){\n// stack.push(node.right);\n// }\n// }\n// return list;\n /**\n * morris\n */\n List<Integer> list = new ArrayList<>();\n TreeNode node = root;\n TreeNode pre;\n while (node != null){\n if(node.left == null){\n list.add(node.val);\n node = node.right;\n }else {\n pre = node.left;\n while (pre.right != null && pre.right != node){\n pre = pre.right;\n }\n if(pre.right == null){\n list.add(node.val);\n pre.right = node;\n node = node.left;\n }else {\n pre.right = null;\n node = node.right;\n }\n }\n }\n return list;\n }", "title": "" }, { "docid": "e4fe16413a344db6df396e4ca22926f0", "score": "0.7095471", "text": "public String[] preOrder()\n\t{\n\t\tString[] currArray = {};\n\t\t\n\t\tcurrArray = appendArray(currArray, new String[] {this.data});\n\t\tif( this.left != null )\n\t\t\tcurrArray = appendArray(currArray, this.left.preOrder());\n\t\tif( this.right != null )\n\t\t\tcurrArray = appendArray(currArray, this.right.preOrder());\n\t\t\n\t\treturn currArray;\n\t}", "title": "" }, { "docid": "db6eb48eec8e3339c508159ca0051322", "score": "0.7061802", "text": "public static void preOrder(Tree t){\n if(t == null){\n return;\n }\n System.out.print(t.data + \" \");\n preOrder(t.left);\n preOrder(t.right);\n }", "title": "" }, { "docid": "6a7155231fcba49d259f6bbf395228e6", "score": "0.70396394", "text": "private List<T> preorder(BSTNode<T> current) {\n List<T> preList = new ArrayList<>();\n if (current == null) {\n return preList;\n } else {\n preList.add(current.getData());\n preList.addAll(preorder(current.getLeft()));\n preList.addAll(preorder(current.getRight()));\n }\n return preList;\n }", "title": "" }, { "docid": "8821d6e4ed77cd15938825a827faba8c", "score": "0.70204735", "text": "public static List<Integer> preorderTraversal(TreeNode root) {\n\n List result = new ArrayList();\n if(root != null){\n Stack<TreeNode> stack = new Stack<TreeNode>();\n stack.push(root);\n while(!stack.isEmpty()){\n root = stack.pop();\n result.add(root.val);\n if(root.right!=null){\n stack.push(root.right);\n }\n if(root.left!=null){\n stack.push(root.left);\n }\n }\n }\n return result;\n\n }", "title": "" }, { "docid": "5fb08e8206d2861b4abe4456974afc42", "score": "0.70160127", "text": "List<K> getPreOrderTraversal();", "title": "" }, { "docid": "9ca1e84a7d337a1d0f1d717a6decc160", "score": "0.7011177", "text": "public List<Integer> preorderTraversal(TreeNode root) {\r\n\t List<Integer> list = new ArrayList<>();\r\n\t if(root == null) return list;\r\n\t Stack<TreeNode> stack = new Stack<>();\r\n\t stack.push(root);\r\n\t while(!stack.empty()){\r\n\t root = stack.pop();\r\n\t list.add(root.val);\r\n\t if(root.right != null) stack.push(root.right);\r\n\t if(root.left != null) stack.push(root.left);\r\n\t }\r\n\t return list;\r\n\t}", "title": "" }, { "docid": "72c3003fda673c3a32d0578366c1139c", "score": "0.7002053", "text": "public List<Integer> preorderTraversal(TreeNode root) {\n List<Integer> preseq = new ArrayList<Integer>();\r\n //stack for iteration\r\n Stack<TreeNode> backups = new Stack<TreeNode>();\r\n\r\n while(root!=null){\r\n //visit root first\r\n preseq.add(root.val);\r\n //lookup left & save the backup node(left node)\r\n if(root.left!=null){\r\n if(root.right!=null)\r\n backups.push(root.right);\r\n root = root.left;\r\n }\r\n //no left, then go for right node\r\n else if(root.right!=null)\r\n root = root.right;\r\n //no left or right, go for backups.\r\n else if(!backups.empty())\r\n root = backups.pop();\r\n else break;\r\n }\r\n return preseq;\r\n }", "title": "" }, { "docid": "ba4d0211ea34a6175fe822863cd8ae51", "score": "0.70001996", "text": "public List<Integer> preorderTraversal(TreeNode root) {\n\t\tLinkedList<Integer> result = new LinkedList<>();\n\t\tStack<TreeNode> stack = new Stack<>();\n\t\tTreeNode node = root;\n\t\twhile (!stack.isEmpty() || node != null) {\n\t\t\tif (node != null) {\n\t\t\t\tresult.add(node.val);\n\t\t\t\tstack.push(node);\n\t\t\t\tnode = node.left;\n\t\t\t} else {\n\t\t\t\tTreeNode tn = stack.pop();\n\t\t\t\tnode = tn.right;\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "title": "" }, { "docid": "4f18d4ace4343bd582370783872d5d03", "score": "0.6986555", "text": "public List<Integer> preorderTraversal(TreeNode root) {\n List<Integer> res = new ArrayList<Integer>();\n Stack<TreeNode> stack = new Stack<TreeNode>();\n if (root == null) return res;\n stack.push(root);\n while(! stack.isEmpty()) {\n TreeNode cur = stack.pop();\n res.add(cur.val);\n if (cur.right != null) {\n stack.push(cur.right);\n }\n if (cur.left != null) {\n stack.push(cur.left);\n }\n }\n return res;\n }", "title": "" }, { "docid": "ee699a70f5b046d4f65b51605a743945", "score": "0.6974948", "text": "@Override\r\n\tpublic Iterable<Position<E>> preorder() {\r\n\t\tList<Position<E>> snapshot = new ArrayList<>();\r\n\t\tif (!isEmpty()) {\r\n\t\t\tpreorderSubTree(root(), snapshot);\r\n\t\t}\r\n\t\treturn snapshot;\r\n\t}", "title": "" }, { "docid": "97e6f78bb0776f998b22a84212f6ebc7", "score": "0.69329786", "text": "public String preOrderTraversal();", "title": "" }, { "docid": "3decca2d7b0077666d70e143283deb2d", "score": "0.68899137", "text": "public String preorder(TreeNode n) {\n String nodes = \"\";\n if (n != null) { // if actually have a tree node\n nodes += \" \" + n.getData(); // visit the node (root of subtree)\n nodes += preorder(n.getLeft()); // preorder traverse left subtree\n nodes += preorder(n.getRight()); // preorder traverse right subtree\n }\n return nodes; \n }", "title": "" }, { "docid": "761e57deca16972537c12ad9e5531359", "score": "0.68587935", "text": "public List<Integer> preOrder(TreeNode root) {\n List<Integer> result = new ArrayList<>();\n if (root == null) {\n return result;\n }\n Deque<TreeNode> stack = new LinkedList<>();\n stack.offerFirst(root);\n while (!stack.isEmpty()) {\n //the left subtree should be traverse before the right subtree\n //since stack is FILO, we should push right into the stack first,\n //so for the next step the top element of the stack is the left subtree.\n TreeNode cur = stack.pollFirst();\n result.add(cur.key);\n if (cur.right != null) {\n stack.offerFirst(cur.right);\n }\n if (cur.left != null) {\n stack.offerFirst(cur.left);\n }\n }\n return result;\n }", "title": "" }, { "docid": "5cb3e1604e65b9b80bdc7d008faf58aa", "score": "0.68570197", "text": "public ArrayList<Integer> preorderTraversal(TreeNode root) {\n\t\tif (null == root) {\r\n\t\t\treturn new ArrayList<Integer>();\r\n\t\t}\r\n\t\tArrayList<Integer> result = new ArrayList<Integer>();\r\n\t\tStack<TreeNode> stack = new Stack<TreeNode>();\r\n\t\twhile (!stack.isEmpty() || null != root) {\r\n\t\t\tif (null != root) {\r\n\t\t\t\tresult.add(root.val);\r\n\t\t\t\tif (null != root.right) {\r\n\t\t\t\t\tstack.push(root);\r\n\t\t\t\t}\r\n\t\t\t\troot = root.left;\r\n\t\t\t} else {\r\n\t\t\t\tTreeNode node = stack.pop().right;\r\n\t\t\t\tresult.add(node.val);\r\n\t\t\t\tif (null != node.right) {\r\n\t\t\t\t\tstack.push(node);\r\n\t\t\t\t}\r\n\t\t\t\troot = node.left;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "title": "" }, { "docid": "638a8e2292c1224dd8a97ff26e657a83", "score": "0.6851559", "text": "public Iterable<Position<E>> preorder()\n {\n List<Position<E>> snapshot = new ArrayList<>();\n\n if(!isEmpty())\n {\n preorderSubtree(root(), snapshot); // fill the snapshot recursively\n }\n\n return snapshot;\n }", "title": "" }, { "docid": "a1f2823553943de25907988817b13005", "score": "0.6832788", "text": "public LinkedList<T> preorderTraversal(){\n\t\tLinkedList<T> traversal = new LinkedList<T>();\n\t\tpreorderTraversal(root, traversal);\n\t\treturn traversal;\n\t}", "title": "" }, { "docid": "c140068b672980c6585c34aa2ac1cd13", "score": "0.6799344", "text": "public ArrayList<Integer> preorderTraverse() {\n\t\t\n\t}", "title": "" }, { "docid": "7708411a664f453d3649a385f39c118c", "score": "0.6792161", "text": "@Test\r\n public void preorderValuesTest() {\r\n BinaryTree<String> root = generateStandardTestTree();\r\n List<String> orderedV = Arrays.asList(\r\n \"ROOT\", \"LEFT\", \"LEFT-LEFT\", \"LEFT-RIGHT\",\r\n \"RIGHT\", \"RIGHT-LEFT\", \"RIGHT-LEFT-RIGHT\",\r\n \"RIGHT-RIGHT\", \"RIGHT-RIGHT-LEFT\");\r\n assertNotNull(root.preorderValues());\r\n assertEquals(orderedV, root.preorderValues());\r\n orderedV = Arrays.asList(\r\n \"F\", \"D\", \"B\", \"A\", \"C\", \"E\", \"H\", \"G\", \"I\", \"J\", \"K\");\r\n assertEquals(orderedV, generateSearchTree().preorderValues());\r\n BinaryTree<String> mt = new BinaryTree<String>();\r\n assertNotNull(mt.preorderValues());\r\n assertEquals(0, mt.preorderValues().size());\r\n }", "title": "" }, { "docid": "3ee8f817e876573346eef5a50b956287", "score": "0.6787433", "text": "@Override\n\tpublic List<K> getPreOrderTraversal() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "788f3787910c1f55162e49353f89c28e", "score": "0.6772804", "text": "public List<Integer> preOrder(TreeNode root) {\n Deque<TreeNode> stack = new ArrayDeque<TreeNode>();\n List<Integer> res = new ArrayList<>();\n while (!stack.isEmpty() || root != null) {\n if (root != null) {\n root = root.left;\n } else {\n root = stack.pop();\n res.add(root.val);\n root = root.right;\n }\n }\n return res;\n }", "title": "" }, { "docid": "170171dd4235dfb037a40fc6b5534fa8", "score": "0.6766552", "text": "public void preorderTraversal() {\n preorder(root);\n }", "title": "" }, { "docid": "e4aa2d2714cd96b32a05df4aa5f82265", "score": "0.67399585", "text": "static <E> List<E> preorder(Tree<E> a) {\n\t\tif (a.isEmpty()) {\n\t\t\treturn new List<>();\n\t\t}\n\t\tList<E> r = new List<>();\n\t\tList<E> l = new List<>();\n\t\tif (!a.getRight().isEmpty()) {\n\t\t\tr = preorder(a.getRight());\n\t\t}\n\t\tif (!a.getLeft().isEmpty()) {\n\t\t\tl = preorder(a.getLeft());\n\t\t}\n\t\treturn new List<>(a.getValue(), merge(l, r));\n\t}", "title": "" }, { "docid": "0878726d819a414b0e4c282cec83eeea", "score": "0.67387676", "text": "public List<Integer> preorderIter(Node root) {\n if (root == null) {\n return Collections.emptyList();\n }\n\n //list to hold preorder values\n List<Integer> list = new ArrayList<>();\n\n //stack to simulate recursion through iteration\n Stack<Node> stack = new Stack<>();\n\n //add the first node to the stack\n stack.push(root);\n\n while (!stack.isEmpty()) {\n Node curr = stack.pop();\n\n //preorder so we process the root first\n list.add(curr.val);\n\n /*\n since preorder is root, left, then right, we have to add child nodes in reverse order so after adding\n all \"curr\" children nodes to the stack, the top node will be the left-most node\n */\n for (int i = curr.children.size() - 1; i >= 0; i--) {\n stack.push(curr.children.get(i));\n }\n }\n return list;\n }", "title": "" }, { "docid": "a1f06fa2bccf86b9e21375a497e5819c", "score": "0.67384523", "text": "public List<Integer> preOrder(TreeNode root) {\n List<Integer> res = new ArrayList<>();\n Deque<TreeNode> stack = new ArrayDeque<>();\n if(root == null) return res;\n \n stack.add(root);\n \n while(!stack.isEmpty()) {\n TreeNode cur = stack.pop();\n res.add(cur.key);\n \n if(cur.right != null) {\n stack.push(cur.right);\n }\n \n if(cur.left != null) {\n stack.push(cur.left);\n }\n }\n return res;\n }", "title": "" }, { "docid": "6d10fb1a0f91ff72ac3ec0d23e89764c", "score": "0.671244", "text": "private void dfsPreOrderRecursive(BinaryTreeNode root, List<Integer> orderedValues) {\n orderedValues.add(root.value);\n if (root.left != null) dfsPreOrderRecursive(root.left, orderedValues);\n if (root.right != null) dfsPreOrderRecursive(root.right, orderedValues);\n }", "title": "" }, { "docid": "0b26b63b04aaeb5ae65354af47f3ef0d", "score": "0.66909975", "text": "public void preorderHelper(Node current){\n System.out.println(current.data);\n if(current.children != null){\n for(Node child: current.children){\n preorderHelper(child);\n }\n }\n }", "title": "" }, { "docid": "f6889b0e0f06045a5b1acdef3c571680", "score": "0.6670806", "text": "private static void binary_tree_preorder(Node root) {\n\t\tif(root != null) {\r\n\t\t\tSystem.out.println(root.data);\r\n\t\t\tbinary_tree_preorder(root.left);\r\n\t\t\tbinary_tree_preorder(root.right);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "2164d4475687811844d74d7b375e1f27", "score": "0.667039", "text": "private List<T> preOrder(Node<T> node) {\n\t\tList<T> list = new ArrayList<T>(size);\n\n\t\tlist.add(node.getData());\n\n\t\tif (node.getLeft() != null) {\n\t\t\tlist.addAll(preOrder(node.getLeft()));\n\t\t}\n\n\t\tif (node.getRight() != null) {\n\t\t\tlist.addAll(preOrder(node.getRight()));\n\t\t}\n\n\t\treturn list;\n\t}", "title": "" }, { "docid": "bd581ed8a7eed1ac0f8be6b13c7707df", "score": "0.66646796", "text": "public void preOrder( TreeNode<E> curr ) {\n\tif(curr != null){ \n\t System.out.println(curr.getData() + \"\");\n\t preOrder(curr.getLeft());\n\t preOrder(curr.getRight());}\n\n }", "title": "" }, { "docid": "fe34b3dfbaccf5ac9d0fe339f8dceaaa", "score": "0.6661966", "text": "public static void main(String[] args) {\n TreeNode t1 = new TreeNode(10);\n TreeNode t2 = new TreeNode(6);\n TreeNode t3 = new TreeNode(14);\n TreeNode t4 = new TreeNode(4);\n TreeNode t6 = new TreeNode(12);\n TreeNode t7 = new TreeNode(16);\n\n t1.left = t2;\n t1.right = t3;\n t2.left = t4;\n t3.left = t6;\n t3.right = t7;\n\n TreeNode head = t1;\n String s = Serialize(head);\n System.out.println(s);\n TreeNode.preorder_loop(Deserialize(s));\n \n }", "title": "" }, { "docid": "345137f34283081f5809b3b1568a753d", "score": "0.66438687", "text": "public static void preorder(Node root){\n\t\tif(root==null){\n\t\t\treturn;\n\t\t}\n\t\tSystem.out.println(root.data);\n\t\tpreorder(root.left);\n\t\tpreorder(root.right);\n\t}", "title": "" }, { "docid": "61b567fd5ca432862c20527c4058dd93", "score": "0.66404474", "text": "public void preorder() {\n preorder(this.root);\n }", "title": "" }, { "docid": "520bf86350940a1bbc72cbed1d875929", "score": "0.66394067", "text": "private void preorder(BSTNode<T> node, List<T> data) {\n if (node != null) {\n data.add(node.getData());\n preorder(node.getLeft(), data);\n preorder(node.getRight(), data);\n }\n }", "title": "" }, { "docid": "6848410f297d41090ebf4f62f7351d2e", "score": "0.6638038", "text": "static void preOrder(TreeNode root) {\n Stack<TreeNode> stack = new Stack<>();\n stack.add(root);\n Arrays.toString(preList.toArray());\n while (!stack.isEmpty()) {\n TreeNode node = stack.pop();\n preList.add(node);\n\n if (node.right_ptr != null) {\n stack.add(node.right_ptr);\n }\n\n if (node.left_ptr != null) {\n stack.add(node.left_ptr);\n }\n }\n }", "title": "" }, { "docid": "fba4503b703d506b22d0335966429e4c", "score": "0.66248965", "text": "public ArrayList<Integer> preorderTraverse3(TreeNode root) {\n\t\tArrayList<Integer> result = new ArrayList<Integer>();\n\t\t\n\t\t// Base\n\t\tif(root == null)\n\t\t\treturn result;\n\t\t\n\t\t// Divide\n\t\tArrayList<Integer> left = preorderTraverse3(root.left);\n\t\tArrayList<Integer> right = preorderTraverse3(root.right);\n\t\t\n\t\t// Conquer\n\t\tresult.add(root.val);\n\t\tresult.addAll(left);\n\t\tresult.addAll(right);\n\t\t\n\t\treturn result;\t\t\n\t}", "title": "" }, { "docid": "f4549dea93bc2a2d97af7f012315873c", "score": "0.66138923", "text": "public void preorder(BinaryTree root){\r\n\t\tif(root!=null){\r\n\t\t\tSystem.out.println(root.data);\r\n\t\t\tpreorder(root.left);\r\n\t\t\tpreorder(root.right);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "7bbbd6ecdfde7f800cf96db1697818d6", "score": "0.65975434", "text": "@Override\r\n\tpublic List<KeyValuePair<Key, Value>> preOrderTraversal() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "936c61e6038f635e6d02ed44ce041f3b", "score": "0.6589347", "text": "@Test\r\n public void preorderNodesTest() {\r\n BinaryTree<String> root = generateStandardTestTree();\r\n String[] orderedV = {\"ROOT\", \"LEFT\", \"LEFT-LEFT\", \"LEFT-RIGHT\",\r\n \"RIGHT\", \"RIGHT-LEFT\", \"RIGHT-LEFT-RIGHT\",\r\n \"RIGHT-RIGHT\", \"RIGHT-RIGHT-LEFT\"};\r\n assertNotNull(root.preorderSubtrees());\r\n assertEquals(orderedV.length, root.preorderSubtrees().size());\r\n int i = 0;\r\n for (BinaryTree<String> sbt : root.preorderSubtrees()) {\r\n assertEquals(orderedV[i], sbt.getValue());\r\n i++;\r\n }\r\n BinaryTree<String> mt = new BinaryTree<String>();\r\n assertNotNull(mt.preorderSubtrees());\r\n assertEquals(0, mt.preorderSubtrees().size());\r\n }", "title": "" }, { "docid": "1c0468f4930444be03e5e3a770ec31df", "score": "0.6584585", "text": "public void preorderTraversal(){\r\n\t\tif(root!=null){\r\n\t\t\troot.preorderTraverse();\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t}", "title": "" }, { "docid": "9ac9b11f2f1b80d1c8b8a2e85a7eaa04", "score": "0.6581202", "text": "public void preorder() \n\t{\n\t\tpreOrder(this.root); // calling pre order function\n\t}", "title": "" }, { "docid": "e01c4f0d7ce15f433617c11025579e93", "score": "0.6572951", "text": "private static void preorder(BST t) {\r\n\t\tt.reset(0);\r\n\t\tSystem.out.println(\"Preorder traversal:\");\r\n\t\twhile(t.hasNext())\r\n\t\tSystem.out.println(\" \"+((Camper)(t.getNext())).name);\r\n\t}", "title": "" }, { "docid": "c48212409f45362e4c97e4407efc3d48", "score": "0.65397865", "text": "public void preorder(Node root) {\n if(root != null) {\n System.out.printf(\"%d \",root.data);\n preorder(root.left);\n preorder(root.right);\n }\n }", "title": "" }, { "docid": "d368f4c0854395c5810483919d7e8a6c", "score": "0.6530511", "text": "public String preOrder(){\n\t\treturn preOrder(this.root);\n\t}", "title": "" }, { "docid": "4c27f7f9aeed1a11d5428bf940e40890", "score": "0.65211093", "text": "private void dfsPreOrderIterative(BinaryTreeNode root, List<Integer> orderedValues) {\n final Deque<BinaryTreeNode> recursionStack = new LinkedList<>();\n recursionStack.push(root);\n\n while (!recursionStack.isEmpty()) {\n BinaryTreeNode node = recursionStack.pop();\n\n orderedValues.add(node.value);\n\n if (node.right != null) recursionStack.push(node.right);\n if (node.left != null) recursionStack.push(node.left);\n }\n }", "title": "" }, { "docid": "b6e461d2d8a3f9116daf81f65c6c96b1", "score": "0.65158635", "text": "static void preOrder(Node root)\n {\n \tif (root == null) {\n \t\treturn;\n \t}\n \tSystem.out.print(root.data+\" \");\n \tpreOrder(root.left);\n \tpreOrder(root.right);\n }", "title": "" }, { "docid": "e2e4967c0d8912cbc4ba7f04a005936e", "score": "0.6503547", "text": "public void preOrderIter(Node root) {\r\n if(root == null) {\r\n return;\r\n }\r\n Stack<Node> stack = new Stack<>();\r\n stack.push(root);\r\n while(!stack.isEmpty()) {\r\n Node top = stack.pop();\r\n System.out.print(top.data + \" \");\r\n if(top.right != null) {\r\n stack.push(top.right);\r\n } \r\n if(top.left != null) {\r\n stack.push(top.left);\r\n }\r\n }\r\n }", "title": "" }, { "docid": "eb8b886185ccc05028bf888e805180c4", "score": "0.64869505", "text": "private void preorder(BinaryTreeNode root) {\n if (root != null) {\n System.out.print(root.data + \" \");\n preorder(root.left);\n preorder(root.right);\n }\n }", "title": "" }, { "docid": "e278b0fd3bcd790c82ab4f52a2612aee", "score": "0.6474278", "text": "List<K> getLevelOrderTraversal();", "title": "" }, { "docid": "c3aacbee297d4d747f73bc540007a0dd", "score": "0.64480513", "text": "private void preOrderRecursive(BTNode<E> node) {\n if (node == null) {\n return;\n }\n System.out.print(node.getData() + \" \");\n preOrderRecursive(node.getLeft());\n preOrderRecursive(node.getRight());\n }", "title": "" }, { "docid": "7c22f509cdfbf67154190fcde0391043", "score": "0.64386964", "text": "public void preOrderTraversal(TreeNode root) {\n\t\tif(root == null)\n\t\t\treturn;\n\t\tSystem.out.print(root.val + \" \");\n\t\tpreOrderTraversal(root.left);\n\t\tpreOrderTraversal(root.right);\n\t}", "title": "" }, { "docid": "d27b252e675271c503eaa0ee83c70732", "score": "0.64358264", "text": "protected void preorder(BinaryNode<E> root, Visitor<E> visitor) {\r\n \tif (root == null)\r\n \t\treturn;\r\n \tvisitor.visit(root.getData());\r\n \tpreorder(root.getLeftChild(), visitor);\r\n \tpreorder(root.getRightChild(), visitor);\r\n }", "title": "" }, { "docid": "b7e90eeefce001d57709c06a58bc982f", "score": "0.64257073", "text": "public static void preorder(Node root)\n {\n if (root == null) {\n return;\n }\n \n System.out.print(root.data + \" \");\n preorder(root.left);\n preorder(root.right);\n }", "title": "" }, { "docid": "dc58bf80a2cb369ab5e289a10e7bd4bf", "score": "0.6402145", "text": "void preOrderTraversal(Node temp) {\n if (temp == null)\n return;\n\n System.out.print(temp.key + \" \");\n preOrderTraversal(temp.left);\n preOrderTraversal(temp.right);\n }", "title": "" }, { "docid": "0efd30d962831d56e266f9e27410709c", "score": "0.6388874", "text": "static void ipreorder(Node root)\n { \n if (root == null)\n {\n \t return;\n }\n Stack<Node> s=new Stack<Node>(); \n s.push(root);\n \twhile(s.empty() == false)\n \t{\n Node point=s.peek();\n System.out.print(point.data +\" \");\n s.pop();\n if (point.right!=null) \n {\n \ts.push(point.right);\n }\n if (point.left!=null) \n {\n \ts.push(point.left);\n\n }\n \n \n \t}\n \t\n }", "title": "" }, { "docid": "d9a9c5d2de0b22a8d23145d3e8d9b6af", "score": "0.63807166", "text": "public void traversePreOrder() {\n traversePreOrder(head);\n }", "title": "" }, { "docid": "f69137d590a0bce14c6f24b7bb53c244", "score": "0.6368235", "text": "protected void preorder(BinaryNode<E> root, Visitor<E> visitor) {\r\n\t\tif (root == null)\r\n\t\t\treturn;\r\n\t\tvisitor.visit(root.getData());\r\n\t\tpreorder(root.getLeftChild(), visitor);\r\n\t\tpreorder(root.getRightChild(), visitor);\r\n\t}", "title": "" }, { "docid": "2a1737b4b04f752259ad461f9a5e65f7", "score": "0.63656753", "text": "public List<Integer> inorderTraversal(TreeNode root) {\n /**\n * recursion\n */\n// List<Integer> list = new LinkedList<>();\n// inorderTraversalHelper(root,list);\n// return list;\n /**\n * iterating\n */\n// List<Integer> list = new ArrayList<>();\n// Stack<TreeNode> stack = new Stack<>();\n// TreeNode node = root;\n// while (node != null || !stack.isEmpty()){\n// while (node != null){\n// stack.push(node.left);\n// node = node.left;\n// }\n// node = stack.pop();\n// list.add(node.val);\n// node = node.right;\n// }\n// return list;\n /**\n * morris traversal\n * space : O(1)\n * If current does not have left child\n *\n * a. Add current’s value\n *\n * b. Go to the right, i.e., current = current.right\n *\n * Else\n *\n * a. In current's left subtree, make current the right child of the rightmost node\n *\n * b. Go to this left child, i.e., current = current.left\n */\n List<Integer> list = new ArrayList<>();\n TreeNode node = root;\n TreeNode pre;\n while (node != null){\n if(node.left == null){\n list.add(node.val);\n node = node.right;\n }else {\n pre = node.left;\n while (pre.right != null){\n pre = pre.right;\n }\n pre.right = node;\n TreeNode temp = node;\n node = node.left;\n temp.left = null;\n }\n }\n return list;\n }", "title": "" }, { "docid": "8a33d658091dd5bee6359b021ebdddc0", "score": "0.63629735", "text": "public void preorderStack() {\n Node cur = root;\n stack.push(cur);\n \n while(stack.getTop() != null) {\n cur = stack.pop();\n if(cur != null) {\n System.out.print(cur + \" \");\n if(cur.right != null)\n stack.push(cur.right);\n if(cur.left != null)\n stack.push(cur.left);\n } \n }\n }", "title": "" }, { "docid": "70fe5d188b5f7f2b1304421285a8eee6", "score": "0.635398", "text": "public static <T> void preorderIterative(TreeNode<T> root) {\n\t\tSystem.out.println(\"preorder iterative\");\n\t\tif(root == null) return;\n\t\tStack<TreeNode<T>> stack = new StackImpl<TreeNode<T>>();\n\t\tstack.push(root);\n\n\t\twhile (!stack.isEmpty()) {\n\t\t\tTreeNode<T> node = stack.pop();\n\t\t\tSystem.out.print(node.data());\n\t\t\tif(node.right()!=null){\n\t\t\t\tstack.push(node.right());\n\t\t\t}\n\t\t\t\n\t\t\tif(node.left() != null){\n\t\t\t\tstack.push(node.left());\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "4593d4b52214ecb40198e6df4b310dfd", "score": "0.63418275", "text": "public void preOrderIter(TreeNode root) {\n if (root == null) return;\n Stack<TreeNode> stk = new Stack<>();\n TreeNode p = root;\n stk.push(p);\n while (!stk.isEmpty()) {\n TreeNode nd = stk.pop();\n StdOut.print(nd.val + \",\");\n if (nd.right != null) {\n stk.push(nd.right);\n }\n if (nd.left != null) {\n stk.push(nd.left);\n }\n }\n StdOut.println();\n }", "title": "" }, { "docid": "91a63ae935e7380f794ae95c04868013", "score": "0.63351864", "text": "List<K> getPostOrderTraversal();", "title": "" }, { "docid": "6ba4ae7aabdc1854446e7d4ac98bea95", "score": "0.6330409", "text": "@Override\n\tpublic List<K> getInOrderTraversal() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "483e7f23c6966ac8a94055b2794d5c6f", "score": "0.63139683", "text": "public void preOrder() {\n if (treeIsNotEmpty()) {\n System.out.println(\"PreOrder Traversal: \");\n System.out.print(\"[ \");\n preOrderRecursive(root);\n System.out.println(\"]\\n\");\n } else {\n System.out.println(\"Tree empty\\n\");\n }\n }", "title": "" }, { "docid": "a94ad34070ca82cc6467d2086a6902fe", "score": "0.6307652", "text": "public static void preOrder(TreeNode node) {\n\t if (node == null) {\n\t return;\n\t }\n\t System.out.print(node.data + \" \");\n\t preOrder(node.left);\n\t preOrder(node.right);\n\t }", "title": "" }, { "docid": "9b73300dd13f2ce50dcf919b5d895b77", "score": "0.63035446", "text": "public ArrayList<Integer> postorderTraversal(TreeNode root) {\n TreeNode pre, curr;\n Stack<TreeNode> s = new Stack<TreeNode>();\n s.push(null);\n ArrayList<Integer> answer = new ArrayList<Integer>();\n pre = new TreeNode(1);\n curr = root;\n while(!s.isEmpty()){\n if (curr != null){\n if(curr.right == pre){\n // right has been traveled\n answer.add(curr.val);\n }else{\n s.push(curr);\n if(pre != curr.left)\n s.push(curr.left);\n else\n s.push(curr.right);\n }\n }\n pre = curr;\n curr = s.pop();\n }\n return answer; \n }", "title": "" }, { "docid": "13bea83c2d35fde45c9b566e51d81234", "score": "0.6271458", "text": "private void preorder(TreeNode node) {\n\n if(node == null){\n return;\n }else{\n list.add(node.item);\n preorder(node.left);\n preorder(node.right);\n }\n\n }", "title": "" }, { "docid": "74bfc4317ccafa200aff7189757f88c9", "score": "0.62523305", "text": "void pre (){\n\t\t// Must find the last node to be printed:\n\t\tSystem.out.print(\"(\");\n\t\tpre(root, preorder_end(root));\n\t\tSystem.out.print(\")\");\n }", "title": "" }, { "docid": "329136ca6ab0341c2b6c2998cf71efd8", "score": "0.62490517", "text": "private static void VisitPreOrder(TreeNode root, Command<TreeNode> action)\n\t{\n\t\tif(root != null)\n\t\t{\n\t\t\taction.Run(root);\n\t\t\t\n\t\t\tTreeNode next = root.GetLeft();\n\t\t\t\n\t\t\twhile(next != null)\n\t\t\t{\n\t\t\t\tVisitPostOrder(next, action);\n\t\t\t\tnext = next.Next();\n\t\t\t}\t\n\t\t}\t\n\t}", "title": "" }, { "docid": "c83db60a3559ba90d23dea8adfb6c62e", "score": "0.62424767", "text": "public static String getPreorderTraversal(TreeNode root, StringBuffer sb){\n\t\tif(root == null){\n\t\t\tsb.append( \" NULL \");\n\t\t\treturn sb.toString();\n\t\t}\n\t\tsb.append(\" \"+root.val+\" \");\n\t\tgetPreorderTraversal(root.left, sb);\n\t\tgetPreorderTraversal(root.right, sb);\n\t\treturn sb.toString();\n\t}", "title": "" }, { "docid": "fb1963e02024e639b24e365841be42dd", "score": "0.6223293", "text": "List<K> getInOrderTraversal();", "title": "" }, { "docid": "eebe07bfa69ff1c42714280791f0dde6", "score": "0.62221307", "text": "public void inOrderTraversal(TreeNode root, ArrayList<TreeNode> pre)\n {\n if(root == null)\n return;\n \n // if root has no child\n if(root.left == null && root.right == null)\n {\n pre.add(root);\n return;\n }\n \n if(root.left != null)\n {\n inOrderTraversal(root.left , pre);\n }\n \n pre.add(root);\n \n if(root.right != null)\n {\n inOrderTraversal(root.right , pre);\n } \n \n }", "title": "" }, { "docid": "322be64041a28364c4317413156b765c", "score": "0.62208176", "text": "public List<Integer> inorderTraversal(TreeNode root) {\n List<Integer> resultList = new ArrayList<Integer>();\n if(root == null){\n return resultList;\n }\n List<Integer> leftList = inorderTraversal(root.left);\n List<Integer> rightList = inorderTraversal(root.right);\n resultList.addAll(leftList);\n resultList.add(root.val);\n resultList.addAll(rightList);\n return resultList;\n }", "title": "" }, { "docid": "495042d6dbaf0e704825e3fbd6a97aed", "score": "0.6220103", "text": "@Override\n\tpublic List<K> getPostOrderTraversal() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "78cb7c1e3253c0929b56b1fe8edfbb07", "score": "0.6211109", "text": "public static List<Integer> postorderTraversal4(TreeNode root) {\n List<Integer> res = new ArrayList<>();\n if (root == null) {\n return res;\n }\n Stack<TreeNode> stack = new Stack<>();\n stack.push(root);\n while (!stack.empty()) {\n root = stack.pop();\n res.add(root.val);\n if (root.left != null) {\n stack.push(root.left);\n }\n if (root.right != null) {\n stack.push(root.right);\n }\n }\n Collections.reverse(res);\n return res;\n }", "title": "" }, { "docid": "5eb95359becd09bee822ee01a7e6cf9d", "score": "0.6204469", "text": "public List<T> dpsInOrder() {\n printValues = new ArrayList<>();\n dpsInOrderRec(root);\n return printValues;\n }", "title": "" }, { "docid": "e77c72754c4bd0bbf35533802c1713c6", "score": "0.61947083", "text": "protected void preorder(TreeNode<E> root) {\n if (root == null) {\n return;\n }\n System.out.print(root.element + \" \");\n preorder(root.left);\n preorder(root.right);\n }", "title": "" }, { "docid": "d755df24692b121c8de8b21daf8618a4", "score": "0.6190406", "text": "public List<Integer> inorderTraversal(TreeNode root) {\n \n Stack<TreeNode> stack = new Stack();\n while(root!=null){\n stack.push(root);\n root = root.left;\n }\n \n List<Integer> res = new LinkedList();\n \n while(!stack.isEmpty()){\n TreeNode popped = stack.pop();\n res.add(popped.val);\n popped = popped.right;\n while(popped!=null){\n stack.push(popped);\n popped = popped.left;\n }\n }\n return res;\n }", "title": "" }, { "docid": "9be223fe141e4ed2a75f6cd625828921", "score": "0.617391", "text": "private static void printPreOrder(mbradBST tree) {\r\n\t\tSystem.out.print(\"preOrder: \");\r\n\t\ttree.preOrder(tree.root);\r\n\t\tSystem.out.println();\r\n\t}", "title": "" }, { "docid": "b749d14c84f84bdd2024d6fe3ba93a6a", "score": "0.61708134", "text": "public static void main(String[] args) {\n TreeNode root = TreeNode.deserializeLevelorder(\"6, null, 8, 7, 9\");\n TreeNode p = TreeNode.deserializeLevelorder(\"2, 0, 4, null, null, 3, 5\");\n root.left = p;\n\n TreeNode res = inorderSuccessor(root, p);\n TreeNode.printNode(res);\n }", "title": "" }, { "docid": "16826f6e476dfa04dfe38f2c45a6e1cb", "score": "0.6166725", "text": "@Override\n public void preOrder(@NotNull Node head) {\n // step 1\n Node left = null, right = null;\n var trace = new Stack<Node>();\n\n // push head into stack as the flag to judge gg\n var local = head;\n left = local.left;\n trace.push(local);\n System.out.print(local.value + \" \");\n\n while (!trace.isEmpty()) {\n // step 2\n while( left != null) {\n local = left;\n trace.push(local);\n System.out.print(local.value + \" \");\n left = local.left;\n }\n //step 3\n local = trace.pop();\n right = local.right;\n if (right != null) {\n local = right;\n trace.push(local);\n System.out.print(local.value + \" \");\n left = local.left;\n //goto step 2\n continue;\n }\n }\n\n }", "title": "" }, { "docid": "5f745172774e4dd06575e8b6528d140a", "score": "0.6157567", "text": "public List<Integer> inorderTraversal(TreeNode root) {\n if (root == null) {\n return new ArrayList<>();\n }\n List<Integer> ans = new ArrayList<>();\n Stack<TreeNode> stack = new Stack<>();\n TreeNode p = root;\n while (!stack.isEmpty() || p != null) {\n while (p != null) {\n stack.push(p);\n p = p.left;\n }\n p = stack.pop();\n ans.add(p.val);\n p = p.right;\n }\n return ans;\n }", "title": "" }, { "docid": "1108080ca3ff4ccbf12dc7fec3892a38", "score": "0.6149796", "text": "public List<Integer> postorderTraversal(TreeNode root) {\n List<Integer> result = new ArrayList<Integer>();\n if(root==null){\n return result;\n }\n Stack<TreeNode> stack = new Stack<TreeNode>();\n stack.push(root);\n TreeNode lastVisited = null;\n while(!stack.empty()){\n TreeNode current = stack.peek();\n if(current.left==null && current.right==null){\n lastVisited = current;\n result.add(stack.pop().val);\n \n }else if(lastVisited != null && (lastVisited==current.left || lastVisited == current.right)){\n lastVisited = current;\n result.add(stack.pop().val);\n }else{\n if(current.right!=null){\n stack.push(current.right);\n }\n if(current.left!=null){\n stack.push(current.left);\n }\n }\n }\n return result;\n }", "title": "" }, { "docid": "fb037b3fc6b2f7f6b0b7a6222a51fa5e", "score": "0.6145381", "text": "@Override\n\tpublic List<K> getLevelOrderTraversal() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "9087d0f31d5c38a93895a718fdf89230", "score": "0.6132709", "text": "public abstract void preorder();", "title": "" }, { "docid": "d8ca8f357a6d8705eb1b544867a597ff", "score": "0.612938", "text": "public Queue<Integer> levelOrderTraversalPath() { // NOT recursive\n\t\tQueue<Integer> result = new LinkedList<>();\n\t\tQueue<BinaryNode> q = new LinkedList<>();\n\t\t\n\t\tq.add(root);\n\t\t\n\t\twhile (!q.isEmpty()) {\n\t\t\tBinaryNode front = q.remove();\n\t\t\t\n\t\t\tresult.add(front.data);\n\t\t\t\n\t\t\tif (front.left != null) {\n\t\t\t\tq.add(front.left);\n\t\t\t}\n\t\t\tif (front.right != null) {\n\t\t\t\tq.add(front.right);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "title": "" }, { "docid": "59da6e3d723cc80547a5880b86f645ec", "score": "0.61281663", "text": "private void buildPreOrder(TreeNode<T> node, ArrayList<TreeNode<T>> preOrderList) \n\t{\n\t\tpreOrderList.add(node);\n\t\t\n\t\tfor (TreeNode<T> child : node.getChildren()) \n\t\t{\n\t\t\tbuildPreOrder(child, preOrderList);\n\t\t}\n\t}", "title": "" }, { "docid": "7010b0655f014496b765230654ce1179", "score": "0.6127861", "text": "public void\tinOrderTraversal(){\n\t\tinOrderTraversal(tree);\n\t}", "title": "" }, { "docid": "73d3834bfdc17a8de25b8c1102b1f018", "score": "0.61251765", "text": "public List<Integer> postorderTraversal(TreeNode root) {\n\t\tLinkedList<Integer> result = new LinkedList<>();\n\t\tStack<TreeNode> stack = new Stack<>();\n\t\tTreeNode node = root;\n\t\twhile (!stack.isEmpty() || node != null) {\n\t\t\tif (node != null) {\n\t\t\t\tstack.push(node);\n\t\t\t\tresult.addFirst(node.val);\n\t\t\t\tnode = node.right;\n\t\t\t} else {\n\t\t\t\tTreeNode tn = stack.pop();\n\t\t\t\tnode = tn.left;\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "title": "" }, { "docid": "ac22c3f3b498c07c4e45ebd857d8944c", "score": "0.6120549", "text": "public static List<Integer> inorderTraversal2(TreeNode root) {\n List<Integer> res = new LinkedList<>();\n Deque<TreeNode> stack = new LinkedList<>();\n //push the left path\n while (root != null) {\n stack.push(root);\n root = root.left;\n }\n while (!stack.isEmpty()) {\n TreeNode node = stack.peek();\n res.add(node.val);\n //如果有右子树,push右子树的左子树\n if (node.right != null) {\n node = node.right;\n while (node != null) {\n stack.push(node);\n node = node.left;\n }\n } else { //如果没有右子树,往上走,先pop掉node(因为已经加到res里面)\n node = stack.pop();\n //如果先前pop的node是现在的右子树,再pop掉右子树(后面会加),确保根先加进去\n //如果先前pop的是现在的左子树,什么都不干,进入上一层\n while (!stack.isEmpty() && stack.peek().right == node) {\n node = stack.pop();\n }\n }\n }\n return res;\n }", "title": "" }, { "docid": "d1a1f4c9d8477c545cad7be74a40d03d", "score": "0.6116507", "text": "public List<Integer> inorderTraversal(TreeNode root) {\n List<Integer> res = new ArrayList<>();\n Stack<TreeNode> stack = new Stack<>();\n TreeNode curr = root;\n while (curr != null || !stack.isEmpty()) {\n while (curr != null) {\n stack.push(curr);\n curr = curr.left;\n }\n curr = stack.pop();\n res.add(curr.val);\n curr = curr.right;\n }\n return res;\n }", "title": "" }, { "docid": "200e6b5ca59b5bd80bd96a556e760dc7", "score": "0.6115998", "text": "public static void main(String[] args) {\n TreeTraverse treeTraverse = new TreeTraverse();\n Codec codec = new JZ37().new Codec();\n TreeNode treeNode = codec.deserialize1(\"[3,2,null,4,1]\");\n\n String s = codec.serialize1(treeNode);\n System.out.println(s);\n\n\n// treeTraverse.inOrderRecurse(treeNode);\n// System.out.println();\n// treeTraverse.preOrderRecurse(treeNode);\n// System.out.println();\n// treeTraverse.postOrderRecurse(treeNode);\n }", "title": "" }, { "docid": "04b0282a0db191140a669b921f411491", "score": "0.61093426", "text": "public Iterator getPreOrderIterator(){\n\t\t// Initializes a LinkedList to be sent to the Iterator's constructor method.\n\t\tLinkedList<BinarySearchTree<E>> preOrderList = new LinkedList<BinarySearchTree<E>>(); \n\t\t\n\t\t// Fills that list with the BSTs added in the preorder order. \n\t\tpreOrderAdd(preOrderList); \n\t\t\n\t\t// Calls constructor of Iterator\n\t\tIterator preOrderIterator = new Iterator(preOrderList); \n\t\t\n\t\treturn preOrderIterator;\n\t}", "title": "" }, { "docid": "d04004ae8397b9dc46914d94fc451d22", "score": "0.60964686", "text": "public String preOrderIt(){\n\t\tABBNode temp = this.root;\n\t\tif(temp == null){\n\t\t\treturn \"\";\n\t\t}\n\t\telse{\n\t\t\tStack<ABBNode> rightNodes = new Stack<ABBNode>();\n\t\t\tQueue<ABBNode> preOrdered = new LinkedList<ABBNode>();\n\t\t\twhile(temp != null){\n\t\t\t\tpreOrdered.add(temp);\n\t\t\t\tif(temp.right != null){\n\t\t\t\t\trightNodes.push(temp.right);\n\t\t\t\t}\n\t\t\t\tif(temp.left != null){\n\t\t\t\t\ttemp = temp.left;\n\t\t\t\t}\n\t\t\t\telse if(!rightNodes.isEmpty()){\n\t\t\t\t\ttemp = rightNodes.pop();\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tString output = \"\";\n\t\t\twhile(!preOrdered.isEmpty()){\n\t\t\t\toutput += preOrdered.poll();\n\t\t\t}\n\t\t\treturn output;\n\t\t}\n\t}", "title": "" }, { "docid": "fe05cb75b9ac1f3a1e0c8d7f815e1bf4", "score": "0.60870045", "text": "public List<Integer> inorderTraversal(TreeNode root) {\n\t\tLinkedList<Integer> result = new LinkedList<>();\n\t\tStack<TreeNode> stack = new Stack<>();\n\t\tTreeNode node = root;\n\t\twhile (!stack.isEmpty() || node != null) {\n\t\t\tif (node != null) {\n\t\t\t\tstack.push(node);\n\t\t\t\tnode = node.left;\n\t\t\t} else {\n\t\t\t\tTreeNode tn = stack.pop();\n\t\t\t\tresult.add(tn.val);\n\t\t\t\tnode = tn.right;\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "title": "" }, { "docid": "5fe0c866d771e93e573ea521a7f93212", "score": "0.60857123", "text": "public TreeNode buildTree(int[] preorder, int[] inorder) {\n this.preorder=preorder;\n this.inorder=inorder;\n int idx=0;\n for(Integer val:inorder)\n {\n map.put(val,idx++);\n }\n return helper(0,inorder.length);\n }", "title": "" }, { "docid": "cc77a5286ccd1bf42bbd7a4cb949b5e9", "score": "0.6084302", "text": "public void preorder(Node node) {\n if(node == null) return;\n\n System.out.print(node.key + \" \");\n this.preorder(node.left);\n this.preorder(node.right);\n }", "title": "" }, { "docid": "05ba9b04ef0adc1f7a789cde3aa64cc0", "score": "0.6082324", "text": "private static void VisitPreOrder(BinaryTreeNode root, Command<BinaryTreeNode> action)\n\t{\n\t\tif(root != null)\n\t\t{\n\t\t\taction.Run(root);\n\t\t\tVisitPreOrder((BinaryTreeNode)root.leftChild, action);\n\t\t\tVisitPreOrder((BinaryTreeNode)root.rightChild, action);\t\t\n\t\t}\n\t}", "title": "" }, { "docid": "eb04b09f1c98d47b22a92cead31a0e1d", "score": "0.60821724", "text": "public void displayPreOrder(Node root){\r\n\t\tif(root!=null){ \r\n\t\t\tSystem.out.print(\" \" + root.data); \r\n\t\t\tdisplayPreOrder(root.left); \r\n\t\t\tdisplayPreOrder(root.right); \r\n\t\t\t} \r\n\t}", "title": "" }, { "docid": "fa12372d86fbad4d74205949c547180c", "score": "0.6078757", "text": "public void inorderTraverseTree()\n {\n \tinorderTraverseTreeRec(root);\n }", "title": "" } ]
d7f9dc327e52c9d0a423ebba60c02efd
if one of the two calls returned null while the other didn't return null, the test fails
[ { "docid": "da96cc63f48e631e120358ac20b636f8", "score": "0.0", "text": "private void comparePolicySets(Set<PolicyReader> rs, Set<PolicyReader> ts) {\n\t\tif ((rs == null) && (ts != null) || (rs != null) && (ts == null)) {\n\t\t fail(\"getPolicies returns null when it should return non-null or vice versa\");\n\t\t return;\n\t\t}\n\n // if both calls returned null, there are no policies, and the test passes\n\t\tif ((rs == null) && (ts == null)) {\n\t\t assertTrue(\"There are no policies!\", true);\n\t\t return;\n\t\t}\n\t\t\n // check that the number of policies matches\n\t\tassertEquals(\"Wrong Number of policies\", rs.size(), ts.size());\n\t\t\n // create treesets of nodes, using the comparator for sorting, one for reference and one for impl. under test \n\t\tTreeSet<PolicyReader> rts = new TreeSet<PolicyReader>(new NamedEntityReaderComparator());\n\t\tTreeSet<PolicyReader> tts = new TreeSet<PolicyReader>(new NamedEntityReaderComparator());\n \n\t\trts.addAll(rs);\n\t\ttts.addAll(ts);\n\t\t\n\t\tIterator<PolicyReader> ri = rts.iterator();\n\t\tIterator<PolicyReader> ti = tts.iterator();\n\n // check that all nodes match one by one\n\t\twhile (ri.hasNext() && ti.hasNext()) {\n\t\t\tcomparePolicyReader(ri.next(),ti.next());\n\t\t}\n\n\t}", "title": "" } ]
[ { "docid": "d389500d4a110d4dc0778f62b0015238", "score": "0.7089731", "text": "private void checkRep() {\n assert first != null;\n assert second != null;\n }", "title": "" }, { "docid": "fba16340144d3395b583eb6ff49d5039", "score": "0.6425992", "text": "private void checkRep() {\n\t\tassert left!=null;\n\t\tassert right !=null;\n\t}", "title": "" }, { "docid": "dfb9b91a56620e158884ed2d8ccfbc8c", "score": "0.63152754", "text": "private void checkRep() { \n assert left != null;\n assert right != null;\n }", "title": "" }, { "docid": "423f0b8d8d2ba102565460506ca12446", "score": "0.63008225", "text": "private void checkRep() {\n assert left != null;\n assert right != null;\n }", "title": "" }, { "docid": "d979448dfb7941965fd2c36031e94e58", "score": "0.62157047", "text": "@Test public void t0() {\n assertFalse(new Object().equals(null));\n }", "title": "" }, { "docid": "72668156f6cdac3a765d7de6da58b225", "score": "0.62047666", "text": "public void testNull2() {\n try {\n TreeNode tree1 = new TreeNode(\"tree\", 1);\n tree1.setBranch(new TreeNode[]{ null });\n TreeNode tree2 = new TreeNode(\"tree\", 1);\n tree2.setBranch(new TreeNode[]{ new TreeNode(\"leaf\") });\n equals(tree1, tree2);\n fail(null, \"No `TreeException` generated with a **null** subtree: \\n* `null` subtrees are **not** allowed with this method\\n* check that your conditional `logic` correctly rejects `null` subtrees\");\n } catch(TreeException exn) {\n assertTrue(exn, true);\n } catch(NullPointerException exn) {\n fail(exn, \"Your code should throw a `TreeException` when it encounters a **null** (sub)tree. Remember, such (sub)trees `might` be encountered during recursion.\");\n } catch(Throwable exn) {\n fail(exn, \"Expected a `TreeException`, but we threw: \" + exn.getClass().getName());\n } // end of try-catch\n }", "title": "" }, { "docid": "2015698e7301fefb91ff02046c432c30", "score": "0.61740476", "text": "@Test\r\n\tpublic void testEquals2()\r\n\t\tthrows Exception {\r\n\t\tExpense expense1 = getExpense();\r\n\t\tObject expense2 = null;\r\n\t\tboolean result = expense1.equals(expense2);\r\n\t\tassertEquals(false, result);\r\n\t}", "title": "" }, { "docid": "415501599931e56990a27b3d4ef67b41", "score": "0.60952157", "text": "public void testNull3() {\n try {\n TreeNode tree1 = new TreeNode(\"tree\", 1);\n tree1.setBranch(new TreeNode[]{ new TreeNode(\"leaf\") });\n TreeNode tree2 = new TreeNode(\"tree\", 1);\n tree2.setBranch(new TreeNode[]{ null });\n equals(tree1, tree2);\n fail(null, \"No `TreeException` generated with a **null** subtree: \\n* `null` subtrees are **not** allowed with this method\\n* check that your conditional `logic` correctly rejects `null` subtrees\");\n } catch(TreeException exn) {\n assertTrue(exn, true);\n } catch(NullPointerException exn) {\n fail(exn, \"Your code should throw a `TreeException` when it encounters a **null** (sub)tree. Remember, such (sub)trees `might` be encountered during recursion.\");\n } catch(Throwable exn) {\n fail(exn, \"Expected a `TreeException`, but we threw: \" + exn.getClass().getName());\n } // end of try-catch\n }", "title": "" }, { "docid": "3001c2ae602c52cb61231e2b20b8cb84", "score": "0.60680145", "text": "public void testNull4() {\n TreeNode tree1 = new TreeNode(\"tree1\");\n tree1.branch = null;\n TreeNode tree2 = new TreeNode(\"tree1\");\n try {\n equals(tree1, tree2); \n fail(null, \"No `TreeException` thrown when comparing against a (sub)tree with **null** branch\");\n } catch(TreeException exn) {\n assertTrue(exn, true);\n } catch(NullPointerException exn) {\n fail(exn, \"Your code should throw a `TreeException` when it encounters a (sub)tree with a **null** branch. Remember, such (sub)trees `might` be encountered during recursion.\");\n } catch(Throwable exn) {\n fail(exn, \"Expected a `TreeException` to be thrown, but instead we threw: \" + exn.getClass().getName());\n } // end of try-catch\n }", "title": "" }, { "docid": "dbdeb686c8c8d69b38a3a9d9db9db02f", "score": "0.603752", "text": "@Test\n public void test29() throws Throwable {\n Complex complex0 = new Complex(0.0, 0.0);\n Complex complex1 = null;\n Complex complex2 = complex0.sqrt();\n try { \n complex0.add((Complex) null);\n } catch(IllegalArgumentException e) {\n //\n // null is not allowed\n //\n assertThrownBy(\"org.apache.commons.math.util.MathUtils\", e);\n }\n }", "title": "" }, { "docid": "0a969ac0ceff60a8b56a93555ab07a34", "score": "0.5980199", "text": "@Test\r\n public void testSameArgumentMatcher_bothNull() {\r\n mockObject.returns(true).testMethodObject(same(null));\r\n\r\n boolean result = mockObject.getMock().testMethodObject(null);\r\n assertTrue(result);\r\n }", "title": "" }, { "docid": "ebc00d01580a162f0f26e446ed144e83", "score": "0.59636205", "text": "private void examineNullValues() throws CFGBuilderException, DataflowAnalysisException {\n Set<LocationWhereValueBecomesNull> locationWhereValueBecomesNullSet = invDataflow.getAnalysis()\n .getLocationWhereValueBecomesNullSet();\n if (DEBUG_DEREFS) {\n System.out.println(\"----------------------- examineNullValues \" + locationWhereValueBecomesNullSet.size());\n }\n\n Map<ValueNumber, SortedSet<Location>> bugStatementLocationMap = new HashMap<ValueNumber, SortedSet<Location>>();\n // Inspect the method for locations where a null value is guaranteed to\n // be dereferenced. Add the dereference locations\n Map<ValueNumber, NullValueUnconditionalDeref> nullValueGuaranteedDerefMap = new HashMap<ValueNumber, NullValueUnconditionalDeref>();\n\n // Check every location\n CFG cfg = classContext.getCFG(method);\n for (Iterator<Location> i = cfg.locationIterator(); i.hasNext();) {\n Location location = i.next();\n\n if (DEBUG_DEREFS) {\n System.out.println(\"At location \" + location);\n }\n\n checkForUnconditionallyDereferencedNullValues(location, bugStatementLocationMap, nullValueGuaranteedDerefMap,\n vnaDataflow.getFactAtLocation(location), invDataflow.getFactAtLocation(location),\n uvdDataflow.getFactAfterLocation(location), false);\n }\n HashSet<ValueNumber> npeIfStatementCovered = new HashSet<ValueNumber>(nullValueGuaranteedDerefMap.keySet());\n Map<ValueNumber, SortedSet<Location>> bugEdgeLocationMap = new HashMap<ValueNumber, SortedSet<Location>>();\n\n checkEdges(cfg, nullValueGuaranteedDerefMap, bugEdgeLocationMap);\n \n Map<ValueNumber, SortedSet<Location>> bugLocationMap = bugEdgeLocationMap;\n bugLocationMap.putAll(bugStatementLocationMap);\n \n // For each value number that is null somewhere in the\n // method, collect the set of locations where it becomes null.\n // FIXME: we may see some locations that are not guaranteed to be\n // dereferenced (how to fix this?)\n Map<ValueNumber, Set<Location>> nullValueAssignmentMap = findNullAssignments(locationWhereValueBecomesNullSet);\n\n reportBugs(nullValueGuaranteedDerefMap, npeIfStatementCovered, bugLocationMap, nullValueAssignmentMap);\n }", "title": "" }, { "docid": "0d01330f239fc34062fddfa902bf5e72", "score": "0.5960948", "text": "@Test\n\tvoid test10() {\n\t\tif (dataStructureInstance.contains(null)) {\n\t\t\tfail(\"False returned\");\n\t\t}\n\t}", "title": "" }, { "docid": "9e31a5d300d88c5fef7c56caa37d40c0", "score": "0.594187", "text": "@Test\r\n public void testRefEqArgumentMatcher_bothNull() {\r\n mockObject.returns(true).testMethodString(refEq((String) null));\r\n\r\n boolean result = mockObject.getMock().testMethodString(null);\r\n assertTrue(result);\r\n }", "title": "" }, { "docid": "488dac6339db88459947fb9e70f1a977", "score": "0.5931502", "text": "@Test\r\n public void testRetrieve_null() {\r\n \r\n assertNull(instance.retrieve(address1));\r\n }", "title": "" }, { "docid": "07b0e11f1f797d1aa74d31ee85c0564f", "score": "0.5920971", "text": "private static /* synthetic */ boolean m59405c(Predicate predicate, Predicate predicate2, Object obj) {\n if (predicate.test(obj) == null) {\n if (predicate2.test(obj) == null) {\n return null;\n }\n }\n return true;\n }", "title": "" }, { "docid": "dbb5375c45aef3325e3c352f700e7712", "score": "0.58941877", "text": "@Test(timeout = 4000)\n public void test09() throws Throwable {\n String string0 = EWrapperMsgGenerator.updateAccountValue((String) null, \"\", (String) null, (String) null);\n assertEquals(\"updateAccountValue: null null null\", string0);\n }", "title": "" }, { "docid": "3dc03f8e3557516d69b0d331f954468e", "score": "0.5894171", "text": "private boolean checkForNulls() {\n\t\tif(data.getFailureClass().getFailureClass() == null)\n\t\t\treturn false;\n\t\tif(data.getUeTable().getUeType() == null)\n\t\t\treturn false;\n\t\tif(data.getEventCause().getCauseCode() == null)\n\t\t\treturn false;\n\t\tif(data.getMccData().getId().getMcc() == null)\n\t\t\treturn false;\n\t\t\n\t\treturn true;\n\t}", "title": "" }, { "docid": "abb021359001df0605387a5d887a8f18", "score": "0.58880377", "text": "@Test(timeout = 4000)\n public void test07() throws Throwable {\n String string0 = EWrapperMsgGenerator.updateAccountValue((String) null, (String) null, \"\", (String) null);\n assertEquals(\"updateAccountValue: null null null\", string0);\n }", "title": "" }, { "docid": "de6d891e0bfc4399372276c93bdba97a", "score": "0.5886672", "text": "public void testNull5() {\n TreeNode tree1 = new TreeNode(\"tree1\");\n TreeNode tree2 = new TreeNode(\"tree1\");\n tree2.branch = null;\n try {\n equals(tree1, tree2); \n fail(null, \"No `TreeException` thrown when comparing against a (sub)tree with **null** branch\");\n } catch(TreeException exn) {\n assertTrue(exn, true);\n } catch(NullPointerException exn) {\n fail(exn, \"Your code should throw a `TreeException` when it encounters a (sub)tree with a **null** branch. Remember, such (sub)trees `might` be encountered during recursion.\");\n } catch(Throwable exn) {\n fail(exn, \"Expected a `TreeException` to be thrown, but instead we threw: \" + exn.getClass().getName());\n } // end of try-catch\n }", "title": "" }, { "docid": "40db0a5bbf02c915527d6df6234c0835", "score": "0.5879931", "text": "@Test(timeout = 4000)\n public void test04() throws Throwable {\n JSTerm jSTerm0 = new JSTerm();\n jSTerm0.add((Object) \"not\");\n jSTerm0.add((Object) null);\n // Undeclared exception!\n try { \n jSTerm0.equals((JSPredicateForm) jSTerm0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "title": "" }, { "docid": "02753cebddbf2df8b91dae1ef5b6bce6", "score": "0.5871967", "text": "@Test(expected=NullPointerException.class)\n public void IsPositiveDifference_NullAsBothArguments_ThrowsException() {\n Double a = null;\n Double b = null;\n instance.isPositiveDifference(a, b);\n }", "title": "" }, { "docid": "7603bea5a37501efa43a1b15de582732", "score": "0.5859411", "text": "public void testcreateNextSendFilterWithBothNull()\r\n throws Exception {\r\n try {\r\n factory.createNextSendFilter(null, null);\r\n fail(\"Set with both null is illegal, IllegalArgumentException should be thrown\");\r\n } catch (IllegalArgumentException e) {\r\n // ok to be here\r\n }\r\n }", "title": "" }, { "docid": "43a868af0582ce4a77143d3cf28575de", "score": "0.5856786", "text": "private static boolean equal(Object obj1, Object obj2) {\n return (obj1 == null && obj2 == null)\n || (obj1 != null && obj1.equals(obj2));\n }", "title": "" }, { "docid": "f8f36c73da60a6e1e581cef48cf442f8", "score": "0.58501077", "text": "private boolean isIdentical(CElement e1, CElement e2) {\n \tif (e1 == null ^ e2 == null)\n \t\treturn false;\n \t\n \tif (e1 == null)\n \t\treturn true;\n \n \treturn e1.isIdentical(e2);\t\t\t\t\t\n }", "title": "" }, { "docid": "5fb17a9e77d71891f11bbd6d5fa8e25c", "score": "0.5848025", "text": "public void next_pointers_not_null() {\n assert(false);\n }", "title": "" }, { "docid": "28f073b17b68244d69dd65cef0d3d029", "score": "0.58336496", "text": "@Test\n\tpublic void testNullSafeEquals()\n\t{\n\t Object obj1 = new Object();\n\t Object obj2 = new Object();\n\t Object obj1ref = obj1;\n\t Object objNull = null;\n\t \n\t String str1 = \"Abc\";\n\t String str2 = \"Def\";\n\t String str3eq1 = \"Abc\";\n\t \n\t assertTrue(\"Equal objects did not compare\"\n\t\t\t \t\t, Utilities.nullSafeEquals(obj1, obj1ref)\n\t\t\t \t\t);\n\t \n\t assertFalse(\"Unequal objects were found equal\"\n\t\t\t \t\t, Utilities.nullSafeEquals(obj1, obj2)\n\t\t\t \t\t);\n\t \n\t assertFalse(\"Null compare 1 failed\"\n\t\t\t \t\t, Utilities.nullSafeEquals(null, obj1)\n\t\t\t \t\t);\n\t \n\t assertFalse(\"Null compare 2 failed\"\n\t\t\t \t\t, Utilities.nullSafeEquals(obj1, null)\n\t\t\t \t\t);\n\t \n\t assertTrue(\"Two nulls should be equal (1)\"\n\t\t\t \t\t, Utilities.nullSafeEquals(null, objNull)\n\t\t\t \t\t);\n\t \n\t assertTrue(\"Two nulls should be equal (2)\"\n\t\t\t \t\t, Utilities.nullSafeEquals(objNull, null)\n\t\t\t \t\t);\n\t \n\t assertFalse(\"Unequal strings should not be equal\"\n\t\t\t \t\t, Utilities.nullSafeEquals(str1, str2)\n\t\t\t \t\t);\n\t \n\t assertTrue(\"Strings with equal contents should be equal\"\n\t\t\t \t\t, Utilities.nullSafeEquals(str1, str3eq1)\n\t\t\t \t\t);\n\t}", "title": "" }, { "docid": "399503d234f675e5b9bdc3607904b7d1", "score": "0.58281624", "text": "public void testNull1() {\n try {\n equals(new TreeNode(\"tree1\"), null); \n fail(null, \"No `TreeException` thrown when comparing against a **null** tree\");\n } catch(TreeException exn) {\n assertTrue(exn, true);\n } catch(NullPointerException exn) {\n fail(exn, \"Your code should throw a `TreeException` when it encounters a **null** (sub)tree. Remember, such (sub)trees `might` be encountered during recursion.\");\n } catch(Throwable exn) {\n fail(exn, \"Expected a `TreeException` to be thrown, but instead we threw: \" + exn.getClass().getName());\n } // end of try-catch\n }", "title": "" }, { "docid": "5b30b8f0bb417208de8bdeacd7b0a0a0", "score": "0.58239675", "text": "private static boolean areEqual(Object o1, Object o2) {\n\t\treturn ((o1 == null) ? (o2 == null) : o1.equals(o2));\n\t}", "title": "" }, { "docid": "5f349f0274892a2b22c3ba22d37d6c5d", "score": "0.5811756", "text": "public static boolean equalityNullTest(Object obj) {\n\treturn equalityDifferentInstanceTest(obj, null);\n }", "title": "" }, { "docid": "351416b5798fe198afbdc198ee520cac", "score": "0.58055294", "text": "@Test\r\n @Ignore\r\n public void shouldAddOperationWithNullArgumentsThrowException() throws Exception {\n try {\r\n Integer x = null;\r\n Integer y = new Integer(7);\r\n\r\n // When (Do what you are testing (\"act\"))\r\n calculator.add(x, y);\r\n\r\n // Then (Check the results (\"assert\"))\r\n // assertEquals(expectedResult, proccessedResult);\r\n fail();\r\n } catch (BadArgumentsException e) {\r\n e.printStackTrace();\r\n Assert.assertTrue(true);\r\n }\r\n\r\n }", "title": "" }, { "docid": "a8c1551b357e92b628f41555d4fadc2e", "score": "0.58023876", "text": "@Test\n public void testEqualsNull() {\n boolean expected = false;\n assertEquals(expected, shelter1.equals(shelter3));\n }", "title": "" }, { "docid": "00da0015f3ae114f04886b71890da3ec", "score": "0.5778986", "text": "@Test\n public void test2RemoveNULLSchedule() {\n Mockito.when(scheduleDaoIml.getScheduleById(schedule1.getSchedule_id())).thenReturn(null);\n Mockito.when(scheduleDaoIml.removeSchedule(schedule1.getSchedule_id())).thenReturn(true);\n boolean deleted = scheduleService.removeSchedule(schedule1.getSchedule_id());\n Assert.assertFalse(\" schedule deleted -\" + deleted, deleted);\n }", "title": "" }, { "docid": "e7ced69c7ccf2023d1d120e29613ec29", "score": "0.5775491", "text": "public boolean equals(@RecentlyNullable Object o) {\n/* 238 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "title": "" }, { "docid": "d24484ea1712bc985bbe3b37fb91b281", "score": "0.576873", "text": "@Test public void c_p1(){\n assertFalse(new C(1).equals(null));\n }", "title": "" }, { "docid": "144187013022e7d36f4c2544bf13c6af", "score": "0.5768191", "text": "@Test\n public void nullCheck2() {\n \n assertThat(TransactionNameGenerator.generateName((String) null), is(not(null)));\n }", "title": "" }, { "docid": "044a93eb726cd712d61c93ec44eee7fc", "score": "0.57632565", "text": "public void testSaveMemberPhoto_Null2() throws Exception {\r\n manager.setMemberPhotoDAO(dao);\r\n try {\r\n manager.saveMemberPhoto(1, (String) null, \"test\");\r\n fail(\"It should throw IllegalArgumentException.\");\r\n } catch (IllegalArgumentException e) {\r\n // expected.\r\n } \r\n }", "title": "" }, { "docid": "0b0e62d62e2969650b1c5cdc505a58d9", "score": "0.5757369", "text": "public void func2() {\n Object a = get2(); // false negative\n Object b = checkNotNull(get2()); // true negative\n Object c = checkNotNull(\n get2()); // true negative\n System.out.println(a.toString());\n System.out.println(b.toString());\n System.out.println(c.toString());\n }", "title": "" }, { "docid": "8e2aa43f86071153278ef86043d291d7", "score": "0.57570475", "text": "@Test(expected = NullPointerException.class)\n\tpublic void testIntercalableNull() {\n\t\tmyList2 = null;\n\t\tmyList1.intercalate(myList2);\n\t}", "title": "" }, { "docid": "cf19bf2bcecd8ff206be85752b2251ca", "score": "0.5744513", "text": "@Test(timeout = 4000)\n public void test074() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.mutatesDataOrStructure((String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "title": "" }, { "docid": "e1b453fe874b8c4b94629c2c37c581f6", "score": "0.5741366", "text": "@Test(timeout = 4000)\n public void test22() throws Throwable {\n RawVariable rawVariable0 = new RawVariable();\n User user0 = new User((String) null, (String) null);\n RawVariable rawVariable1 = new RawVariable();\n rawVariable1.setCodeBookNumber((String) null);\n // Undeclared exception!\n try { \n RawVariable.detectFieldChanges(user0, rawVariable0, rawVariable1);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"macaw.util.ValidationUtility\", e);\n }\n }", "title": "" }, { "docid": "7973ca7df8fa7fc97017c4f5e49b26f2", "score": "0.5735603", "text": "private boolean equal(Object o1, Object o2) {\n return o1 == null ? o2 == null : (o1 == o2 || o1.equals(o2));\n }", "title": "" }, { "docid": "4a1cbca02fa1def53d043c1e117d5653", "score": "0.5722384", "text": "@Test\n public void testRequestCreatedSuccessfully() {\n System.out.println(\"Checking that request1 is not null\");\n assertTrue(request1 != null);\n System.out.println(\"Checking that request2 is not null\");\n assertTrue(request2 != null);\n }", "title": "" }, { "docid": "619823f3ac7e5a2c331382b5020958d1", "score": "0.5713614", "text": "private static /* synthetic */ boolean m59406d(Predicate predicate, Predicate predicate2, Object obj) {\n return (predicate.test(obj) == null || predicate2.test(obj) == null) ? null : true;\n }", "title": "" }, { "docid": "857366094165785b5dbc1e1f59c0ccbb", "score": "0.57093316", "text": "@Test(timeout = 4000)\n public void test16() throws Throwable {\n ArrayList<ITableInfo> arrayList0 = new ArrayList<ITableInfo>();\n UnaryOperator<ITableInfo> unaryOperator0 = UnaryOperator.identity();\n Function.identity();\n Function<TableColumnInfo, TableInfo> function0 = (Function<TableColumnInfo, TableInfo>) mock(Function.class, new ViolatedAssumptionAnswer());\n unaryOperator0.compose((Function<? super TableColumnInfo, ? extends ITableInfo>) function0);\n arrayList0.add((ITableInfo) null);\n UnaryOperator.identity();\n arrayList0.add((ITableInfo) null);\n Function.identity();\n ArrayList<ITableInfo> arrayList1 = new ArrayList<ITableInfo>();\n arrayList1.replaceAll(unaryOperator0);\n arrayList1.add((ITableInfo) null);\n arrayList0.iterator();\n arrayList1.iterator();\n DBCopyPlugin dBCopyPlugin0 = new DBCopyPlugin();\n arrayList1.add((ITableInfo) null);\n HashSet<String> hashSet0 = new HashSet<String>();\n // Undeclared exception!\n try { \n DBUtil.getForeignKeySQL(dBCopyPlugin0, (ITableInfo) null, arrayList1);\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": "6ac33405a42a42ff35230c0746003c12", "score": "0.57018155", "text": "@Test\r\n public void testCondition5() {\n assertNull(\"Object isn't null. \", str3);\r\n }", "title": "" }, { "docid": "9efd3695d8602e2dd9b841f883cb084b", "score": "0.56907654", "text": "@Test(expected = BadArgumentsException.class)\r\n public void shouldAddOperationWithNullArgumentsThrowExceptionV2() throws Exception {\n\r\n Integer x = null;\r\n Integer y = new Integer(7);\r\n\r\n // When (Do what you are testing (\"act\"))\r\n calculator.add(x, y);\r\n }", "title": "" }, { "docid": "ab276fcdc83715b061edb01e0b3bf484", "score": "0.5669014", "text": "@Test(timeout = 4000)\n public void test044() throws Throwable {\n Boolean boolean0 = SQLUtil.mutatesDataOrStructure(\"REFERENCJS \");\n assertNull(boolean0);\n \n String string0 = SQLUtil.renderValue((Object) null);\n assertEquals(\"null\", string0);\n }", "title": "" }, { "docid": "11bfbdef2e86327a6c8be7a44d55d05b", "score": "0.56638426", "text": "@Test\n public void equals() {\n Issue aliceCopy = new IssueBuilder(JAVA_NULL_POINTER).build();\n assertTrue(JAVA_NULL_POINTER.equals(aliceCopy));\n\n // same object -> returns true\n assertTrue(JAVA_NULL_POINTER.equals(JAVA_NULL_POINTER));\n\n // different description, same issue statement -> returns true\n Issue editedAlice = new IssueBuilder(JAVA_NULL_POINTER).withDescription(VALID_DESCRIPTION_JAVA).build();\n assertTrue(JAVA_NULL_POINTER.equals(editedAlice));\n\n // different solutions, same issue statement -> returns true\n editedAlice = new IssueBuilder(JAVA_NULL_POINTER).withSolutions(SOLUTION_C).build();\n assertTrue(JAVA_NULL_POINTER.equals(editedAlice));\n\n // different tags, same issue statement -> returns true\n editedAlice = new IssueBuilder(JAVA_NULL_POINTER).withTags(VALID_TAG_UI).build();\n assertTrue(JAVA_NULL_POINTER.equals(editedAlice));\n // null -> returns false\n assertFalse(JAVA_NULL_POINTER.equals(null));\n\n // different type -> returns false\n assertFalse(JAVA_NULL_POINTER.equals(5));\n\n // different issue -> returns false\n assertFalse(JAVA_NULL_POINTER.equals(VALID_C_ISSUE));\n\n // different statement -> returns false\n editedAlice = new IssueBuilder(JAVA_NULL_POINTER).withStatement(VALID_STATEMENT_C).build();\n assertFalse(JAVA_NULL_POINTER.equals(editedAlice));\n\n }", "title": "" }, { "docid": "2562b41b088ae88958012a2063a9b0b2", "score": "0.56634885", "text": "@Test public void test10() throws Throwable {\n LinkedList linkedList0 = new LinkedList();\n linkedList0.addFirst((Object) null);\n boolean boolean0 = linkedList0.isEmpty();\n assertFalse(boolean0);\n }", "title": "" }, { "docid": "abed45f6828ac945dcfceb567241d8ec", "score": "0.56433445", "text": "@Test\n void isSameBooking() {\n assertTrue(BOOKING1.isSameBooking(BOOKING1));\n\n // null -> returns false\n assertFalse(BOOKING1.isSameBooking(null));\n\n // different venue -> returns false\n assertFalse(BOOKING1.isSameBooking(BOOKING2));\n }", "title": "" }, { "docid": "5e7419fe3cb957a8ba9dd3799b150b66", "score": "0.56425184", "text": "@Test\n public void reverseFilterNull()\n {\n try\n {\n filter0.reverseFilter(null);\n fail(\"Should have thrown an exception\");\n }\n catch (final IllegalArgumentException e)\n {\n assertThat(e.getMessage(), is(\"output is null\"));\n }\n }", "title": "" }, { "docid": "dc0d849a1e232468553b26de2f1ed0c7", "score": "0.56267697", "text": "@Test(timeout = 4000)\n public void test29() throws Throwable {\n DerivedVariable derivedVariable0 = new DerivedVariable();\n ArrayList<OntologyTerm> arrayList0 = new ArrayList<OntologyTerm>();\n Comparator<Object> comparator0 = (Comparator<Object>) mock(Comparator.class, new ViolatedAssumptionAnswer());\n User user0 = new User((String) null, \"eoWAhudk2\");\n user0.setEmail(\"eoWAhudk2\");\n DerivedVariable derivedVariable1 = new DerivedVariable();\n user0.setAddressLine2(\"eoWAhudk2\");\n User user1 = new User();\n derivedVariable1.setName((String) null);\n DerivedVariable derivedVariable2 = new DerivedVariable();\n // Undeclared exception!\n try { \n Variable.detectFieldChanges(user0, derivedVariable2, derivedVariable1);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"macaw.util.ValidationUtility\", e);\n }\n }", "title": "" }, { "docid": "e5f12d0b992dcaea8efeba886c46dc01", "score": "0.56227463", "text": "@Test\n public void isSameIssue() {\n assertTrue(JAVA_NULL_POINTER.isSameIssue(JAVA_NULL_POINTER));\n\n // null -> returns false\n assertFalse(JAVA_NULL_POINTER.isSameIssue(null));\n\n // different description -> returns false\n Issue editedAlice = new IssueBuilder(JAVA_NULL_POINTER).withDescription(VALID_DESCRIPTION_JAVA).build();\n assertTrue(JAVA_NULL_POINTER.isSameIssue(editedAlice));\n\n // different statement -> returns false\n editedAlice = new IssueBuilder(JAVA_NULL_POINTER).withStatement(VALID_STATEMENT_C).build();\n assertFalse(JAVA_NULL_POINTER.isSameIssue(editedAlice));\n\n // same name, same description, different attributes -> returns true\n editedAlice = new IssueBuilder(JAVA_NULL_POINTER)\n .withSolutions(SOLUTION_STACKOVERFLOW)\n .withTags(VALID_TAG_UI).build();\n assertTrue(JAVA_NULL_POINTER.isSameIssue(editedAlice));\n }", "title": "" }, { "docid": "00d95adf32ecc3f4de4bdb0bbc40c6ff", "score": "0.5622011", "text": "@Test\n public void assertNoNull() throws Exception {\n }", "title": "" }, { "docid": "44ba1c1da1f8fdc9c4966e5d51a60973", "score": "0.5620537", "text": "public void func3() {\n Object a = get2(); // false negative\n Object b = requireNonNull(get2()); // true negative\n Object c = requireNonNull(\n get2()); // true negative\n System.out.println(a.toString());\n System.out.println(b.toString());\n System.out.println(c.toString());\n }", "title": "" }, { "docid": "665a93c2ac5db676c293cbc1f0bc3e1e", "score": "0.56174487", "text": "@Test\n\tpublic void testEqualsWithNull() {\n\t\tassertFalse(l.equals(null));\n\t}", "title": "" }, { "docid": "0b6ca6104e4f9009fde3cb590215fe5b", "score": "0.56118584", "text": "@Test(timeout = 4000)\n public void test085() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.mutatesDataOrStructure((String) null);\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": "7c1cd3c7a032cb4c016b44a3ad7107bd", "score": "0.560637", "text": "public void testValidateNullCondition() {\r\n ((FilterProcessor) testProcessor).setFilterExpression(null);\r\n List exceptions = new ArrayList();\r\n testProcessor.validate(exceptions);\r\n assertTrue(\"Expected one validate exceptions.\", exceptions.size() == 1);\r\n Exception e = (Exception) exceptions.get(0);\r\n assertTrue(\"Expect validate to return one OAException\", e instanceof ValidationException);\r\n }", "title": "" }, { "docid": "6bac5e6fd0ec7a1e651ca11d4990dcbb", "score": "0.5603237", "text": "public void func() {\n Object a = get(); // true positive\n Object b = checkNotNull(get()); // true negative\n Object c = checkNotNull(\n get()); // false positive\n System.out.println(a.toString());\n System.out.println(b.toString());\n System.out.println(c.toString());\n }", "title": "" }, { "docid": "ce2cb2c4cea7320c48ff274cf65e8a50", "score": "0.5600769", "text": "@Test(expected = NullPointerException.class)\n public void testSetWithNull() {\n l.set(0, null);\n\t}", "title": "" }, { "docid": "d28f50b3d927a72482e020a844809fe2", "score": "0.5594213", "text": "@Test(expected = NullPointerException.class)\n\tpublic void testContainsNull() {\n\t\tmyList1.contains(null);\n\t}", "title": "" }, { "docid": "3a6350bea1af227f2edb835e8dedda5a", "score": "0.5592632", "text": "@Test(timeout = 4000)\n public void test42() throws Throwable {\n String string0 = EWrapperMsgGenerator.updateAccountValue(\"\", (String) null, \"\", \"\");\n assertEquals(\"updateAccountValue: null \", string0);\n }", "title": "" }, { "docid": "01aa3241a499a3f0ef93b442721a4cc1", "score": "0.55882126", "text": "@Test\n \tpublic void testCombineListNull(){\n\t\tArrayList<String> list1 = new ArrayList<String>();\n\t\tArrayList<String> list2 = null;\n \t\tlist1.add(\"ab\");\n \t\tlist1.add(\"bc\");\n\t\tArrayList<ArrayList<String>> lists = new ArrayList<ArrayList<String>>();\n \t\tlists.add(list1);\n \t\tlists.add(list2);\n \t\tassertTrue(SuggestionGenerator.combineLists(lists).get(0).equals(\"ab\"));\n \t\tassertTrue(SuggestionGenerator.combineLists(lists).get(1).equals(\"bc\"));\n \t}", "title": "" }, { "docid": "726f64066fb9f6f642f877f98b07ab68", "score": "0.558756", "text": "public void testBuildOrFilterWithNullF2() {\n try {\n ProjectFilterUtility.buildOrFilter(new EqualToFilter(\"committed\", new Integer(1)), null);\n fail(\"IllegalArgumentException should be thrown\");\n } catch (IllegalArgumentException e) {\n // success\n }\n }", "title": "" }, { "docid": "ce89b92bcdebd6c4a1489bc34e60837a", "score": "0.55855644", "text": "@Test\r\n public void testCondition4() {\n assertNotNull(\"Object is null. \", str1);\r\n }", "title": "" }, { "docid": "75bc9262b129d5389ba73c93412a0a62", "score": "0.55816174", "text": "public void testcreateLastSentFilterWithBothNull()\r\n throws Exception {\r\n try {\r\n factory.createLastSentFilter(null, null);\r\n fail(\"Set with both null is illegal, IllegalArgumentException should be thrown\");\r\n } catch (IllegalArgumentException e) {\r\n // ok to be here\r\n }\r\n }", "title": "" }, { "docid": "2df8c1b25c06263cdf4f25ac2b19272e", "score": "0.557462", "text": "@Test\r\n public void testEqualsArgumentMatcher_bothNull() {\r\n mockObject.returns(true).testMethodString(eq((String) null));\r\n\r\n boolean result = mockObject.getMock().testMethodString(null);\r\n assertTrue(result);\r\n mockObject.assertInvoked().testMethodString(eq((String) null));\r\n }", "title": "" }, { "docid": "817089b54498ea4087b549524859ae26", "score": "0.55732566", "text": "@Test(timeout = 4000)\n public void test101() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.mutatesStructure((String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "title": "" }, { "docid": "a3961dd81f1623cd652faa01f23bb628", "score": "0.55693394", "text": "private void analyzeNullCheck(IsNullValueDataflow invDataflow, BasicBlock basicBlock) throws DataflowAnalysisException,\n CFGBuilderException {\n\n InstructionHandle exceptionThrowerHandle = basicBlock.getExceptionThrower();\n Instruction exceptionThrower = exceptionThrowerHandle.getInstruction();\n\n // Get the stack values at entry to the null check.\n IsNullValueFrame frame = invDataflow.getStartFact(basicBlock);\n if (!frame.isValid())\n return;\n\n // Could the reference be null?\n IsNullValue refValue = frame.getInstance(exceptionThrower, classContext.getConstantPoolGen());\n if (DEBUG) {\n System.out.println(\"For basic block \" + basicBlock + \" value is \" + refValue);\n }\n if (refValue.isDefinitelyNotNull())\n return;\n if (false && !refValue.mightBeNull())\n return;\n\n if (!refValue.isDefinitelyNull())\n return;\n // Get the value number\n ValueNumberFrame vnaFrame = classContext.getValueNumberDataflow(method).getStartFact(basicBlock);\n if (!vnaFrame.isValid())\n return;\n ValueNumber valueNumber = vnaFrame.getInstance(exceptionThrower, classContext.getConstantPoolGen());\n Location location = new Location(exceptionThrowerHandle, basicBlock);\n if (DEBUG)\n System.out.println(\"Warning: VN \" + valueNumber + \" invf: \" + frame + \" @ \" + location);\n\n boolean isConsistent = true;\n Iterator<BasicBlock> bbIter = invDataflow.getCFG().blockIterator();\n LineNumberTable table = method.getLineNumberTable();\n int position = exceptionThrowerHandle.getPosition();\n int line = table == null ? 0 : table.getSourceLine(position);\n while (bbIter.hasNext()) {\n BasicBlock bb = bbIter.next();\n\n if (!bb.isNullCheck())\n continue;\n\n InstructionHandle eth = bb.getExceptionThrower();\n if (eth == exceptionThrowerHandle)\n continue;\n if (eth.getInstruction().getOpcode() != exceptionThrower.getOpcode())\n continue;\n\n int ePosition = eth.getPosition();\n if (ePosition == position || table != null && line == table.getSourceLine(ePosition)) {\n\n IsNullValueFrame frame2 = invDataflow.getStartFact(bb);\n if (!frame2.isValid())\n continue;\n // apparent clone\n IsNullValue rv = frame2.getInstance(eth.getInstruction(), classContext.getConstantPoolGen());\n if (!rv.equals(refValue))\n isConsistent = false;\n }\n\n }\n // Issue a warning\n collector.foundNullDeref(location, valueNumber, refValue, vnaFrame, isConsistent);\n }", "title": "" }, { "docid": "456b458cab66c96846974e128315d85b", "score": "0.555713", "text": "@Test\n public void removeTwoNullCards() {\n model.startGame(fullDeck, false, 7, 3);\n\n thrown.expect(IllegalArgumentException.class);\n thrown.expectMessage(\"There's no card here.\");\n\n model.remove(6, 2, 6, 6);\n model.remove(6, 2, 6, 6); // Now these cards are null.\n }", "title": "" }, { "docid": "b5653ac6dc5df9ee950041cf6615622c", "score": "0.5549035", "text": "@Test\n public void testHandleSearchBetweenEntitiesWithOneNull() throws Exception {\n final List<DcsEntity> expectedEntities = new ArrayList<DcsEntity>(\n Arrays.asList(new DcsEntity(z.getUid()), new DcsEntity(y.getUid())));\n final Lineage expectedLineage = lineageA;\n\n Model m = lineageController.handleSearchGetRequest(APPLICATION_XML, now, \"\", y.getUid(), null);\n\n assertLineageEquals(m, expectedLineage);\n assertEntitiesEquals(m, expectedEntities);\n assertEtagEquals(m, RequestUtil.calculateDigestForEntities(expectedEntities));\n assertLastModifiedEquals(m, new Date(40));\n assertIfModifiedSinceEquals(m, now);\n assertAcceptEquals(m, APPLICATION_XML);\n assertEquals(y.getUid(), m.asMap().get(ID.name()));\n }", "title": "" }, { "docid": "22dc130c736cee5ee1caac9bb5704b4d", "score": "0.5546162", "text": "@Test\n public void test_getCrimeLocation() {\n assertEquals(\"getCrimeLocation() should return null for null made object.\", null, emptyCr.getFbiCD());\n\n }", "title": "" }, { "docid": "76308c251f92a378d67c19d4dc2e62ef", "score": "0.5543232", "text": "protected boolean C()\r\n/* 143: */ {\r\n/* 144:162 */ return (cj()) && (this.l == null);\r\n/* 145: */ }", "title": "" }, { "docid": "e40e8ee2ae7c0fda658b5e6b9fe9f365", "score": "0.55426204", "text": "@Test\r\n public void testSameArgumentMatcher_null() {\r\n mockObject.returns(true).testMethodObject(same(new ArrayList()));\r\n\r\n boolean result = mockObject.getMock().testMethodObject(null);\r\n assertFalse(result);\r\n }", "title": "" }, { "docid": "e6e7fc02fd6231a00a53fecb53a5f9e9", "score": "0.5537216", "text": "public void testBuildOrFilterWithNullF1() {\n try {\n ProjectFilterUtility.buildOrFilter(null, new EqualToFilter(\"committed\", new Integer(1)));\n fail(\"IllegalArgumentException should be thrown\");\n } catch (IllegalArgumentException e) {\n // success\n }\n }", "title": "" }, { "docid": "41aa733e71ec5c67bf270e54e96f1424", "score": "0.55320364", "text": "@Test(expectedExceptions = IllegalArgumentException.class)\n public void testMethodNullFutureTenor() {\n getEmptyInstance().setFutureTenor(null);\n }", "title": "" }, { "docid": "697bbc1e62608e850df6674d0a4ca41a", "score": "0.5531561", "text": "@Test(expectedExceptions = IllegalArgumentException.class)\n public void testUriGetPositionNullBase2() {\n DataPositionSourceUris.uriGetPosition(null, OID, VC);\n }", "title": "" }, { "docid": "b2ad099491b783bb60041b1c800ea940", "score": "0.55227655", "text": "private void checkRep() {\r\n\t\tassert (sourceData != null) : \"source data should never be null.\";\r\n\t\tassert (destData != null) : \"destination data should never be null.\";\r\n\t\tassert (edgeLabel != null) : \"edge label should never be null.\";\r\n\t}", "title": "" }, { "docid": "c3d7e0b437c2701ac9f5e741db8ffee5", "score": "0.55133325", "text": "@Test(expectedExceptions = IllegalArgumentException.class)\n public void testMethodNullUnderlyingTenor() {\n getEmptyInstance().setUnderlyingTenor(null);\n }", "title": "" }, { "docid": "faa2001ffe7a524ed672d9fb2c526b94", "score": "0.55063933", "text": "@Test(timeout = 4000)\n public void test27() throws Throwable {\n URI uRI0 = MockURI.aHttpURI;\n // Undeclared exception!\n try { \n DBUtil.replaceOtherDataType((TableColumnInfo) null, (ISession) null);\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": "6e2519ff6c8d84ae3b8d8e90b62e907f", "score": "0.5504287", "text": "@Test\r\n public void testLenEqArgumentMatcher_bothNull() {\r\n mockObject.returns(true).testMethodString(lenEq((String) null));\r\n\r\n boolean result = mockObject.getMock().testMethodString(null);\r\n assertTrue(result);\r\n }", "title": "" }, { "docid": "16bef07630b419258ece381f3566f82d", "score": "0.5502514", "text": "@Test(timeout = 4000)\n public void test24() throws Throwable {\n StringReader stringReader0 = new StringReader(\"8#w*@^\");\n StreamTokenizer streamTokenizer0 = new StreamTokenizer(stringReader0);\n streamTokenizer0.pushBack();\n JSTerm jSTerm0 = new JSTerm(streamTokenizer0);\n jSTerm0.add((Object) null);\n JSSubstitution jSSubstitution0 = new JSSubstitution();\n jSTerm0.toStr();\n // Undeclared exception!\n try { \n jSTerm0.equals((JSPredicateForm) jSTerm0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "title": "" }, { "docid": "0b3c85cfe544bc5d5799ea1fbf5fecff", "score": "0.550008", "text": "public void testContainsNull(){\n EntityManager em = createEntityManager();\n em.getTransaction().begin();\n try {\n \tem.contains(null);\n }catch (IllegalArgumentException iae){\n \treturn;\n }catch (Exception e) {\n \tfail(\"Wrong exception type thrown: \" + e.getClass());\n }finally {\n em.getTransaction().rollback();\n em.close();\n }\n fail(\"No exception thrown when entityManager.contains(null) attempted.\"); \n }", "title": "" }, { "docid": "d558926091dc83d48615d9af168574ad", "score": "0.549502", "text": "public boolean checkDifferent(Object one, Object two){\n\t\tboolean different = true;\n\t\tif(one != null){\n\t\t\tdifferent = !one.equals(two);\n\t\t}else{\n\t\t\tdifferent = two != null;\n\t\t}\n\t\treturn different;\n\t}", "title": "" }, { "docid": "bded2b923b9dd7e26d844a2cd5a4c581", "score": "0.5494634", "text": "public void testMergeNull(){\n EntityManager em = createEntityManager();\n em.getTransaction().begin();\n try {\n \tem.merge(null);\n }catch (IllegalArgumentException iae){\n \treturn;\n }catch (Exception e) {\n \tfail(\"Wrong exception type thrown: \" + e.getClass());\n }finally {\n em.getTransaction().rollback();\n em.close();\n }\n fail(\"No exception thrown when entityManager.merge(null) attempted.\"); \n }", "title": "" }, { "docid": "0b860b75d5147befadfeb3c6e756f523", "score": "0.54941016", "text": "public void testConditionEvaluatesToNull() {\r\n expressionMock.expects(once()).method(\"evaluate\").with(eq(record)).will(returnValue(null));\r\n try {\r\n testProcessor.process(record);\r\n } catch (ExpressionException ee) {\r\n log.info(\"Got expected ExpresionException with message: [\" + ee.getMessage() + \"]\");\r\n return; // This is what we expected\r\n } catch (Exception e) {\r\n fail(\"Unexpected Exception: [\" + e + \"]\");\r\n }\r\n fail(\"Didn't get expected ExpressionException.\");\r\n }", "title": "" }, { "docid": "b726925158d7f7c7d47514c1c84f759b", "score": "0.54932415", "text": "public void toplevel_pointers_not_null() {\n assert(false);\n }", "title": "" }, { "docid": "5cb8f2cb531d09773003c45266d8317a", "score": "0.5492383", "text": "@Test\r\n public void test_checkNotNull_Failure() {\r\n try {\r\n Helper.checkNotNull(null, \"field1\");\r\n fail(\"IllegalArgumentException is expected\");\r\n } catch (IllegalArgumentException e) {\r\n // success\r\n }\r\n }", "title": "" }, { "docid": "1d6293a431c4e2ee331ad1c7d44b42e3", "score": "0.5489731", "text": "@Test\n public void testNeedToMovePictureNull() {\n final PictureInfo pictureInfo = new PictureInfo();\n final File tempTargetDirectory = Files.createTempDir();\n\n try {\n ConsolidateGroupWorker.needToMovePicture(pictureInfo, tempTargetDirectory );\n fail(\"the needToMovePicture should not handle null inputs; the are invalid\");\n } catch ( NullPointerException ex ) {\n // this is good\n }\n assertTrue(tempTargetDirectory.delete());\n }", "title": "" }, { "docid": "8506e3a8e5ed519bcb685e2e00cdea53", "score": "0.5487269", "text": "@Test\n public void test24() throws Throwable {\n Complex complex0 = new Complex(981.444136968);\n Complex complex1 = complex0.add(0.0);\n try { \n complex0.multiply((Complex) null);\n } catch(IllegalArgumentException e) {\n //\n // null is not allowed\n //\n assertThrownBy(\"org.apache.commons.math3.util.MathUtils\", e);\n }\n }", "title": "" }, { "docid": "40e256467f78b0ca133ab07a9271a00b", "score": "0.5485119", "text": "@Test (expected = IllegalArgumentException.class)\r\n\tpublic void testSearchNull() {\r\n\t\ttry {\r\n\t\t\tdatabase1.search(null);\r\n\t\t} catch (IOException e) {\r\n\t\t\tthrow new RuntimeException(e);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "2611c5cbed993b45e1c9b1f7b8ce263f", "score": "0.5484494", "text": "private void checkRep() {\n\t\tfor(Statement leaf : leaves) {\n\t\t\tassert(leaf!=null): \"Can't have null elements\";\n\t\t}\n\t}", "title": "" }, { "docid": "74178201ec06c4bf67f0606868e60977", "score": "0.54819053", "text": "@Test(timeout = 4000)\n public void test083() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.mutatesStructure((String) null);\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": "38b90ac232edb81d53eac50dbd8906da", "score": "0.5479031", "text": "@Test(timeout = 4000)\n public void test076() throws Throwable {\n // Undeclared exception!\n try { \n DBUtil.sameDatabaseType((ISession) null, (ISession) null);\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": "67a25e10a09bdd50267c77612e8b90d0", "score": "0.5477647", "text": "@Test\n public void test4UpdateNULLSchedule() {\n Mockito.when(scheduleDaoIml.getScheduleById(schedule1.getSchedule_id())).thenReturn(null);\n Mockito.when(scheduleDaoIml.updateSchedule(schedule1)).thenReturn(true);\n boolean isUpdate = scheduleService.removeSchedule(schedule1.getSchedule_id());\n Assert.assertFalse(\" schedule deleted -\" + isUpdate, isUpdate);\n }", "title": "" }, { "docid": "742575157b820a2d2cbe220c21a43008", "score": "0.54743993", "text": "@Test\n public void testFailsMergeCheckWhenStrictMode() {\n Mockito.when(prm.getSuccess()).thenReturn(true);\n Mockito.when(rc.getStrictVerifyMode()).thenReturn(true);\n Mockito.when(bsB.getSuccessfulCount()).thenReturn(0);\n\n prmc.check(mr);\n\n Mockito.verify(mr).veto(Mockito.anyString(), Mockito.anyString());\n }", "title": "" }, { "docid": "743fdc051e6928bbabf1f9ddd1c6b3e0", "score": "0.54734206", "text": "@Test(timeout = 4000)\n public void test463() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef((String) null);\n // Undeclared exception!\n try { \n xmlEntityRef0.frame((CharSequence) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "title": "" }, { "docid": "1862cf4d78ba43768747cf70c99bec0a", "score": "0.54733425", "text": "@Test\n\t\tpublic void testUpdatingVehicleWithNullVehicleValueSadPath() {\n\t\t\t@SuppressWarnings(\"unused\")\n\t\t\tVehicle vehicle = new Vehicle();\n\t\t\tvehicle = null;\n\t\t\t\n\t\t\tboolean result;\n\t\t\ttry {\n\t\t\t\ttarget.update(null);\n\t\t\t\tresult = true;\n\t\t\t\t\n\t\t\t}catch(DataIntegrityViolationException dive){\n\t\t\t\tresult = false;\n\t\t\t\t\n\t\t\t}\n\t\t\tassertFalse(result);\n\t\t\t\n\t\t}", "title": "" }, { "docid": "7e33f4d2d4da35ea6a67fd1b29ee795f", "score": "0.5467278", "text": "@Test\n\tvoid dataParksIsNullTest() {\n\t\tpark1Data = null;\n\t\tpark2Data = null;\n\t\tpark3Data = null;\n\n\t\tDepartmentManagerVisitionReportController cont = getScreen();\n\t\tif (throwen == null) {\n\t\t\tfail();\n\t\t}\n\t\tassertTrue(true);\n\t}", "title": "" }, { "docid": "66c01522ab58a9da3da4262b37e4ab20", "score": "0.546368", "text": "private static CompareResult preCompare(final Object a, final Object b) {\n\t\tif ( null == a ^ null == b ) {\r\n\t\t\treturn CompareResult.DIFFERENT;\r\n\t\t// If both are null, return this result\r\n\t\t} else if ( null == a && null == b ) {\r\n\t\t\treturn CompareResult.BOTH_ARE_NULL;\r\n\t\t}\t\r\n\t\t// Then they may be equal\r\n\t\treturn CompareResult.MAY_BE_EQUAL;\r\n\t}", "title": "" } ]
998548388f0a8a74298c7ea8a88c1f21
Computes the inclusive element index that the provided chunk starts at, given there are a certain number of chunks.
[ { "docid": "720ceaec21bc721809f130d729f3fdeb", "score": "0.79493666", "text": "private static int getChunkStartInclusive(final int chunk, final int nChunks, final int nElements) {\n\t\tfinal int chunkSize = getChunkSize(nChunks, nElements);\n\t\treturn chunk * chunkSize;\n\t}", "title": "" } ]
[ { "docid": "b67e53beabb56771d989fab8b3953668", "score": "0.6531624", "text": "int getStart(int index);", "title": "" }, { "docid": "5ce7e910c9466e8ade1c3ac654f16d59", "score": "0.63482994", "text": "public int getStartingIndex();", "title": "" }, { "docid": "61361d07cbe7581b86c673ac8841eeaa", "score": "0.62641853", "text": "private final int getChunkIndex(int[][] data, int chunk, int index) {\n return data[chunk] != null ? data[chunk][index] : -1;\n}", "title": "" }, { "docid": "9a59a0912fe1e2ce6f92f35be8b37a29", "score": "0.61839294", "text": "public long getStartIndex();", "title": "" }, { "docid": "964d84da1685af4cdb6ec5a69446e70e", "score": "0.6108495", "text": "private static int getChunkEndExclusive(final int chunk, final int nChunks, final int nElements) {\n\t\tfinal int chunkSize = getChunkSize(nChunks, nElements);\n\t\tfinal int end = (chunk + 1) * chunkSize;\n\t\tif (end > nElements) {\n\t\t\treturn nElements;\n\t\t} else {\n\t\t\treturn end;\n\t\t}\n\t}", "title": "" }, { "docid": "22a205c2b1b60ead9d587584d73b277c", "score": "0.60519767", "text": "private int indexOf(Entity e) {\n\t\tint rangeMin = 0;\n\t\t// open range - i.e. rangeMax is guaranteed gt target index (unless\n\t\t// target index==size)\n\t\tint rangeMax = size;\n\t\tint arrayPos = 0;\n\t\tint res = 0;\n\t\tif (size == 0) {\n\t\t\treturn 0;\n\t\t}\n\t\twhile (true) {\n\t\t\tarrayPos = (rangeMax - rangeMin) / 2 + rangeMin;\n\t\t\tEntity f = elementData[arrayPos];\n\t\t\tres = compare(e, f);\n\t\t\tif (res == 0) {\n\t\t\t\treturn arrayPos;\n\t\t\t}\n\t\t\tif (rangeMax == rangeMin) {\n\t\t\t\treturn arrayPos;\n\t\t\t} else {\n\t\t\t\tif (res < 0) {\n\t\t\t\t\trangeMax = arrayPos;\n\t\t\t\t} else {\n\t\t\t\t\trangeMin = arrayPos + 1;\n\t\t\t\t}\n\t\t\t\tif (rangeMin >= size) {\n\t\t\t\t\t// no elt f gt e\n\t\t\t\t\treturn size;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "258d6e8a30321a6af680a0bf1c74448c", "score": "0.5999023", "text": "public int getRangeStart(int index) {\n return list[index*2];\n }", "title": "" }, { "docid": "1d3a94b3c2017b1cdeec4f8e4de9d9ad", "score": "0.5980111", "text": "int[] getChunkOffset();", "title": "" }, { "docid": "6d303ee94a3bef22a8f9a957a8df6aea", "score": "0.5819719", "text": "public int getBeginning(int index) {\n if (this.beginpos == null)\n throw new IllegalStateException(\"A result is not set.\");\n if (index < 0 || this.nofgroups <= index)\n throw new IllegalArgumentException(\"The parameter must be less than \"\n +this.nofgroups+\": \"+index);\n return this.beginpos[index];\n }", "title": "" }, { "docid": "ca83303dfa769989376c8d5d55cc6564", "score": "0.58175266", "text": "private static final int getIndexByChunk(int x, int z) {\n return (x & 1) | ((x + z + 1) & 0x2);\n }", "title": "" }, { "docid": "c1a992786b62e37d29954dc27338fc43", "score": "0.57088923", "text": "public int getStartIndex() {\n\n for (int i = 1; i < elevationMap.length - 1; i++) {\n\n if (elevationMap[i - 1] > elevationMap[i])\n return i - 1;\n\n if ((elevationMap[i - 1] <= elevationMap[i]) && (elevationMap[i] > elevationMap[i + 1]))\n return i;\n }\n\n return -1;\n }", "title": "" }, { "docid": "a426b75f7212f764e1620b6f55342c13", "score": "0.5686766", "text": "Request getNthElementFromEnd(int n) throws IndexOutOfBoundsException;", "title": "" }, { "docid": "271b4400d72b716de4df94da3fad8d84", "score": "0.55284154", "text": "int midComponentIndex();", "title": "" }, { "docid": "3c7a5c9fd6a5840c60e40b442fa60cfa", "score": "0.5506996", "text": "int getFetchNarrowingSkipStartIndex();", "title": "" }, { "docid": "27959245c9b44a9bd2cd62925784551f", "score": "0.5504286", "text": "public int getStartOffsetOfFileContainingStreamOffset(int offset)\n {\n for (int i = fileStartOffsets.size()-1; i >= 0; i--)\n {\n int fileStartOffset = ((Integer)fileStartOffsets.get(i)).intValue();\n if (fileStartOffset <= offset)\n return fileStartOffset;\n }\n \n throw new IllegalArgumentException();\n }", "title": "" }, { "docid": "58ab4324a52c406682e7b1dccff77a38", "score": "0.55015934", "text": "private static int magicIndex(int[] a, int start, int end) {\n if (start > end) {\n return -1;\n }\n int mid = (start + end) / 2;\n int k = a[mid];\n if (k == mid) {\n return k;\n }\n if (k < mid) {\n return magicIndex(a, mid + 1, end);\n }\n return magicIndex(a, start, mid - 1);\n }", "title": "" }, { "docid": "8caea0cc106eb6fd357475e27353f03b", "score": "0.5485787", "text": "long getStartBlockIndex();", "title": "" }, { "docid": "8caea0cc106eb6fd357475e27353f03b", "score": "0.5485787", "text": "long getStartBlockIndex();", "title": "" }, { "docid": "8caea0cc106eb6fd357475e27353f03b", "score": "0.5485787", "text": "long getStartBlockIndex();", "title": "" }, { "docid": "8caea0cc106eb6fd357475e27353f03b", "score": "0.5484977", "text": "long getStartBlockIndex();", "title": "" }, { "docid": "8caea0cc106eb6fd357475e27353f03b", "score": "0.5484977", "text": "long getStartBlockIndex();", "title": "" }, { "docid": "8d76272a7fbe51ebcd240fe4751ecec7", "score": "0.5458116", "text": "int index(int position);", "title": "" }, { "docid": "d634c86b86796221933a9cd709e3dd0d", "score": "0.5442794", "text": "private int findStartTagIndex() {\n return findNextStartTagIndex(this.json, this.endTagIndex+1);\n }", "title": "" }, { "docid": "7c00ed444be6d40b7ff41efbeb4b4549", "score": "0.54360664", "text": "public static int findStartingIndex(int nums[], int t){\n int index = -1;//If nothing found will return -1\n\n //Index finding logic (Binary search)\n int start = 0;\n int end = nums.length-1;\n while(start <= end){\n int midPoint = (start+end)/2;\n\n //if the target is less than midpoint that means it resides on the left half part\n if(nums[midPoint]>= t){\n end = midPoint-1;\n }else{\n start = midPoint+1;\n }\n\n //if finds the target adds it to the index\n if(nums[midPoint] == t){\n index = midPoint;\n }\n }\n\n //Return the index\n return index;\n }", "title": "" }, { "docid": "7d47e78d72f19324976c1e65a1fcea09", "score": "0.54343385", "text": "int getChunkId();", "title": "" }, { "docid": "597ecfcfaa217acf75e4d5cca3966699", "score": "0.5401345", "text": "private int intelligentStart() {\n double minDistance = Double.MAX_VALUE;\n int index = 0;\n int minDistanceIndex = 0;\n\n for (Point p : freeList) {\n double distSum = 0.0;\n\n for (Point q : freeList) {\n distSum += distance(p, q);\n }\n\n if (distSum < minDistance) {\n minDistance = distSum;\n minDistanceIndex = index;\n }\n index++;\n }\n return minDistanceIndex;\n }", "title": "" }, { "docid": "7733a64dc842435db8e085d34a4f13b2", "score": "0.5337284", "text": "private int getIndex(int i){\r\n int index=nextFirst+1+i;\r\n if(index>items.length-1){\r\n index-=items.length;\r\n }\r\n return index;\r\n }", "title": "" }, { "docid": "8f5198341deddf82e02c18cbc4082448", "score": "0.53072125", "text": "public int getUnclippedStart() {\n\t\tMatcher m = CIGAR_STARTING_MASK.matcher(cigar);\n\t\tif (m.matches() == false) return position;\n\t\tint num = Integer.parseInt(m.group(1));\n\t\treturn position - num;\n\t}", "title": "" }, { "docid": "5307ce4aad885197a24a6cfd395dcec1", "score": "0.5278189", "text": "public int getStart(int index) {\n return start_.get(index);\n }", "title": "" }, { "docid": "0e48bdec6e42238507475bde004773c0", "score": "0.5274571", "text": "public int getStart(int index) {\n return start_.get(index);\n }", "title": "" }, { "docid": "e137414153c2aafd07286cef961a898e", "score": "0.5253378", "text": "public int getStartIndex()\r\n {\r\n return _startIndex;\r\n }", "title": "" }, { "docid": "ce007d9bf7750774766928e95bdbd852", "score": "0.52482367", "text": "public int location(int start, int length, int index) {\n\t\treturn start + index < length ? start + index : start + index - length;\n\t}", "title": "" }, { "docid": "952f1188177d3f2b545376cdb6143687", "score": "0.5248071", "text": "int offset(int actual, int length);", "title": "" }, { "docid": "186cb2b2803a3c9bcbcb71d29318646a", "score": "0.52394307", "text": "private static int findMin(double[] arr, int start, int end) {\n\t\tdouble min = Double.MAX_VALUE;\n\t\tint index = -1;\n\n\t\tfor (int i = start; i <= end; i++) {\n\t\t\tif (arr[i] <= min) {\n\t\t\t\tindex = i;\n\t\t\t\tmin = arr[i];\n\t\t\t}\n\t\t}\n\t\treturn index;\n\t}", "title": "" }, { "docid": "d52813fd09109b450ffc435037819acd", "score": "0.52281445", "text": "default int index(int hashCode) {\n return hashCode % size();\n }", "title": "" }, { "docid": "458c025aa9943dc8a3f1185ce67257f4", "score": "0.5221856", "text": "public Integer getStartIndex() {\n return startIndex;\n }", "title": "" }, { "docid": "3d545b82c79470d68de63c160e7135fa", "score": "0.5217044", "text": "String getChunkPartKey(ChunkedFileToken token, int partNumber);", "title": "" }, { "docid": "8e69f7c52e5789834e3bbb78baf779fc", "score": "0.5216705", "text": "int idx(int key) { return key % nodes.length;}", "title": "" }, { "docid": "55de694990a035cd19dbab228a38f28f", "score": "0.5214748", "text": "private static int getChunkSize(final int nChunks, final int nElements) {\n\t\t// Integer ceil\n\t\treturn (nElements + nChunks - 1) / nChunks;\n\t}", "title": "" }, { "docid": "6ff36baa07c0d632cfabd1d821d00485", "score": "0.5209998", "text": "private static long getStartIndex(long data) {\n\t\treturn (data & 0xffffffffffff0000l) >> 16;\n\t}", "title": "" }, { "docid": "396f7161aed51058b9e88b9753ce648a", "score": "0.5209766", "text": "public int getSplitIndex();", "title": "" }, { "docid": "971dc77cc3d6e9b51625ebcbb4063da2", "score": "0.5207326", "text": "private static int getPosChunkData(byte[] mpdData, int tagIdx, int posStart, int size) {\n String var4 = pngChunkHeaderTag[tagIdx];\n int posEnd;\n if (size == -1) {\n posEnd = mpdData.length;\n } else {\n posEnd = posStart + size;\n }\n\n for (int currentPos = posStart; currentPos < posEnd; currentPos += readInt(mpdData, currentPos) + 12) {\n if (mpdData[currentPos + 4] == var4.charAt(0)\n && mpdData[currentPos + 5] == var4.charAt(1)\n && mpdData[currentPos + 6] == var4.charAt(2)\n && mpdData[currentPos + 7] == var4.charAt(3)) {\n return currentPos;\n }\n }\n\n return -1;\n }", "title": "" }, { "docid": "9d2f80e9449a72ccd23f935abfc9bef3", "score": "0.5201", "text": "public int getStartingPos() {\n\t\tif (this.foundAllTerms() == false) {\n\t\t\tthrow new IllegalArgumentException();\n\t\t} else {\n\t\t\treturn this.start;\n\t\t}\n\t}", "title": "" }, { "docid": "af3583a5b2b9ead9f9606e2102e3c7b2", "score": "0.5194487", "text": "private int getSelectionStartOffset()\n {\n float start = Math.min(selectionBegin, selectionEnd);\n float length = recorder.getRawSound().length;\n return (int)(start * length);\n }", "title": "" }, { "docid": "221a51c5b71d8917153f31ba2cc12ea6", "score": "0.5192061", "text": "private static int firstIndex(int[] a, int start, int end) {\n\t\tif(start>end)\n\t\t\treturn -1;\n\t\tint mid = start +(end-start)/2;\n\t\tif(a[mid]==1 && (mid==0 || a[mid-1]==0))\n\t\t\treturn mid;\n\t\telse if(a[mid]==0)\n\t\t\treturn firstIndex(a,mid+1,end);\n\t\telse\n\t\t\treturn firstIndex(a,start,mid-1);\n\t}", "title": "" }, { "docid": "63058df2242581e5150b91b2d5dd1f18", "score": "0.5184435", "text": "@Override\r\n\tpublic int getStartIndex() {\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "0740fcaae35859e8c3a486641596a31b", "score": "0.5179139", "text": "private int indexOfMin(List<E> a, int start, int end) {\n\t\t// invariant: start min i end\n\t\t// a: [ >= x | x | >= x | ? ]\n\t\t\n\t\tint min = start, i = start+1;\n\t\t// initialization: a[start..min) and a[min+1..i) are empty\n\t\t\n\t\twhile (i < end) {\n\t\t\ti++; // progress: i increasing\n\t\t\t\n\t\t\t// start min i end\n\t\t\t// a: [ >= x | x | >= x |?| ? ]\n\t\t\tif (compare(a,i-1,min) < 0)\n\t\t\t\tmin = i-1;\n\t\t\t\n\t\t\t// preservation: know that a[i-1] >= a[min]\n\t\t}\n\t\t// termination: i == end, so a[start..i) is a[start..end), and all\n\t\t// values are >= x\n\t\treturn min;\n\t}", "title": "" }, { "docid": "83ba96e547226e159560f1a503544ba5", "score": "0.5170116", "text": "private static int position(final int idx) {\n return 1 << BITS_PER_UNIT - 1 - idx % BITS_PER_UNIT;\n }", "title": "" }, { "docid": "691f1dc597940f1d7801bd45b0100066", "score": "0.5163457", "text": "public static int indexOfTheSmallestStartingFrom(int[] array, int index) {\n int indext = index;\n int min = array[index];\n for (int i=index; i<array.length;i++) {\n if (min > array[i]){\n min = array[i];\n indext = i;\n }\n}\n return indext;\n}", "title": "" }, { "docid": "02cd170a4b5f59916dafb1c83be26568", "score": "0.51550287", "text": "public abstract int separatorStart(int i);", "title": "" }, { "docid": "19236c2b0d6bf90d16fd3656aafbdd1c", "score": "0.51502657", "text": "private static int sequentialBookSearch(Book[] b, int startIndex, int endIndex, long searchISBN) {\n int interation = 0;\n for (int i = startIndex; i < endIndex; i++) {\n interation++;\n if (b[i].getISBN() == searchISBN) {\n return i;\n }\n }\n return -1;\n }", "title": "" }, { "docid": "654cc2cbe918fb9520ba124e218f4404", "score": "0.51494586", "text": "private int getPartitionIndex(char[] arr, int start, int end) {\n\t\t// initialize the partitionIndex with the start index\n\t\tint partitionIndex = start;\n\n\t\t// Get pivot element from the array. Pivot element is arr[end] element\n\t\tchar pivot = arr[end];\n\n\t\t// loop the array from the start to end index\n\t\tfor (int i = start; i < end; i++) {\n\t\t\t// if the arr[i] element is less than the pivot element, then swap\n\t\t\t// the arr[i] element with the arr[partitionIndex], and increase the\n\t\t\t// partitionIndex value\n\t\t\tif (arr[i] < pivot) {\n\t\t\t\tchar temp = arr[i];\n\t\t\t\tarr[i] = arr[partitionIndex];\n\t\t\t\tarr[partitionIndex] = temp;\n\n\t\t\t\tpartitionIndex++;\n\t\t\t}\n\t\t}\n\n\t\t// after looping swap the pivot element (i.e arr[end]) with the\n\t\t// arr[partitionIndex] element\n\t\tchar temp = arr[partitionIndex];\n\t\tarr[partitionIndex] = arr[end];\n\t\tarr[end] = temp;\n\n\t\t// return the partitionIndex\n\t\treturn partitionIndex;\n\t}", "title": "" }, { "docid": "31d71c783a1c0f6d86ba74c96903a499", "score": "0.5146502", "text": "private int firstSlice() {\n if (sliceFirst >= 0) {\n return sliceFirst + 1;\n } else {\n return 1;\n }\n }", "title": "" }, { "docid": "5d316c49e2892d3f9ccf0b774fdf65fc", "score": "0.5133373", "text": "public int nextIndex() {\n/* 79 */ return this.beforeFirst ? 0 : 1;\n/* */ }", "title": "" }, { "docid": "aa043cbbe52c1229b71c0474f0e4b03b", "score": "0.5127686", "text": "public Pair<Integer, Integer> indexSpans(MutableInteger startIndex) {\r\n int start = Integer.MAX_VALUE;\r\n int end = Integer.MIN_VALUE;\r\n\r\n if(isLeaf()){\r\n start = startIndex.intValue();\r\n end = startIndex.intValue() + 1;\r\n startIndex.incValue(1);\r\n } else {\r\n for (Tree kid : children()) {\r\n Pair<Integer, Integer> span = kid.indexSpans(startIndex);\r\n if(span.first < start) start = span.first;\r\n if(span.second > end) end = span.second;\r\n }\r\n }\r\n\r\n CoreLabel afl = (CoreLabel) label();\r\n afl.set(BeginIndexAnnotation.class, start);\r\n afl.set(EndIndexAnnotation.class, end);\r\n return new Pair<Integer, Integer>(start, end);\r\n }", "title": "" }, { "docid": "095c6906b04d67ead74e1b45b017e02b", "score": "0.5124936", "text": "private static int getPosChunkData(byte[] arrayByte, int tagIdx) {\n String var2 = pngChunkHeaderTag[tagIdx];\n int var3 = arrayByte.length;\n\n for (int var4 = 0; var4 < var3 - 3; ++var4) {\n if (arrayByte[var4] == var2.charAt(0) && arrayByte[var4 + 1] == var2.charAt(1) && arrayByte[var4 + 2] == var2.charAt(2) && arrayByte[var4 + 3] == var2.charAt(3)) {\n return var4 - 4;\n }\n }\n\n return -1;\n }", "title": "" }, { "docid": "dc15e51143824b510e05411327b09d9c", "score": "0.51222503", "text": "int offsetFloor(int actual, int length);", "title": "" }, { "docid": "d175f94f856573f0aa09de2e998cb4b6", "score": "0.51196927", "text": "public int getStartIndex() {\n\t\treturn overlayIndex;\n\t}", "title": "" }, { "docid": "9e284dccfecda5654634bde2e63925c3", "score": "0.51111335", "text": "public List<Integer> _findClosestElementsStartLocator(int [] arr, int k, int x) {\n List<Integer> list = new ArrayList<>();\n for (int val : arr) list.add (val);\n\n int l = 0, r = list.size() - k;\n while (l < r) {\n int mid = (l + r) / 2;\n if (x - list.get(mid) > list.get(mid + k) - x) l = mid + 1;\n else r = mid;\n }\n return list.subList(l, l + k);\n }", "title": "" }, { "docid": "a18d7064a4fea82e71b8c3184a3cd6bc", "score": "0.51099426", "text": "private int position(int idx) {\n return 1 << (BITS_PER_UNIT - 1 - (idx % BITS_PER_UNIT));\n }", "title": "" }, { "docid": "2b0c00a0c219adb8647f0139a235b862", "score": "0.5109527", "text": "private static int position(int idx) {\n return 1 << (BITS_PER_UNIT - 1 - (idx % BITS_PER_UNIT));\n }", "title": "" }, { "docid": "df6cd620940f85a5f612d426bf0f406d", "score": "0.5108162", "text": "long getIndex();", "title": "" }, { "docid": "df6cd620940f85a5f612d426bf0f406d", "score": "0.5108162", "text": "long getIndex();", "title": "" }, { "docid": "267fa5bac33f036ce2c026836bcc1c47", "score": "0.5103466", "text": "public static int findLimitStart(long oid, int recordToGet, String whereClause, String order) {\n int size = getCount(whereClause);\n int start = 0;\n boolean found = false;\n for (int i = 0; (i < size) && !found; i = i + recordToGet) {\n Vector list = list(i, recordToGet, whereClause, order);\n start = i;\n if (list.size() > 0) {\n for (int ls = 0; ls < list.size(); ls++) {\n Period period = (Period) list.get(ls);\n if (oid == period.getOID())\n found = true;\n }\n }\n }\n if ((start >= size) && (size > 0))\n start = start - recordToGet;\n\n return start;\n }", "title": "" }, { "docid": "f6b9515b578d8d19264b8b8ba6a94979", "score": "0.5099779", "text": "public static int findLimitStart( long oid, int recordToGet, String whereClause, String orderClause){\n\t\tString order = \"\";\n\t\tint size = getCount(whereClause);\n\t\tint start = 0;\n\t\tboolean found =false;\n\t\tfor(int i=0; (i < size) && !found ; i=i+recordToGet){\n\t\t\t Vector list = list(i,recordToGet, whereClause, orderClause); \n\t\t\t start = i;\n\t\t\t if(list.size()>0){\n\t\t\t for(int ls=0;ls<list.size();ls++){ \n\t\t\t \t Presence presence = (Presence)list.get(ls);\n\t\t\t\t if(oid == presence.getOID())\n\t\t\t\t\t found=true;\n\t\t\t }\n\t\t }\n\t\t}\n\t\tif((start >= size) && (size > 0))\n\t\t start = start - recordToGet;\n\n\t\treturn start;\n\t}", "title": "" }, { "docid": "477e14d188c0d58b1db2bc2466cad1c8", "score": "0.50997156", "text": "protected abstract int getIndex();", "title": "" }, { "docid": "eeca0400d749b3c91ba0e6e28c265f56", "score": "0.50987536", "text": "public int getStartOffset() {\r\n\t\treturn start;\r\n\t}", "title": "" }, { "docid": "3d66581b86d9e924c12f5f7b7c9ea981", "score": "0.5088043", "text": "private int findIndex(int v){\n \tint index = (v - min) / otherWidth;\n \t\n \tif (index >= buckets.length){\n \t\treturn index - 1;\n \t}\n \telse{\n \t\treturn index;\n \t}\n }", "title": "" }, { "docid": "9eb9b9cdac4e28011a6f9cd5844a5194", "score": "0.50880015", "text": "public long getStartIndex() {\n\t\treturn startIndex;\n\t}", "title": "" }, { "docid": "a759327d18f8f422caefdf964c7f22bf", "score": "0.5085644", "text": "private int pos(int i, int n){\n int cel=i++;\n while( i < n ){\n if (knows(cel,i)){\n cel = i;\n }\n i++;\n }\n return cel;\n }", "title": "" }, { "docid": "ece9ec77460b697364057e183fcf84ed", "score": "0.5080421", "text": "Integer findMagicIndex(int[] input);", "title": "" }, { "docid": "d426233195963ddd7d2c5a446480c8a9", "score": "0.50794154", "text": "public final int getStart() {\n return start == Integer.MIN_VALUE ? 0 : start;\n }", "title": "" }, { "docid": "769108ef0cd89b5103caea56b239acdd", "score": "0.50554115", "text": "private MpscUnboundedXaddChunk<E> producerChunkForIndex(\n final MpscUnboundedXaddChunk<E> initialChunk,\n final long requiredChunkIndex)\n {\n MpscUnboundedXaddChunk<E> currentChunk = initialChunk;\n long jumpBackward;\n while (true)\n {\n if (currentChunk == null)\n {\n currentChunk = lvProducerChunk();\n }\n final long currentChunkIndex = currentChunk.lvIndex();\n // Consumer will set the chunk index to CHUNK_CONSUMED when it is consumed, we should only see this case\n // if the consumer has done so concurrent to our attempts to use it.\n if (currentChunkIndex == MpscUnboundedXaddChunk.CHUNK_CONSUMED)\n {\n // force an attempt to fetch it another time\n currentChunk = null;\n continue;\n }\n // if the required chunk index is less than the current chunk index then we need to walk the linked list of\n // chunks back to the required index\n jumpBackward = currentChunkIndex - requiredChunkIndex;\n if (jumpBackward >= 0)\n {\n break;\n }\n // is this the last chunk, as reported by the producerChunkIndex?\n if (lvProducerChunkIndex() == currentChunkIndex)\n {\n long requiredChunks = -jumpBackward;\n currentChunk = appendNextChunks(currentChunk, currentChunkIndex, requiredChunks);\n }\n else\n {\n currentChunk = null;\n }\n }\n for (long i = 0; i < jumpBackward; i++)\n {\n // prev cannot be null, because the consumer cannot null it without consuming the element for which we are\n // trying to get the chunk.\n currentChunk = currentChunk.lpPrev();\n assert currentChunk != null;\n }\n assert currentChunk.lvIndex() == requiredChunkIndex;\n return currentChunk;\n }", "title": "" }, { "docid": "529a632296684bd2adb73090b3284301", "score": "0.50550526", "text": "private static native long nativeStartList(long size);", "title": "" }, { "docid": "b13871f2988e1557f05ddc223ff74876", "score": "0.5037932", "text": "public int getPresent_first_item_idx() {\n\n\t\treturn 1 + (present_page - 1) * page_per_item_num <= 0 ? 1 : 1 + (present_page - 1) * page_per_item_num;\n\t\t\n\t}", "title": "" }, { "docid": "7ea703625e24991f6b5a83ad9e597f58", "score": "0.5037095", "text": "public int mid() {\n return (start + end) / 2;\n }", "title": "" }, { "docid": "3d0106ed5ede31c0bd8075eafc8c0515", "score": "0.50307125", "text": "public int getCircularPartStartIndex() {\r\n return circularPartStartIndex;\r\n }", "title": "" }, { "docid": "38ac5d8acfdd5b03f2beb0c64510ec60", "score": "0.5025363", "text": "public int where(int i) {\n if (include(i)) return 0;\n else return i < start ? -1 : 1;\n }", "title": "" }, { "docid": "c6d35455a12c4a1f60ef477e07200029", "score": "0.50245047", "text": "public Offset getIndexOffset();", "title": "" }, { "docid": "88b0d0577ec3cb04d7867354cb269d4b", "score": "0.5024357", "text": "public static int minIndex(int[] array)\r\n {\r\n int minimum = array[0];\r\n int position = 0;\r\n for (int i = 1; i < array.length; i++)\r\n {\r\n if (minimum > array[i])\r\n {\r\n minimum = array[i];\r\n position = i;\r\n }\r\n }\r\n return position;\r\n }", "title": "" }, { "docid": "2ee455aca8a824e06d2be564f7c91c7a", "score": "0.50239956", "text": "public int find(String token, int starting)\n\t{\n\t\tfor (int i=starting; i<xmlParts.length; i++)\n\t\t{\n\t\t\tif (xmlParts[i].equals(token))\n\t\t\t\t\treturn i;\n\t\t}\n\t\treturn -1;\n\t}", "title": "" }, { "docid": "6560100e42a2362a568ec781f12c0522", "score": "0.50177395", "text": "public int GetLineIndexFromOffset(int offset)\r\n { \r\n int index = -1;\r\n int min = 0;\r\n int max = _lineMetrics.Count;\r\n\r\n// Invariant.Assert(_lineMetrics.Count >= 1);\r\n\r\n while (true) \r\n {\r\n// Invariant.Assert(min < max, \"Couldn't find offset!\"); \r\n\r\n index = min + (max - min) / 2;\r\n LineRecord record = _lineMetrics[index];\r\n\r\n if (offset < record.Offset)\r\n { \r\n max = index; \r\n }\r\n else if (offset > record.EndOffset) \r\n {\r\n min = index + 1;\r\n }\r\n else \r\n {\r\n if (offset == record.EndOffset && index < _lineMetrics.Count - 1) \r\n { \r\n // Go to the next line if we're between two lines.\r\n index++; \r\n }\r\n break;\r\n }\r\n } \r\n\r\n return index; \r\n }", "title": "" }, { "docid": "dbde523b0dbf9224a0841439cf083f78", "score": "0.5009356", "text": "private String inclusiveSlice() {\n\t\tint start = mark;\n\t\tif (start == -1) {\n\t\t\tstart = 0;\n\t\t}\n\t\tint last = pos + 1;\n\t\tif (start >= last) {\n\t\t\treturn \"\";\n\t\t}\n\t\treturn sign.substring(start, last);\n\t}", "title": "" }, { "docid": "2cbf8a94ad6d1a3d237423e770e61134", "score": "0.5000803", "text": "NumberWrapper index();", "title": "" }, { "docid": "e2a82a82b9c994da878b398aa14255fe", "score": "0.4996136", "text": "int minComponentIndex();", "title": "" }, { "docid": "c761d7d16bbed46575a2a4d2d0c41a45", "score": "0.49959648", "text": "public static int getDataStartOffset(ByteBuffer waveFileBytes) {\n\t\t// add 4 bytes for data chunk ID and 4 bytes for data chunk size\n\t\treturn getDataChunkStart(waveFileBytes) + 8;\n\t}", "title": "" }, { "docid": "203eb9238a7b321dd0c700cb20c89f58", "score": "0.4993686", "text": "int getIndex();", "title": "" }, { "docid": "203eb9238a7b321dd0c700cb20c89f58", "score": "0.4993686", "text": "int getIndex();", "title": "" }, { "docid": "203eb9238a7b321dd0c700cb20c89f58", "score": "0.4993686", "text": "int getIndex();", "title": "" }, { "docid": "203eb9238a7b321dd0c700cb20c89f58", "score": "0.4993686", "text": "int getIndex();", "title": "" }, { "docid": "203eb9238a7b321dd0c700cb20c89f58", "score": "0.4993686", "text": "int getIndex();", "title": "" }, { "docid": "203eb9238a7b321dd0c700cb20c89f58", "score": "0.4993686", "text": "int getIndex();", "title": "" }, { "docid": "203eb9238a7b321dd0c700cb20c89f58", "score": "0.4993686", "text": "int getIndex();", "title": "" }, { "docid": "203eb9238a7b321dd0c700cb20c89f58", "score": "0.4993686", "text": "int getIndex();", "title": "" }, { "docid": "203eb9238a7b321dd0c700cb20c89f58", "score": "0.4993686", "text": "int getIndex();", "title": "" }, { "docid": "203eb9238a7b321dd0c700cb20c89f58", "score": "0.4993686", "text": "int getIndex();", "title": "" }, { "docid": "203eb9238a7b321dd0c700cb20c89f58", "score": "0.4993686", "text": "int getIndex();", "title": "" }, { "docid": "203eb9238a7b321dd0c700cb20c89f58", "score": "0.4993686", "text": "int getIndex();", "title": "" }, { "docid": "90be56052b221363679bd6c88e159608", "score": "0.4992118", "text": "public int[] getChunkOffsets() {\r\n\tint[] offsets = new int[getChunks().length];\r\n\tfor (int i=0;i<offsets.length;i++) offsets[i] = getChunks()[i].getOffset();\r\n\treturn offsets;\r\n}", "title": "" }, { "docid": "bb1271e235abef4b278a994cd65ba005", "score": "0.4990016", "text": "private int insPos(final int[] cne, final int ins) {\r\n int i = cne[0] + 1;\r\n final int s = cne.length - 1;\r\n while(i < s && diff(cne[i + 1], ins) < 0) i += 2;\r\n return i < s && cne[i + 1] == ins ? i : -1;\r\n }", "title": "" } ]
cf5c526a29fbe013019015fe5f33c870
/ (nonJavadoc) Schrijven naar rij met devNaam of nieuwe rij aanmaken met devNaam
[ { "docid": "ee1d2185ab79ebedda7ca358a81b9056", "score": "0.0", "text": "@Override\r\n\tprotected String doInBackground(String... params) {\r\n\t\ttry {\r\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\").newInstance();\r\n\r\n\t\t\tif (isInternal) {\r\n\t\t\t\turl = \"jdbc:mysql://192.168.2.5:3306/project78\";\r\n\t\t\t} else {\r\n\t\t\t\turl = \"jdbc:mysql://schriek.dscloud.me:3306/project78\";\r\n\t\t\t}\r\n\r\n\t\t\tconn = DriverManager.getConnection(url, login, password);\r\n\t\t\tStatement s = conn.createStatement();\r\n\r\n\t\t\tint recordsUpdated;\r\n\r\n\t\t\tif (params[0] == \"table\") {\r\n\t\t\t\trecordsUpdated = s\r\n\t\t\t\t\t\t.executeUpdate(\"CREATE TABLE IF NOT EXISTS \"\r\n\t\t\t\t\t\t\t\t+ params[1]\r\n\t\t\t\t\t\t\t\t+ \" (id INT NOT NULL AUTO_INCREMENT PRIMARY KEY, longtitude FLOAT, latitude FLOAT, timestamp FLOAT);\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (params[0] == \"create\") {\r\n\t\t\t\trecordsUpdated = s\r\n\t\t\t\t\t\t.executeUpdate(\"INSERT INTO \" + params[1] + \" VALUES (NULL,'\"\r\n\t\t\t\t\t\t\t\t+ params[2] + \"','\" + params[3] + \"','\"\r\n\t\t\t\t\t\t\t\t+ params[4] + \"')\");\r\n\r\n\t\t\t\tLog.i(tag, recordsUpdated + \" Rijen aangemaakt met id = \"\r\n\t\t\t\t\t\t+ params[1]);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (params[0] == \"home\") {\r\n\t\t\t\trecordsUpdated = s\r\n\t\t\t\t\t\t.executeUpdate(\"INSERT INTO home VALUES (NULL,'\" \r\n\t\t\t\t\t\t\t\t+ params[1] + \"','\" + params[2] + \"','\"\r\n\t\t\t\t\t\t\t\t+ params[3] + \"','\" + params[4] + \"')\");\r\n\r\n\t\t\t\tLog.i(tag, recordsUpdated + \" Rijen aangemaakt met id = \"\r\n\t\t\t\t\t\t+ params[1]);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(params[0] == \"updateHome\") {\r\n\t\t\t\trecordsUpdated = s.executeUpdate(\"UPDATE home SET latitude = '\"\r\n\t\t\t\t\t\t\t\t+ params[2] + \"', longtitude = '\" + params[3]\r\n\t\t\t\t\t\t\t\t+ \"' WHERE devNaam = '\" + params[1] + \"'\");\r\n\t\t\t\t\r\n\t\t\t\tLog.i(tag, recordsUpdated + \" RIJ GEUPDATE\"\r\n\t\t\t\t\t\t+ params[1]);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (params[0] == \"update\") {\r\n\t\t\t\trecordsUpdated = s\r\n\t\t\t\t\t\t.executeUpdate(\"UPDATE gegevens SET latitude = '\"\r\n\t\t\t\t\t\t\t\t+ params[2] + \"', longtitude = '\" + params[3]\r\n\t\t\t\t\t\t\t\t+ \"' WHERE id = '\" + params[1] + \"'\");\r\n\r\n\t\t\t\tLog.i(tag, recordsUpdated + \" Records updated\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(params[0] == \"TrustedLocations\"){\r\n\t\t\t\trecordsUpdated = s\r\n\t\t\t\t\t\t.executeUpdate(\"INSERT INTO TrustedLocations VALUES (NULL,'\" \r\n\t\t\t\t\t\t\t\t+ params[1] + \"','\" + params[2] + \"','\"\r\n\t\t\t\t\t\t\t\t+ params[3] + \"')\");\r\n\t\t\t\tLog.i(tag, recordsUpdated + \"TRUSTED LOCATION TOEGEVOEGD VOOR DEVICE\" \r\n\t\t\t\t\t\t+ params[1]);\r\n\r\n\t\t\t}\r\n\r\n\t\t\tLog.i(tag, \"Verbonden met db\");\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\tif (conn != null) {\r\n\t\t\t\t\tconn.close();\r\n\t\t\t\t}\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "title": "" } ]
[ { "docid": "174462400ed7e7fd19e42f91bcb85b4b", "score": "0.5804268", "text": "public static void developerInfo() {\r\n System.out.println(\"\");\r\n System.out.println(\"*************************************************\");\r\n System.out.println (\"Name: Allison Crenshaw\");\r\n System.out.println (\"Course: ITSE 2317 Intermediate Java Programming\");\r\n System.out.println (\"Program: Three\");\r\n System.out.println(\"*************************************************\");\r\n }", "title": "" }, { "docid": "9095ea793c18b4f43e3365d48dfe47bb", "score": "0.5705874", "text": "java.lang.String getDevno();", "title": "" }, { "docid": "b6b0380926563961cac0b3c08604ce31", "score": "0.5640267", "text": "@Override\n public String getDescription() {\n return \"Kayserili Agent 2021\";\n }", "title": "" }, { "docid": "530901fa6354ae84ab3421cf124cdfd7", "score": "0.56394255", "text": "@Override\r\n public String getDescription() //overrided methode\r\n {\r\n return \"Afbeeldingen die toegelaten zijn om te gebruiken\";\r\n }", "title": "" }, { "docid": "609ec2ff060d9d4cb0276468f482734d", "score": "0.5599318", "text": "public void mo89673a() {\n }", "title": "" }, { "docid": "9a9e31f7f5e2dd60e4a9475be8e80714", "score": "0.55627114", "text": "public void maakNieuweGeneratie() {\r\n bepaalKinderen(bepaalOuders());\r\n }", "title": "" }, { "docid": "3211287bc24304a8ca2975647e8a262e", "score": "0.5535696", "text": "public void mo1702b() {\n }", "title": "" }, { "docid": "8bf8511f65e0c2b04c8bd3242cfd3d0d", "score": "0.5525691", "text": "public void mo25201a() {\n }", "title": "" }, { "docid": "45ebede6d32e5caa2d42e0457911dd48", "score": "0.5497475", "text": "@Override\n\t\t\tpublic void aksamAntrenman() {\n\n\t\t\t}", "title": "" }, { "docid": "2d7662ece70ddd151b4358b85ea9da68", "score": "0.54863656", "text": "public String getNaam();", "title": "" }, { "docid": "bb1812ac9695e9e927bf9945d6e9c398", "score": "0.548211", "text": "public void mo20031a() {\n }", "title": "" }, { "docid": "540d10787b7730c642d027db847f3f23", "score": "0.54725516", "text": "public String getDeveloper() {\n return developer;\n }", "title": "" }, { "docid": "ee34b65ca528d3c4001b7840ceae42b2", "score": "0.54724985", "text": "public void mo1957a() {\n }", "title": "" }, { "docid": "9fd62e1edd3c9572b91e4b360798b28f", "score": "0.5469808", "text": "public String getPodfeedCopyright();", "title": "" }, { "docid": "0f293b925cc4abbe827b83c77622c164", "score": "0.5459032", "text": "Documentation getDocumentation();", "title": "" }, { "docid": "401b1d2a87636ca5f4eb358c4cacc862", "score": "0.54409194", "text": "@Override\n public String descripcion() {\n return \"Viaje para disfrutar con toda tu familia\";\n }", "title": "" }, { "docid": "62b48095b23c79de79491e925c5b1e60", "score": "0.543584", "text": "public Bedrijf(String naam) {\n this.naam = naam;\n }", "title": "" }, { "docid": "ea88d4d80c118e687ca6fa47a8cb108b", "score": "0.5429021", "text": "@Override\r\n\tpublic String IEat() {\n\t\treturn \"other dinosaurs\";\r\n\t}", "title": "" }, { "docid": "51ec49f63eac338cbf734314fc015db3", "score": "0.5427731", "text": "public java.lang.String getDevelopRoof()\r\n {\r\n return this.developRoof;\r\n }", "title": "" }, { "docid": "19e7961b4db71d792a3277686bb4e2b8", "score": "0.5426159", "text": "public void mo42215a() {\n }", "title": "" }, { "docid": "619a28ba3c7707bdf8bb1451d5c3d12b", "score": "0.54069895", "text": "public void mo25069a() {\n }", "title": "" }, { "docid": "d6a8e1d2cfc8b663a326cf5119b37fd7", "score": "0.53883195", "text": "@Override\r\n\tpublic String dibujar() {\n\t\treturn \"Trompeta\";\t\t\r\n\t}", "title": "" }, { "docid": "cdedf44e89b70acd7f7fe39a2e015aec", "score": "0.53688747", "text": "@Override\n public String getNro_doc(){\n return this.nro_doc;\n }", "title": "" }, { "docid": "2bcac1bab4eaa6c9cc4cb7e33c684cef", "score": "0.5356331", "text": "public void mo1691a() {\n }", "title": "" }, { "docid": "20acc029c0a1d410315a7ee8b828a271", "score": "0.53301126", "text": "public void voegDeelnemerToe(String naam) {\n if(toetsuitvoering != null)\n toetsuitvoering.voegDeelnemerToe(naam);\n else\n System.out.println(\"Lokaal staat niet open\");\n }", "title": "" }, { "docid": "c13e6a1b7c130afa9fb0f34225bea4ef", "score": "0.53177804", "text": "protected void mo1555b() {\n }", "title": "" }, { "docid": "588256cceaa67dc95253a08baa4cb801", "score": "0.53176343", "text": "public void miseAJourCroyants();", "title": "" }, { "docid": "a55a150557f80abcbd733ee3162b0661", "score": "0.53048426", "text": "private void m18301a() {\n }", "title": "" }, { "docid": "a7cff18dc205a0d79dbe54bb988e6894", "score": "0.5300571", "text": "public void emettreSon() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b8a45528a3f2e2c5ca531b00160fddfb", "score": "0.5295064", "text": "@Override\n\tpublic void nacer() {\n\n\t}", "title": "" }, { "docid": "b8a45528a3f2e2c5ca531b00160fddfb", "score": "0.5295064", "text": "@Override\n\tpublic void nacer() {\n\n\t}", "title": "" }, { "docid": "3fb636b9ce0d711892980996a1771579", "score": "0.52929085", "text": "public final void mo53187a() {\n }", "title": "" }, { "docid": "432a53d7cc7bff50c3cce7662418fe22", "score": "0.5270519", "text": "private static void daelijeom() {\n\t\t\n\t}", "title": "" }, { "docid": "f946c25332cf206597cf71ea967363a6", "score": "0.5270309", "text": "public void annoy() {\n\t\t\n\t}", "title": "" }, { "docid": "1b6e09a6782d50972c182ef576e82c8d", "score": "0.5256362", "text": "public void mo5729d() {\n }", "title": "" }, { "docid": "dbbad45ffad6f125f23b3046b9e99690", "score": "0.5246646", "text": "@Override\n\tpublic String getDesignation() {\n\t\treturn nom+\" \"+prenon;\n\t}", "title": "" }, { "docid": "554cfaae6abcd9335fb9564fb52cfad1", "score": "0.5244604", "text": "public void informacja_dla_obserwatora(Zdarzenia_okna_rozgrywki zor);", "title": "" }, { "docid": "734f5d200a48f3891c19df841a778f95", "score": "0.52417016", "text": "@Override\n public void dailyStudyBible() {\n \n }", "title": "" }, { "docid": "1924a88cbed736dda745f2c3a4ee2a22", "score": "0.5241259", "text": "@Override\r\n\tpublic String tedarikEdilenYer() {\n\t\treturn \"Urun IIngiltereden Gelmektedir.\";\r\n\t}", "title": "" }, { "docid": "2f8f597af7d6e58fc9bd0d80b5033fad", "score": "0.52350473", "text": "@Override\n\tpublic String getName() {\n\t\treturn \"oasewardevans Deuces\";\n\t}", "title": "" }, { "docid": "a7737ec40d11d4a6be6b77455431856c", "score": "0.5216065", "text": "@Override\n\tpublic String notate() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "56698d64fab70a4f59e7f0c97c929981", "score": "0.52146596", "text": "@Override\n\tpublic String beslenir() {\n\t\treturn \"daha saglikli beslenmke zorunda\";\n\t}", "title": "" }, { "docid": "b6991105a4e7cbd1e588ff8cdb14842f", "score": "0.5206258", "text": "public final void mo42476a() {\n }", "title": "" }, { "docid": "0919d10572dd3e4a2e8ff2c1014c266b", "score": "0.52041453", "text": "@Override\r\n public String getName() {\n return \"POISSON\";\r\n }", "title": "" }, { "docid": "a53a67054eeb84dd51fe5ada34e68c92", "score": "0.5201793", "text": "@Override\r\n\tpublic String vender() {\n\t\treturn \"Venta de mayorista\";\r\n\t}", "title": "" }, { "docid": "0fc890bce2cd6e7184e33036b92f8217", "score": "0.5199583", "text": "public void mo55254a() {\n }", "title": "" }, { "docid": "90e9be10c2c69543036119c8db74189e", "score": "0.5198029", "text": "public void mo6944a() {\n }", "title": "" }, { "docid": "65761b81b9e7c262ab2053f890407576", "score": "0.51827425", "text": "public final void mo8975a() {\n }", "title": "" }, { "docid": "d455d264a2f0505a4ba42e899c160170", "score": "0.51796776", "text": "@SuppressWarnings(\"unchecked\")\n\t\t\t\t\t\t\tprivate Javadoc getGetServletInfoJavadocComment(AST ast) {\n\t\t\t\t\t\t\t\tJavadoc docComment = ast.newJavadoc();\n\t\t\t\t\t\t\t\tList tags = docComment.tags();\n\n\t\t\t\t\t\t\t\ttags.add(CodeGenerationUtils.getTagElement(ast, null, null, \n\t\t\t\t\t\t\t\t\t\"Returns a short description of the servlet.\")); //$NON-NLS-1$\n\t\t\t\t\t\t\t\ttags.add(CodeGenerationUtils.getTagElement(ast, TagElement.TAG_RETURN, null, \n\t\t\t\t\t\t\t\t\t\"a String containing servlet description\")); //$NON-NLS-1$\n\n\t\t\t\t\t\t\t\treturn docComment;\n\t\t\t\t\t\t\t}", "title": "" }, { "docid": "fb1ef7ad5113fa3961b21c75d0ebfceb", "score": "0.51765484", "text": "public PstWarningReprimandAyat() {\n }", "title": "" }, { "docid": "c1802421ef876a2eabbafb997dedb037", "score": "0.5164944", "text": "public String toString()\r\n/* 30: */ {\r\n/* 31:68 */ return getDescription();\r\n/* 32: */ }", "title": "" }, { "docid": "64cecb5037f1a764d6ff1e3e72f2025d", "score": "0.51647294", "text": "public void setDeveloper(String developer) {\n this.developer = developer;\n }", "title": "" }, { "docid": "f8b3807820114aae7a84fcdcd9ac2916", "score": "0.5162162", "text": "int getBuiltDate();", "title": "" }, { "docid": "359987993ad84757f9d7a12eaf38d2d7", "score": "0.51606596", "text": "public final void mo59419g() {\n }", "title": "" }, { "docid": "ab5d7c35e04a75dc3d67ae5fda3d1437", "score": "0.5148939", "text": "public String getDevName() {\n return devName;\n }", "title": "" }, { "docid": "7663df234e9f57f80f67000c6bc41cc1", "score": "0.51482", "text": "@Override\n\tpublic void afficherVilain() {\n\t\t\n\t}", "title": "" }, { "docid": "673a49ca299f4504a7a66fb69e6c009b", "score": "0.51420426", "text": "public final void mo23803a() {\n }", "title": "" }, { "docid": "c1d7c23878b88f09690e077b4ac8e411", "score": "0.5139907", "text": "public String getDevRe101() {\n return devRe101;\n }", "title": "" }, { "docid": "47955f98c0c9a8111848c66f63aa7e23", "score": "0.51392317", "text": "public int getNombre_denonciations()\r\n/* */ {\r\n/* 41 */ return this.nombre_denonciations;\r\n/* */ }", "title": "" }, { "docid": "a77d6758a1b4d042e1b55a29fb16ba71", "score": "0.51351535", "text": "boolean undocumented();", "title": "" }, { "docid": "8565c40e7fd64f317574f9a4b0750e9b", "score": "0.5127198", "text": "public void obirisLekciju(){\n\t}", "title": "" }, { "docid": "5f684a8f166c9752973a56b057702184", "score": "0.5122001", "text": "private JuniorDeveloper(builder builder) {\n this.name = builder.name;\n this.brainVolume = builder.brainVolume;\n this.stupidity = builder.stupidity;\n this.numberOfBooksRead = builder.numberOfBooksRead;\n this.awesomeness = builder.awesomeness;\n }", "title": "" }, { "docid": "b8cd427648ea50c94f93c47d407d10a0", "score": "0.5112176", "text": "public void mo3639d() {\n }", "title": "" }, { "docid": "1aedff9ae949c7e4d85ce1c3aa76f997", "score": "0.51100457", "text": "private static String m132851r() {\n return \"from_search_similar_aweme\";\n }", "title": "" }, { "docid": "d8b6647f025b58d1a3e20bc5272c14eb", "score": "0.5101791", "text": "public void telaSobre() {\n }", "title": "" }, { "docid": "a862e541e78fa35e7cdee5df13d1cfc9", "score": "0.50969476", "text": "@Override\n\tpublic String getJednotka() {\n\t\treturn \"mesicu\";\n\t}", "title": "" }, { "docid": "33d41636b65afa8267c9085dae3d1a2d", "score": "0.5096021", "text": "private void apparence() {\r\n\r\n\t}", "title": "" }, { "docid": "f777356e2cd2fecd871f35f7e556fda8", "score": "0.5095478", "text": "public void mo3640e() {\n }", "title": "" }, { "docid": "1d4ed1e83ca67d63afa8bef56104fe06", "score": "0.50907713", "text": "@Override\n\tpublic boolean generateDetailedCobolName() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "1d4ed1e83ca67d63afa8bef56104fe06", "score": "0.50907713", "text": "@Override\n\tpublic boolean generateDetailedCobolName() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "669992dbebf2d0312928c4ecd096bb00", "score": "0.5084168", "text": "java.lang.String getGubunIpwonDate();", "title": "" }, { "docid": "669992dbebf2d0312928c4ecd096bb00", "score": "0.5083753", "text": "java.lang.String getGubunIpwonDate();", "title": "" }, { "docid": "83a3f843984ff69de2419da15638ad83", "score": "0.50828373", "text": "@Override\r\n\tpublic String author() {\n\t\treturn \"ben&nitins\";\r\n\t}", "title": "" }, { "docid": "bb43dc7e1082111bf323bc48bfbae684", "score": "0.5080076", "text": "public static void main(String[] args) {\n Student albertEinstein = new Student(\"Albert\", \"Einstein\", \"523523\");\n\n // Oppretter og instansierer to kursobjekter\n Kurs mobilProgrammering = new Kurs(\"Mobilprogrammering\", \"ITF1337\", 10);\n Kurs kvanteFysikk = new Kurs(\"Kvantefysikk\", \"ITF9999\", 20);\n\n // Legger et av kursene vi har laget til studentobjektet \"albertEinstein\"\n albertEinstein.setOppsattKurs(mobilProgrammering);\n\n // Henter ut Albert sitt kursene\n Kurs kursetEinsteinTar = albertEinstein.getOppsattKurs();\n\n\n // Printer ut informasjon om Albert og kurset han kurset han kurset han tar\n System.out.println(albertEinstein.getFornavn() + \" \" + albertEinstein.getEtternavn() + \" tar kurset \" + kursetEinsteinTar.getNavn());\n // Kunne også hentet ut navnet på kurset Albert tar ved å kalle metoden på Kurs-objektet som returneres fra getOppsattKurs() direkte\n System.out.println(albertEinstein.getOppsattKurs().getNavn());\n }", "title": "" }, { "docid": "da1f1c3614b9ca3d57ea9854ac318b25", "score": "0.5079231", "text": "@Override\r\n\tpublic String cobrar() {\n\t\treturn \"Mayorista cobrando...\";\r\n\t}", "title": "" }, { "docid": "5ffeb590ae94435a047e25c47b98e349", "score": "0.5076293", "text": "public java.lang.String getDam_designer() {\n\treturn dam_designer;\n}", "title": "" }, { "docid": "7243fce3ad35470e6540f4a4b883098d", "score": "0.5072613", "text": "private String encuentraRoca() {\n\t\treturn null;\n\t\t\n\t\t//if(gema>0) posicion roca para jugador\n\t\t\n\t\t//else no puede colocarse ahi\n\t}", "title": "" }, { "docid": "6d71a63bebe93c0a9c4c0be8af07dc11", "score": "0.5072339", "text": "@Test\n public void faarFalseDersomTypeIdrettPaaArrangementIkkeErFyltUt() {\n navnPaaArrangement = \"Løp\";\n datoPaaArrangement = \"2020-10-10\";\n typeIdrettPaaArrangement = null;\n assertFalse(leggTilArrangementController.sjekkOmAlleInputErFyltUt(navnPaaArrangement,datoPaaArrangement,typeIdrettPaaArrangement));\n }", "title": "" }, { "docid": "528c37377a4685fb29922993f5294f6f", "score": "0.5067901", "text": "public void wydatkiNaSupplies(){\n }", "title": "" }, { "docid": "fb18a369325e95116cac3961c1e68a95", "score": "0.5065682", "text": "@Override\r\n\tpublic String describe() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "8b211ef97c67d964e7f1aace6aaee3c9", "score": "0.5065067", "text": "public String getOnblur();", "title": "" }, { "docid": "af1dd24d1cf4147f42a0d76c502e251d", "score": "0.5060994", "text": "public void displaydetails(){\n super.display();//displays the display method of the developer class\n System.out.println(\"The developer has appointed at: \"+getappointedDate());\n System.out.println(\"The name of the developer name is: \"+super.getDeveloperName());\n System.out.println(\"Evaluation period: \"+getevaluationPeriod());\n System.out.println(\"Terminates in: \"+getterminationDate());\n System.out.println(\"The salary of the developer is: \"+getsalary());\n System.out.println(\"Specialization of developer: \"+getspecialization());\n System.out.println(\"The developer is appointed by : \"+getappointedBy());\n }", "title": "" }, { "docid": "18aad45fa3156c5617672d34ce3a3d66", "score": "0.5057007", "text": "public void mo1298d() {\n }", "title": "" }, { "docid": "5fae5989a12ca5c61160a238ea144e28", "score": "0.5056414", "text": "public abstract String getDocumentation();", "title": "" }, { "docid": "faca4a2dbd10edd927f4a7194ac47859", "score": "0.5051395", "text": "private static void printGuide(){\n System.out.println(\"Correct args: [int: year] [int: month]\");\n }", "title": "" }, { "docid": "0be874107208367dcd9699eca6918991", "score": "0.5045851", "text": "@Override\r\n\tpublic String takeoff() {\n\t\treturn \"El avion despegara del Aeropuerto el dorado\";\r\n\t}", "title": "" }, { "docid": "4dd0ba9c04df4101440124910afc08a6", "score": "0.504526", "text": "public final void mo17895c() {\n }", "title": "" }, { "docid": "42545b6e04bab46b40f65bc04f71e6af", "score": "0.50427294", "text": "private static void drukaf()\n\t{\n\t\tint weekdag = 1;\n\t\tfor(int dag=1; dag<29; dag++)\n\t\t{\n\t\t\tif (weekdag == 1)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"zondag\");\n\t\t\t}\n\t\t\tif (weekdag == 2)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"maandag\");\n\t\t\t}\t\n\t\t\tif (weekdag == 3)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"dinsdag\");\n\t\t\t}\n\t\t\tif (weekdag == 4)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"woensdag\");\n\t\t\t}\n\t\t\tif (weekdag == 5)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"donderdag\");\n\t\t\t}\n\t\t\tif (weekdag == 6)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"vrijdag\");\n\t\t\t}\n\t\t\tif (weekdag == 7)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"zaterdag\");\n\t\t\t}\n\n\t\t\tweekdag++;\n\t\t\tif(weekdag > 7)\n\t\t\t{\n\t\t\t\tweekdag = 1;\n\t\t\t}\n\n\t\t\tSystem.out.print(\" \" + dag + \"februari 2009\\n\");\n\t\t}\n\t}", "title": "" }, { "docid": "08fccf4246d973a5e922d4978ca3dda4", "score": "0.5041724", "text": "String getShortDesc();", "title": "" }, { "docid": "666fd9452166ad52524ddfa362b4a78e", "score": "0.50379604", "text": "@Override\n\t\t\tpublic void sabahAntrenman() {\n\n\t\t\t}", "title": "" }, { "docid": "cd9a667193f057304210ef74b78904b0", "score": "0.50368077", "text": "@Test\n\t@DisplayName(\"Print author's name\")\n\tvoid printAuthorsName_ShouldPrintRomanKuznetcov_WhenCalled() {\n\t}", "title": "" }, { "docid": "8a88beb937ee62121ef86bef480d7c13", "score": "0.50359344", "text": "protected String getShortTitle() throws Exception {\n\t\treturn getDom4jDoc().valueOf(\"/*[local-name()='collectionRecord']/*[local-name()='general']/*[local-name()='shortTitle']\");\n\t}", "title": "" }, { "docid": "e922eaf38de5127d33a40b8e1e2af949", "score": "0.5035426", "text": "@Override\r\n\tpublic void printDescription() {\n\r\n\t}", "title": "" }, { "docid": "d307b2084f2dca6818f07aa7e8b4844c", "score": "0.5033761", "text": "@Test\n public void evanBetterSkiier() {\n \t\tassertEquals(evan, evan.betterSkiier(jon));\n }", "title": "" }, { "docid": "c4a98f7cdc44483b31cc3abbb953a5e2", "score": "0.50298744", "text": "@Override\n public String toString() {\n return name + \", \" + major + \" \" + year;\n }", "title": "" }, { "docid": "cdaaa6af27ec15a11b312197a5484f30", "score": "0.5026311", "text": "public void mo8543a() {\n }", "title": "" }, { "docid": "f616444adbed18fc470ab855dfaeeae6", "score": "0.5026096", "text": "public String getDev1() {\n return dev1;\n }", "title": "" }, { "docid": "6d88d7308b7e7e4b2d74b8cc5502a806", "score": "0.5020714", "text": "public String toString()\r\n/* 107: */ {\r\n/* 108:167 */ return getDescription();\r\n/* 109: */ }", "title": "" }, { "docid": "185e319b3a9c528351f2a2d9531c30cc", "score": "0.50177604", "text": "Olders(String imya) {\n\t\tdateOfInitialization=OffsetDateTime.now();\n\t\t//SimpleDateFormat simpleDateFormatter = new SimpleDateFormat(\"E dd.MM.yyyy 'Время создания обьекта ' hh:mm:ss a\" );\n\t\tthis.name =imya;\n\t}", "title": "" }, { "docid": "76c29b363db02e1e62990bc91b86ab62", "score": "0.5011255", "text": "@Override\n\tpublic String calismak() {\n\t\treturn \"emekli oldugu icin calismaz\";\n\t}", "title": "" }, { "docid": "f55bea4b63254997f52d06a8fdfdc3fa", "score": "0.5008599", "text": "public int getIdOrganizacion()\r\n/* 87: */ {\r\n/* 88:157 */ return this.idOrganizacion;\r\n/* 89: */ }", "title": "" } ]
517d27a7449731a31e5a5f644e44a120
Check which data organization view will be returned.
[ { "docid": "352ca5067f6817c13867b998b84921d5", "score": "0.0", "text": "@Override\n public Response prepareStream(DigitalObject object) throws IOException {\n List<String> views = DataOrganizerFactory.getInstance().getDataOrganizer().getViews(object.getDigitalObjectId());\n //View 'public' is default result, check if this view exists.\n String viewName = Constants.PUBLIC_VIEW;\n\n if (views.contains(viewName)) {\n LOGGER.info(\"View 'public' found for object with id '{}'.\", object);\n } else {\n LOGGER.info(\"No view 'public' found for object with id '{}'. Using view 'default'.\", object);\n viewName = Constants.DEFAULT_VIEW;\n }\n\n try {\n LOGGER.debug(\"Obtaining root node for view '{}'\", viewName);\n ElementPath p = new ElementPath(\"/\");\n final IDataOrganizationNode node = p.getNodeForPath(object.getDigitalObjectId(), viewName);\n\n LOGGER.debug(\"Root node obtained. Establishing piped streams.\");\n PipedInputStream in = new PipedInputStream();\n final PipedOutputStream out = new PipedOutputStream(in);\n LOGGER.debug(\"Starting streaming thread.\");\n new Thread(new Runnable() {\n @Override\n public void run() {\n try {\n LOGGER.debug(\"Start zipping operation to piped output stream.\");\n DataOrganizationUtils.zip((ICollectionNode) node, out);\n LOGGER.debug(\"Zipping operation finshed.\");\n } catch (IOException ex) {\n LOGGER.error(\"Failed to zip node content to output stream.\", ex);\n } finally {\n if (out != null) {\n try {\n out.flush();\n out.close();\n } catch (IOException ex) {\n //ignore\n }\n }\n }\n }\n }\n ).start();\n String resultName = object.getDigitalObjectIdentifier() + \".zip\";\n LOGGER.debug(\"Returning response file named '{}' in stream linked to piped zip stream.\", resultName);\n return Response.ok(in, MediaType.APPLICATION_OCTET_STREAM).header(\"Content-Disposition\",\n \"attachment; filename=\" + resultName).build();\n } catch (EntityNotFoundException | InvalidNodeIdException ex) {\n LOGGER.error(\"Failed to load root node for Data organization view '\" + Constants.PUBLIC_VIEW + \"' of object with id '\" + object.getDigitalObjectIdentifier() + \"'.\", ex);\n return Response.status(Response.Status.NOT_FOUND).build();\n } catch (IOException ex) {\n LOGGER.error(\"Failed to perform published data download.\", ex);\n return Response.status(Response.Status.INTERNAL_SERVER_ERROR).build();\n }\n\n }", "title": "" } ]
[ { "docid": "02ed30b5adee85031692993ef32f2e97", "score": "0.6635927", "text": "public boolean hasOrganizations();", "title": "" }, { "docid": "d768fbccca1512f3972d1b00d7cdd506", "score": "0.60123354", "text": "public boolean getOrganization(){\r\n return localOrganization;\r\n }", "title": "" }, { "docid": "d768fbccca1512f3972d1b00d7cdd506", "score": "0.60123354", "text": "public boolean getOrganization(){\r\n return localOrganization;\r\n }", "title": "" }, { "docid": "8f922eaec9ff14ccebefdec79dea140e", "score": "0.5718379", "text": "public int \nReturnFromAdminSubregistrantList( View ViewToWindow )\n{\n zVIEW qOrganiz = new zVIEW( );\n int RESULT = 0;\n\n\n //:GET VIEW qOrganiz NAMED \"qOrganizLogin\"\n RESULT = GetViewByName( qOrganiz, \"qOrganizLogin\", ViewToWindow, zLEVEL_TASK );\n //:IF qOrganiz != 0 AND qOrganiz.Organization.LoginName = \"Admin\"\n if ( qOrganiz != null && CompareAttributeToString( qOrganiz, \"Organization\", \"LoginName\", \"Admin\" ) == 0 )\n { \n //:SetWindowActionBehavior( ViewToWindow, zWAB_StartTopWindow,\n //: \"wStartUp\", \"AdminListPrimaryRegistrants\" )\n m_ZDRVROPR.SetWindowActionBehavior( ViewToWindow, zWAB_StartTopWindow, \"wStartUp\", \"AdminListPrimaryRegistrants\" );\n //:RETURN 1\n if(8==8)return( 1 );\n } \n\n //:END\n return( 0 );\n// END\n}", "title": "" }, { "docid": "20f0138487fbc461448f0bb959e90c26", "score": "0.5635109", "text": "ResponseView getOrganizations(@RequestBody OrgInView orgInView);", "title": "" }, { "docid": "66c9c6088101ba9b35a126eed4d68d63", "score": "0.56335706", "text": "public int \nReturnFromAdminPrimaryRegistrant( View ViewToWindow )\n{\n zVIEW qOrganiz = new zVIEW( );\n int RESULT = 0;\n\n\n //:GET VIEW qOrganiz NAMED \"qOrganizLogin\"\n RESULT = GetViewByName( qOrganiz, \"qOrganizLogin\", ViewToWindow, zLEVEL_TASK );\n //:IF qOrganiz != 0 AND qOrganiz.Organization.LoginName = \"Admin\"\n if ( qOrganiz != null && CompareAttributeToString( qOrganiz, \"Organization\", \"LoginName\", \"Admin\" ) == 0 )\n { \n //:SetWindowActionBehavior( ViewToWindow, zWAB_StartTopWindow,\n //: \"wStartUp\", \"AdminListPrimaryRegistrants\" )\n m_ZDRVROPR.SetWindowActionBehavior( ViewToWindow, zWAB_StartTopWindow, \"wStartUp\", \"AdminListPrimaryRegistrants\" );\n //:RETURN 1\n if(8==8)return( 1 );\n } \n\n //:END\n return( 0 );\n// END\n}", "title": "" }, { "docid": "62622f25f1d56314b32c34472d571fcc", "score": "0.5601551", "text": "@Override\n\tpublic String getOrganization() {\n\t\treturn model.getOrganization();\n\t}", "title": "" }, { "docid": "7e90ff31ec680e392c6393d50e8cb08f", "score": "0.5565185", "text": "ResponseView getOrg(@PathVariable(\"id\") long id);", "title": "" }, { "docid": "289b5e59daf9d4e7076cd34570ca226a", "score": "0.5554815", "text": "Organization organization();", "title": "" }, { "docid": "1328c7ed7d1ecfc5d7cd0f1e8d0cf788", "score": "0.5537778", "text": "protected String determineLogicalView(PortletRequest request) throws PortletException\n { \n String view = null;\n PortletSession session = request.getPortletSession();\n if (request.getPortletMode().equals(PortletMode.VIEW))\n {\n view = request.getParameter(FrameworkConstants.VIEW_VIEW_MODE);\n if (view == null)\n {\n view = (String)session.getAttribute(FrameworkConstants.VIEW_VIEW_MODE);\n //view = request.getParameter(FrameworkConstants.VIEW_VIEW_MODE);\n if (view == null)\n {\n view = this.getDefaultViewPage();\n }\n }\n }\n else if (request.getPortletMode().equals(PortletMode.EDIT))\n {\n view = request.getParameter(FrameworkConstants.VIEW_EDIT_MODE);\n if (view == null)\n { \n view = (String)session.getAttribute(FrameworkConstants.VIEW_EDIT_MODE);\n //view = request.getParameter(FrameworkConstants.VIEW_EDIT_MODE);\n if (view == null)\n {\n view = this.getDefaultEditPage();\n }\n }\n }\n else if (request.getPortletMode().equals(PortletMode.HELP))\n {\n view = request.getParameter(FrameworkConstants.VIEW_HELP_MODE);\n if (view == null)\n { \n view = (String)session.getAttribute(FrameworkConstants.VIEW_HELP_MODE);\n //view = request.getParameter(FrameworkConstants.VIEW_HELP_MODE);\n if (view == null)\n {\n view = this.getDefaultHelpPage();\n }\n }\n }\n if (null == view) \n { \n throw new PortletException(\n \"Portlet error: cant find view resource for portlet: \"\n + this.getPortletName()); \n }\n return view;\n }", "title": "" }, { "docid": "78dc4bf7405be6246f62f1776e1accfa", "score": "0.5463214", "text": "@Override\n\tprotected int getLayoutId() {\n\t\treturn R.layout.item_query_test_organization_tpl;\n\t}", "title": "" }, { "docid": "4dc42634c07ea9f23f108e84113c33c3", "score": "0.5353904", "text": "public int getAD_Org_ID();", "title": "" }, { "docid": "4dc42634c07ea9f23f108e84113c33c3", "score": "0.5353904", "text": "public int getAD_Org_ID();", "title": "" }, { "docid": "4dc42634c07ea9f23f108e84113c33c3", "score": "0.5353904", "text": "public int getAD_Org_ID();", "title": "" }, { "docid": "4dc42634c07ea9f23f108e84113c33c3", "score": "0.5353904", "text": "public int getAD_Org_ID();", "title": "" }, { "docid": "4dc42634c07ea9f23f108e84113c33c3", "score": "0.5353904", "text": "public int getAD_Org_ID();", "title": "" }, { "docid": "4dc42634c07ea9f23f108e84113c33c3", "score": "0.5353904", "text": "public int getAD_Org_ID();", "title": "" }, { "docid": "4dc42634c07ea9f23f108e84113c33c3", "score": "0.5353904", "text": "public int getAD_Org_ID();", "title": "" }, { "docid": "066b099dded1d82380c07cc31caca74a", "score": "0.5333193", "text": "public String getOrganizationName();", "title": "" }, { "docid": "9b1b4058eff54cb5cf241d859e67687d", "score": "0.5319706", "text": "@RequestMapping(value = \"/manageOrganizations\", method = RequestMethod.GET)\r\n\tpublic ModelAndView getOrganizations(HttpServletRequest request,\r\n\t\t\tHttpServletResponse response) {\r\n\t\t\r\n\t\t\r\n\t\tlogger.log(IAppLogger.INFO, \"Enter: AdminController - getOrganizations\");\r\n\t\t\r\n\t\tList<OrgTreeTO> OrgTreeTOs = new ArrayList<OrgTreeTO>();\r\n\t\tList<OrgTO> organizationList = new ArrayList<OrgTO>();\r\n\t\tModelAndView modelAndView = new ModelAndView(\"admin/organizations\");\r\n\t\tString currentOrg =(String) request.getSession().getAttribute(IApplicationConstants.CURRORG);\r\n\t\tString orgJsonString;\r\n\t\tString customer = (String) request.getSession().getAttribute(IApplicationConstants.CUSTOMER);\r\n\t\tlong currCustomer = (customer == null)? 0 : Long.parseLong(customer);\r\n\t\tcom.ctb.prism.login.transferobject.UserTO loggedinUserTO = (com.ctb.prism.login.transferobject.UserTO) request.getSession().getAttribute(IApplicationConstants.LOGGEDIN_USER_DETAILS);\r\n\t\tString orgMode = (String) request.getSession().getAttribute(IApplicationConstants.ORG_MODE);\r\n\t\tMap<String,Object> paramMap = new HashMap<String,Object>(); \r\n\t\t//paramMap.put(\"loggedinUserTO\", loggedinUserTO);\r\n\t\tparamMap.put(\"loggedInCustomer\",loggedinUserTO.getCustomerId());\r\n\t\tparamMap.put(\"loggedInOrgId\",loggedinUserTO.getOrgId());\r\n\t\t\r\n\t\ttry {\r\n\t\t\tString adminYear = (String) request.getParameter(\"AdminYear\");\r\n\t\t\tif (currentOrg != null) {\r\n\t\t\t\tList<com.ctb.prism.core.transferobject.ObjectValueTO> customerProductList = adminService.getCustomerProduct(paramMap);\r\n\t\t\t\tif(adminYear == null) {\r\n\t\t\t\t\tadminYear = (String) request.getSession().getAttribute(IApplicationConstants.ADMIN_YEAR);\r\n\t\t\t\t\tif(adminYear == null) {\r\n\t\t\t\t\t\tfor(com.ctb.prism.core.transferobject.ObjectValueTO object : customerProductList) {\r\n\t\t\t\t\t\t\tadminYear = object.getValue();\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}else{\r\n\t\t\t\t\trequest.getSession().setAttribute(IApplicationConstants.ADMIN_YEAR, adminYear);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tparamMap.put(\"nodeid\", currentOrg);\r\n\t\t\t\tparamMap.put(\"currOrg\", currentOrg);\r\n\t\t\t\tparamMap.put(\"isFirstLoad\", true);\r\n\t\t\t\tparamMap.put(\"adminYear\", adminYear);\r\n\t\t\t\tparamMap.put(\"customerId\", currCustomer);\r\n\t\t\t\tparamMap.put(\"orgMode\", orgMode);\r\n\t\t\t\tif(isTree){\r\n\t\t\t\t\tOrgTreeTOs =adminService.getOrgTree(paramMap);\r\n\t\t\t\t\t//organizationList= adminService.getOrganizationList(currentOrg,adminYear);\r\n\t\t\t\t\tmodelAndView.addObject(\"organizationTreeList\", OrgTreeTOs);\r\n\t\t\t\t\tmodelAndView.addObject(\"organizationList\", organizationList);\r\n\t\t\t\t\tmodelAndView.addObject(\"treeSturcture\", \"Yes\");\r\n\t\t\t\t\torgJsonString = JsonUtil.convertToJsonAdmin(OrgTreeTOs);\r\n\t\t\t\t\tmodelAndView.addObject(\"orgName\", OrgTreeTOs.get(0).getData());\r\n\t\t\t\t\tmodelAndView.addObject(\"rootOrgId\", OrgTreeTOs.get(0).getMetadata().getParentTenantId());\r\n\t\t\t\t\tmodelAndView.addObject(\"rootOrgLevel\", OrgTreeTOs.get(0).getMetadata().getOrgLevel());\r\n\t\t\t\t\tlogger.log(IAppLogger.DEBUG, \"MANAGE ORGANIZATION TREE STRUCTURE ON LOAD...................\");\r\n\t\t\t\t\tlogger.log(IAppLogger.DEBUG, orgJsonString);\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\t\torganizationList= adminService.getOrganizationList(currentOrg, adminYear, currCustomer);\r\n\t\t\t\t\t\tmodelAndView.addObject(\"organizationList\", organizationList);\r\n\t\t\t\t\t\tmodelAndView.addObject(\"orgName\", organizationList.get(0).getTenantName());\t\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\tmodelAndView.addObject(\"adminList\", customerProductList);\r\n\t\t\t}\r\n\t\t\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\tlogger.log(IAppLogger.ERROR, e.getMessage(), e);\r\n\t\t} finally {\r\n\t\t\tlogger.log(IAppLogger.INFO,\r\n\t\t\t\t\t\"Exit: AdminController - getOrganizations\");\r\n\t\t}\r\n\t\tmodelAndView.addObject(\"PDCT_NAME\",propertyLookup.get(\"PDCT_NAME\"));\r\n\t\treturn modelAndView;\r\n\t}", "title": "" }, { "docid": "0840de332c6b02ed80dc6578b0b6b6fa", "score": "0.53092206", "text": "@Override\n public boolean hasPermission(Authentication arg0, Object arg1, Object arg2) {\n if (arg1 instanceof Organization && arg2 instanceof String) {\n Organization organization = (Organization) arg1;\n String permission = (String) arg2;\n \n List<Organization> organizations = userRepository.findOrganizationsCreatedByUser(arg0.getName());\n if (permission.equals(\"create-project\")) {\n for (Organization org : organizations) {\n if (org.getName().equals(organization.getName())) {\n return true;\n }\n }\n return false;\n }\n }\n return true;\n }", "title": "" }, { "docid": "d24039d45296cdb52e1e421f22c1b71e", "score": "0.53074086", "text": "public String getOrganization() {\n return organization;\n }", "title": "" }, { "docid": "8bd8eb92423a0c13972a2433eb7abb31", "score": "0.52540123", "text": "void showOrganisation(Organisation organisation, GroupItem item);", "title": "" }, { "docid": "ce82855060c9066baaa798b755452958", "score": "0.52529603", "text": "@Override\n\tpublic String getOrg() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "80360016e0999ccf1aa9ffad3c4062a1", "score": "0.52344954", "text": "public int getOrgIndex(){\n return this.orgIndex;\n }", "title": "" }, { "docid": "4bd6f1932146549b5cadd8cc36757550", "score": "0.51880246", "text": "public boolean viewExists(String name);", "title": "" }, { "docid": "229e4a3b087f502855d1d79d8e2dd1cf", "score": "0.5160477", "text": "public abstract String getVisibleOnUserRole();", "title": "" }, { "docid": "4e998d111fc2339b8458f95213ab0408", "score": "0.51481366", "text": "@Override\n\tpublic int chkMyView(ArticleDTO adto) throws Exception {\n\t\treturn articleDAO.chkMyView(adto);\n\t}", "title": "" }, { "docid": "146a64bd8220c5c9edb4d5e8eda2a87a", "score": "0.5145999", "text": "public boolean isView()\n {\n return Kind.View.equals(kind);\n }", "title": "" }, { "docid": "4c9f998e1ab9634e9a6e4936333ae1e2", "score": "0.5145799", "text": "public boolean viewIsIncludedInView(String sOa1, String sOa2) {\r\n\t\ttry {\r\n\t\t\t// First find the entities.\r\n\t\t\t// Get type, id, and isSubgraph for first entity.\r\n\t\t\tString sObjId = getAssocObj(sOa1);\r\n\t\t\tif (sObjId == null) {\r\n\t\t\t\tSystem.out.println(\"viewIsIncludedInView: arg 1 is not associated to an object\");\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\tAttributes attrs = ServerConfig.ctx.getAttributes(\"CN=\" + sObjId + \",\"\r\n\t\t\t\t\t+ sVirtualObjContainerDN);\r\n\t\t\tAttribute attr = attrs.get(\"pmObjClass\");\r\n\t\t\tif (attr == null || attr.size() <= 0) {\r\n\t\t\t\tSystem.out.println(\"viewIsIncludedInView: pmObjClass for arg 1 is null or empty\");\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\tString sEntType1 = classToType((String) attr.get());\r\n\t\t\tattr = attrs.get(\"pmOriginalId\");\r\n\t\t\tif (attr == null || attr.size() <= 0) {\r\n\t\t\t\tSystem.out.println(\"viewIsIncludedInView: pmOriginalId for arg 1 is null or empty\");\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\tString sEntId1 = (String) attr.get();\r\n\t\t\tattr = attrs.get(\"pmIncludesAscendants\");\r\n\t\t\tif (attr == null || attr.size() <= 0) {\r\n\t\t\t\tSystem.out.println(\"viewIsIncludedInView: pmIncludesAscendants for arg 1 is null or empty\");\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\tboolean bEntAscs1 = ((String) attr.get()).equalsIgnoreCase(\"TRUE\");\r\n\r\n\t\t\t// Get type, id, and isSubgraph for second entity.\r\n\t\t\tsObjId = getAssocObj(sOa2);\r\n\t\t\tif (sObjId == null) {\r\n\t\t\t\tSystem.out.println(\"viewIsIncludedInView: arg 2 is not associated to an object\");\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\tattrs = ServerConfig.ctx.getAttributes(\"CN=\" + sObjId + \",\"\r\n\t\t\t\t\t+ sVirtualObjContainerDN);\r\n\t\t\tattr = attrs.get(\"pmObjClass\");\r\n\t\t\tif (attr == null || attr.size() <= 0) {\r\n\t\t\t\tSystem.out.println(\"viewIsIncludedInView: pmObjClass for arg 2 is null or empty\");\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\tString sEntType2 = classToType((String) attr.get());\r\n\t\t\tattr = attrs.get(\"pmOriginalId\");\r\n\t\t\tif (attr == null || attr.size() <= 0) {\r\n\t\t\t\tSystem.out.println(\"viewIsIncludedInView: pmOriginalId for arg 2 is null or empty\");\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\tString sEntId2 = (String) attr.get();\r\n\t\t\tattr = attrs.get(\"pmIncludesAscendants\");\r\n\t\t\tif (attr == null || attr.size() <= 0) {\r\n\t\t\t\tSystem.out.println(\"viewIsIncludedInView: pmIncludesAscendants for arg 2 is null or empty\");\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\tboolean bEntAscs2 = ((String) attr.get()).equalsIgnoreCase(\"TRUE\");\r\n\r\n\t\t\tif (bEntAscs2\r\n\t\t\t\t\t&& isContained(sEntId1, sEntType1, sEntId2, sEntType2)) {\r\n\t\t\t\tSystem.out.println(\"viewIsIncludedInView(\"\r\n\t\t\t\t\t\t+ getEntityName(sOa1,PM_NODE.OATTR.value) + \", \"\r\n\t\t\t\t\t\t+ getEntityName(sOa2,PM_NODE.OATTR.value) + \") = true\");\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\tif (sEntId1.equalsIgnoreCase(sEntId2) && !bEntAscs1 && !bEntAscs2) {\r\n\t\t\t\tSystem.out.println(\"viewIsIncludedInView(\"\r\n\t\t\t\t\t\t+ getEntityName(sOa1,PM_NODE.OATTR.value) + \", \"\r\n\t\t\t\t\t\t+ getEntityName(sOa2,PM_NODE.OATTR.value) + \") = true\");\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"viewIsIncludedInView(\"\r\n\t\t\t\t\t+ getEntityName(sOa1,PM_NODE.OATTR.value) + \", \"\r\n\t\t\t\t\t+ getEntityName(sOa2,PM_NODE.OATTR.value) + \") = false\");\r\n\t\t\treturn false;\r\n\t\t} catch (Exception e) {\r\n\t\t\tif (ServerConfig.debugFlag) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "09e206ddf4ead10dac4a2e9a10258c77", "score": "0.51415366", "text": "@PreAuthorize(\"#oauth2.hasScope('write')\")\n\t@RequestMapping(value=\"/organizations\",method = RequestMethod.GET)\n public ResourceResponse<List<OrgInfo>> getOrganizations(OAuth2Authentication auth) {\n\t\tResourceResponse<List<OrgInfo>> resourceResponse = new ResourceResponse<>();\n\t\tList<OrgInfo> response = null;\n\t\tresponse = orgRegistrationBL.getOrgList();\n\t\tresourceResponse.setStatus(Constants.SUCCESS);\n\t\tresourceResponse.setResource(response);\n\t\treturn resourceResponse;\n }", "title": "" }, { "docid": "c2b98150e7603ce141cc2206f0b346aa", "score": "0.51377887", "text": "public Organization getOrganization() {\r\n return organization;\r\n }", "title": "" }, { "docid": "bdf8d5aa6925326dfee8ec6805182f7b", "score": "0.51197577", "text": "public int \nSelectListSubregistrantUsers( View ViewToWindow )\n{\n\n return( 0 );\n// END\n}", "title": "" }, { "docid": "01a7c916a793ebc22ee22d9db24694d2", "score": "0.51111835", "text": "@Override\n public OptionList listViews() throws InvalidToken, ServiceFailure,\n NotAuthorized, InvalidRequest, NotImplemented {\n return null;\n }", "title": "" }, { "docid": "c71d0835911785e0413c60e609e89a42", "score": "0.5107671", "text": "boolean isRoleViewUser();", "title": "" }, { "docid": "11711bcfbbb5b34fce86e785bd27a3f5", "score": "0.509711", "text": "public interface OrganizationListContract {\n interface View extends BaseView{\n void showTenantsResult(List<OrganizeInfoBean> beansList);\n void showCharacterInfo(CharactersTokenBean bean);\n }\n interface Present extends BasePresent<View>{\n\n void getOzList();\n void enterTenant(int userid,int tenantId);\n }\n\n}", "title": "" }, { "docid": "c65a1e5f68982b53d93c3f2fd7dab077", "score": "0.50903386", "text": "public Organization getOrganization(int organizationId);", "title": "" }, { "docid": "e917ebcd615564d89175fe1ed5310c32", "score": "0.50839186", "text": "public String getOrg() { \n\t\treturn this.getDepartment();\n\t}", "title": "" }, { "docid": "22e43ce38d47911e9f5915e434d52fb3", "score": "0.50823873", "text": "default boolean canYouSeeAll() {\n return canSeeAll(getApi().getYourself());\n }", "title": "" }, { "docid": "8bd04081c9d5666bba415d93b06700a9", "score": "0.5080112", "text": "public Organization getOrganization(){\r\n\t\treturn organization;\r\n\t}", "title": "" }, { "docid": "b93924a18664973d517dad0a1b2dc5a0", "score": "0.50780797", "text": "protected boolean executiveCheckViews(AuthRequest ar) throws Exception {\r\n if(checkLogin(ar)){\r\n return true;\r\n }\r\n if(!ar.isMember()){\r\n ar.req.setAttribute(\"roleName\", \"Executive\");\r\n showWarningView(ar, \"nugen.project.executive.msg\");\r\n return true;\r\n }\r\n if (ar.getCogInstance().getUserManager().getAllSuperAdmins(ar).size()==0) {\r\n showWarningView(ar, \"nugen.missingSuperAdmin\");\r\n return true;\r\n }\r\n return false;\r\n }", "title": "" }, { "docid": "837a71c66ef15097e24db50e14ba44bb", "score": "0.50653183", "text": "protected boolean isDefaultViewAvailable() {\n\t\treturn getDefaultViewNavigationStrategy() != null || getDefaultViewName() != null;\n\t}", "title": "" }, { "docid": "7d79fbbd3f541f64fba43ea8c482c870", "score": "0.50494134", "text": "public JPanel getOrganizationTypePanel() {\r\n return pnlOrganizationType;\r\n }", "title": "" }, { "docid": "59a7b17e3474fd93e65cd69e695427e2", "score": "0.5048818", "text": "public void setOrganization(boolean param){\r\n \r\n this.localOrganization=param;\r\n \r\n\r\n }", "title": "" }, { "docid": "59a7b17e3474fd93e65cd69e695427e2", "score": "0.5048818", "text": "public void setOrganization(boolean param){\r\n \r\n this.localOrganization=param;\r\n \r\n\r\n }", "title": "" }, { "docid": "3f009ca8eeaf781321402b991e35bcdd", "score": "0.50413203", "text": "@Test\n public void testAllowedGetRepositoryInfo() {\n Project p = new Project(\"allowed_grouped_repository_0_1\");\n p.setIndexed(true);\n List<RepositoryInfo> result = helper.getRepositoryInfo(p);\n Assert.assertEquals(1, result.size());\n Assert.assertEquals(\"allowed_grouped_repository_0_1_\" + 0, result.get(0).getParent());\n }", "title": "" }, { "docid": "d582187ad15ef6275677460ce579bddf", "score": "0.5026418", "text": "@RequestMapping(value = \"/searchOrgById\", method = RequestMethod.GET)\n public String showOrgById(HttpServletRequest request, Model model) {\n String searchCriteria = request.getParameter(\"searchCriteria\");\n int orgId = Integer.parseInt(searchCriteria);\n // Get all the SuperHumans from the DAO\n Organization organizationList = service.getOrganizationById(orgId);\n\n // Put the list of Contacts on the Model\n model.addAttribute(\"organizationList\", organizationList);\n\n // Return the logical name of our View component\n return \"redirect:organizations\";\n }", "title": "" }, { "docid": "368f0bc4b2bb4351f68ecfe2204d8da9", "score": "0.49919978", "text": "public String getOrganize() {\r\n\t\treturn organize;\r\n\t}", "title": "" }, { "docid": "70bae18ccb493a27f5cae442895b53b7", "score": "0.49717903", "text": "public interface DormitorySelectLevelView extends BaseView {\n void getDormitoryOrClassSuccess(List<DormitoryOrClassSingleInfoBean> domitoryOrClassInfoBeanList);\n\n void getDormitoryOrClassFailed();\n}", "title": "" }, { "docid": "fb1012225cc810ce89f80ef446d6c4ad", "score": "0.49717125", "text": "boolean isArchivalGroup();", "title": "" }, { "docid": "23d061d3323274dae468f52801fc76f3", "score": "0.49522182", "text": "boolean getUserHasAccessRights();", "title": "" }, { "docid": "387f5e4fbbb99a7b1ee8e11a35374ae1", "score": "0.49472392", "text": "public Organization getHomeUnit();", "title": "" }, { "docid": "3fb7f4f4d0efb5b421ffe2ee930ebc93", "score": "0.4940608", "text": "public int getOrganizationId() {\r\n return organizationId;\r\n }", "title": "" }, { "docid": "c82bb9ba86470ee898be1771217e7226", "score": "0.49324465", "text": "protected boolean isViewAvailable(String navigationState) {\n\t\tViewProvider longestViewNameProvider = getViewProvider(navigationState);\n\t\tif (longestViewNameProvider != null) {\n\t\t\treturn longestViewNameProvider.getViewName(navigationState) != null;\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "048754d416eac14abd869000f7a3b5e9", "score": "0.4917343", "text": "boolean hasOwnershipInfo();", "title": "" }, { "docid": "1d5d10b373756693ccd92ca4690ad831", "score": "0.49096006", "text": "@Override\n public CloudOrganization getOrganization(String organizationName, boolean required) {\n CloudOrganization organization = findOrganization(organizationName);\n if (organization == null && required) {\n throw new CloudOperationException(HttpStatus.NOT_FOUND, \"Not Found\", \"Organization \" + organizationName + \" not found.\");\n }\n return organization;\n }", "title": "" }, { "docid": "03033c386585d7f171d8f891d2a631b2", "score": "0.49054134", "text": "@RequestMapping(value = { \"/organizations\" }, method = RequestMethod.GET)\n\tpublic List<OrganizationsDTO> getDivisions() {\n\t LOGGER.debug(\"start of calling organizations api\");\n\t\tList<OrganizationsDTO> orgIdNameList = userManagementService.getDivisions();\n\t\t LOGGER.debug(\"end of calling organizations api\");\n\t\treturn orgIdNameList;\n\t}", "title": "" }, { "docid": "dee2ae1b86727a6b2dee6cfba2dc4dab", "score": "0.49048683", "text": "public boolean checkViewGridOptionVisibility(BrowserType browserType, DeviceType deviceType) {\n //choose the correct ID based on version of the app\n WebElement viewGridOption = getURL().contains(\"V1\") ? viewGridOptionV1 : viewGridOptionV2;\n if(deviceType == DeviceType.LAPTOP) {\n return checkElementVisibility (\"Task 1\", \"View grid option is displayed on laptop\", viewGridOption,\n browserType, deviceType, true);\n } else {\n return checkElementVisibility (\"Task 1\", \"View grid option is not displayed on tablet/mobile\", viewGridOption,\n browserType, deviceType, false);\n }\n }", "title": "" }, { "docid": "9ece553a27e2d3ef22d430b087d19635", "score": "0.49039957", "text": "public abstract Class<?> getActiveView();", "title": "" }, { "docid": "160017c4fc31e473279c5d4edf9f7fc7", "score": "0.49036488", "text": "@ApiModelProperty(example = \"Woleet\", value = \"Organization name (O) (2.5.4.10)\")\n public String getOrganization() {\n return organization;\n }", "title": "" }, { "docid": "9953780ae4998e0320fb0ab2b1c42e65", "score": "0.4888252", "text": "public Optional<Catalog> tryFindWritableCatalogInOrg() {\n FluentIterable<Catalog> catalogs = FluentIterable.from(org.getLinks())\n .filter(ReferencePredicates.<Link> typeEquals(CATALOG)).transform(new Function<Link, Catalog>() {\n @Override\n public Catalog apply(Link in) {\n return context.getApi().getCatalogApi().get(in.getHref());\n }\n });\n\n Optional<Catalog> optionalCatalog = tryFind(catalogs, new Predicate<Catalog>() {\n\n @Override\n public boolean apply(Catalog input) {\n return Iterables.any(input.getLinks(), LinkPredicates.relEquals(Rel.ADD));\n }\n\n });\n if (optionalCatalog.isPresent()) {\n Logger.CONSOLE.info(\"found catalog: %s\", prettyCatalog.apply(optionalCatalog.get()));\n } else {\n Logger.CONSOLE.warn(\"%s doesn't own any catalogs in org %s; catalogs: %s\", context.getApi()\n .getCurrentSession().getUser(), org.getName(), Iterables.transform(catalogs, prettyCatalog));\n }\n return optionalCatalog;\n }", "title": "" }, { "docid": "45292c7205797f5a5807ed921f0fec51", "score": "0.4879963", "text": "@Override\n\tprotected boolean checkCurrentUserPermissions(\n\t\t\tfinal HttpServletRequest request) throws Exception {\n\t\tOrder order = getSelectedOrder(request);\n\t\tUser currentMerchandiser = SessionExplorer.getLoggedUser();\n\t\tif (order.getAssigne().equals(currentMerchandiser)) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\tthrow new Exception(\n\t\t\t\t\t\"You can not see order details with another assignee.\");\n\t\t}\n\t}", "title": "" }, { "docid": "008188ee54c38a42ad58d324a916f755", "score": "0.48707363", "text": "@Override\n\t\tpublic boolean organizationExists(int id, int id2) {\n\t\t\tString hql = \"FROM Organization as organization WHERE organization.oId = ?\";\n\t\t\tint count = entityManager.createQuery(hql).setParameter(1, id).getResultList().size();\n\t\t\treturn count > 0 ;\n\t\t}", "title": "" }, { "docid": "79e61b458fe931942a409c5cc790893d", "score": "0.48632574", "text": "public boolean verifyViewAuthorizationDetailsTitle()\n\t{\n\t\t\treturn utils.validateHeader(labelViewAuthorizationDetails, \"View Authorization Details\");\n\t}", "title": "" }, { "docid": "e1a2d672cf08f1e578d31af2d2b0aa48", "score": "0.48602998", "text": "public String getOrgtype() {\n return orgtype;\n }", "title": "" }, { "docid": "160834a66dd333e240334264494dc34e", "score": "0.48502365", "text": "public int updateOrganization() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "81d89b6752cdd8d1b76d3b0ed56d7cae", "score": "0.48397174", "text": "List<Organization> getAllOrganizations();", "title": "" }, { "docid": "7972c42cef955c9bdbe89ba4ff07eb94", "score": "0.48392665", "text": "public String getOrganizationsUrl() {\n\t\tPRECONDITIONS: {\n\t\t\t// none\n\t\t}\n\t\t\n\t\ttry {\n\t\t\treturn this.organizationsUrl;\n\t\t} finally {\n\t\t\tPOSTCONDITIONS: {\n\t\t\t\t// none\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "4598561197ec00a12e787e6c715fa906", "score": "0.4831291", "text": "private boolean validateOrganizationName(String organizationName){\r\n RequesterBean requesterBean = new RequesterBean();\r\n ResponderBean responderBean = new ResponderBean();\r\n requesterBean.setFunctionType(ORGANIZATION_VALIDATE);\r\n requesterBean.setDataObject(organizationName);\r\n String strOrganizationId = null;\r\n AppletServletCommunicator comm = new AppletServletCommunicator\r\n (UNIT_CONNECTION_URL, requesterBean);\r\n comm.setRequest(requesterBean);\r\n comm.send();\r\n responderBean = comm.getResponse();\r\n if(responderBean != null){\r\n if(!responderBean.isSuccessfulResponse()) {\r\n Exception exception = responderBean.getException();\r\n exception.printStackTrace();\r\n return false;\r\n }\r\n strOrganizationId = (String)responderBean.getDataObject();\r\n if(strOrganizationId == null){\r\n txtOrganization.setText(\"\");\r\n txtOrganization.requestFocusInWindow();\r\n CoeusOptionPane.showErrorDialog(\r\n coeusMessageResources.parseMessageKey(\"unitDetFrmOrg_exceptionCode.1000\"));\r\n return false;\r\n }\r\n setOrganizationId(strOrganizationId);\r\n }\r\n return true;\r\n }", "title": "" }, { "docid": "b804bd0c7af380bd5c0084757eec7c7d", "score": "0.4828003", "text": "@Test\r\n public void PrivacyTest(){\r\n\r\n try{\r\n\r\n ContractFragment fragment = new ContractFragment(new LookupItem().addFilter(new ColumnFilter(ContractFragmentTable.Columns.Name.name(), \"first fragment\")));\r\n Contract document = fragment.getVersion().getDocument();\r\n ContractVersionInstance head = document.getHeadVersion();\r\n\r\n // Setting hidden access for the document\r\n document.setAccess(AccessRight.getno() );\r\n\r\n PortalUser documentOwner = document.getOwner();\r\n PortalUser otherUser = new PortalUser(new LookupItem().addFilter(new ColumnFilter(PortalUserTable.Columns.Name.name(), \"demo\")));\r\n\r\n assertVerbose(\"Precondition, first user exists \", documentOwner.exists(), is(true));\r\n assertVerbose(\"Precondition, second user exists \", otherUser.exists(), is(true));\r\n assertVerbose(\"Precondition, Demo is not the owner \", documentOwner.getName().equals(otherUser.getName()), is(false));\r\n\r\n Project project = new Project(new LookupItem().addFilter(new ColumnFilter(ProjectTable.Columns.Name.name(), \"Demo\")));\r\n\r\n SearchManager2 originalSearchManager = new SearchManager2(project, documentOwner);\r\n SearchManager2 otherSearchManager = new SearchManager2(project, otherUser);\r\n\r\n originalSearchManager.indexFragment(fragment, head, document);\r\n\r\n // As before it should be possible to get the result back\r\n\r\n JSONArray results;\r\n\r\n results = originalSearchManager.search(\"2014-07-01\", Swedish);\r\n\r\n System.out.println(\"Found result: \" + results.toString());\r\n\r\n assertVerbose(\"Found the one and only fragment\", results.length(), is( 2 ));\r\n JSONObject theHit = results.getJSONObject( 0 );\r\n assertVerbose(\"Got the correct fragment key back\", theHit.getString(\"fragment\"), is( fragment.getKey().toString() ));\r\n\r\n // For the otherSearchManager, there should be no results back, as the user is different and should not see the document\r\n\r\n results = otherSearchManager.search(\"2014-07-01\", Swedish);\r\n\r\n System.out.println(\"Found result: \" + results.toString());\r\n\r\n assertVerbose(\"Should get zero hidden fragment back\", results.length(), is( 1 ));\r\n\r\n }catch(BackOfficeException e){\r\n\r\n assertTrue(false);\r\n }\r\n\r\n\r\n }", "title": "" }, { "docid": "1939818e612504d7d03461150d006092", "score": "0.48253462", "text": "@Override\n\tpublic long getOrgId() {\n\t\treturn _dmsPoc.getOrgId();\n\t}", "title": "" }, { "docid": "82897cdf840dc4af19c2ef2d194ef868", "score": "0.48184565", "text": "public int getViewMenu() {\n boolean flag = true;\n\n while(flag) {\n System.out.println(\"\\n**** View Options ****\");\n System.out.println(\"\\n1. View All AddressBooks\");\n System.out.println(\"2. View Specific AddressBook\");\n System.out.println(\"3. View Contacts By City Name\");\n System.out.println(\"4. View Contacts By State Name\");\n System.out.println(\"Enter Ur Option : \");\n int option = sc.nextInt();\n\n if(option > 0 && option < 5) {\n flag = false;\n return option;\n }\n }\n return 0;\n }", "title": "" }, { "docid": "25a0580e6427d9925aae5235d3cf4e7a", "score": "0.48164225", "text": "public static void findViewFor(GeneralGOEProperty editor) {\n \teditor.m_View = PropertySheetPanel.getView(editor.m_Editor);\n \tif (editor.m_View==null) System.out.println(\"Warning: Property \\\"\" + editor.m_Name\n + \"\\\" has non-displayabale editor. Skipping.\");\n }", "title": "" }, { "docid": "e50cd3655c235ca01d8dd77131d004e5", "score": "0.4814347", "text": "public String getOrganizationName() {\n return organizationName;\n }", "title": "" }, { "docid": "15d85d7e5d97aa37ef80b51637a2c3e6", "score": "0.4804302", "text": "@RequestMapping(value = \"/searchOrganization\", method = RequestMethod.GET)\r\n\tpublic String searchOrganization(HttpServletRequest req,\r\n\t\t\tHttpServletResponse res) {\r\n\t\tlogger.log(IAppLogger.INFO,\r\n\t\t\t\t\"Enter: AdminController - searchOrganization\");\r\n\t\ttry {\r\n\t\t\tString custProdId = (String) req.getParameter(\"AdminYear\");\r\n\t\t\tString customer = (String) req.getSession().getAttribute(IApplicationConstants.CUSTOMER);\r\n\t\t\tlong currCustomer = (customer == null)? 0 : Long.parseLong(customer);\r\n\t\t\tString orgMode = (String) req.getSession().getAttribute(IApplicationConstants.ORG_MODE);\r\n\t\t\tString selectedOrg = (String) req.getParameter(\"selectedOrg\");\r\n\t\t\tMap<String,Object> paramMap = new HashMap<String,Object>(); \r\n\t\t\t\r\n\t\t\tList<OrgTO> orgs = null;\r\n\t\t\t\r\n\t\t\tif (selectedOrg != null && !selectedOrg.equals(\"unspecified\")) {\r\n\t\t\t\tparamMap.put(\"orgName\", req.getParameter(\"searchString\"));\r\n\t\t\t\tparamMap.put(\"tenantId\",selectedOrg);\r\n\t\t\t\tparamMap.put(\"custProdId\",custProdId);\r\n\t\t\t\tparamMap.put(\"customerId\",currCustomer);\r\n\t\t\t\tparamMap.put(\"orgMode\",orgMode);\r\n\t\t\t\t\r\n\t\t\t\torgs = adminService.searchOrganization(paramMap);\r\n\t\t\t} else {\r\n\t\t\t\tlogger.log(IAppLogger.INFO, \"No Org selected\");\r\n\t\t\t}\r\n\t\t\tif (orgs != null) {\r\n\t\t\t\tString jsonString = JsonUtil.convertToJsonAdmin(orgs);\r\n\r\n\t\t\t\tres.setContentType(\"application/json\");\r\n\t\t\t\tres.getWriter().write(jsonString);\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tlogger.log(IAppLogger.ERROR, e.getMessage(), e);\r\n\t\t} finally {\r\n\t\t\tlogger.log(IAppLogger.INFO,\r\n\t\t\t\t\t\"Exit: AdminController - searchOrganization\");\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "871601aaf17a47acc6aa5634122a580e", "score": "0.48035714", "text": "private boolean validateViewPermissions(final User targetUser) {\n if (targetUser.getRole() == User.CLINIC_ROLE_ID) {\n return true;\n }\n\n //Admin's are private regardless\n if (targetUser.getRole() == User.ADMIN_ROLE_ID) {\n return false;\n }\n\n //Here on is no longer public domain\n User user = getLoggedUser();\n\n if (user == null) {\n return false;\n }\n\n //Medic's are public for logged users\n if(targetUser.getRole() == User.MEDIC_ROLE_ID) {\n return true;\n }\n\n //Patient's are available for verified medic's and clinic's and for the same patients, unavailable for the rest\n //If it's the owner or an admin\n if(user.getEmail().equals(targetUser.getEmail()) || user.getRole() == User.ADMIN_ROLE_ID) {\n return true;\n }\n\n //If it's a medic\n if(user.getRole() == User.MEDIC_ROLE_ID) {\n Optional<Medic> maybeMedic = medicService.findByUserId(user.getId());\n\n return maybeMedic.isPresent() && maybeMedic.get().isVerified();\n }\n\n //If it's a clinic\n if(user.getRole() == User.CLINIC_ROLE_ID) {\n Optional<Clinic> maybeClinic = clinicService.findByUserId(user.getId());\n\n return maybeClinic.isPresent() && maybeClinic.get().isVerified();\n }\n\n //For the rest, unavailable\n return false;\n }", "title": "" }, { "docid": "cce22feb2ce11b2247e0fc3d5660149e", "score": "0.4802187", "text": "@Override\r\n\tpublic IOrganization manageOrganization() {\n\t\treturn new Organization(browser);\r\n\t}", "title": "" }, { "docid": "a999e53d5abf7674233f03cd2b151dc9", "score": "0.48011005", "text": "public final boolean isDomainViewEmpty() {\r\n\t\tsynchronized (domainViewList) {\r\n\t\t\treturn domainViewList.isEmpty();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "cfdf5fe9be6e7b3d3faa7afecf3005ff", "score": "0.47991377", "text": "@GetMapping(\"/{orgId}\")\n public ResponseEntity<Organization> getOrganization(@PathVariable Long orgId){\n Optional<Organization> org = orgRepo.findById(orgId);\n if (org.isPresent()) {\n return new ResponseEntity<Organization>(org.get(), HttpStatus.OK);\n }\n else{\n return new ResponseEntity<>(null, HttpStatus.NOT_FOUND);\n }\n }", "title": "" }, { "docid": "be8bda430fc7f2fade627dfa95109055", "score": "0.4798801", "text": "boolean hasViewFilter();", "title": "" }, { "docid": "448705940de3b5a1c188b3f40364e1fa", "score": "0.4796803", "text": "Org getOrg(int orgId);", "title": "" }, { "docid": "ab65624fc29927a7eafe17e20ee30ef5", "score": "0.47928917", "text": "@RequestMapping(value = \"/tenantHierarchy\", method = RequestMethod.GET)\r\n\tpublic @ResponseBody\r\n\tString getTenantHierarchy(HttpServletRequest request,\r\n\t\t\tHttpServletResponse response) throws Exception {\r\n\t\t\r\n\t\tList<OrgTO> OrgTOs = new ArrayList<OrgTO>();\r\n\t\tList<OrgTreeTO> OrgTreeTOs = new ArrayList<OrgTreeTO>();\r\n\t\tString orgJsonString;\r\n\t\tString currentOrg = (String) request.getSession().getAttribute(\r\n\t\t\t\tIApplicationConstants.CURRORG);\r\n\t\tString customer = (String) request.getSession().getAttribute(IApplicationConstants.CUSTOMER);\r\n\t\tlong currCustomer = (customer == null)? 0 : Long.parseLong(customer);\r\n\t\tString orgMode = (String) request.getSession().getAttribute(IApplicationConstants.ORG_MODE);\r\n\t\t\r\n\t\ttry {\r\n\t\t\tlogger.log(IAppLogger.INFO,\r\n\t\t\t\t\t\"Enter: AdminController - tenantHierarchy\");\r\n\t\t\tString nodeid = (String) request.getParameter(\"tenantId\");\r\n\t\t\tString adminYear = (String) request.getParameter(\"AdminYear\");\r\n\t\t\t\r\n\t\t\tMap<String,Object> paramMap = new HashMap<String,Object>(); \r\n\t\t\tparamMap.put(\"nodeid\", nodeid.equals(\"0_\") ? \"0_1\" : nodeid);\r\n\t\t\tparamMap.put(\"currOrg\", currentOrg);\r\n\t\t\tparamMap.put(\"isFirstLoad\", false);\r\n\t\t\tparamMap.put(\"adminYear\", adminYear);\r\n\t\t\tparamMap.put(\"customerId\", currCustomer);\r\n\t\t\tparamMap.put(\"orgMode\", orgMode);\r\n\t\t\t\r\n\t\t\tif(isTree)\r\n\t\t\t{\r\n\t\t\t\tif (nodeid != null) {\r\n\t\t\t\t\tOrgTreeTOs = adminService.getOrganizationTree(paramMap);\r\n\t\t\t\t\t/*for (OrgTreeTO to : OrgTreeTOs) {\r\n\t\t\t\t\t\tString orgNodeLevel = to.getOrgNodeLevel();\r\n\t\t\t\t\t\tString organizationMode = to.getOrgMode();\r\n\t\t\t\t\t\tif (orgNodeLevel.equals(\"2\")) {\r\n\t\t\t\t\t\t\trequest.getSession().setAttribute(IApplicationConstants.ORG_MODE, organizationMode);\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\t orgJsonString = JsonUtil.convertToJsonAdmin(OrgTreeTOs);\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tif (nodeid != null) {\r\n\t\t\t\t\tOrgTOs = adminService.getOrganizationDetailsOnClick(paramMap);\r\n\t\t\t\t}\r\n\t\t\t\t orgJsonString = JsonUtil.convertToJsonAdmin(OrgTOs);\r\n\t\t\t}\r\n\t\t\t\r\n\r\n\t\t\t\r\n\t\t\tlogger.log(IAppLogger.DEBUG, \"TREE STURCTURE.................\");\r\n\t\t\tlogger.log(IAppLogger.DEBUG, orgJsonString);\r\n\t\t\tresponse.setContentType(\"application/json\");\r\n\t\t\tresponse.getWriter().write(orgJsonString);\r\n\t\t} catch (Exception exception) {\r\n\t\t\tlogger.log(IAppLogger.ERROR, exception.getMessage(), exception);\r\n\t\t} finally {\r\n\t\t\tlogger.log(IAppLogger.INFO,\r\n\t\t\t\t\t\"Exit: AdminController - tenantHierarchy\");\r\n\t\t}\r\n\r\n\t\treturn null;\r\n\r\n\t}", "title": "" }, { "docid": "9dbca96aee7c0e03ee54304d85e2cd35", "score": "0.4788668", "text": "public int \nSelectSubregistrantForDelete( View ViewToWindow )\n{\n\n return( 0 );\n// END\n}", "title": "" }, { "docid": "2d47474b79643a607e4f8b2d4703fdd2", "score": "0.47844917", "text": "public void checkVisibility() {\n\t\tif (searchCustRun == true) {\n\t\t\tsearchCust.setVisible(true);\n\t\t}\n\t\telse if (viewRun == true) {\n\t\t\tviewCust.setVisible(true);\n\t\t} else if (addRun == true) {\n\t\t\taddCust.setVisible(true);\n\t\t} else if (mainRun == true) {\n\t\t\tmain.setVisible(true);\n\t\t} else if (newScriptRun == true) {\n\t\t\tnewScript.setVisible(true);\n\t\t} else if (scriptHistoryRun == true) {\n\t\t\tscriptHistory.setVisible(true);\n\t\t} else if (invRun == true) {\n\t\t\tinventory.setVisible(true);\n\t\t}\n\t}", "title": "" }, { "docid": "01509faaf2c9497ddf773290db2f39ed", "score": "0.4776668", "text": "public Reference managingOrganization() {\n return getObject(Reference.class, FhirPropertyNames.PROPERTY_MANAGING_ORGANIZATION);\n }", "title": "" }, { "docid": "25cb4c34fe17b69c3c66e3803e81ae09", "score": "0.47680408", "text": "public boolean hasViews() {\n \t\treturn !findViews().isEmpty();\n \t}", "title": "" }, { "docid": "b6f66b582c7c0f7b8f5b1dedb370ee7d", "score": "0.47648442", "text": "public int \nSelectListSubregistrantProducts( View ViewToWindow )\n{\n\n return( 0 );\n// END\n}", "title": "" }, { "docid": "adb0324697ad15c77580aa86f8b4130f", "score": "0.475502", "text": "boolean isNavigationAccessOpen();", "title": "" }, { "docid": "524acbc18c0f3c3898424ed8efe98a05", "score": "0.47526348", "text": "@java.lang.Override\n public boolean hasNearbyUsers() {\n return kindCase_ == 14;\n }", "title": "" }, { "docid": "1b233fc8203ceef17b519fc34c39fce6", "score": "0.47517216", "text": "abstract public boolean isMainView();", "title": "" }, { "docid": "6efbc0fbd8b0bb767cd19b104ba0988b", "score": "0.47481143", "text": "boolean hasAccessConfig();", "title": "" }, { "docid": "28a49fed172a8e5e1f1a583c9344f6bc", "score": "0.47450075", "text": "public static boolean jsFunction_isMultipleTenantsAvailable() {\n int tenantsDomainSize;\n Object cacheObj = Caching.getCacheManager(APIConstants.API_MANAGER_CACHE_MANAGER).\n getCache(APIConstants.APIPROVIDER_HOSTCACHE).get(APIConstants.TENANTCOUNT_CACHEKEY);\n //if tenantDomainSize is not in the cache, Then the cache object is null\n if (cacheObj == null) {\n tenantsDomainSize = 0;\n } else {\n tenantsDomainSize = Integer.parseInt(cacheObj.toString());\n }\n //if there only super tenant in the system, tenantDomainSize is 1\n if (tenantsDomainSize < 2) {\n try {\n Set<String> tenantDomains = APIUtil.getActiveTenantDomains();\n //if there is more than than one tenant\n if (tenantDomains.size() > 1) {\n Caching.getCacheManager(APIConstants.API_MANAGER_CACHE_MANAGER).\n getCache(APIConstants.APIPROVIDER_HOSTCACHE).\n put(APIConstants.TENANTCOUNT_CACHEKEY, String.valueOf(tenantDomains.size()));\n return true;\n } else {\n return false;\n }\n } catch (UserStoreException e) {\n /*If there are errors in getting active tenant domains from user store,\n Minimum privileges are allocated to the user\n */\n log.error(\"Errors in getting active tenants form UserStore \" + e.getMessage(), e);\n return false;\n }\n } else {\n return true;\n }\n }", "title": "" }, { "docid": "a1ea4bc743f4cd27a03277f11c9b3055", "score": "0.47370172", "text": "type.DbXref[] getOrganisms () throws type.NoResult;", "title": "" }, { "docid": "4a2bc815a80eecdbd08d1a61887200e7", "score": "0.47345898", "text": "@java.lang.Override\n public boolean hasNearbyUsers() {\n return kindCase_ == 14;\n }", "title": "" }, { "docid": "85b813243d6ef5e1bf79db15b38501c4", "score": "0.47336766", "text": "@Nullable default String getOrganizationURL() {\n return null;\n }", "title": "" }, { "docid": "a1be12eed49f7f9cb913fecf4956deb4", "score": "0.47323063", "text": "public String getOrgname() {\n return orgname;\n }", "title": "" }, { "docid": "8bb0277fc344233906ce172be4e49714", "score": "0.47311616", "text": "@Override\n public boolean canEditDocumentOverview(Document document, Person user) {\n return canEdit(document, user);\n }", "title": "" }, { "docid": "e947cf239514f3c924fbdc678e2f7907", "score": "0.47255668", "text": "@Override\n\tpublic void defaultSalesRepAccess() {\n\t\tverifyElement(By\n\t\t\t\t.xpath(\"//div[@id='PEGA_GRID1']//table[@class='gridTable ']//td[@headers='a2']//img[@alt='Checked']\"));\n\t\tverifyElement(By\n\t\t\t\t.xpath(\"//div[@id='PEGA_GRID1']//table[@class='gridTable ']//td[@headers='a6']//img[@alt='Checked']\"));\n\n\t\t// Verify for Account Read Permission at territory and Child level\n\t\tverifyElement(By\n\t\t\t\t.xpath(\"//div[@id='PEGA_GRID2']//table[@class='gridTable ']//td[@headers='a2']//img[@alt='Checked']\"));\n\t\tverifyElement(By\n\t\t\t\t.xpath(\"//div[@id='PEGA_GRID2']//table[@class='gridTable ']//td[@headers='a6']//img[@alt='Checked']\"));\n\n\t\t// Verify for Contact Read, update and Create permissions at territory and child\n\t\t// levels\n\t\tverifyElement(By\n\t\t\t\t.xpath(\"//div[@id='PEGA_GRID3']//table[@class='gridTable ']//td[@headers='a2']//img[@alt='Checked']\"));\n\t\tverifyElement(By\n\t\t\t\t.xpath(\"//div[@id='PEGA_GRID3']//table[@class='gridTable ']//td[@headers='a3']//img[@alt='Checked']\"));\n\t\tverifyElement(By\n\t\t\t\t.xpath(\"//div[@id='PEGA_GRID3']//table[@class='gridTable ']//td[@headers='a4']//img[@alt='Checked']\"));\n\n\t\tverifyElement(By\n\t\t\t\t.xpath(\"//div[@id='PEGA_GRID3']//table[@class='gridTable ']//td[@headers='a6']//img[@alt='Checked']\"));\n\t\tverifyElement(By\n\t\t\t\t.xpath(\"//div[@id='PEGA_GRID3']//table[@class='gridTable ']//td[@headers='a7']//img[@alt='Checked']\"));\n\t\tverifyElement(By\n\t\t\t\t.xpath(\"//div[@id='PEGA_GRID3']//table[@class='gridTable ']//td[@headers='a8']//img[@alt='Checked']\"));\n\n\t\t// Verify for Lead Read, update and Create permissions at territory and child\n\t\t// levels\n\t\tverifyElement(By\n\t\t\t\t.xpath(\"//div[@id='PEGA_GRID4']//table[@class='gridTable ']//td[@headers='a2']//img[@alt='Checked']\"));\n\t\tverifyElement(By\n\t\t\t\t.xpath(\"//div[@id='PEGA_GRID4']//table[@class='gridTable ']//td[@headers='a3']//img[@alt='Checked']\"));\n\t\tverifyElement(By\n\t\t\t\t.xpath(\"//div[@id='PEGA_GRID4']//table[@class='gridTable ']//td[@headers='a4']//img[@alt='Checked']\"));\n\n\t\tverifyElement(By\n\t\t\t\t.xpath(\"//div[@id='PEGA_GRID4']//table[@class='gridTable ']//td[@headers='a6']//img[@alt='Checked']\"));\n\t\tverifyElement(By\n\t\t\t\t.xpath(\"//div[@id='PEGA_GRID4']//table[@class='gridTable ']//td[@headers='a7']//img[@alt='Checked']\"));\n\t\tverifyElement(By\n\t\t\t\t.xpath(\"//div[@id='PEGA_GRID4']//table[@class='gridTable ']//td[@headers='a8']//img[@alt='Checked']\"));\n\n\t\t// Verify for Opportunity Read, update and Create permissions at territory and\n\t\t// child levels\n\t\tverifyElement(By\n\t\t\t\t.xpath(\"//div[@id='PEGA_GRID5']//table[@class='gridTable ']//td[@headers='a2']//img[@alt='Checked']\"));\n\t\tverifyElement(By\n\t\t\t\t.xpath(\"//div[@id='PEGA_GRID5']//table[@class='gridTable ']//td[@headers='a3']//img[@alt='Checked']\"));\n\t\tverifyElement(By\n\t\t\t\t.xpath(\"//div[@id='PEGA_GRID5']//table[@class='gridTable ']//td[@headers='a4']//img[@alt='Checked']\"));\n\n\t\tverifyElement(By\n\t\t\t\t.xpath(\"//div[@id='PEGA_GRID5']//table[@class='gridTable ']//td[@headers='a6']//img[@alt='Checked']\"));\n\t\tverifyElement(By\n\t\t\t\t.xpath(\"//div[@id='PEGA_GRID5']//table[@class='gridTable ']//td[@headers='a7']//img[@alt='Checked']\"));\n\t\tverifyElement(By\n\t\t\t\t.xpath(\"//div[@id='PEGA_GRID5']//table[@class='gridTable ']//td[@headers='a8']//img[@alt='Checked']\"));\n\n\t\t// Verify for Task Read, update and Create permissions at territory and child\n\t\t// levels\n\t\tverifyElement(By\n\t\t\t\t.xpath(\"//div[@id='PEGA_GRID6']//table[@class='gridTable ']//td[@headers='a2']//img[@alt='Checked']\"));\n\t\tverifyElement(By\n\t\t\t\t.xpath(\"//div[@id='PEGA_GRID6']//table[@class='gridTable ']//td[@headers='a3']//img[@alt='Checked']\"));\n\t\tverifyElement(By\n\t\t\t\t.xpath(\"//div[@id='PEGA_GRID6']//table[@class='gridTable ']//td[@headers='a4']//img[@alt='Checked']\"));\n\n\t\tverifyElement(By\n\t\t\t\t.xpath(\"//div[@id='PEGA_GRID6']//table[@class='gridTable ']//td[@headers='a6']//img[@alt='Checked']\"));\n\t\tverifyElement(By\n\t\t\t\t.xpath(\"//div[@id='PEGA_GRID6']//table[@class='gridTable ']//td[@headers='a7']//img[@alt='Checked']\"));\n\t\tverifyElement(By\n\t\t\t\t.xpath(\"//div[@id='PEGA_GRID6']//table[@class='gridTable ']//td[@headers='a8']//img[@alt='Checked']\"));\n\n\t}", "title": "" }, { "docid": "a34b159af7a44077d8742eda34dab1be", "score": "0.47211397", "text": "private void doCheckRights() {\r\n\r\n\t\tfinal UserWorkspace workspace = getUserWorkspace();\r\n\r\n\t\t// window_PaketList.setVisible(workspace.isAllowed(\"window_PaketList\"));\r\n\t\tbutton_PaketList_PrintList.setVisible(workspace.isAllowed(\"button_PaketList_PrintList\"));\r\n\t\tbutton_PaketList_SearchTerm.setVisible(workspace.isAllowed(\"button_PaketList_SearchTerm\"));\r\n\t\tbutton_PaketList_SearchThajar.setVisible(workspace.isAllowed(\"button_PaketList_SearchThajar\"));\r\n\t\t//button_PaketList_SearchProdi.setVisible(workspace.isAllowed(\"button_PaketList_SearchProdi\"));\r\n\r\n\t\tbtnHelp.setVisible(workspace.isAllowed(\"button_PaketMain_btnHelp\"));\r\n\t\tbtnNew.setVisible(workspace.isAllowed(\"button_PaketMain_btnNew\"));\r\n\t\tbtnEdit.setVisible(workspace.isAllowed(\"button_PaketMain_btnEdit\"));\r\n\t\tbtnDelete.setVisible(workspace.isAllowed(\"button_PaketMain_btnDelete\"));\r\n\t\tbtnSave.setVisible(workspace.isAllowed(\"button_PaketMain_btnSave\"));\r\n\r\n\t}", "title": "" }, { "docid": "242d6c7745986d7c01da8bdd1b5dde74", "score": "0.47200882", "text": "public interface OrganisersInfoPresenter {\n interface View extends BaseView {\n void loadCoreTeamsRecyclerView(List<Users> data);\n\n void loadEventsTeamsRecyclerView(List<Users> data);\n\n void loadOffStageTeamsRecyclerView(List<Users> data);\n\n void loadDesignTeamsRecyclerView(List<Users> data);\n\n void showNoCoreTeamDataFound();\n\n void showNoEventsTeamDataFound();\n\n void showNoOffStageTeamDataFound();\n\n void showNoDesignTeamDataFound();\n\n void hideNoCoreTeamsDataFound();\n\n void hideNoEventsTeamsDataFound();\n\n void hideNoOffStageTeamsDataFound();\n\n void hideNoDesignTeamsDataFound();\n }\n\n void setView(View view);\n}", "title": "" }, { "docid": "bdee71faee94b03bb0294974a26b4d25", "score": "0.47145766", "text": "private static boolean isAuthorized( Demand base, AdminUser user )\n {\n DemandType type = DemandTypeHome.findByTypeId( base.getTypeId( ) );\n\n if ( type == null )\n {\n AppLogService.error( \"Demand Type missing for ID : \" + base.getTypeId( ) + \" of demand ID : \" + base.getId( ) );\n\n return false;\n }\n\n String strBusinessDomainId = String.valueOf( type.getBusinessDomainId( ) );\n\n return RBACService.isAuthorized( BusinessDomain.RESOURCE_TYPE, strBusinessDomainId, BusinessDomain.PERMISSION_VIEW_SUMMARY, user )\n || RBACService.isAuthorized( BusinessDomain.RESOURCE_TYPE, strBusinessDomainId, BusinessDomain.PERMISSION_VIEW_DETAILS, user );\n }", "title": "" } ]
758fc8f6552eba2622f0b17ba1e9c10d
when(matchingEngine.takeLiquidity(any())).thenReturn(null); eventDistributor.handleClientRegisterRequested(new ClientRegisterRequested(1)); eventDistributor.handleOrderCreated(new OrderCreated(1, 100, 200, Side.BUY)); verifyOrderRejected("An internal error occurred");
[ { "docid": "6697af7bd0e87e51bbcbb051bcb20319", "score": "0.57337606", "text": "@Test\n public void orderCreatedNullLiquidity() throws NoQuantityException {\n }", "title": "" } ]
[ { "docid": "dbe37cc2f773ab20fe20b9437a67a192", "score": "0.655866", "text": "@Test\n public void sendPotentialDemandsToNewSupplier() {\n final Supplier myNewSupplier = new Supplier();\n final List<Category> category1 = Arrays.asList(createCategory(1L));\n final List<Locality> locality1 = Arrays.asList(createLocality(1L));\n myNewSupplier.setCategories(category1);\n myNewSupplier.setLocalities(locality1);\n final Demand potentialDemand = new Demand();\n when(demandServiceMock.getDemandsIncludingParents(eq(category1), eq(locality1), any(ResultCriteria.class)))\n .thenReturn(new HashSet(Arrays.asList(potentialDemand)));\n when(suppliersSelectionMock.getPotentialSuppliers(potentialDemand))\n .thenReturn(new HashSet<PotentialSupplier>(Arrays.asList(new PotentialSupplier(myNewSupplier))));\n\n // execute\n supplierService.sendPotentialDemandsToNewSupplier(myNewSupplier);\n\n // verify\n verify(potentialDemandServiceMock).sendDemandToPotentialSupplier(\n eq(potentialDemand),\n argThat(new ArgumentMatcher<PotentialSupplier>() {\n @Override\n public boolean matches(Object argument) {\n return argument instanceof PotentialSupplier\n && myNewSupplier.equals(((PotentialSupplier) argument).getSupplier());\n }\n }));\n }", "title": "" }, { "docid": "aa070ae3090f55d82eac098a1c7ef13d", "score": "0.6546997", "text": "@Test\n public void testDistributionObjectNotFoundFails() {\n mockAllMethodsUntilDENotification();\n when(distributionEngine.notifyService(anyString(),any(Service.class), any(INotificationData.class), anyString(), any(User.class)))\n .thenReturn(ActionStatus.OBJECT_NOT_FOUND);\n Either<String, ResponseFormat> stringResponseFormatEither = callActivateServiceOnTenantWIthDefaults();\n assertTrue(stringResponseFormatEither.isRight());\n assertEquals(502, (int) stringResponseFormatEither.right().value().getStatus());\n assertEquals(\"SVC4676\", stringResponseFormatEither.right().value().getMessageId());\n }", "title": "" }, { "docid": "5b48bcd2e01cc2622e9225281f7eba6e", "score": "0.6483473", "text": "@Test\n public void testPark_givenNoAvailableParkingLot_thenCreateNoSpaceReceipt() {\n InOrderParkingStrategy inOrderParkingStrategy = new InOrderParkingStrategy();\n\n ParkingLot spyParkingLot = spy(new ParkingLot(\"Jenkin\", 10));\n List<ParkingLot> parkingLots = new ArrayList<>();\n parkingLots.add(spyParkingLot);\n\n Car car = new Car(\"Lebron\");\n Receipt expectReceipt = new Receipt();\n expectReceipt.setCarName(\"Lebron\");\n expectReceipt.setParkingLotName(NO_PARKING_LOT);\n\n when(spyParkingLot.isFull()).thenReturn(true);\n //doReturn(true).when(spyParkingLot).isFull();\n verify(spyParkingLot, times(1)).isFull();\n\n Assert.assertEquals(inOrderParkingStrategy.park(parkingLots, car), expectReceipt);\n\n }", "title": "" }, { "docid": "b46aba117b9351d7475228b9cfad60a4", "score": "0.6426981", "text": "@Test\n public void testSuccessfulOrderEntered() {\n final String csv = \"example\";\n\n final AbstractOrderRequest orderRequest = LimitOrderRequest.builder().build();\n OrderCSVParser orderCSVParser = mock(OrderCSVParser.class);\n List<AbstractOrderRequest> orderRequests = new LinkedList<>();\n orderRequests.add(orderRequest);\n given(orderCSVParser.decodeCSV(csv)).willReturn(orderRequests);\n\n TradeEngineGateway tradeEngineGateway = mock(TradeEngineGateway.class);\n given(tradeEngineGateway.enterOrder(orderRequest)).willReturn(OrderRequestResponse.success());\n\n //When: entered\n OrderCaptureService orderCaptureService = new OrderCaptureService(orderCSVParser,\n tradeEngineGateway);\n OrderRequestResponse orderRequestResponse = orderCaptureService.enterOrder(csv);\n\n //Then: it is successful\n Assert.assertEquals(\"Request is successful\", ResponseType.SUCCESS,\n orderRequestResponse.getResponseType());\n }", "title": "" }, { "docid": "21465a9b50da4cb8ee4ba6f88ab555f8", "score": "0.6345818", "text": "@Test\n public void testDistributionAuthenticationFails() {\n mockAllMethodsUntilDENotification();\n when(distributionEngine.notifyService(anyString(),any(Service.class), any(INotificationData.class), anyString(),any(User.class)))\n .thenReturn(ActionStatus.AUTHENTICATION_ERROR);\n Either<String, ResponseFormat> stringResponseFormatEither = callActivateServiceOnTenantWIthDefaults();\n assertTrue(stringResponseFormatEither.isRight());\n assertEquals(502, (int) stringResponseFormatEither.right().value().getStatus());\n assertEquals(\"SVC4676\", stringResponseFormatEither.right().value().getMessageId());\n }", "title": "" }, { "docid": "5fe8b822c7c7c0438ef0c738c453a73a", "score": "0.62995374", "text": "@Test\n public void testPark_givenThereIsMultipleParkingLotAndFirstOneIsFull_thenCreateReceiptWithUnfullParkingLot() {\n InOrderParkingStrategy inOrderParkingStrategy = new InOrderParkingStrategy();\n\n ParkingLot spyParkingLot1 = spy(new ParkingLot(\"Jenkin\", 10));\n ParkingLot spyParkingLot2 = spy(new ParkingLot(\"Keanu\", 10));\n List<ParkingLot> parkingLots = new ArrayList<>();\n parkingLots.add(spyParkingLot1);\n parkingLots.add(spyParkingLot2);\n\n Car car = new Car(\"Lebron\");\n Receipt expectReceipt = new Receipt();\n expectReceipt.setCarName(\"Lebron\");\n expectReceipt.setParkingLotName(\"Jenkin\");\n\n when(spyParkingLot1.isFull()).thenReturn(false);\n verify(spyParkingLot1, times(1)).isFull();\n when(spyParkingLot2.isFull()).thenReturn(false);\n verify(spyParkingLot2, times(1)).isFull();\n\n Assert.assertEquals(inOrderParkingStrategy.park(parkingLots, car), expectReceipt);\n\n }", "title": "" }, { "docid": "238a97996664d2914574e4fbf0bb1ec1", "score": "0.62915635", "text": "@Test\n public void testDistributionUnknownHostFails() {\n mockAllMethodsUntilDENotification();\n when(distributionEngine.notifyService(anyString(),any(Service.class), any(INotificationData.class), anyString(), any(User.class)))\n .thenReturn(ActionStatus.UNKNOWN_HOST);\n Either<String, ResponseFormat> stringResponseFormatEither = callActivateServiceOnTenantWIthDefaults();\n assertTrue(stringResponseFormatEither.isRight());\n assertEquals(502, (int) stringResponseFormatEither.right().value().getStatus());\n assertEquals(\"SVC4676\", stringResponseFormatEither.right().value().getMessageId());\n }", "title": "" }, { "docid": "2557bc38359c86f32d8482fb7b74c3db", "score": "0.6270885", "text": "@Test\n public void testPark_givenThereIsOneFullParkingLot_thenCreateReceipt() {\n InOrderParkingStrategy inOrderParkingStrategy = new InOrderParkingStrategy();\n\n ParkingLot spyFullParkingLot = spy(new ParkingLot(\"Jenkin\", 10));\n ParkingLot spyNotFullParkingLot = spy(new ParkingLot(\"Lebron\", 10));\n List<ParkingLot> parkingLots = new ArrayList<>();\n parkingLots.add(spyFullParkingLot);\n parkingLots.add(spyNotFullParkingLot);\n Car car = new Car(\"Lebron\");\n Receipt expectReceipt = new Receipt();\n expectReceipt.setCarName(\"Lebron\");\n expectReceipt.setParkingLotName(\"Lebron\");\n\n when(spyFullParkingLot.isFull()).thenReturn(true);\n when(spyNotFullParkingLot.isFull()).thenReturn(false);\n //doReturn(true).when(spyParkingLot).isFull();\n verify(spyFullParkingLot, times(1)).isFull();\n verify(spyNotFullParkingLot, times(1)).isFull();\n\n Assert.assertEquals(inOrderParkingStrategy.park(parkingLots, car), expectReceipt);\n }", "title": "" }, { "docid": "6e5cc9321e4ea3f3726cc484a8952b04", "score": "0.6169353", "text": "@Test\n public void testPark_givenCarIsNotVipAndAFullParkingLog_thenGiveNoSpaceReceipt() {\n Car car = new Car(\"A1\");\n ParkingLot parkingLot = new ParkingLot(\"park1\",0);\n List<ParkingLot> parkingLotList = new ArrayList<>();\n parkingLotList.add(parkingLot);\n VipParkingStrategy vipParkingStrategy = spy(new VipParkingStrategy());\n when(vipParkingStrategy.isAllowOverPark(car)).thenReturn(false);\n when(vipParkingStrategy.createNoSpaceReceipt(car)).thenReturn(null);\n //when\n Receipt receipt = vipParkingStrategy.park(parkingLotList, car);\n //then\n verify(vipParkingStrategy,times(1)).createNoSpaceReceipt(car);\n assertNull(receipt);\n }", "title": "" }, { "docid": "a5f6d5fa684bc71818a6c1eb5cb1a1a5", "score": "0.6159269", "text": "@Test\n public void orderCreatedClientNotRegistered() {\n }", "title": "" }, { "docid": "ab8f34280afa2bdfe4ee836dbf793778", "score": "0.6157611", "text": "@Test\n public void testOnlySubmitsFirstOrder() {\n final String csv = \"example\";\n\n OrderCSVParser orderCSVParser = mock(OrderCSVParser.class);\n List<AbstractOrderRequest> orderRequests = new LinkedList<>();\n AbstractOrderRequest firstOrderRequest = LimitOrderRequest.builder().build();\n orderRequests.add(firstOrderRequest);\n orderRequests.add(LimitOrderRequest.builder().build());\n orderRequests.add(LimitOrderRequest.builder().build());\n given(orderCSVParser.decodeCSV(csv)).willReturn(orderRequests);\n\n TradeEngineGateway tradeEngineGateway = mock(TradeEngineGateway.class);\n given(tradeEngineGateway.enterOrder(firstOrderRequest))\n .willReturn(OrderRequestResponse.success());\n\n //When: entered\n OrderCaptureService orderCaptureService = new OrderCaptureService(orderCSVParser,\n tradeEngineGateway);\n OrderRequestResponse orderRequestResponse = orderCaptureService.enterOrder(csv);\n\n //Then: it only calls submit on the first\n Assert.assertEquals(\"Request is successful\", ResponseType.SUCCESS,\n orderRequestResponse.getResponseType());\n then(tradeEngineGateway).should(times(1)).enterOrder(any());\n then(tradeEngineGateway).should().enterOrder(firstOrderRequest);\n }", "title": "" }, { "docid": "3ff783f2d0a3b01ffec81db62eab2c40", "score": "0.6121736", "text": "@When(\"^I verify the order$\")\n\tpublic void i_verify_the_order() throws Throwable {\n\t throw new PendingException();\n\t}", "title": "" }, { "docid": "7f7d8eb708a297440f98ad45b4aae5f0", "score": "0.61215854", "text": "@Test\n public void testDistributionConnectionErrorFails() {\n mockAllMethodsUntilDENotification();\n when(distributionEngine.notifyService(anyString(),any(Service.class), any(INotificationData.class), anyString(), any(User.class)))\n .thenReturn(ActionStatus.CONNNECTION_ERROR);\n Either<String, ResponseFormat> stringResponseFormatEither = callActivateServiceOnTenantWIthDefaults();\n assertTrue(stringResponseFormatEither.isRight());\n assertEquals(502, (int) stringResponseFormatEither.right().value().getStatus());\n assertEquals(\"SVC4676\", stringResponseFormatEither.right().value().getMessageId());\n }", "title": "" }, { "docid": "2086234740c2ca6e7b6421ca8bae0a65", "score": "0.60914755", "text": "@Test\n public void testPark_givenThereIsOneParkingLotWithSpace_thenCreateReceipt() {\n InOrderParkingStrategy inOrderParkingStrategy = new InOrderParkingStrategy();\n\n ParkingLot spyParkingLot1 = spy(new ParkingLot(\"Jenkin\", 10));\n ParkingLot spyParkingLot2 = spy(new ParkingLot(\"Keanu\", 10));\n List<ParkingLot> parkingLots = new ArrayList<>();\n parkingLots.add(spyParkingLot1);\n parkingLots.add(spyParkingLot2);\n\n Car car = new Car(\"Lebron\");\n Receipt expectReceipt = new Receipt();\n expectReceipt.setCarName(\"Lebron\");\n expectReceipt.setParkingLotName(\"Keanu\");\n\n when(spyParkingLot1.isFull()).thenReturn(true);\n verify(spyParkingLot1, times(1)).isFull();\n when(spyParkingLot2.isFull()).thenReturn(false);\n verify(spyParkingLot2, times(1)).isFull();\n\n Assert.assertEquals(inOrderParkingStrategy.park(parkingLots, car), expectReceipt);\n }", "title": "" }, { "docid": "68270156db381bd679329378565f8375", "score": "0.60240364", "text": "@Test\n void ShouldSendOtherEmailAllocated() {\n\n UUID currentUserUUID = UUID.fromString(\"33333333-0000-0000-0000-000000000000\");\n UUID newUserUUID = UUID.fromString(\"11111111-0000-0000-0000-000000000000\");\n\n Map<String, String> personalisation = new HashMap<>();\n personalisation.put(\"caseRef\", caseRef);\n personalisation.put(\"user\", \"name\");\n\n when(infoClient.getUser(currentUserUUID)).thenReturn(new UserDto(\"any\", \"name\", \"any\", \"notify\"));\n when(infoClient.getUser(newUserUUID)).thenReturn(new UserDto(\"any\", \"name\", \"any\", \"notify\"));\n when(requestData.userIdUUID()).thenReturn(UUID.fromString(\"22222222-0000-0000-0000-000000000000\"));\n\n notifyService.sendUserAssignChangeEmail(caseUUID, stageUUID, caseRef, currentUserUUID, newUserUUID);\n\n verify(requestData).userIdUUID();\n verify(infoClient).getUser(newUserUUID);\n verify(infoClient).getUser(currentUserUUID);\n verify(notifyClient).sendEmail(caseUUID, stageUUID, \"notify\", personalisation, NotifyType.ALLOCATE_INDIVIDUAL);\n verify(notifyClient).sendEmail(caseUUID, stageUUID, \"notify\", personalisation, NotifyType.UNALLOCATE_INDIVIDUAL);\n\n\n verifyNoMoreInteractions(infoClient);\n verifyZeroInteractions(notifyClient);\n verifyNoMoreInteractions(requestData);\n }", "title": "" }, { "docid": "d11c8af6ac667836845114a8e0a7312b", "score": "0.6008715", "text": "@Test\n void behandleSedHendelse_harPid_forventOpprettJfrOppgave() {\n OpprettJournalpostResponse response = new OpprettJournalpostResponse(JOURNALPOST_ID, new ArrayList<>(), \"ENDELIG\", null);\n when(journalpostService.opprettUtgaaendeJournalpost(any(SedHendelse.class), any(), any(), any())).thenReturn(response);\n when(personIdentifisering.identifiserPerson(anyString(), any())).thenReturn(Optional.of(\"12345\"));\n when(personFasade.hentAktoerId(anyString())).thenReturn(\"12345\");\n when(euxService.hentRinaUrl(anyString())).thenReturn(\"https://test.local\");\n when(saksrelasjonService.finnArkivsakForRinaSaksnummer(anyString())).thenReturn(Optional.empty());\n\n opprettUtgaaendeJournalpostService.behandleSedSendtHendelse(sedSendt);\n\n verify(oppgaveService).opprettUtgåendeJfrOppgave(anyString(), any(), anyString(), anyString());\n }", "title": "" }, { "docid": "43e8d3fbf2b3b9b1d993aa61d72505cc", "score": "0.6007401", "text": "@Test\n public void test_linkMerchantProduct_whenLinkMerchantAndProduct_thenSucceed() {\n // Given\n LinkMerchantProductRequest linkMerchantProductRequest = new LinkMerchantProductRequest();\n linkMerchantProductRequest.setMerchantId(1);\n linkMerchantProductRequest.setProductId(1);\n\n\n // When\n when(merchantDao.findMerchantById(1)).thenReturn(new MerchantEntity());\n when(productDao.findProductById(1)).thenReturn(new ProductEntity());\n // Then\n LinkMerchantProductResponse linkMerchantProductResponse = merchantProductService.linkMerchantProduct(linkMerchantProductRequest);\n\n assertEquals(\"OK\",linkMerchantProductResponse.getStatus());\n verify(merchantProductDao,times(1)).persistMerchantProduct(any(MerchantProductEntity.class));\n }", "title": "" }, { "docid": "f190620a2a7de52b45e261939be98cd2", "score": "0.600283", "text": "@Test\n public void PlaceBet_ShouldCallAcceptBetBetIfBetIsValid() throws NoPlayerCardException, BetNotExceptedException, NoCurrentRoundException {\n GamingMachine gamingMachine = new GamingMachine(mock(GamingMachineID.class));\n IGamblerCard gamblerCard = mock(IGamblerCard.class);\n\n ICashier cashierA = mock(ICashier.class);\n ICashier cashierB = mock(ICashier.class);\n IGame gameA = mock(IGame.class);\n IGame gameB = mock(IGame.class);\n\n when(cashierA.checkIfBetIsValid(any(IGamblerCard.class), any(Bet.class))).thenReturn(true);\n when(cashierB.checkIfBetIsValid(any(IGamblerCard.class), any(Bet.class))).thenReturn(false);\n when(cashierB.checkIfBetIsValid(any(IGamblerCard.class), any(Bet.class))).thenThrow(BetNotExceptedException.class);\n\n gamingMachine.connectCard(gamblerCard);\n gamingMachine.placeBet(ARBITRARY_AMOUNT_IN_CENTS, gameA, cashierA);\n gamingMachine.placeBet(ARBITRARY_AMOUNT_IN_CENTS, gameB, cashierB);\n\n verify(cashierA).checkIfBetIsValid(any(IGamblerCard.class), any(Bet.class));\n verify(gameA).acceptBet(any(Bet.class), any(IGamingMachine.class));\n\n verify(cashierB).checkIfBetIsValid(any(IGamblerCard.class), any(Bet.class));\n verify(gameB, never()).acceptBet(any(Bet.class), any(IGamingMachine.class));\n }", "title": "" }, { "docid": "8452b303b0f22dca73c137472945669f", "score": "0.59998053", "text": "@Test(expected = BusinessException.class)\n public void testReserve02() {\n TourInfo tour = new TourInfo(\"01\");\n tour.setTourDays(2);\n tour.setAvaRecMax(10);\n tour.setBasePrice(10000);\n tour.setAccommodation(new Accommodation());\n tour.setDeparture(new Departure());\n tour.setArrival(new Arrival());\n when(tourInfoSharedService.isOverPaymentLimit(tour)).thenReturn(true); // !!today is over limit\n tour.setTourDays(2);\n tour.setAvaRecMax(10);\n when(tourInfoSharedService.findOne(\"01\")).thenReturn(tour);\n when(tourInfoSharedService.findOneForUpdate(\"01\")).thenReturn(tour);\n when(reserveRepository.countReservedPersonSumByTourInfo(tour))\n .thenReturn(7L); // 1+2+7 <= 10\n when(sequencer.getNext()).thenReturn(\"123456\");\n\n ReserveTourInput input = new ReserveTourInput();\n input.setAdultCount(1);\n input.setChildCount(2);\n input.setTourCode(\"01\");\n input.setRemarks(\"aa\");\n\n PriceCalculateOutput priceCalculateOutput = new PriceCalculateOutput();\n priceCalculateOutput.setSumPrice(100000);\n priceCalculateOutput.setAdultCount(1);\n priceCalculateOutput.setChildCount(2);\n when(priceCalculateSerivce.calculatePrice(10000, 1, 2)).thenReturn(\n priceCalculateOutput);\n\n try {\n reserveService.reserve(input);\n fail(\"error route\");\n } catch (BusinessException e) {\n ResultMessages messages = e.getResultMessages();\n assertThat(messages.isNotEmpty(), is(true));\n assertThat(messages.getType(), is((ResultMessageType) ERROR));\n assertThat(messages.getList().size(), is(1));\n assertThat(messages.getList().get(0).getCode(), is(\n MessageId.E_TR_0004));\n throw e;\n }\n }", "title": "" }, { "docid": "211c981f464f22698f1eb6025453ae24", "score": "0.5977463", "text": "@Test\n @SuppressWarnings(\"unchecked\")\n public void testHandleRetrieveAdsGoalRealizationEventHappyFlow() throws Exception {\n final LocalDate today = DateTimeUtil.getCurrentDate();\n Mockito.when(corePlanboardBusinessService\n .findActiveConnectionGroupStates(Matchers.any(LocalDate.class), Matchers.any(Class.class)))\n .thenReturn(buildActiveConnectionGroups());\n Mockito.when(workflowStepExecuter.invoke(Matchers.eq(AgrWorkflowStep.AGR_NON_UDI_RETRIEVE_ADS_GOAL_REALIZATION.name()),\n Matchers.any(WorkflowContext.class))).then(call -> buildOutputContext((WorkflowContext) call.getArguments()[1]));\n // invocation\n coordinator.handleRetrieveAdsGoalRealizationEvent(new AgrNonUdiRetrieveAdsGoalRealizationEvent());\n // verifications and assertions\n ArgumentCaptor<WorkflowContext> contextCaptor = ArgumentCaptor.forClass(WorkflowContext.class);\n Mockito.verify(corePlanboardBusinessService, Mockito.times(1))\n .findActiveConnectionGroupStates(Matchers.eq(today), Matchers.isNull(Class.class));\n Mockito.verify(workflowStepExecuter, Mockito.times(1))\n .invoke(Matchers.eq(AgrWorkflowStep.AGR_NON_UDI_RETRIEVE_ADS_GOAL_REALIZATION.name()), contextCaptor.capture());\n WorkflowContext inputContext = contextCaptor.getValue();\n Assert.assertNotNull(inputContext);\n Assert.assertEquals(today, inputContext.get(AgrNonUdiRetrieveAdsGoalRealizationParameter.IN.PERIOD.name(), LocalDate.class));\n Assert.assertEquals(1, inputContext.get(AgrNonUdiRetrieveAdsGoalRealizationParameter.IN.CURRENT_PORTFOLIO.name(), List.class).size());\n Mockito.verify(agrPortfolioBusinessService, Mockito.times(1))\n .updateConnectionGroupPowerContainers(Matchers.anyListOf(ConnectionGroupPortfolioDto.class), Matchers.eq(today));\n }", "title": "" }, { "docid": "9f0982d680197c31e458f70c862984dc", "score": "0.59525657", "text": "@Test\n public void orderCreated() throws NoQuantityException {\n }", "title": "" }, { "docid": "ed10f8436d2ac4cbbe7fbc164e00e9ed", "score": "0.5940308", "text": "@Test\n public void handleChallengeThrowsIfWaitingToChooseMechanism() throws ProvisioningDeviceClientException {\n assertThrows(IllegalStateException.class, () -> {\n //arrange\n AmqpsProvisioningSaslHandler handler = Deencapsulation.newInstance(AmqpsProvisioningSaslHandler.class, idScope, registrationId, endorsementKey, storageRootKey, mockedResponseCallback, new Object());\n\n //act\n handler.handleChallenge(validThirdChallenge);\n });\n }", "title": "" }, { "docid": "cadf212658013d92536ec14fad1d5a82", "score": "0.5935849", "text": "@Test(expected = BusinessException.class)\n public void testReserve03() {\n TourInfo tour = new TourInfo(\"01\");\n tour.setTourDays(2);\n tour.setAvaRecMax(10);\n tour.setBasePrice(10000);\n tour.setAccommodation(new Accommodation());\n tour.setDeparture(new Departure());\n tour.setArrival(new Arrival());\n tour.setTourDays(2);\n tour.setAvaRecMax(10);\n when(tourInfoSharedService.findOne(\"01\")).thenReturn(tour);\n when(tourInfoSharedService.findOneForUpdate(\"01\")).thenReturn(tour);\n when(reserveRepository.countReservedPersonSumByTourInfo(tour))\n .thenReturn(8L); // !!1+2+8 > 10\n when(sequencer.getNext()).thenReturn(\"123456\");\n\n ReserveTourInput input = new ReserveTourInput();\n input.setAdultCount(1);\n input.setChildCount(2);\n input.setTourCode(\"01\");\n input.setRemarks(\"aa\");\n\n PriceCalculateOutput priceCalculateOutput = new PriceCalculateOutput();\n priceCalculateOutput.setSumPrice(100000);\n priceCalculateOutput.setAdultCount(1);\n priceCalculateOutput.setChildCount(2);\n when(priceCalculateSerivce.calculatePrice(10000, 1, 2)).thenReturn(\n priceCalculateOutput);\n\n try {\n reserveService.reserve(input);\n fail(\"error route\");\n } catch (BusinessException e) {\n ResultMessages messages = e.getResultMessages();\n assertThat(messages.isNotEmpty(), is(true));\n assertThat(messages.getType(), is((ResultMessageType) ERROR));\n assertThat(messages.getList().size(), is(1));\n assertThat(messages.getList().get(0).getCode(), is(\n MessageId.E_TR_0005));\n throw e;\n }\n }", "title": "" }, { "docid": "af0ec27b47f843d69c8b88bcd8d8485c", "score": "0.59335846", "text": "@Test\n public void whenReminderIdArgumentsInvalid(){\n //Try to get a Reminder based on Id\n Mockito.when(view.getReminderId())\n .thenReturn(REMINDER_ID);\n\n Mockito.when(view.getViewModel())\n .thenReturn(ACTIVE_REMINDER);\n\n Mockito.when(reminderService.getReminderById(ACTIVE_REMINDER))\n .thenReturn(Observable.<Reminder>error(new Exception(\"Something Went Wrong\")));\n\n\n presenter.subscribe();\n\n Mockito.verify(view).makeToast(R.string.error_invalid_reminder_id);\n Mockito.verify(view).startReminderListActivity();\n }", "title": "" }, { "docid": "2ae232f4cbb4d8e8ad25ce00e1475d74", "score": "0.5916393", "text": "@Test\n public void testCreateReceipt_givenACarAndAParkingLog_thenGiveAReceiptWithCarNameAndParkingLotName() {\n Car car = mock(Car.class);\n when(car.getName()).thenReturn(\"Lebron\");\n ParkingLot parkingLot = mock(ParkingLot.class);\n when(parkingLot.getName()).thenReturn(\"Jenkin\");\n Receipt expectReceipt = new Receipt();\n expectReceipt.setCarName(\"Lebron\");\n expectReceipt.setParkingLotName(\"Jenkin\");\n\n InOrderParkingStrategy inOrderParkingStrategy = new InOrderParkingStrategy();\n Receipt resultReceipt = inOrderParkingStrategy.createReceipt(parkingLot, car);\n\n Assert.assertEquals(resultReceipt, expectReceipt);\n\n }", "title": "" }, { "docid": "10b9680f9eb1a0560fe1fe5f018923d9", "score": "0.59019434", "text": "@Test\n public void handleOutcomeThrowsIfNotWaitingOnOutcome() throws ProvisioningDeviceSecurityException {\n assertThrows(IllegalStateException.class, () -> {\n //arrange\n AmqpsProvisioningSaslHandler handler = Deencapsulation.newInstance(AmqpsProvisioningSaslHandler.class, idScope, registrationId, endorsementKey, storageRootKey, mockedResponseCallback, new Object());\n\n //act\n handler.handleOutcome(SaslHandler.SaslOutcome.SYS_PERM);\n });\n }", "title": "" }, { "docid": "ee9b92136e58fdc4506f2fa376d6c824", "score": "0.5897361", "text": "@Test(expected = WorkflowException.class)\n public void testHandleRetrieveAdsGoalRealizationEventWithMissingOutputFromPbc() {\n Mockito.when(corePlanboardBusinessService\n .findActiveConnectionGroupStates(Matchers.any(LocalDate.class), Matchers.any(Class.class)))\n .thenReturn(buildActiveConnectionGroups());\n Mockito.when(workflowStepExecuter.invoke(\n Matchers.eq(AgrWorkflowStep.AGR_NON_UDI_RETRIEVE_ADS_GOAL_REALIZATION.name()),\n Matchers.any(WorkflowContext.class))).then(call -> call.getArguments()[1]);\n // actual invocation\n coordinator.handleRetrieveAdsGoalRealizationEvent(new AgrNonUdiRetrieveAdsGoalRealizationEvent());\n }", "title": "" }, { "docid": "c753e9c29d5ae6c50cb025e00fc58340", "score": "0.5870055", "text": "@Test\n void clientExemplar() {\n\n class TestInvoked {\n private boolean invoked = false;\n\n public void invoke() {\n this.invoked = true;\n }\n\n public boolean isInvoked() {\n return invoked;\n }\n }\n TestInvoked testInvoked = new TestInvoked();\n\n BlockMatrixState.TransitionRulesBuilder<CholeskyMatrixType> stateManagement = BlockMatrixState\n .expected(L11, Position.fromCoordinates(1, 1))\n .expected(L11, Position.fromCoordinates(2, 2))\n .expected(L11, Position.fromCoordinates(3, 3))\n .expected(L11, Position.fromCoordinates(0, 0));\n\n stateManagement\n .when(L11, RECEIVED)\n .all() //.one(Position) //set(List<Positions>)\n .setState(L11, L11_RECEIVED); //run(Consumer<>)\n\n stateManagement.onCondition(\n (new BlockMatrixState.Condition<>(L11, RECEIVED)).one(),\n (event) -> {\n System.out.println(\"l11 received\");\n }\n );\n\n BlockMatrixState<CholeskyMatrixType> blockMatrixState = stateManagement\n .when(L11, PROCESSED)\n .all() //.one(Position) //set(List<Positions>)\n .setState(L11, L11_CALCULATED) //run(Consumer<>)\n .build();\n\n\n\n assertEquals(BlockStateDefault.INIT, blockMatrixState.getState());\n\n blockMatrixState.triggerEvent(RECEIVED, L11, Position.fromCoordinates(1, 1));\n blockMatrixState.triggerEvent(RECEIVED, L11, Position.fromCoordinates(2, 2));\n blockMatrixState.triggerEvent(PROCESSED, L11, Position.fromCoordinates(1, 1));\n blockMatrixState.triggerEvent(PROCESSED, L11, Position.fromCoordinates(2, 2));\n\n assertEquals(BlockStateDefault.INIT, blockMatrixState.getState());\n\n blockMatrixState.triggerEvent(RECEIVED, L11, Position.fromCoordinates(3, 3));\n blockMatrixState.triggerEvent(RECEIVED, L11, Position.fromCoordinates(0, 0));\n\n assertEquals(CholeskyBlockState.L11_RECEIVED, blockMatrixState.getState());\n\n\n assertEquals(CholeskyBlockState.L11_RECEIVED, blockMatrixState.getState());\n blockMatrixState.triggerEvent(PROCESSED, L11, Position.fromCoordinates(3, 3));\n blockMatrixState.triggerEvent(PROCESSED, L11, Position.fromCoordinates(0, 0));\n assertEquals(L11_CALCULATED, blockMatrixState.getState());\n }", "title": "" }, { "docid": "1b1b2942cef29e5fc5959b51114ce843", "score": "0.58605105", "text": "private void orderRouterTesterHelper(OutgoingMessageHandler handler, String symbol,\r\n String expectedExchange, String shareClass)\r\n throws Exception {\r\n final Message qfMsg = msgFactory.newMarketOrder(\"bob\", Side.BUY, new BigDecimal(100),\r\n new MSymbol(symbol), TimeInForce.DAY, \"bob\");\r\n NullQuickFIXSender nullQuickFIXSender = ((NullQuickFIXSender)handler.getQuickFIXSender());\r\n \t\tnullQuickFIXSender.getCapturedMessages().clear();\r\n Message result = handler.handleMessage(qfMsg);\r\n \r\n assertNotNull(result);\r\n assertEquals(1,nullQuickFIXSender.getCapturedMessages().size());\r\n Message incomingMsg = nullQuickFIXSender.getCapturedMessages().get(0);\r\n if(expectedExchange != null) {\r\n assertEquals(expectedExchange, incomingMsg.getString(ExDestination.FIELD));\r\n }\r\n if(shareClass != null) {\r\n assertEquals(shareClass, incomingMsg.getString(SymbolSfx.FIELD));\r\n }\r\n }", "title": "" }, { "docid": "7e106de85ee064dc5b93cab514f3bca7", "score": "0.58478546", "text": "private void orderRouterTesterHelper(OutgoingMessageHandler handler, String symbol,\r\n String expectedExchange, String shareClass)\r\n throws Exception {\r\n final Message qfMsg = FIXMessageUtil.newMarketOrder(new InternalID(\"bob\"), Side.BUY, new BigDecimal(100),\r\n new MSymbol(symbol), TimeInForce.DAY, new AccountID(\"bob\"));\r\n NullQuickFIXSender nullQuickFIXSender = ((NullQuickFIXSender)handler.getQuickFIXSender());\r\n \t\tnullQuickFIXSender.getCapturedMessages().clear();\r\n Message result = handler.handleMessage(qfMsg);\r\n \r\n assertNotNull(result);\r\n assertEquals(1,nullQuickFIXSender.getCapturedMessages().size());\r\n Message incomingMsg = nullQuickFIXSender.getCapturedMessages().get(0);\r\n if(expectedExchange != null) {\r\n assertEquals(expectedExchange, incomingMsg.getString(ExDestination.FIELD));\r\n }\r\n if(shareClass != null) {\r\n assertEquals(shareClass, incomingMsg.getString(SymbolSfx.FIELD));\r\n }\r\n }", "title": "" }, { "docid": "130d905e9404ddea01eb7ea346eccbf1", "score": "0.5829987", "text": "@Test\r\n public void testFirstItemCausesFailAndIsUpdatedNotDeleted() throws Exception {\n List<ReconciliationQueueItem> rqiSingleItemInList = createRqiList(1);\r\n\r\n // set expectations\r\n when(extractor.getNextBatch()).thenReturn(rqiSingleItemInList);\r\n\r\n // we're expecting the second item to cause a problem, so set that expectation\r\n when(handler.handleException((ReconProcessorMessageWithPayload) anyObject(), (Exception) anyObject())).thenReturn(\r\n AmayaReconProcessorImpl.AMAYA_CANCEL_FAILED);\r\n\r\n doThrow(new Exception()).when(amayaCancelReconTarget).process((ReconProcessorMessageWithPayload) anyObject());\r\n\r\n ReconProcessorFixture.setupAndRunProcessor(processor, amayaCancelReconTarget, handler);\r\n\r\n verify(handler).handleException(argumentCaptor.capture(), (Exception) anyObject());\r\n verify(extractor).updateToReflectFail(argumentCaptor2.capture());\r\n\r\n // * Check that it was called ... and assert the contents\r\n assertEquals(rqiSingleItemInList.get(0), argumentCaptor.getValue().getQueueItem());\r\n assertEquals(rqiSingleItemInList.get(0), argumentCaptor2.getValue().getQueueItem());\r\n\r\n assertEquals(\"Queue should now be empty\", 0, processor.getQueue().size());\r\n }", "title": "" }, { "docid": "1f5a7fe29cc4690740f2eb7599e4214d", "score": "0.58230376", "text": "@Test\n public void handleChallengeThrowsIfWaitingToBuildInitPayload() throws ProvisioningDeviceClientException {\n assertThrows(IllegalStateException.class, () -> {\n //arrange\n AmqpsProvisioningSaslHandler handler = Deencapsulation.newInstance(AmqpsProvisioningSaslHandler.class, idScope, registrationId, endorsementKey, storageRootKey, mockedResponseCallback, new Object());\n handler.chooseSaslMechanism(new String[]{\"TPM\", \"notTPM\"});\n\n //act\n handler.handleChallenge(validThirdChallenge);\n });\n }", "title": "" }, { "docid": "57f585aef9d4e57f3f5835523b309dda", "score": "0.58024824", "text": "@Test\n public void AcceptWinner_ShouldCallAddAmountIfWinnerIsInThisGamingMachine() throws BetNotExceptedException, NoCurrentRoundException, NoPlayerCardException, InvalidAmountException {\n GamingMachine gamingMachineA = new GamingMachine(mock(GamingMachineID.class));\n GamingMachine gamingMachineB = new GamingMachine(mock(GamingMachineID.class));\n\n ICashier cashierA = mock(ICashier.class);\n ICashier cashierB = mock(ICashier.class);\n\n IGamblerCard gamblerCard = mock(IGamblerCard.class);\n IGame game = mock(IGame.class);\n MoneyAmount moneyAmount = mock(MoneyAmount.class);\n\n when(cashierA.checkIfBetIsValid(any(IGamblerCard.class), any(Bet.class))).thenReturn(true);\n when(cashierB.checkIfBetIsValid(any(IGamblerCard.class), any(Bet.class))).thenReturn(true);\n when(game.acceptBet(any(Bet.class), any(IGamingMachine.class))).thenReturn(true);\n\n gamingMachineA.connectCard(gamblerCard);\n gamingMachineB.connectCard(gamblerCard);\n\n gamingMachineA.placeBet(ARBITRARY_AMOUNT_IN_CENTS, game, cashierA);\n gamingMachineB.placeBet(ARBITRARY_AMOUNT_IN_CENTS, game, cashierB);\n\n BetResult winResultA = new BetResult(gamingMachineA.getOpenBet(), moneyAmount);\n BetResult winResultB = new BetResult(mock(Bet.class), moneyAmount);\n\n gamingMachineA.acceptWinner(winResultA, cashierA);\n gamingMachineB.acceptWinner(winResultB, cashierB);\n\n verify(cashierA).checkIfBetIsValid(any(IGamblerCard.class), any(Bet.class));\n verify(cashierB).checkIfBetIsValid(any(IGamblerCard.class), any(Bet.class));\n verify(game, times(2)).acceptBet(any(Bet.class), any(IGamingMachine.class));\n\n verify(cashierA).addAmount(gamblerCard, moneyAmount);\n verify(cashierB, never()).addAmount(gamblerCard, moneyAmount);\n }", "title": "" }, { "docid": "16c255fffe836f70c286d127ae7660c8", "score": "0.57913077", "text": "@Test\n void shouldSendOtherEmailUnAllocated() {\n\n UUID currentUserUUID = null;\n UUID newUserUUID = UUID.fromString(\"11111111-0000-0000-0000-000000000000\");\n\n Map<String, String> personalisation = new HashMap<>();\n personalisation.put(\"caseRef\", caseRef);\n personalisation.put(\"user\", \"name\");\n\n when(infoClient.getUser(newUserUUID)).thenReturn(new UserDto(\"any\", \"name\", \"any\", \"notify\"));\n when(requestData.userIdUUID()).thenReturn(UUID.fromString(\"22222222-0000-0000-0000-000000000000\"));\n\n notifyService.sendUserAssignChangeEmail(caseUUID, stageUUID, caseRef, currentUserUUID, newUserUUID);\n\n verify(requestData).userIdUUID();\n verify(infoClient).getUser(newUserUUID);\n verify(notifyClient).sendEmail(caseUUID, stageUUID, \"notify\", personalisation, NotifyType.ALLOCATE_INDIVIDUAL);\n\n verifyNoMoreInteractions(infoClient);\n verifyNoMoreInteractions(notifyClient);\n verifyNoMoreInteractions(requestData);\n }", "title": "" }, { "docid": "4467c902b3bc3059ca0219248007d3b3", "score": "0.57856005", "text": "@Test\n public void testNothing() {\n \tExecutionService es=new ExecutionService() {\n\n\t\t\t@Override\n\t\t\tpublic void buy(String security, double price, int volume) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tSystem.out.println(security+price+price);\n\t\t\t\t\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void sell(String security, double price, int volume) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t}\n \t\t\n \t};\n \tPriceListenerImpl pl=new PriceListenerImpl(es);\n \t// Mock class for PriceSource\n \tPriceSource psA=new PriceSource() {\n\n\t\t\t@Override\n\t\t\tpublic void addPriceListener(PriceListener listener) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void removePriceListener(PriceListener listener) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t}\n \t\t\n \t};\n \tTradingStrategy ts=new TradingStrategy(psA);\n \tts.registerListner(pl);\n \tfor (int i=30;i<200;i=i+20) {\n \tts.monitorStocks(\"IBM\",i);\n \t}\n \t\n }", "title": "" }, { "docid": "2462a8bbb09258fc46de7db99940eed4", "score": "0.57672596", "text": "@Test\n public void testHandle_NullGame(){\n when(session.attribute(PostSignInRoute.PLAYER_SESSION_KEY)).thenReturn(player);\n player.setIsTurn(true);\n when(player.getIsTurn()).thenReturn(true);\n Game game = mock(Game.class);\n when(gameCenter.getGameFromPlayer(player)).thenReturn(0);\n when(gameCenter.getGame(0)).thenReturn(null);\n when(game.getActive()).thenReturn(true);\n assertEquals(gson.toJson(Message.info(\"true\")), CuT.handle(request, response));\n }", "title": "" }, { "docid": "df1ef0042bd487f7193f7029354f4af2", "score": "0.5742947", "text": "@Test\n void shouldNotSendSelfEmailAllocated() {\n\n UUID currentUserUUID = UUID.fromString(\"33333333-0000-0000-0000-000000000000\");\n UUID newUserUUID = UUID.fromString(\"11111111-0000-0000-0000-000000000000\");\n\n Map<String, String> personalisation = new HashMap<>();\n personalisation.put(\"caseRef\", caseRef);\n personalisation.put(\"user\", \"name\");\n\n when(infoClient.getUser(currentUserUUID)).thenReturn(new UserDto(\"any\", \"name\", \"any\", \"notify\"));\n when(requestData.userIdUUID()).thenReturn(UUID.fromString(\"11111111-0000-0000-0000-000000000000\"));\n\n notifyService.sendUserAssignChangeEmail(caseUUID, stageUUID, caseRef, currentUserUUID, newUserUUID);\n\n verify(requestData).userIdUUID();\n verify(infoClient).getUser(currentUserUUID);\n verify(notifyClient).sendEmail(caseUUID, stageUUID, \"notify\", personalisation, NotifyType.UNALLOCATE_INDIVIDUAL);\n\n\n verifyNoMoreInteractions(infoClient);\n verifyNoMoreInteractions(notifyClient);\n verifyNoMoreInteractions(requestData);\n }", "title": "" }, { "docid": "0673730b40ac07ea4148bb2799613a85", "score": "0.5741471", "text": "@Test\n public void testTransmission() {\n setUpClient(sampleRpcMessage);\n // Then verify that it got through. Should be simple\n // enough?\n verify(serverReceiver).receive(sampleRpcMessage);\n verify(clientReceiver).receive(sampleResultMessage);\n }", "title": "" }, { "docid": "42fee4cf6a6ecbe71e228edf0f4d9d98", "score": "0.5738246", "text": "@Test\n public void PlaceBet_ShouldStoreBetAndReturnTrueIfActiveBettingRoundExists() throws NoPlayerCardException, NoCurrentRoundException, BetNotExceptedException {\n ICashier cashier = mock(ICashier.class);\n IGamblerCard gamblerCard = mock(IGamblerCard.class);\n GamingMachine gamingMachineA = new GamingMachine(mock(GamingMachineID.class));\n GamingMachine gamingMachineB = new GamingMachine(mock(GamingMachineID.class));\n IGame gameA = mock(IGame.class);\n IGame gameB = mock(IGame.class);\n\n when(cashier.checkIfBetIsValid(any(IGamblerCard.class), any(Bet.class))).thenReturn(true);\n when(gameA.acceptBet(any(Bet.class), any(IGamingMachine.class))).thenReturn(true);\n when(gameB.acceptBet(any(Bet.class), any(IGamingMachine.class))).thenReturn(false);\n when(gameB.acceptBet(any(Bet.class), any(IGamingMachine.class))).thenThrow(NoCurrentRoundException.class);\n\n gamingMachineA.connectCard(gamblerCard);\n gamingMachineB.connectCard(gamblerCard);\n\n boolean returnValueA = gamingMachineA.placeBet(ARBITRARY_AMOUNT_IN_CENTS, gameA, cashier);\n boolean returnValueB = gamingMachineA.placeBet(ARBITRARY_AMOUNT_IN_CENTS, gameB, cashier);\n\n verify(gameA).acceptBet(any(Bet.class), any(IGamingMachine.class));\n verify(gameB).acceptBet(any(Bet.class), any(IGamingMachine.class));\n\n assertThat(gamingMachineA.getOpenBet(), not(nullValue()));\n assertThat(returnValueA, is(true));\n\n assertThat(gamingMachineB.getOpenBet(), is(nullValue()));\n assertThat(returnValueB, is(false));\n }", "title": "" }, { "docid": "5476eaee1704de465382fa39a23fdc48", "score": "0.5718171", "text": "@Test\n public void orderCreatedNoQuantity() throws NoQuantityException {\n }", "title": "" }, { "docid": "d539dd75bf4fdbb523fe14b71da247c9", "score": "0.5707725", "text": "@Test\n public void test_linkMerchantProduct_whenLinkMerchantAndProductNotFound_thenFail() {\n // Given\n LinkMerchantProductRequest linkMerchantProductRequest = new LinkMerchantProductRequest();\n linkMerchantProductRequest.setMerchantId(1);\n linkMerchantProductRequest.setProductId(1);\n\n\n // When\n when(merchantDao.findMerchantById(1)).thenReturn(new MerchantEntity());\n when(productDao.findProductById(1)).thenReturn(null);\n\n // Then\n Exception exception = assertThrows(EntityNotFound.class,() -> {\n LinkMerchantProductResponse linkMerchantProductResponse = merchantProductService.linkMerchantProduct(linkMerchantProductRequest);\n });\n String expectedMessage = \"Product not found\";\n String actualMessage = exception.getMessage();\n\n assertTrue(actualMessage.contains(expectedMessage));\n }", "title": "" }, { "docid": "1442ff0c920674689d792524e1a13c67", "score": "0.5706918", "text": "@Test\n public void testInitiateSettlementEvent() throws URISyntaxException {\n MockHttpRequest request = MockHttpRequest.get(URL + \"/InitiateSettlementEvent/2014-02-17\");\n MockHttpResponse response = new MockHttpResponse();\n dispatcher.invoke(request, response);\n\n Mockito.verify(collectSmartMeterDataEventManager, Mockito.times(1)).fire(Matchers.any(CollectSmartMeterDataEvent.class));\n Assert.assertEquals(200, response.getStatus());\n }", "title": "" }, { "docid": "26587fd88d5714fdee799de4352ff0b6", "score": "0.5692641", "text": "@Test\n public void testPark_givenAVipCarAndAFullParkingLog_thenGiveAReceiptWithCarNameAndParkingLotName() {\n Car car = new Car(\"A1\");\n ParkingLot parkingLot = new ParkingLot(\"park1\",0);\n List<ParkingLot> parkingLotList = new ArrayList<>();\n parkingLotList.add(parkingLot);\n VipParkingStrategy vipParkingStrategy = spy(new VipParkingStrategy());\n when(vipParkingStrategy.isAllowOverPark(car)).thenReturn(true);\n when(vipParkingStrategy.createReceipt(parkingLot,car)).thenReturn(new Receipt());\n //when\n Receipt receipt = vipParkingStrategy.park(parkingLotList, car);\n //then\n verify(vipParkingStrategy,times(1)).createReceipt(parkingLot,car);\n assertNotNull(receipt);\n }", "title": "" }, { "docid": "bcceea3336c869e0e290cf17cd85278b", "score": "0.5691544", "text": "@Test\n public void handleChallengeThrowsIfWaitingForSaslOutcome() throws ProvisioningDeviceClientException {\n assertThrows(IllegalStateException.class, () -> {\n //arrange\n AmqpsProvisioningSaslHandler handler = Deencapsulation.newInstance(AmqpsProvisioningSaslHandler.class, idScope, registrationId, endorsementKey, storageRootKey, mockedResponseCallback, new Object());\n handler.chooseSaslMechanism(new String[]{\"TPM\", \"notTPM\"});\n handler.getInitPayload(\"TPM\");\n handler.handleChallenge(validFirstChallenge);\n handler.handleChallenge(validSecondChallenge);\n Deencapsulation.setField(handler, \"sasToken\", sasToken);\n handler.handleChallenge(validThirdChallenge);\n\n //act\n handler.handleChallenge(validThirdChallenge);\n });\n }", "title": "" }, { "docid": "3d9c2b8ed5bf433785e787243df4d925", "score": "0.56788814", "text": "@Test\n public void testIsAllowOverPark_givenCarNameContainsCharacterAAndIsVipCar_thenReturnTrue(){\n ParkingLot parkingLot = new ParkingLot(\"park1\",1);\n List<ParkingLot> parkingLotList = new ArrayList<>();\n parkingLotList.add(parkingLot);\n String carName = \"A2\";\n Car car = new Car(carName);\n when(carDao.isVip(carName)).thenReturn(true);\n //when\n boolean allowOverPark = vipParkingStrategy.isAllowOverPark(car);\n //then\n assertTrue(allowOverPark);\n\n }", "title": "" }, { "docid": "8b9e2b16a109a4c3bd5281285f0b6828", "score": "0.5673753", "text": "@Test\n public void testIsAllowOverPark_givenCarNameDoesNotContainsCharacterAAndIsVipCar_thenReturnFalse(){\n ParkingLot parkingLot = new ParkingLot(\"park1\",1);\n List<ParkingLot> parkingLotList = new ArrayList<>();\n parkingLotList.add(parkingLot);\n String carName = \"B2\";\n Car car = new Car(carName);\n when(carDao.isVip(carName)).thenReturn(true);\n //when\n boolean allowOverPark = vipParkingStrategy.isAllowOverPark(car);\n //then\n assertFalse(allowOverPark);\n }", "title": "" }, { "docid": "f518e60a1120df67f36ee2a11658846d", "score": "0.56674737", "text": "@BeforeEach\r\n public void setUp() throws Exception {\n contractProperties = new HashMap<>();\r\n contractProperties.put(MERCHANT_GUID_KEY, new ContractProperty(\"merchant_guid_test\"));\r\n contractProperties.put(OPC_KEY, new ContractProperty(\"3z002\"));\r\n contractProperties.put(NB_ECHEANCES_KEY, new ContractProperty(\"nx\"));\r\n contractProperties.put(COUNTRY_CODE_KEY, new ContractProperty(\"BE\"));\r\n contractProperties.put(LANGUAGE_CODE_KEY, new ContractProperty(\"fr\"));\r\n contractProperties.put(PARTNER_CHIFFREMENT_KEY, new ContractProperty(\"1234567890ABCDEF=\"));\r\n\r\n // Mock full partner configuration\r\n partnerConfiguration = new HashMap<>();\r\n partnerConfiguration.put(PSP_GUID_KEY + \".be\", \"psp_id_test\");\r\n partnerConfiguration.put(SECRET_KEY, TestUtils.getSecretKey());\r\n partnerConfiguration.put(PARTNER_AUTHORIZATION_KEY + \".be\", \"mykey\");\r\n partnerConfiguration.put(PARTNER_API_URL, \"https://oney-staging.azure-api.net\");\r\n\r\n // Mock sensitive partner configuration\r\n sensitivePartnerConfiguration = new HashMap<>();\r\n MockitoAnnotations.initMocks(this);\r\n doReturn(httpClient).when(service).getNewHttpClientInstance(any(ContractParametersCheckRequest.class));\r\n\r\n // Mock HTTP call to the partner API.\r\n StringResponse mockResponsePending = createStringResponse(200, \"OK\", \"{\\\"encrypted_message\\\":\\\"+l2i0o7hGRh+wJO02++ul3aakmok0anPtpBvW1vZ3e83c7evaIMgKsuqlJpPjg407AoMkFm94736cZcnpC81qiX4V8n9IxMD1E50QBAOkMZ1S8Pf90kxhXSDe3wt4J13\\\"}\");\r\n doReturn(mockResponsePending).when(httpClient).initiateCheckPayment(Mockito.anyString(), Mockito.anyMap(), anyBoolean());\r\n }", "title": "" }, { "docid": "e54498a0576d41ed717ae4ab8a46b64a", "score": "0.5649637", "text": "@Test\n public void testDelegationDuringOnTrade() {\n AdditionAccumulator runningCostTotal = mock(AdditionAccumulator.class);\n AdditionAccumulator runningQtyTotal = mock(AdditionAccumulator.class);\n OutputCalculator sut = new WeightedAvgCalculator(runningCostTotal, runningQtyTotal);\n sut.onTrade(mockTrade(60, 5));\n verify(runningCostTotal, times(1)).onValue(300); // passes the product to runningCostTotal\n verify(runningQtyTotal, times(1)).onValue(5); // passes the qty to runningCostTotal\n }", "title": "" }, { "docid": "07cade08c2d2a1cc7147449346e61db5", "score": "0.56452084", "text": "@Test\n public void choseSaslMechanismThrowsIfNotWaitingToChooseMechanism() throws ProvisioningDeviceSecurityException {\n assertThrows(IllegalStateException.class, () -> {\n //arrange\n AmqpsProvisioningSaslHandler handler = Deencapsulation.newInstance(AmqpsProvisioningSaslHandler.class, idScope, registrationId, endorsementKey, storageRootKey, mockedResponseCallback, new Object());\n handler.chooseSaslMechanism(new String[]{\"NotTPM\", \"TPM\"});\n\n //act\n handler.chooseSaslMechanism(new String[]{\"NotTPM\", \"TPM\"});\n });\n }", "title": "" }, { "docid": "904241f44aaa6ed4402d6ffb2519d717", "score": "0.56447667", "text": "@Test(timeout = 4000)\n public void test102() throws Throwable {\n Contract contract0 = new Contract();\n Order order0 = new Order();\n Vector<Object> vector0 = new Vector<Object>();\n TagValue tagValue0 = new TagValue((String) null, \"O\");\n vector0.add((Object) tagValue0);\n order0.m_algoParams = vector0;\n order0.m_algoStrategy = \"id=6 modelOptomp: vol = 1.0 delta = N/A: modlPr+ce = N/A: pvDividend = N/A\";\n // Undeclared exception!\n try { \n EWrapperMsgGenerator.openOrder(0, contract0, order0, (OrderState) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"com.ib.client.EWrapperMsgGenerator\", e);\n }\n }", "title": "" }, { "docid": "5fa0fdb5b045028c8a21aef91c061383", "score": "0.5642219", "text": "@Test\n public void getCauseOfBlockage() throws Exception {\n CauseOfBlockage blockage = mock(CauseOfBlockage.class);\n CauseOfBlockage taskBlockage = mock(CauseOfBlockage.class);\n\n FlowNode stage = mock(FlowNode.class);\n FlowNode nodeBlock = mock(FlowNode.class);\n Queue.Item item = mock(Queue.Item.class);\n mockStatic(QueueItemAction.class);\n String cause = null;\n\n cause = PipelineNodeUtil.getCauseOfBlockage(stage, null);\n assertNull(cause);\n\n when(nodeBlock.getParents()).thenReturn(ImmutableList.of());\n cause = PipelineNodeUtil.getCauseOfBlockage(stage, null);\n assertNull(cause);\n\n when(nodeBlock.getParents()).thenReturn(ImmutableList.of(stage));\n when(QueueItemAction.getQueueItem(nodeBlock)).thenReturn(null);\n cause = PipelineNodeUtil.getCauseOfBlockage(stage, null);\n assertNull(cause);\n\n when(QueueItemAction.getQueueItem(nodeBlock)).thenReturn(item);\n when(item.getCauseOfBlockage()).thenReturn(null);\n cause = PipelineNodeUtil.getCauseOfBlockage(stage, null);\n assertNull(cause);\n\n when(blockage.getShortDescription()).thenReturn(\"test\");\n when(item.getCauseOfBlockage()).thenReturn(blockage);\n cause = PipelineNodeUtil.getCauseOfBlockage(stage, nodeBlock);\n assertEquals(\"test\", cause);\n\n when(blockage.getShortDescription()).thenReturn(null);\n cause = PipelineNodeUtil.getCauseOfBlockage(stage, null);\n assertNull(cause);\n\n when(taskBlockage.getShortDescription()).thenReturn(\"test1\");\n Whitebox.setInternalState(item,\"task\", mock(Queue.Task.class));\n when(item.task.getCauseOfBlockage()).thenReturn(taskBlockage);\n cause = PipelineNodeUtil.getCauseOfBlockage(stage, nodeBlock);\n assertEquals(\"test1\", cause);\n }", "title": "" }, { "docid": "137a3ad75c46d951e3376559f0dd1d92", "score": "0.56356895", "text": "@Test\n public void testIsAllowOverPark_givenCarNameContainsCharacterAAndIsNotVipCar_thenReturnFalse(){\n ParkingLot parkingLot = new ParkingLot(\"park1\",1);\n List<ParkingLot> parkingLotList = new ArrayList<>();\n parkingLotList.add(parkingLot);\n String carName = \"A2\";\n Car car = new Car(carName);\n when(carDao.isVip(carName)).thenReturn(false);\n //when\n boolean allowOverPark = vipParkingStrategy.isAllowOverPark(car);\n //then\n assertFalse(allowOverPark);\n }", "title": "" }, { "docid": "47ba63b75787d34de8cd17069d61dacc", "score": "0.5632424", "text": "@Test(timeout = 4000)\n public void test48() throws Throwable {\n Contract contract0 = new Contract();\n Vector<Integer> vector0 = new Vector<Integer>();\n vector0.add((Integer) null);\n contract0.m_comboLegs = vector0;\n Order order0 = new Order();\n order0.m_algoParams = contract0.m_comboLegs;\n order0.m_algoStrategy = \"O\";\n OrderState orderState0 = new OrderState();\n OrderState orderState1 = new OrderState();\n // Undeclared exception!\n try { \n EWrapperMsgGenerator.openOrder(0, contract0, order0, orderState0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"com.ib.client.EWrapperMsgGenerator\", e);\n }\n }", "title": "" }, { "docid": "be9fec3b56d40f027cff9f3a9ae51dc5", "score": "0.56262577", "text": "@Test\n public void testCreateNoSpaceReceipt_givenACar_thenGiveANoSpaceReceipt() {\n Car car = mock(Car.class);\n when(car.getName()).thenReturn(\"Lebron\");\n\n Receipt expectReceipt = new Receipt();\n expectReceipt.setCarName(\"Lebron\");\n expectReceipt.setParkingLotName(NO_PARKING_LOT);\n\n InOrderParkingStrategy inOrderParkingStrategy = new InOrderParkingStrategy();\n Receipt resultReceipt = inOrderParkingStrategy.createNoSpaceReceipt(car);\n\n Assert.assertEquals(resultReceipt, expectReceipt);\n }", "title": "" }, { "docid": "15d1e67ff19bb15b7847bde63662db74", "score": "0.5623771", "text": "@Test\n void shouldAlwaysSendEmailUnAllocate() {\n\n UUID currentUserUUID = UUID.fromString(\"33333333-0000-0000-0000-000000000000\");\n UUID newUserUUID = null;\n\n Map<String, String> personalisation = new HashMap<>();\n personalisation.put(\"caseRef\", caseRef);\n personalisation.put(\"user\", \"name\");\n\n when(infoClient.getUser(currentUserUUID)).thenReturn(new UserDto(\"any\", \"name\", \"any\", \"notify\"));\n\n notifyService.sendUserAssignChangeEmail(caseUUID, stageUUID, caseRef, currentUserUUID, newUserUUID);\n\n verify(infoClient).getUser(currentUserUUID);\n verify(notifyClient).sendEmail(caseUUID, stageUUID, \"notify\", personalisation, NotifyType.UNALLOCATE_INDIVIDUAL);\n\n\n verifyNoMoreInteractions(infoClient);\n verifyNoMoreInteractions(notifyClient);\n verifyZeroInteractions(requestData);\n }", "title": "" }, { "docid": "9eef12860821829cb80b9c0f145fd3ea", "score": "0.5615014", "text": "@Test\n public void testHandlerResponseTypesRequest()\n {\n when(m_MessageFactory.createAssetDirectoryServiceMessage(\n eq(AssetDirectoryServiceMessageType.ScanForNewAssetsRequest), \n Mockito.any(Message.class))).thenReturn(m_MessageWrapper);\n \n AssetDirectoryServiceNamespace namespaceMsg = AssetDirectoryServiceNamespace.newBuilder()\n .setType(AssetDirectoryServiceMessageType.GetAssetTypesResponse).build();\n TerraHarvestPayload payload = TerraHarvestPayload.newBuilder().setNamespace(Namespace.AssetDirectoryService)\n .setNamespaceMessage(namespaceMsg.toByteString()).build();\n Version version = Version.newBuilder().setMajor(0).setMinor(0).build();\n TerraHarvestMessage thMsg = TerraHarvestMessage.newBuilder().setDestId(0).setSourceId(500).setMessageId(5)\n .setVersion(version).setTerraHarvestPayload(payload.toByteString()).build();\n \n m_SUT.handleResponse(thMsg, payload, namespaceMsg, null);\n \n ArgumentCaptor<Message> messageCaptor = ArgumentCaptor.forClass(Message.class);\n \n verify(m_MessageFactory).createAssetDirectoryServiceMessage(\n eq(AssetDirectoryServiceMessageType.ScanForNewAssetsRequest), messageCaptor.capture());\n \n ScanForNewAssetsRequestData request = (ScanForNewAssetsRequestData)messageCaptor.getValue();\n assertThat(request.getProductType(), equalTo(\"\"));\n }", "title": "" }, { "docid": "bb9327795c15adc2b07f59d25dc01bfb", "score": "0.559605", "text": "@Test\n @SuppressWarnings(\"unchecked\")\n public void testHandleRetrieveAdsGoalRealizationEventWithEmptyPortfolio() {\n Mockito.when(corePlanboardBusinessService\n .findActiveConnectionGroupStates(Matchers.any(LocalDate.class), Matchers.any(Class.class)))\n .thenReturn(new ArrayList<>());\n // invocation\n coordinator.handleRetrieveAdsGoalRealizationEvent(new AgrNonUdiRetrieveAdsGoalRealizationEvent());\n // verifications and assertions\n Mockito.verify(corePlanboardBusinessService, Mockito.times(1))\n .findActiveConnectionGroupStates(Matchers.any(LocalDate.class), Matchers.isNull(Class.class));\n Mockito.verifyZeroInteractions(agrPortfolioBusinessService);\n Mockito.verifyZeroInteractions(workflowStepExecuter);\n }", "title": "" }, { "docid": "f26a6a60a87511c24df11825a4d91754", "score": "0.5593767", "text": "@Test\n public void testIsAllowOverPark_givenCarNameDoesNotContainsCharacterAAndIsNotVipCar_thenReturnFalse() {\n ParkingLot parkingLot = new ParkingLot(\"park1\",1);\n List<ParkingLot> parkingLotList = new ArrayList<>();\n parkingLotList.add(parkingLot);\n String carName = \"B2\";\n Car car = new Car(carName);\n when(carDao.isVip(carName)).thenReturn(false);\n //when\n boolean allowOverPark = vipParkingStrategy.isAllowOverPark(car);\n //then\n assertFalse(allowOverPark);\n }", "title": "" }, { "docid": "d2194d1bd60aab38cb775c8735a2233b", "score": "0.5591747", "text": "@Test(timeout = 4000)\n public void test109() throws Throwable {\n Vector<String> vector0 = new Vector<String>();\n Contract contract0 = new Contract(854, \"FA:\", \"FA:\", \"FA:\", 854, \"FA:\", \"FA:\", \"FA:\", \"FA:\", \"FA:\", vector0, \"FA:\", false, \"FA:\", \"FA:\");\n Order order0 = new Order();\n vector0.add((String) null);\n OrderState orderState0 = new OrderState();\n order0.m_algoStrategy = \"FA:\";\n order0.m_algoParams = contract0.m_comboLegs;\n // Undeclared exception!\n try { \n EWrapperMsgGenerator.openOrder(0, contract0, order0, orderState0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"com.ib.client.EWrapperMsgGenerator\", e);\n }\n }", "title": "" }, { "docid": "1cfb5a6b7fde3c68f8b25356c50a6044", "score": "0.558625", "text": "@Test\n void onLinkRemoteCloseThenLinkFinal() {\n // Arrange\n final ErrorCondition errorCondition = new ErrorCondition(symbol, description);\n\n when(link.getRemoteCondition()).thenReturn(errorCondition);\n when(link.getSession()).thenReturn(session);\n when(link.getLocalState()).thenReturn(EndpointState.CLOSED);\n\n final Event finalEvent = mock(Event.class);\n final Link link2 = mock(Link.class);\n when(finalEvent.getLink()).thenReturn(link2);\n when(link2.getLocalState()).thenReturn(EndpointState.CLOSED);\n when(link2.getRemoteState()).thenReturn(EndpointState.CLOSED);\n\n // Act & Assert\n StepVerifier.create(handler.getEndpointStates())\n .expectNext(EndpointState.UNINITIALIZED)\n .then(() -> {\n handler.onLinkRemoteClose(event);\n handler.onLinkFinal(finalEvent);\n })\n .expectErrorSatisfies(error -> {\n Assertions.assertTrue(error instanceof AmqpException);\n\n AmqpException exception = (AmqpException) error;\n Assertions.assertEquals(LINK_STOLEN, exception.getErrorCondition());\n })\n .verify(VERIFY_TIMEOUT);\n\n // Assert\n verify(link, never()).setCondition(errorCondition);\n verify(link, never()).close();\n\n verify(session, never()).setCondition(errorCondition);\n verify(session, never()).close();\n }", "title": "" }, { "docid": "8be068c62dc051f015d941a19fd65928", "score": "0.55779946", "text": "@Test(timeout = 4000)\n public void test101() throws Throwable {\n Contract contract0 = new Contract();\n Order order0 = new Order();\n Vector<Object> vector0 = new Vector<Object>();\n TagValue tagValue0 = new TagValue((String) null, \"O\");\n vector0.add((Object) tagValue0);\n vector0.add((Object) null);\n order0.m_algoParams = vector0;\n order0.m_algoStrategy = \"id=6 modelOptomp: vol = 1.0 delta = N/A: modlPr+ce = N/A: pvDividend = N/A\";\n // Undeclared exception!\n try { \n EWrapperMsgGenerator.openOrder(0, contract0, order0, (OrderState) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"com.ib.client.EWrapperMsgGenerator\", e);\n }\n }", "title": "" }, { "docid": "77ff60e48a25d4c9ae9f6b3a9268b1de", "score": "0.55665517", "text": "@Test\r\n public void testActiveReservation() {\r\n Reservation res1 = mock(Reservation.class);\r\n Reservation res2 = mock(Reservation.class);\r\n Reservation res3 = mock(Reservation.class);\r\n Reservation res4 = mock(Reservation.class);\r\n \r\n doReturn(ReservationStateEnum.READY.name()).when(res1).getState();\r\n doReturn(ReservationStateEnum.REALIZED.name()).when(res2).getState();\r\n doReturn(ReservationStateEnum.ACCEPTED.name()).when(res3).getState();\r\n doReturn(ReservationStateEnum.SUBMITTED.name()).when(res4).getState();\r\n \r\n boolean result1 = rc.activeReservation(res1);\r\n boolean result2 = rc.activeReservation(res2);\r\n boolean result3 = rc.activeReservation(res3);\r\n boolean result4 = rc.activeReservation(res4);\r\n \r\n assertEquals(true, result1);\r\n assertEquals(true, result2);\r\n assertEquals(false, result3);\r\n assertEquals(false, result4);\r\n }", "title": "" }, { "docid": "c622dc074510f25e9ec052bffc3a0bba", "score": "0.55631804", "text": "@SuppressWarnings(\"ResultOfMethodCallIgnored\")\n @Test\n public void testBrokerReceivesUserRequests() throws Exception {\n broker.process(trade);\n verify(trade, atLeastOnce()).getUsername();\n }", "title": "" }, { "docid": "71a8f7cc9f1c4c5e94aeb3af24fbc66b", "score": "0.5555941", "text": "@Test\n public void generateTurnNoPreviousTurns() throws PatientNotExistsException, NoProfessionalFoundException, InvalidProfessionalServiceException, NotProfessionalServicePassedException {\n\n when(professionalService.selectRandomProfessional(any(ProfessionalServices.class))).thenReturn(ProfessionalGenerator.generateOne(ProfessionalServices.GENERAL));\n when(patientService.getPatientById(anyString())).thenReturn(PatientGenerator.generateOne());\n when(turnRepository.save(any(TurnModel.class))).thenReturn(null);\n\n TurnResponseDTO turnResponseDTO = turnService.generateTurn(\"1\",ProfessionalServices.GENERAL.toString());\n Assertions.assertEquals(\"PENDING\",turnResponseDTO.getStatus());\n Assertions.assertEquals(\"Camila\",turnResponseDTO.getProfessional().getName());\n\n }", "title": "" }, { "docid": "f37b43b992031c6c98f6e175a4602f4e", "score": "0.5550152", "text": "@Test\n public void testFulfillCondition() {\n // Directly add the transfer to the Simulated Ledger as if it was added long ago...\n final Transfer transfer = constructIncomingTransferToConnector(UUID.randomUUID());\n mockLedgerPlugin.getSimulatedLedger().getTransfers()\n .putIfAbsent(transfer.getTransferId(),\n ImmutableTransferHolder.builder().transfer(transfer).build());\n\n final Fulfillment fulfillment = new PreimageSha256Fulfillment(PREIMAGE);\n this.mockLedgerPlugin.fulfillCondition(transfer.getTransferId(), fulfillment);\n\n verify(ledgerPluginEventHandlerMock)\n .onTransferFulfilled(Mockito.<IncomingTransferFulfilledEvent>any());\n verifyNoMoreInteractions(ledgerPluginEventHandlerMock);\n }", "title": "" }, { "docid": "cfa101068876923e421900c37d74e946", "score": "0.55415463", "text": "public void testClientWithBus() throws Exception {\n\t}", "title": "" }, { "docid": "defc7be0bcfa743f3f3bf7d6c49aef44", "score": "0.55389607", "text": "@Test\n public void postBuildUsesProvidedCredentials() throws Exception {\n // set up\n String serverUrl = \"amqp://test.host\";\n String serverUsername = \"someuser\";\n String serverPassword= \"somepassword\";\n String messageBody = \"somemessage\";\n\n Connection conn = mocks.createMock(\"mqConn\", Connection.class);\n Channel channel = mocks.createNiceMock(\"mqChannel\", Channel.class);\n AMQP.Queue.DeclareOk ok = mocks.createMock(\"mqOk\", AMQP.Queue.DeclareOk.class);\n\n mqConnectionFactory.setUri(serverUrl);\n expectLastCall().once();\n mqConnectionFactory.setUsername(serverUsername);\n expectLastCall().once();\n mqConnectionFactory.setPassword(serverPassword);\n expectLastCall().once();\n\n expect(mqConnectionFactory.newConnection()).andReturn(conn);\n expect(conn.createChannel()).andReturn(channel);\n expect(channel.queueDeclare(orchestrateClient.getRoutingKey(), true, false, false, null)).andReturn(ok);\n\n channel.close();\n expectLastCall().once();\n\n conn.close();\n expectLastCall().once();\n\n mocks.replayAll();\n\n // exercise\n orchestrateClient.postBuild(serverUrl, serverUsername, serverPassword, messageBody);\n\n // verify\n mocks.verifyAll();\n }", "title": "" }, { "docid": "2273d77d74fc35e6b075b9cdafe34d5c", "score": "0.5537656", "text": "@Test\r\n public void testFindReservations_CEO() {\r\n Employee user = mock(Employee.class);\r\n Employee emp1 = mock(Employee.class);\r\n Employee emp2 = mock(Employee.class);\r\n Employee emp3 = mock(Employee.class);\r\n \r\n Reservation res1 = mock(Reservation.class);\r\n Reservation res2 = mock(Reservation.class);\r\n Reservation res3 = mock(Reservation.class);\r\n Reservation res4 = mock(Reservation.class);\r\n \r\n Department dep1 = mock(Department.class);\r\n Department dep2 = mock(Department.class);\r\n \r\n Set<Reservation> reservations = new HashSet<>();\r\n reservations.add(res1);\r\n reservations.add(res2);\r\n reservations.add(res3);\r\n reservations.add(res4);\r\n \r\n doReturn(emp1).when(res1).getEmployee();\r\n doReturn(emp2).when(res2).getEmployee();\r\n doReturn(emp3).when(res3).getEmployee();\r\n doReturn(user).when(res4).getEmployee();\r\n \r\n doReturn(dep1).when(emp1).getDepartment();\r\n doReturn(dep2).when(emp2).getDepartment();\r\n doReturn(dep1).when(emp3).getDepartment();\r\n doReturn(dep1).when(user).getManaging();\r\n \r\n doReturn(ReservationStateEnum.NEW.name()).when(res1).getState();\r\n doReturn(ReservationStateEnum.SUBMITTED.name()).when(res2).getState();\r\n doReturn(ReservationStateEnum.SUBMITTED.name()).when(res3).getState();\r\n doReturn(ReservationStateEnum.NEW.name()).when(res4).getState();\r\n \r\n doReturn(reservations).when(reservationDao).findAll();\r\n \r\n doReturn(true).when(ec).hasRole(user, RoleEnum.CEO);\r\n \r\n Set<Reservation> result = rc.findReservations(user);\r\n \r\n assertThat(result, hasItem(res2));\r\n assertThat(result, hasItem(res3));\r\n assertThat(result, hasItem(res4));\r\n assertEquals(3, result.size());\r\n }", "title": "" }, { "docid": "aaf02261479e3c9e96a65f05a76975b8", "score": "0.55366683", "text": "@Before\r\n\tpublic void setUp(){\n\t\tinjector = new MessageServiceInjector() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic Consumer getConsumer() {\r\n\t\t\t\t//mock the message service\r\n\t\t\t\tMyDIApplication app = new MyDIApplication();\r\n\t\t\t\tapp.setService(new MessageService(){\r\n\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic boolean sendMessage(String msg, String rec) {\r\n\t\t\t\t\t\tSystem.out.println(\"Mock Message Service implementation\");\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t\treturn app;\r\n\r\n\t\t\t}\r\n\t\t};\r\n\t}", "title": "" }, { "docid": "69da10db01c8be5b69e1633457dfdda2", "score": "0.5535277", "text": "@Test\n public void processExitingVehiculeTest_emptyplate_throwsNullException() {\n ParkingService svc = new ParkingService(inputReaderUtil, parkingSpotDAO, ticketDAO);\n //ASSERT\n assertThrows(ParkingExitWithoutValidTicketException.class, ()->svc.processExitingVehicle()) ;\n\n\n }", "title": "" }, { "docid": "18d9402dc302833c479e0033741f67a9", "score": "0.55322343", "text": "@Test\n public void test_linkMerchantProduct_whenLinkMerchantNotFoundAndProduct_thenFail() {\n // Given\n LinkMerchantProductRequest linkMerchantProductRequest = new LinkMerchantProductRequest();\n linkMerchantProductRequest.setMerchantId(1);\n linkMerchantProductRequest.setProductId(1);\n\n\n // When\n when(merchantDao.findMerchantById(1)).thenReturn(null);\n // Then\n Exception exception = assertThrows(EntityNotFound.class,() -> {\n LinkMerchantProductResponse linkMerchantProductResponse = merchantProductService.linkMerchantProduct(linkMerchantProductRequest);\n });\n\n String expectedMessage = \"Merchant not found\";\n String actualMessage = exception.getMessage();\n\n assertTrue(actualMessage.contains(expectedMessage));\n }", "title": "" }, { "docid": "533bbdbb610775b61b29d51bfcaeb2e7", "score": "0.5530692", "text": "private RestAssured when() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "923be24f8a8111c0b1bfc04cf503d411", "score": "0.55303407", "text": "@Test\n public void attackReturnFirstTargetMockito() {\n //Arrange\n Henchman henchman = Mockito.mock(Henchman.class);\n when(henchman.getTargets(any(String.class))).thenReturn(TestData.TARGET_LIST);\n //when(henchman.getTargets(anyString())).thenReturn(TestData.TARGET_LIST)\n ArgumentCaptor<String> captor = ArgumentCaptor.forClass(String.class);\n //Act\n sut.attack(henchman, TestData.COUNTRY);\n //Assert\n verify(henchman).getTargets(captor.capture());\n assertEquals(TestData.COUNTRY,captor.getValue());\n }", "title": "" }, { "docid": "546e77cbfeff847a5115910ca2c83492", "score": "0.55229914", "text": "@Test\n public void AcceptWinner_ShouldClearOpenBetsMade() throws NoPlayerCardException, BetNotExceptedException, NoCurrentRoundException, InvalidAmountException {\n GamingMachine gamingMachineA = new GamingMachine(mock(GamingMachineID.class));\n GamingMachine gamingMachineB = new GamingMachine(mock(GamingMachineID.class));\n\n ICashier cashier = mock(ICashier.class);\n IGamblerCard gamblerCard = mock(IGamblerCard.class);\n IGame game = mock(IGame.class);\n\n when(cashier.checkIfBetIsValid(any(IGamblerCard.class), any(Bet.class))).thenReturn(true);\n when(game.acceptBet(any(Bet.class), any(IGamingMachine.class))).thenReturn(true);\n\n gamingMachineA.connectCard(gamblerCard);\n gamingMachineB.connectCard(gamblerCard);\n gamingMachineA.placeBet(ARBITRARY_AMOUNT_IN_CENTS, game, cashier);\n gamingMachineB.placeBet(ARBITRARY_AMOUNT_IN_CENTS, game, cashier);\n\n gamingMachineA.acceptWinner(mock(BetResult.class), cashier);\n gamingMachineB.acceptWinner(null, cashier);\n\n verify(cashier, times(2)).checkIfBetIsValid(any(IGamblerCard.class), any(Bet.class));\n verify(game, times(2)).acceptBet(any(Bet.class), any(IGamingMachine.class));\n\n assertThat(gamingMachineA.getOpenBet(), is(nullValue()));\n assertThat(gamingMachineB.getOpenBet(), is(nullValue()));\n }", "title": "" }, { "docid": "1d11fd24daa7ab77a132509909c3b509", "score": "0.5513439", "text": "@Test(timeout = 4000)\n public void test103() throws Throwable {\n Contract contract0 = new Contract();\n Order order0 = new Order();\n order0.m_algoStrategy = \"id=6 modelOptomp: vol = 1.0 delta = N/A: modlPr+ce = N/A: pvDividend = N/A\";\n // Undeclared exception!\n try { \n EWrapperMsgGenerator.openOrder(0, contract0, order0, (OrderState) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"com.ib.client.EWrapperMsgGenerator\", e);\n }\n }", "title": "" }, { "docid": "a007b803be7ab5e4365827d8d2a12d56", "score": "0.55117095", "text": "@Test\n void testMethodInvocation () {\n\n //given that the mock behaves in a certain way\n given(databaseMock.querySalary(anyString())).willReturn(2345.6);\n\n //when the tested function is executed\n String salary = employee.getSalary();\n\n //ensure that the tested method called the function\n verify(databaseMock).querySalary(anyString());\n }", "title": "" }, { "docid": "262b26e5ae6da7c84822ca351cb34914", "score": "0.55032164", "text": "@Test\n public void removesLockOnUpdateDisposition() {\n // Arrange\n final String linkName = \"my-link-name\";\n final String sessionId = \"test-session-id\";\n final OffsetDateTime sessionLockedUntil = OffsetDateTime.now().plus(Duration.ofSeconds(30));\n final OffsetDateTime messageLockedUntil = sessionLockedUntil.plusSeconds(-1);\n\n final String lockToken = \"a-lock-token\";\n final Message message = mock(Message.class);\n final ServiceBusReceivedMessage receivedMessage = mock(ServiceBusReceivedMessage.class);\n\n when(messageSerializer.deserialize(message, ServiceBusReceivedMessage.class)).thenReturn(receivedMessage);\n\n when(receivedMessage.getSessionId()).thenReturn(sessionId);\n when(receivedMessage.getLockToken()).thenReturn(lockToken);\n when(receivedMessage.getLockedUntil()).thenReturn(messageLockedUntil);\n\n when(amqpReceiveLink.getLinkName()).thenReturn(linkName);\n when(amqpReceiveLink.getSessionId()).thenReturn(Mono.just(sessionId));\n when(amqpReceiveLink.getSessionLockedUntil())\n .thenAnswer(invocation -> Mono.defer(() -> Mono.just(sessionLockedUntil)));\n\n when(amqpReceiveLink.updateDisposition(lockToken, Accepted.getInstance())).thenReturn(Mono.empty());\n\n when(amqpReceiveLink.closeAsync()).thenReturn(Mono.empty());\n\n final AmqpRetryOptions retryOptions = new AmqpRetryOptions();\n final Scheduler scheduler = Schedulers.boundedElastic();\n final Duration maxSessionRenewalDuration = Duration.ofMinutes(5);\n final ServiceBusSessionReceiver sessionReceiver = new ServiceBusSessionReceiver(sessionId, amqpReceiveLink,\n messageSerializer, retryOptions, 1, scheduler,\n unused -> renewSessionLock(Duration.ofMinutes(1)), maxSessionRenewalDuration, NO_SESSION_IDLE_TIMEOUT);\n\n // Act & Assert\n try {\n StepVerifier.create(sessionReceiver.receive())\n .then(() -> {\n assertFalse(sessionReceiver.containsLockToken(lockToken));\n\n messagePublisher.next(message);\n })\n .assertNext(actual -> {\n assertEquals(receivedMessage, actual.getMessage());\n assertEquals(sessionId, actual.getSessionId());\n assertEquals(messageLockedUntil, actual.getMessage().getLockedUntil());\n })\n .thenCancel()\n .verify(Duration.ofSeconds(2));\n\n assertTrue(sessionReceiver.containsLockToken(lockToken));\n\n StepVerifier.create(sessionReceiver.updateDisposition(lockToken, Accepted.getInstance()))\n .expectComplete()\n .verify(Duration.ofSeconds(2));\n\n assertFalse(sessionReceiver.containsLockToken(lockToken));\n } finally {\n sessionReceiver.close();\n }\n }", "title": "" }, { "docid": "010eba6fb0891c789c18e000c0d887cb", "score": "0.54999715", "text": "@Test\r\n public void testAssignCar_FAIL() {\r\n Car car = mock(Car.class);\r\n Reservation res1 = spy(Reservation.class);\r\n Reservation res2 = spy(Reservation.class);\r\n LocalDate startDate = LocalDate.now().plusDays(1);\r\n LocalDate endDate = LocalDate.now().plusDays(2);\r\n \r\n Set<Car> cars = new HashSet<>();\r\n cars.add(car);\r\n \r\n List<Reservation> carRes = new ArrayList<>();\r\n carRes.add(res2);\r\n res2.setState(ReservationStateEnum.READY.name());\r\n \r\n doReturn(CarStateEnum.OKAY.name()).when(car).getState();\r\n doReturn(cars).when(carDao).findAll();\r\n doReturn(carRes).when(reservationDao).findAllByCarAndStartDateBeforeAndEndDateAfter(car, endDate.plusDays(1), startDate.minusDays(1));\r\n doReturn(endDate).when(res1).getEndDate();\r\n doReturn(startDate).when(res1).getStartDate();\r\n \r\n rc.assignCar(res1);\r\n \r\n verify(reservationDao).save(res1);\r\n assertEquals(null, res1.getCar());\r\n assertEquals(ReservationStateEnum.FAIL.name(), res1.getState());\r\n }", "title": "" }, { "docid": "45e888840a2ecea52ca5346188f93323", "score": "0.5497657", "text": "@Test\n public void whenReminderUpdatedUnsuccessful(){\n Mockito.when(view.getViewModel()).thenReturn(INACTIVE_REMINDER);\n\n Mockito.when(reminderService.updateReminder(INACTIVE_REMINDER))\n .thenReturn(Observable.error(new Exception(\"Something went wrong\")));\n\n presenter.onDoneIconPress();\n\n Mockito.verify(view).makeToast(R.string.error_database_write_failure);\n }", "title": "" }, { "docid": "91c6f6fda4ca51b4a0537b9c3cb57168", "score": "0.5497104", "text": "@Test\n\tpublic void test()\n\t{\n\t\n\t\n\twhen(mock.someMethod(\"some arg\")).thenThrow(new RuntimeException()).thenReturn(\"foo\");\n\t\t \n\t\t//First call: throws runtime exception:\n\t\tmock.someMethod(\"some arg\");\n\t\t \n\t\t//Second call: prints \"foo\"\n\t\tSystem.out.println(mock.someMethod(\"some arg\"));\n\t \n\t//Any consecutive call: prints \"foo\" as well (last stubbing wins).\n\tSystem.out.println(mock.someMethod(\"some arg\"));\n\t\t\n\t}", "title": "" }, { "docid": "f7596bb6fa5795cc8c131cacf0c7d0e0", "score": "0.54955524", "text": "@Before\n public void setUp() {\n response = Optional.empty();\n lastPaymentId = Optional.empty();\n }", "title": "" }, { "docid": "bd614fe0b3e8fd45db610570e7014e8d", "score": "0.5493189", "text": "@SuppressWarnings(\"unchecked\")\r\n public void testHandleEvents() throws Exception\r\n {\r\n OutgoingMessageHandler handler = new MyOutgoingMessageHandler(msgFactory);\r\n handler.setOrderRouteManager(new MessageRouteManager());\r\n NullQuickFIXSender quickFIXSender = new NullQuickFIXSender();\r\n \t\thandler.setQuickFIXSender(quickFIXSender);\r\n \r\n \t\tMessage newOrder = msgFactory.newMarketOrder(\"bob\", Side.BUY, new BigDecimal(100), new MSymbol(\"IBM\"),\r\n TimeInForce.DAY, \"bob\");\r\n Message cancelOrder = msgFactory.newCancel(\"bob\", \"bob\",\r\n Side.SELL, new BigDecimal(7), new MSymbol(\"TOLI\"), \"redParty\");\r\n \r\n List<Message> orderList = Arrays.asList(newOrder, cancelOrder);\r\n List<Message> responses = new LinkedList<Message>();\r\n for (Message message : orderList) {\r\n responses.add(handler.handleMessage(message));\r\n \t\t}\r\n \r\n // verify that we have 2 orders on the mQF sink and 1 on the incomingJMS\r\n assertEquals(\"not enough events on the QF output\", 2, quickFIXSender.getCapturedMessages().size());\r\n assertEquals(\"first output should be outgoing execReport\", MsgType.EXECUTION_REPORT,\r\n responses.get(0).getHeader().getString(MsgType.FIELD));\r\n assertEquals(\"2nd event should be original buy order\", newOrder,\r\n quickFIXSender.getCapturedMessages().get(0));\r\n assertEquals(\"3rd event should be cancel order\", cancelOrder,\r\n quickFIXSender.getCapturedMessages().get(1));\r\n \r\n // put an orderID in since immediate execReport doesn't have one and we need one for validation\r\n responses.get(0).setField(new OrderID(\"fake-order-id\"));\r\n verifyExecutionReport(responses.get(0));\r\n }", "title": "" }, { "docid": "b9d16c20860ca9f60598601c82fcf122", "score": "0.54926807", "text": "@Test\r\n public void testFindReservations_DM() {\r\n Employee user = mock(Employee.class);\r\n Employee emp1 = mock(Employee.class);\r\n Employee emp2 = mock(Employee.class);\r\n Employee emp3 = mock(Employee.class);\r\n \r\n Reservation res1 = mock(Reservation.class);\r\n Reservation res2 = mock(Reservation.class);\r\n Reservation res3 = mock(Reservation.class);\r\n Reservation res4 = mock(Reservation.class);\r\n \r\n Department dep1 = mock(Department.class);\r\n Department dep2 = mock(Department.class);\r\n \r\n Set<Reservation> reservations = new HashSet<>();\r\n reservations.add(res1);\r\n reservations.add(res2);\r\n reservations.add(res3);\r\n reservations.add(res4);\r\n \r\n doReturn(emp1).when(res1).getEmployee();\r\n doReturn(emp2).when(res2).getEmployee();\r\n doReturn(emp3).when(res3).getEmployee();\r\n doReturn(user).when(res4).getEmployee();\r\n \r\n doReturn(dep1).when(emp1).getDepartment();\r\n doReturn(dep2).when(emp2).getDepartment();\r\n doReturn(dep1).when(emp3).getDepartment();\r\n doReturn(dep1).when(user).getManaging();\r\n \r\n doReturn(ReservationStateEnum.NEW.name()).when(res1).getState();\r\n doReturn(ReservationStateEnum.SUBMITTED.name()).when(res3).getState();\r\n doReturn(ReservationStateEnum.NEW.name()).when(res4).getState();\r\n \r\n doReturn(reservations).when(reservationDao).findAll();\r\n \r\n doReturn(false).when(ec).hasRole(user, RoleEnum.CEO);\r\n doReturn(true).when(ec).hasRole(user, RoleEnum.DM);\r\n \r\n Set<Reservation> result = rc.findReservations(user);\r\n \r\n assertThat(result, hasItem(res3));\r\n assertThat(result, hasItem(res4));\r\n assertEquals(2, result.size());\r\n }", "title": "" }, { "docid": "dc8f673467f8bb30edf2e1541e31f50f", "score": "0.54842347", "text": "@Test\n public void clientAlreadyRegistered() {\n }", "title": "" }, { "docid": "732d0c9aa63ad170b923c0a512153612", "score": "0.54839283", "text": "@Test\n public void testIncomingAlerting () {\n\n String status = \"ALERTING\";\n\n setIncomingRequestParameters(sessionId, status, callerId, timestamp);\n\n Mockito.when(allPhoneCalls.findBySessionId(sessionId)).thenReturn(null);\n\n ivrController.incoming(request, response);\n\n verify(allPhoneCalls, times(1)).findBySessionId(sessionId);\n\n ArgumentCaptor<PhoneCall> argumentCall = ArgumentCaptor.forClass(PhoneCall.class);\n verify(allPhoneCalls, times(1)).add(argumentCall.capture());\n PhoneCall call = argumentCall.getValue();\n\n PhoneCallEvent event = call.getEvent(PhoneCallEvent.Status.ALERTING);\n assertNotNull(event);\n\n verify(allPhoneCalls, times(1)).update(call);\n verify(eventRelay, never()).sendEventMessage(Matchers.<MotechEvent>anyObject());\n\n assertEquals(sessionId, call.getSessionId());\n assertEquals(sessionId, call.getId());\n assertEquals(PhoneCall.Direction.INCOMING, call.getDirection());\n\n assertEquals(callerId, event.getCallerId());\n assertEquals(PhoneCallEvent.Status.valueOf(status), event.getStatus());\n assertEquals(new Long(timestamp), event.getTimestamp());\n\n assertEquals(new Date(new Long(timestamp)), call.getStartDate());\n assertNull(call.getAnswerDate());\n assertNull(call.getDuration());\n assertNull(call.getEndDate());\n }", "title": "" }, { "docid": "b44386c71c1e724527fcf2345856ec5f", "score": "0.5479577", "text": "@Test(timeout = 4000)\n public void test106() throws Throwable {\n Vector<Object> vector0 = new Vector<Object>();\n Contract contract0 = new Contract(12, \"BAG\", \"BAG\", \"BAG\", 12, \"BAG\", \"BAG\", \"BAG\", \"BAG\", \"BAG\", vector0, \"BAG\", true, \"BAG\", \"BAG\");\n contract0.m_comboLegsDescrip = \"BAG\";\n Order order0 = new Order();\n // Undeclared exception!\n try { \n EWrapperMsgGenerator.openOrder(12, contract0, order0, (OrderState) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"com.ib.client.EWrapperMsgGenerator\", e);\n }\n }", "title": "" }, { "docid": "e90922ab2c1f5b01690d4f9d1e40b5fe", "score": "0.54762864", "text": "@Test\n public void GetRollResultCallsCalculateNumberOfHits() {\n when(_mathEngine.getRollResult(_numberOfDice, _toHit, _toWound, _rerollOnesToHit, _rerollAllToHit, _rerollOnesToWound, _rerollAllToWound)).thenReturn(new RollResultModel(1, 1));\n\n //Assert\n verify(_mathEngine, times(1)).calculateNumberOfHits(_numberOfDice, _toHit, _rerollOnesToHit, _rerollAllToHit);\n }", "title": "" }, { "docid": "d465b1f102127e4d6c8a16c6403af1e1", "score": "0.5475398", "text": "@Test\n public void test_withCompleteIsolation() {\n Dependency mockedDependency = mock(Dependency.class);\n doThrow(new RuntimeException()).when(mockedDependency).operationX();\n when(mockedDependency.operationY()).thenReturn(\"myString\");\n\n // Create a 'Dependent' object by injecting mocked dependency\n Dependent classUnderTest = new Dependent(mockedDependency);\n\n // Test whether method1() bubbles up exception\n try {\n classUnderTest.method1();\n fail(\"Should have thrown an exception\");\n } catch (RuntimeException e) {\n assertTrue(true);\n }\n\n // Test whether method2() calculates right string length\n int expected = 8;\n int actual = classUnderTest.method2();\n assertEquals(expected, actual);\n }", "title": "" }, { "docid": "c1ed4c74ed7a27e53117a90cea01a80e", "score": "0.5469601", "text": "@Test\n public void testReinforcementCalculationWithoutBonus() {\n System.out.println(\"5. check ReinforcementCalculationWithoutBonus\");\n // given: one continent has only one country\n int l_ContinentValue = 8;\n Continent l_Continent = new Continent(\"NorthAmerica\", l_ContinentValue);\n Country l_Country = new Country(\"Canada\");\n\n // the continent is not owned by the player to be tested\n Player l_Player = new Player(\"Red\");\n Player l_AnotherPlayer = new Player(\"Blue\");\n l_Country.setOwner(l_AnotherPlayer);\n\n l_Continent.getCountries().put(l_Country.getName(), l_Country);\n List<Continent> l_ContinentList = new ArrayList<>();\n l_ContinentList.add(l_Continent);\n\n // mock and stub\n GameData l_GameData = mock(GameData.class);\n given(l_GameData.getContinentList()).willReturn((ArrayList<Continent>) l_ContinentList);\n GameEngineController l_GameEngine = new GameEngineController(l_GameData);\n\n // when\n int l_ReinforcementBonus = l_GameEngine.calculateReinforcement(l_Player);\n\n // then\n assertEquals(3, l_ReinforcementBonus);\n\n }", "title": "" }, { "docid": "35a094624f1ec23f5d39927c9e1fb7cd", "score": "0.54622793", "text": "@Test(timeout = 4000)\n public void test104() throws Throwable {\n Contract contract0 = new Contract();\n UnderComp underComp0 = new UnderComp();\n contract0.m_underComp = underComp0;\n Order order0 = new Order();\n // Undeclared exception!\n try { \n EWrapperMsgGenerator.openOrder(3, contract0, order0, (OrderState) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"com.ib.client.EWrapperMsgGenerator\", e);\n }\n }", "title": "" }, { "docid": "84d18b445d05fd3559c9e1dbd8f868ee", "score": "0.54586494", "text": "@Override\n @Test\n public void testPurgeInvalid() {}", "title": "" }, { "docid": "8b823826eb6b38c85577586bc18c24d6", "score": "0.5457414", "text": "@Test\n public void testUnavailable(){\n Customer cust = Mockito.mock(Customer.class);\n test.rentCat(cust);\n assertFalse(test.isAvailable());\n }", "title": "" }, { "docid": "67326488598b0265f1dbdfd80aa35b39", "score": "0.54568905", "text": "public interface MockSecKillService {\n\n public boolean buy(int goodsid,int num);\n\n}", "title": "" }, { "docid": "2d50a8bf7239ad2a874366fcac3813bb", "score": "0.54562753", "text": "@Test\n public void testHandle_NullGame_InactiveGame(){\n when(session.attribute(PostSignInRoute.PLAYER_SESSION_KEY)).thenReturn(player);\n player.setIsTurn(true);\n when(player.getIsTurn()).thenReturn(true);\n Game game = mock(Game.class);\n when(gameCenter.getGameFromPlayer(player)).thenReturn(0);\n when(gameCenter.getGame(0)).thenReturn(null);\n when(game.getActive()).thenReturn(false);\n assertEquals(gson.toJson(Message.info(\"true\")), CuT.handle(request, response));\n }", "title": "" }, { "docid": "fda8c1fdbe2c9fde4295ab28d5ed063a", "score": "0.54540503", "text": "@Before\n\tpublic void setup() {\n//\t\tthis.a = new Abacus();\n\t\t\n\t\ta = mock(Abacus.class); //I'm using a static method from mockito to tell it to mock Abacus\n\t\t\n\t\t//stubbing -- How would you define the following (concisely) ? \n\t\twhen(a.basicAdd(2, 3)).thenReturn(5.0);\n\t\twhen(a.basicAdd(2, 3.07)).thenReturn(5.07);\n\t\t\n\t\twhen(a.divide(0, 0)).thenThrow(ArithmeticException.class);\n\t\t\n\t\tthis.c = new Casio(a);\n\t}", "title": "" }, { "docid": "bab3318f8aea1d4846069755c1372e02", "score": "0.5453134", "text": "@Test\n public void testHandlerEdgeCases() throws Exception {\n Logger.getLogger(getClass()).info(\"TEST \" + name.getMethodName());\n // Call getTerminologyId(new ConceptJpa())\n // TEST: returns null\n assertEquals(handlerService.getTerminologyId(new ConceptJpa()), null);\n }", "title": "" }, { "docid": "afa6897b7dddf679c6e7a40ef240627b", "score": "0.5449311", "text": "public void testClientWithoutBus() throws Exception {\n\t}", "title": "" }, { "docid": "45a6ea8be720f11f177dd08351ef1ca3", "score": "0.5448983", "text": "@Test\n public void PlaceBet_ShouldThrowNoPlayerCardExceptionIfNoGamblerCardIsConnectedWhenMakingBet() throws NoPlayerCardException {\n expectedException.expect(NoPlayerCardException.class);\n GamingMachine gamingMachine = new GamingMachine(mock(GamingMachineID.class));\n ICashier cashier = mock(ICashier.class);\n IGame game = mock(IGame.class);\n\n gamingMachine.placeBet(ARBITRARY_AMOUNT_IN_CENTS, game, cashier);\n }", "title": "" }, { "docid": "cbe306226e5bfd45edc1f4715f98b7e1", "score": "0.54425704", "text": "@Test\n public void buildInitThrowsIfNotWaitingToBuildInit() {\n assertThrows(IllegalStateException.class, () -> {\n //arrange\n AmqpsProvisioningSaslHandler handler = Deencapsulation.newInstance(AmqpsProvisioningSaslHandler.class, idScope, registrationId, endorsementKey, storageRootKey, mockedResponseCallback, new Object());\n\n //act\n handler.getInitPayload(\"TPM\");\n });\n }", "title": "" }, { "docid": "1ca31fc72ac769c3dff5e9183bb76e1d", "score": "0.5436532", "text": "@Test\n @Ignore(\"TODO: This test is broken, please fix me\")\n public void testOrder()\n {\n Comparator<ContentItem> c = new ContentItemOrder();\n int result;\n\n IPSGuid itemId = context.mock(IPSGuid.class,\"itemId\");\n IPSGuid templateId = context.mock(IPSGuid.class, \"templateId\");\n\n \n // #1: check with valid sort ranks\n ContentItem item1 = (ContentItem) context.mock(IPSFilterItem.class,\"item1\");\n item1.setItemId(itemId);\n item1.setTemplate(templateId);\n item1.setSortrank(1);\n\n ContentItem item2 = (ContentItem)context.mock(IPSFilterItem.class, \"item2\");\n item2.setSortrank(2);\n item2.setTemplate(templateId);\n item2.setItemId(itemId);\n\n context.checking(new Expectations() {\n {\n never (item1);\n }\n\n });\n //itemId.expects(never());\n result = c.compare(item1, item2);\n assertTrue(result < 0);\n result = c.compare(item2, item1);\n assertTrue(result > 0);\n context.assertIsSatisfied();\n \n // #2: equal sort ranks, no relationship ids = should use item id\n item1.setSortrank(0);\n item2.setSortrank(0);\n\n context.checking(new Expectations() {\n {\n atLeast(1).of(itemId).longValue(); will(onConsecutiveCalls(returnValue((long)1), returnValue((long)2)));\n\n }\n\n });\n\n result = c.compare(item1, item2);;\n assertTrue(result<0);\n context.assertIsSatisfied();\n\n \n // #3: equal sort ranks, only one relationship id = should use item id\n IPSGuid relationshipId = context.mock(IPSGuid.class,\"relationshipId\");\n\n\n\n item1.setRelationshipId((IPSGuid)relationshipId);\n\n context.checking(new Expectations() {\n {\n never(relationshipId);\n atLeast(1).of(itemId).longValue(); will(onConsecutiveCalls(returnValue((long)1), returnValue((long)2)));\n }\n\n });\n\n\n result = c.compare(item1, item2);\n assertTrue(result < 0);\n context.assertIsSatisfied();\n\n // #4: equal sort ranks, both relationship id = should use relationship id\n item2.setRelationshipId(relationshipId);\n\n context.checking(new Expectations() {\n {\n\n atLeast(1).of(relationshipId).longValue(); will(onConsecutiveCalls(returnValue((long)20), returnValue((long)10)));\n never(itemId);\n }\n\n });\n\n result = c.compare(item1, item2);\n assertTrue(result > 0);\n context.assertIsSatisfied();\n\n }", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "9df7b0786025a10786b06a280e75b86e", "score": "0.0", "text": "public static void main(String[] args) {\n\t\tSystem.setProperty(\"webdriver.gecko.driver\", \"C:\\\\Users\\\\AshwiniND\\\\Downloads\\\\Java instal\\\\geckodriver-v0.24.0-win64\\\\geckodriver.exe\");\r\n\t\tWebDriver driver = new FirefoxDriver();\r\n\t\t\r\n\t\tdriver.manage().deleteAllCookies();\r\n\t\tdriver.manage().window().maximize();\r\n\t\tdriver.manage().timeouts().pageLoadTimeout(40,TimeUnit.SECONDS);\r\n\t\tdriver.get(\"https://gsuite.google.com/products/gmail/\");\r\n\t\tSystem.out.println(driver.getTitle());\r\n\t\tdriver.findElement(By.xpath(\"/html/body/header/div/div[1]/div[5]/ul/li[2]/a\")).click();\r\n\t\tdriver.findElement(By.xpath(\"//*[@id=\\\"yDmH0d\\\"]/c-wiz/div[2]/div[2]/section/div/div[1]/div[1]/c-wiz[2]/div/div[1]/div/div[1]/input\")).sendKeys(\"Tsting\");\r\n\t\tdriver.findElement(By.xpath(\"//*[@id=\\\"yDmH0d\\\"]/c-wiz/div[2]/div[2]/section/div/div[1]/div[1]/c-wiz[3]/div/div[1]/span/label[3]/div/div[3]/div\")).click();\r\n\t\t\r\n\t\t//Taking screenshot and copy that in file\r\n\t\t//File src = ((TakesScreenshot)driver).getScreenshotAs(OutputType<T>.FILE);\r\n\t\t\r\n\t\t//FileUtils.copyFile(src, new File(\"c:\\\\Users\\\\AshwiniND\\\\Downloads\"));\r\n\t\t\r\n\t\t\r\n\t\t//selecting dropdown value\r\n\t\tSelect DD= new Select(driver.findElement(By.xpath(\"//*[@id=\\\"yDmH0d\\\"]/c-wiz/div[2]/div[2]/section/div/div[1]/div[1]/c-wiz[5]/div/div[2]/div[1]/div[1]\")));\r\n\t\tDD.deselectByVisibleText(\"India\");\r\n\t\t\r\n\t\tdriver.findElement(By.xpath(\"//*[@id=\\\"yDmH0d\\\"]/c-wiz/div[2]/div[2]/section/div/div[1]/div[1]/c-wiz[6]/div/div/span/span\")).click();\r\n\t\t\t\t\r\n\t\tdriver.quit();\r\n\r\n\t}", "title": "" } ]
[ { "docid": "663ac6f718361fb243bf093a1c7ded6a", "score": "0.66285414", "text": "@Override\r\n\tprotected void Goukakyuu() {\n\t\t\r\n\t}", "title": "" }, { "docid": "80d20df1cc75d8fa96c12c49a757fc43", "score": "0.65323734", "text": "@Override\n\tprotected void getExras() {\n\t\t\n\t}", "title": "" }, { "docid": "80d20df1cc75d8fa96c12c49a757fc43", "score": "0.65323734", "text": "@Override\n\tprotected void getExras() {\n\t\t\n\t}", "title": "" }, { "docid": "5f8d37aee09bc1e9959f768d6eb0183c", "score": "0.6481211", "text": "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "title": "" }, { "docid": "7679fd1b623986eeedb64db808e99029", "score": "0.64387834", "text": "@Override\n\t\t\tpublic void fahre() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "646377f9a04958a6eeea1118fddba04e", "score": "0.64340436", "text": "@Override\n\tpublic void refuel() {\n\n\t}", "title": "" }, { "docid": "8484f1b37a8db0941e2722db3c988008", "score": "0.6240345", "text": "public void refuel() {\n\t\t\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": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.623686", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.623686", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "1010f244e972c0ea26ed77a119296c6c", "score": "0.62359196", "text": "@Override\r\n\tprotected void Mokuton() {\n\t\t\r\n\t}", "title": "" }, { "docid": "1e56eb875969a40be9b73939843db26f", "score": "0.6213003", "text": "public void starteWuerfelaktion() {\n\t\t\r\n\t}", "title": "" }, { "docid": "ccaf5f7aff0d6de105f523c68f63383c", "score": "0.6207747", "text": "private void cathc() {\n\t\t\r\n\t}", "title": "" }, { "docid": "d65d6c17fb978c0d576ada2c03cd49fe", "score": "0.61387193", "text": "@Override\n\tpublic void apagar() {\n\t\t\n\t}", "title": "" }, { "docid": "a1f605ca3e07976447a751ccd937b4db", "score": "0.61104095", "text": "@Override public int ataque(){\n return 0;\n }", "title": "" }, { "docid": "c8ceec30e6f3ebd2fb8cab39b477d3f3", "score": "0.61064756", "text": "private static void sapxep() {\n\t\t\n\t}", "title": "" }, { "docid": "67e1a422c8d1e74f6601c8a6d1aaa237", "score": "0.6071615", "text": "@Override\n\tpublic void apagar() {\n\n\t}", "title": "" }, { "docid": "cce15f647f795017e06f2ca544477ccd", "score": "0.6063628", "text": "@Override\n\tpublic void chamCong() {\n\n\t}", "title": "" }, { "docid": "5602bebd0acaf2caa678957a2c24842b", "score": "0.6060216", "text": "@Override\r\n\tpublic void overAll() {\n\r\n\t}", "title": "" }, { "docid": "b1cf16017c8057c0255a9ad368ecaee5", "score": "0.60185045", "text": "@Override\r\n\tprotected void init() {\n\r\n\t}", "title": "" }, { "docid": "a6c2db17f79f35f8fc3b8e99eee9ab48", "score": "0.60124713", "text": "@Override\r\n\tprotected void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "d04504187907e1d84ed24fc616f45486", "score": "0.60087866", "text": "@Override\r\n\tpublic void inteface() {\n\t\t\r\n\t}", "title": "" }, { "docid": "428377dd8e49bc1cf5ac0e5d064029b3", "score": "0.6004459", "text": "@Override\r\n\tpublic void preco() {\n\r\n\t}", "title": "" }, { "docid": "4c743a5e5106c55466224d75f817448a", "score": "0.5945002", "text": "@Override\r\n\t\tpublic void ustSoyut() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "825fd65cd166afe72a9eff8424570f29", "score": "0.5943726", "text": "@Override\n\tpublic void setingInicial() {\n\n\t}", "title": "" }, { "docid": "19006c0661c5e3b653400b5da2beb934", "score": "0.59422", "text": "@Override\n\tpublic void pintar() {\n\t\t\n\t}", "title": "" }, { "docid": "19006c0661c5e3b653400b5da2beb934", "score": "0.59422", "text": "@Override\n\tpublic void pintar() {\n\t\t\n\t}", "title": "" }, { "docid": "ea4341d488d9be09cc755218b65fadf5", "score": "0.5906771", "text": "@Override\n public void preRetrieving() {\n }", "title": "" }, { "docid": "2fff6ed2c85a2b41abbe75775d352730", "score": "0.5904324", "text": "@Override\n\tpublic void contaminate() {\n\t\t// TODO Auto-generated method stub\t\n\t}", "title": "" }, { "docid": "4f4340003331db95a2feee0084056a02", "score": "0.59033096", "text": "@Override\n\tprotected void inicializar() {\n\n\t}", "title": "" }, { "docid": "9c48473814fa377ca395f7395203f48c", "score": "0.58910286", "text": "@Override\n\tprotected void dataAcquisition() {\n\n\t}", "title": "" }, { "docid": "1c143d94a2852990351338ba13e5399d", "score": "0.5888907", "text": "@Override\n\t\t\tvoid mothed() {\n\t\t\t}", "title": "" }, { "docid": "7f91c82c66ced12c5b193d3c89d68e4c", "score": "0.5883667", "text": "@Override\n\tprotected void init() {\n\t}", "title": "" }, { "docid": "8ac2c16a1254157c46ed1cdb437fe4f0", "score": "0.5880522", "text": "@Override\r\n\t\tpublic void ustSoyut2() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "712966778e94b206218092a51b836bb7", "score": "0.58803016", "text": "@Override\n\tpublic void tata() {\n\t\t\n\t}", "title": "" }, { "docid": "18d768f6f48ac88822b7bb8bccfac09e", "score": "0.5862438", "text": "public void mo18903b() {\n }", "title": "" }, { "docid": "c5ce5c6476f6c0a0be2e0ff930a7950e", "score": "0.58619136", "text": "@Override public int defensa(){\n return 0;\n }", "title": "" }, { "docid": "0e87d402221278c3889063822e567959", "score": "0.58611584", "text": "protected void sift() {\n\t\t\r\n\t}", "title": "" }, { "docid": "4967494f628119c8d3a4740e09278944", "score": "0.5857751", "text": "@Override\r\n\tprotected void initData() {\n\r\n\t}", "title": "" }, { "docid": "677e1bcc5ce2d0f98ae32478866994ca", "score": "0.5838853", "text": "@Override\n\tpublic void communiquer() {\n\t\t\n\t}", "title": "" }, { "docid": "fab6f4103beb4667b90da1eb3672a4fa", "score": "0.5821835", "text": "@Override\n\tprotected void update() {\n\n\t}", "title": "" }, { "docid": "45ec6548b6e93f86b574cc156cb7b6e8", "score": "0.5820645", "text": "@Override\r\n\t\t\tpublic void initData()\r\n\t\t\t{\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "9a618b27fbeac32212f9b2e740d96efb", "score": "0.58155555", "text": "@Override\r\n\tpublic void 계산하다() {\n\r\n\t}", "title": "" }, { "docid": "d1236089c8974701d0acd37b2cad6d5b", "score": "0.5809914", "text": "@Override\n\tpublic void init(){\n\t\t\n\t}", "title": "" }, { "docid": "6a181a924bbab2aef67a83a2090b6fe5", "score": "0.5800962", "text": "@Override\n\t\tpublic void freshStart() {\n\t\t\t// TODO Auto-generated method stub\n\t\t}", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5792378", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.57844025", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "06012d51723afddd7b9003b92d7d49c3", "score": "0.5783461", "text": "protected void mo1734a() {\n }", "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": "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": "cfdf25944086a38f063107aad70f2f0b", "score": "0.5766042", "text": "@Override\r\n\tprotected void visit() {\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": "ec8745d1f613de3522e52b19973434de", "score": "0.5755148", "text": "@Override\n protected void initialize()\n {\n\n }", "title": "" }, { "docid": "ebfe1bb4dd1c0618c0fad36d9f7674b4", "score": "0.57512486", "text": "@Override\n protected void initialize() {\n\n }", "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": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b6c53604ad2f38e9cacf958a442de4cf", "score": "0.57409", "text": "@Override\n\tprotected void initAfterData() {\n\n\t}", "title": "" }, { "docid": "a6f30265b22f810fdcc712e54cb1e81c", "score": "0.57399535", "text": "@Override\n\tpublic void byby() {\n\t\t\n\t}", "title": "" }, { "docid": "734b1972ec29b58535c294e3962d017d", "score": "0.5736822", "text": "@Override\n\tpublic void generar() {\n\t\t\n\t}", "title": "" }, { "docid": "17781c799f004311d8f8ad31648157ed", "score": "0.57339567", "text": "private void identify(){\r\n\t\t\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": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "90a583a9686287e3374351dca59e3033", "score": "0.5721244", "text": "@Override\r\n\tpublic void abrir() {\n\r\n\t}", "title": "" }, { "docid": "1c4063058b784c69f3e491b8fe1c5d87", "score": "0.57200766", "text": "@Override\r\n\tpublic void vivir() {\n\t\t\r\n\t}", "title": "" }, { "docid": "3725f6f559f3adf4f03ebc1fb569a203", "score": "0.57187486", "text": "public void afficher(){\r\n\t\t\r\n\t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5715831", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "41872c9e2437abffdf2c5c6f8635bf62", "score": "0.5714925", "text": "@Override\n public void generate()\n {\n }", "title": "" }, { "docid": "fda8f619b8e2eb741dec9fcd5bf2e54c", "score": "0.5705268", "text": "@Override\r\n\tpublic void 念经() {\n\t\t\r\n\t}", "title": "" }, { "docid": "937f11d6d748f7b358f71d8d4239cafc", "score": "0.57020056", "text": "@Override\n\tpublic void afisareEl() {\n\t\t\n\t}", "title": "" }, { "docid": "7aadbda143e84de0144f7a8dadde423d", "score": "0.5701067", "text": "@Override\n protected void initData() {\n\n }", "title": "" }, { "docid": "39132efb6b42f8ec625d96ff6226d80b", "score": "0.56991017", "text": "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "title": "" }, { "docid": "15568346f60c78b5a5c404fbb6d1e685", "score": "0.5693754", "text": "@Override\n\tvoid affiche() {\n\t\t\n\t}", "title": "" }, { "docid": "9e8299e02e2afca4b347ab5022949b84", "score": "0.56936175", "text": "@Override\n public void rest() {\n \n }", "title": "" }, { "docid": "9f7ae565c79188ee275e5778abe03250", "score": "0.56881124", "text": "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "title": "" }, { "docid": "706722a65afe51ea925901f584f25118", "score": "0.5672425", "text": "@Override\n\tpublic void morir() {\n\t}", "title": "" }, { "docid": "fe16626444a6279379e0f9633775ecc4", "score": "0.5671583", "text": "@Override\r\n\tpublic void 撞钟() {\n\t\t\r\n\t}", "title": "" }, { "docid": "6c7f3bb62b62ab0efc25de23710ee029", "score": "0.5669814", "text": "@Override\n\tpublic void concentrarse() {\n\t\t\n\t}", "title": "" }, { "docid": "a71f185dfaf7230b8e77ee6f6a04d21b", "score": "0.5665494", "text": "@Override\n\tvoid rr() {\n\t\t\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": "c0eeb7bb899cafc556cf19801d318ce5", "score": "0.5647088", "text": "@Override\n\tprotected void initFiled() {\n\t\t\n\t}", "title": "" }, { "docid": "011174700bb7f7659f04c634fa0372f8", "score": "0.5644147", "text": "@Override\n\tpublic void arrancar() {\n\t\t\n\t}", "title": "" }, { "docid": "95be4fdee6d995b424f0a4e840e2c875", "score": "0.56325483", "text": "@Override\r\n\tpublic void init()\r\n\t{\r\n\t}", "title": "" }, { "docid": "da4fa7e263bb2e6d703854259aaf6363", "score": "0.5630819", "text": "@Override\n\tprotected void initialize() \n\t{\n\t\t\n\t}", "title": "" }, { "docid": "e41e83e59c632c7e6180786a0238f944", "score": "0.56188065", "text": "@Override\r\n\tpublic void cry() {\n\t\t\r\n\t}", "title": "" }, { "docid": "f74fdb4945ba76b9dd3ab3b908142716", "score": "0.561768", "text": "@Override\r\n\tpublic void create() {\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "43f6d8e11245e9c1f9ec60b758a00a74", "score": "0.56113946", "text": "@Override\n\t\t\tpublic void abst_drink() {\n\t\t\t}", "title": "" }, { "docid": "57fad36f1e9515178fdc8e8afc8cc63c", "score": "0.56095", "text": "protected boolean method_2502() {\r\n return true;\r\n }", "title": "" }, { "docid": "b086aa458043018db12ea6c8dbfcc7c2", "score": "0.5587534", "text": "@Override\r\n\tprotected void processInit() {\n\r\n\t}", "title": "" }, { "docid": "b086aa458043018db12ea6c8dbfcc7c2", "score": "0.5587534", "text": "@Override\r\n\tprotected void processInit() {\n\r\n\t}", "title": "" }, { "docid": "7d7ee874da61c3db33c0d972ef288fe7", "score": "0.5578719", "text": "@Override\r\n\tpublic int discourse() {\n\t\treturn 75;\r\n\t}", "title": "" } ]
ffc8bdb36fc871b8c25263ab562190ad
Section 3.3.8 With statement context
[ { "docid": "39d936cc5a19201d9ec1ddf2cc4e0248", "score": "0.4513227", "text": "public org.python.Object __enter__() {\n throw new org.python.exceptions.AttributeError(this, \"__enter__\");\n }", "title": "" } ]
[ { "docid": "5205ce4c760a9afa3de49c483ab3a1db", "score": "0.6806314", "text": "@Override\n\t\tpublic AstNode visitWith_stmt(PythonParser.With_stmtContext ctx) {\n\t\t\tList<WithItem> items = ctx.with_item().stream()\n\t\t\t\t\t.map(e -> (WithItem) e.accept(this))\n\t\t\t\t\t.collect(Collectors.toList());\n\t\t\tSuite stmts = this.process(ctx.suite());\n\t\t\treturn new With(this.getLocInfo(ctx), items, stmts);\n\t\t}", "title": "" }, { "docid": "e3d85022f7ea849010264e8e03934370", "score": "0.61039704", "text": "public void _testWithKeyword() throws Exception {\n doTest(\"from __future__ import with_statement\\nwith x as y\", new String[] { \"Py:FROM_KEYWORD\", \"Py:SPACE\", \"Py:IDENTIFIER\", \"Py:SPACE\", \"Py:IMPORT_KEYWORD\", \"Py:SPACE\", \"Py:IDENTIFIER\",\n \"Py:STATEMENT_BREAK\", \"Py:LINE_BREAK\",\n \"Py:WITH_KEYWORD\", \"Py:SPACE\", \"Py:IDENTIFIER\", \"Py:SPACE\", \"Py:AS_KEYWORD\", \"Py:SPACE\", \"Py:IDENTIFIER\" });\n }", "title": "" }, { "docid": "4ae4de65b72e569d985b0e14dcd1c023", "score": "0.5819355", "text": "@Override\n\t\tpublic AstNode visitWith_item(PythonParser.With_itemContext ctx) {\n\t\t\tExpr item = (Expr) ctx.test().accept(this);\n\t\t\tExpr alias = ctx.expr() == null ? null : (Expr) ctx.expr().accept(this);\n\t\t\treturn new WithItem(this.getLocInfo(ctx), item, alias);\n\t\t}", "title": "" }, { "docid": "8f01024eff4038f69fe80caafdb3f6c1", "score": "0.5402386", "text": "public final IExecutable withStatement() throws RecognitionException {\r\n\t\tIExecutable node = null;\r\n\r\n\t\tToken ident = null;\r\n\t\tISelector selec = null;\r\n\r\n\t\tIExecutable bod = null;\r\n\r\n\t\ttry {\r\n\t\t\t// C:\\\\Users\\\\Lennart\\\\SCHOOL\\\\Software\r\n\t\t\t// Construction\\\\workspace\\\\Oberon0Interpreter\\\\src\\\\Oberon0.g:210:2:\r\n\t\t\t// ( 'WITH' ident= IDENT selec= selector 'DO' bod= statementSequence\r\n\t\t\t// 'END' )\r\n\t\t\t// C:\\\\Users\\\\Lennart\\\\SCHOOL\\\\Software\r\n\t\t\t// Construction\\\\workspace\\\\Oberon0Interpreter\\\\src\\\\Oberon0.g:210:3:\r\n\t\t\t// 'WITH' ident= IDENT selec= selector 'DO' bod= statementSequence\r\n\t\t\t// 'END'\r\n\t\t\t{\r\n\t\t\t\tmatch(input, 49, FOLLOW_49_in_withStatement1271);\r\n\t\t\t\tident = (Token) match(input, IDENT,\r\n\t\t\t\t\t\tFOLLOW_IDENT_in_withStatement1276);\r\n\t\t\t\tpushFollow(FOLLOW_selector_in_withStatement1280);\r\n\t\t\t\tselec = selector();\r\n\r\n\t\t\t\tstate._fsp--;\r\n\r\n\t\t\t\tmatch(input, DO, FOLLOW_DO_in_withStatement1284);\r\n\t\t\t\tpushFollow(FOLLOW_statementSequence_in_withStatement1291);\r\n\t\t\t\tbod = statementSequence();\r\n\r\n\t\t\t\tstate._fsp--;\r\n\r\n\t\t\t\tnode = new WithNode((ident != null ? ident.getText() : null),\r\n\t\t\t\t\t\tselec, bod);\r\n\t\t\t\tmatch(input, END, FOLLOW_END_in_withStatement1297);\r\n\r\n\t\t\t}\r\n\r\n\t\t} catch (RecognitionException re) {\r\n\t\t\treportError(re);\r\n\t\t\trecover(input, re);\r\n\t\t} finally {\r\n\t\t}\r\n\t\treturn node;\r\n\t}", "title": "" }, { "docid": "b540b12a92e8c0552d2fb85abd3f9a1f", "score": "0.5340552", "text": "public StatementWithScope(BdsNode parent, ParseTree tree) {\n\t\tsuper(parent, tree);\n\t}", "title": "" }, { "docid": "7328d78403bf8270403ed3f6b5f0ddda", "score": "0.5317412", "text": "@Override\n public Object visit(WithDef n, Object argu) {\n if (isWith) {\n n.accept((SqlSelect) sqlObject, argu);\n } else {\n SqlSelect aSqlSelect = new SqlSelect(client);\n n.accept(aSqlSelect, argu);\n sqlObject = aSqlSelect;\n isWith = true;\n }\n return null;\n }", "title": "" }, { "docid": "8eaf66652a9ab9dc5a458feb6fd7043b", "score": "0.52947605", "text": "@Override\n\tprotected void visitWithStatement(WithStatement statement) {\n\t\tRecordType record = _exprChecker.checkRecord(statement.getValue());\n\t\t\n\t\t// import fields in new scope\n\t\t_context.pushScope();\n\t\t\n\t\tfor(String field : record.getFields()) {\n\t\t\t_context.getScope().defineVar(field, record.getFieldType(field));\n\t\t}\n\t\t\n\t\tcheck(statement.getBody());\n\t\t_context.popScope();\n\t}", "title": "" }, { "docid": "2747361a3263f2f58297490bc3f1ca28", "score": "0.513757", "text": "public Do body(Stmt body) {\n\tDo_c n = (Do_c) copy();\n\tn.body = body;\n\treturn n;\n }", "title": "" }, { "docid": "545bce7dfcc8342a9e0d354de18a417a", "score": "0.5128984", "text": "private void transformStatement(ExtendedInstance instance, Resource subject) throws Exception{\n\t\tSet<Statement> newSetSt = new HashSet<Statement>();\n\n\t\t// Iterate over current set of statements\n\t\tfor(Statement st:instance.getStatements())\n\t\t\tnewSetSt.add(transformStatement(st, subject));\n\n\t\tinstance.replaceStatements(newSetSt);\n\t}", "title": "" }, { "docid": "975111497e0ecb2f4e02b39aae90a5fb", "score": "0.51204824", "text": "public void context(Testergen test) {\n Collection<Thing> t = null;\n test.<caret>x(t);\n }", "title": "" }, { "docid": "d656bd5bd18668875bd5f9997c5d4ec4", "score": "0.5067333", "text": "public Object visit(StatementExpression node, QslScope scope, Object ... objects) throws Exception;", "title": "" }, { "docid": "1cfcd054f3dd70dab2f51cc5b4d3c786", "score": "0.5041947", "text": "public void f(qw paramqw)\r\n/* 659: */ {\r\n/* 660:697 */ paramqw.a(paramqw.bh);\r\n/* 661:698 */ paramqw.r();\r\n/* 662:699 */ paramqw.a.a(new kv(paramqw.inventory.c));\r\n/* 663: */ }", "title": "" }, { "docid": "279105102672dc212644b640752c0915", "score": "0.5041573", "text": "protected Statement() {}", "title": "" }, { "docid": "5ce006cbff0a40632a8a37cd6295577b", "score": "0.5014813", "text": "VariableContext asVariableContext();", "title": "" }, { "docid": "20233dc7d488348faee5c84e3679cd26", "score": "0.4943965", "text": "public STObject exec(STObject self, STCompiledBlock method) {\n ctx = null;\n int firstArg;\n int secondArg;\n BlockContext initialContext = new BlockContext(this, method, self);\n pushContext(initialContext);\n while (ctx.ip < ctx.compiledBlock.bytecode.length) {\n if ( trace ) traceInstr();\n ctx.prev_ip = ctx.ip;\n int op = ctx.compiledBlock.bytecode[ctx.ip++];\n switch (op) {\n case Bytecode.BLOCK:\n int blockValue = consumeShort(ctx.ip);\n BlockDescriptor bd = new BlockDescriptor(ctx.enclosingMethodContext.compiledBlock.blocks[blockValue], ctx);\n ctx.push(bd);\n break;\n\n case Bytecode.BLOCK_RETURN:\n STObject s = ctx.pop();\n popContext();\n ctx.push(s);\n break;\n\n case Bytecode.DBG:\n int DbgValue = consumeShort(ctx.ip);\n ctx.currentFile = ctx.compiledBlock.literals[DbgValue];\n int DbgValue2 = consumeInt(ctx.ip);\n ctx.currentLine = DbgValue2>>8;\n ctx.currentCharPos = ( DbgValue2<<24)>>24;\n break;\n\n case Bytecode.FALSE:\n ctx.push(newBoolean(false));\n break;\n\n case Bytecode.NIL:\n ctx.push(nil());\n break;\n\n case Bytecode.PUSH_CHAR:\n ctx.push(newChar());\n break;\n\n case Bytecode.PUSH_INT:\n int push_int = consumeInt(ctx.ip);\n ctx.push(newInteger(push_int));\n break;\n\n case Bytecode.PUSH_FLOAT:\n Float push_float = Float.intBitsToFloat(consumeInt(ctx.ip));\n ctx.push(newFloat(push_float));\n break;\n\n case Bytecode.PUSH_FIELD:\n ctx.push(ctx.receiver.fields[consumeShort(ctx.ip)]);\n break;\n\n case Bytecode.PUSH_LOCAL:\n firstArg = consumeShort(ctx.ip);\n secondArg = consumeShort(ctx.ip);\n BlockContext tmpCtx = ctx;\n while (firstArg>0) {\n tmpCtx = tmpCtx.enclosingContext;\n firstArg--;\n }\n ctx.push(tmpCtx.locals[secondArg]);\n break;\n\n case Bytecode.PUSH_LITERAL:\n int literalIndex = consumeShort(ctx.ip);\n ctx.push(newString(ctx.compiledBlock.literals[literalIndex]));\n break;\n\n case Bytecode.PUSH_GLOBAL:\n literalIndex = consumeShort(ctx.ip);\n ctx.push(systemDict.lookup(ctx.compiledBlock.literals[literalIndex]));\n break;\n\n case Bytecode.PUSH_ARRAY:\n int arrayIndex = consumeShort(ctx.ip);\n ctx.push(newArray(this, arrayIndex));\n break;\n\n case Bytecode.POP:\n ctx.pop();\n break;\n\n case Bytecode.RETURN:\n STObject retValue = ctx.pop();\n if (ctx.enclosingMethodContext.enclosingContext != BlockContext.RETURNED) {\n ctx = ctx.enclosingMethodContext;\n ctx.enclosingContext = BlockContext.RETURNED;\n popContext();\n if (ctx == null) {\n return retValue;\n } else {\n ctx.push(retValue);\n }\n } else {\n error(\"BlockCannotReturn\", ctx.compiledBlock.enclosingClass.getName() + \">>\" +\n ctx.compiledBlock.name + \" can't trigger return again from method \" +\n ctx.enclosingMethodContext.compiledBlock.qualifiedName);\n }\n break;\n\n case Bytecode.SELF:\n ctx.push(ctx.receiver);\n break;\n\n case Bytecode.STORE_FIELD:\n int fieldsValue = consumeShort(ctx.ip);\n ctx.receiver.fields[fieldsValue] = ctx.top();\n break;\n\n case Bytecode.STORE_LOCAL:\n firstArg = consumeShort(ctx.ip);\n secondArg = consumeShort(ctx.ip);\n tmpCtx = ctx;\n while (firstArg > 0) {\n tmpCtx = tmpCtx.enclosingContext;\n firstArg--;\n }\n tmpCtx.locals[secondArg] = ctx.top();\n break;\n\n case Bytecode.SEND:\n int nArgs = consumeShort(ctx.ip);\n int Index = consumeShort(ctx.ip);\n STObject recv = ctx.stack[ctx.sp - nArgs];\n String msgName = ctx.compiledBlock.literals[Index];\n STCompiledBlock blk = recv.getSTClass().resolveMethod(msgName);\n if(!(recv instanceof STMetaClassObject) && blk.isClassMethod){\n throw new ClassMessageSentToInstance(msgName+\" is a class method sent to instance of \"+recv.metaclass.getName(), getVMStackString());\n }\n if (blk.isPrimitive()) {\n STObject result = blk.primitive.perform(ctx, nArgs);\n if (result != null) ctx.push(result);\n } else {\n if (recv instanceof STMetaClassObject && !blk.isClassMethod) {\n throw new MessageNotUnderstood(msgName+\" is an instance method sent to class object \"+ ((STMetaClassObject) recv).getName(), getVMStackString());\n }\n BlockContext newCtx = new BlockContext(this, blk, recv);\n newCtx.enclosingMethodContext = newCtx;\n for (int index = nArgs; index > 0; index--) newCtx.locals[index - 1] = ctx.pop();\n ctx.pop();\n pushContext(newCtx);\n }\n break;\n\n case Bytecode.SEND_SUPER:\n firstArg = consumeShort(ctx.ip);//\n STObject receiver = ctx.stack[ctx.sp - firstArg];\n secondArg = consumeShort(ctx.ip);\n String msg = ctx.compiledBlock.literals[secondArg];\n STCompiledBlock methodBlk;\n methodBlk = receiver.getSTClass().superClass.resolveMethod(msg);\n if (methodBlk.isClassMethod && !(receiver instanceof STMetaClassObject)) {\n error(\"ClassMessageSentToInstance\", msg + \" is a class method sent to instance of \" + receiver.getSTClass().getName());\n } else if (!methodBlk.isClassMethod && receiver instanceof STMetaClassObject) {\n error(\"MessageNotUnderstood\", msg + \" is an instance method sent to class object \" + receiver.getSTClass().getName());\n }\n\n if (methodBlk.isPrimitive()) {\n STObject result = methodBlk.primitive.perform(ctx, firstArg);\n if (result != null) {\n ctx.push(result);\n }\n } else {\n BlockContext currentCtx = new BlockContext(this, methodBlk, receiver);\n for (int i = firstArg - 1; i >= 0; i--) {\n currentCtx.locals[i] = ctx.pop();\n }\n ctx.pop();\n pushContext(currentCtx);\n }\n break;\n\n case Bytecode.TRUE:\n ctx.push(newBoolean(true));\n break;\n\n }\n if ( trace ) traceStack();\n }\n return ctx != null ? ctx.receiver : null;\n }", "title": "" }, { "docid": "149bf66699a53bdbef62fb5d4d430d9f", "score": "0.49348456", "text": "@FunctionalInterface\npublic interface Statement\n extends Runnable {\n\n Statement NOP = () -> { };\n\n /**\n * Perform this operation.\n *\n * @throws Exception any exception which this statement would throw\n */\n void exec() throws Exception;\n\n /**\n * Perform this operation.\n */\n @Override\n default void run() {\n try {\n this.exec();\n } catch (final Exception e) {\n Expressive.raise(e);\n }\n }\n\n /**\n * Returns composed statement which execute this statement then execute {@code after}.\n *\n * @param after statement which execute after this statement\n * @return composed statement\n */\n default Statement andThen(final Statement after) {\n\n Objects.requireNonNull(after);\n\n return () -> {\n this.run();\n after.run();\n };\n }\n}", "title": "" }, { "docid": "d4c15d068870a0020093981fb6e42aa6", "score": "0.49337375", "text": "@Override\r\n\tpublic Object visit(ScopeNode node) throws Exception {\n\t\treturn this.visit((NodeOp) node);\r\n\t}", "title": "" }, { "docid": "16bfe79c7d449dfeed6059aaa95198e4", "score": "0.49137747", "text": "private AST for_statement() {\n AST forStatement = new AST(currentToken); // parent token -> for\n if(!isMatch(nextToken,\"(\"))System.err.println(\"Expected '(' , Found: \" + nextToken);\n ExprNode expr1 = null;\n ExprNode expr2 = null;\n ExprNode expr3 = null;\n\n readToken(); // curr = '(' , next = 'expr' or \";\"\n readToken();\n\n if(isMatch(currentToken,\"id\")){\n expr1 = expression();\n }\n\n readToken();\n\n if(isMatch(currentToken,\"id\")){\n expr2 = expression();\n }\n\n readToken(); // curr = 'expr' or \";\"\n\n if(isMatch(currentToken,\"id\")){\n expr3 = expression();\n }\n\n forStatement.addChild(expr1);\n forStatement.addChild(expr2);\n forStatement.addChild(expr3);\n\n stack.push('{');\n readToken(); // curr = rehash\n readToken(); // curr = rehash\n forStatement.addChild(block_statement());\n return forStatement;\n }", "title": "" }, { "docid": "691655e7543e18bd2fa474758e17f3d6", "score": "0.49100965", "text": "public int NormalMethod(){\n C1 c = new C2(10){\n // Anonymous class itself cannot have a constructor, but it can have an instance initializer\n // this notation is called 'instance initializer'\n {\n x = this.x + 10;\n }\n };\n return c.x;\n }", "title": "" }, { "docid": "bbb86ba4621deb78079da68230482e9e", "score": "0.49088752", "text": "Context mo974b();", "title": "" }, { "docid": "fb46ff8f246846dd12fa7498dba33b41", "score": "0.48907456", "text": "@Test\n public void testNestedWith()\n {\n assertThat(assertions.query(\"WITH RECURSIVE t(n) AS (\" +\n \" SELECT 1\" +\n \" UNION ALL\" +\n \" SELECT * FROM (WITH t2(m) AS (SELECT 4) SELECT m FROM t2 UNION SELECT n + 1 FROM t) t(n) WHERE n < 4\" +\n \" )\" +\n \" SELECT * from t\"))\n .matches(\"VALUES (1), (2), (3)\");\n\n // recursive reference shadowed by WITH in subquery. The query is effectively not recursive\n assertThat(assertions.query(\"WITH RECURSIVE t(n) AS (\" +\n \" SELECT 1\" +\n \" UNION ALL\" +\n \" SELECT * FROM (WITH t(n) AS (SELECT 5) SELECT n + 1 FROM t)\" +\n \" )\" +\n \" SELECT * from t\"))\n .matches(\"VALUES (1), (6)\");\n\n // multiple nesting\n assertThat(assertions.query(\"WITH t(n) AS (\" +\n \" WITH t2(m) AS (\" +\n \" WITH RECURSIVE t3(p) AS (\" +\n \" SELECT 1\" +\n \" UNION ALL\" +\n \" SELECT * FROM (WITH t4(q) AS (SELECT 4) SELECT p + 1 FROM t3 WHERE p < 3)\" +\n \" )\" +\n \" SELECT * from t3\" +\n \" )\" +\n \" SELECT * FROM t2\" +\n \" )\" +\n \" SELECT * FROM t\"))\n .matches(\"VALUES (1), (2), (3)\");\n }", "title": "" }, { "docid": "b79bde6dd8875a5e13431fecebcc372a", "score": "0.4880151", "text": "@Override\r\n\tpublic void liftClosures(ClosureContext context) {\r\n\t}", "title": "" }, { "docid": "27b192a465a305bbf29baf680d15f050", "score": "0.48570648", "text": "private Context(Transaction txn) {\n \t super(txn);\n \t}", "title": "" }, { "docid": "6d8750f1b9d0e6af554cbb84055fea39", "score": "0.48029095", "text": "public Context b() {\n return a(this.a);\n }", "title": "" }, { "docid": "985d5d6e8c79f7fee2b24325eb7b41b5", "score": "0.48010084", "text": "<R> R withThat(Object instance, Function<Integer, R> block) {\n\t\t\tR result;\n\t\t\tif(getThatMap().put(instance, Boolean.TRUE) == null) {\n\t\t\t\tresult = block.apply(state);\n\t\t\t\tthatMap.remove(instance);\n\t\t\t} else {\n\t\t\t\tgetRecursiveThatMap().put(instance, Boolean.TRUE);\n\t\t\t\tif((state & SELF_RECURSION_IN_THAT) == 0) {\n\t\t\t\t\tstate |= SELF_RECURSION_IN_THAT;\n\t\t\t\t\tresult = block.apply(state);\n\t\t\t\t\tstate &= ~SELF_RECURSION_IN_THAT;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tresult = block.apply(state);\n\t\t\t}\n\t\t\treturn result;\n\t\t}", "title": "" }, { "docid": "fa056bb51ca6f01af1b078b99522791c", "score": "0.47971916", "text": "<R> R withThis(Object instance, Function<Integer, R> block) {\n\t\t\tR result;\n\t\t\tif(getThisMap().put(instance, Boolean.TRUE) == null) {\n\t\t\t\tresult = block.apply(state);\n\t\t\t\tthisMap.remove(instance);\n\t\t\t} else {\n\t\t\t\tgetRecursiveThisMap().put(instance, Boolean.TRUE);\n\t\t\t\tif((state & SELF_RECURSION_IN_THIS) == 0) {\n\t\t\t\t\tstate |= SELF_RECURSION_IN_THIS;\n\t\t\t\t\tresult = block.apply(state);\n\t\t\t\t\tstate &= ~SELF_RECURSION_IN_THIS;\n\t\t\t\t} else\n\t\t\t\t\tresult = block.apply(state);\n\t\t\t}\n\t\t\treturn result;\n\t\t}", "title": "" }, { "docid": "f39e7e993df0c097f1d39d305f194457", "score": "0.47654158", "text": "@Test\r\n\tpublic void testAddTwoStatements() throws Exception {\r\n\t\tthis.model.addStatement(a, b, \"Jim\");\r\n\t\tthis.model.addStatement(a, c, \"Jon\");\r\n\t\tClosableIterator<Statement> sit = this.model.iterator();\r\n\t\tassertTrue(sit.hasNext());\r\n\t\tint count = 0;\r\n\t\twhile(sit.hasNext()) {\r\n\t\t\tcount++;\r\n\t\t\t@SuppressWarnings(\"unused\")\r\n\t\t\tStatement s;\r\n\t\t\ts = sit.next();\r\n\t\t}\r\n\t\tassertEquals(2, count);\r\n\t\tsit.close(); // redudant\r\n\t}", "title": "" }, { "docid": "f6dc8d974fbef4db6dfd6b31b99ee8f9", "score": "0.47539684", "text": "@Override\n\t\tpublic AstNode visitCompound_stmt(PythonParser.Compound_stmtContext ctx) {\n\t\t\tif (ctx.if_stmt() != null) {\n\t\t\t\treturn ctx.if_stmt().accept(this);\n\t\t\t}\n\t\t\tif (ctx.while_stmt() != null) {\n\t\t\t\treturn ctx.while_stmt().accept(this);\n\t\t\t}\n\t\t\tif (ctx.for_stmt() != null) {\n\t\t\t\treturn ctx.for_stmt().accept(this);\n\t\t\t}\n\t\t\tif (ctx.try_stmt() != null) {\n\t\t\t\treturn ctx.try_stmt().accept(this);\n\t\t\t}\n\t\t\tif (ctx.with_stmt() != null) {\n\t\t\t\treturn ctx.with_stmt().accept(this);\n\t\t\t}\n\t\t\tif (ctx.funcdef() != null) {\n\t\t\t\treturn ctx.funcdef().accept(this);\n\t\t\t}\n\t\t\tif (ctx.classdef() != null) {\n\t\t\t\treturn ctx.classdef().accept(this);\n\t\t\t}\n\t\t\tif (ctx.decorated() != null) {\n\t\t\t\treturn ctx.decorated().accept(this);\n\t\t\t}\n\t\t\tif (ctx.async_stmt() != null) {\n\t\t\t\treturn ctx.async_stmt().accept(this);\n\t\t\t}\n\t\t\tthrow new IllegalArgumentException(\"Unknown context\");\n\t\t}", "title": "" }, { "docid": "c01316274181b39132c88066c641e189", "score": "0.4751812", "text": "Context mo39750r();", "title": "" }, { "docid": "b5a82ac0d4d54dbd3a09d5875552a7a5", "score": "0.47362536", "text": "@Override\n public void enterForStatement(ForStatementContext ctx) {\n symbolTable.newScope(ctx);\n }", "title": "" }, { "docid": "7f5a669c04484d1b1feaa1d051e5f1e9", "score": "0.47241908", "text": "@Override\n public ParsedQuery visitQuery(TqlParser.QueryContext ctx) {\n return super.visitStatement(ctx.statement());\n }", "title": "" }, { "docid": "d599b2fa4ee6bd489b60cd00ddce5342", "score": "0.47239092", "text": "void mo57939b(Context context);", "title": "" }, { "docid": "830e76a6f99eb2c9dc9f280d788ee897", "score": "0.47158706", "text": "Context.Return getContextReturn();", "title": "" }, { "docid": "87a8ba56435552436150ce2d247ce6e0", "score": "0.46901682", "text": "@Test\n\tpublic void should_not_redundantly_copy_context() {\n\t\tContext initial = Context.of(TraceContext.class, context());\n\t\tScopePassingSpanSubscriber<?> subscriber = new ScopePassingSpanSubscriber<>(null, initial,\n\t\t\t\tcurrentTraceContext(), context());\n\n\t\tthen(initial.get(TraceContext.class)).isSameAs(subscriber.currentContext().get(TraceContext.class));\n\t}", "title": "" }, { "docid": "6916f6d8c76413f1dd4841b0690e7ff6", "score": "0.46891013", "text": "public interface StatementContext {\n\n String sql();\n\n <S extends ExecutionStrategy> S strategy();\n\n interface ExecutionStrategy {\n void setParameters(PreparedStatement statement) throws SQLException;\n }\n\n}", "title": "" }, { "docid": "da6be1f99e7e39aa88da79ad480decad", "score": "0.46875963", "text": "Context mo17154n();", "title": "" }, { "docid": "3fd07ff3fe727a721f271043e18a275a", "score": "0.4678006", "text": "@Override\n\t\tpublic AstNode visitSmall_stmt(PythonParser.Small_stmtContext ctx) {\n\t\t\tif (ctx.expr_stmt() != null) {\n\t\t\t\treturn ctx.expr_stmt().accept(this);\n\t\t\t}\n\t\t\tif (ctx.print_stmt() != null) {\n\t\t\t\treturn ctx.print_stmt().accept(this);\n\t\t\t}\n\t\t\tif (ctx.del_stmt() != null) {\n\t\t\t\treturn ctx.del_stmt().accept(this);\n\t\t\t}\n\t\t\tif (ctx.pass_stmt() != null) {\n\t\t\t\treturn ctx.pass_stmt().accept(this);\n\t\t\t}\n\t\t\tif (ctx.flow_stmt() != null) {\n\t\t\t\treturn ctx.flow_stmt().accept(this);\n\t\t\t}\n\t\t\tif (ctx.import_stmt() != null) {\n\t\t\t\treturn ctx.import_stmt().accept(this);\n\t\t\t}\n\t\t\tif (ctx.global_stmt() != null) {\n\t\t\t\treturn ctx.global_stmt().accept(this);\n\t\t\t}\n\t\t\tif (ctx.nonlocal_stmt() != null) {\n\t\t\t\treturn ctx.nonlocal_stmt().accept(this);\n\t\t\t}\n\t\t\tif (ctx.exec_stmt() != null) {\n\t\t\t\treturn ctx.exec_stmt().accept(this);\n\t\t\t}\n\t\t\tif (ctx.assert_stmt() != null) {\n\t\t\t\treturn ctx.assert_stmt().accept(this);\n\t\t\t}\n\t\t\tthrow new IllegalArgumentException(\"Unknown context\");\n\t\t}", "title": "" }, { "docid": "242688fb5bac54e43ec7619970aaa7e3", "score": "0.46764958", "text": "public Statement getStatement()\n {\n return statement;\n }", "title": "" }, { "docid": "116160e7650316c64ca3697fec573c2b", "score": "0.46741405", "text": "public void a(Context context) {\n this.c = context;\n this.d = null;\n }", "title": "" }, { "docid": "342a8828225da2bbff9eb3910675b766", "score": "0.46652934", "text": "@Override\r\n\tpublic Context getContext() {\n\t\treturn this;\r\n\t}", "title": "" }, { "docid": "077f0be007c6174e7e3cf81307b429b9", "score": "0.4644332", "text": "public g(Context context) {\n super(context);\n j.b(context, \"context\");\n }", "title": "" }, { "docid": "1671fdf401bb8faa9dac92c9dede60e0", "score": "0.46366975", "text": "public void visit(Statement n);", "title": "" }, { "docid": "fa26f93914d2851edfbb0a0b1e35ace1", "score": "0.4635919", "text": "void mo57934a(Context context);", "title": "" }, { "docid": "784468cb420f8058202b4cbeb8664d20", "score": "0.4635666", "text": "@Override\n\t\tpublic AstNode visitFlow_stmt(PythonParser.Flow_stmtContext ctx) {\n\t\t\tif (ctx.break_stmt() != null) {\n\t\t\t\treturn ctx.break_stmt().accept(this);\n\t\t\t}\n\t\t\tif (ctx.continue_stmt() != null) {\n\t\t\t\treturn ctx.continue_stmt().accept(this);\n\t\t\t}\n\t\t\tif (ctx.return_stmt() != null) {\n\t\t\t\treturn ctx.return_stmt().accept(this);\n\t\t\t}\n\t\t\tif (ctx.raise_stmt() != null) {\n\t\t\t\treturn ctx.raise_stmt().accept(this);\n\t\t\t}\n\t\t\tif (ctx.yield_stmt() != null) {\n\t\t\t\treturn ctx.yield_stmt().accept(this);\n\t\t\t}\n\t\t\tthrow new IllegalArgumentException(\"Unknown context\");\n\t\t}", "title": "" }, { "docid": "c2db65aa97a85e4b9c4dcf066ae55ec1", "score": "0.46314338", "text": "@Override\n public Object visitCallExpressionAST(MonkeyParser.CallExpressionASTContext ctx) {\n visit(ctx.expressionList());\n IDLE.getInstance().callWith = ctx.expressionList().getText();\n return null;\n }", "title": "" }, { "docid": "eee6842c512ebf121cd0017634d54058", "score": "0.46039414", "text": "@Override\n public Literal selectLiteral() {\n return new Literal(selectVariable(), false);\n }", "title": "" }, { "docid": "2d8ca0aa53e26c0a65dd34f1fde4935e", "score": "0.46002913", "text": "public JForStatement analyze(Context context) {\n<<<<<<< HEAD\n \tinit.analyze(context); \t\n=======\n \tinit.analyze(context);\n>>>>>>> Chinh\n condition = condition.analyze(context);\n condition.type().mustMatchExpected(line(), Type.BOOLEAN);\n after.analyze(context);\n body = (JStatement) body.analyze(context);\n after.analyze(context);\n return this;\n }", "title": "" }, { "docid": "67582b2fdda13804008ffeb2bb7a4e56", "score": "0.45998335", "text": "Statement createStatement();", "title": "" }, { "docid": "77f5de61738774006534cacfe5fbae3c", "score": "0.45921403", "text": "@Override\n\t\tpublic AstNode visitSuite(PythonParser.SuiteContext ctx) {\n\t\t\tif (ctx.simple_stmt() != null) {\n\t\t\t\tCollectionWrapper<ast.statement.Statement> wrap = (CollectionWrapper<ast.statement.Statement>) ctx.simple_stmt().accept(this);\n\t\t\t\treturn new Suite(this.getLocInfo(ctx), wrap.getItems());\n\t\t\t}\n\t\t\telse if (ctx.stmt() != null) {\n\t\t\t\tList<CollectionWrapper<ast.statement.Statement>> collectionWrappers = ctx.stmt().stream()\n\t\t\t\t\t\t.map(c -> (CollectionWrapper<ast.statement.Statement>) c.accept(this))\n\t\t\t\t\t\t.collect(Collectors.toList());\n\t\t\t\tList<ast.statement.Statement> statements = new ArrayList<>();\n\t\t\t\tcollectionWrappers.forEach(e -> statements.addAll(e.getItems()));\n\t\t\t\treturn new Suite(this.getLocInfo(ctx), statements);\n\t\t\t}\n\t\t\tthrow new IllegalArgumentException(\"Unknown context\");\n\t\t}", "title": "" }, { "docid": "f546fc7234ff128a00d2b07b598d60ac", "score": "0.45831344", "text": "public StandardEvaluationContext(Object rootObject)\r\n/* 43: */ {\r\n/* 44: 78 */ this();\r\n/* 45: 79 */ setRootObject(rootObject);\r\n/* 46: */ }", "title": "" }, { "docid": "59a165f9613cfb3988112603af10dffb", "score": "0.45828187", "text": "private static class <init> extends <init>\n{\n\n public void a(Object obj, StringBuilder stringbuilder)\n {\n ax ax1 = (ax)obj;\n y y1 = new y();\n y1.a(\"$code\", ax1.a());\n y1.a(\"$scope\", ax1.b());\n a.a(y1, stringbuilder);\n }", "title": "" }, { "docid": "434287b62567d41475bf93d46966fa58", "score": "0.45800966", "text": "Handle plus(GrammarAST plusAST, Handle blk);", "title": "" }, { "docid": "e538f37e055182d712cfb7d11dfba00b", "score": "0.45774966", "text": "public Statement copy() {\n Statement stmt = new Statement();\n stmt.statement.append(statement);\n return stmt;\n }", "title": "" }, { "docid": "4c358a8bd0bcfa74262f0faf760c4c0a", "score": "0.45773172", "text": "C modify(C context);", "title": "" }, { "docid": "8ed327793ab2cf04a457c3b4d8222758", "score": "0.45761758", "text": "protected void sequence_Statement_FunctioncallOrAssignment(ISerializationContext context, Statement_Assignment semanticObject) {\n\t\tgenericSequencer.createSequence(context, semanticObject);\n\t}", "title": "" }, { "docid": "fe262d25cc77c01747f2c613c20c3325", "score": "0.45753282", "text": "@Override\n public IAnalysisContext getContext() {\n return context;\n }", "title": "" }, { "docid": "e85087f5a1dd31a17c399539293974f8", "score": "0.4571507", "text": "void mo57942c(Context context);", "title": "" }, { "docid": "bf46d685adc0c580c6c2b83d94c997d3", "score": "0.45532975", "text": "VSpec getContext();", "title": "" }, { "docid": "85221eb088f692e9e78edc594b4cbf22", "score": "0.45515332", "text": "@Override\n public void visit(BlockNode node) {\n curScope = new LocalScope(\"block scope\", curScope);\n for (var stmt : node.getStmtList())\n stmt.accept(this);\n curScope = curScope.getUpperScope();\n }", "title": "" }, { "docid": "fb9ca941dbb253cf79f2dab9d16bd6a5", "score": "0.4551137", "text": "public T caseStatement(Statement object) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "1c946090c3cc857ba89a9df6273588cb", "score": "0.45445547", "text": "protected VariableContext createVariableContext()\n {\n return new SimpleVariableContext();\n }", "title": "" }, { "docid": "4445593ac1f71b809cc746ea7154c4ed", "score": "0.45334956", "text": "@Override\n public Object visit(Select n, Object argu) {\n if (isWith) {\n n.accept((SqlSelect) sqlObject, argu); \n } else {\n SqlSelect aSqlSelect = new SqlSelect(client);\n n.accept(aSqlSelect, argu);\n sqlObject = aSqlSelect;\n }\n return null;\n }", "title": "" }, { "docid": "22eea7adb5dc3c71df110dad4173692f", "score": "0.45324254", "text": "public Statement createStatement() {\n\t\t\treturn null;\r\n\t\t\r\n\t\t}", "title": "" }, { "docid": "a4af4d1310effa228dd2cd9b0ac20b82", "score": "0.45303583", "text": "public void setContextualParams(Context context) {\n }", "title": "" }, { "docid": "54d49d9c708105d7776c7dfbfa7af02a", "score": "0.45295507", "text": "public final Object C(a object) {\n Throwable throwable2222222;\n int n10;\n block5: {\n String string2 = \"block\";\n f0.p(object, string2);\n this.v();\n n10 = 1;\n object = object.invoke();\n {\n catch (Throwable throwable2222222) {\n break block5;\n }\n catch (IOException iOException) {}\n {\n IOException iOException;\n boolean bl2 = this.w();\n if (!bl2) {\n throw iOException;\n }\n iOException = this.q(iOException);\n throw iOException;\n }\n }\n c0.d(n10);\n boolean bl3 = this.w();\n if (bl3) throw this.q(null);\n c0.c(n10);\n return object;\n }\n c0.d(n10);\n boolean bl4 = this.w();\n c0.c(n10);\n throw throwable2222222;\n }", "title": "" }, { "docid": "d388eda702be6fbcc5bfb2f6a27f7320", "score": "0.45292577", "text": "public void test36_removed_local_assignment() {\n\n }", "title": "" }, { "docid": "277de5f4c87fbe47529ef6b4bc1e68be", "score": "0.45287502", "text": "void mo6375da(Context context);", "title": "" }, { "docid": "f9d3bf1314e4106101f6b8f6ac2bb2c3", "score": "0.45216453", "text": "public StatementsBlock(int line) {\n\t\tsuper(line);\n\t\tthis.statements = new ArrayList<Statement>();\n\t}", "title": "" }, { "docid": "f5d81e53baa8c006423783cd6d4b979b", "score": "0.45159957", "text": "public T caseLatchedStatement(LatchedStatement object)\n {\n return null;\n }", "title": "" }, { "docid": "cb29a107ae7b31c6710aeb9457a65750", "score": "0.45134", "text": "public void a(ho paramho)\r\n/* 120: */ {\r\n/* 121:126 */ bsu.z().q.d().a(paramho);\r\n/* 122: */ }", "title": "" }, { "docid": "3d96e30876debd671ca049d3730a6cfb", "score": "0.4506131", "text": "public void visitOuter() {\n\t\t\t}", "title": "" }, { "docid": "284a60f0512b70cca1fd38fbdbff8338", "score": "0.44983166", "text": "protected void sequence_Statement_Block(ISerializationContext context, Statement_Block semanticObject) {\n\t\tif (errorAcceptor != null) {\n\t\t\tif (transientValues.isValueTransient(semanticObject, LuaPackage.Literals.STATEMENT_BLOCK__BLOCK) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, LuaPackage.Literals.STATEMENT_BLOCK__BLOCK));\n\t\t}\n\t\tSequenceFeeder feeder = createSequencerFeeder(context, semanticObject);\n\t\tfeeder.accept(grammarAccess.getStatement_BlockAccess().getBlockBlockParserRuleCall_1_0(), semanticObject.getBlock());\n\t\tfeeder.finish();\n\t}", "title": "" }, { "docid": "9dd1ae9f3e33ddfb66195aabf4d23c7d", "score": "0.44967481", "text": "@SuppressWarnings(\"resource\")\r\n @Test\r\n public void testStatements() throws SQLException {\r\n Statement stmt = null;\r\n ResultSet rs = null;\r\n Statement stmt1 = null;\r\n PreparedStatement ps = null;\r\n CallableStatement cs = null;\r\n ResultSet rs1 = null;\r\n String tableName = null;\r\n\r\n try (SQLServerConnection con = connect();) {\r\n if (Utils.isJDBC43OrGreater(con)) {\r\n stmt1 = con.createStatement();\r\n con.beginRequest();\r\n stmt = con.createStatement();\r\n rs = stmt.executeQuery(\"SELECT 1\");\r\n rs.next();\r\n assertEquals(1, rs.getInt(1));\r\n con.endRequest();\r\n\r\n assertTrue(!stmt1.isClosed(), \"Statement created outside of beginRequest()/endRequest() block should not be closed.\");\r\n assertTrue(stmt.isClosed(), \"Statment created inside beginRequest()/endRequest() block should be closed after endRequest().\");\r\n assertTrue(rs.isClosed(), \"ResultSet should be closed after endRequest().\");\r\n stmt1.close();\r\n\r\n // Multiple statements inside beginRequest()/endRequest() block\r\n con.beginRequest();\r\n stmt = con.createStatement();\r\n tableName = AbstractSQLGenerator.escapeIdentifier(RandomUtil.getIdentifier(\"RequestBoundary\"));\r\n Utils.dropTableIfExists(tableName, stmt);\r\n stmt.executeUpdate(\"CREATE TABLE \" + tableName + \" (col int)\");\r\n ps = con.prepareStatement(\"INSERT INTO \" + tableName + \" values (?)\");\r\n ps.setInt(1, 2);\r\n ps.executeUpdate();\r\n\r\n stmt1 = con.createStatement();\r\n rs1 = stmt1.executeQuery(\"SELECT * FROM \" + tableName);\r\n rs1.next();\r\n assertEquals(2, rs1.getInt(1));\r\n Utils.dropTableIfExists(tableName, stmt);\r\n\r\n cs = con.prepareCall(\"{call sp_server_info}\");\r\n cs.execute();\r\n con.endRequest();\r\n\r\n assertTrue(stmt.isClosed());\r\n assertTrue(ps.isClosed());\r\n assertTrue(stmt1.isClosed());\r\n assertTrue(cs.isClosed());\r\n assertTrue(rs1.isClosed());\r\n }\r\n }\r\n finally {\r\n if (null != stmt) {\r\n stmt.close();\r\n }\r\n if (null != stmt1) {\r\n stmt1.close();\r\n }\r\n if (null != ps) {\r\n ps.close();\r\n }\r\n if (null != cs) {\r\n cs.close();\r\n }\r\n }\r\n }", "title": "" }, { "docid": "5f219c02e66233c31a0e82b161504a75", "score": "0.44954816", "text": "public void a(Context paramContext) {\n }", "title": "" }, { "docid": "2cc39b568d24ccfa08556fd3452944ae", "score": "0.44943666", "text": "public void l(Context context) {\n AppMethodBeat.i(64450);\n if (o != 0) {\n AppMethodBeat.o(64450);\n return;\n }\n o = j(context);\n AppMethodBeat.o(64450);\n }", "title": "" }, { "docid": "d2b0afb00fd3c95e789f70a22a0a68a3", "score": "0.44840753", "text": "JCStatement parseStatementAsBlock() {\n int pos = token.pos;\n List<JCStatement> stats = blockStatement();\n if (stats.isEmpty()) {\n JCErroneous e = F.at(pos).Erroneous();\n error(e, \"illegal.start.of.stmt\");\n return F.at(pos).Exec(e);\n } else {\n JCStatement first = stats.head;\n String error = null;\n switch (first.getTag()) {\n case CLASSDEF:\n error = \"class.not.allowed\";\n break;\n case VARDEF:\n error = \"variable.not.allowed\";\n break;\n }\n if (error != null) {\n error(first, error);\n List<JCBlock> blist = List.of(F.at(first.pos).Block(0, stats));\n return toP(F.at(pos).Exec(F.at(first.pos).Erroneous(blist)));\n }\n return first;\n }\n }", "title": "" }, { "docid": "8ea2fd475a27aa9c9c31229a6a5a2708", "score": "0.44796333", "text": "StringBuilder asVariable(AliasContext q);", "title": "" }, { "docid": "32966d4c4b03c7858354cf70c2b71302", "score": "0.44765523", "text": "ProveStatement createProveStatement();", "title": "" }, { "docid": "d3cf4b70ff19f5de39740795adbe9e6d", "score": "0.44696733", "text": "public void testAnonymousOneStatementBefore() {\n this.runTestCheckMethodParse(// compilationUnit:\n \"class Bar {\t\t\t\t\t\t\t\t\t\\n\" + \"\tvoid foo() {\t\t\t\t\t\t\t\t\\n\" + \"\t\tint i = 1;\t\t\t\t\t\t\t\t\\n\" + \"\t\tObject o = new Object() {\t\t\t\t\\n\" + \"\t\t\tvoid buzz() {\t\t\t\t\t\t\\n\" + \"\t\t\t\tint i = fred().xyz;\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\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\t\\n\", // completeBehind:\n \"x\", // expectedCompletionNodeToString:\n \"<CompleteOnMemberAccess:fred().x>\", // expectedUnitDisplayString:\n \"class Bar {\\n\" + \" Bar() {\\n\" + \" }\\n\" + \" void foo() {\\n\" + \" int i;\\n\" + \" Object o;\\n\" + \" new Object() {\\n\" + \" void buzz() {\\n\" + \" int i = <CompleteOnMemberAccess:fred().x>;\\n\" + \" }\\n\" + \" };\\n\" + \" }\\n\" + \"}\\n\", // expectedCompletionIdentifier:\n \"x\", // expectedReplacedSource:\n \"xyz\", // test name\n \"<complete in anonymous inner class with one statement before>\");\n }", "title": "" }, { "docid": "00e26f61480c1a0ead957ae368c72a65", "score": "0.44694117", "text": "public void test35_removed_local_assignment() {\n\n }", "title": "" }, { "docid": "ecb6408030f11d546e33f1dcc0a4c577", "score": "0.4469309", "text": "private void wrapThis() {\n\t\tQueryCriteria qc = new QueryCriteria(this.criteriaChain, this.key, this.value, this.chainOperator, this.operator,\n\t\t\t\tthis.format);\n\t\tthis.criteriaChain.remove(this); // we replaced it with the clone\n\t\tthis.criteriaChain = new LinkedList<>();\n\t\tthis.criteriaChain.add(this);\n\t\tthis.key = N1QLExpression.WRAPPER();\n\t\tthis.operator = \"\";\n\t\tthis.format = null;\n\t\tthis.value = new Object[] { qc };\n\t\tthis.chainOperator = null;\n\n\t}", "title": "" }, { "docid": "5038e472d1973d8a3951f3255ea10a0a", "score": "0.4467337", "text": "public T caseSynchStatement(SynchStatement object)\n {\n return null;\n }", "title": "" }, { "docid": "272e1fb45bf366f4c14c60623316753c", "score": "0.44649822", "text": "private boolean statement() {\n\t\tint itmp = iterator;//we bookmark our position among the tokens. Not sure if this is neccessary, but I'm not gonna bother removing it\n\t\tif(aritm()) return purgeStack();//should we relly purge the stack after each thing? it should be empty, but should we not rather enforce that?\n\t\titerator = itmp;\n\t\tif(whiledo()) return purgeStack();\n\t\titerator = itmp;\n\t\tif(ifthen()) return purgeStack();\n\t\titerator = itmp;\n\t\tif(block(false)) return purgeStack();\n\t\titerator = itmp;\n\t\tif(break_while()) return purgeStack();\n\t\titerator = itmp;\n\t\tif(continue_while()) return purgeStack();\n\t\titerator = itmp;\n\t\tif(inlineasm()) return purgeStack();\n\t\titerator = itmp;\n\t\tif(unload()) return purgeStack();\n\t\titerator = itmp;\n\t\tif(nosave()) return purgeStack();\n\t\titerator = itmp;\n\t\tif(savevar()) return purgeStack();\n\t\treturn false;\n\t}", "title": "" }, { "docid": "e39e5bd5e215ff6dec3e2c0ef0e13c7c", "score": "0.4463164", "text": "public T casefor_statement(for_statement object)\r\n {\r\n return null;\r\n }", "title": "" }, { "docid": "ce23a20a3320ddd4714c27658f3fded3", "score": "0.44600627", "text": "private HandlerContext(Handler handler2, String str, boolean z) {\n super(null);\n HandlerContext handlerContext = null;\n this.handler = handler2;\n this.name = str;\n this.invokeImmediately = z;\n this._immediate = z ? this : handlerContext;\n HandlerContext handlerContext2 = this._immediate;\n if (handlerContext2 == null) {\n handlerContext2 = new HandlerContext(handler2, str, true);\n this._immediate = handlerContext2;\n Unit unit = Unit.INSTANCE;\n }\n this.immediate = handlerContext2;\n }", "title": "" }, { "docid": "1470b5143b4d3151f45823f1200a6f66", "score": "0.44569078", "text": "public static void main(String[] args) {\nadder1 obj=(a,b)->{\r\n\tSystem.out.println(\"Added \"+(a+b));\r\n};\r\nobj.add(10, 20);\r\nobj.add(100, 200);\r\n\t}", "title": "" }, { "docid": "6cabb11d39f214ee5a1c3116d9afcafb", "score": "0.4455995", "text": "public void set(Context ctx, XPreparedStatement ps) throws SQLException\r\n {\r\n }", "title": "" }, { "docid": "666c30355e2b81b08c14b45e4a6ed2d0", "score": "0.4452758", "text": "public interface ExecutionContext extends EObject, Identifier {\r\n}", "title": "" }, { "docid": "2b1dbf7e462256d9f0cc9ecef3c963e9", "score": "0.44480005", "text": "public T caseCalenStatement(CalenStatement object)\n {\n return null;\n }", "title": "" }, { "docid": "3acf2ac071bb8e4940a44564842dde04", "score": "0.44439277", "text": "public Object visit(Use node, QslScope scope, Object ... objects);", "title": "" }, { "docid": "92669f5254e909f6d55f5d7dd8ce4992", "score": "0.44316742", "text": "public String getWith() {\r\n return with;\r\n }", "title": "" }, { "docid": "32bd168d89051a69b35db9809194375f", "score": "0.44306588", "text": "Context newContext(Context parent);", "title": "" }, { "docid": "36476b438211c339c2da20ae5f3ed63c", "score": "0.4428211", "text": "Use createUse();", "title": "" }, { "docid": "455d4d60ac712f46ed31c9b85c84411c", "score": "0.4421618", "text": "public void test30_removed_local_assignment() {\n\n }", "title": "" }, { "docid": "5b1f71c1ad1c5ca692ee4c554c992e57", "score": "0.4418527", "text": "public interface Context {\n\n }", "title": "" }, { "docid": "33c38584b57da032dd4ebd6d4bc58c25", "score": "0.44151393", "text": "public void testTryWithResource() {\n\n PersistenceManager pm = getPM();\n Transaction tx = pm.currentTransaction();\n\n try {\n tx.begin();\n\n Query<PCPoint> query = null;\n List<PCPoint> queryResult = null;\n Iterator<PCPoint> iterator = null;\n try (Query<PCPoint> query1 = pm.newQuery(PCPoint.class)) {\n query = query1;\n queryResult = query1.executeList();\n iterator = queryResult.iterator();\n if (!iterator.hasNext()) {\n fail(ASSERTION_FAILED, \"(1) Iterator of open query result should have elements.\");\n }\n } catch (Exception ex) {\n fail(ASSERTION_FAILED, \"(2) Unexpected exception \" + ex);\n }\n\n // check iterator retrieved in try-with-resource block\n if (iterator.hasNext()) {\n fail(\n ASSERTION_FAILED,\n \"(3) Iterator of closed query result should return false on hasNext().\");\n }\n try {\n PCPoint next = iterator.next();\n fail(\n ASSERTION_FAILED,\n \"(4) Iterator of closed query result should throw NoSuchElementException on next().\");\n } catch (NoSuchElementException ex) {\n // expected exception\n }\n\n // create new Iterator and check its behaviour\n Iterator<PCPoint> iterator2 = queryResult.iterator();\n if (iterator2.hasNext()) {\n fail(\n ASSERTION_FAILED,\n \"(5) Iterator of closed query result should return false on hasNext().\");\n }\n try {\n PCPoint next = iterator2.next();\n fail(\n ASSERTION_FAILED,\n \"(6) Iterator of closed query result should throw NoSuchElementException on next().\");\n } catch (NoSuchElementException ex) {\n // expected exception\n }\n\n // check query result itself\n try {\n int size = queryResult.size();\n fail(ASSERTION_FAILED, \"(7) closed query result should not be accessible.\");\n } catch (JDOUserException ex) {\n // expected exception when accessing closed query result\n }\n try {\n PCPoint elem = queryResult.get(0);\n fail(ASSERTION_FAILED, \"(8) closed query result should not be accessible.\");\n } catch (JDOUserException ex) {\n // expected exception when accessing closed query result\n }\n try {\n boolean empty = queryResult.isEmpty();\n fail(ASSERTION_FAILED, \"(9) closed query result should not be accessible.\");\n } catch (JDOUserException ex) {\n // expected exception when accessing closed query result\n }\n // Check query instance is still usable\n queryResult = query.executeList();\n if (queryResult.isEmpty()) {\n fail(\n ASSERTION_FAILED,\n \"(10) query instance should be usable and execution should return a non empty result.\");\n }\n\n tx.commit();\n } finally {\n if (tx != null && tx.isActive()) {\n tx.rollback();\n }\n }\n }", "title": "" }, { "docid": "fae631772aaa873ef290634210b20934", "score": "0.4413937", "text": "public CloseableIteration<? extends Statement, Exception> getStatements();", "title": "" }, { "docid": "093aa783598b782169d06d9f48225d40", "score": "0.44125968", "text": "private <T extends GraphObject> T decorate(T t, Style with) {\r\n if(with!=null && t.style()==null) t.style(with);\r\n return t;\r\n }", "title": "" }, { "docid": "63926e1b61a5afa100eaced350cccc63", "score": "0.44095004", "text": "@Override // gnu.expr.Expression, gnu.mapping.Procedure\n public void apply(CallContext ctx) throws Throwable {\n try {\n this.try_clause.apply(ctx);\n ctx.runUntilDone();\n if (this.finally_clause != null) {\n this.finally_clause.eval(ctx);\n }\n } catch (Throwable th) {\n if (this.finally_clause != null) {\n this.finally_clause.eval(ctx);\n }\n throw th;\n }\n }", "title": "" }, { "docid": "4bb0f086bd17ef6854dd726e7cc9a539", "score": "0.44065356", "text": "private void statement() throws IOException{\n\t\tenterRule(NonTerminal.STATEMENT);\n\t\tif(currentToken.getKind().name().equals(\"VAR\")){\n\t\t\tvariable_declaration();\n\t\t}\n\t\telse if(currentToken.getKind().name().equals(\"CALL\")){\n\t\t\tcall_statement();\n\t\t}\n\t\telse if(currentToken.getKind().name().equals(\"LET\")){\n\t\t\tassignment_statement();\n\t\t}\n\t\telse if(currentToken.getKind().name().equals(\"IF\")){\n\t\t\tif_statement();\n\t\t}\n\t\telse if(currentToken.getKind().name().equals(\"WHILE\")){\n\t\t\twhile_statement();\n\t\t}\n\t\telse if(currentToken.getKind().name().equals(\"RETURN\")){\n\t\t\treturn_statement();\n\t\t}\n\t\telse{\n\t\t\treportError(Token.Kind.CLOSE_BRACE);\n\t\t}\n\n\t\texitRule(NonTerminal.STATEMENT);\n\t}", "title": "" } ]
d6db43cf5807b93e2d7fdfb8892b7f74
Sets specific media ID that is similar in appearance to an asset in search Params for searching similar files.
[ { "docid": "10bf134bc124996299690dd559d0d324", "score": "0.60834795", "text": "public SearchParameters setSimilar(final int similar) {\n if (similar <= 0) {\n throw new IllegalArgumentException(\n \"Should be a valid previous mediaId\");\n }\n this.mSimilar = similar;\n return this;\n }", "title": "" } ]
[ { "docid": "91eecbf37124e8b5cb8e0a5cfad99631", "score": "0.68980247", "text": "public SearchParameters setMediaId(final int mediaId) {\n\n if (mediaId <= 0) {\n throw new IllegalArgumentException(\"Should be a valid Media Id\");\n }\n this.mMediaId = mediaId;\n return this;\n }", "title": "" }, { "docid": "4b6c78c8b51d3ac933cfa390f9ef8d44", "score": "0.66921455", "text": "private void setMediaID(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n mediaID_ = value;\n }", "title": "" }, { "docid": "4b6c78c8b51d3ac933cfa390f9ef8d44", "score": "0.66921455", "text": "private void setMediaID(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n mediaID_ = value;\n }", "title": "" }, { "docid": "4b6c78c8b51d3ac933cfa390f9ef8d44", "score": "0.6691084", "text": "private void setMediaID(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n mediaID_ = value;\n }", "title": "" }, { "docid": "8b9962d3cda8056e4cfb7e79a842c5bb", "score": "0.6345403", "text": "public Builder setMediaID(\n java.lang.String value) {\n copyOnWrite();\n instance.setMediaID(value);\n return this;\n }", "title": "" }, { "docid": "8b9962d3cda8056e4cfb7e79a842c5bb", "score": "0.6345403", "text": "public Builder setMediaID(\n java.lang.String value) {\n copyOnWrite();\n instance.setMediaID(value);\n return this;\n }", "title": "" }, { "docid": "8b9962d3cda8056e4cfb7e79a842c5bb", "score": "0.6345403", "text": "public Builder setMediaID(\n java.lang.String value) {\n copyOnWrite();\n instance.setMediaID(value);\n return this;\n }", "title": "" }, { "docid": "5f5d157914a99c7cf1b9204e674faf5c", "score": "0.6340632", "text": "java.lang.String getMediaID();", "title": "" }, { "docid": "5f5d157914a99c7cf1b9204e674faf5c", "score": "0.6340632", "text": "java.lang.String getMediaID();", "title": "" }, { "docid": "5f5d157914a99c7cf1b9204e674faf5c", "score": "0.6340632", "text": "java.lang.String getMediaID();", "title": "" }, { "docid": "02e83fc30d5ffefb9518e9496517e6c2", "score": "0.604526", "text": "public void setMedia(String media) \r\n {\r\n this.media = media;\r\n }", "title": "" }, { "docid": "69681a04f92e5f4ae3ca32dcff083fe7", "score": "0.59211147", "text": "public void setMedia(String media) {\n this.media = media;\n }", "title": "" }, { "docid": "ee3364c1388f515b66547588155566a3", "score": "0.5874892", "text": "void setMediapackage(String id, MediaPackage mp) throws FileUploadException;", "title": "" }, { "docid": "10785ce5b5bb9d3563c7216c85d6164a", "score": "0.5841028", "text": "public void setMedia(String media) {\n\t\tthis.setPropertyString(\"media\", media);\n\t}", "title": "" }, { "docid": "424beb82077d88638b2613b0bcbe2376", "score": "0.5838587", "text": "private void setMediaIDBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n mediaID_ = value.toStringUtf8();\n }", "title": "" }, { "docid": "424beb82077d88638b2613b0bcbe2376", "score": "0.5838587", "text": "private void setMediaIDBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n mediaID_ = value.toStringUtf8();\n }", "title": "" }, { "docid": "424beb82077d88638b2613b0bcbe2376", "score": "0.5834976", "text": "private void setMediaIDBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n mediaID_ = value.toStringUtf8();\n }", "title": "" }, { "docid": "9cbfc25fe6fe29031d3c0d4c188693c6", "score": "0.57898855", "text": "public void setMedia(java.lang.String media) {\n this.media = media;\n }", "title": "" }, { "docid": "957f829215f517f43bae679d9b1e56e3", "score": "0.5655078", "text": "@java.lang.Override\n public java.lang.String getMediaID() {\n return mediaID_;\n }", "title": "" }, { "docid": "ece8601ae8cc129d46d1ccc77575c43a", "score": "0.5654363", "text": "public abstract void playFromMediaId(String mediaId, Bundle extras);", "title": "" }, { "docid": "957f829215f517f43bae679d9b1e56e3", "score": "0.56540954", "text": "@java.lang.Override\n public java.lang.String getMediaID() {\n return mediaID_;\n }", "title": "" }, { "docid": "957f829215f517f43bae679d9b1e56e3", "score": "0.56540954", "text": "@java.lang.Override\n public java.lang.String getMediaID() {\n return mediaID_;\n }", "title": "" }, { "docid": "dcf789d7331f07dad1ccad5ddecd7bbb", "score": "0.5643831", "text": "public void setMediaResourceID(Integer mediaResourceID) {\n MediaResourceID = mediaResourceID;\n }", "title": "" }, { "docid": "8ea3e14f08f03f9f16ec49a27326fd56", "score": "0.562479", "text": "public Integer getMediaId() {\n return mMediaId;\n }", "title": "" }, { "docid": "96066a013b1cda377f34b975212a02cc", "score": "0.5619919", "text": "public void setIdMed(String idMed) {\r\n this.idMed = idMed;\r\n }", "title": "" }, { "docid": "7bc1e10bde0f982e895707d137b75da1", "score": "0.55627316", "text": "public void setMedia(final List<String> media) {\n mediaQueries_.clear();\n for (final String medium : media) {\n mediaQueries_.add(new MediaQuery(medium));\n }\n }", "title": "" }, { "docid": "41ebbf57c598f99486ce6e2b4ae305e8", "score": "0.5425864", "text": "private void setMediaCode(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n mediaCode_ = value;\n }", "title": "" }, { "docid": "41ebbf57c598f99486ce6e2b4ae305e8", "score": "0.5425864", "text": "private void setMediaCode(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n mediaCode_ = value;\n }", "title": "" }, { "docid": "41ebbf57c598f99486ce6e2b4ae305e8", "score": "0.5424427", "text": "private void setMediaCode(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n mediaCode_ = value;\n }", "title": "" }, { "docid": "4c4ee29dc91a8679ebf4ed0fe529bf9a", "score": "0.5403833", "text": "public Builder setMediaIDBytes(\n com.google.protobuf.ByteString value) {\n copyOnWrite();\n instance.setMediaIDBytes(value);\n return this;\n }", "title": "" }, { "docid": "4c4ee29dc91a8679ebf4ed0fe529bf9a", "score": "0.5400605", "text": "public Builder setMediaIDBytes(\n com.google.protobuf.ByteString value) {\n copyOnWrite();\n instance.setMediaIDBytes(value);\n return this;\n }", "title": "" }, { "docid": "4c4ee29dc91a8679ebf4ed0fe529bf9a", "score": "0.5400605", "text": "public Builder setMediaIDBytes(\n com.google.protobuf.ByteString value) {\n copyOnWrite();\n instance.setMediaIDBytes(value);\n return this;\n }", "title": "" }, { "docid": "17735c2fffdec8c011d2b74d5ff49443", "score": "0.5394301", "text": "protected void matchSearchParams(int searchId, MsSearchIn parsedSearch, String fileName)\n throws UploadException {\n MsSearchDAO searchDao = DAOFactory.instance().getMsSearchDAO();\n MsSearch search = searchDao.loadSearch(searchId);\n\n SearchParamMatcher matcher = new SearchParamMatcher();\n boolean matches = matcher.matchSearchParams(search, parsedSearch, fileName);\n\n if(!matches) {\n log.error(matcher.getErrorMessage());\n UploadException ex = new UploadException(ERROR_CODE.GENERAL);\n ex.setErrorMessage(matcher.getErrorMessage());\n throw ex;\n }\n // TODO do we need to match some other key parameters e.g. min_enzymatic_termini etc. \n }", "title": "" }, { "docid": "1eeae4b9324acfa4313e1fb96d4a669b", "score": "0.53887755", "text": "private void clearMediaID() {\n \n mediaID_ = getDefaultInstance().getMediaID();\n }", "title": "" }, { "docid": "1eeae4b9324acfa4313e1fb96d4a669b", "score": "0.53887755", "text": "private void clearMediaID() {\n \n mediaID_ = getDefaultInstance().getMediaID();\n }", "title": "" }, { "docid": "1eeae4b9324acfa4313e1fb96d4a669b", "score": "0.53887755", "text": "private void clearMediaID() {\n \n mediaID_ = getDefaultInstance().getMediaID();\n }", "title": "" }, { "docid": "716bb41894ca80e52de97e7e551a2a5c", "score": "0.5381737", "text": "private void updateMedia( String filepath ) \n\t\t{\n\t\t\tLog.i( LOG_TAG, \"updateMedia: \" + filepath );\n\t\t\tMediaScannerConnection.scanFile( getApplicationContext(), new String[] { filepath }, null, null );\n\t\t}", "title": "" }, { "docid": "f4d49d43eee67c210616bf6f328f993a", "score": "0.52614295", "text": "private void setPhotos(String idSuspect) {\n }", "title": "" }, { "docid": "5d2f264f93d0e690061ec1c097277ab4", "score": "0.52558106", "text": "@java.lang.Override\n public java.lang.String getMediaID() {\n return instance.getMediaID();\n }", "title": "" }, { "docid": "5d2f264f93d0e690061ec1c097277ab4", "score": "0.52558106", "text": "@java.lang.Override\n public java.lang.String getMediaID() {\n return instance.getMediaID();\n }", "title": "" }, { "docid": "5d2f264f93d0e690061ec1c097277ab4", "score": "0.5255563", "text": "@java.lang.Override\n public java.lang.String getMediaID() {\n return instance.getMediaID();\n }", "title": "" }, { "docid": "efd65ea8126a745b8aa7dcfcf66fa16f", "score": "0.5252606", "text": "public static void setMedia(final SupportsMedia mediaSupporter, final String media) {\n if (mediaSupporter == null) {\n return;\n }\n\n if (StringUtils.isBlank(media) || media.toLowerCase().indexOf(\"all\") > -1) {\n mediaSupporter.setSupportedMedia(null);\n return;\n }\n final List<MediaTypeEnum> supportedMedia = new ArrayList<>();\n final String[] values = StringUtils.split(media);\n for (final String value : values) {\n if (!StringUtils.isBlank(value)) {\n final MediaTypeEnum type = MediaTypeEnum.fromName(value.toLowerCase());\n if (type == null) {\n MediaUtil.log.warn(\"Unrecognized value for attribute \\\"media\\\" value=\\\"{}\\\"\", value);\n } else {\n supportedMedia.add(type);\n }\n }\n }\n mediaSupporter.setSupportedMedia(supportedMedia);\n }", "title": "" }, { "docid": "7968219d4e7548684099df3ea90a179d", "score": "0.5239834", "text": "public void setAssetId(int tmp) {\n this.assetId = tmp;\n }", "title": "" }, { "docid": "42242925851d8382a37e0084147bb2c0", "score": "0.52251613", "text": "public void setMedia(FileResource media) {\n\t\tthis.media.add(media);\n\t}", "title": "" }, { "docid": "b159c2cacd612d8dab6bf1ba37ae8fa6", "score": "0.5193555", "text": "private void setMedias(\n int index, FollowersPlus.PBMedia value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureMediasIsMutable();\n medias_.set(index, value);\n }", "title": "" }, { "docid": "b159c2cacd612d8dab6bf1ba37ae8fa6", "score": "0.5192366", "text": "private void setMedias(\n int index, FollowersPlus.PBMedia value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureMediasIsMutable();\n medias_.set(index, value);\n }", "title": "" }, { "docid": "b159c2cacd612d8dab6bf1ba37ae8fa6", "score": "0.5191872", "text": "private void setMedias(\n int index, FollowersPlus.PBMedia value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureMediasIsMutable();\n medias_.set(index, value);\n }", "title": "" }, { "docid": "7cf423868e9edc15ccab3f06da79a111", "score": "0.5188445", "text": "private void setMedia(FollowersPlus.PBMedia value) {\n if (value == null) {\n throw new NullPointerException();\n }\n media_ = value;\n \n }", "title": "" }, { "docid": "7cf423868e9edc15ccab3f06da79a111", "score": "0.5188299", "text": "private void setMedia(FollowersPlus.PBMedia value) {\n if (value == null) {\n throw new NullPointerException();\n }\n media_ = value;\n \n }", "title": "" }, { "docid": "b18b714fc4a8069e506bd0b64b9dc34e", "score": "0.5117605", "text": "public void setMediaType(java.lang.String param){\n \n if (param != null){\n //update the setting tracker\n localMediaTypeTracker = true;\n } else {\n localMediaTypeTracker = true;\n \n }\n \n this.localMediaType=param;\n \n\n }", "title": "" }, { "docid": "699d8e87d93730ba463f1c8182aec2cd", "score": "0.5116886", "text": "private void setMedia(FollowersPlus.PBMedia value) {\n if (value == null) {\n throw new NullPointerException();\n }\n media_ = value;\n \n }", "title": "" }, { "docid": "83593f18e5591a0caa16caff3c2b8fe4", "score": "0.51153576", "text": "public void startMedia(int id) {\n Bundle solo = new Bundle();\n try {\n //Getting all details(title, artist and image) of song clicked by user from service\n solo = mMediaService.getAll(id);\n String title = solo.getString(\"title\");\n String artist = solo.getString(\"artist\");\n byte[] imgs = solo.getByteArray(\"image\");//Getting image as byteArray from service\n Bitmap img = BitmapFactory.decodeByteArray(imgs, 0,imgs.length);\n //Getting URL from service for the song clicked by user\n String url1 = mMediaService.getURLOfOne(id);\n //Displaying details(Title, artist, image) for song being played\n titleV.setText(title);\n artistV.setText(artist);\n imageV.setImageBitmap(img);\n // Starting Media Player using object created of class containing media player\n ap.playAudio(url1);\n } catch (Exception e) {\n Log.e(TAG, e.toString());\n }\n }", "title": "" }, { "docid": "699d8e87d93730ba463f1c8182aec2cd", "score": "0.5114872", "text": "private void setMedia(FollowersPlus.PBMedia value) {\n if (value == null) {\n throw new NullPointerException();\n }\n media_ = value;\n \n }", "title": "" }, { "docid": "699d8e87d93730ba463f1c8182aec2cd", "score": "0.5114872", "text": "private void setMedia(FollowersPlus.PBMedia value) {\n if (value == null) {\n throw new NullPointerException();\n }\n media_ = value;\n \n }", "title": "" }, { "docid": "9de59003d99302d319bdcce0dbbd6a7d", "score": "0.5092813", "text": "public void cancelSearchMediaName() {\n mSearchMediaName = null;\n }", "title": "" }, { "docid": "37c75a689796d2ef1bc5adaba47f8791", "score": "0.5088828", "text": "public void setAssetId(String tmp) {\n this.assetId = Integer.parseInt(tmp);\n }", "title": "" }, { "docid": "eea06a95da303722a20f5fff7f78b417", "score": "0.50882787", "text": "public void setMediaList(ArrayList<Media> mediaList) {\r\n this.mediaList = mediaList;\r\n }", "title": "" }, { "docid": "8e2383e6e5f68daae40bcdec614522fa", "score": "0.5086385", "text": "@Accessor(qualifier = \"mediasExportMediaCode\", type = Accessor.Type.SETTER)\n\tpublic void setMediasExportMediaCode(final String value)\n\t{\n\t\t_mediasExportMediaCode = getPersistenceContext().setValue(MEDIASEXPORTMEDIACODE, value);\n\t}", "title": "" }, { "docid": "6b9024781777cd053c6616c6ccb7ec7f", "score": "0.50721425", "text": "public void updateSong(int id, String title, String artist, String album, String genre, String fileparameter) {\n }", "title": "" }, { "docid": "2d87a1fa1274c96593c2cbbd2ae7202e", "score": "0.50520146", "text": "public void setMediaPath(String mediaPath) {\n this.mediaPath = mediaPath;\n }", "title": "" }, { "docid": "533c0890ae55afc1ef7416577c028489", "score": "0.50308585", "text": "private void setMediaCount(long value) {\n \n mediaCount_ = value;\n }", "title": "" }, { "docid": "ebfb5d74194899ec50f977b67e4a57a5", "score": "0.50132364", "text": "public void CaricaMultimedia() {\n DBRemoto dbr = new DBRemoto();\n\n if (VariabiliGlobali.getInstance().getModalita().equals(\"VIDEO\")) {\n long Quale = VariabiliGlobali.getInstance().getVideoVisualizzato();\n dbr.RitornaMultimediaDaID(Long.toString(Quale));\n } else {\n if (VariabiliGlobali.getInstance().getModalita().equals(\"PHOTO\")) {\n long Quale = VariabiliGlobali.getInstance().getImmagineVisualizzata();\n dbr.RitornaMultimediaDaID(Long.toString(Quale));\n }\n }\n }", "title": "" }, { "docid": "3df96cbe2cfe882272a285a64c0fc29b", "score": "0.5008347", "text": "public Result getFirstAlbumIdFromMediaId(Http.Request request, Integer mediaId) {\n User user = User.getCurrentUser(request);\n if (user == null) {\n return new Result(Http.Status.UNAUTHORIZED);\n }\n Media mediaItem = MediaAccessor.getMediaById(mediaId);\n if (mediaItem == null) {\n return badRequest(\"Media does not exist\");\n }\n List<Album> mediaItemAlbums = mediaItem.getAlbums();\n if( mediaItemAlbums == null || mediaItemAlbums.size() < 1) {\n return badRequest(\"Album does not exist\");\n }\n ObjectNode data = (ObjectNode) Json.toJson(mediaItemAlbums.get(0));\n return ok(Json.toJson(data));\n }", "title": "" }, { "docid": "cdcd0723615e79f69bc2ce912b8d3f2c", "score": "0.49777347", "text": "@RestrictTo(LIBRARY_GROUP)\n @Override\n public void setMediaMetadata(MediaMetadata2 metadata) {\n //mProvider.setMediaMetadata_impl(metadata);\n }", "title": "" }, { "docid": "5cf75d1ac5149c93831833ad0cebb356", "score": "0.497728", "text": "private void setMedias(\n int index, FollowersPlus.PBFetchEngagedMediasReply.EngagedMedia value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureMediasIsMutable();\n medias_.set(index, value);\n }", "title": "" }, { "docid": "1910c3f20fea50d7f13fb290b65d25d6", "score": "0.4969084", "text": "public static String getNextSongMediaId(String mediaId) {\n String retVal = musicCollectionMap.higherKey(mediaId);\n if (retVal == null) {\n retVal = musicCollectionMap.firstKey();\n }\n return retVal;\n }", "title": "" }, { "docid": "f2bca7c42d1707164544f2523da99af8", "score": "0.49642447", "text": "@Override\n\tpublic void mediaMarker(String syncbaseID, String markerName) {\n\t}", "title": "" }, { "docid": "eec02f6d2296890268c1cc9bb4d8e2ce", "score": "0.4941286", "text": "private void setMedia(\n FollowersPlus.PBMedia.Builder builderForValue) {\n media_ = builderForValue.build();\n \n }", "title": "" }, { "docid": "eec02f6d2296890268c1cc9bb4d8e2ce", "score": "0.4940463", "text": "private void setMedia(\n FollowersPlus.PBMedia.Builder builderForValue) {\n media_ = builderForValue.build();\n \n }", "title": "" }, { "docid": "70042c7a353fc6cca2d20cdf2319a3e5", "score": "0.49344048", "text": "private void setMedia(\n FollowersPlus.PBMedia.Builder builderForValue) {\n media_ = builderForValue.build();\n \n }", "title": "" }, { "docid": "70042c7a353fc6cca2d20cdf2319a3e5", "score": "0.49324822", "text": "private void setMedia(\n FollowersPlus.PBMedia.Builder builderForValue) {\n media_ = builderForValue.build();\n \n }", "title": "" }, { "docid": "70042c7a353fc6cca2d20cdf2319a3e5", "score": "0.49324822", "text": "private void setMedia(\n FollowersPlus.PBMedia.Builder builderForValue) {\n media_ = builderForValue.build();\n \n }", "title": "" }, { "docid": "e343ef8b6ce45b7a31b773d9bbcca050", "score": "0.49283445", "text": "public void setMediaResource(byte[] mediaResource) {\n MediaResource = mediaResource;\n }", "title": "" }, { "docid": "eb48b0c855774dca36052e6be82a80c3", "score": "0.492736", "text": "public Builder setMediaCode(\n java.lang.String value) {\n copyOnWrite();\n instance.setMediaCode(value);\n return this;\n }", "title": "" }, { "docid": "eb48b0c855774dca36052e6be82a80c3", "score": "0.492736", "text": "public Builder setMediaCode(\n java.lang.String value) {\n copyOnWrite();\n instance.setMediaCode(value);\n return this;\n }", "title": "" }, { "docid": "eb48b0c855774dca36052e6be82a80c3", "score": "0.492736", "text": "public Builder setMediaCode(\n java.lang.String value) {\n copyOnWrite();\n instance.setMediaCode(value);\n return this;\n }", "title": "" }, { "docid": "a874b3e870aa2f6130f7af8e55af7b27", "score": "0.49177396", "text": "private void addMedias(AtRuleMedia m, String medias, ApplContext ac) throws InvalidParamException {\n // before CSS3, let's parse it the easy way...\n if (ac.getCssVersion().compareTo(CssVersion.CSS3) < 0) {\n StringTokenizer tokens = new StringTokenizer(medias, \",\");\n while (tokens.hasMoreTokens()) {\n m.addMedia(null, tokens.nextToken().trim(), ac);\n }\n } else {\n CssFouffa muP = new CssFouffa(ac, new StringReader(medias));\n try {\n AtRuleMedia arm = muP.parseMediaDeclaration();\n if (arm != null) {\n m.allMedia = arm.allMedia;\n }\n } catch (ParseException pex) {\n // error already added, so nothing else to do\n }\n }\n }", "title": "" }, { "docid": "e84feb81236b89975b2fe1580268553f", "score": "0.49136686", "text": "private void setRelatedMedias(\n int index, FollowersPlus.PBAccountListElement.MediaWithRelation value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureRelatedMediasIsMutable();\n relatedMedias_.set(index, value);\n }", "title": "" }, { "docid": "09b20b3a2b0cdc0c06bd1fca5660b5b5", "score": "0.4896465", "text": "private void updateCurrentMedia(@Nullable MediaItem media) {\n if (mCurrentMedia != media) {\n mCurrentMedia = media;\n mChanged = true;\n }\n }", "title": "" }, { "docid": "01f4765cf8df2efba4cc2ab26d194ebe", "score": "0.48791003", "text": "public void setMedia(final MediaTypeEnum media) {\n this.media = media;\n }", "title": "" }, { "docid": "bfb169e72e974382a9fd4e763a305dd4", "score": "0.48718116", "text": "boolean updateInfo(MediaItem media);", "title": "" }, { "docid": "1a18426e2a61fac022de3ec118e7205f", "score": "0.48676145", "text": "@Override\n public void setSpecialistId(String vendorId) {\n if(vendorId.startsWith(ID_PREFIX)) {\n super.setSpecialistId(vendorId);\n } else {\n super.setSpecialistId(ID_PREFIX + vendorId);\n }\n }", "title": "" }, { "docid": "472536989932f6409d3c6a2e8ac6844b", "score": "0.48275286", "text": "void setId(int id) {\n this.id = id;\n fireMovieChanged();\n }", "title": "" }, { "docid": "f44c400077af6bee5545cd7f797daddc", "score": "0.4822399", "text": "@java.lang.Override\n public com.google.protobuf.ByteString\n getMediaIDBytes() {\n return com.google.protobuf.ByteString.copyFromUtf8(mediaID_);\n }", "title": "" }, { "docid": "f44c400077af6bee5545cd7f797daddc", "score": "0.4822399", "text": "@java.lang.Override\n public com.google.protobuf.ByteString\n getMediaIDBytes() {\n return com.google.protobuf.ByteString.copyFromUtf8(mediaID_);\n }", "title": "" }, { "docid": "f44c400077af6bee5545cd7f797daddc", "score": "0.48221013", "text": "@java.lang.Override\n public com.google.protobuf.ByteString\n getMediaIDBytes() {\n return com.google.protobuf.ByteString.copyFromUtf8(mediaID_);\n }", "title": "" }, { "docid": "4fb73c3345f0da7d9578c6e24fa93076", "score": "0.4803292", "text": "public void companyMediaUpload() {\n\t\tthis.uuid = UUID.randomUUID();\n\t this.length = mediaUploadedfile.length();\n\t\t\t\t\n\t\tMimetypesFileTypeMap mfm = new MimetypesFileTypeMap();\n\t\tthis.type = \"video\";\n if(originalName!=null && originalName.contains(\".jpg\")){\n type = \"image/jpeg\";\n }\n if(originalName!=null && originalName.contains(\".jpeg\")){\n type = \"image/jpeg\";\n }\n if(originalName!=null && originalName.contains(\".png\")){\n type = \"image/png\";\n }\n if(originalName!=null && originalName.contains(\".gif\")){\n type = \"image/gif\";\n }\n\n this.name = this.getFileName();\n\t\t\n\t\t// upload file on S3\n if (S3Plugin.amazonS3 == null) {\n Logger.error(\"Could not save because amazonS3 was null\");\n throw new RuntimeException(\"Could not save\");\n } else {\n if(this.bucket == null) {\n this.bucket = S3Plugin.s3Bucket;\n }\n }\n\t\tPutObjectRequest putObjectRequest = new PutObjectRequest(bucket, getFileName(), mediaUploadedfile);\n\t\tputObjectRequest.withCannedAcl(CannedAccessControlList.PublicRead); // public for all\n\t\tputObjectRequest.setStorageClass(\"REDUCED_REDUNDANCY\");\n\t\tS3Plugin.amazonS3.putObject(putObjectRequest); \n\n\t\t//persist the data in File table\n\t\tthis.save(); // assigns an id\n \n\t\t//update the Product table\n\t\tList<Product> products = new Product().findbyCompanyID(refId);\n\t\tif (products!=null && products.size()==1){\n\t\t\tProduct product = products.get(0);\n\t\t\tboolean flag = true;\n\t\t\tswitch (mediaLinkType) {\n case \"banner_photo\": product.productAdditionalDetail.bannerPhoto = this;\n \tbreak;\n case \"description_video1\": product.productAdditionalDetail.descriptionVideo1 = this;\n \tbreak;\n case \"description_video2\": product.productAdditionalDetail.descriptionVideo2 = this;\n \tbreak;\n case \"description_video3\": product.productAdditionalDetail.descriptionVideo3 = this;\n \tbreak;\n case \"description_photo1\": product.productAdditionalDetail.descriptionPhoto1 = this;\n \tbreak;\n case \"description_photo2\": product.productAdditionalDetail.descriptionPhoto2 = this;\n \t\tbreak;\n case \"story_photo1\": product.productAdditionalDetail.storyPhoto1 = this;\n \t\tbreak;\n case \"story_photo2\": product.productAdditionalDetail.storyPhoto2 = this;\n \t\t\tbreak;\t\n case \"member1photo\": product.productAdditionalDetail.member1Photo = this;\n \t\t\tbreak;\n case \"member2photo\": product.productAdditionalDetail.member2Photo = this;\n \t\t\tbreak;\n case \"member3photo\": product.productAdditionalDetail.member3Photo = this;\n \tbreak;\n case \"member4photo\": product.productAdditionalDetail.member4Photo = this;\n \t\tbreak;\n case \"member5photo\": product.productAdditionalDetail.member5Photo = this;\n \t\tbreak;\n \tcase \"member6photo\": product.productAdditionalDetail.member6Photo = this;\n \t\tbreak;\n \tdefault: flag = false;\n \tbreak;\t\n\t\t\t}\n\t\t\tif (flag){\n\t\t\t\tSystem.out.println(\"Updating product now..\");\n\t\t\t\tproduct.update();\n\t\t\t}\n\t\t} else {\n\t\t\tLogger.error(\"Could not update Product table; several products found to update\");\n\t\t}\n\t\t\n\t\t//transcoder work\n this.transcode();\n\t\t\n\t}", "title": "" }, { "docid": "9deb2c352b75ef5f370169e0918332bc", "score": "0.47938398", "text": "String getAssetId();", "title": "" }, { "docid": "a942590581224f50715174768e3d1570", "score": "0.47895187", "text": "public void prepareMedia(String url){\n anInterface.PrepareMedia(url);\n }", "title": "" }, { "docid": "ec9ed65948d057e6c8579925c59bcfba", "score": "0.478495", "text": "public void setrawmaterialid(String rawmaterialid) {\n this.rawmaterialid = rawmaterialid;\n }", "title": "" }, { "docid": "af6ce0f64d331389367d4c6913042d6c", "score": "0.47841308", "text": "public Builder setMatchId(long value) {\n bitField0_ |= 0x00000002;\n matchId_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "b4dab560c11e47c3eabe478df5460648", "score": "0.4783333", "text": "com.google.protobuf.ByteString\n getMediaIDBytes();", "title": "" }, { "docid": "af6ce0f64d331389367d4c6913042d6c", "score": "0.47824055", "text": "public Builder setMatchId(long value) {\n bitField0_ |= 0x00000002;\n matchId_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "af6ce0f64d331389367d4c6913042d6c", "score": "0.4782305", "text": "public Builder setMatchId(long value) {\n bitField0_ |= 0x00000002;\n matchId_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "af6ce0f64d331389367d4c6913042d6c", "score": "0.4781419", "text": "public Builder setMatchId(long value) {\n bitField0_ |= 0x00000002;\n matchId_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "af6ce0f64d331389367d4c6913042d6c", "score": "0.4781419", "text": "public Builder setMatchId(long value) {\n bitField0_ |= 0x00000002;\n matchId_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "af6ce0f64d331389367d4c6913042d6c", "score": "0.4780899", "text": "public Builder setMatchId(long value) {\n bitField0_ |= 0x00000002;\n matchId_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "af6ce0f64d331389367d4c6913042d6c", "score": "0.4780899", "text": "public Builder setMatchId(long value) {\n bitField0_ |= 0x00000002;\n matchId_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "af6ce0f64d331389367d4c6913042d6c", "score": "0.47806153", "text": "public Builder setMatchId(long value) {\n bitField0_ |= 0x00000002;\n matchId_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "af6ce0f64d331389367d4c6913042d6c", "score": "0.47806153", "text": "public Builder setMatchId(long value) {\n bitField0_ |= 0x00000002;\n matchId_ = value;\n onChanged();\n return this;\n }", "title": "" } ]
af4f0e5740f25a3b0928c8c9e83a0e79
/ notification message configurations
[ { "docid": "cb85fff97c41a324a8e91a4e0faff529", "score": "0.0", "text": "public String getStartJobMessage() {\n return startJobMessage;\n }", "title": "" } ]
[ { "docid": "8268ba5c21423c46ee431db34adb50e7", "score": "0.66442186", "text": "public void config(String msg);", "title": "" }, { "docid": "93ff2c433b48aee6f26d34567a51c8e1", "score": "0.61097944", "text": "private void sendNotification() {\n\t}", "title": "" }, { "docid": "92876a4df2f641ad980739eb59c7df2b", "score": "0.6085245", "text": "public void messageConfiguration() {\n messageLabel = new JLabel(\"Enter your player name...\");\n messagePanel = new JPanel();\n messagePanel.setBackground(Color.GREEN);\n messagePanel.add(messageLabel);\n mainFrame.add(messagePanel, BorderLayout.NORTH);\n }", "title": "" }, { "docid": "9197e856bbd91a93d6afcaf65c514e62", "score": "0.6080439", "text": "private void addNotification() {\n }", "title": "" }, { "docid": "a57307b7842d9fcc012f152c50f63107", "score": "0.6020028", "text": "private void notificationOne() {\n NotificationCompat.Builder builder = new NotificationCompat.Builder(MainActivity.this,CHANNEL_ID)\n .setSmallIcon(R.mipmap.ic_launcher)\n .setContentTitle(\"Notification One\")\n .setContentText(\"A notification in its most basic and compact form (also known as collapsed form) displays an icon, a title, and a small amount of content text.\")\n .setStyle(new NotificationCompat.BigTextStyle().bigText(\"A notification in its most basic and compact form (also known as collapsed form) displays an icon, a title, and a small amount of content text.\")) //By default, the notification's text content is truncated to fit one line. If you want your notification to be longer, you can enable an expandable notification by adding a style template with setStyle().\n .setPriority(NotificationCompat.PRIORITY_DEFAULT);//The priority determines how intrusive the notification should be on Android 7.1 and lower. (For Android 8.0 and higher, you must instead set the channel importance)\n\n\n\n\n //showing the notification\n NotificationManagerCompat.from(MainActivity.this)\n .notify(NOTIFICATION_ONE_ID, builder.build());\n }", "title": "" }, { "docid": "1ca23cfed7c315af7941c917599aba51", "score": "0.5952152", "text": "public void addNotification() {\n\t\trName = Messages.reciever;\n\t\tsName = Messages.sender;\n\t\tmsg = Messages.msg;\n\t\tseen = false;\n\n\t\tArrayList<String> recieve = GroupMsg.getAllRecievers(Messages.reciever);\n\t\trecieve.add(GroupMsg.getCreator(Messages.reciever));\n\t\tfor (int i = 0; i < recieve.size(); i++) \n\t\t{\n\t\t\tDatastoreService datastore1 = DatastoreServiceFactory\n\t\t\t\t\t.getDatastoreService();\n\t\t\tQuery gaeQuery1 = new Query(\"Notifications\");\n\t\t\tPreparedQuery pq1 = datastore1.prepare(gaeQuery1);\n\t\t\tList<Entity> list1 = pq1.asList(FetchOptions.Builder\n\t\t\t\t\t.withDefaults());\n\t\t\tEntity messageNotify = new Entity(\"Notifications\",\n\t\t\t\t\tlist1.size() + 1);\n\n\t\t\tif(!recieve.get(i).equals(Messages.sender))\n\t\t\t{\n\t\t\t\tmessageNotify.setProperty(\"ID\", list1.size() + 1);\n\t\t\t\tmessageNotify.setProperty(\"Type\", TYPE);\n\t\t\t\tmessageNotify.setProperty(\"Sender\", Messages.sender);\n\t\t\t\tmessageNotify.setProperty(\"Name\", recieve.get(i));\n\t\t\t\tmessageNotify.setProperty(\"Msg\", Messages.msg);\n\t\t\t\tmessageNotify.setProperty(\"Seen\", false);\n\t\t\t\tmessageNotify.setProperty(\"Conversation\", rName);\n\t\t\t\tdatastore1.put(messageNotify);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "d0d2d58be92d6a321a2876e24b497c8b", "score": "0.5945482", "text": "private Notification() {\n initFields();\n }", "title": "" }, { "docid": "e50aded5dc2805c0c6dc862f70c8527f", "score": "0.59378374", "text": "private NotificationMessage loadNotificationMessage(String notificationType, String notificationText) {\n NotificationMessage result;\n try {\n if (notificationType == null || notificationText == null) throw new IllegalArgumentException();\n result = new NotificationMessage(\n NotificationType.valueOf(bbPlugin.getConfig().getString(notificationType)),\n ChatColor.translateAlternateColorCodes('&', Objects.requireNonNull(bbPlugin.getConfig().getString(notificationText)))\n );\n return result;\n }\n catch (Exception e) {\n bbPlugin.getLogger().log(Level.WARNING, \"Problem loading notification config: \" + notificationType + \", there is a typo in your config.yml file.\" );\n }\n return null;\n }", "title": "" }, { "docid": "17470e0a7c1dbe5a2f4add24f21d94bd", "score": "0.5908578", "text": "@Override\n public void onMessageReceived(RemoteMessage remoteMessage) {\n\n Map<String, String> data = remoteMessage.getData();\n //you can get your text message here.\n String action = data.get(\"action\");\n\n // Also if you intend on generating your own notifications as a result of a received FCM\n // message, here is where that should be initiated. See sendNotification method below.\n\n try {\n //message to show one notification\n if (action.equals(\"notification\")) {\n NotificationLib nlib = new NotificationLib(this);\n //replace link to redirect user to survey list instead of fill out form\n data.put(\"link\", \"survey_list\");\n nlib.showNotificationSurvey(data);\n }\n\n //message to set alarm\n else if (action.equals(\"alarm\")) {\n AlarmLib alib = new AlarmLib(this);\n alib.setOrUpdateNewAlarm(data);\n }\n\n //message to cancel alarm\n else if (action.equals(\"cancel_alarm\")) {\n AlarmLib alib = new AlarmLib(this);\n alib.cancelAndDeleteAlarms(data.get(\"srv_id\"));\n }\n\n //message to cancel repeater\n else if (action.equals(\"stop_repeater\")) {\n AlarmLib alib = new AlarmLib(this);\n alib.cancelAndDeleteRepeater(data.get(\"srv_id\"));\n alib.cancelAndDeleteAlarms(data.get(\"srv_id\"));\n }\n\n //message to cancel geofencing\n else if (action.equals(\"cancel_geofencing\")) {\n GeofencingLib glib = new GeofencingLib(this);\n glib.cancelGeofences(data.get(\"srv_id\"));\n }\n\n //message to set geofences\n else if (action.equals(\"geofencing\")) {\n GeofencingLib glib = new GeofencingLib(this);\n glib.setOrUpdateNewGeofences(data);\n }\n\n //message to set tracking\n else if (action.equals(\"tracking\")) {\n TrackingLib tlib = new TrackingLib(this);\n tlib.setOrUpdateNewTracking(data);\n }\n\n //message to cancel tracking\n else if (action.equals(\"cancel_tracking\")) {\n TrackingLib tlib = new TrackingLib(this);\n tlib.cancelTracking(data.get(\"srv_id\"), \"server cancel\");\n }\n\n //message to set data entry\n else if (action.equals(\"entry\")) {\n EntryLib elib = new EntryLib(this);\n elib.setOrUpdateNewEntry(data);\n }\n\n //message to cancel data entry\n else if (action.equals(\"cancel_entry\")) {\n EntryLib elib = new EntryLib(this);\n elib.cancelEntry(data.get(\"srv_id\"));\n }\n\n //message to cancel all things for survey (survey is deactivated)\n else if (action.equals(\"cancel_all\")) {\n String srv_id = data.get(\"srv_id\");\n EntryLib elib = new EntryLib(this);\n elib.cancelEntry(srv_id);\n TrackingLib tlib = new TrackingLib(this);\n tlib.cancelTracking(srv_id, \"server cancel (survey deactivated)\");\n GeofencingLib glib = new GeofencingLib(this);\n glib.cancelGeofences(srv_id);\n AlarmLib alib = new AlarmLib(this);\n alib.cancelAndDeleteRepeater(srv_id);\n alib.cancelAndDeleteAlarms(srv_id);\n GeneralLib.deleteSurveyDB(this, srv_id);\n }\n } catch (NullPointerException e){\n Log.e(\"1kapanel\", \"MyFirebaseMessagingService - Error: \" + e.getMessage());\n GeneralLib.reportCrash(e, null);\n }\n }", "title": "" }, { "docid": "e53ece8ce6c06eb5cc8213190e2d7c8c", "score": "0.58845055", "text": "public void displayMessageConfig(String str){\n\t\tgetConfigPanel().getDisplay().display(str);\n\t\t\n\t}", "title": "" }, { "docid": "e7b48d322aa2d5c208dfbbc0265fabaa", "score": "0.5862247", "text": "private void processTemplate(NotificationMessage msg) {\n }", "title": "" }, { "docid": "a4b791de2cf573db7bc7634dd54ae954", "score": "0.58594966", "text": "private void handleNow(String messageText) {\n\n if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.O) {\n setupChannels();\n }\n\n NotificationManager mManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);\n\n Log.d(FCM_TAG, \"handleNow\");\n NotificationCompat.Builder mBuilder = new NotificationCompat.Builder(this, ADMIN_CHANNEL_ID)\n .setSmallIcon(R.mipmap.ic_tobedetermined_icon)\n .setContentTitle(\"My notification\")\n .setContentText(\"Hello World!\")\n .setDefaults(Notification.DEFAULT_SOUND)\n .setPriority(NotificationCompat.PRIORITY_HIGH);\n\n Uri uri = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);\n mBuilder.setSound(uri);\n\n if (mManager != null) {\n mManager.notify(0, mBuilder.build());\n }\n\n }", "title": "" }, { "docid": "06f799c57661b26bf76fc25cca891c31", "score": "0.5838193", "text": "@PostMapping(\"/initmsg\")\n\tpublic ResponseEntity<?> initMessageForQuese(@RequestBody List<Payload> payloads) {\n\t\tMessageResponse<FcmResponse> response = new MessageResponse<FcmResponse>();\n\t\ttry {\n\t\t\tif(payloads != null && payloads.size() > 0) {\n\t\t\t\tfor (Payload payload : payloads) {\n\t\t\t\t\tif(payload.getReceiver() != null && payload.getReceiver().size() > 0 ) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(payload.getMessage().getAppId() == null) {\n\t\t\t\t\t\t\tresponse.setMsg(\"insert message fail not applcation for send notification\");\n\t\t\t\t\t\t\tresponse.setStatus(1);\n\t\t\t\t\t\t\treturn new ResponseEntity(response, HttpStatus.OK);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\tApplication appli = appService.getApplicationById(payload.getMessage().getAppId());\n\t\t\t\t\t\t\tif(appli == null) {\n\t\t\t\t\t\t\t\tresponse.setMsg(\"insert message fail not applcation for send notification\");\n\t\t\t\t\t\t\t\tresponse.setStatus(1);\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\treturn new ResponseEntity(response, HttpStatus.OK);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t/*for (String receivers : payload.getReceiver()) {\n\t\t\t\t\t\t\tList<TokenDevice> listUserRef = tokenDeviceService.findTokenByUserRefAndAppId(receivers,payload.getMessage().getAppId());\n\t\t\t\t\t\t\tif(listUserRef != null && listUserRef.size() > 0) {\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\t//start ---> set application ที่จะส่ง notify\n\t\t\t\t\t\tApplication app = new Application();\n\t\t\t\t\t\tapp.setAppId(payload.getMessage().getAppId());\n\t\t\t\t\t\t//end ---> set application ที่จะส่ง notify\n\t\t\t\t\t\t\n\t\t\t\t\t\t//start ---> set Message default for q --> ที่จะส่ง notify\n\t\t\t\t\t\tMessage msg = new Message();\n\t\t\t\t\t\tmsg.setApplication(app);\n\t\t\t\t\t\tmsg.setBadge(payload.getMessage().getBadge());\n\t\t\t\t\t\tmsg.setBody(payload.getMessage().getBody());\n\t\t\t\t\t\tmsg.setBroadcast(false);\n\t\t\t\t\t\tmsg.setClickAction(payload.getMessage().getClickAction());\n\t\t\t\t\t\tmsg.setMsgType(Message.enum_msg_type.valueOf(payload.getMessage().getMsgType()));\n\t\t\t\t\t\tmsg.setPriority(payload.getMessage().getPriority());\n\t\t\t\t\t\tmsg.setSound(payload.getMessage().getSound());\n\t\t\t\t\t\tmsg.setTimeToLive(payload.getMessage().getTimeToLive());\n\t\t\t\t\t\tmsg.setTitle(payload.getMessage().getTitle());\n\t\t\t\t\t\tmsg.setSendTime(new Timestamp(System.currentTimeMillis()));\n\t\t\t\t\t\tmsg.setQueue(true);\n\t\t\t\t\t\tmsg.setMessageStatus(\"N\");\n\t\t\t\t\t\tInteger id = messageService.saveOrUpdate(msg);\n\t\t\t\t\t\t//end ---> set Message default for q --> ที่จะส่ง notify\n\t\t\t\t\t\t\n\t\t\t\t\t\t//start ---> set CusTomField default for q --> ที่จะส่ง notify\n\t\t\t\t\t\tJSONObject data = new JSONObject();\n\t\t\t\t\t\tif (payload.getData().size() > 0) {\n\t\t\t\t\t\t\tCustomField cus = null;\n\t\t\t\t\t\t\tfor (Map.Entry<String, String> entry : payload.getData().entrySet()) {\n\t\t\t\t\t\t\t\tcus = new CustomField();\n\t\t\t\t\t\t\t\tcus.setMsgId(id);\n\t\t\t\t\t\t\t\tcus.setKeyName(entry.getKey());\n\t\t\t\t\t\t\t\tcus.setKeyValue(entry.getValue());\n\t\t\t\t\t\t\t\tdata.put(entry.getKey(), entry.getValue());\n\t\t\t\t\t\t\t\t//cusSet.add(cus);\n\t\t\t\t\t\t\t\tcustomService.saveOrUpdate(cus);\n\t\t\t\t\t\t\t\tSystem.out.println(\">>>>>>>>>>>> \"+entry.getKey()+\" \"+entry.getValue());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//end ---> set CusTomField default for q --> ที่จะส่ง notify\n\t\t\t\t\t\t\n\t\t\t\t\t\t//start ---> set Receiver default for q --> ที่จะส่ง notify\n\t\t\t\t\t\tReceiver rec = null;\n\t\t\t\t\t\tfor (String recStr : payload.getReceiver()) {\n\t\t\t\t\t\t\trec = new Receiver();\n\t\t\t\t\t\t\trec.setMsgId(id);\n\t\t\t\t\t\t\trec.setUserRef(recStr);\n\t\t\t\t\t\t\trec.setNotifStatus(\"N\");\n\t\t\t\t\t\t\trecService.saveOrUpdate(rec);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tresponse.setMsg(\"insert message success \");\n\t\t\t\t\t\tresponse.setStatus(0);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t//end ---> set Receiver default for q --> ที่จะส่ง notify\n\t\t\t\t\t}else {\n\t\t\t\t\t\tresponse.setMsg(\"insert message fail not receiver for send notification\");\n\t\t\t\t\t\tresponse.setStatus(1);\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}else {\n\t\t\t\t\n\t\t\t\tresponse.setMsg(\"no list message\");\n\t\t\t\tresponse.setStatus(1);\n\t\t\t\t\t\n\t\t\t\treturn new ResponseEntity(response, HttpStatus.OK);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\n\t\t\n\t\t\t//messageService.saveOrUpdate(message);\n\t\t} catch (Exception ex) {\n\t\t\tlog.error(\"Exception occurred while save application \", ex);\n\t\t\tresponse.setMsg(ex.getMessage());\n\t\t\tresponse.setStatus(-1);\n\t\t\t\t\n\t\t\treturn new ResponseEntity(response, HttpStatus.BAD_REQUEST);\n\t\t}\n\t\treturn new ResponseEntity(response, HttpStatus.OK);\n\t}", "title": "" }, { "docid": "46c8de93388e2b4748c9498aeefa56fc", "score": "0.5837537", "text": "private void loadMessage() {\r\n\t\tthis.PREFIX = config.getString(\"Prefix\");\r\n\r\n\t}", "title": "" }, { "docid": "f11758458b48254ec7e40e97aec61f8f", "score": "0.5808034", "text": "Map<String, String> getConfiguration() {\n int base = (!ConfigurationManager.isWin()&&com.xlat4cast.mail.server.UnixUID.getUID()!=0)?1025:1;\n Map<String, String> configuration = new HashMap<String, String>();\n\n configuration.put(\"externalDelegated\", Boolean.toString(cm.isExternalDelegated()));\n configuration.put(\"listenAddress\", listenAddress.getHostAddress());\n configuration.put(\"selectedTransferMode\", transferMode.toString() + RESTART);\n configuration.put(\"transferMode\", \"Full,Local,Remote\");\n configuration.put(\"selectedRetrievalMode\", retrievalMode.toString() + RESTART);\n configuration.put(\"retrievalMode\", \"POP3,None\");\n configuration.put(\"smtpPort\", smtpPort + \"\");\n configuration.put(\"smtpPortMin\", String.valueOf(base));\n configuration.put(\"smtpPortMax\", \"65535\");\n configuration.put(\"rejectNonExistentLocal\", Boolean.toString(nonExistentLocalRejected));\n configuration.put(\"deliveryIntervalSeconds\", deliveryIntervalSeconds + \"\");\n configuration.put(\"deliveryIntervalSecondsMin\", \"1\");\n configuration.put(\"deliveryIntervalSecondsMax\", \"60\");\n configuration.put(\"deliveryAttemptThreshold\", deliveryAttemptThreshold + \"\");\n configuration.put(\"deliveryAttemptThresholdMin\", \"1\");\n configuration.put(\"deliveryAttemptThresholdMax\", \"60\");\n configuration.put(\"standardSMTPsecure\", Boolean.toString(standardSMTPsecure) + RESTART);\n configuration.put(\"selectedClientAuthSMTP\", clientAuthSMTP + RESTART);\n configuration.put(\"clientAuthSMTP\", \"no,requested,required\");\n configuration.put(\"selectedAllowClearTextSMTP\", (allowClearTextSMTP.getLiteral()) + RESTART);\n configuration.put(\"allowClearTextSMTP\", \"never,encryptedOnly,always\");\n configuration.put(\"verifyIP\", Boolean.toString(verifyIP) + RESTART);\n configuration.put(\"relayApprovedIPAddresses\", Utils.stringify(relayApprovedIPAddresses, \",\") + RESTART);\n configuration.put(\"relayApprovedEmailAddresses\", Utils.stringify(relayApprovedEmailAddresses, \",\") + RESTART);\n configuration.put(\"enablePOPBeforeSMTP\", Boolean.toString(enablePOPBeforeSMTP) + RESTART);\n configuration.put(\"authenticationTimeoutMilliseconds\", (authenticationTimeoutMilliseconds / (60 * 1000)) + RESTART);\n configuration.put(\"authenticationTimeoutMillisecondsMin\", \"1\");\n configuration.put(\"authenticationTimeoutMillisecondsMax\", \"30\");\n configuration.put(\"HELO\", Boolean.toString(enableHELO));\n configuration.put(\"8BITMIME\", Boolean.toString(mime8bit));\n configuration.put(\"PIPELINING\", Boolean.toString(pipelining));\n configuration.put(\"SIZE\", maximumMessageSize + \"\");\n configuration.put(\"SIZEMin\", \"1\");\n configuration.put(\"SIZEMax\", \"1024\");\n configuration.put(\"maxValidRCPT\", maxValidRCPT + \"\");\n configuration.put(\"maxValidRCPTMin\", \"100\");\n configuration.put(\"addPctRCPT\", addPctRCPT + \"\");\n configuration.put(\"addPctRCPTMin\", \"5\");\n configuration.put(\"minTotFailRCPT\", minTotFailRCPT + \"\");\n configuration.put(\"minTotFailRCPTMin\", \"20\");\n configuration.put(\"minPctFailRCPT\", minPctFailRCPT + \"\");\n configuration.put(\"minPctFailRCPTMin\", \"70\");\n configuration.put(\"pop3Port\", pop3Port + \"\");\n configuration.put(\"pop3PortMin\", String.valueOf(base));\n configuration.put(\"pop3PortMax\", \"65535\");\n configuration.put(\"standardPOP3secure\", Boolean.toString(standardPOP3secure) + RESTART);\n configuration.put(\"selectedClientAuthPOP3\", clientAuthPOP3 + RESTART);\n configuration.put(\"clientAuthPOP3\", \"no,requested,required\");\n configuration.put(\"selectedAllowClearTextPOP3\", (allowClearTextPOP3.getLiteral()) + RESTART);\n configuration.put(\"allowClearTextPOP3\", \"never,encryptedOnly,always\");\n configuration.put(\"selectedSaslQOP\", saslQOP + RESTART);\n configuration.put(\"saslQOP\", \"auth,auth-int,auth-conf\");\n configuration.put(\"selectedCramMembers\", Utils.stringifyString(cramMembers, \",\") + RESTART);\n configuration.put(\"cramMembers\", \"CRAM-SHA-512,CRAM-SHA-384,CRAM-SHA-256,CRAM-SHA-1,CRAM-MD5\");\n configuration.put(\"digestMD5Enabled\", Boolean.toString(digestMD5Enabled) + RESTART);\n configuration.put(\"selectedDigestMD5Ciphers\", digestMD5Ciphers + RESTART);\n configuration.put(\"digestMD5Ciphers\", \"3des,des,rc4,rc4-56,rc4-40\");\n configuration.put(\"selectedScramMembers\", Utils.stringifyString(scramMembers, \",\") + RESTART);\n configuration.put(\"scramMembers\", \"SCRAM-SHA-512,SCRAM-SHA-384,SCRAM-SHA-256,SCRAM-SHA-1\");\n configuration.put(\"gssEnabled\", Boolean.toString(gssEnabled) + RESTART);\n configuration.put(\"gssRealm\", gssRealm + RESTART);\n configuration.put(\"gssKDC\", gssKDC + RESTART);\n configuration.put(\"gssPrincipal\", gssOptions.get(\"principal\") + RESTART);\n configuration.put(\"gssStoreKey\", gssOptions.get(\"storeKey\") + RESTART);\n configuration.put(\"gssUseKeyTab\", gssOptions.get(\"useKeyTab\") + RESTART);\n configuration.put(\"gssKeyTab\", gssOptions.get(\"keyTab\") + RESTART);\n configuration.put(\"executeThreadCount\", executeThreadCount + RESTART);\n configuration.put(\"executeThreadCountMin\", \"2\");\n configuration.put(\"executeThreadCountMax\", \"50\");\n configuration.put(\"secureActive\", Boolean.toString(secureActive) + RESTART);\n configuration.put(\"secureExecuteThreadCount\", secureExecuteThreadCount + RESTART);\n configuration.put(\"secureExecuteThreadCountMin\", \"2\");\n configuration.put(\"secureExecuteThreadCountMax\", \"50\");\n configuration.put(\"secureSMTPPort\", secureSMTPPort + RESTART);\n configuration.put(\"secureSMTPPortMin\", String.valueOf(base));\n configuration.put(\"secureSMTPPortMax\", \"65535\");\n configuration.put(\"securePOP3Port\", securePOP3Port + RESTART);\n configuration.put(\"securePOP3PortMin\", String.valueOf(base));\n configuration.put(\"securePOP3PortMax\", \"65535\");\n configuration.put(\"outgoingSecure\", Boolean.toString(outgoingSecure) + RESTART);\n configuration.put(\"defaultSMTPServers\", Utils.stringifyDefaultSMTPServer(defaultSMTPServers, \",\"));\n configuration.put(\"allowRemoteRestart\", Boolean.toString(cm.isAllowRemoteRestart()));\n\n return configuration;\n }", "title": "" }, { "docid": "1bfea159c3d6da03044ae79a1a31238f", "score": "0.5801552", "text": "private static void generateNotification(Context context, String message) {\r\n \tgenerateNotification(context, message);\r\n }", "title": "" }, { "docid": "7a6c05d8d3dad770d55db179046fc21c", "score": "0.5755223", "text": "public interface Messages {\n\n String SCHEDULE_ALREADY_CONFIRMED = \"schedule.already.confirmed\";\n String SCHEDULE_CONFIRMED = \"schedule.confirmed\";\n String BUS_ASSIGNED_TO_ROUTE = \"bus.assigned.to.route\";\n String NO_CONNECTED_DRIVER = \"no.connected.driver\";\n String DRIVER_ASSIGNED = \"driver.assigned\";\n String DRIVER_SWAPPED = \"drivers.swapped\";\n String ROUTE_IS_EMPTY = \"route.is.empty\";\n String NO_BUSES_TO_APPOINT = \"no.buses.to.appoint\";\n String NO_DRIVERS_TO_APPOINT = \"no.drivers.to.appoint\";\n String BUS_CANCELED = \"bus.canceled\";\n String DRIVER_CANCELED = \"driver.canceled\";\n String DRIVER_NOT_ASSIGNED = \"driver.not.assigned\";\n String BUS_HAS_BEEN_DELETED = \"bus.deleted\";\n String DRIVER_HAS_BEEN_DELETED = \"driver.deleted\";\n String ROUTE_HAS_BEEN_DELETED = \"route.deleted\";\n String LANGUAGE_HAS_BEEN_CHANGED = \"language.changed\";\n String ADMIN_SAVED = \"admin.saved\";\n String ADMIN_UPDATED = \"admin.updated\";\n String BUS_SAVED = \"bus.saved\";\n String BUS_UPDATED = \"bus.updated\";\n String DRIVER_SAVED = \"driver.saved\";\n String DRIVER_UPDATED = \"driver.updated\";\n String ROUTE_SAVED = \"route.saved\";\n String ROUTE_UPDATED = \"route.updated\";\n String NO_RESULTS_FOR_CRITERIA = \"no.results.for.criteria\";\n String INCORRECT_INPUT = \"incorrect.input\";\n String INPUT_ERROR = \"input.error\";\n String USER_NOT_REGISTERED = \"user.not.registered\";\n}", "title": "" }, { "docid": "0d4958f13304f6e7b771eeb269fff584", "score": "0.57193613", "text": "public Notification(String nome_noti, String email_noti, String mensagem) {\n this.nome_noti = nome_noti;\n this.email_noti = email_noti;\n this.mensagem = mensagem;\n\n }", "title": "" }, { "docid": "0ee474cf6f5d68992d67c8764ca2a79f", "score": "0.5689039", "text": "public String getNotificationMessage()\n {\n return this.notificationMessage;\n }", "title": "" }, { "docid": "14302eb94a190a85f7979a608a4c034f", "score": "0.56867504", "text": "private void initDefaults() {\r\n \tmsgDefaults.clear();\r\n msgDefaults.put(\"player-only\", \"This only works in game!\");\r\n msgDefaults.put(\"access-denied\", \"&cAccess denied!\");\r\n msgDefaults.put(\"config-reloaded\", \"&6Configuration reloaded!\");\r\n msgDefaults.put(\"no-mount\", \"&cYou cannot mount a pig unless the block above is empty!\");\r\n msgDefaults.put(\"no-ride-into\", \"&cYou cannot ride a pig into a space where the block above is not empty!\");\r\n msgDefaults.put(\"material-added\", \"&6%material% &eadded to the exceptions.\");\r\n msgDefaults.put(\"material-removed\", \"&6%material% &eremoved from the exceptions.\");\r\n msgDefaults.put(\"hold-item\", \"&6Please hold the item to remove/add in your hand.\");\r\n msgDefaults.put(\"cmd-toggle-item\", \"&6/npxr &7- &eToggles exception for the item in hand\");\r\n msgDefaults.put(\"cmd-hotbar-item\", \"&6/npxr hotbar add &7- &eAdds exceptions for all items in hotbar%br%&6/npxr hotbar remove &7- &eRemoves exceptions for all items in hotbar\");\r\n msgDefaults.put(\"cmd-reload\", \"&6/npxr reload &7- &eReloads config from disk\");\r\n msgDefaults.put(\"cmd-msg-view\", \"&6/npxr msg [msgcode] &7- &eView the set message for that code\"); \r\n msgDefaults.put(\"cmd-msg-set\", \"&6/npxr msg [msgcode] [msg] &7- &eSet the message for that code\");\r\n msgDefaults.put(\"cmd-msg-list\", \"&6/npxr msg list &7- &eList the available message codes\");\r\n msgDefaults.put(\"msgcodes-header\", \"&6Available message codes:\");\r\n msgDefaults.put(\"msgcodes-data\", \"&e%msgcode%\");\r\n msgDefaults.put(\"msgcodes-footer\", \"\");\r\n msgDefaults.put(\"invalid-msgcode\", \"&cThat is not a valid message code!\");\r\n msgDefaults.put(\"msgcode-view\", \"&e%msgcode% &6is currently &e%msg%\");\r\n msgDefaults.put(\"msgcode-set\", \"&e%msgcode% &6has been set to &e%msg%\");\r\n }", "title": "" }, { "docid": "488625e9db7254d73c169e4528ab5503", "score": "0.5683924", "text": "public interface ConfigurationMessage extends ClientMessage {\n\n /**\n * Calls the right method of {@link ClientStatus} in order to process the message itself.\n * @param clientStatus {@link ClientStatus} instance that will process message itself.\n */\n void handleConfigurationMessage(ClientStatus clientStatus) throws IOException, ClassNotFoundException;\n\n}", "title": "" }, { "docid": "4eae0a2995c67f4468656ff1c47ab8f9", "score": "0.56474584", "text": "private void generateNotification(Context context, String message,String sender,String cat,String message_title) {\n \t \n \tint icon = R.drawable.ic_launcher;\n long when = System.currentTimeMillis();\n NotificationManager notificationManager = (NotificationManager)\n context.getSystemService(Context.NOTIFICATION_SERVICE);\n Notification notification = new Notification(icon, message, when);\n // Log.d(\"web\",cat);\n String title = \"Sorry Messenger\";\n \n Intent notificationIntent = new Intent(context,Simple_Notification.class);\n notificationIntent.putExtra(\"message\",message);\n notificationIntent.putExtra(\"sender\",sender);\n notificationIntent.putExtra(\"cat\",cat);\n notificationIntent.putExtra(\"title\",message_title);\n notificationIntent.putExtra(\"GCMIService\",true);\n \n \n // set intent so it does not start a new activity\n notificationIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP |\n Intent.FLAG_ACTIVITY_SINGLE_TOP);\n PendingIntent intent =\n PendingIntent.getActivity(context, 0, notificationIntent, 0);\n notification.setLatestEventInfo(context, title,message, intent);\n notification.flags |= Notification.FLAG_AUTO_CANCEL;\n \n // Play default notification sound\n notification.defaults |= Notification.DEFAULT_SOUND;\n \n // Vibrate if vibrate is enabled\n notification.defaults |= Notification.DEFAULT_VIBRATE;\n notificationManager.notify(0, notification); \n \n\n }", "title": "" }, { "docid": "20580b39d9d151c5ef513d8f778375ee", "score": "0.56382257", "text": "void onNotificationReceived(MOKMessage notification);", "title": "" }, { "docid": "220fd44afc200850f1b5080c27a2ddc1", "score": "0.5634797", "text": "@Override\n public void onReceiveMessageNotify(ECMessageNotify arg0) {\n\n }", "title": "" }, { "docid": "1c5ab78be1cdaec2654b1cd354720a8b", "score": "0.5634707", "text": "private void setNotification(JSONObject notificaion) throws JSONException {\n\n\n NotificationCompat.Builder mBuilder =\n new NotificationCompat.Builder(this)\n .setSmallIcon(R.drawable.ic_search_map)\n .setContentTitle(notificaion.getString(\"messageType\"))\n .setContentText(notificaion.getString(\"message\"))\n .setAutoCancel(true);\n\n Intent resultIntent = new Intent(this, MainActivity.class);\n\n TaskStackBuilder stackBuilder = TaskStackBuilder.create(this);\n\n // TODO: 11/9/2016 Svakoj notifikaciji dodati drugi contentText, drugi Bundle i podatke\n\n switch (notificaion.getString(\"messageType\")){\n case Notifications.MSG_DATA : {\n Bundle b = new Bundle();\n JSONObject data = notificaion.getJSONObject(\"message\");\n b.putString(\"user\", data.getJSONObject(\"fromUser\").toString());\n\n break;\n }\n case Notifications.MSG_ACCEPT : {\n break;\n }\n case Notifications.MSG_END_LOCATION : {\n break;\n }\n case Notifications.MSG_START_LOCATION : {\n break;\n }\n case Notifications.MSG_NEW_RATE : {\n break;\n }\n\n }\n\n stackBuilder.addParentStack(MainActivity.class);\n stackBuilder.addNextIntent(resultIntent);\n\n PendingIntent resultPendingIntent =\n stackBuilder.getPendingIntent(\n 0,\n PendingIntent.FLAG_UPDATE_CURRENT\n );\n mBuilder.setContentIntent(resultPendingIntent);\n NotificationManager mNotificationManager =\n (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);\n\n mNotificationManager.notify(MY_ID, mBuilder.build());\n }", "title": "" }, { "docid": "6dfed6988be5e29b932f9b0a62306b74", "score": "0.56342876", "text": "@Override\n public void message(PubNub pubnub, PNMessageResult message) {\n if (message.getChannel() != null) {\n // Message has been received on channel group stored in\n // message.getChannel()\n Log.e(\"doh\", \"Doh\");\n\n NotificationManager mNotificationManager =\n (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);\n\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {\n\n NotificationChannel notificationChannel = new NotificationChannel(\"facelock\", \"My Notifications\", NotificationManager.IMPORTANCE_DEFAULT);\n\n // Configure the notification channel.\n notificationChannel.setDescription(\"Channel description\");\n notificationChannel.enableLights(true);\n notificationChannel.setLightColor(Color.RED);\n notificationChannel.setVibrationPattern(new long[]{0, 1000, 500, 1000});\n notificationChannel.enableVibration(true);\n mNotificationManager.createNotificationChannel(notificationChannel);\n }\n Notification.Builder mBuilder =\n new Notification.Builder(LaunchActivity.this, \"facelock\")\n .setSmallIcon(R.mipmap.ic_launcher_small)\n .setContentTitle(\"Face lock\")\n .setContentText(\"Face lock is detecting unusual activity, click to see security cam.\");\n\n\n Intent notificationIntent = new Intent(LaunchActivity.this, MainActivity.class);\n\n notificationIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP\n | Intent.FLAG_ACTIVITY_SINGLE_TOP);\n\n PendingIntent intent = PendingIntent.getActivity(LaunchActivity.this, 0,\n notificationIntent, 0);\n\n mBuilder.setContentIntent(intent);\n\n mNotificationManager.notify(001, mBuilder.build());\n// Intent intent = new Intent(MainActivity.this, MainActivity.class);\n\n// MainActivity.this.startActivity(intent);\n }\n else {\n // Message has been received on channel stored in\n // message.getSubscription()\n }\n\n /*\n log the following items with your favorite logger\n - message.getMessage()\n - message.getSubscription()\n - message.getTimetoken()\n */\n }", "title": "" }, { "docid": "834068a02adaebe1a44cbee604fb0e2f", "score": "0.56340617", "text": "private interface MessageConstants {\n int MESSAGE_READ = 0;\n int MESSAGE_WRITE = 1;\n int MESSAGE_TOAST = 2;\n\n // ... (Add other message types here as needed.)\n }", "title": "" }, { "docid": "cb5ee4e0d447a2a5016952860bef622b", "score": "0.56320846", "text": "@Override\n public void onMessageReceived(RemoteMessage remoteMessage) {\n\n String title = remoteMessage.getData().get(\"title\");\n String message = remoteMessage.getData().get(\"message\");\n String img_url = remoteMessage.getData().get(\"img_url\");\n String date = remoteMessage.getData().get(\"date\");\n\n Intent intent = new Intent(this, MainActivity.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n PendingIntent pendingIntent = PendingIntent.getActivity( this, 0, intent, PendingIntent.FLAG_ONE_SHOT);\n Uri sounduri = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);\n\n\n\n InputStream in;\n Bitmap myBitmap = null;\n try {\n URL url = new URL(img_url);\n HttpURLConnection connection = (HttpURLConnection) url.openConnection();\n connection.setDoInput(true);\n connection.connect();\n in = connection.getInputStream();\n myBitmap = BitmapFactory.decodeStream(in);\n } catch (MalformedURLException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n NotificationCompat.BigPictureStyle bigPictureStyle = new NotificationCompat.BigPictureStyle();\n bigPictureStyle.bigPicture(myBitmap).build();\n\n NotificationCompat.Builder builder = new NotificationCompat.Builder(this.getApplicationContext());\n builder.setContentTitle(title);\n builder.setContentText(message + date);\n builder.setContentIntent(pendingIntent);\n builder.setSound(sounduri);\n builder.setSmallIcon(R.mipmap.rpisecurity_icon);\n builder.setStyle(bigPictureStyle);\n builder.setColor(getResources().getColor(R.color.colorPrimary));\n //builder.setStyle(new NotificationCompat.BigPictureStyle().bigPicture(myBitmap));\n builder.setPriority(NotificationCompat.PRIORITY_MAX);\n\n NotificationManager notificationManager = (NotificationManager) this.getSystemService(Context.NOTIFICATION_SERVICE);\n\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O)\n {\n builder.setChannelId(\"com.rpi_security\");\n NotificationChannel channel = new NotificationChannel(\n \"com.rpi_security\",\n \"RPISecurity\",\n NotificationManager.IMPORTANCE_HIGH);\n channel.enableVibration(true);\n channel.enableLights(true);\n notificationManager.createNotificationChannel(channel);\n }\n\n notificationManager.notify(0 , builder.build());\n\n Log.d(\"TITLE\", \"Title : \" + remoteMessage.getData().get(\"title\"));\n Log.d(\"MSG\", \"Message : \" + remoteMessage.getData().get(\"message\"));\n Log.d(\"URL\", \"Url : \" + remoteMessage.getData().get(\"img_url\"));\n }", "title": "" }, { "docid": "f466a3e465a35370e66edfc6b00f8c2e", "score": "0.56306964", "text": "public void receiveNotificationResult(String message) {\n\n }", "title": "" }, { "docid": "4c4941a5f2578aa3f32823ea12e6509f", "score": "0.56286436", "text": "public void notification() {\n\t}", "title": "" }, { "docid": "008909482eda49325ccc9cc739d3573d", "score": "0.56231415", "text": "@Override\r\n public void afterPropertiesSet() throws NotConfiguredException {\r\n if (!this.isConfigured()) {\r\n throw new NotConfiguredException(\"NotificationServiceConfig is not configured.\");\r\n }\r\n\r\n this.templateGroup = this.parseRequiredString(\"NotificationService.templateGroup\");\r\n String senderName = this.parseRequiredString(\"NotificationService.senderName\");\r\n String senderAddress = this.parseRequiredString(\"NotificationService.senderAddress\");\r\n String replyToAddress = this.parseOptionalString(\"NotificationService.replyToAddress\", null);\r\n List<String> recipientsList = this.parseRequiredStringList(\"NotificationService.recipients\");\r\n\r\n this.sender = new EmailAddress(senderName, senderAddress);\r\n\r\n if (replyToAddress != null) {\r\n this.replyTo = new EmailAddress(replyToAddress);\r\n }\r\n\r\n this.recipients = new ArrayList<EmailAddress>();\r\n for (String value : recipientsList) {\r\n EmailAddress notificationAddress = new EmailAddress(value);\r\n this.recipients.add(notificationAddress);\r\n }\r\n\r\n LOGGER.debug(this.toString());\r\n }", "title": "" }, { "docid": "bf47ae8370209726a4c10522852fba81", "score": "0.56172", "text": "private void handlePushMessage() {\n int messageNumber;\n NotificationSettings notificationSettings;\n switch (pushMessage.getPushType()) {\n case ANNOUNCEMENT_NEW:\n // Load new announcements from server.\n messageNumber = new ChannelDatabaseManager(getApplicationContext()).getMaxMessageNumberAnnouncement\n (pushMessage.getId1());\n ChannelAPI.getInstance(getApplicationContext()).getAnnouncements(pushMessage.getId1(), messageNumber);\n break;\n case CHANNEL_DELETED:\n // Mark local channel as deleted.\n int channelId = pushMessage.getId1();\n ChannelController.deleteChannel(getApplicationContext(), channelId);\n // Notify user as if this push message had the priority HIGH.\n notificationSettings = settingsDBM.getChannelNotificationSettings(channelId);\n if (notificationSettings == NotificationSettings.GENERAL) {\n notificationSettings = settingsDBM.getSettings().getNotificationSettings();\n }\n if (!notificationSettings.equals(NotificationSettings.NONE)) {\n sendChannelDeletedNotification(channelId);\n }\n break;\n case CHANNEL_CHANGED:\n // Load updated channel data from server.\n ChannelAPI.getInstance(getApplicationContext()).getChannel(pushMessage.getId1());\n break;\n case MODERATOR_ADDED:\n case MODERATOR_CHANGED:\n case MODERATOR_REMOVED:\n // Refresh responsible moderator data.\n ChannelAPI.getInstance(this).getResponsibleModerators(pushMessage.getId1());\n break;\n case CONVERSATION_CHANGED:\n case CONVERSATION_CLOSED:\n GroupAPI.getInstance(getApplicationContext()).getConversation(\n pushMessage.getId1(), pushMessage.getId2());\n break;\n case CONVERSATION_CHANGED_ALL:\n case CONVERSATION_NEW:\n GroupAPI.getInstance(getApplicationContext()).getConversations(pushMessage.getId1());\n break;\n case CONVERSATION_MESSAGE_NEW:\n // Get conversation message data. Request new messages only.\n messageNumber = new GroupDatabaseManager(getApplicationContext())\n .getMaxMessageNumberConversationMessage(pushMessage.getId2());\n GroupAPI.getInstance(this).getConversationMessages(pushMessage.getId1(), pushMessage.getId2(),\n messageNumber);\n break;\n case CONVERSATION_DELETED:\n notificationSettings = settingsDBM.getGroupNotificationSettings(pushMessage.getId1());\n if (notificationSettings == NotificationSettings.GENERAL) {\n notificationSettings = settingsDBM.getSettings().getNotificationSettings();\n }\n if (!notificationSettings.equals(NotificationSettings.NONE)) {\n sendConversationNotification(pushMessage.getId1());\n }\n new GroupDatabaseManager(getApplicationContext()).deleteConversation(pushMessage.getId2());\n new GroupDatabaseManager(getApplicationContext()).setGroupNewEvents(pushMessage.getId1(), true);\n break;\n case PARTICIPANT_NEW:\n case PARTICIPANT_CHANGED:\n case PARTICIPANT_LEFT:\n case PARTICIPANT_REMOVED:\n GroupAPI.getInstance(this).getGroupMembers(pushMessage.getId1());\n break;\n case BALLOT_NEW:\n case BALLOT_CHANGED:\n case BALLOT_CHANGED_ALL:\n GroupAPI.getInstance(this).getBallots(pushMessage.getId1());\n break;\n case BALLOT_OPTION_DELETED:\n case BALLOT_OPTION_ALL:\n GroupAPI.getInstance(this).getOptions(pushMessage.getId1(), pushMessage.getId2(), true);\n break;\n case BALLOT_OPTION_VOTE:\n case BALLOT_OPTION_VOTE_ALL:\n // Do nothing. Load new votes when user enters ballot screen.\n break;\n case GROUP_CHANGED:\n GroupAPI.getInstance(this).getGroup(pushMessage.getId1());\n break;\n }\n }", "title": "" }, { "docid": "0fd01946b0bde85a690258f91baf39b6", "score": "0.5613154", "text": "public void updateNotification() {\n }", "title": "" }, { "docid": "53cf2061cc24bd4af24d168ec2190293", "score": "0.5606022", "text": "public interface IMessageObserveAction extends IObserveAction {\n\n\t/**\n\t * Get the notification message builder\n\t * @return the notification message builder\n\t */\n\tIMessageBuilder<Map<String, ?>> getMessageBuilder();\n}", "title": "" }, { "docid": "b52b7b664e54be72cfcb405098a4eef5", "score": "0.5604734", "text": "@Override\n public void onMessageReceived(String from, Bundle data) {\n //Getting the message from the bundle\n String message = data.getString(\"message\");\n String title = data.getString(\"title\");\n String subtitle = data.getString(\"subtitle\");\n String tickerText = data.getString(\"tickerText\");\n String vibrate = data.getString(\"vibrate\");\n String sound = data.getString(\"sound\");\n String largeIcon = data.getString(\"largeIcon\");\n String smallIcon = data.getString(\"smallIcon\");\n\n //String count = data.getString(\"count\");\n\n String type = \"\";\n m_param1 = \"\";\n try\n {\n String custom = data.getString(\"custom\");\n JSONObject json = new JSONObject(custom);\n JSONObject payload = json.getJSONObject(\"payload\");\n type = payload.getString(\"type\");\n\n if(type.contentEquals(\"expire_alert\") == true)\n {\n m_param1 = \"2017-09-09\";\n m_param1 = payload.getString(\"expire_date\");\n m_param2 = payload.getString(\"phone\");\n }\n }\n catch (Exception ex)\n {\n\n }\n\n Log.d(Defines.APP_LOG_TITLE, \"From: \" + from);\n Log.d(Defines.APP_LOG_TITLE, \"ModelMessage: \" + message);\n Log.d(Defines.APP_LOG_TITLE, \"type: \" + type);\n\n //Displaying a notiffication with the message\n //sendNotification(message);\n\n Log.d(Defines.APP_LOG_TITLE, data.toString());\n showBigNotification(message, type);\n }", "title": "" }, { "docid": "db2121f6e5ab472d4720f94bb481307e", "score": "0.5597736", "text": "public interface Notifier {\n\n /**\n * Create a new collection specific alarm notification.\n *\n * @param c - the collection the notification relates to.\n * @param alarm - the string message to apply to the notification.\n * @param args - additional arguments to add to the notification.\n */\n void collectionAlarm(Collection c, String alarm, PostMessageField... args);\n\n /**\n * Create a new alarm notification.\n *\n * @param alarm - the string message to apply to the notification.\n * @param args - additional arguments to add to the notification.\n */\n void alarm(String alarm, PostMessageField... args);\n\n /**\n * Sends a slack message.\n *\n * @param message - the information to apply to the slack message notification.\n * @throws Exception\n */\n void sendSlackMessage(PostMessage message) throws Exception;\n\n /**\n * Creates a PostMessage and returns a PostMessage object\n *\n * @param channel - the channel to send the notification.\n * @param text - the information to add to the notification.\n */\n PostMessage createPostMessage(String channel, String text);\n\n /**\n * Sends a collection alarm to a specific channel with custom message and exception about the collection\n *\n * @param c - the collection the notification relates to.\n * @param channel - the channel to send the notification.\n * @param message - the custom information to add to the notification alarm.\n * @param ex - Any exception to add to the notification.\n * @return\n */\n boolean sendCollectionAlarm(Collection c, String channel, String message, Exception ex);\n\n /**\n * Sends a collection warning to a specific channel with custom message and additional information\n * about the collection\n *\n * @param c - the collection the notification relates to.\n * @param channel - the channel to send the notification.\n * @param message - the custom information to add to the notification alarm.\n * @param attachments - Additional information about the collection to add to the notification.\n * @return\n */\n boolean sendCollectionWarning(Collection c, String channel, String message, AttachmentField... attachments);\n\n /**\n * Sends a collection alarm to a specific channel with custom message and exception about the collection\n *\n * @param c - the collection the notification relates to.\n * @param channel - the channel to send the notification.\n * @param message - the custom information to add to the notification alarm.\n * @param attachments - Additional information about the collection to add to the notification.\n * @return\n */\n boolean sendCollectionAlarm(Collection c, String channel, String message, AttachmentField... attachments);\n\n}", "title": "" }, { "docid": "ae6ee7488752cd55296faa8147e02cd9", "score": "0.5597308", "text": "public static NotificationConfig getDefault(){\n NotificationConfig config = new NotificationConfig();\n config.id = sId;\n config.channel = sChannel;\n config.channelName = sChannelName;\n config.color = sColor;\n config.pendingIntent = sPendingIntent;\n config.icon = sIcon;\n return config;\n }", "title": "" }, { "docid": "afe722e90c012357d5564fcb94ce1fd9", "score": "0.5596769", "text": "@Override\n public void onReceive(Context context, Intent intent) {\n if (intent.getAction().equals(NotificationConfig.REGISTRATION_COMPLETE)) {\n // gcm successfully registered\n // now subscribe to `global` topic to receive app wide notifications\n FirebaseMessaging.getInstance().subscribeToTopic(NotificationConfig.TOPIC_NEWS);\n Toast.makeText(getApplicationContext(), \"Subscribed to \" + NotificationConfig.TOPIC_NEWS, Toast.LENGTH_LONG).show();\n displayFirebaseRegId();\n\n } else if (intent.getAction().equals(NotificationConfig.PUSH_NOTIFICATION)) {\n // new push notification is received\n\n String message = intent.getStringExtra(\"message\");\n\n // Toast.makeText(getApplicationContext(), \"New announcement: \" + message, Toast.LENGTH_LONG).show();\n\n JSONObject obj = null;\n try {\n obj = new JSONObject(message);\n // txtMessage.setText(\"Title: \"+ obj.getString(\"title\")+\", message: \"+obj.getString(\"message\"));\n Toast.makeText(getApplicationContext(), \"Message: \"+obj.get(\"message\"), Toast.LENGTH_SHORT).show();\n }\n catch (JSONException je){\n\n }\n //txtMessage.setText(message);\n }\n }", "title": "" }, { "docid": "efdf8bb1226159b3778a11d4b524b570", "score": "0.5592816", "text": "static eu.credential.wallet.notification_dispatcher_service.model.KeyValue setNotificationDetailsData(\n String message) {\n // set notificationDetails\n eu.credential.wallet.notification_dispatcher_service.model.KeyValue keyValue = new eu.credential.wallet.notification_dispatcher_service.model.KeyValue();\n eu.credential.wallet.notification_dispatcher_service.model.Coding detailsType = new eu.credential.wallet.notification_dispatcher_service.model.Coding();\n\n detailsType.setSystem(\"https://credential.eu/config/codesystems/notificationdetail\");\n detailsType.setCode(\"message\");\n detailsType.setDisplay(\"new message\");\n detailsType.setVersion(\"1.0\");\n keyValue.setKey(detailsType);\n keyValue.setValue(message);\n return keyValue;\n }", "title": "" }, { "docid": "7cf708feb2677a5435cd6a530b68d627", "score": "0.55874205", "text": "@Override\n public void onMessageReceived(String from, Bundle bundle) {\n\n titleArray=getResources().getStringArray(R.array.title);\n intentArray=getResources().getStringArray(R.array.intent);\n\n Log.e(\"onMessageReceived\", \"registration id ===== \"+from);\n String title = bundle.getString(\"title\");\n String uploadDate = bundle.getString(\"uploadDate\");\n String uploadedBy = bundle.getString(\"name\");\n String n_id = bundle.getString(\"n_id\");\n String noticeBoard =\"\"+ (Integer.parseInt(bundle.getString(\"dept\")) - 1);\n String link = bundle.getString(\"link\");\n String md5= bundle.getString(\"md5\");\n\n SharedPreferences sharedPreferences= PreferenceManager.getDefaultSharedPreferences(getBaseContext());\n SharedPreferences.Editor editor=sharedPreferences.edit();\n editor.putBoolean(\"\"+noticeBoard,true);\n editor.commit();\n\n\n Log.e(TAG, \"From: \" + from);\n Log.e(TAG, \"Title: \" + title);\n Log.e(TAG, \"uploadDate: \" + uploadDate);\n\n if (!NotificationUtils.isAppIsInBackground(getApplicationContext())) {\n // app is in foreground, broadcast the push message\n Intent pushNotification = new Intent(Config.PUSH_NOTIFICATION);\n LocalBroadcastManager.getInstance(this).sendBroadcast(pushNotification);\n Log.e(\"MyGcmPushReceiver\", \"Title-\" + title);\n }\n\n Intent resultIntent = new Intent(getApplicationContext(), MainActivity.class);\n\n showNotificationMessage(getApplicationContext(), title, uploadDate, uploadedBy, resultIntent);\n\n NoticeDownloader noticeDownloader = new NoticeDownloader();\n noticeDownloader.insertIntoDB(getApplicationContext(), title, uploadDate, uploadedBy, n_id, noticeBoard, link, md5);\n if(!(link.charAt(0)=='#'))\n noticeDownloader.downloadFile(link);\n }", "title": "" }, { "docid": "313437db869f3b413afb5107f5cc2962", "score": "0.558314", "text": "public void createNotificationT(String msg) {\n Uri alarmSound = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);\n // Build notification\n Notification noti = new Notification.Builder(this)\n .setContentTitle(\"Trophy\")\n .setSound(alarmSound)\n .setContentText(msg).setSmallIcon(R.drawable.notif_icone).build();\n //.setContentIntent(pIntent)\n //.addAction(R.drawable.notif_icone, \"And more\", pIntent).build();\n\n NotificationManager notificationManager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);\n // hide the notification after its selected\n noti.flags |= Notification.FLAG_AUTO_CANCEL;\n\n notificationManager.notify(0, noti);\n\n }", "title": "" }, { "docid": "280cbdce86966d41f67899248fc8faab", "score": "0.5582162", "text": "public MAMessage() {\r\n\t\tsuper();\r\n\t\tsetType(UpdateServiceMessageTypes.MEDIA_ANNOUNCEMENT);\r\n\t\tsetMessageVersion(VERSION);\r\n\t}", "title": "" }, { "docid": "b988d04e849c942621a6e3679f66a367", "score": "0.5576646", "text": "void setMessage(Message msg);", "title": "" }, { "docid": "6d5137fce21d8c427e9ac94df1fd29a6", "score": "0.5569993", "text": "public void setMessage(java.lang.String param){\n \n this.localMessage=param;\n \n\n }", "title": "" }, { "docid": "6d5137fce21d8c427e9ac94df1fd29a6", "score": "0.5569993", "text": "public void setMessage(java.lang.String param){\n \n this.localMessage=param;\n \n\n }", "title": "" }, { "docid": "6d5137fce21d8c427e9ac94df1fd29a6", "score": "0.5569993", "text": "public void setMessage(java.lang.String param){\n \n this.localMessage=param;\n \n\n }", "title": "" }, { "docid": "6d5137fce21d8c427e9ac94df1fd29a6", "score": "0.5569993", "text": "public void setMessage(java.lang.String param){\n \n this.localMessage=param;\n \n\n }", "title": "" }, { "docid": "6d5137fce21d8c427e9ac94df1fd29a6", "score": "0.5569993", "text": "public void setMessage(java.lang.String param){\n \n this.localMessage=param;\n \n\n }", "title": "" }, { "docid": "6d5137fce21d8c427e9ac94df1fd29a6", "score": "0.5569993", "text": "public void setMessage(java.lang.String param){\n \n this.localMessage=param;\n \n\n }", "title": "" }, { "docid": "6d5137fce21d8c427e9ac94df1fd29a6", "score": "0.5569993", "text": "public void setMessage(java.lang.String param){\n \n this.localMessage=param;\n \n\n }", "title": "" }, { "docid": "6d5137fce21d8c427e9ac94df1fd29a6", "score": "0.5569993", "text": "public void setMessage(java.lang.String param){\n \n this.localMessage=param;\n \n\n }", "title": "" }, { "docid": "6d5137fce21d8c427e9ac94df1fd29a6", "score": "0.5569993", "text": "public void setMessage(java.lang.String param){\n \n this.localMessage=param;\n \n\n }", "title": "" }, { "docid": "909aa98c4ce21957f190f16adeb311b1", "score": "0.5562983", "text": "public abstract void setEventInfo(IMessage msg);", "title": "" }, { "docid": "d7335361527cde4a26235208dcc33dd7", "score": "0.55605406", "text": "@Override\n\tpublic void onMessageStateChanged() {\n\t}", "title": "" }, { "docid": "308e76cc0e9621ea2043ae0a861b7bc9", "score": "0.55580485", "text": "private void setupNewsNotifications() {\n if (preferences.getBoolean(R.string.pref_news_notification, true)) {\n firebaseMessaging.subscribeToTopic(\"news\");\n } else {\n firebaseMessaging.unsubscribeFromTopic(\"news\");\n }\n }", "title": "" }, { "docid": "e39f48cc4730ee1a8ac171a80cd6cdcc", "score": "0.55471146", "text": "public interface Notification {\n\n String getMessage();\n\n long getNotificationId();\n\n void setMessage(String message);\n}", "title": "" }, { "docid": "f9b55cdc95c5990184a349bcf869be3c", "score": "0.5546461", "text": "public void createNotification() {\n if (jcAudioPlayer != null) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {\n // For light theme\n jcAudioPlayer.createNewNotification(R.drawable.ic_notification_default_black);\n } else {\n // For dark theme\n jcAudioPlayer.createNewNotification(R.drawable.ic_notification_default_white);\n }\n }\n }", "title": "" }, { "docid": "6dff760dd0111d40ce413583ead8736a", "score": "0.55443716", "text": "void mailConfiguration(Element element) {\n // Load the address JES will listen on for incoming mail traffic\n //\n listenAddress = Utils.getAllowedAddress(\"config.mail.listenAddress\", element.getAttribute(\"listenAddress\"), true, true);\n log.info(\"JES is listening on \"+listenAddress.toString());\n \n if (!cm.isFixed() && !localTestingMode) {\n\n iPv6Preferred = Boolean.getBoolean(\"java.net.preferIPv6Addresses\");\n \n String transferModeString = element.getAttribute(\"transferMode\").toUpperCase(cm.englishLocale);\n transferMode = TransferMode.valueOf(transferModeString);\n\n String retrievalModeString = element.getAttribute(\"retrievalMode\").toUpperCase(cm.englishLocale);\n retrievalMode = RetrievalMode.valueOf(retrievalModeString);\n }\n if (cm.isFixed()) {\n\n boolean usePOP3 = retrievalMode == RetrievalMode.POP3;\n Map<String,Integer> mappings = new HashMap<String,Integer>(cm.getMappedPorts());\n Map<String,Integer> unchanged = new HashMap<String,Integer>(cm.getMappedPorts());\n unchanged.put(\"smtp\", Utils.parsePort(((Element) element.getElementsByTagName(\"SMTP\").item(0)).getAttribute(\"port\"), 25));\n if (usePOP3) {\n unchanged.put(\"pop3\", Utils.parsePort(((Element) element.getElementsByTagName(\"POP3\").item(0)).getAttribute(\"port\"), 110));\n }\n if (cm.isSecureActive()) {\n unchanged.put(\"secureSmtp\", Utils.parsePort(((Element) element.getElementsByTagName(\"secure\").item(0)).getAttribute(\"SMTP\"), 465));\n if (usePOP3) {\n unchanged.put(\"securePop3\", Utils.parsePort(((Element) element.getElementsByTagName(\"secure\").item(0)).getAttribute(\"POP3\"), 995));\n }\n }\n Map<String,Integer> toChange = new HashMap<String,Integer>(!cm.isSecureActive()?(usePOP3?2:1):(usePOP3?4:2),1);\n if (unchanged.get(\"smtp\")!=mappings.get(\"smtp\")) {\n toChange.put(\"smtp\", unchanged.get(\"smtp\"));\n }\n else {\n unchanged.put(\"smtp\", mappings.get(\"smtp\"));\n }\n if (usePOP3) {\n if (unchanged.get(\"pop3\")!=mappings.get(\"pop3\")) {\n toChange.put(\"pop3\", unchanged.get(\"pop3\"));\n }\n else {\n unchanged.put(\"pop3\", mappings.get(\"pop3\"));\n }\n }\n if (cm.isSecureActive()) {\n if (unchanged.get(\"secureSmtp\")!=mappings.get(\"secureSmtp\")) {\n toChange.put(\"secureSmtp\", unchanged.get(\"secureSmtp\"));\n }\n else {\n unchanged.put(\"secureSmtp\", mappings.get(\"secureSmtp\"));\n }\n if (usePOP3) {\n if (unchanged.get(\"securePop3\")!=mappings.get(\"securePop3\")) {\n toChange.put(\"securePop3\", unchanged.get(\"securePop3\"));\n }\n else {\n unchanged.put(\"securePop3\", mappings.get(\"securePop3\"));\n }\n }\n }\n if (!toChange.isEmpty()) {\n if(unchanged.get(\"config\")!=null && !cm.getConfigurationAddress().equals(cm.getListenAddress())) {\n unchanged.remove(\"config\");\n }\n if(unchanged.get(\"amavis\")!=null && !cm.getAmavisListenAddress().equals(cm.getListenAddress())) {\n unchanged.remove(\"amavis\");\n }\n unchanged.keySet().removeAll(toChange.keySet());\n portChecking(unchanged, toChange, \"smtp\");\n if (usePOP3) {\n portChecking(unchanged, toChange, \"pop3\");\n }\n if (cm.isSecureActive()) {\n portChecking(unchanged, toChange, \"secureSmtp\");\n if (usePOP3) {\n portChecking(unchanged, toChange, \"securePop3\");\n }\n }\n portsToUpdate = toChange;\n }\n }\n mailSMTPConfiguration((Element) element.getElementsByTagName(\"SMTP\").item(0));\n mailPOP3Configuration((Element) element.getElementsByTagName(\"POP3\").item(0));\n mailAuthMechsConfiguration((Element) element.getElementsByTagName(\"authMechs\").item(0));\n mailThreadsConfiguration((Element) element.getElementsByTagName(\"threads\").item(0));\n mailSecureConfiguration((Element) element.getElementsByTagName(\"secure\").item(0));\n mailOutgoingSMTPServer((Element) element.getElementsByTagName(\"outgoingSMTPServer\").item(0));\n List<String> principals;\n if (gssEnabled) {\n System.setProperty(\"java.security.krb5.realm\", gssRealm);\n System.setProperty(\"java.security.krb5.kdc\", gssKDC);\n Configuration.setConfiguration(new LoginConfig(\"com.ericdaugherty.mail.server.auth.GSSServerMode\", gssOptions));\n String principal = gssOptions.get(\"principal\");\n if (principal.substring(0, principal.indexOf(':')).equals(principal.substring(principal.indexOf(':') + 1, principal.indexOf('/')))) {\n principals = new ArrayList<String>(2);\n principals.add(principal.substring(0, principal.indexOf(':')));\n System.setProperty(\"sun.security.krb5.principal\", principal.substring(0, principal.indexOf(':')) + principal.substring(principal.indexOf('/')));\n Subject subject = getSubject(principals.get(0));\n AuthContext.initialize(new Subject[]{subject});\n principals.add(principals.remove(0).toLowerCase());\n } else {\n principals = new ArrayList<String>(3);\n principals.add(principal.substring(0, principal.indexOf(':')));\n System.setProperty(\"sun.security.krb5.principal\", principal.substring(0, principal.indexOf(':')) + principal.substring(principal.indexOf('/')));\n Subject subject1 = getSubject(principals.get(0));\n principals.add(principals.remove(0).toLowerCase());\n principals.add(principal.substring(principal.indexOf(':') + 1, principal.indexOf('/')));\n System.setProperty(\"sun.security.krb5.principal\", principal.substring(principal.indexOf(':') + 1));\n Subject subject2 = getSubject(principals.get(1));\n principals.add(principals.remove(1).toLowerCase());\n AuthContext.initialize(new Subject[]{subject1, subject2});\n }\n System.setProperty(\"sun.security.krb5.principal\", \"\");\n } else {\n principals = new ArrayList<String>(0);\n }\n JESVaultControl.getInstance().addPrincipals(principals);\n principals.clear();\n\n }", "title": "" }, { "docid": "9518422794b286d17e4155a0fc72f70e", "score": "0.5542815", "text": "@Override\n\t\t\tpublic void onHandleMessage(Message msg) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "cd13182eb3e22609831078ebd3edcc68", "score": "0.5539163", "text": "CommonProto.NotificationOrBuilder getNotificationOrBuilder();", "title": "" }, { "docid": "edcc6d1ab31d43c1e88b6cbfe8fe732a", "score": "0.55368733", "text": "private void sendNotification(String message) {\n Intent activityIntent = new Intent(this, DetailActivity.class);\n TaskStackBuilder stackBuilder = TaskStackBuilder.create(this);\n // Adds the back stack\n stackBuilder.addParentStack(DetailActivity.class);\n // Adds the Intent to the top of the stack\n stackBuilder.addNextIntent(activityIntent);\n // Gets a PendingIntent containing the entire back stack\n activityIntent.putExtra(\"EXTRA_MESSAGE\", \"new\");\n activityIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n PendingIntent pendingIntent =\n stackBuilder.getPendingIntent(0 /* code */, PendingIntent.FLAG_UPDATE_CURRENT);\n\n // TODO: 27.11.2015 show notification\n // TODO: 13.01.2016 add sound preference\n Uri defaultSoundUri = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);\n // TODO: 29.11.2015 edit icon, title and text\n// Bitmap largeIcon = BitmapFactory.decodeResource(this.getResources(), R.drawable.art_storm);\n NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(this)\n .setSmallIcon(R.drawable.ic_arrow_downward_white_24dp)\n// .setLargeIcon(bitmap here)\n .setColor(ContextCompat.getColor(this, R.color.colorAccent)) // in 5.0+\n .setContentTitle(\"GCM Message\")\n .setContentText(message)\n .setCategory(NotificationCompat.CATEGORY_EMAIL)\n .setPriority(NotificationCompat.PRIORITY_LOW)\n /*\n * Sets the big view \"big text\" style and supplies the\n * text (the user's reminder message) that will be displayed\n * in the detail area of the expanded notification.\n * These calls are ignored by the support library for\n * pre-4.1 devices.\n */\n .setStyle(new NotificationCompat.BigTextStyle()\n .bigText(message)) // multiple lines of code\n .setAutoCancel(true)\n .setSound(defaultSoundUri)\n .setDefaults(Notification.DEFAULT_SOUND)\n .setContentIntent(pendingIntent);\n\n// Notification notification = notificationBuilder.build();\n// NotificationManagerCompat.from(this).notify(NOTIFICATION_ID, notification);\n\n NotificationManager mNotificationManager =\n (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);\n mNotificationManager.notify(NOTIFICATION_ID, notificationBuilder.build());\n\n }", "title": "" }, { "docid": "2c556fa832de33a5b073c41d2506389d", "score": "0.55339074", "text": "@Override\n protected void onMessage(Context context, Intent intent) {\n Log.i(TAG, \"Received message\");\n String [] atiq={\"Atiq\",\"Rehsman\"};\n String message = intent.getExtras().getString(\"msg\");\n Intent i = new Intent(\"com.example.project1.DISPLAY_MESSAGE\");\n i.putExtra(\"message\",message);\n i.putExtra(\"sender\",intent.getExtras().getString(\"sender\"));\n i.putExtra(\"category\",intent.getExtras().getString(\"cat\"));\n // Log.d(\"web\",\"on message receive \"+intent.getExtras().getString(\"sender\"));\n context.sendBroadcast(i);\n generateNotification(context, message,intent.getExtras().getString(\"sender\"),intent.getExtras().getString(\"cat\"),intent.getExtras().getString(\"title\"));\n }", "title": "" }, { "docid": "453e7d69e8f4e7fab0cacfc1315c2b29", "score": "0.5533219", "text": "@Example\n public void injectNotifications() {\n ConnectionOptions config = Configuration.get();\n Connect api = new Connect(config);\n try {\n // Creating notifications.\n String[] payloads = { \"Q2hhbmdlIG1lIQ==\", \"VGhpcyBpcyB2YWx1ZSAy\", \"VGhpcyBpcyBhbm90aGVyIHZhbHVl\",\n \"VGhpcyB3aWxsIGJlIG15IGxhc3Qgbm90aWZpY2F0aW9uIGJlY2F1c2UgSSBhbSB3aWxsaW5nIHRvIGdvIGJhY2sgdG8gc2xlZXA=\" };\n List<String> payloadList = Arrays.asList(payloads);\n String deviceId = \"015f4ac587f500000000000100100249\";\n String resourcePath = \"/3200/0/5501\";\n NotificationMessage notifications = new NotificationMessage();\n for (String payload : payloadList) {\n NotificationData notification = new NotificationData();\n notification.setEp(deviceId);\n notification.setPath(resourcePath);\n notification.setPayload(payload);\n notifications.addNotificationsItem(notification);\n }\n // Creating the same notifications but using their JSON representation instead.\n String otherNotifications = \"{\\\"notifications\\\":[{\\\"path\\\":\\\"/3200/0/5501\\\",\\\"payload\\\":\\\"Q2hhbmdlIG1lIQ\\u003d\\u003d\\\",\\\"ep\\\":\\\"015f4ac587f500000000000100100249\\\"},{\\\"path\\\":\\\"/3200/0/5501\\\",\\\"payload\\\":\\\"VGhpcyBpcyB2YWx1ZSAy\\\",\\\"ep\\\":\\\"015f4ac587f500000000000100100249\\\"}\"\n + \",{\\\"path\\\":\\\"/3200/0/5501\\\",\\\"payload\\\":\\\"VGhpcyBpcyBhbm90aGVyIHZhbHVl\\\",\\\"ep\\\":\\\"015f4ac587f500000000000100100249\\\"},{\\\"path\\\":\\\"/3200/0/5501\\\",\\\"payload\\\":\\\"VGhpcyB3aWxsIGJlIG15IGxhc3Qgbm90aWZpY2F0aW9uIGJlY2F1c2UgSSBhbSB3aWxsaW5nIHRvIGdvIGJhY2sgdG8gc2xlZXA\\u003d\\\",\\\"ep\\\":\\\"015f4ac587f500000000000100100249\\\"}]}\";\n\n Resource resource = new Resource(deviceId, resourcePath);\n // Creating a subscriber for this resource.\n api.createResourceSubscriptionObserver(resource, BackpressureStrategy.BUFFER)\n .subscribe(new Consumer<Object>() {\n\n @Override\n public void accept(Object t) throws Exception {\n log(\"Received notification value\", t);\n }\n });\n // Emitting notifications.\n api.notify(notifications);\n api.notify(otherNotifications);\n } catch (Exception e) {\n fail(e.getMessage());\n }\n }", "title": "" }, { "docid": "6af325e364481606213f28501b4628bb", "score": "0.55331963", "text": "Notification createNotification();", "title": "" }, { "docid": "49648f5529d993ef3729bc62cf1fbba8", "score": "0.552574", "text": "private void createNotification(Map<String, Object> data){\n Intent notification_intent = new Intent(this, FCMPluginActivity.class);\n notification_intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);\n PendingIntent pendingIntent = PendingIntent.getActivity(this, 0, notification_intent, 0);\n\n String notifTitle = data.get(\"notificationTitle\").toString();\n String notifShort = data.get(\"notificationShortText\").toString();\n String notifLong = data.get(\"notificationLongText\").toString();\n\n String channelID= this.getChannelID();\n\n NotificationCompat.Builder builder = new NotificationCompat.Builder(this, channelID)\n .setSmallIcon(R.mipmap.ic_launcher)\n .setContentTitle(notifTitle)\n .setContentText(notifShort)\n .setStyle(new NotificationCompat.BigTextStyle()\n .bigText(notifLong))\n .setPriority(NotificationCompat.PRIORITY_HIGH)\n .setAutoCancel(true)\n .setContentIntent(pendingIntent);\n\n NotificationManagerCompat notificationManager = NotificationManagerCompat.from(this);\n\n // notificationId is a unique int for each notification that you must define\n int notificationId = createID();\n notificationManager.notify(notificationId, builder.build());\n }", "title": "" }, { "docid": "e75f1df7e65d6dafebeda1ab7103ef1d", "score": "0.55215675", "text": "public interface JmsDefs extends Serializable {\n /** */\n public static int ackMode = Session.AUTO_ACKNOWLEDGE;\n\n /** */\n public static final String syseventsQueueName = \"sysevents\";\n\n /** */\n public static final String syseventsLogQueueName = \"syseventslog\";\n\n /** */\n public static final String monitorQueueName = \"monitor\";\n\n /** */\n public static final String changesQueueName = \"changes\";\n\n /** */\n public static final String crawlerQueueName = \"crawler\";\n\n /** */\n public static final String schedulerInQueueName = \"schedulerIn\";\n\n /** */\n public static final String schedulerOutQueueName = \"schedulerOut\";\n\n /** */\n public static final boolean useTransactions = false;\n}", "title": "" }, { "docid": "ac0dc2d64a3b5db6b2392513b0a629c6", "score": "0.5516264", "text": "private void addNotification() {\n\n PNConfiguration pnConfiguration = new PNConfiguration();\n pnConfiguration.setSubscribeKey(getString(R.string.subscribekey));\n pnConfiguration.setPublishKey(getString(R.string.publishkey));\n pnConfiguration.setSecure(false);\n\n PubNub pubnub = new PubNub(pnConfiguration);\n\n String crop_name = (String) fileDocument.getUserProperties().get(DBModel.Crop.crop_name);\n\n Random r = new Random();\n int randomNumber = r.nextInt(2);\n\n String title = crop_name + \" Warning\";\n String message = getString(R.string.warning_bug);\n if (randomNumber == 0){\n title = crop_name + \" Success\";\n message = getString(R.string.warning_nobug);\n }\n\n JsonObject position = new JsonObject();\n position.addProperty(\"title\", title);\n position.addProperty(\"message\", message);\n position.addProperty(\"sector\", \"\");\n\n pubnub.publish()\n .message(position)\n .channel(getString(R.string.channel_name))\n .async(new PNCallback<PNPublishResult>() {\n @Override\n public void onResponse(PNPublishResult result, PNStatus status) {\n // handle publish result, status always present, result if successful\n // status.isError() to see if error happened\n if(!status.isError()) {\n System.out.println(\"pub timetoken: \" + result.getTimetoken());\n }\n System.out.println(\"pub status code: \" + status.getStatusCode());\n }\n });\n }", "title": "" }, { "docid": "e357d82d1e261c503616bc9ab6ebef53", "score": "0.5514168", "text": "@Override\n public void onMessageReceived(RemoteMessage remoteMessage) {\n if (remoteMessage.getData().size() > 0) {\n Log.d(TAG, \"Message data payload: \" + remoteMessage.getData());\n }\n\n NotificationCompat.Builder builder = new NotificationCompat.Builder(this);\n builder\n .setContentTitle(\"ContextTitle\")\n .setContentText(\"ContextText\")\n .setSmallIcon(R.mipmap.ic_launcher)\n .setLargeIcon(BitmapFactory.decodeResource(this.getResources(), R.mipmap.ic_launcher));\n\n NotificationManager notificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);\n int i = (int) (System.currentTimeMillis() / 1000);\n notificationManager.notify(i, builder.build());\n }", "title": "" }, { "docid": "a5831cb010f5b1f4cf8177689bf1df5a", "score": "0.551031", "text": "public Prof_Notification() {\r\n initComponents();\r\n }", "title": "" }, { "docid": "ff3c0c73b0a59b710970e24c1de9e077", "score": "0.55046207", "text": "CommonProto.Notification getNotification();", "title": "" }, { "docid": "4dc497c711039714a820de0d471bd8c1", "score": "0.55027634", "text": "private void configureMessage(Message message, String serviceId, String targetServiceId, long timeout) {\r\n\t\tmessage.setClientId(clientId);\r\n\t\tmessage.setServiceId(serviceId);\r\n\t\tmessage.setTargetServiceId(targetServiceId);\r\n\t\tmessage.setMessageId(generateId());\r\n\t\tmessage.setTimeout(timeout);\r\n\t}", "title": "" }, { "docid": "c9eab4d70a0c9ac1819901d33750d478", "score": "0.55014914", "text": "@Bean\n public JMSEventMessageFactory messageFactory() {\n return new DefaultMessageFactory();\n }", "title": "" }, { "docid": "b7355da509c64735a6deb80a3f80a16d", "score": "0.54976475", "text": "@Override\r\n\tpublic void eNotify(Notification notification) {\n\t\t\r\n\t}", "title": "" }, { "docid": "b7355da509c64735a6deb80a3f80a16d", "score": "0.54976475", "text": "@Override\r\n\tpublic void eNotify(Notification notification) {\n\t\t\r\n\t}", "title": "" }, { "docid": "d93ce9783977429148580df96b8f91e0", "score": "0.54951894", "text": "public void setMessage(String message) {}", "title": "" }, { "docid": "6598fa6de0c9c760a985cb78b9c10edb", "score": "0.5485728", "text": "private void createNotification(String typ, String body) {\n Context context = getBaseContext();\n/* NotificationCompat.Builder mBuilder = new NotificationCompat.Builder(context)\n .setSmallIcon(R.drawable.notify).setContentTitle(title)\n .setContentText(body);\n NotificationManager mNotificationManager = (NotificationManager) context\n .getSystemService(Context.NOTIFICATION_SERVICE);\n mNotificationManager.notify(MESSAGE_NOTIFICATION_ID, mBuilder.build());*/\n NotificationManager notificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);\n android.support.v7.app.NotificationCompat.Builder mBuilder = (android.support.v7.app.NotificationCompat.Builder) new android.support.v7.app.NotificationCompat.Builder(this)\n .setSmallIcon(R.drawable.notifcation_icon)\n .setContentTitle(\"bucksbuddy\")\n .setContentText(typ)\n .setLargeIcon(BitmapFactory.decodeResource(this.getResources(), R.drawable.logo))\n .setStyle(new android.support.v4.app.NotificationCompat.BigTextStyle().bigText(body));\n ;\n notificationManager.notify(1, mBuilder.build());\n }", "title": "" }, { "docid": "23428f0cc6d1157364135d5efa364b47", "score": "0.5473565", "text": "public Message(GameSettings gameSettings){\n this.gameSettings = gameSettings;\n this.msgType = msgTypes.CLIENT_SETTINGS;\n }", "title": "" }, { "docid": "03d890a8b3fa2ada2db868ceb6b041da", "score": "0.5467721", "text": "void centraleNotification(String key , Object forShare);", "title": "" }, { "docid": "b6784373817b79aa48ba65a0a69fb1e1", "score": "0.54630053", "text": "@Override\n public void onMessageReceived(RemoteMessage remoteMessage) {\n\n /*String fcMessage = remoteMessage.getNotification().getBody();*/\n String title = remoteMessage.getData().get(\"title\");\n String body = remoteMessage.getData().get(\"body\");\n String icon = remoteMessage.getData().get(\"icon\");\n String prefDAR = remoteMessage.getData().get(\"prefDAR\");\n String dataAR = remoteMessage.getData().get(\"dataAR\");\n int iconR = R.drawable.cat_icon;\n\n\n if (prefDAR == \"start\"){\n PrefDAlarmReceiver prefDAlarmReceiver = null;\n prefDAlarmReceiver.setAlarmPref(this);\n }\n if (dataAR == \"start\"){\n DatatAlarmReceiver datatAlarmReceiver = null;\n datatAlarmReceiver.setAlarmData(this);\n }\n String open_Daily = \"open_Daily\";\n Intent intent = new Intent(this, TipsFragActivity.class);\n intent.putExtra(\"open_Daily\", open_Daily);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n PendingIntent pendingIntent = PendingIntent.getActivity(this, 0 /* Request code */, intent,\n PendingIntent.FLAG_ONE_SHOT);\n\n Uri defaultSoundUri= RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);\n NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(this)\n .setSmallIcon(iconR)\n .setContentTitle(title)\n .setContentText(body)\n .setAutoCancel(true)\n .setSound(defaultSoundUri)\n .setContentIntent(pendingIntent);\n\n NotificationManager notificationManager =\n (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);\n\n notificationManager.notify(0 /* ID of notification */, notificationBuilder.build());\n\n Log.d(TAG, \"From: \" + remoteMessage.getFrom());\n Log.d(TAG, \"Value One : \" + title );\n /* Log.d(TAG, \"Notification Message Body: \" + remoteMessage.getNotification().getBody());\n sendNotification(remoteMessage.getNotification().getBody());*/\n }", "title": "" }, { "docid": "8801f58b2f928fe996b48baf675bd249", "score": "0.5455936", "text": "String getDefaultMessage();", "title": "" }, { "docid": "4b7c7803363bec930c299db592374e72", "score": "0.54510504", "text": "public void setMessage(String message);", "title": "" }, { "docid": "5266b2dcc8de143ab0b3b49462e6e31d", "score": "0.5440841", "text": "void setMessage(String message);", "title": "" }, { "docid": "ba86a2c05c8c7177fe74cb4420ee9512", "score": "0.5438254", "text": "@Test(enabled = true, priority = 4)\n public void testNotificationMessage() {\n navigateToNotficationMesagePage();\n triggerNotification();\n assertNotificationMessageIsDisplayed();\n }", "title": "" }, { "docid": "ca8acf4966ad3df6916ce8101d84e908", "score": "0.54369307", "text": "public Notification() {}", "title": "" }, { "docid": "866f03ee83b30c04e8c223ddb92db771", "score": "0.5432403", "text": "private static void generateNotification(Context context, String userFrom,\r\n\t\t\tString message, String pid) {\r\n\t\tint id = 0;\r\n\t\tint icon = R.drawable.user_thumb;\r\n\t\tlong when = System.currentTimeMillis();\r\n\r\n\t\tNotificationManager notificationManager = (NotificationManager) context\r\n\t\t\t\t.getSystemService(Context.NOTIFICATION_SERVICE);\r\n\t\tNotification notification = new Notification(icon, message, when);\r\n\r\n\t\tIntent notificationIntent = null;\r\n\t\tif (sendMessageObj.getAlert().getLocKey().equals(Config.APNS_MESSAGE)) {\r\n\t\t\tnotificationIntent = new Intent(context, ChatActivity.class);\r\n\t\t\tnotificationIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP\r\n\t\t\t\t\t| Intent.FLAG_ACTIVITY_SINGLE_TOP);\r\n\t\t\tid = 1;\r\n\t\t\tnotificationIntent.putExtra(\"coachID\", pid);\r\n\t\t\tnotificationIntent.putExtra(\"checkNotify\", \"NOT\");\r\n\t\t\tnotificationIntent.putExtra(\"message\", \"NOT\");\r\n\t\t\t// notificationIntent.putExtra(\"message\", message);\r\n\t\t\t// notificationIntent.putExtra(\"checkNotify\", Config.APNS_MESSAGE);\r\n\r\n\t\t} else if (sendMessageObj.getAlert().getLocKey()\r\n\t\t\t\t.equals(Config.APNS_MESSAGENOIMAGE)) {\r\n\t\t\tnotificationIntent = new Intent(context, ChatActivity.class);\r\n\t\t\tnotificationIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP\r\n\t\t\t\t\t| Intent.FLAG_ACTIVITY_SINGLE_TOP);\r\n\t\t\tid = 2;\r\n\t\t\tnotificationIntent.putExtra(\"coachID\", pid);\r\n\t\t\tnotificationIntent.putExtra(\"checkNotify\", \"NOT\");\r\n\t\t\tnotificationIntent.putExtra(\"message\", \"NOT\");\r\n\r\n\t\t\t// notificationIntent.putExtra(\"coachID\", pid);\r\n\t\t\t// notificationIntent.putExtra(\"message\", \"IMAGE\");\r\n\t\t\t// notificationIntent.putExtra(\"checkNotify\", Config.APNS_MESSAGE);\r\n\r\n\t\t} else if (sendMessageObj.getAlert().getLocKey()\r\n\t\t\t\t.equals(Config.APNS_COACHINVITE)) {\r\n\t\t\tid = 3;\r\n\t\t\tnotificationIntent = new Intent(context, FoodTabActivity.class);\r\n\t\t\tnotificationIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP\r\n\t\t\t\t\t| Intent.FLAG_ACTIVITY_SINGLE_TOP);\r\n\t\t\tupdateCoachesTab.execute();\r\n\r\n\t\t} else if (sendMessageObj.getAlert().getLocKey()\r\n\t\t\t\t.equals(Config.APNS_COACHINVITEACCEPT)) {\r\n\t\t\tid = 4;\r\n\t\t\tnotificationIntent = new Intent(context, FoodTabActivity.class);\r\n\t\t\tnotificationIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP\r\n\t\t\t\t\t| Intent.FLAG_ACTIVITY_SINGLE_TOP);\r\n\t\t\tupdateCoachesTab.execute();\r\n\r\n\t\t} else if (sendMessageObj.getAlert().getLocKey()\r\n\t\t\t\t.equals(Config.APNS_COACHINVITEDECLINE)) {\r\n\t\t\tid = 5;\r\n\t\t\tnotificationIntent = new Intent(context, FoodTabActivity.class);\r\n\t\t\tnotificationIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP\r\n\t\t\t\t\t| Intent.FLAG_ACTIVITY_SINGLE_TOP);\r\n\r\n\t\t} else if (sendMessageObj.getAlert().getLocKey()\r\n\t\t\t\t.equals(Config.APNS_REMINDERWEEKLY)) {\r\n\t\t\tid = 6;\r\n\t\t\tnotificationIntent = new Intent(context, FoodTabActivity.class);\r\n\t\t\tnotificationIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP\r\n\t\t\t\t\t| Intent.FLAG_ACTIVITY_SINGLE_TOP);\r\n\t\t}\r\n\r\n\t\tPendingIntent intent = PendingIntent.getActivity(context,\r\n\t\t\t\t(int) System.currentTimeMillis(), notificationIntent,\r\n\t\t\t\tPendingIntent.FLAG_ONE_SHOT);\r\n\t\tnotification.setLatestEventInfo(context, userFrom, message, intent);\r\n\t\tnotification.flags |= Notification.FLAG_AUTO_CANCEL;\r\n\r\n\t\t// Play default notification sound\r\n\t\tnotification.defaults |= Notification.DEFAULT_SOUND;\r\n\r\n\t\t// notification.sound = Uri.parse(\"android.resource://\" +\r\n\t\t// context.getPackageName() + \"your_sound_file_name.mp3\");\r\n\r\n\t\t// Vibrate if vibrate is enabled\r\n\t\tnotification.defaults |= Notification.DEFAULT_VIBRATE;\r\n\t\tnotificationManager.notify(id, notification);\r\n\t}", "title": "" }, { "docid": "4758343fa892269774381ef26fe7bb4a", "score": "0.543096", "text": "public void setMessage( String messageBody ) \n { \n message = messageBody; \n }", "title": "" }, { "docid": "80e4dc4d73f9fe76c714fd57462692fd", "score": "0.542767", "text": "@Override\n protected boolean onNotificationProcessing(OSNotificationReceivedResult receivedResult) {\n\n // Ottengo dalle preferenze la scelta dell'utente\n SharedPreferences settings = PreferenceManager.getDefaultSharedPreferences(getApplicationContext());\n Boolean pref_notifica_mattina = settings.getBoolean(SETTINGS_MORNING_MESSAGE_KEY, true);\n Boolean pref_notifica_allerta = settings.getBoolean(SETTINGS_ALLERTA_KEY, true);\n\n // Rimuovo le notifiche precedenti\n OneSignal.clearOneSignalNotifications();\n\n if (!pref_notifica_allerta) {\n show_notification = false;\n }\n else {\n try {\n\n JSONObject data = receivedResult.payload.additionalData;\n String notification_hp_payload = data.optString(HIGH_PRIORITY_URGENT_ALARM_TAG);\n\n if (notification_hp_payload != null && !notification_hp_payload.isEmpty()) {\n // ----------------\n // NOTIFICA URGENTE\n // ----------------\n\n Calendar start = Calendar.getInstance(TimeZone.getTimeZone(\"Europe/Rome\"));\n long now = start.getTimeInMillis();\n\n // Salvo nel database il payload\n CustomAlertRepository repository = new CustomAlertRepository(getApplication());\n repository.insert(new CustomAlertEntity(notification_hp_payload, now));\n\n // Lancio l'activity di allerta\n Intent message_alert_i = new Intent(this, MessageActivity.class);\n message_alert_i.putExtra(\"payload\", notification_hp_payload);\n startActivity(message_alert_i);\n }\n\n String notification_normal_alarm_payload = data.optString(ALARM_TAG);\n if (!notification_normal_alarm_payload.isEmpty()) {\n // -------------------------\n // NOTIFICA ALLERTA CLASSICA\n // -------------------------\n\n OverrideSettings overrideSettings = new OverrideSettings();\n OSNotificationDisplayedResult displayedResult = displayNotification(overrideSettings);\n return true;\n }\n } catch (Exception ex) {\n Log.d(CLASS_TAG, ex.getMessage());\n }\n }\n\n OverrideSettings overrideSettings = new OverrideSettings();\n\n if(!pref_notifica_mattina){\n // Skip\n show_notification = false;\n }\n else {\n // Mostro meteo giornaliero\n\n WeatherReportRepository repo = new WeatherReportRepository(getApplication());\n repo.getAll().observeForever(entries -> {\n // TODO: check if is null\n overrideSettings.extender = new NotificationCompat.Extender() {\n @Override\n public NotificationCompat.Builder extend(NotificationCompat.Builder builder) {\n\n Calendar start = Calendar.getInstance(TimeZone.getTimeZone(\"Europe/Rome\"));\n long now = start.getTimeInMillis();\n\n if ((entries.get(entries.size() - 1).getDataInserimentoDb() <= now && entries.get(entries.size() - 1).getDataInserimentoDb() >= (now - 25200000)) ||\n entries.get(entries.size() - 1).getDataInserimentoDb() >= now) {\n\n // se la data dell'inserimento nel db è compresa tra la mezzanotte di oggi e le sette di mattina\n builder.setContentTitle(getApplicationContext().getResources().getString(R.string.notification_title))\n .setColor(getResources().getColor(R.color.colorAccent))\n .setContentText(getApplicationContext().getResources().getString(R.string.notification_descr) + \" \" +\n entries.get(entries.size() - 1).getPrevisione().getGiorni().get(0).getDescIcona())\n .setGroup(\"meteotrentinoapp\")\n .setAutoCancel(true)\n .setColor(ContextCompat.getColor(getApplicationContext(), R.color.blue_main))\n .setStyle(new NotificationCompat.BigTextStyle().bigText(getApplicationContext().getResources().getString(R.string.notification_descr) + \" \" +\n entries.get(entries.size() - 1).getPrevisione().getGiorni().get(0).getDescIcona()))\n .setPriority(Notification.PRIORITY_HIGH);\n return builder;\n }\n {\n\n // sennò prendo il giorno[2] del database che punta ad oggi\n builder.setContentTitle(getApplicationContext().getResources().getString(R.string.notification_title))\n .setColor(getResources().getColor(R.color.colorAccent))\n .setContentText(getApplicationContext().getResources().getString(R.string.notification_descr) + \" \" +\n entries.get(entries.size() - 1).getPrevisione().getGiorni().get(1).getDescIcona())\n .setGroup(\"meteotrentinoapp\")\n .setAutoCancel(true)\n .setStyle(new NotificationCompat.BigTextStyle().bigText(getApplicationContext().getResources().getString(R.string.notification_descr) + \" \" +\n entries.get(entries.size() - 1).getPrevisione().getGiorni().get(1).getDescIcona()))\n .setPriority(Notification.PRIORITY_HIGH);\n return builder;\n }\n }\n };\n });\n }\n\n try {\n Thread.sleep(5000);\n }\n catch (InterruptedException e) {\n Log.e(CLASS_TAG, e.getMessage());\n }\n\n if (show_notification) {\n OSNotificationDisplayedResult displayedResult = displayNotification(overrideSettings);\n Log.d(OSNotificationExtender.class.getSimpleName(), \"Notification displayed with id: \" + displayedResult.androidNotificationId);\n }\n\n return true;\n }", "title": "" }, { "docid": "9ce660048845a8aa762a5708b557a9e1", "score": "0.54178756", "text": "public void configurateDeliverers(){\n }", "title": "" }, { "docid": "01dbdb20cf0f5649ea692a8a60ccf1a5", "score": "0.54129463", "text": "@Override\n public void onMessage(Message message) {\n openLog();\n try {\n // Make sure thread priority is correct\n if (!Thread.currentThread().getName().equals(thread.getName())) {\n Thread.currentThread().setName(thread.getName());\n Thread.currentThread().setPriority(thread.getPriority());\n }\n\n // Doesn't really do anything yet\n String text = ((TextMessage) message).getText();\n JsonConfigHelper msgJson = new JsonConfigHelper(text);\n //log.debug(\"Message\\n{}\", msgJson.toString());\n\n String msgType = msgJson.get(\"type\");\n if (msgType == null) {\n log.error(\"No message type set!\");\n closeLog();\n return;\n }\n\n // Stop the system from working until a restart occurs\n if (msgType.equals(\"blocking-restart\")) {\n UserAction ua = new UserAction();\n ua.block = true;\n ua.message = \"Changes made to the system require a restart. \" +\n \"Please restart the system before normal \" +\n \"functionality can resume.\";\n ua.template = \"error\";\n // For a blocking restart we can nuke all messages\n currentAction = null;\n actionQueue = new Stack();\n actionQueue.add(ua);\n progressQueue();\n }\n\n // Request a restart, not required though\n if (msgType.equals(\"basic-restart\")) {\n UserAction ua = new UserAction();\n ua.block = false;\n ua.message = \"Changes made to the system require a restart.\";\n processAction(ua, true);\n progressQueue();\n }\n\n // Harvest file update\n if (msgType.equals(\"harvest-update\")) {\n String oid = msgJson.get(\"oid\");\n if (oid != null) {\n UserAction ua = new UserAction();\n ua.block = false;\n ua.message = (\"A harvest file has been updated: '\"\n + oid + \"'\");\n processAction(ua);\n progressQueue();\n } else {\n log.error(\"Invalid message, no harvest file OID provided!\");\n }\n }\n\n // User notications\n if (msgType.equals(\"user-notice\")) {\n String messageText = msgJson.get(\"message\");\n if (messageText != null) {\n UserAction ua = new UserAction();\n ua.block = false;\n ua.message = messageText;\n processAction(ua);\n progressQueue();\n } else {\n this.log.error(\"Invalid notice, no message text provided!\");\n }\n }\n\n // Statistics update from Broker Monitor\n if (msgType.equals(\"broker-update\")) {\n Map<String, JsonConfigHelper> queues =\n msgJson.getJsonMap(\"stats\");\n for (String q : queues.keySet()) {\n JsonConfigHelper qData = queues.get(q);\n Map<String, String> qStats = new HashMap();\n qStats.put(\"total\", qData.get(\"total\"));\n qStats.put(\"lost\", qData.get(\"lost\"));\n qStats.put(\"memory\", qData.get(\"memory\"));\n qStats.put(\"size\", qData.get(\"size\"));\n // Round to an integer value\n int spd = Float.valueOf(qData.get(\"speed\")).intValue();\n qStats.put(\"speed\", String.valueOf(spd));\n // Change from milliseconds to seconds\n float avg = Float.valueOf(qData.get(\"average\")) / 1000;\n // Round to two digits\n avg = Math.round(avg * 100)/100;\n qStats.put(\"average\", String.valueOf(avg));\n stats.put(q, qStats);\n }\n }\n\n // 'Refresh' received, check config and rest timer\n if (msgType.equals(\"refresh\")) {\n log.info(\"Refreshing House Keeping\");\n globalConfig = new JsonConfig();\n timeout = Long.valueOf(globalConfig.get(\n \"portal/houseKeeping/config/frequency\",\n String.valueOf(DEFAULT_TIMEOUT)));\n log.info(\"Starting callback timer. Timeout = {}s\", timeout);\n timer.cancel();\n timer = new Timer(\"HouseKeeping\", true);\n timer.scheduleAtFixedRate(new TimerTask() {\n @Override\n public void run() {\n onTimeout();\n }\n }, 0, timeout * 1000);\n\n // Show a message for the user\n UserAction ua = new UserAction();\n ua.block = false;\n ua.message = (\"House Keeping is restarting. Frequency = \" +\n timeout + \"s\");\n processAction(ua);\n progressQueue();\n }\n } catch (JMSException jmse) {\n log.error(\"Failed to receive message: {}\", jmse.getMessage());\n } catch (IOException ioe) {\n log.error(\"Failed to parse message: {}\", ioe.getMessage());\n }\n closeLog();\n }", "title": "" }, { "docid": "3c8468c90f2217f375e104a16369ef26", "score": "0.5410929", "text": "private void sendNotification(JSONObject message) {\n\n\n Intent notificationIntent = new Intent(this, MainActivity.class);\n notificationIntent.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP | Intent.FLAG_ACTIVITY_CLEAR_TOP);\n //notificationIntent.putExtra(\"extras\",message.optString(\"extra\").toString());\n\n PendingIntent contentIntent = PendingIntent.getActivity(this, 0, notificationIntent, PendingIntent.FLAG_UPDATE_CURRENT);\n\n Uri defaultSoundUri= RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);\n NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(this)\n .setSmallIcon(getApplicationInfo().icon)\n .setContentTitle(message.optString(\"title\"))\n .setContentText(message.optString(\"text\"))\n .setAutoCancel(true)\n .setSound(defaultSoundUri)\n .setContentIntent(contentIntent);\n\n NotificationManager notificationManager =\n (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);\n\n notificationManager.notify(0 /* ID of notification */, notificationBuilder.build());\n\n }", "title": "" }, { "docid": "9b7368da5ff471d537d4be14f12f6345", "score": "0.5409424", "text": "public interface UserNotificationListener\r\n{\r\n public enum Priority\r\n {\r\n INFO, ALERT, CRITICAL\r\n }\r\n \r\n public void receive(long dateIssued, long dateExpires,\r\n Priority priority, String subject, String message);\r\n}", "title": "" }, { "docid": "7e6c96443a7073baf3cc3ce43e1896e7", "score": "0.5402434", "text": "public void showConfigureMessage()\n\t {\n\t AlertDialog.Builder builder = new AlertDialog.Builder(this);\n\t builder.setMessage(\"Really want to exit ?\")\n\t .setCancelable(false)\n\t .setIcon(R.drawable.talkie2)\n\t .setTitle(\" Talkie Talkie \")\n\t .setPositiveButton(\" Yes \", new DialogInterface.OnClickListener() {\n\t public void onClick(DialogInterface dialog, int id) {\n\t try {\n\t Toast.makeText(getApplicationContext(), \"Have a Great Time :)\",Toast.LENGTH_SHORT).show();\n\t //finish();\n\t android.os.Process.killProcess(android.os.Process.myPid());\n\t }\n\t catch (Exception e)\n\t {\n\t e.printStackTrace();\n\t }\n\t }\n\t })\n\t .setNegativeButton(\" No \", new DialogInterface.OnClickListener() {\n\t public void onClick(DialogInterface dialog, int id) {\n\t dialog.cancel();\n\t }\n\t });\n\t AlertDialog alert = builder.create();\n\t alert.show();\n\t }", "title": "" }, { "docid": "e88c4f63c11269d40bd9aac64df4d434", "score": "0.5393762", "text": "public interface SNSConstants {\n\n public static class Dimension {\n\n public static final String TOPIC_NAME = \"TopicName\";\n\n }\n\n public static class MetricName {\n\n public static final String NUMBER_OF_MESSAGES_PUBLISHED = \"NumberOfMessagesPublished\";\n public static final String NUMBER_OF_NOTIFICATIONS_DELIVERED = \"NumberOfNotificationsDelivered\";\n public static final String NUMBER_OF_NOTIFICATIONS_FAILED = \"NumberOfNotificationsFailed\";\n public static final String PUBLISH_SIZE = \"PublishSize\";\n\n }\n\n}", "title": "" }, { "docid": "571bb715aca4aa382156822ff41cceb1", "score": "0.538908", "text": "private void initializeMessages(){\n createMsg = (String)\n getResources().getText(R.string.create_message);\n startMsg = (String)\n getResources().getText(R.string.start_message);\n resumeMsg = (String)\n getResources().getText(R.string.resume_message);\n pauseMsg = (String)\n getResources().getText(R.string.pause_message);\n stopMsg = (String)\n getResources().getText(R.string.stop_message);\n restartMsg = (String)\n getResources().getText(R.string.restart_message);\n\n }", "title": "" }, { "docid": "b5319f57b92cbb18dd0f97ffa991f2c8", "score": "0.53870225", "text": "private void notifyUI(String notification) {\n if(notificationHandler!=null) {\n Bundle b = new Bundle();\n b.putInt(\"type\", NOTIFICATION_TYPE_MESSAGE);\n b.putString(\"content\", notification);\n Message msg = new Message();\n msg.setData(b);\n notificationHandler.sendMessage(msg);\n }\n }", "title": "" }, { "docid": "cbc3ae229df7664b66be70150d6aa794", "score": "0.5384942", "text": "public interface INotification {\n\n}", "title": "" }, { "docid": "00c724fa966b217d4c201d2dbe54b8a1", "score": "0.53841174", "text": "public TransactionNotification(String s, String m)\n {\n this.notificationSource = s;\n this.notificationMessage = m;\n }", "title": "" }, { "docid": "17a9f23ee6bd396b5d3c3f6f4fcf5afa", "score": "0.5383151", "text": "@Override\n public java.lang.String getDescription() {\n return _messagingMessage.getDescription();\n }", "title": "" }, { "docid": "bf0fa500ec4d58ab9360ab761d839074", "score": "0.53815246", "text": "public interface LitmusConstants\n{\n\t// Shared preferences keys\n\tString SHARED_PREFERENCES_NAME = \"litmus_cx_library_application_preferences\";\n\n\t// for GCM\n\tString SAVED_PROPERTY_REG_ID = \"gcm_registration_id\";\n\t// for GCM\n\tString SAVED_PROPERTY_APP_VERSION = \"gcm_app_version\";\n\n\n\t// for Notification\n\tString SAVED_PROPERTY_NOTIFICATION_APP_ID = \"notification_app_id\";\n\t// for Notification\n\tString SAVED_PROPERTY_NOTIFICATION_REMINDER_NUMBER = \"notification_reminder_number\";\n\t// for Notification\n\tString SAVED_PROPERTY_NOTIFICATION_FEEDBACK_LONG_URL = \"notification_feedback_long_url\";\n\t// for Notification\n\tString SAVED_PROPERTY_NOTIFICATION_USER_ID = \"notification_user_id\";\n\n\t// for Notification\n\tString SAVED_PROPERTY_NOTIFICATION_DRAWABLE_ID = \"notification_drawable_id\";\n}", "title": "" }, { "docid": "9c537abae2e0c64792a840ce907b93a0", "score": "0.53809357", "text": "public NotificationMessageDecorator(HaloNotificationDecorator decorator) {\n super(decorator);\n }", "title": "" }, { "docid": "b41288b973d9b432f15e15fa3f517cc8", "score": "0.53784704", "text": "@Override\n public void beforeSendMessage(Message message) {\n\n }", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "f0a33c05e35c60b87406347405aa07e2", "score": "0.0", "text": "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.buttons1);\n\t\tsong = MediaPlayer.create(Menu.this, R.raw.zelda);\n\t\tsong.start();\n\t\t\n\t\tButton but1 = (Button) findViewById(R.id.b1); // set up the button\n\t\tbut1.setOnClickListener(new View.OnClickListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tsong.pause();\n\t\t\t}\n\t\t});\n\t\n\t\tButton res = (Button) findViewById(R.id.b2); \n\t\tres.setOnClickListener(new View.OnClickListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tsong.start();\n\t\t\t}\n\t\t});\n\t\t\n\t\tButton but3 = (Button) findViewById(R.id.b3);\n\t\tbut3.setOnClickListener(new View.OnClickListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tIntent GotoMenu = new Intent(\"com.nrv.projectyasuo.MENUTWO\");\n\t\t\t\tstartActivity(GotoMenu);\n\t\t\t}\n\t\t});\n\t\t\n\t\tButton test_menu = (Button) findViewById(R.id.testmenu);\n\t\ttest_menu.setOnClickListener(new View.OnClickListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tstartActivity(new Intent(\"com.nrv.projectyasuo.TESTMENU\"));\n\t\t\t}\n\t\t});\n\t\t\n\t\tButton sweetMenu = (Button) findViewById(R.id.sweet_button);\n\t\tsweetMenu.setOnClickListener(new View.OnClickListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tstartActivity(new Intent(\"com.nrv.projectyasuo.SWEET\"));\n\t\t\t}\n\t\t});\n\t\t\n\t\tButton toastButton = (Button) findViewById(R.id.toast);\n\t\ttoastButton.setOnClickListener(new View.OnClickListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tToast t = Toast.makeText(getApplicationContext(), \"Toast tasty test\",Toast.LENGTH_LONG);\n\t\t\t\tt.show();\n\t\t\t}\n\t\t});\n\t}", "title": "" } ]
[ { "docid": "e5fa0eebc721dea67da872fd14413bc7", "score": "0.69744676", "text": "@Override\n\tpublic void formule() {\n\t\t\n\t}", "title": "" }, { "docid": "8b7f87c22e268a87686c66398c2c442b", "score": "0.6936331", "text": "@Override\r\n\t\t\tpublic void atras() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "1acc57d42c31dee937ac33ea6f2a5b0b", "score": "0.6836411", "text": "@Override\r\n\tpublic void comer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "ec76ff8d70ced9d8135ad33b23353b4d", "score": "0.6624367", "text": "@Override\r\n\t\t\tpublic void adelante() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "82ab90ffadf9b8d43e60c8510a33beba", "score": "0.6623182", "text": "@Override\r\n\tpublic void morirse() {\n\t\t\r\n\t}", "title": "" }, { "docid": "e3110a393bd4b870b4055aa9ed6efd87", "score": "0.66015315", "text": "@Override\n\tpublic void attaquer() {\n\t\t\n\t}", "title": "" }, { "docid": "a5f7a321f63abee65f0b9008f270490e", "score": "0.6594605", "text": "@Override\n\t\t\tpublic void competir() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "0b5b11f4251ace8b3d0f5ead186f7beb", "score": "0.65677965", "text": "@Override\n\tpublic void comer() {\n\t\t\n\t}", "title": "" }, { "docid": "0b5b11f4251ace8b3d0f5ead186f7beb", "score": "0.65677965", "text": "@Override\n\tpublic void comer() {\n\t\t\n\t}", "title": "" }, { "docid": "80d20df1cc75d8fa96c12c49a757fc43", "score": "0.65323734", "text": "@Override\n\tprotected void getExras() {\n\t\t\n\t}", "title": "" }, { "docid": "7756cbf76fd6363807e17834db326bbc", "score": "0.6501866", "text": "@Override\n\t\t\tpublic void avanzar() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "bdceff0dc4130d850ab15d702b785449", "score": "0.63844895", "text": "@Override\n\tprotected void generate() {\n\t\t\n\t}", "title": "" }, { "docid": "14f6250e215aa66dcffb123fd6b7fd74", "score": "0.63381773", "text": "@Override\n\tpublic void entzünden() {\n\n\t}", "title": "" }, { "docid": "cd03efba12b5473dcc457b910fd92a0e", "score": "0.63222265", "text": "@Override\n\t\t\tpublic void sprout() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "070e1adb9bfd59cb643407a2dabe9b7a", "score": "0.6291592", "text": "private void hinzufügen() {\n\t\t\r\n\t}", "title": "" }, { "docid": "469c90392fb12e4553574135278541f5", "score": "0.62385184", "text": "@Override\n\tpublic void attck() {\n\t\t\n\t}", "title": "" }, { "docid": "d3585587779dbdf33600e1670ca42099", "score": "0.6193195", "text": "@Override\n\tpublic void IngresoKromi() {\n\t}", "title": "" }, { "docid": "7c4f2f94b290de5507eb56a649c4fab9", "score": "0.61922914", "text": "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.61546874", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "093a096d6e96e05b160fe2406b1e8a2d", "score": "0.61053663", "text": "@Override\n\tpublic void parir() {\n\t\t\n\t}", "title": "" }, { "docid": "29cde3f10dab87cebafdd9412ef4b29f", "score": "0.6062187", "text": "@Override\r\n\tpublic void embala() {\n\t\t\r\n\t}", "title": "" }, { "docid": "7839d9b18f833d7ad1ccae8536c829da", "score": "0.60561824", "text": "@Override\r\n\tpublic void zielone_swiatlo() {\n\t\t\r\n\t}", "title": "" }, { "docid": "0cd47ce21776ffa50dd678180ffe94e5", "score": "0.6003824", "text": "public void ayak() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c2c1f0ca9c7029b85142a2ab9536d708", "score": "0.5990595", "text": "@Override\n\tpublic void attaque() {\n\t\t\n\t}", "title": "" }, { "docid": "fa1a013b1df2f5f1062e1cc971135645", "score": "0.5987973", "text": "@Override\n\tpublic void mamar() {\n\t\t\n\t}", "title": "" }, { "docid": "70c63b539d1b6f883ad13008fbcaa6ce", "score": "0.59600407", "text": "@Override\n\tpublic void fiy(){\n\t\t\n\t}", "title": "" }, { "docid": "360bf42213adde0b962792c6cd6d8df7", "score": "0.5952374", "text": "@Override\r\n\t\tpublic void interg() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "6f1e0cfaa7350cf143896dace56978f5", "score": "0.59270483", "text": "@Override\n\tpublic void respirar() {\n\t\t\n\t}", "title": "" }, { "docid": "8b18fd12dbb5303a665e92c25393fb78", "score": "0.59239364", "text": "@Override\n\tprotected void initData() {\n\t\t\n\t}", "title": "" }, { "docid": "dd66e8668788d27519d44caeb83b0c44", "score": "0.5923557", "text": "@Override\r\n\tpublic void operation() {\n\t\t\r\n\t}", "title": "" }, { "docid": "28237d6ae20e1aa35aaca12e05c950c9", "score": "0.5902906", "text": "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "title": "" }, { "docid": "28237d6ae20e1aa35aaca12e05c950c9", "score": "0.5902906", "text": "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "title": "" }, { "docid": "9808ba3c113b79c3677f2c08c09e60a1", "score": "0.59020513", "text": "@Override\n\tpublic void resert() {\n\t\t\n\t}", "title": "" }, { "docid": "e05db3dd501cfaf4d9d1b128ca673f1b", "score": "0.58988667", "text": "@Override\n\tprotected void formRes() {\n\n\t}", "title": "" }, { "docid": "7f91c82c66ced12c5b193d3c89d68e4c", "score": "0.5883667", "text": "@Override\n\tprotected void init() {\n\t}", "title": "" }, { "docid": "ea6be29351b2f6d99af3992f4a8fbd45", "score": "0.58685964", "text": "public void afficherEntreprise(){\r\n\t\t\r\n\t}", "title": "" }, { "docid": "3177b2be45c490e407b98d647e109c0d", "score": "0.58572376", "text": "@Override\n protected void initData()\n {\n\t\n }", "title": "" }, { "docid": "eea1284dac4ca57b790a13dcd1ad6bff", "score": "0.58401465", "text": "@Override\n protected void ucitaj() {\n //only because of 'extands rule'\n }", "title": "" }, { "docid": "e57f005733f2eb8590150b3f4542b844", "score": "0.5810564", "text": "@Override\n\tprotected void getData() {\n\t\t\n\t}", "title": "" }, { "docid": "af70f420bd21981aa44db6516064224d", "score": "0.58060104", "text": "@Override\n\tpublic int berechnen() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "ce91051d32625345f2bf3562abbb93de", "score": "0.5794177", "text": "@Override\n\tprotected void inicializar() {\n\t}", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5792378", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "94f32cdbe8afc400e05efbdb8d78c591", "score": "0.5788508", "text": "@Override\r\n\tpublic void borc_hesapla() {\n\t\t\r\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": "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": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "aed26444304cfac4d695203c7d86e6c5", "score": "0.5769439", "text": "public void autTC05() {\r\n\r\n\t}", "title": "" }, { "docid": "9b56e05d631b1ea925ea2c139ee709ad", "score": "0.5763841", "text": "@Override\n\tpublic void adim7() {\n\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": "a49b2d411619c6f2680e9b0e8c21a20f", "score": "0.57574755", "text": "private void erledigt() {\n\t\t\r\n\t}", "title": "" }, { "docid": "8aac1da26498753495658c2bb9044b21", "score": "0.5751961", "text": "@Override\n public int getOrder() {\n return 0;\n }", "title": "" }, { "docid": "2bbeae4f0e92c95ecc07204851be4769", "score": "0.57508", "text": "@Override\n\tpublic void nyalakan() {\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": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "8603393cbe27452fe30e396632c62eed", "score": "0.57415414", "text": "@Override\n\t\tpublic void postConstruct() {\n\t\t}", "title": "" }, { "docid": "37bf6e6ef01cf7dab163b5d3bedbc140", "score": "0.5740271", "text": "@Override\n\tpublic void som() {\n\t\t\n\t}", "title": "" }, { "docid": "92af0f4d75822a6723aebd9fcc92fafb", "score": "0.57394177", "text": "@Override\n protected void initData() {\n \n }", "title": "" }, { "docid": "c13e6a1b7c130afa9fb0f34225bea4ef", "score": "0.573645", "text": "protected void mo1555b() {\n }", "title": "" }, { "docid": "691b15fed469ddc176b9c9e6151dea65", "score": "0.5734636", "text": "@Override\n\tpublic void breathes()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "0f7672ee5ac14b05f31da4e1e34d7b49", "score": "0.5725253", "text": "@Override\r\n\tpublic void test8() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t}", "title": "" }, { "docid": "a22a3abb4b9b5de4ed8c054da445e9b0", "score": "0.5724528", "text": "@Override\r\n\tpublic void jugar() {\n\r\n\t}", "title": "" }, { "docid": "7fd3ef4778cae98af386c2c7c0aa5995", "score": "0.57231057", "text": "@Override\r\n\tpublic void nmi() {\n\t\t\r\n\t}", "title": "" }, { "docid": "90a583a9686287e3374351dca59e3033", "score": "0.5721244", "text": "@Override\r\n\tpublic void abrir() {\n\r\n\t}", "title": "" }, { "docid": "d629c4ad6266d296b13a93bb0c7f8c66", "score": "0.57099986", "text": "@Override\r\n public void init()\r\n {\n\r\n }", "title": "" }, { "docid": "7aadbda143e84de0144f7a8dadde423d", "score": "0.5701067", "text": "@Override\n protected void initData() {\n\n }", "title": "" }, { "docid": "7aadbda143e84de0144f7a8dadde423d", "score": "0.5701067", "text": "@Override\n protected void initData() {\n\n }", "title": "" }, { "docid": "f375646c5bc224c29261414f3cb81b04", "score": "0.56984305", "text": "@Override\n public int qualiteRelation() {\n return 0;\n }", "title": "" }, { "docid": "5592333c90e75bae58a686b24b05d894", "score": "0.5693882", "text": "@Override\n public String toString() {\n return null;\n }", "title": "" }, { "docid": "b2858312446172fa25a799c5367d2043", "score": "0.56896037", "text": "Smelting(){\r\n\r\n\t\t}", "title": "" }, { "docid": "9f7ae565c79188ee275e5778abe03250", "score": "0.56881124", "text": "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "title": "" }, { "docid": "20b42a0c3fee6c140a112d40354f4298", "score": "0.5686577", "text": "@Override\r\n\tpublic void prepara() {\n\t\t\r\n\t}", "title": "" }, { "docid": "92b8246d78d46bf0f60b46e17e797540", "score": "0.5685193", "text": "@Override\n\tpublic void init () {\n\t}", "title": "" }, { "docid": "57f5caef4402cc8ce13e81561eaa9e43", "score": "0.56787807", "text": "@Override\r\n\tpublic void pickUp() {\n\t\t\r\n\t}", "title": "" }, { "docid": "152818b619dcfcd5190a2f48bc75fa5f", "score": "0.56757474", "text": "@Override\n\tpublic void adim6() {\n\n\t}", "title": "" }, { "docid": "b6c641fa6ba40a5b14cc33cb07aa0671", "score": "0.5669649", "text": "@Override\n\tprotected void initData() {\n\t}", "title": "" }, { "docid": "b6c641fa6ba40a5b14cc33cb07aa0671", "score": "0.5669649", "text": "@Override\n\tprotected void initData() {\n\t}", "title": "" }, { "docid": "131c7dcebe8ac7fd010381a03bd0f405", "score": "0.5667569", "text": "@Override\r\n\tprotected void initActb() {\n\t\t\r\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": "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": "6392764d7ff297c1a478fc1669944649", "score": "0.5653691", "text": "@Override\n\tpublic void gostar_de_carne() {\n\t\t\n\t}", "title": "" }, { "docid": "2b53548295a92f80cb7814e7e3ead131", "score": "0.56503963", "text": "@Override\n\tString frighten() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "18c7036dd108c40b7a27469d8b92687c", "score": "0.5642345", "text": "@Override\n\tpublic void onLoadComplete() {\n\t\t\n\t}", "title": "" }, { "docid": "7b36e2fb2a778b8c30924f6f30758db2", "score": "0.56388146", "text": "private static void buscarId() {\n\t\t\r\n\t}", "title": "" }, { "docid": "9bcd15a2298e73719d7c7326027b093b", "score": "0.56369984", "text": "@Override\n\tprotected void getData() {\n\n\t}", "title": "" } ]
ebe99276df013cb8f27221b969768157
new Car() is the object of car class new keyword is used to creat object
[ { "docid": "799e66ba3c3b55e147fe9002eab7a16e", "score": "0.0", "text": "public static void main(String[] args) {\n\t\tCar a=new Car(); //object creation , here a:object reference variables\n\t\tCar b =new Car();\n\t\tCar c=new Car();\n\t\t\n\t\ta.mod=2015;\n\t\ta.wheel=4;\n\t\t\n\t\tb.mod=2014;\n\t\tb.wheel=4;\n\t\t\n\t\tc.mod=2013;\n\t\tc.wheel=4;\n\t\t\n\t\t\n\t\t\n\t\tSystem.out.println(a.mod);\n\tSystem.out.println(b.wheel);\n\t//shifting of object refrences\n\ta=b;\n\tb=c;\n\tc=a;\n\t\t\ta.mod=10;\n\t\t\tSystem.out.println(a.mod);\n\t\t\tc.mod=20;\n\t\t\tSystem.out.println(a.mod);\n\t}", "title": "" } ]
[ { "docid": "f62ea9c0aaf649d602cb566269580422", "score": "0.78507537", "text": "public Car(){\n\t\t\n\t}", "title": "" }, { "docid": "a632d99b5a009604109ab68cc5432c84", "score": "0.76471376", "text": "public Car() {\n }", "title": "" }, { "docid": "ee4912dfc48321d85a241a65b49f84ff", "score": "0.7557376", "text": "public Car() {\n }", "title": "" }, { "docid": "14fbe88a431c3dcec56d36458f23f15b", "score": "0.7447152", "text": "public Car() {\r\n super();\r\n }", "title": "" }, { "docid": "f32c3e1d096106da2c4499d75258cb21", "score": "0.7408654", "text": "public Car() {\n super();\n }", "title": "" }, { "docid": "46c827c12a6a77bd7731d470ff5e90d8", "score": "0.7349499", "text": "public Car(String carname) {\n this.carname = carname;\n }", "title": "" }, { "docid": "186124f0b79eedd81d43721e6eab390c", "score": "0.7103147", "text": "Car()\r\n\t{\r\n\t\tSystem.out.println(\"hello\");\r\n\t}", "title": "" }, { "docid": "e9c7e84078a650f7d655f7028c45d1d9", "score": "0.6909006", "text": "public Car () {\n\n Make = \"\";\n Model = \"\";\n Year = 2017;\n Price = 0.00;\n }", "title": "" }, { "docid": "c0279598b555d44ef7964b0c38c4e1cb", "score": "0.68970466", "text": "public Car() {\n\t\t\tmake = \"GM\";\n\t\t\tyear = 1900;\n\t\t\tmileage= 0;\n\t\t\tcarCost = 0;\n\t\t}", "title": "" }, { "docid": "dc8143b190b42ef1f05c3b01e712f257", "score": "0.6878701", "text": "@Test\n public void testNewInstance(){\n car = Car.newInstance();\n assertNotNull(car);\n assertNotNull(car.getID());\n }", "title": "" }, { "docid": "4b23e69b8d7b72bff6edeae5b263fafb", "score": "0.68452233", "text": "public Car(String description)\r\n {\r\n this.description = description;\r\n customersName = \"\";\r\n }", "title": "" }, { "docid": "697a2af69091f636c40ac53f81b5ed05", "score": "0.67873573", "text": "public AbstractCar(String car){\n\t\n\tSystem.out.println(\"\\n\\n The following are the details for : \" + car);\n}", "title": "" }, { "docid": "d7667d073b3327f8e81a536b234fd290", "score": "0.67483115", "text": "public static void main(String[] args) {\n\n Car car2=new Car(\"bmw\" ,2020,250876,\"yellow\");\n\n System.out.println(car2.brand);\n System.out.println(car2.year);\n System.out.println(car2.price);\n System.out.println(car2.color);\n\n Car car3=new Car(\"toyoto\",2010,35876,\"black\");\n System.out.println(car3);//tostring\n\n Library.stars();\n car3.getCarBrandYear();\n Library.stars();\n car2.getCarBrandYear();\n\n Car car4=new Car(\"audi\",2010);\n System.out.println(car4);\n\n }", "title": "" }, { "docid": "e0a3f0d6286bd0d38d9999378e8b70e4", "score": "0.66864204", "text": "public static void main(String[] args) {\n\t//Class name variable - new ClassName(); \n\t\n Car car1=new Car(); // we create a new object by using NEW\n \n //1 Object\n System.out.println(\"---------The first object----------\");\n car1.make=\"Honda\"; //you assign features according to their data type specified in template\n car1.model=\"Civic\"; //we can identify because this object has its unique features\n car1.color=\"Silver\";\n car1.door=4;\n car1.wheels=4; \n \n System.out.println(\"Car \"+car1.make+\" has \"+car1.wheels+\" wheels\");\n // define behavior \n car1.drive(); // if we debug when we run drive will search for same method -> it will jump to line 39\n\t\tcar1.reverse();\n\t\tcar1.honk(); \n \n //2 Object\n Car car2 = new Car();\n System.out.println(\"---------The second object---------\");\n car2.make=\"Tesla\";\n car2.model=\"X\";\n car2.color=\"Blue\";\n car2.door=4;\n car2.wheels=4;\n System.out.println(\"My car is \"+car2.color+ \" \"+car2.make);\n // define behavior\n car2.drive();\n car2.reverse();\n car2.honk();\n}", "title": "" }, { "docid": "de23adda611131c28e229033a2f1dea6", "score": "0.66761315", "text": "public Car()\n {\n \tsuper();\n bodyType = null;\n noOfDoors = 0;\n noOfSeats = 0;\n }", "title": "" }, { "docid": "f8c021a874acfc3b4b53bc5adf328a2b", "score": "0.66754746", "text": "public Car(String licensePlate, double fuelEconomy){\n this.licensePlate = licensePlate;\n this.fuelEconomy = fuelEconomy;\n}", "title": "" }, { "docid": "7eb7f48c15f4db27b7eda47e5b9e0b97", "score": "0.66616756", "text": "public static void main(String[] args) {\nCar car = new Car (\"Ford\", 25000, 2003);\nSystem.out.println(car.carBrand + \"\\t\" + car.price + \"\\t\" + car.year);\n\nCar car1 = new Car (\"Nissan\", 50000, 2013);\t\nSystem.out.println(car1.carBrand + \"\\t\" + car1.price + \"\\t\" + car1.year);\n\t}", "title": "" }, { "docid": "d89b6b02134bba82b1cd50e7ea1174d9", "score": "0.65911007", "text": "public void add (Car car){\n\t\t}", "title": "" }, { "docid": "cc04a5f394e09144dbdf7f925eab39ba", "score": "0.65588075", "text": "public static void main(String[] args){\n Vehicle bike = new Vehicle(\"blue\");\n // Vehicle car = new Vehicle();\n // contruct is being used on this new object\n Vehicle redCar = new Vehicle(\"red\");\n System.out.println(redCar.getColor());\n\n // set bike color and wheels\n // bike.setColor(\"Blue\");\n bike.setNumberOfWheels(2);\n\n // get bike color and wheels\n System.out.println(\" Bike object - color\" + bike.getColor());\n System.out.println(\" Bike object - Wheels\" + bike.getNumberOfWheels());\n // set car color and wheels\n // car.setColor(\"Green\");\n // car.setNumberOfWheels(4);\n\n // get car color and wheels\n // System.out.println(\" Car object - color\" + car.getColor());\n // System.out.println(\" Car object - Wheels\" + car.getNumberOfWheels());\n\n\n }", "title": "" }, { "docid": "56011d86bf9b8796ee6e8b9eda72970d", "score": "0.6484945", "text": "public static void main(String[] args) {\r\n\t\t\r\n//\t\tSystem.out.println(\"Start here\");\r\n//\t\tCars vinCar = new Cars(\"Red\", \"BMW\", \"M5\", 2018, 100,2); // object 1\r\n//\t\tCars ahmadsCar = new Cars(\"Black\",\"Merc\",\"c63 amgs\",2020,150,2); // object 2\r\n\t\tCars newCar = new Cars();\r\n//\t\tnewCar.setBrand(\"Audi\");\r\n////\t\tnewCar.setColour(\"green\");\r\n//////\t\tnewCar.setModel(\"A5\");\r\n//\t\tnewCar.setSpeed(0);\r\n//\t\tnewCar.setYear(2020);\r\n////\t\tnewCar.setNoWheels(0);\r\n\t\tSystem.out.println(newCar.getNoWheels());\r\n//\t\tSystem.out.println(newCar.col);\r\n\t\t//System.out.println(newCar);\r\n\t\t\r\n\t\t//System.out.println(vinCar);\r\n//\t\tSystem.out.println(ahmadsCar);\r\n\t//\tvinCar.setBrand(\"Audi\");\r\n\t\t//System.out.println(vinCar.getBrand());\r\n\t\t//System.out.println(vinCar);\r\n//\t\tSystem.out.println(vinCar.drive(123));\r\n\t\t\r\n\r\n\t}", "title": "" }, { "docid": "82f54962d48c8d70310e3cc0cdb9ab8e", "score": "0.6484346", "text": "@Test\n public void testConstructorReference() {\n final Car car = Car.create(Car::new);\n }", "title": "" }, { "docid": "0d8282bdb75d2a73fb9756a792d1b0c6", "score": "0.64646524", "text": "public Vehicle(String carClass, BigDecimal price) {\n this.carClass = carClass;\n this.price = price;\n }", "title": "" }, { "docid": "f4494612092e851cdbe08a4f178ea5a2", "score": "0.6452596", "text": "private Vehicle createNewVehicle() {\n\t\tString make = generateMake();\n\t\tString model = generateModel();\n\t\tdouble weight = generateWeight(model);\n\t\tdouble engineSize = generateEngineSize(model);\n\t\tint numberOfDoors = generateNumberOfDoors(model);\n\t\tboolean isImport = generateIsImport(make);\n\t\t\n\t\tVehicle vehicle = new Vehicle(make, model, weight, engineSize, numberOfDoors, isImport);\n\t\treturn vehicle;\t\t\n\t}", "title": "" }, { "docid": "0e315fbd6a0728c2d904e0c15c496066", "score": "0.6451007", "text": "public static void main(String[] args) {\n\n Car Lorry=new Car();\n Car SportCar=new Car();\n\n printInfo();\n\n }", "title": "" }, { "docid": "5ac3930db381b0e8515cc07908a59f96", "score": "0.6445867", "text": "public Car( double fuelEfficiency)\n {\n // initialise instance variables\n fuelEfficiency = fuelEfficiency;\n fuelInTank = 0;\n }", "title": "" }, { "docid": "ee6f8398d8fde06258a86a947d799568", "score": "0.64451337", "text": "public Car(double fuelEfficiency)\n {\n this.fuelEfficiency = fuelEfficiency;\n fuelInTank = 0;\n }", "title": "" }, { "docid": "2a80ed5ecf185344968265ca7497b766", "score": "0.6425708", "text": "public Car(String registrationNumber, String make, String model) {\r\n super(registrationNumber, make, model);\r\n }", "title": "" }, { "docid": "77bec12f211d8e56fb2e66927272b607", "score": "0.6410517", "text": "Vehicle createVehicle();", "title": "" }, { "docid": "77bec12f211d8e56fb2e66927272b607", "score": "0.6410517", "text": "Vehicle createVehicle();", "title": "" }, { "docid": "79a787e3a6e1cf1e56dcf686b6c896bf", "score": "0.64064234", "text": "public Car(Integer id, String make, String logoFileName, String makeUrl, String model, Integer year, Integer price, Integer mileage, Integer cityMPG, Integer highwayMPG, String engineType, String driveType) {\n this.id = id;\n this.make = make;\n this.logoFileName = logoFileName;\n this.makeUrl = makeUrl;\n this.model = model;\n this.year = year;\n this.price = price;\n this.mileage = mileage;\n this.cityMPG = cityMPG;\n this.highwayMPG = highwayMPG;\n this.engineType = engineType;\n this.driveType = driveType;\n }", "title": "" }, { "docid": "97a4731771dc6b32bd83fd71446178a4", "score": "0.639179", "text": "public Carmodel() {\n this(\"CarModel\", null);\n }", "title": "" }, { "docid": "339ed71501c76e5df71eb4ce6aa8eaa8", "score": "0.63795215", "text": "public Supercar() {\r\n\t\t\r\n\t}", "title": "" }, { "docid": "c5a8c44640d7ae26a80157484aabba0d", "score": "0.6367172", "text": "public Car createCar(String name, String modelName, String type) {\r\n return new Car(name, modelName, type);\r\n }", "title": "" }, { "docid": "b6a5d916b8c1d45aaa98df8cb20a8a35", "score": "0.6357883", "text": "public static void main(String[] args) {\n\t\tCar a =new Car();// new Car() is the object for new class..a, b,c are references\n\t\ta.mod =10;\n\t\ta.wheel =20;\n\t\tSystem.out.println(a.mod\n\t\t\t\t);\n\t\tCar b =new Car();\n\t\t\n\t\t\n\n\t}", "title": "" }, { "docid": "2f881fa0ea9b179bb862bf28f8bd2378", "score": "0.6351956", "text": "public static Car createNew(String make, String model, Integer productionYear) {\r\n return new Car(-1, make, model, productionYear);\r\n }", "title": "" }, { "docid": "ce5f5b5fc6bf0b9636c47ef7e8a10fda", "score": "0.6329227", "text": "public static Car getNewCar() {\n CarType[] carTypes = CarType.values();\n\n CarType randomCarType = carTypes[(int) (Math.random()*carTypes.length)];\n\n switch(randomCarType){\n case DELOREAN:\n return new DeLoreanCar(fetchRandomPosition());\n case SUPER:\n return new SuperCar(fetchRandomPosition());\n case GOLAO:\n return new GolaoCar(fetchRandomPosition());\n }\n return null;\n }", "title": "" }, { "docid": "192f8842da9313747cb7dd237e1632c0", "score": "0.6308243", "text": "public CarResource() {\n }", "title": "" }, { "docid": "4ade9ea9cc40ebe0114c9c4c9f6f3b12", "score": "0.62919605", "text": "public Vehicle(){}", "title": "" }, { "docid": "2e15c22b2dc741fdb28d4c0e89a98a54", "score": "0.6288283", "text": "@Test\n\tpublic void testCreateValidCoupeCar() {\n\t\tCarFactory _carFactory = new CarFactory();\n\n\t\tCarType _carType = CarType.valueOf(\"coupe\".toUpperCase());\n\t\tString _make = \"toyota\";\n\t\tString _model = \"trueno\";\n\t\tString _color = \"white\";\n\t\tint _year = 1986;\n\n\t\t// ---------------------------------------------\n\t\t// Creating a valid coupe.\n\n\t\ttry {\n\t\t\tAbstractCar _coupe = _carFactory.buildCar(_carType, _make, _model, _color, _year);\n\t\t\tassertTrue(_coupe instanceof Coupe);\n\t\t} catch (Exception e_) {\n\t\t\tfail(\"Failed to create a valid Coupe.\");\n\t\t}\n\t}", "title": "" }, { "docid": "57b49bc15d3a3e3d8c2b3a9b4b60fb9c", "score": "0.62812924", "text": "public Car(String make, int year, int mileage, int carCost ) {\n\t\t\tthis.make = make;\n\t\t\tthis.year = year;\n\t\t\tthis.mileage = mileage;\n\t\t\tthis.carCost = carCost;\n\t\t}", "title": "" }, { "docid": "84fbc357ca10237e86ba948a4b22fc5c", "score": "0.62553334", "text": "public void makeCars()\r\n\t{\r\n\t\tString[] names = new String[]{\"BOB\",\"SUE\",\"JOE\",\"NEATO\",\"FALCON\"};\r\n\t\tfor(int i=0; i<cars.length; i++)\r\n\t\t{\r\n\t\t\tString name = names[(int)(Math.random()*names.length)];\r\n\t\t\tColor color = new Color((int)(Math.random()*256),(int)(Math.random()*256),(int)(Math.random()*256));\r\n\t\t\tdouble speed = Math.random()*5+1;\r\n\t\t\tcars[i] = new Car(Math.random()*(-SCREEN_WIDTH),Math.random()*SCREEN_HEIGHT,name,color,speed);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "04d65f3b5d930b4adf4d6cac6b37b69a", "score": "0.62434566", "text": "public Car(String make, String model, Color color){\n // set the arguments to the member variables.\n this.make = make;\n this.model = model;\n this.color = color;\n // the default speed will be 0 since the car isn't moving.\n speed = 0;\n }", "title": "" }, { "docid": "14f0440137f1fffafca0237cc17817d5", "score": "0.62378836", "text": "public Car() {\r\n this(\"\", \"\", \"\", 0, Category.EMPTY, 0.00, \"\", 0, \"\", 0.00, \"\", DriveTrain.EMPTY,\r\n Aspiration.EMPTY, 0.00, 0.00, 0.00, 0.00, 0.0, 0.0, 0.0, 0.0, 0.0);\r\n }", "title": "" }, { "docid": "72a2886b3a7fefdfe0a059b1071b1a14", "score": "0.6227229", "text": "private Car(Integer carID, String make, String model, Integer productionYear) {\r\n setCarID(carID);\r\n setMake(make);\r\n setModel(model);\r\n setProductionYear(productionYear);\r\n }", "title": "" }, { "docid": "b50102651a111d9620f04c17a4cf42c3", "score": "0.6224972", "text": "public Vehicle() {}", "title": "" }, { "docid": "dc2686cbf4860d42f494f824c2621795", "score": "0.6223666", "text": "public Car createListings(int year, String brand, String model, int mileage, int bidPrice) {\r\n\r\n car = new Car(year, brand, model, mileage, bidPrice);\r\n\r\n cars.addCar(car);\r\n\r\n return car;\r\n\r\n }", "title": "" }, { "docid": "945ca573c7e8b347604a0dd1aa1bf0cf", "score": "0.62207174", "text": "public Car (String color, int wheels, double speed)\n {\n this.color = color;\n this.wheels = wheels;\n this.speed = speed;\n }", "title": "" }, { "docid": "0af376d1ab3b94ae50886dd912f46ca5", "score": "0.6219712", "text": "Dog(){\n\t\t\n\t\t//I want to create a chemicals object. Inorder to do this, I have to first create a Cardiac obj, then a Cells obj, then a Chemicals object.\n\t\t//I have to create a Chemicals object, to get a chemicals constructor \n\t\tnew Cardiac().new Cells().new Chemicals();\n\t\t\n\t}", "title": "" }, { "docid": "38c1f3d6fef57a53dcf7a106a463fe90", "score": "0.62142676", "text": "public Carrier() {\n }", "title": "" }, { "docid": "5d74551c71e5a6d526f40c443f48fdb4", "score": "0.6208713", "text": "public static void main(String[] args){\n Car myCar = new Car();\n myCar.car_human();\n myCar.car_color(); \n }", "title": "" }, { "docid": "652075d773d62d97083b23dac82e9872", "score": "0.62051445", "text": "public void setCar(Car car) {\n this.car = car;\n }", "title": "" }, { "docid": "f43f10588d2a76438f8f8075b7b82fc9", "score": "0.61927235", "text": "public Vehicle() {\n }", "title": "" }, { "docid": "4b73565f2327bf6435e5911266043356", "score": "0.61827165", "text": "VehicleClass() {}", "title": "" }, { "docid": "16e9c7848ea5f195e123d07268216d61", "score": "0.6172697", "text": "public static void main(String[] args) {\n\t\tCar carUserObj = new Car();\n\t\t//carUserObj.sound();\n\t\tcarUserObj.drive();\n\t\tCar CarObject2= new Car();\n\t\tcarUserObj.changSpeed();\n\t\tSystem.out.println(\"enginType \"+ carUserObj.enginType);\n\t\t//System.out.println(\"modelName \"+ carUserObj.modelName);\n\t}", "title": "" }, { "docid": "3c24d1b7adc1dec7b7c0d999a82a84c9", "score": "0.6172265", "text": "public static void main(String[] args) {\n\t\t Car car1=new Car();\n\t car1.make=\"Tesla\";\n\t car1.model=\"S3\";\n\t car1.color=\"Black\";\n\t car1.year=2020;\n\t car1.wheels=4;\n\t car1.windows=5;\n\t car1.speed=200;\n\t car1.drive();\n\t car1.accelerate();\n\t car1.drive();\n\t \n\t System.out.println(\"--------------------------\");\n\t \n\t Car car2=new Car();\n\t car2.make=\"BMW\";\n\t car2.model=\"i8\";\n\t car2.color=\"Purple\";\n\t car2.year=2019;\n\t car2.wheels=4;\n\t car2.windows=6;\n\t car2.speed=300;\n\t \n\t car2.drive();\n\t car2.accelerate();\n\t car2.drive();\n\t \n\t \n\t \n\t System.out.println(\"I have \"+car1.color+\" \");\n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\n\t}", "title": "" }, { "docid": "c75a8c304e7a8aab8ea8bdc9dae20e43", "score": "0.61699647", "text": "public CarUpdateMB() {\n }", "title": "" }, { "docid": "96104f24f1a48375f359b043b3d9ae6e", "score": "0.6160624", "text": "public Vehicle() {\n\n\t}", "title": "" }, { "docid": "75bd9437ebfdf33524891ffdc0ca220a", "score": "0.61392117", "text": "public Vehicle(){\n System.out.println(\"Parking a unknown model Vehicle\");\n numberOfVehicle++;\n }", "title": "" }, { "docid": "746efb9300c666871796962cef8f186d", "score": "0.6139138", "text": "public static void carlist() {\n Cars xx = new Cars();\n System.out.println(\"You have \" + String.valueOf(listcars.size())+ \" cars\");\n System.out.println(\"List of all your cars \");\n for (int i = 0; i < listcars.size();i++) {\n xx = listcars.get(i);\n System.out.println(xx.getBrand()+ \" \"+ xx.getModel()+ \" \"+ xx.getReference()+ \" \"+ xx.getYear()+ \" \");\n }\n }", "title": "" }, { "docid": "bae77bbaffc56923c0059825de42a08d", "score": "0.61369765", "text": "public Car(String regisNo,String carOwner,String ownerStatus)\n {\n this.regisNo = regisNo;\n this.carOwner = carOwner;\n this.ownerStatus = ownerStatus;\n }", "title": "" }, { "docid": "2dd262f902058528c248de1ac5c783bc", "score": "0.6122135", "text": "public interface ICarFactory {\n\t\n\tpublic ICar produce(String carType);\n\t\n\t \n\t\n}", "title": "" }, { "docid": "cedbc9200347af81c21504aa5b547108", "score": "0.61076945", "text": "private ICarModel ICarModel(Car car) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "0b5b77ac49c54e08f2b04a8b5d51ecaa", "score": "0.6095403", "text": "public Vehicle(Vehicle vehicle) {\r\n\r\n\t\tthis.make = vehicle.make;\r\n\t\tthis.yearMake = vehicle.yearMake;\r\n\t\tthis.numOfDoors = vehicle.numOfDoors;\r\n\t\tthis.price = vehicle.price;\r\n\t}", "title": "" }, { "docid": "ee4334ae7f00b012140a35e820af2f9b", "score": "0.6084912", "text": "public static void main(String[] args) {\n car hyundai = new car();\n car maruti = new car();\n hyundai.setModel(\"i10\");\n hyundai.setDoors();\n System.out.println(hyundai.getModel());\n System.out.println(hyundai.getDoors());\n hyundai.setModel(\"baleno\");\n hyundai.setDoors();\n System.out.println(hyundai.getModel());\n System.out.println(hyundai.getDoors());\n\n\n }", "title": "" }, { "docid": "4431fc00fb233816925b5119d26de623", "score": "0.6081627", "text": "public interface ICarFactory {\n}", "title": "" }, { "docid": "8c45ef0d70e88a1c23db0efe4ae2d666", "score": "0.60810125", "text": "public static void main(String[] args) {\nCar car=new Car();\r\nSystem.out.println(car.color);\r\nSystem.out.println(Car.name);\r\ncar.run();\r\ncar.play();\r\n\t}", "title": "" }, { "docid": "7499b4d30be122eb48efb577305cddb2", "score": "0.6076945", "text": "public static void main(String[] args) {\n car car = new car(8,\"Base Car\");\n System.out.println(car.startEngine());\n System.out.println(car.accelerate());\n System.out.println(car.brake());\n\n //output for the lamborghini car\n lambo gall = new lambo(8,\"Gallardo\");\n System.out.println(gall.startEngine());\n System.out.println(gall.accelerate());\n System.out.println(gall.brake());\n\n //output for the ferrari car\n ferrari ferr = new ferrari(6,\"F30\");\n System.out.println(ferr.startEngine());\n System.out.println(ferr.accelerate());\n System.out.println(ferr.brake());\n\n }", "title": "" }, { "docid": "d5d1e7c8ab7daec64b652bb4a6a060bd", "score": "0.6064022", "text": "public CarShowroom() {\n initialiseShowroom();\n calculateAveragePrice();\n setOldestCar();\n getPriciestCar();\n }", "title": "" }, { "docid": "e77f153556c1f08ec8204710cfcc8f6d", "score": "0.60462695", "text": "CarType(String carCode)\r\n {\r\n this.carCode = carCode;\r\n }", "title": "" }, { "docid": "519b96c6297c13c05b0b74da22efbfb3", "score": "0.60262203", "text": "private static Vehicle GetNewVehicle()\n {\n System.out.println(\"What type of vehicle is this?\");\n System.out.println(\" - Enter 1 for 'Car'\");\n System.out.println(\" - Enter 2 for 'Truck'\");\n System.out.println(\" - Enter 3 for 'Motorcycle'\");\n int vType = in.nextInt();\n in.nextLine(); //clear buffer or loop will break\n Vehicle v = null;\n switch (vType)\n {\n case 1:\n v = new Car();\n break;\n case 2:\n v = new Truck();\n System.out.println(\"Is this a four wheel drive?\");\n String s = in.nextLine();\n if (s.toUpperCase().indexOf(\"Y\") == 0)\n {\n Truck t = (Truck)v;\n t.toggleFourWheelDrive(true);\n }\n break;\n case 3:\n v = new Motorcycle();\n break;\n }\n System.out.println(\"What is the VIN?\");\n v.setVIN(in.nextLine());\n System.out.println(\"What is the Make?\");\n v.setMake(in.nextLine());\n System.out.println(\"What is the Model?\");\n v.setModel(in.nextLine());\n System.out.println(\"What is the Year\");\n v.setYear(in.nextInt());\n in.nextLine(); //clear buffer\n System.out.println(\"What is the Mileage\");\n v.setMileage(in.nextDouble());\n in.nextLine(); //clear buffer\n return v;\n }", "title": "" }, { "docid": "34873b8d91b818a9ecb10a33aca44e77", "score": "0.5991384", "text": "public Vehicle()\n {\n name = \"none\";\n cost = 0;\n }", "title": "" }, { "docid": "04e654eefa4d9c3f4848c08fc9b3d367", "score": "0.5977911", "text": "public CarExternalizable() {\n System.out.println(\"in carExternalizable\");\n }", "title": "" }, { "docid": "ca0cee2de07e87bc2c4319ca94b6279f", "score": "0.59777176", "text": "public static Vehicle newCar(TimeServer ts, VehicleAcceptor va) {\n\t\t\n\t\tCar c = new Car(ts, va);\n\t\treturn c;\n\t\t\n\t}", "title": "" }, { "docid": "f1682b9323b438fc993d56127b6011ca", "score": "0.59697247", "text": "public interface Car {\n\n}", "title": "" }, { "docid": "363a2336ad54909d5c7f5b7c8b348d9c", "score": "0.5964844", "text": "private CarRental() {\r\n\t\tcompanyCars = new ArrayList<InterfaceAbstractCar>();\r\n\t\trentDetails = new HashMap<DriversLicense, InterfaceAbstractCar>();\r\n\t}", "title": "" }, { "docid": "f227f137424a7157037ee7714e067c9a", "score": "0.5963417", "text": "public Vehicle() {\r\n\t\tthis.numOfDoors = 4;\r\n\t\tthis.price = 1;\r\n\t\tthis.yearMake = 2019;\r\n\t\tthis.make = \"Toyota\";\r\n\t}", "title": "" }, { "docid": "f8eb37afaade36f51a138bcf98abe0cd", "score": "0.5961938", "text": "public tT CAR()\r\n\t{\r\n\t\treturn car;\r\n\t}", "title": "" }, { "docid": "ad9943e38628f58e0bb48580892745b1", "score": "0.59577835", "text": "public static void main(String[] args) {\n\n Car c = new BasicCar();\n Car c1 = new SpyCar();\n Car c2 = new CarWithSunRoof();\n Car c3 = new SpyCarWhitSunRoof();\n }", "title": "" }, { "docid": "9baa7e3a2c126053aa3b45928780d171", "score": "0.5950131", "text": "public CMObject newInstance();", "title": "" }, { "docid": "d2e33d7149c9cb59e8615907dfbd4c4a", "score": "0.59467125", "text": "public CarComponent() {\n callCount = 0;\n }", "title": "" }, { "docid": "da222e46970bb217505a07729782a5cf", "score": "0.5941018", "text": "public Car create(Car car) {\n if (car.getStation() == null) {\n throw new IllegalArgumentException(messages.get(\"carStationNotNull\"));\n }\n if (car.getStation().getId() == null || !stationService.existsById(car.getStation().getId())) {\n throw new EntityNotFoundException(messages.get(\"stationNotFound\"));\n }\n if (carRepository.existsById(car.getRegistrationNr())) {\n throw new EntityExistsException(messages.get(\"carAlreadyExists\"));\n }\n return carRepository.save(car);\n }", "title": "" }, { "docid": "2e99cf46a330205188813cfc58406e0e", "score": "0.5930036", "text": "public Car(String primaryKey, String name, String dealerKey, int year, Category category,\r\n double price, String displacementCC, int maxPower,\r\n String powerRPM, double torqueFtLb, String torqueRPM, DriveTrain driveTrain,\r\n Aspiration aspiration, double length, double width, double height, double weight,\r\n double maxSpeed, double acceleration, double braking, double cornering, double stability) {\r\n this.primaryKey = primaryKey;\r\n this.name = name;\r\n this.manufacturerKey = dealerKey;\r\n this.year = year;\r\n this.category = category;\r\n this.price = price;\r\n this.displacementCC = displacementCC;\r\n this.maxPower = maxPower;\r\n this.powerRPM = powerRPM;\r\n this.torqueFtLb = torqueFtLb;\r\n this.torqueRPM = torqueRPM;\r\n this.driveTrain = driveTrain;\r\n this.aspiration = aspiration;\r\n this.length = length;\r\n this.width = width;\r\n this.height = height;\r\n this.weight = weight;\r\n this.maxSpeed = maxSpeed;\r\n this.acceleration = acceleration;\r\n this.braking = braking;\r\n this.cornering = cornering;\r\n this.stability = stability;\r\n }", "title": "" }, { "docid": "f1685974871171ed991db8249bf17b5b", "score": "0.59161735", "text": "public static void main(String[] args) {\n Car car1 = new Car(\"mersedes\");\n Car car2 = new Car(\"bmw\");\n Car car3 = new Car(\"\");\n\n car1.setColor(\"black\");\n car2.setColor(\"red\");\n while (car2.speed<100) {\n car2.accelerate(10);\n }\n car2.accelerate(200);\n System.out.println(car2.speed);\n\n while (car1.speed>0) {\n car1.slowDown(1);\n }\n System.out.println(car1.speed);\n printMemory();\n\n Car[][] Cars = new Car[10000][10000];\n for(int i=0;i<1010;i++){\n Cars[1][i] = new Car(\"nnn\");\n }\n printMemory();\n Runtime.getRuntime().gc();\n printMemory();\n }", "title": "" }, { "docid": "3cc0748ce46ba5915a9c1caf37d67349", "score": "0.5913935", "text": "public void setCar() {\n\n\t\tint tries = 0;\n\t\tif(type ==RANDOM)\n\t\t{\n\t\t\tfor (int i = 0; i < noOfCarsGenerated; i++) {\n\t\t\t\tCar c = generateRandomCar(Timer.getClock());\n\t\t\t\twhile (c == null){\n\t\t\t\t\ttries++;\n\t\t\t\t\tSystem.out.println(\"i'm null somehow : \" + tries);\n\t\t\t\t\tc = generateRandomCar(Timer.getClock());\n\t\t\t\t}\n\t\t\t\tSimulator.getStations().get(c.getDestination()).addMovingQueue(c);\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\telse if (type == FIXED) {\n\t\t\t\n\t\t\tPoint source=Simulator.geoToCor(latitude, longitude);\n\t\t\tString destination=strategy.chooseDestination(source);\n\n\t\t\tfor (int i = 0; i < noOfCarsGenerated; i++) {\n\t\t\t\tCar c = new Car(latitude, longitude, destination, Timer.getClock(), strategy.setChargingTime(source));\n\t\t\t\tc.saveRoute(c.getCarRoute());\n\t\t\t\tSimulator.getStations().get(c.getDestination()).addMovingQueue(c);\n\t\t\t}\n\t\t}\n\n\t\tcurrentNo += noOfCarsGenerated;\n\n\t\tSimulator.updateCarNolbl(noOfCarsGenerated);\n\n\n\t}", "title": "" }, { "docid": "9ee957d7df9eee991685fcfde46e05bc", "score": "0.59092927", "text": "public static void main(String[] args) {\n//\t\tcar.changeSize();\r\n//\t\tSystem.out.println(car);\r\n//\t\tcar.bigWheel();\r\n//\t\tSystem.out.println(car);\r\n//\t\tcar.getBody().setMaterial(\"Metall\");\r\n//\t\tSystem.out.println(car);\r\n\t\t\r\n\t\tCar car = new Car(\"Ferrari\", new Body(\"Alu\", \"Color\"), new SteeringWheel(17), new Wheel(17, 4));\r\n\t\tSystem.out.println(car);\r\n\t\tcar.changeSize();\r\n\t\tSystem.out.println(car);\r\n\t\tcar.bigWheel();\r\n\t\tSystem.out.println(car);\r\n\t\tcar.getBody().setMaterial(\"Metall\");\r\n\t\tSystem.out.println(car);\r\n\t}", "title": "" }, { "docid": "53a1fe6909cca171b23f908badda4e2a", "score": "0.5900564", "text": "CarThread(Car car) {\n this.car = car;\n thread = new Thread(this);\n }", "title": "" }, { "docid": "1948af5648809dbf0dd9744a99348349", "score": "0.5897017", "text": "public static void main(String[] args) {\nScanner s=new Scanner(System.in);\r\nint a=s.nextInt();\r\nCar2 c=new Car2();\r\nc.about();\r\nc.speed(a);\r\n\t}", "title": "" }, { "docid": "41c1da16c8955486e43dc2d2eed302f2", "score": "0.58959943", "text": "public static void main(String[] args) {\n\t\tVehicle v = new Car(10,20);\n\t\tObject o = new Vehicle();\n\t\t\n\t\tv.maxSpeed = 100;\n\t\tv.print();\n\t\tv = new Vehicle();\n\t\tv.setColor(\"green\");\n//\t\tCar c = (Car) v; dangerous casting\n//\t\tv.numDoors = 4;\n//\t\tVehicle v3 = new Bicycle(12);\n\n\t\t\n\t\tv.maxSpeed = 80;\n\t\tv.setColor(\"red\");\n\t\tv.print();\n//\t\t\n//\t\tCar c = new Car();\n//\t\tc.color = \"Black\";\n//\t\tc.maxSpeed = 100;\n//\t\tc.numDoors = 4;\n//\t\tc.setColor(\"black\");\n//\t\tc.printMaxspeed();\n//\t\tc.print();\n//\t\tc.printCar();\n\t\t\n//\t\tBicycle b = new Bicycle();\n//\t\tb.print();\n\n\t}", "title": "" }, { "docid": "3b0f600deb1d3bdffada4b897f34a468", "score": "0.58938783", "text": "public static void main(String[] args) {\n\t\t\r\n\t\tCar1 car = new Car1();//객체생성\r\n\t\t//객체를 생성하면 생성자가 호출되고 필드 초기화와 메소드 호출 등\r\n\t\t//객체를 사용할 준비를 한다.\r\n\t\tSystem.out.println(\"company : \" + car.company);\r\n\t\tSystem.out.println(\"model : \" + car.model);\r\n\t\tSystem.out.println(\"color : \" + car.color);\r\n\t\tSystem.out.println(\"speed : \" + car.speed);\r\n\t\t\r\n\r\n\t}", "title": "" }, { "docid": "6b145d6608e5a7c629de3a54fe19ebd6", "score": "0.588485", "text": "@Test\n public void testCreateCars() throws Exception {\n Car car = carService.generateACarObject();\n testCreateCars(new ElectricCar(car)); // Test to see if electric cars are saved right!\n testCreateCars(new GasCar(car)); // Test to see if gas cars are saved right!\n testCreateCars(new DieselCar(car)); // Test to see if diesel cars are saved right!\n }", "title": "" }, { "docid": "0c62a7871a8571579d13c044aa25d6fa", "score": "0.5860392", "text": "public void car(){\n\t\t\tSystem.out.println(\"My car is BMW\");\n\t\t}", "title": "" }, { "docid": "d3142f6715501ef16b2b173f58ae0c63", "score": "0.5859912", "text": "public static void main(String[] args) {\n\tCar car = new Taxi();\n\t\nSystem.out.println(car.i);\nSystem.out.println(car instanceof Taxi);\n}", "title": "" }, { "docid": "26668dab6625c5983ff8b1c505bf034e", "score": "0.585022", "text": "public Vehicle(int year, String make, String model) {\n\t\tsuper();\n\t\tYear = year;\n\t\tMake = make;\n\t\tModel = model;\n\t}", "title": "" }, { "docid": "71abd4244366f85580f2b9aab3fa287f", "score": "0.5849466", "text": "public interface Car {\n}", "title": "" }, { "docid": "edd1edd2f9b054ff207b0678866224b2", "score": "0.5838488", "text": "public static void main(String[] args) {\r\n \r\n // declare some cars\r\n Car randomCar, coolCar, neatoCar;\r\n \r\n // make a scanner to get input\r\n Scanner sc = new Scanner(System.in);\r\n \r\n // make some variables to store the first car's values\r\n String coolCarMake, coolCarModel;\r\n int coolCarYear;\r\n double coolCarPrice, coolCarLength, coolCarWidth;\r\n \r\n // Get the user's input\r\n System.out.println(\"Please enter the make:\");\r\n coolCarMake = sc.nextLine();\r\n System.out.println(\"Please enter the model:\");\r\n coolCarModel = sc.nextLine();\r\n System.out.println(\"Please enter the year:\");\r\n coolCarYear = sc.nextInt();\r\n System.out.println(\"Please enter the price:\");\r\n coolCarPrice = sc.nextDouble();\r\n System.out.println(\"Please enter the length:\");\r\n coolCarLength = sc.nextDouble();\r\n System.out.println(\"Please enter the width:\");\r\n coolCarWidth = sc.nextDouble();\r\n sc.close();\r\n \r\n // print out the information about the cars\r\n randomCar = new Car();\r\n coolCar = new Car(coolCarMake, coolCarModel, coolCarYear, coolCarPrice, coolCarLength, coolCarWidth);\r\n neatoCar = new Car(\"Land Rover\", \"LR4\", 2016, 59990.0, 4.829, 2.053);\r\n System.out.println(randomCar);\r\n System.out.println(coolCar);\r\n System.out.println(neatoCar);\r\n randomCar.honk();\r\n }", "title": "" }, { "docid": "cd01e9ad07b00bc9ec94a0bd39fe6fec", "score": "0.5837924", "text": "public ElectricCar(String mfr, String color, Model model, Vehicle.PowerSource power, \n\t\t double safety, int range, boolean awd, int price, int rch,String batteryType, int VIN)\n{\n\t super(mfr, color, model, Vehicle.PowerSource.ELECTRIC_MOTOR, safety, range, awd, price, VIN);\n\t rechargeTime = rch;\n\t batteryType = \"Lithium\";\n}", "title": "" }, { "docid": "bf73d3b66248296b46fe9511d95ed0cd", "score": "0.5823596", "text": "public CarAccessBean () {\n super();\n }", "title": "" }, { "docid": "cdd486478120020674dddd84bef76112", "score": "0.58106846", "text": "public static void main(String[] args) {\nconstructorDemo obj=new constructorDemo();\nconstructorDemo obj1=new constructorDemo(\"My Parameter\");\nconstructorDemo obj2=new constructorDemo(123);\nconstructorDemo obj3=new constructorDemo(123,6);\nSystem.out.println(\"code after creating object\");\nobj.hello();\nobj.hello(\"hi\");\n\t}", "title": "" }, { "docid": "e625666b3685aac7360601aff2226f62", "score": "0.5798745", "text": "public void carDetails() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b6352365cdfd34b6162ccf20c080644a", "score": "0.57984066", "text": "Vehicle() \n {\n System.out.println(\"Constructor of the Super class called\");\n noOfTyres = 5;\n accessories = true;\n brand = \"X\";\n counter++;\n }", "title": "" }, { "docid": "ff26c04569cda773ec253a58466dbd83", "score": "0.5790154", "text": "public static Car createExisting(Integer carID, String make, String model,\r\n Integer productionYear) {\r\n return new Car(carID, make, model, productionYear);\r\n }", "title": "" } ]
87f73b6fd9b006cf9f2148272c6e999d
Convert the given object to string with each line indented by 4 spaces (except the first line).
[ { "docid": "b903fcab4b14ca87d4e227121a31edfa", "score": "0.0", "text": "private String toIndentedString(java.lang.Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" } ]
[ { "docid": "841a48a612f085a3199e6e4b62c60fbc", "score": "0.7466027", "text": "private String toIndentedString(Object o) {\n if (o == null) { return \"null\"; }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" } ]
23961122874e38a73a05aee235134ca0
The height of this EventView.
[ { "docid": "c4e2832cab878c26d9253f4dd77e2ddc", "score": "0.70317173", "text": "public int eventHeight() {\r\n float sMin = Integer.parseInt(e.getStartTime().substring(2));\r\n float eMin = Integer.parseInt(e.getEndTime().substring(2));\r\n float sHour = Integer.parseInt(e.getStartTime().substring(0, 2));\r\n float eHour = Integer.parseInt(e.getEndTime().substring(0, 2));\r\n // Log.d(\"Tracker-Test\",\r\n // \"sMin=\"+sMin+\" eMin=\"+eMin+\" sHour\"+sHour+\" eHour\"+eHour);\r\n float deltaT = eHour - sHour + (eMin - sMin) / 60;\r\n return Math.round(deltaT * DayActivity.HOUR_HEIGHT * dm.density);\r\n }", "title": "" } ]
[ { "docid": "cd40b072a5cbbda26b06d548a2b76fd6", "score": "0.74207693", "text": "public int height() {\r\n if (view != null) {\r\n ViewGroup.LayoutParams layoutParams = view.getLayoutParams();\r\n return layoutParams.height;\r\n }\r\n return 0;\r\n }", "title": "" }, { "docid": "a691771db725674685a90e8fe67c252b", "score": "0.73118657", "text": "public int getHeight() {\n \n return height;\n }", "title": "" }, { "docid": "126319f0938808895b1759ba4f130d43", "score": "0.7267444", "text": "public int getHeight() {\n return height_;\n }", "title": "" }, { "docid": "126319f0938808895b1759ba4f130d43", "score": "0.7267444", "text": "public int getHeight() {\n return height_;\n }", "title": "" }, { "docid": "94f4f53d56f64d132e2b90f03e19fdf3", "score": "0.7227164", "text": "@java.lang.Override\n public long getHeight() {\n return height_;\n }", "title": "" }, { "docid": "0ff0412cbec108717b7bc6cddc64a491", "score": "0.7221367", "text": "public int getHeight() {\n\n\t\treturn height;\n\t}", "title": "" }, { "docid": "a444cb6d05c57e01c7a986d4bcf1471d", "score": "0.7206869", "text": "public final int getHeight() {\n return this.height;\n }", "title": "" }, { "docid": "725744efe988a68465d0a76e9fed06fd", "score": "0.72033095", "text": "public int getHeight() {\n return this.height;\n }", "title": "" }, { "docid": "e0592078686fcbe65e1c9b96d99ee4f9", "score": "0.72020286", "text": "@Basic\n\tpublic int getHeight(){\n\t\treturn height;\n\t}", "title": "" }, { "docid": "d67f4f7663412fd6a8af137f739f4bad", "score": "0.71918577", "text": "public int getHeight() {\n return height_;\n }", "title": "" }, { "docid": "d67f4f7663412fd6a8af137f739f4bad", "score": "0.71918577", "text": "public int getHeight() {\n return height_;\n }", "title": "" }, { "docid": "d67f4f7663412fd6a8af137f739f4bad", "score": "0.71918577", "text": "public int getHeight() {\n return height_;\n }", "title": "" }, { "docid": "163a0a1b8a9ad6217dcfa8198c922a9c", "score": "0.71912587", "text": "public float getHeight() {\n return this.height;\n }", "title": "" }, { "docid": "1a06027eae8474a97eb6c8409ace94b7", "score": "0.7175944", "text": "public int getHeight() {\n return height;\n }", "title": "" }, { "docid": "1a06027eae8474a97eb6c8409ace94b7", "score": "0.7175944", "text": "public int getHeight() {\n return height;\n }", "title": "" }, { "docid": "1a06027eae8474a97eb6c8409ace94b7", "score": "0.7175944", "text": "public int getHeight() {\n return height;\n }", "title": "" }, { "docid": "1a06027eae8474a97eb6c8409ace94b7", "score": "0.7175944", "text": "public int getHeight() {\n return height;\n }", "title": "" }, { "docid": "1a06027eae8474a97eb6c8409ace94b7", "score": "0.7175944", "text": "public int getHeight() {\n return height;\n }", "title": "" }, { "docid": "1a06027eae8474a97eb6c8409ace94b7", "score": "0.7175944", "text": "public int getHeight() {\n return height;\n }", "title": "" }, { "docid": "1a06027eae8474a97eb6c8409ace94b7", "score": "0.7175944", "text": "public int getHeight() {\n return height;\n }", "title": "" }, { "docid": "1a06027eae8474a97eb6c8409ace94b7", "score": "0.7175944", "text": "public int getHeight() {\n return height;\n }", "title": "" }, { "docid": "1a06027eae8474a97eb6c8409ace94b7", "score": "0.7175944", "text": "public int getHeight() {\n return height;\n }", "title": "" }, { "docid": "1a06027eae8474a97eb6c8409ace94b7", "score": "0.7175944", "text": "public int getHeight() {\n return height;\n }", "title": "" }, { "docid": "216a6ae30aabfea740df8d5ed92ca893", "score": "0.71691304", "text": "public int getHeight() {\n\t\treturn height;\n\t}", "title": "" }, { "docid": "216a6ae30aabfea740df8d5ed92ca893", "score": "0.71691304", "text": "public int getHeight() {\n\t\treturn height;\n\t}", "title": "" }, { "docid": "216a6ae30aabfea740df8d5ed92ca893", "score": "0.71691304", "text": "public int getHeight() {\n\t\treturn height;\n\t}", "title": "" }, { "docid": "216a6ae30aabfea740df8d5ed92ca893", "score": "0.71691304", "text": "public int getHeight() {\n\t\treturn height;\n\t}", "title": "" }, { "docid": "216a6ae30aabfea740df8d5ed92ca893", "score": "0.71691304", "text": "public int getHeight() {\n\t\treturn height;\n\t}", "title": "" }, { "docid": "216a6ae30aabfea740df8d5ed92ca893", "score": "0.71691304", "text": "public int getHeight() {\n\t\treturn height;\n\t}", "title": "" }, { "docid": "216a6ae30aabfea740df8d5ed92ca893", "score": "0.71691304", "text": "public int getHeight() {\n\t\treturn height;\n\t}", "title": "" }, { "docid": "2b77e3e24ca5a8fca060902129301df0", "score": "0.7168178", "text": "public int getHeight() {\r\n\t\treturn height;\r\n\t}", "title": "" }, { "docid": "a7a3f219be058097d23ede993e0d9b51", "score": "0.71568316", "text": "public int getHeight(){\r\n\t\treturn v.getHeight();\r\n\t}", "title": "" }, { "docid": "146663936cb627af21548c9f3e0f0637", "score": "0.7155273", "text": "public int getHeight() {\r\n return height;\r\n }", "title": "" }, { "docid": "146663936cb627af21548c9f3e0f0637", "score": "0.7155273", "text": "public int getHeight() {\r\n return height;\r\n }", "title": "" }, { "docid": "146663936cb627af21548c9f3e0f0637", "score": "0.7155273", "text": "public int getHeight() {\r\n return height;\r\n }", "title": "" }, { "docid": "146663936cb627af21548c9f3e0f0637", "score": "0.7155273", "text": "public int getHeight() {\r\n return height;\r\n }", "title": "" }, { "docid": "889c1aa8a621168706adb0ee2850ff0c", "score": "0.7154873", "text": "public int getHeight()\n {\n return height;\n }", "title": "" }, { "docid": "1fbe336ef27883619d6ddefc23f5f4f8", "score": "0.7150886", "text": "public int getHeight() {\n return height;\r\n }", "title": "" }, { "docid": "e558a3d343ee9ba3c4b39b3e129af121", "score": "0.71439785", "text": "public int getHeight() {\n mParentView.measure(View.MeasureSpec.makeMeasureSpec(mParentView.getWidth(), View.MeasureSpec.EXACTLY),\n View.MeasureSpec.makeMeasureSpec(mParentView.getHeight(), View.MeasureSpec.AT_MOST));\n return mParentView.getMeasuredHeight();\n }", "title": "" }, { "docid": "a251f0f95cfe69628c44415bd3fd1657", "score": "0.71428853", "text": "public float getHeight() {\r\n return height;\r\n }", "title": "" }, { "docid": "c3692d9c015f60df61792369108a540a", "score": "0.7131212", "text": "public int getHeight() {\n\t\t\treturn getBounds().height;\n\t\t}", "title": "" }, { "docid": "541ff0f9bc8aa8723cfa95cee62e1df3", "score": "0.71308845", "text": "public int getHeight() {\n\t\treturn this.height;\n\t}", "title": "" }, { "docid": "3aa34195b6fac48916d30e315a758e35", "score": "0.71305335", "text": "@java.lang.Override\n public long getHeight() {\n return height_;\n }", "title": "" }, { "docid": "2578a416ead7706d07fc0b783af3dd49", "score": "0.71222883", "text": "public float getHeight() {\n\t\treturn height;\n\t}", "title": "" }, { "docid": "2a6f53ffa90bc9f42d58f8ee25cb3d28", "score": "0.7105598", "text": "public int getHeight()\n\t\t{\n\t\t\treturn height;\n\t\t}", "title": "" }, { "docid": "80d33f78ad2cd3151ada22703288f260", "score": "0.71030784", "text": "public double getHeight() {\n return this.height;\n }", "title": "" }, { "docid": "80d33f78ad2cd3151ada22703288f260", "score": "0.71030784", "text": "public double getHeight() {\n return this.height;\n }", "title": "" }, { "docid": "bfa4741a6992383da0a0c2dde5b48ec9", "score": "0.7100629", "text": "public Long getHeight() {\n return this.Height;\n }", "title": "" }, { "docid": "c0061299d6e03ebf1e2bc6705a50c6ae", "score": "0.70968515", "text": "public int getHeight() {\r\n\t\r\n\t\treturn height;\r\n\t}", "title": "" }, { "docid": "91ae5393ffdcbecab83791bd66d101aa", "score": "0.7082856", "text": "public int getHeight(){\r\n\t\treturn height;\r\n\t}", "title": "" }, { "docid": "6931d8274bb02db3c713974410b26e3e", "score": "0.70750904", "text": "public double getHeight() {\r\n return this.height;\r\n }", "title": "" }, { "docid": "613cb1cdbcee732cf4596c8ee31fb9f8", "score": "0.7072408", "text": "public double getHeight() {\n return height;\n }", "title": "" }, { "docid": "613cb1cdbcee732cf4596c8ee31fb9f8", "score": "0.7072408", "text": "public double getHeight() {\n return height;\n }", "title": "" }, { "docid": "613cb1cdbcee732cf4596c8ee31fb9f8", "score": "0.7072408", "text": "public double getHeight() {\n return height;\n }", "title": "" }, { "docid": "de1c9af15e8547ec3bc385bca216521d", "score": "0.7071543", "text": "public int getHeight() {\n\t\treturn myHeight;\n\t}", "title": "" }, { "docid": "556b984d5e70489af641e81841b71da5", "score": "0.7063415", "text": "public double getHeight() {\r\n return height;\r\n }", "title": "" }, { "docid": "b4f5428f0c4adc99d69b8bae9bfbc122", "score": "0.7061501", "text": "public int getHeight()\n\t\t{\n\t\t\treturn this.height;\n\t\t}", "title": "" }, { "docid": "a2cbff6d08c5ad57d2a44f8af456ab5f", "score": "0.70580465", "text": "public int getHeight()\n\t{\n\t\treturn this.height;\n\t}", "title": "" }, { "docid": "88e3c7784de374dfa8f0625b1fd27e5e", "score": "0.70491064", "text": "final public int getHeight() {\n return height;\n }", "title": "" }, { "docid": "f3518bd84c4b83489988392c43a53e99", "score": "0.7048383", "text": "public int getHeight() {\n return height_;\n }", "title": "" }, { "docid": "a7e7f53e072028c1a3659ff395bb2286", "score": "0.70415723", "text": "public float getHeight() {\n return height;\n }", "title": "" }, { "docid": "88e1ad5b45a62977538bd880151c1c26", "score": "0.70399034", "text": "public double getHeight() {\n\t\treturn height;\n\t}", "title": "" }, { "docid": "30860f26bdc421bfaea9aa413fe7b976", "score": "0.703608", "text": "public int getHeight() {\n return height;\n }", "title": "" }, { "docid": "30860f26bdc421bfaea9aa413fe7b976", "score": "0.703608", "text": "public int getHeight() {\n return height;\n }", "title": "" }, { "docid": "30860f26bdc421bfaea9aa413fe7b976", "score": "0.703608", "text": "public int getHeight() {\n return height;\n }", "title": "" }, { "docid": "3db5ebf4941f06cd739ac14a42366dc6", "score": "0.70341605", "text": "public double getHeight() {\n return this.HEIGHT;\n }", "title": "" }, { "docid": "04ba829b46d318927ac5cfd13f48a0bb", "score": "0.703266", "text": "public long getHeight() {\n\t\treturn height;\n\t}", "title": "" }, { "docid": "f57303145a75cc79cde6977f17546152", "score": "0.7027933", "text": "public static int getHeight() {\n return height;\n }", "title": "" }, { "docid": "546d16e52ee14ec9b9dca62ed19bc111", "score": "0.70253617", "text": "public int getHeight()\n\t{\n\t\treturn height;\n\t}", "title": "" }, { "docid": "546d16e52ee14ec9b9dca62ed19bc111", "score": "0.70253617", "text": "public int getHeight()\n\t{\n\t\treturn height;\n\t}", "title": "" }, { "docid": "546d16e52ee14ec9b9dca62ed19bc111", "score": "0.70253617", "text": "public int getHeight()\n\t{\n\t\treturn height;\n\t}", "title": "" }, { "docid": "bf7bd9feb8048bffc4f91e28950272f0", "score": "0.7024427", "text": "public int getHeight()\r\n\t{\r\n\t\treturn height;\r\n\t}", "title": "" }, { "docid": "bf7bd9feb8048bffc4f91e28950272f0", "score": "0.7024427", "text": "public int getHeight()\r\n\t{\r\n\t\treturn height;\r\n\t}", "title": "" }, { "docid": "1154581620af417fa699c1447bcf3233", "score": "0.7001484", "text": "public int getHeight() {\n return super.getSize().height;\n }", "title": "" }, { "docid": "2ead6bc0efbb9ba3be38ccadca126a15", "score": "0.69991285", "text": "public int getHeight()\n {\n return height;\n }", "title": "" }, { "docid": "2ead6bc0efbb9ba3be38ccadca126a15", "score": "0.69991285", "text": "public int getHeight()\n {\n return height;\n }", "title": "" }, { "docid": "2fa41c316ef403f45417ef08427954f4", "score": "0.6986456", "text": "public int getHeight()\r\n {\r\n return height;\r\n }", "title": "" }, { "docid": "368e8ce2b373c1784a1cc73eff28e307", "score": "0.69854385", "text": "public int getHeight() {\n\t\treturn getHeightHelper(this);\n\t}", "title": "" }, { "docid": "7bafce29c12030c44d99f673a0f746d3", "score": "0.6977375", "text": "@Override\n public float getHeight() {\n return height;\n }", "title": "" }, { "docid": "0d403f16a5e3129c3ead08ba04f69d35", "score": "0.69733804", "text": "public float getHeight() {\n return this.h;\n }", "title": "" }, { "docid": "d42b2de057206f79114f904b542b8ea2", "score": "0.6967421", "text": "public double getHeight(){\n\t\treturn height;\n\t}", "title": "" }, { "docid": "d42b2de057206f79114f904b542b8ea2", "score": "0.6967421", "text": "public double getHeight(){\n\t\treturn height;\n\t}", "title": "" }, { "docid": "c9697a4dca665d1a5823b0e1ffa1120c", "score": "0.6959187", "text": "@Override\n @JsxGetter\n public int getHeight() {\n return getCurrentStyle().getCalculatedHeight(false, false);\n }", "title": "" }, { "docid": "768de6ea7db531fef1fdebf001aa200e", "score": "0.69587535", "text": "public final int getHeight() {\n return h;\n }", "title": "" }, { "docid": "9dcca67116f7bd8040120325e14f0416", "score": "0.6950684", "text": "public int getHeight() {\r\n \t\treturn height;\r\n \t}", "title": "" }, { "docid": "e8d365e22988f1fa9068a9a4280d3bdb", "score": "0.6936864", "text": "public int getHeight()\r\n {\r\n return height;\r\n }", "title": "" }, { "docid": "119f42661a7410fb40d934b919587cbd", "score": "0.693216", "text": "public int height() {\n\t\treturn height;\n\t}", "title": "" }, { "docid": "119f42661a7410fb40d934b919587cbd", "score": "0.693216", "text": "public int height() {\n\t\treturn height;\n\t}", "title": "" }, { "docid": "77be118b9922e35bfc05cd4a43583e90", "score": "0.6918762", "text": "public double getHeight()\n\t{\n\t\treturn height;\n\t}", "title": "" }, { "docid": "1a677762b72a2b9bbc335d7a86406b72", "score": "0.6904734", "text": "public double getHeight()\r\n {\r\n return height;\r\n }", "title": "" }, { "docid": "15c6cd7fd026d23f80942626273d016e", "score": "0.69038856", "text": "public double getHeight()\n {\n return height;\n }", "title": "" }, { "docid": "0debd31c8020466fa6d9839a019c079a", "score": "0.68928707", "text": "public int GetHeight() {\n return m_height;\n }", "title": "" }, { "docid": "8346c349b9c236c217f8501955c8dcdb", "score": "0.6886638", "text": "public int height() {\n\t return this.height;\n }", "title": "" }, { "docid": "783ff1af00fe06125498df24f73c4798", "score": "0.68729246", "text": "public int getHeight() {\n\t\treturn h;\n\t}", "title": "" }, { "docid": "b5981a4749aa3aec905bf37c2be5e25b", "score": "0.6866989", "text": "public int getHeight ()\n {\n return (getIntegerProperty(\"Height\"));\n }", "title": "" }, { "docid": "d1e5b80c5a4e403b5f99a2c967cdc0f3", "score": "0.68644255", "text": "public int getHeight()\r\n {\r\n return getHeight(this);\r\n }", "title": "" }, { "docid": "d53f84ba7b27ff645e0be3a0f6752a99", "score": "0.6862404", "text": "@Override\n\tdouble getHeight() {\n\t\treturn height;\n\t}", "title": "" }, { "docid": "f1e71d91b4c91846c95f5622012d7551", "score": "0.68602765", "text": "public int getHeight ( ) {\r\n\t\treturn height;\r\n\t}", "title": "" }, { "docid": "cf0e50b2a5e969c33f1c55e600c42a15", "score": "0.68564165", "text": "protected int getEventsHeight() {\n return getOverheadHeight()\n + getTotalEventLines() * mEventHeight\n + getHeightOfTimeRanges();\n }", "title": "" }, { "docid": "f28465c72eea6a4de4762e6d1d6be51b", "score": "0.6837008", "text": "protected double getHeight() {\n return myHeight;\n }", "title": "" } ]
fa70b9b373e451c4f64319e9e6e30465
method to simply generate random moves
[ { "docid": "e2644156246f82fbf40acfd6a16a5fcb", "score": "0.69095916", "text": "Move selectRandomMove(Board theBoard) {\n MoveList list = theBoard.generateMoves();\r\n int r = rand(list.size());\r\n return list.get(r);\r\n }", "title": "" } ]
[ { "docid": "c793037030e12106034bb7512c771f8b", "score": "0.76178086", "text": "public void makeRandomMove() {\n\t\tRandom myRandom = new Random();\n\t\t// We can move in one of four directions (North, South, East, or West)\n\t\tint direction = myRandom.nextInt(4);\n\t\t// Get all four neighboring locations and store in an Array of Locations called\n\t\t// neighbors\n\t\t// Note: neighbors[0] is the location north of our current Location.\n\t\t// neighbors[1] is east. neighbors[2] is south. neighbors[3] is west.\n\t\tLocation[] neighbors = currentLocation.getNeighbors();\n\t\t// If we randomly chose an invalid or wall location to move in to, try again.\n\t\twhile (!Maze.isOpen(neighbors[direction])) {\n\t\t\tdirection = myRandom.nextInt(4);\n\t\t}\n\t\t// take a step in the randomly selected open direction.\n\t\ttakeStep(neighbors[direction]);\n\t}", "title": "" }, { "docid": "a8d877f5ad4ce71593dae1015cee51df", "score": "0.7612744", "text": "public List<MapCell> randomMove();", "title": "" }, { "docid": "3b547affd1985a592d7b7be38835f42b", "score": "0.7463666", "text": "private Move getRandomMove() {\n\t\tFaceName face;\n\t\tDirection dir;\n\t\tRandom r = new Random();\n\t\t\n\t\t//first generate the face moved\n\t\tint x = r.nextInt(9);\n\t\t\n\t\tif(x < 2) face = FaceName.Up;\n\t\telse if(x < 4) face = FaceName.Right;\n\t\telse if(x < 6) face = FaceName.Front;\n\t\telse if(x == 6) face = FaceName.Back;\n\t\telse if(x == 7) face = FaceName.Left;\n\t\telse face = FaceName.Down;\n\t\t\n\t\t//now generate the direction of movement\n\t\tx = r.nextInt(10);\n\t\t\n\t\tif(x < 4) dir = Direction.Clock;\n\t\telse if(x < 8) dir = Direction.Counterclock;\n\t\telse dir = Direction.Twice;\n\t\t\n\t\treturn new Move(face, dir);\n\t}", "title": "" }, { "docid": "da647b5d926a960facd242dc28cf5048", "score": "0.7202295", "text": "public int randomMove(){\n\t\treturn generator.nextInt(2 * Game.MAX_MOVE) - Game.MAX_MOVE;\n\t}", "title": "" }, { "docid": "96ff9a81ba68dbdbb76a2d9df6e6485a", "score": "0.7181495", "text": "public abstract boolean moveRandom(List<Square> moves);", "title": "" }, { "docid": "8044a52e72f0db780ed6556fc13d6ca3", "score": "0.7080131", "text": "public void random(){\n int i;\n for( i = 0; i <200; i++){\n int num;\n\n num = (int)(Math.random()*16);\n /**because the random number generator is multiplied by 16 and the game starts off\n * being in an already solved state this makes every randomized option that it gives SOLVABLE\n */\n move(num);//goes back to the method move and uses the new int as a paramter for the next positions of the buttons\n\n }\n\n }", "title": "" }, { "docid": "7d66cf6b455112ea25486a08c81e948d", "score": "0.6935275", "text": "@Test\n public void populateBoardRandom() {\n // Should generate 80% '2' and 20% '4', than apply to a random available\n // position on the board\n }", "title": "" }, { "docid": "8f703410f4c6bc8401779a2f52b08e89", "score": "0.690883", "text": "@Override\n protected int getNextMove() {\n int[] freeSquares = myGame.getFreeSquares();\n int i = random.nextInt(freeSquares.length);\n return freeSquares[i];\n }", "title": "" }, { "docid": "a0dc6c48919cf41105a7b77e78180302", "score": "0.690696", "text": "public void move() {\n List<Point> moves = board.getConnections(location);\n location = moves.get(random.nextInt(moves.size()));\n }", "title": "" }, { "docid": "4a3839674119d71923e1b24dee7f01ee", "score": "0.6803012", "text": "Move randomPlayAndLearn(Board theBoard) {\n MoveList list = theBoard.generateMoves();\r\n Learner.trimLosing(list,theBoard); //get rid of the losing moves \r\n if (list.isEmpty()) { //there are no moves left?\r\n Learner.handleLoss(); //save the losing information\r\n return selectRandomMove(theBoard);\r\n }\r\n else {\r\n int r = rand(list.size());\r\n Learner.setLastMove(theBoard, list.get(r)); //remember the last move\r\n \r\n return list.get(r);\r\n }\r\n }", "title": "" }, { "docid": "5c23996c4be4327702c5f0eff0c89e6f", "score": "0.6796265", "text": "public Move randomMove(Stack possibilities){\n int moveID = rand.nextInt(possibilities.size());\n System.out.println(\"Agent randomly selected move : \"+moveID);\n for(int i=1;i < (possibilities.size()-(moveID));i++){\n possibilities.pop();\n }\n Move selectedMove = (Move)possibilities.pop();\n return selectedMove;\n }", "title": "" }, { "docid": "6edf8e808f85bb597835413ceba845ba", "score": "0.6612815", "text": "public void generateMaze() {\r\n\t\tgenerateMaze(new Random().nextLong());\r\n\t}", "title": "" }, { "docid": "6a0882123228a587931dac4d2e80aa44", "score": "0.65918887", "text": "private Cell makeRandomMove() {\n Cell myCell = null;\n int row, col;\n\n while (myCell == null) {\n row = _RandomMove.nextInt(_RowColCells);\n col = _RandomMove.nextInt(_RowColCells);\n\n if (_TheGame.IsCellEmpty(row, col)) {\n //create a new cell to return to caller (don't care about image as this is just\n //for coordinates\n myCell = new Cell(row, col, null);\n }\n }\n\n return myCell;\n }", "title": "" }, { "docid": "460a492ff6ef76060eb18b2f978b555e", "score": "0.65835875", "text": "public void shuffle(){\n\t\tint s = size();\n\t\tfor(int i = 0; i < s; i++){\n\t\t\tint newPos = random.nextInt(s);\n\t\t\tPoint temp = get(newPos);\n\t\t\tset(newPos, get(i));\n\t\t\tset(i, temp);\n\t\t}\n\t}", "title": "" }, { "docid": "7ba80c728d289a01c2a030264a5ece02", "score": "0.65660274", "text": "private static void randMove(char[][] gameBoard, String player) {\n Random rand = new Random();\n int cpuPos = rand.nextInt(9) + 1;\n while (player1Positions.contains(cpuPos) || player2Positions.contains(cpuPos)) {\n cpuPos = rand.nextInt(9) + 1;\n }\n placePiece(gameBoard, cpuPos, player);\n }", "title": "" }, { "docid": "0708973c6e6a32c550824a3c3436653b", "score": "0.6546874", "text": "public void randomRotation() {\n for (ArrayList<GamePiece> x : this.board) {\n for (GamePiece g : x) {\n int rand = this.r.nextInt(4);\n for (int i = 0; i <= rand; i++) {\n g.clickCellRandom();\n }\n }\n }\n }", "title": "" }, { "docid": "c5cf3e6bf29b3deab4d40fcdc7dfa69c", "score": "0.65120953", "text": "public static void getRandomPieceDest()\n\t{\n\t\tRandom randomPieceDest = new Random();\n\t\trandomDest = randomPieceDest.nextInt(4) + 0;\n\t}", "title": "" }, { "docid": "ec24e47f1e3cb81f527a0d35eb8d8bce", "score": "0.6503601", "text": "public void randomRotate() {\n\t\tint randomInt = (int) (Math.random() * 4);\n\t\tfor (int i = 0; i < randomInt; i++) {\n\t\t\tboolean temp = this.getDirection()[0];\n\t\t\tnorth = this.getDirection()[1];\n\t\t\tsouth = this.getDirection()[2];\n\t\t\teast = this.getDirection()[3];\n\t\t\twest = temp;\n\t\t}\n\t}", "title": "" }, { "docid": "b4fb5993734d9f6d929a0fd12101e7d1", "score": "0.64837", "text": "public abstract void generateMaze(long seed);", "title": "" }, { "docid": "6010d9e72cf453c604afc884c7f934a8", "score": "0.64597726", "text": "public void move()\n {\n System.out.println(\"[\" + name + \"]\");\n\n Random rand = new Random();\n int[] possibleMoves = new int[]{1, 3, 5, 7};\n int numberOfWalls = 0;\n\n //wherever there is a wall, the possibleMoves[index] becomes 0\n if(tiles[playerTileId].getUp()) possibleMoves[0] = 0;\n if(tiles[playerTileId].getDown()) possibleMoves[2] = 0;\n if(tiles[playerTileId].getLeft()) possibleMoves[3] = 0;\n if(tiles[playerTileId].getRight()) possibleMoves[1] = 0;\n\n //checks if the player can move\n for(int i = 0; i < 4; i++)\n {\n if(possibleMoves[i] == 0) numberOfWalls++;\n }\n if(numberOfWalls == 4) System.out.println(\"Player \" + playerId + \" can't move!\");\n\n int randomNumber = rand.nextInt(4);\n\n //get random int of the possibleMoves array, that fulfills the requirements\n while(possibleMoves[randomNumber] == 0) randomNumber = rand.nextInt(4);\n\n //move to the chosen direction (update the correct coordinate)\n switch(possibleMoves[randomNumber])\n {\n //up\n case 1 ->\n {\n y++;\n playerTileId += board.getN();\n }\n //down\n case 5 ->\n {\n y--;\n playerTileId -= board.getN();\n }\n //left\n case 7 ->\n {\n x--;\n playerTileId -= 1;\n }\n //right\n case 3 ->\n {\n x++;\n playerTileId += 1;\n }\n }\n \n System.out.println(\"x: \" + x + \", y: \" + y);\n }", "title": "" }, { "docid": "bb7c3d7d3ddc7939530d333936e33cad", "score": "0.6458576", "text": "public static Point2D.Float getRandMove(float Fm){\n Random generator = new Random();\n generator.setSeed(121);\n double r= (Fm*sqrt(random()));\n double theta= (random()*2*PI);\n double x=r*cos(theta);\n double y=r*sin(theta);\n return new Point2D.Float( Math.round(x * 100000f) / 100000f, Math.round(y * 100000f) / 100000f);\n\n }", "title": "" }, { "docid": "65e820a2b427d4ccab288893fb530501", "score": "0.6455333", "text": "private static int findBlackKingRandomMove(ArrayList<Move> moves) {\n int rez = BlackMoveFinder.random.nextInt(moves.size());\n return moves.get(rez).moveNumber;\n }", "title": "" }, { "docid": "11b3887ca63e311759969d21d8cc451b", "score": "0.6412085", "text": "private void randMap()\r\n\t{\r\n\t\tint width=tiles.length;\r\n\t\tint height=tiles[0].length;\r\n\t\tRoom hold=null;\r\n\t\tboolean spawnSet=false;\r\n\t\tfor(int x=0;x<width;x+=Room.WIDTH)\r\n\t\t\tfor(int y=0;y<height;y+=Room.HEIGHT)\r\n\t\t\t{\r\n\t\t\t\tif(!spawnSet && ((x==width-Room.WIDTH && y==height-Room.HEIGHT) || (int)(Math.random()*(width/Room.WIDTH)*(height/Room.HEIGHT))==0))\r\n\t\t\t\t{\r\n\t\t\t\t\thold=new Room(this, Room.SPAWN, x, y);\r\n\t\t\t\t\tspawnSet=true;\r\n\t\t\t\t\tspnX=x+(Room.WIDTH-1)/2;\r\n\t\t\t\t\tspnY=y+(Room.HEIGHT-1)/2;\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t\thold=new Room(this, (int)(Math.random()*Room.NUM_TYPES)+1, x, y);\r\n\t\t\t\tfor(int xr=0;xr<Room.WIDTH;xr++)\r\n\t\t\t\t\tfor(int yr=0;yr<Room.HEIGHT;yr++)\r\n\t\t\t\t\t\ttiles[x+xr][y+yr]=hold.getLayout()[xr][yr];\r\n\t\t\t\thold=null;\r\n\t\t\t}\r\n\t\tclearDoors();\r\n\t\ttoggleDoors();\r\n\t\twarpConnect();\r\n\t\ttoggleDoors();\r\n\t}", "title": "" }, { "docid": "3e4d59c0e51a58fa98dec8749f3399d0", "score": "0.6399629", "text": "public static void makeAIMove()\n\t{\n\t\t//Check for jumps first.\n\t\tif(Move.highlightJumps(ActionClicks.REDPLAYER))\n\t\t{\n\t\t\tupdateAIPieces();\n\t\t\tgetRandomJumpSource();\n\t\t\tcheckJumps();\n\t\t}\n\t\t//If no jumps then make a random move.\n\t\t//If the move is not possible then increment the counter by 1 and try and move again.\n\t\telse\n\t\t{\n\t\t\tgetRandomPieceSource();\n\t\t\trandomSourceX = Integer.parseInt(randomSource.substring(0,1));\n\t\t\trandomSourceY = Integer.parseInt(randomSource.substring(1,2));\n\n\t\t\tif(randomDest == 0)\n\t\t\t{\n\t\t\t\tif(Move.canMove(ActionClicks.REDPLAYER, randomSourceX, randomSourceY, randomSourceX + 1, randomSourceY + 1))\n\t\t\t\t{\n\t\t\t\t\tMove.makeMove(randomSourceX, randomSourceY, randomSourceX + 1, randomSourceY + 1);\n\t\t\t\t\tHistory.addToHistory();\n\t\t\t\t\tupdateAIPieces();\n\t\t\t\t\tMove.changePlayer();\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\trandomDest++;\n\t\t\t\t\tmakeAIMove();\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\tif(randomDest == 1)\n\t\t\t{\n\t\t\t\tif(Move.canMove(ActionClicks.REDPLAYER, randomSourceX, randomSourceY, randomSourceX + 1, randomSourceY - 1))\n\t\t\t\t{\n\t\t\t\t\tMove.makeMove(randomSourceX, randomSourceY, randomSourceX + 1, randomSourceY - 1);\n\t\t\t\t\tHistory.addToHistory();\n\t\t\t\t\tupdateAIPieces();\n\t\t\t\t\tMove.changePlayer();\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\trandomDest++;\n\t\t\t\t\tmakeAIMove();\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\tif(randomDest == 2)\n\t\t\t{\n\t\t\t\tif(Move.canMove(ActionClicks.REDPLAYER, randomSourceX, randomSourceY, randomSourceX - 1, randomSourceY + 1))\n\t\t\t\t{\n\t\t\t\t\tMove.makeMove(randomSourceX, randomSourceY, randomSourceX - 1, randomSourceY + 1);\n\t\t\t\t\tHistory.addToHistory();\n\t\t\t\t\tupdateAIPieces();\n\t\t\t\t\tMove.changePlayer();\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\trandomDest++;\n\t\t\t\t\tmakeAIMove();\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\tif(randomDest == 3)\n\t\t\t{\n\t\t\t\tif(Move.canMove(ActionClicks.REDPLAYER, randomSourceX, randomSourceY, randomSourceX - 1, randomSourceY - 1))\n\t\t\t\t{\n\t\t\t\t\tMove.makeMove(randomSourceX, randomSourceY, randomSourceX - 1, randomSourceY - 1);\n\t\t\t\t\tHistory.addToHistory();\n\t\t\t\t\tupdateAIPieces();\n\t\t\t\t\tMove.changePlayer();\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\trandomDest = 0;\n\t\t\t\t\tmakeAIMove();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "062ddfe19f1f1b4e27e9bd86bee9da85", "score": "0.6386469", "text": "public void movegen(byte r1, byte r2) {\n \t\t\n \t\tboolean exoume_diples = false ;\n \t\tboolean lastRun = false;\n \t\tboolean m1Happened = false;\n \t\tboolean m2Happened = false;\n \t\tboolean wEaten = false;\n \t\tboolean bEaten = false;\n \t\tboolean iCol, ir1Col, ir2Col, ir1r2Col, idubsCol;\n \t\tbyte iNum, ir1Num, ir2Num, ir1r2Num, idubsNum;\n \t\tbyte lastCounter = 0;\n \t\t\n \n \t\t\n \t\t/* check if we have dubs */\n \t\tif(r1==r2){\n \t\t\texoume_diples = true ;\n \t\t}\n \t\t\n \t\t/* checks to see if white has eaten pills */\n \t\tif(b.pst[24].getNum()>0) {\n \t\t\twEaten = true;\n \t\t}\n \t\t\n \t\t/* checks to see if black has eaten pills */\n \t\tif(b.pst[25].getNum()>0) {\n \t\t\tbEaten = true;\n \t\t}\n \t\t\n \t\t/* self-explanatory */\n \t\tif(whiteTurn) {\n \t\t\t\n \t\t\tmoveSet.clear();\n \t\t\t\n \t\t\t//to be removed\n \t\t\t\n \t\t\tSystem.out.println(\"\\t\\t\\t\\t\\t generating moves for \"+r1+\" and \"+r2);\n \t\t\t\n \t\t\t\n \t\t\t/* check to see if we are in last run mode */\n \t\t\tfor(int i=0; i<18; i++) {\n \t\t\t\tif(b.pst[i].getCol()==false && b.pst[i].getNum() != 0) {\n \t\t\t\t\tlastCounter++;\n \t\t\t\t}\n \t\t\t}\n \t\t\tif(lastCounter==0) {\n \t\t\t\tlastRun = true;\n \t\t\t} \n \t\t\t\n \t\t\tif(wEaten) {\n \t\t\t\tif(!exoume_diples) {\n \t\t\t\t\tir1Col = b.pst[r1-1].getCol();\n \t\t\t\t\tir1Num = b.pst[r1-1].getNum();\n \t\t\t\t\tif((ir1Col==false || ir1Num==0) || (ir1Col==true) && (ir1Num==1)) {\n \t\t\t\t\t\tmoveSet.add(\"out.\"+r1);\n \t\t\t\t\t\tm1Happened = true;\n \t\t\t\t\t}\n \t\t\t\t\t\n \t\t\t\t\tir2Col = b.pst[r2-1].getCol();\n \t\t\t\t\tir2Num = b.pst[r2-1].getNum();\n \t\t\t\t\tif((ir2Col==false || ir2Num==0) || (ir2Col==true) && (ir2Num==1)) {\n \t\t\t\t\t\tmoveSet.add(\"out.\"+r2);\n \t\t\t\t\t\tm2Happened = true;\n \t\t\t\t\t}\n \t\t\t\t\t\n \t\t\t\t\tif(m1Happened || m2Happened) {\n \t\t\t\t\t\t\n \t\t\t\t\t\tir1r2Col = b.pst[r1+r2-1].getCol();\n \t\t\t\t\t\tir1r2Num = b.pst[r1+r2-1].getNum();\n \t\t\t\t\t\tif((ir1r2Col==false || ir1r2Num==0) || (ir1r2Col==true) && (ir1r2Num==1)) {\n \t\t\t\t\t\t\tmoveSet.add(\"out.\"+(r1+r2));\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t} else if(exoume_diples) {\n \t\t\t\t\t\n \t\t\t\t\tbyte counter_diplwn = 1;\n \t\t\t\t\t\n \t\t\t\t\twhile(counter_diplwn < 5 && ((counter_diplwn*r1)-1) < 24 ) {\n \t\t\t\t\t\tidubsCol = b.pst[(counter_diplwn*r1)-1].getCol();\n \t\t\t\t\t\tidubsNum = b.pst[(counter_diplwn*r1)-1].getNum();\n \t\t\t\t\t\tif((idubsCol==false || idubsNum==0) || (idubsCol==true) && (idubsNum==1)) {\n \t\t\t\t\t\t\t\n \t\t\t\t\t\t\tmoveSet.add(\"out.\"+(counter_diplwn*(r1)));\n \t\t\t\t\t\t\t\n \t\t\t\t\t\t} else {\n \t\t\t\t\t\t\tbreak;\n \t\t\t\t\t\t}\n \t\t\t\t\t\tcounter_diplwn ++ ;\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t} else {\n \t\t\t\t\n \t\t\t\t/* loop that goes through every position on the board */\n \t\t\t\tfor(int i=0; i<24; i++) {\n \t\t\t\t\t\n \t\t\t\t\t/* legal moves for non-double dice rolls */\n \t\t\t\t\tif (!exoume_diples) {\t\n \t\t\t\t\t\t\n \t\t\t\t\t\t/* gets the color and number of pills that exist in the current position(i) */\n \t\t\t\t\t\tiCol = b.pst[i].getCol();\n \t\t\t\t\t\tiNum = b.pst[i].getNum();\n \t\t\t\t\t\t\n \t\t\t\t\t\t/* if the color is white, and there are some pills in the position, continue */\n \t\t\t\t\t\tif(iCol==false && iNum!=0) {\n \t\t\t\t\t\t\t\n \t\t\t\t\t\t\t/* if the position the first dice brings us to is within the game borders, continue */\n \t\t\t\t\t\t\tif(i+r1<24) {\n \t\t\t\t\t\t\t\t\n \t\t\t\t\t\t\t\t/* gets the color and number of pills of the position we are trying to move to */\n \t\t\t\t\t\t\t\tir1Col = b.pst[i+r1].getCol();\n \t\t\t\t\t\t\t\tir1Num = b.pst[i+r1].getNum();\n \t\t\t\t\t\t\t\t\n \t\t\t\t\t\t\t\t/* checks to see if we can move there legally */\n \t\t\t\t\t\t\t\tif((ir1Col==false || ir1Num==0) || (ir1Col==true) && (ir1Num==1)) {\n \t\t\t\t\t\t\t\t\t\n \t\t\t\t\t\t\t\t\t/* we print the legal moves, and also add them to moveSet */\n \t\t\t\t\t\t\t\t\tmoveSet.add((i+1)+\".\"+(i+r1+1));\n \t\t\t\t\t\t\t\t\t/* tells us the first dice produced a legal move */\n \t\t\t\t\t\t\t\t\tm1Happened = true;\n \t\t\t\t\t\t\t\t\t\n \t\t\t\t\t\t\t\t\t/* not sure if this is useful in this method */\n \t\t\t\t\t\t\t\t\tif(ir1Col) {\n \t\t\t\t\t\t\t\t\t\tSystem.out.println(\"It will eat a black pill\");\n \t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t\n \t\t\t\t\t\t\t/* if the position we are trying to move to exceeds the game borders, and we are in last run mode, continue */\t\n \t\t\t\t\t\t\t} else if (((i+r1) >= 24) && lastRun) {\n \t\t\t\t\t\t\t\t\n \t\t\t\t\t\t\t\t/* again, prints legal moves and adds them to the set */\n \t\t\t\t\t\t\t\tmoveSet.add((i+1)+\".out\");\n \t\t\t\t\t\t\t\tm1Happened = true;\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\n \t\t\t\t\t\t\t/* same stuff for the second dice */\n \t\t\t\t\t\t\tif(i+r2<24) {\n \t\t\t\t\t\t\t\tir2Col = b.pst[i+r2].getCol();\n \t\t\t\t\t\t\t\tir2Num = b.pst[i+r2].getNum();\n \t\t\t\t\t\t\t\tif((ir2Col==false || ir2Num==0) || (ir2Col==true) && (ir2Num==1)) {\n \t\n \t\t\t\t\t\t\t\t\tmoveSet.add((i+1)+\".\"+(i+r2+1));\n \t\t\t\t\t\t\t\t\tm2Happened = true;\n \t\t\t\t\t\t\t\t\tif(ir2Col) {\n \t\t\t\t\t\t\t\t\t\tSystem.out.println(\"It will eat a black pill\");\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\t} else if (((i+r2) >= 24) && lastRun) {\n \t\n \t\t\t\t\t\t\t\tmoveSet.add((i+1)+\".out\");\n \t\t\t\t\t\t\t\tm2Happened = true;\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\n \t\t\t\t\t\t\t/* legal moves for the addition of both dice */\n \t\t\t\t\t\t\tif(i+r1+r2<24) {\t\n \t\t\t\t\t\t\t\t\n \t\t\t\t\t\t\t\t/* checks if at least one of the two dice gives us a legal move in order to continue */\n \t\t\t\t\t\t\t\tif(m1Happened || m2Happened) {\n \t\t\t\t\t\t\t\t\t\n \t\t\t\t\t\t\t\t\t/* same stuff as before */\n \t\t\t\t\t\t\t\t\tir1r2Col = b.pst[i+r1+r2].getCol();\n \t\t\t\t\t\t\t\t\tir1r2Num = b.pst[i+r1+r2].getNum();\n \t\t\t\t\t\t\t\t\tif((ir1r2Col==false || ir1r2Num==0) || (ir1r2Col==true) && (ir1r2Num==1)) {\n \t\t\t\t\t\t\t\t\t\t\n \t\t\t\t\t\t\t\t\t\tmoveSet.add((i+1)+\".\"+(i+r1+r2+1));\n \t\t\t\t\t\t\t\t\t\t//TODO: possibly remove this check entirely\n \t\t\t\t\t\t\t\t\t\tif(ir1r2Col) {\n \t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"It will eat a black pill\");\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\t\n \t\t\t\t\t\t\t/* last run check for both dice */\n \t\t\t\t\t\t\t} else if(((i+r1+r2) >=24) && lastRun) {\n \t\t\t\t\t\t\t\tif(m1Happened || m2Happened) {\n \t\n \t\t\t\t\t\t\t\t\tmoveSet.add((i+1)+\".out\");\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\t\t/* legal moves for double dice rolls */\n \t\t\t\t\telse if(exoume_diples) {\n \t\t\t\t\t\t\n \t\t\t\t\t\tbyte counter_diplwn = 1;\n \t\t\t\t\t\tiCol = b.pst[i].getCol() ;\n \t\t\t\t\t\tiNum = b.pst[i].getNum(); \n \t\t\t\t\t\tif(iCol == false && iNum != 0){\n \t\t\t\t\t\t\tif(!lastRun){\n \t\t\t\t\t\t\t\twhile(counter_diplwn < 5 && i+counter_diplwn*r1 < 24 ) {\n \t\t\t\t\t\t\t\t\tidubsCol = b.pst[i+counter_diplwn*r1].getCol();\n \t\t\t\t\t\t\t\t\tidubsNum = b.pst[i+counter_diplwn*r1].getNum();\n \t\t\t\t\t\t\t\t\tif((idubsCol==false || idubsNum==0) || (idubsCol==true) && (idubsNum==1)) {\n \t\t\t\t\t\t\t\t\t\t\n \t\t\t\t\t\t\t\t\t\tmoveSet.add((i+1)+\".\"+(i+counter_diplwn*r1+1));\n \t\t\t\t\t\t\t\t\t\t//TODO: possibly remove this check entirely\n \t\t\t\t\t\t\t\t\t\tif(idubsCol) {\n \t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"It will eat a black pill\");\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\tbreak;\n \t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t\tcounter_diplwn ++ ;\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t/* dubs last run mode legals */\n \t\t\t\t\t\t\t} else if(lastRun) {\n \t\t\t\t\t\t\t\twhile(counter_diplwn < 5) {\n \t\t\t\t\t\t\t\t\tif(i+counter_diplwn*r1 < 24) {\n \t\t\t\t\t\t\t\t\t\tidubsCol = b.pst[i+counter_diplwn*r1].getCol();\n \t\t\t\t\t\t\t\t\t\tidubsNum = b.pst[i+counter_diplwn*r1].getNum();\n \t\t\t\t\t\t\t\t\t\tif((idubsCol==false || idubsNum==0) || (idubsCol==true) && (idubsNum==1)) {\n \t\t\t\t\t\t\t\t\t\t\t\n \t\t\t\t\t\t\t\t\t\t\tmoveSet.add((i+1)+\".\"+(i+counter_diplwn*r1+1));\n \t\t\t\t\t\t\t\t\t\t\t//TODO: possibly remove this check entirely\n \t\t\t\t\t\t\t\t\t\t\tif(idubsCol) {\n \t\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"It will eat a black pill\");\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\t\n \t\t\t\t\t\t\t\t\t\t} else { break; }\n \t\t\t\t\t\t\t\t\t\t\n \t\t\t\t\t\t\t\t\t\tcounter_diplwn ++ ;\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(iNum>0) {\n \t\t\t\t\t\t\t\t\t\t\tmoveSet.add((i+1)+\".out\");\t\n \t\t\t\t\t\t\t\t\t\t\tcounter_diplwn++;\n \t\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\t\n \t\t\t\tm1Happened = false;\n \t\t\t\tm2Happened = false;\n \t\t\t\t}\n \t\t\t}\n \t\tIterator<String> it = moveSet.iterator();\n while (it.hasNext()) {\n System.out.println(it.next());\n } \n \n \t\t\n \t\t} else {\n \t\t\t\n \t\t\t moveSet.clear();\n \t\t\t\n \t\t\t//TODO: remove this \n \t\t\tSystem.out.println(\"\\t\\t\\t\\t\\t black rolled \"+r1+\" and \"+r2);\n \t\t\t\n \t\t\t/* check to see if we are in last run mode */\n \t\t\tfor(int i=23; i>6; i--) {\n \t\t\t\tif(b.pst[i].getCol()==true && b.pst[i].getNum() != 0) {\n \t\t\t\t\tlastCounter++;\n \t\t\t\t}\n \t\t\t}\n \t\t\tif(lastCounter==0) {\n \t\t\t\tlastRun = true;\n \t\t\t}\n \t\t\t\n \t\t\tif(bEaten) {\n \t\t\t\tif(!exoume_diples) {\n \t\t\t\t\tir1Col = b.pst[24-r1].getCol();\n \t\t\t\t\tir1Num = b.pst[24-r1].getNum();\n \t\t\t\t\tif((ir1Col==true || ir1Num==0) || (ir1Col==false) && (ir1Num==1)) {\n \t\t\t\t\t\tmoveSet.add(\"out.\"+(24-r1+1));\n \t\t\t\t\t\tm1Happened = true;\n \t\t\t\t\t}\n \t\t\t\t\t\n \t\t\t\t\tir2Col = b.pst[24-r2].getCol();\n \t\t\t\t\tir2Num = b.pst[24-r2].getNum();\n \t\t\t\t\tif((ir2Col==true || ir2Num==0) || (ir2Col==false) && (ir2Num==1)) {\n \t\t\t\t\t\tmoveSet.add(\"out.\"+(24-r2+1));\n \t\t\t\t\t\tm2Happened = true;\n \t\t\t\t\t}\n \t\t\t\t\t\n \t\t\t\t\tif(m1Happened || m2Happened) {\n \t\t\t\t\t\t\n \t\t\t\t\t\tir1r2Col = b.pst[24-(r1+r2)].getCol();\n \t\t\t\t\t\tir1r2Num = b.pst[24-(r1+r2)].getNum();\n \t\t\t\t\t\tif((ir1r2Col==true || ir1r2Num==0) || (ir1r2Col==false) && (ir1r2Num==1)) {\n \t\t\t\t\t\t\tmoveSet.add(\"out.\"+(24-(r1+r2+1)));\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t} else if(exoume_diples) {\n \t\t\t\t\t\n \t\t\t\t\tbyte counter_diplwn = 1;\n \t\t\t\t\t\n \t\t\t\t\twhile(counter_diplwn < 5 && (24-counter_diplwn*(r1)) >= 0 ) {\n \t\t\t\t\t\tidubsCol = b.pst[24-counter_diplwn*(r1)].getCol();\n \t\t\t\t\t\tidubsNum = b.pst[24-counter_diplwn*(r1)].getNum();\n \t\t\t\t\t\tif((idubsCol==true || idubsNum==0) || (idubsCol==false) && (idubsNum==1)) {\n \t\t\t\t\t\t\t\n \t\t\t\t\t\t\tmoveSet.add(\"out.\"+(24-counter_diplwn*(r1)));\n \t\t\t\t\t\t\t\n \t\t\t\t\t\t} else {\n \t\t\t\t\t\t\tbreak;\n \t\t\t\t\t\t}\n \t\t\t\t\t\tcounter_diplwn ++ ;\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t} else {\n \t\t\t\t\n \t\t\t\tfor(int i=23; i>0; i--) {\n \t\t\t\t\tif(!exoume_diples) {\n \t\t\t\t\t\tiCol = b.pst[i].getCol();\n \t\t\t\t\t\tiNum = b.pst[i].getNum();\n \t\t\t\t\t\tif(iCol==true && iNum!=0) {\n \t\t\t\t\t\t\tif(i-r1>=0)\t{\n \t\t\t\t\t\t\t\tir1Col = b.pst[i-r1].getCol();\n \t\t\t\t\t\t\t\tir1Num = b.pst[i-r1].getNum();\n \t\t\t\t\t\t\t\tif((ir1Col==true || ir1Num==0) || (ir1Col==false) && (ir1Num==1)) {\n \t\t\t\t\t\t\t\t\tmoveSet.add((i+1)+\".\"+(i-r1+1));\n \t\t\t\t\t\t\t\t\tm1Happened = true;\n \t\t\t\t\t\t\t\t\tif((ir1Col==false) && (ir1Num==1)) {\n \t\t\t\t\t\t\t\t\t\tSystem.out.println(\"It will eat a white pill\");\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} else if (((i-r1) < 0) && lastRun) {\n \t\t\t\t\t\t\t\tmoveSet.add((i+1)+\".out\");\n \t\t\t\t\t\t\t\tm1Happened = true;\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\n \t\t\t\t\t\t\tif(i-r2>=0) {\n \t\t\t\t\t\t\t\tir2Col = b.pst[i-r2].getCol();\n \t\t\t\t\t\t\t\tir2Num = b.pst[i-r2].getNum();\n \t\t\t\t\t\t\t\tif((ir2Col==true || ir2Num==0) || (ir2Col==false) && (ir2Num==1)) {\n \t\t\t\t\t\t\t\t\tmoveSet.add((i+1)+\".\"+(i-r2+1));\n \t\t\t\t\t\t\t\t\tm2Happened = true;\n \t\t\t\t\t\t\t\t\tif((ir2Col==false) && (ir2Num==1)) {\n \t\t\t\t\t\t\t\t\t\tSystem.out.println(\"It will eat a white pill\");\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} else if (((i+r2) < 0) && lastRun) {\n \t\t\t\t\t\t\t\tmoveSet.add((i+1)+\".out\");\n \t\t\t\t\t\t\t\tm2Happened = true;\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\n \t\t\t\t\t\t\tif(i-r1-r2>=0) {\n \t\t\t\t\t\t\t\tif(m1Happened || m2Happened) {\n \t\t\t\t\t\t\t\t\tir1r2Col = b.pst[i-r1-r2].getCol();\n \t\t\t\t\t\t\t\t\tir1r2Num = b.pst[i-r1-r2].getNum();\n \t\t\t\t\t\t\t\t\tif((ir1r2Col==true || ir1r2Num==0) || (ir1r2Col==false) && (ir1r2Num==1)) {\n \t\t\t\t\t\t\t\t\t\tmoveSet.add((i+1)+\".\"+(i-r1-r2+1));\n \t\t\t\t\t\t\t\t\t\tif((ir1r2Col==false) && (ir1r2Num==1)) {\n \t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"It will eat a white pill\");\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} else if(((i-r1-r2) < 0) && lastRun) {\n \t\t\t\t\t\t\t\tif(m1Happened || m2Happened) {\n \t\t\t\t\t\t\t\t\tmoveSet.add((i+1)+\".out\");\n \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} \n \t\t\t\t\t\n \t\t\t\t\telse if(exoume_diples) {\n \t\t\t\t\t\t\n \t\t\t\t\t\tbyte counter_diplwn = 1;\n \t\t\t\t\t\tiCol = b.pst[i].getCol() ;\n \t\t\t\t\t\tiNum = b.pst[i].getNum();\n \t\t\t\t\t\tif(iCol == true && iNum != 0){\n \t\t\t\t\t\t\tif(!lastRun) {\n \t\t\t\t\t\t\t\twhile(counter_diplwn < 5 && i-counter_diplwn*r1 >= 0 ){\n \t\t\t\t\t\t\t\t\t\n \t\t\t\t\t\t\t\t\tidubsCol = b.pst[i-counter_diplwn*r1].getCol();\n \t\t\t\t\t\t\t\t\tidubsNum = b.pst[i-counter_diplwn*r1].getNum();\n \t\t\t\t\t\t\t\t\tif((idubsCol==true || idubsNum==0) || ((idubsCol==false) && (idubsNum==1))) {\n \t\t\t\t\t\t\t\t\t\tmoveSet.add((i+1)+\".\"+((i-counter_diplwn*r1)+1));\n \t\t\t\t\t\t\t\t\t\tif(idubsCol==false && idubsNum>0) {\n \t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"It will eat a white pill\");\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\tbreak;\n \t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t\tcounter_diplwn ++ ;\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t} else if(lastRun) {\n \t\t\t\t\t\t\t\twhile(counter_diplwn < 5) {\n \t\t\t\t\t\t\t\t\tif(i+counter_diplwn*r1 >= 0) {\n \t\t\t\t\t\t\t\t\t\tidubsCol = b.pst[i-counter_diplwn*r1].getCol();\n \t\t\t\t\t\t\t\t\t\tidubsNum = b.pst[i-counter_diplwn*r1].getNum();\n \t\t\t\t\t\t\t\t\t\tif((idubsCol==true || idubsNum==0) || ((idubsCol==false) && (idubsNum==1))) {\n \t\t\t\t\t\t\t\t\t\t\tmoveSet.add((i+1)+\".\"+((i-counter_diplwn*r1)+1));\n \t\t\t\t\t\t\t\t\t\t\tif(idubsCol==false && idubsNum>0) {\n \t\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"It will eat a white pill\");\n \t\t\t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\t\t\t\tbreak;\n \t\t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t\t\tcounter_diplwn ++ ;\n \t\t\t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\t\t\tif(iNum>0) {\n \t\t\t\t\t\t\t\t\t\t\tmoveSet.add((i+1)+\".out\");\t\n \t\t\t\t\t\t\t\t\t\t\tcounter_diplwn++;\n \t\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}\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\tm1Happened = false;\n \t\t\t\tm2Happened = false;\n \t\t\t\t}\n \t\t\t}\n \t\tIterator<String> it = moveSet.iterator();\n while (it.hasNext()) {\n System.out.println(it.next());\n } \n \t\t}\n \t}", "title": "" }, { "docid": "eb36ac96ce68f08555a9895cc454f744", "score": "0.6376123", "text": "Random getRandom();", "title": "" }, { "docid": "85081f7c1eafdc9b8be2649d7895a021", "score": "0.63610595", "text": "public Direction getMove(){\n\t\tint movesBeforeRepeat = 5;\n\t\tint movesBeforeMoving = 1;\n\t\t\n\t\tmoves++;\n\t\tRandomGenerator rando = new RandomGenerator();\n\t\tif(moves > movesBeforeRepeat){\n\t\t\tmoves = 1;\n\t\t}\n\t\tif(moves == movesBeforeMoving){\n\t\t\tdirection = rando.nextInt(1,4);\n\t\t}\n\t\tif(direction == 1)return Direction.NORTH;\n\t\telse if(direction == 2)return Direction.EAST;\n\t\telse if(direction == 3)return Direction.SOUTH;\n\t\treturn Direction.WEST;\n\t}", "title": "" }, { "docid": "6ca82724b41684bea6d83f0b2bd58a56", "score": "0.63588184", "text": "public void aleatorio() {\n\t\tRandom rand = new Random();\n\t crescente();\t\n\t\tfor (int i = 0; i < n; i++) {\n swap(i, Math.abs(rand.nextInt()) % n);\n\t\t}\n\t}", "title": "" }, { "docid": "2d6af4dea87bbfeec09d96cf31811da1", "score": "0.63568985", "text": "public void walkForward() {\n int movement = random.nextInt(5) + 1;\n System.out.println(\"Enemy Robot walks forward \" + movement + \" distance.\");\n }", "title": "" }, { "docid": "c6ee1a0e23afc88d0377924ce318f939", "score": "0.6341056", "text": "@Override\n\tpublic void doTimeStep() {\n\t\tmoved = false; \n\t\tif (Critter.getRandomInt(100) % 6 == 0){\n\t\t\tCritter2 kid = new Critter2(); \n\t\t\treproduce(kid, Critter.getRandomInt(8)); \n\t\t}\n\t\telse if (Critter.getRandomInt(100) % 2 == 0){\n\t\t\twalk(direction); \n\t\t\tmoved = true; \n\t\t\tnumSteps1++; \n\t\t}\n\t\telse{\n\t\t\trun(direction); \n\t\t\tmoved = true; \n\t\t\tnumSteps1 = numSteps1 + 2; \n\t\t}\n\t\t\n\t\tdirection = getEnergy() * Critter.getRandomInt(8) % 8; \n\t\t\n\t}", "title": "" }, { "docid": "ead666a2b556859893eede69fad9cb09", "score": "0.633832", "text": "private int move() {\n // just move randomly for now\n // int myMove = generator.nextInt(numValidMoves);\n\n minimax(state, round, true, 0, Integer.MIN_VALUE, Integer.MAX_VALUE);\n \n return choice;\n }", "title": "" }, { "docid": "3f7afbecd82dd4df478c1356ed898644", "score": "0.6332662", "text": "@Override\n public void makeMove(Model model) {\n ArrayList<Integer> list = getFreeCells(model);\n Integer result = list.get(new Random().nextInt(list.size()));\n model.setSecondMove(result / 3, result % 3);\n }", "title": "" }, { "docid": "4a5cf4a8fecb13de51ecb3e0dd1d2839", "score": "0.6330532", "text": "public int randomMove() {\n\t\tint i = r.nextInt(myGame.getColumnCount());\n\t\twhile (getLowestEmptyIndex(myGame.getColumn(i)) == -1) {\n\t\t\ti = r.nextInt(myGame.getColumnCount());\n\t\t}\n\t\treturn i;\n\t}", "title": "" }, { "docid": "03a0b6fc074aab6ba395fa6f98fe25cf", "score": "0.632792", "text": "public void moveRandomly() {\n\t\tint randStep = Warehouse.getRandomStep();\n\t\tif(logger != null) {\n\t\t\tlogger.finest(\"random step for x direction is \" + randStep); \n\t\t}\n\t\tint xadd = randStep;\n\t\tint yadd = Warehouse.getRandomStep();\n\t\tint newx = xadd + workerInfo.location.x;\n\t\tif (newx < 0) {\n\t\t\tnewx=0;\n\t\t} \n\t\tif (newx > Warehouse.warehouseWidth) {\n\t\t\tnewx = Warehouse.warehouseWidth;\n\t\t}\n\t\t\n\t\tint newy = yadd + workerInfo.location.y;\n\t\tif (newy < 0) {\n\t\t\tnewy=0;\n\t\t} \n\t\tif (newy > Warehouse.warehouseHeight) {\n\t\t\tnewy = Warehouse.warehouseHeight;\n\t\t}\t\t\t\n\t\tworkerInfo.setLocation(new Point(newx,newy));\t\t\n\t}", "title": "" }, { "docid": "504c1829725b788ae3b3e94a1f865cc6", "score": "0.6326126", "text": "@Override\n public void doTimeStep() {\n walk(getRandomInt(8));\n }", "title": "" }, { "docid": "19d1867a1e330f46a95bc449000d9c42", "score": "0.6312571", "text": "public String randomDirection(){\n ArrayList<String> direction = new ArrayList<>();\n Random randomGen = new Random();\n direction.add(\"north\");\n direction.add(\"east\");\n direction.add(\"south\");\n direction.add(\"west\");\n return(direction.get(randomGen.nextInt(direction.size())));\n }", "title": "" }, { "docid": "92fef0285d70234ddaddf223c90fde16", "score": "0.6305634", "text": "private static void getRandomJumpSource()\n\t{\n\t\tRandom randomJumpSource = new Random();\n\t\trandomJump = computerJumps.get(randomJumpSource.nextInt(computerJumps.size()));\n\t\trandomSourceX = Integer.parseInt(randomJump.substring(0,1));\n\t\trandomSourceY = Integer.parseInt(randomJump.substring(1,2));\n\t\tMove.originX = randomSourceX;\n\t\tMove.originY = randomSourceY;\n\t}", "title": "" }, { "docid": "2baec3137fa384a7465b91cfb34d4219", "score": "0.63003445", "text": "private ArrayList<Integer> generateRandomRoute() {\r\n\t\tArrayList<Integer> cities = new ArrayList<Integer>();\r\n\t\tfor(int i=0; i<cityLocations.length; i++){\r\n\t\t\tcities.add(i);\r\n\t\t}\r\n\t\t\r\n\t\tCollections.shuffle(cities);\r\n\t\treturn cities;\r\n\t}", "title": "" }, { "docid": "c18a86972d34456001f13424dda5076a", "score": "0.6294104", "text": "void move() {\n posY += movY;\n if (posY <= horizon+20)movY = random(2, 4);\n if (posY >= height)movY = random(-4, -2);\n }", "title": "" }, { "docid": "e4ec580b98f92510b2aaa039cf3bd91a", "score": "0.6293133", "text": "public void generateRandomPosition() {\n float[] rotationMatrix = new float[16];\n float[] posVec = new float[4];\n\n // Matrix.setRotateM takes the angle in degrees, but Math.tan takes the angle in radians, so\n // yaw is in degrees and pitch is in radians.\n float yawDegrees = (random.nextFloat() - 0.5f) * 2.0f * MAX_YAW;\n float pitchRadians = (float) Math.toRadians((random.nextFloat() - 0.5f) * 2.0f * MAX_PITCH);\n\n // Creates a matrix for rotation by angle yawDegrees around the y axis.\n Matrix.setRotateM(rotationMatrix, 0, yawDegrees, 0.0f, 1.0f, 0.0f);\n\n // Calculates a new random position.\n float targetDistance = random.nextFloat() * (MAX_TARGET_DISTANCE - MIN_TARGET_DISTANCE) + MIN_TARGET_DISTANCE;\n\n Position temp;\n // Allows to randomly generate objects with a negative z coordinate.\n if (random.nextBoolean())\n temp = new Position(0, 0, -targetDistance);\n else\n temp = new Position(0, 0, targetDistance);\n\n Matrix.multiplyMV(posVec, 0, rotationMatrix, 0, temp.getModel(), 12);\n setPosition(posVec[0], (float) Math.tan(pitchRadians) * temp.getZCoordinate(), posVec[2]);\n }", "title": "" }, { "docid": "0074bee779ef3bcc34e0da9b492c54f3", "score": "0.6286733", "text": "public ArrayList<Move> generateMoves(Player player) {\n int playerNumber = player.getPlayerNumber();\n ArrayList<Move> moveList = new ArrayList<>();\n\n for (int i = 0; i < board.length; i++) {\n if (isValidMove(playerNumber, i)) {\n Move move = new Move(i);\n if (CORNERS.contains(move.getMove())) {\n move.setValue(500);\n } else if (AMOVES.contains(move.getMove())) {\n move.setValue(250);\n } else if (BMOVES.contains(move.getMove())) {\n move.setValue(100);\n } else if (CMOVES.contains(move.getMove())) {\n move.setValue(50);\n } else\n move.setValue(-5);\n\n moveList.add(move);\n }\n }\n\n //in case of no moves, add pass move\n if (moveList.size() > 0) {\n Collections.sort(moveList, new MoveComparator());\n Collections.reverse(moveList);\n } else {\n String pass = \"\" + player.getPlayerColor();\n Move move = new Move(pass);\n moveList.add(move);\n }\n\n player.assignPossibleMoves(moveList);\n return moveList;\n }", "title": "" }, { "docid": "e25b30f0e9235ef3cd4d129a32f9a859", "score": "0.62672293", "text": "public static Position generateRandomDelta() {\n Random r = new Random();\n int newX = (int) (Math.random() * 20) - 10;\n int newY = (int) (Math.random() * 20) - 10;\n\n return new Position(newX, newY);\n }", "title": "" }, { "docid": "713fda496778192d4086f1e55575f158", "score": "0.6236649", "text": "private int randomGen () {\n\t\tRandom random = new Random();\n\t\treturn random.nextInt(9);\n\t}", "title": "" }, { "docid": "1d21f1dba58b7ae92f370984101fe389", "score": "0.62351847", "text": "public void moveToRandomLocation ()\n {\n if (grid != null)\n {\n ArrayList <Location> l = grid.getEmptyLocations ();\n int x = (int)(Math.random () * l.size());\n setLoc (l.get(x));\n }\n }", "title": "" }, { "docid": "2140fb6148394bd1afefdba66313c8e7", "score": "0.623379", "text": "private Position makeMove(final Position position) {\n\t\tboolean moveMade = false;\n\t\tfinal int x = position.getXPosition();\n\t\tfinal int y = position.getYPosition();\n\t\tPosition newPosition = position;\n\n\t\t// Choose a random direction to attempt to travel in.\n\t\tint testDirection = (int) (Math.random() * 4);\n\n\t\t/*\n\t\t * While a move has not been made, choose a random direction to attempt to move\n\t\t * in. First check if that direction is valid, then check if the adjacent cell\n\t\t * in that direction has NOT been visited. If not, move into it. Otherwise, try\n\t\t * another random direction.\n\t\t */\n\t\twhile (!moveMade) {\n\t\t\tif (testDirection == 0) {\n\t\t\t\tif (y > 0 && !finalState[x][y - 1].getIsVisited()) {\n\t\t\t\t\tnewPosition = new Position(x, y - 1);\n\t\t\t\t\tmoveNorth(x, y);\n\t\t\t\t\tmoveMade = true;\n\t\t\t\t}\n\t\t\t} else if (testDirection == 1) {\n\t\t\t\tif (x < size - 1 && !finalState[x + 1][y].getIsVisited()) {\n\t\t\t\t\tnewPosition = new Position(x + 1, y);\n\t\t\t\t\tmoveEast(x, y);\n\t\t\t\t\tmoveMade = true;\n\t\t\t\t}\n\t\t\t} else if (testDirection == 2) {\n\t\t\t\tif (y < size - 1 && !finalState[x][y + 1].getIsVisited()) {\n\t\t\t\t\tnewPosition = new Position(x, y + 1);\n\t\t\t\t\tmoveSouth(x, y);\n\t\t\t\t\tmoveMade = true;\n\t\t\t\t}\n\t\t\t} else if (testDirection == 3) {\n\t\t\t\tif (x > 0 && !finalState[x - 1][y].getIsVisited()) {\n\t\t\t\t\tnewPosition = new Position(x - 1, y);\n\t\t\t\t\tmoveWest(x, y);\n\t\t\t\t\tmoveMade = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\ttestDirection = (int) (Math.random() * 4);\n\t\t}\n\t\treturn newPosition;\n\t}", "title": "" }, { "docid": "7e0f03918200c15f357e0872f829e242", "score": "0.62325776", "text": "public void randomizePuzzle() {\n\t\t\n\t}", "title": "" }, { "docid": "a04fbcaa8cc22fcba1e02b7aba73792e", "score": "0.6228398", "text": "void machineTurn() {\n /**\n * checking if a spot is empty so the machine doesn't take a spot that's already taken\n */\n\n // Don't know if the move is random or not.\n wasLastMachineMoveRandom = false;\n\n // Win if you can\n if (playToWinOrBlock(\"X\")) {\n return;\n }\n\n // Block if you can\n if (playToWinOrBlock(\"O\")) {\n return;\n }\n\n int machineRow;\n int machineCol;\n\n /**\n * creating the list of moves the computer can chose from\n */\n int[][] emptyMoves = new int[9][2];\n\n\n /**\n * setting the counter to 0\n */\n int counter = 0;\n\n // Randonmly pick a square\n for (int i = 0; i < _placeholders.length; i++) {\n /**\n * going through I and J to check all values\n */\n for (int j = 0; j < _placeholders.length; j++) {\n /**\n * checks if they're empty\n */\n if (_placeholders[i][j].getPlayerToken() == BLANK) {\n /**\n * if they're empty sets it as a value to be able to be taken by the random picker\n */\n emptyMoves[counter][0] = i;\n emptyMoves[counter][1] = j;\n /**\n * counter to know where put the empty column and row position\n */\n counter = counter + 1;\n }\n }\n }\n /**\n * picks a random empty spot to place an X\n */\n int randomNumber = _rand.nextInt(counter);\n wasLastMachineMoveRandom = true;\n /**\n * sets the empty row value for the machines move\n */\n machineRow = emptyMoves[randomNumber][0];\n /**\n * sets the empty column value for the machines move\n */\n machineCol = emptyMoves[randomNumber][1];\n\n /**\n * adds the X to the board\n */\n _placeholders[machineRow][machineCol].setPlayerToken(\"X\");\n }", "title": "" }, { "docid": "c99d77564d981bc8b0b5dc8e20b1afff", "score": "0.62239945", "text": "public void generate() {\n List<Integer> visited = new ArrayList<>();\n //paths available to choose\n List<Vector2I> toVisit = new ArrayList<>();\n\n //this is where it starts\n visited.add(0);\n //initial paths that are possible to perform\n toVisit.add(new Vector2I(0, 1));\n //width here because it is 2d array represented as 1d array, so the width is actually just moving to row 1;\n toVisit.add(new Vector2I(0, WIDTH));\n\n while (toVisit.size() > 0) {\n int randomIndex = rand.nextInt(toVisit.size());\n Vector2I nextPath = toVisit.remove(randomIndex);\n\n //check if the tile was visited before (this will help avoid circle)\n if (visited.contains(nextPath.end))\n continue;\n\n //ensure the path goes from up to bottom and from left to right\n if (nextPath.start > nextPath.end)\n maze.add(new Vector2I(nextPath.end, nextPath.start));\n else\n maze.add(nextPath);\n\n visited.add(nextPath.end);\n\n int above = nextPath.end - WIDTH;\n if (above > 0 && !visited.contains(above))\n toVisit.add(new Vector2I(nextPath.end, above));\n\n //module here to check if we are not off the maze, this is 1d array, so it will go to previous row actually\n int left = nextPath.end - 1;\n if (left % WIDTH != WIDTH - 1 && !visited.contains(left))\n toVisit.add(new Vector2I(nextPath.end, left));\n\n int right = nextPath.end + 1;\n if (right % WIDTH != 0 && !visited.contains(right))\n toVisit.add(new Vector2I(nextPath.end, right));\n\n //width*heigth is the last index +1\n int below = nextPath.end + WIDTH;\n if (below < WIDTH * HEIGHT && !visited.contains(below))\n toVisit.add(new Vector2I(nextPath.end, below));\n }\n transformToMatrix();\n }", "title": "" }, { "docid": "f5792a1e0841dfc6bbad2278c60e9923", "score": "0.621878", "text": "private Cell randomStepZ(Cell pos) {\n ArrayList<Integer> steps = getCells(pos, 0);\n if (steps.size() == 0) return null;\n steps.add(0);\n int stepDir = random.nextInt(steps.size());\n steps.forEach(System.out::print);\n System.out.println(\"->\" + steps.get(stepDir));\n if (steps.get(stepDir) == 0) return null;\n return pos.and(new Cell(steps.get(stepDir)));\n }", "title": "" }, { "docid": "8d05a15706d3b74f1174d9ec3eab1914", "score": "0.6206174", "text": "public synchronized int RandomChoice(){\n long seed = System.nanoTime();\n Collections.shuffle(choices, new Random(seed));\n int valueOfMove=choices.get(0);\n choices.remove(0);\n return valueOfMove;\n }", "title": "" }, { "docid": "9bf2d88145dd0aeb93efac132220ebe2", "score": "0.6202777", "text": "private void generateNewRandom() {\r\n \t\tfloat newRandom;\r\n \t\tdo {\r\n \t\t\tnewRandom = Simulation.random.nextFloat();\r\n \t\t} while (this.random == newRandom);\r\n \t\tthis.random = newRandom;\r\n \t}", "title": "" }, { "docid": "e84a4d3b2e610b9b7ac5e7a3626de800", "score": "0.6197327", "text": "private List<Point> getRandomizedAvailablePositions() {\r\n\t\tList<Point> positions = new LinkedList<Point>();\r\n\t\tfor (int i = 0; i < width; i++) {\r\n\t\t\tfor (int j = 0; j < height; j++) {\r\n\t\t\t\tif (board[i][j] == null) {\r\n\t\t\t\t\tpositions.add(new Point(i, j));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tCollections.shuffle(positions);\r\n\t\treturn positions;\r\n\t}", "title": "" }, { "docid": "b76e26de652ab2e6aed89ee514f52995", "score": "0.61966103", "text": "public void addRandomTile() {\n int count = 0;\n\n for(int i = 0; i < GRID_SIZE; i++){\n for(int j = 0; j < GRID_SIZE; j++){\n if(this.grid[i][j] == 0){\n // need to keep track of 0 locations, but can't use\n // regular numbers (1,2,3) as labels.\n // so flip 0's to negative number (-1, -2, -3 ...) and identify them\n // later when setting random location\n this.grid[i][j] = -count;\n count++;\n }\n }\n }\n\n // no open spot - exit\n if(count == 0){\n return;\n }\n\n int location = random.nextInt(count);\n // flip location value also bc the 0 locations are labeled with\n // negative numbers\n location = -location;\n int value = random.nextInt(100);\n\n // flipped - go down the row first\n for(int k = 0; k < GRID_SIZE; k++){\n for(int l = 0; l < GRID_SIZE; l++){ //\n if(this.grid[l][k] == location){\n if(value < TWO_PROBABILITY){\n this.grid[l][k] = 2;\n }else{\n this.grid[l][k] = 4;\n }\n }\n }\n }\n\n // change the negative numbers back to zero\n // to restore original values\n for(int row = 0; row < GRID_SIZE; row++){\n for(int col = 0; col < GRID_SIZE; col++){\n if(this.grid[row][col] < 0)\n this.grid[row][col] = 0;\n }\n } \n\n }", "title": "" }, { "docid": "5c664e20347292e025b8510e2ca80acc", "score": "0.6179007", "text": "public static void randomMove(MovableObject objectToMove){\r\n\t\tint direction = generateRandomNumberWithinSpan(1, 4);\r\n\t\tobjectToMove.move(direction);\r\n\t}", "title": "" }, { "docid": "a23c6cb5e7d40d009434aa6ce8dc72d8", "score": "0.6159203", "text": "public Tile populateBoard() {\n\t\t// Using a compass rose to define directions\n\t\t// N is 0\n\t\t// E is 1\n\t\t// S is 2\n\t\t// W is 3\n\n\t\tplaceFixedTiles();\n\n\t\t// these variables hold the amount of tiles left over\n\t\tint _twoDirectionLeft = 14;\n\t\tint _oppositeDirectionLeft = 13;\n\t\tint _threeDirectionLeft = 7;\n\n\t\t//3 types of tile and corresponding code\n\t\tint _twoDir = 0;\n\t\tint _oppDir = 1;\n\t\tint _threeDir = 2;\n\t\t\n\t\t//current index points to next tile to add\n\t\tint currIndex = 0;\n\t\t\n\t\tint[] randomSequence = getRandomsequence(_twoDir, _twoDirectionLeft, _oppDir, _oppositeDirectionLeft, _threeDir, _threeDirectionLeft);\n\t\t\n\t\t// fills every (empty) place in the array with a different, randomized\n\t\t// tile\n\t\tfor (int i = 0; i < length; i++) {\n\t\t\tfor (int j = 0; j < length; j++) {\n\n\t\t\t\tif (_gameBoard[i][j] == null) {\n\n\t\t\t\t\t// System.out.println(\"2\");\n\t\t\t\t\t// generates an array of ints that are unique so they can be\n\t\t\t\t\t// used to set the directions\n\t\t\t\t\tint[] XYZ = generateXuniqueNumber(3, 4);\n\n\t\t\t\t\tint x = XYZ[0];\n\t\t\t\t\tint y = XYZ[1];\n\t\t\t\t\tint z = XYZ[2];\n\n\t\t\t\t\t// while there is an empty place in the gameBoard, make a\n\t\t\t\t\t// random tile, check if that tile is free to be used, and\n\t\t\t\t\t// fill the spot in the array\n\n\t\t\t\t\tif (randomSequence[currIndex] == _twoDir) {\n\n\t\t\t\t\t\t// the current object is assigned the value of a\n\t\t\t\t\t\t// randomized twoDirectionTile\n\t\t\t\t\t\tthis.assigntile(i, j, new TwoDirectionTile(x));\n\t\t\t\t\t\n\t\t\t\t\t} else if (randomSequence[currIndex] == _oppDir) {\n\n\t\t\t\t\t\t// the current object is assigned the value of a\n\t\t\t\t\t\t// randomized OppositeDirectionTile\n\t\t\t\t\t\tthis.assigntile(i, j, new OppositeDirectionTile(x));\n\t\t\t\t\t}\n\t\t\t\t\telse if (randomSequence[currIndex] == _threeDir) {\n\n\t\t\t\t\t\t// the current object is assigned the value of a\n\t\t\t\t\t\t// randomized ThreeDirectionTile\n\t\t\t\t\t\tthis.assigntile(i, j, new ThreeDirectionTile(x, y, z));\n\t\t\t\t\t}\n\t\t\t\t\tcurrIndex++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// This free tile will be passed off to the player to begin the game\n\t\tif (_twoDirectionLeft == 1) {\n\n\t\t\t_freetile = new TwoDirectionTile(0);\n\t\t} else if (_oppositeDirectionLeft == 1) {\n\n\t\t\t_freetile = new OppositeDirectionTile(0);\n\t\t} else if (_threeDirectionLeft == 1) {\n\n\t\t\t_freetile = new ThreeDirectionTile(0, 1, 2);\n\t\t}\n\t\t// resets the tiles locations\n\t\tfor (int i = 0; i < _gameBoard.length; i++) {\n\t\t\tfor (int j = 0; j < _gameBoard.length; j++) {\n\t\t\t\t_gameBoard[i][j].setCoordinates(i, j);\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\t//set Token on the Board\n\t\taddTokensToBoard();\n\t\t\n\t\treturn _freetile;\n\n\t}", "title": "" }, { "docid": "c70633ee7bf0c67dea9738e972a20b82", "score": "0.615484", "text": "public void shuffle() {\n int n = md.nbTiles;\n\n while (n > 1) {\n int r = RANDOM.nextInt(n--);\n int tmp = md.tiles[r];\n md.tiles[r] = md.tiles[n];\n md.tiles[n] = tmp;\n }\n }", "title": "" }, { "docid": "7d9b000fa90872d666869032a7c7b43a", "score": "0.6149972", "text": "private int makeBogoMove(BoardMechanics bm) {\r\n\t\tint move = (int) Math.round(Math.random()* 6);\r\n\t\twhile (bm.getBoard().get(0).get(move).getValue() != 0) move = (int) Math.round(Math.random()* 6);\r\n\t\treturn move;\r\n\t}", "title": "" }, { "docid": "2f2b2c1d484d7464298cc50ee4ae6956", "score": "0.6149641", "text": "public Maze generate(int row, int column);", "title": "" }, { "docid": "c15099eeba419f9e1fb130f5a850754f", "score": "0.6119761", "text": "public void generateBoard()\n {\n System.out.println(\"generate maze\");\n setSizeOfMaze();\n\n System.out.println(width);\n System.out.println(height);\n\n System.out.println(\"fill maze\");\n fillMaze(); // fill up the maze and prints maze , maze get full of blank space \" \" empty\".\n\n\n\n System.out.println(\"make rand start pos\");\n //makeStartPositionForPathbuilding();\n System.out.println(\"Print start position\");\n //printMaze();\n //System.out.println(\"find RandDirection :\" + randomDirection);\n\n\n //ChoosePathAndBuild();// chose a path randomly and try to make a path.\n printMaze();\n //makeEntranceInBorder();\n //makeExitInBorder();\n //insertMinotaur();\n\n\n System.out.println(\"END*******************************************************************************\");\n\n printMaze();\n //Minotaur minotaur = new Minotaur(maze,startMinotaurRow,startMinotaurColumn);\n //Gui gui= new Gui(game,minotaur,maze,totalHeight,totalWidth,startMinotaurRow,startMinotaurColumn);\n //minotaur.passInstance(gui);\n //gui.passInstance(game);\n //gui.createFrame();\n\n\n // solve the maze:\n\n //SolveMaze solveMaze = new SolveMaze(maze,randomRowForEntrance);\n\n }", "title": "" }, { "docid": "d249f31f1d85011315ff3e0dca07aa27", "score": "0.6117085", "text": "public int getRandom();", "title": "" }, { "docid": "baffbaef73812622911e89ee740b580b", "score": "0.61139214", "text": "public static int getRandomUtility(State state, int agentColor) {\n int whitescore = 0;\n int blackscore = 0;\n Random random = new Random();\n int x = random.nextInt(900) + 100;\n for (int i = 0; i < state.m_boardSize; i++) {\n for (int j = 0; j < state.m_boardSize; j++) {\n if (state.m_board[i][j] != Utils.empty) {\n if (state.m_board[i][j] >= Utils.wPawn && state.m_board[i][j] <= Utils.wKing) { //if the piece in that position is white\n if (state.m_board[i][j] == Utils.wPawn) {\n whitescore += random.nextInt(900) + 100;\n }\n if (state.m_board[i][j] == Utils.wRook) {\n whitescore += random.nextInt(900) + 100;\n }\n if (state.m_board[i][j] == Utils.wBishop) {\n whitescore += random.nextInt(900) + 100;\n }\n if (state.m_board[i][j] == Utils.wKnight) {\n whitescore += random.nextInt(900) + 100;\n }\n if (state.m_board[i][j] == Utils.wQueen) {\n whitescore += random.nextInt(900) + 100;\n }\n if (state.m_board[i][j] == Utils.wKing) {\n whitescore += random.nextInt(900) + 100;\n }\n } else { //if piece is black\n if (state.m_board[i][j] == Utils.bPawn) {\n blackscore += random.nextInt(900) + 100;\n }\n if (state.m_board[i][j] == Utils.bRook) {\n blackscore += random.nextInt(900) + 100;\n }\n if (state.m_board[i][j] == Utils.bBishop) {\n blackscore += random.nextInt(900) + 100;\n }\n if (state.m_board[i][j] == Utils.bKnight) {\n blackscore += random.nextInt(900) + 100;\n }\n if (state.m_board[i][j] == Utils.bQueen) {\n blackscore += random.nextInt(900) + 100;\n }\n if (state.m_board[i][j] == Utils.bKing) {\n blackscore += random.nextInt(900) + 100;;\n }\n }\n }\n }\n }\n if(agentColor == 0){\n return whitescore-blackscore;\n }else{\n return blackscore-whitescore;\n }\n \n \n }", "title": "" }, { "docid": "7777c84df1642a72285249390095cbe7", "score": "0.6105925", "text": "public int getNextRandomDirection() {\r\n\t\tboolean emptyTile[] = getEmptyTile();\r\n\t\tboolean find = false;\r\n\t\tint temp = -1;\r\n\r\n\t\twhile(!find) {\r\n\t\t\ttemp = random.nextInt(4);\r\n\t\t\tif (emptyTile[temp]) {\r\n\t\t\t\tif (findNextDirection == temp) {\r\n\t\t\t\t\tfindNextDirection = -1;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tfind = true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tfindNextDirection = temp;\r\n\t\treturn temp;\r\n\t}", "title": "" }, { "docid": "6b732c6ce78c53c0bd7f068ef754cf29", "score": "0.6101131", "text": "public void generateRandom() {\n Random rgen = new Random();\n \n //1D array of ints 1 to n*n\n int[] nvalues = new int[(n*n)];\n for (int i=0; i<nvalues.length; i++) {\n nvalues[i]=(i+1);\n }\n \n // Shuffle the 1d array\n for (int i=0; i<nvalues.length; i++) {\n int randomPosition = rgen.nextInt(nvalues.length);\n int temp = nvalues[i];\n nvalues[i] = nvalues[randomPosition];\n nvalues[randomPosition] = temp;\n \n }\n \n // build magic square\n build2dX(nvalues);\n /**\n for (int y=0; y<n; y++) {\n for (int x=0; x<n; x++) {\n ms[y][x]=nvalues[(y*n)+x]; \n\n }\n } ***/\n \n // calc initial fitness\n calculateFitness();\n \n \n \n }", "title": "" }, { "docid": "3dea57e994297e246b36d0dfcc0d7494", "score": "0.60977113", "text": "@Override\r\n\tpublic Boolean action() {\n\t\tRandom random = new Random();\r\n\t\tthis.move(Animal.getMovement().get(random.nextInt(4)), 2);\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "cc0715982cdf802d8f65a5ca25eb70e4", "score": "0.60948294", "text": "public IJ randomSoldierMove()\r\n\t{\r\n\t\tIJ randomSoldierMove,randomSoldierNextMove;\r\n\t\taddOptimalRedSoldierToList();\r\n\t\tif(!_listIJOptimelRedSoldierMove.isEmpty())\r\n\t\t{\r\n\t\t\trandomSoldierMove = randomIJFromList(_listIJOptimelRedSoldierMove);\r\n\t\t\tSystem.out.println(\"randomSoldierMove: \"+randomSoldierMove);\r\n\t\t\treturn randomSoldierMove;\r\n\t\t}\r\n\t\treturn new IJ(0,0);\r\n\r\n\t}", "title": "" }, { "docid": "f4b70ff878c09cd695e9e9a4387a3994", "score": "0.6086889", "text": "public void randomSpeedDirection() {\n final float minSpeed = 0.1F;\n xIncrement = mCurXspeed = Math.max( minSpeed, (float)Math.random() * mSpeed);\n if (Math.random() < 0.5)\n xIncrement *= -1.F;\n yIncrement = mCurYspeed = Math.max( minSpeed, (float)Math.random() * mSpeed);\n if (Math.random() < 0.5)\n yIncrement *= -1.F;\n\n mInvalidate = true;\n }", "title": "" }, { "docid": "a53763e964ac36604ceef164bb55b346", "score": "0.60868806", "text": "static Direction randomDirection() {\n return new Direction((float)Math.random() * 2 * (float)Math.PI);\n }", "title": "" }, { "docid": "d18d690c1e73950fda47c76e3eda3f33", "score": "0.6082689", "text": "private void placeRandomTile() {\n int index;\n do {\n index = random.nextInt(openTiles.size() - 1);\n } while (index % 2 != 0);\n board[openTiles.get(index)][openTiles.get(index + 1)] = 2;\n }", "title": "" }, { "docid": "a6318765a71661659ec862adab211718", "score": "0.60813075", "text": "public void generate() {\n clear();\n // Get random cell to start\n int randCellX = random.nextInt(width);\n int randCellY = random.nextInt(height);\n MazeCell randCell = this.mazeMatrix[randCellY][randCellX];\n\n // Generate a list of adjacent cells\n RandomList<MazeCell> adjList = new RandomList<>();\n\n adjList.add(randCell);\n\n // While we have stuff in the adjacency list\n while (!adjList.isEmpty()) {\n // Get a random cell and remove it\n MazeCell cell = adjList.popRandom();\n\n // TODO: THIS IS HOW I FIXED IT\n // If this cell has already been visited, ignore it\n if (cell.isVisited()) {\n continue;\n }\n\n // Visit the cell\n cell.visit();\n\n // Get its neighboring/adjacent cells\n ArrayList<MazeCell> neighbors = getNeighbors(cell);\n\n // Randomly go through the list of neighbors until you find one that is already visited\n Iterator<MazeCell> iter = new RandomListIterator<>(neighbors);\n while (iter.hasNext()) {\n MazeCell adjCell = iter.next();\n\n // Then, remove the wall between the current cell and its already visited neighbor\n if (adjCell.isVisited()) {\n removeWall(cell, adjCell);\n break;\n }\n }\n\n // Add the neighboring cells that haven't been visited to the adjacency list\n for (MazeCell adjCell : neighbors) {\n if (!adjCell.isVisited()) {\n adjList.add(adjCell);\n }\n }\n }\n }", "title": "" }, { "docid": "8e593b62700219dab9d2e2a2e522ffe0", "score": "0.6071582", "text": "public int rand() {\n if (n == 0) {\n return addd;\n }\n\n int x = random();\n\n // undo transformations\n return x * fak + addd;\n }", "title": "" }, { "docid": "02e612cfe086716bd4ca9c797ab07d20", "score": "0.60690767", "text": "private Move generateMove(ArrayList<Move> moves) {\n\t\tMove m = null;\n\t\t\n\t\tboolean valid = false;\n\t\t\n\t\tif(moves.size() == 0) return getRandomMove(); //the first move can be anything\n\t\twhile(!valid) {\n\t\t\tm = getRandomMove();\n\t\t\t\n\t\t\t//check whether the previous move is the same face\n\t\t\tif(moves.get(moves.size() - 1).getFace() == m.getFace()) continue;\n\t\t\t\n\t\t\t//now check whether a move since the last time this move was made has \"moved\" this move's face\n\t\t\telse {\n\t\t\t\tvalid = true; //this will become false if the loop finds something\n\t\t\t\t\n\t\t\t\t//loop through and find the last move that involved\n\t\t\t\tfor(int i = moves.size()-1; i >= 0; i--) {\n\t\t\t\t\t//if you find a face that's the same, the move isn't valid\n\t\t\t\t\tif(moves.get(i).getFace() == m.getFace()) {\n\t\t\t\t\t\tvalid = false;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//if the face opposite of the current face is moved,\n\t\t\t\t\t//the current face isn't changed, so keep searching back\n\t\t\t\t\telse if(moves.get(i).getFace() == m.getFace().opposite()) continue;\n\t\t\t\t\t\n\t\t\t\t\t//otherwise, a move is found that mutates\n\t\t\t\t\telse {\n\t\t\t\t\t\tvalid = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//if the loop reaches the first element of the input,\n\t\t\t\t//then it will return valid as true, which is fine\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn m;\n\t}", "title": "" }, { "docid": "a77f2f01b0a4cfd49215f6dca89a04cf", "score": "0.6068118", "text": "private int[] generateMoves(final GameStateModule state)\n {\n int i;\n int[] moves = new int[state.getWidth()]; //maybe this should be Integer instead of int?\n\n for(i = 0; i < state.getWidth(); ++i)\n {\n if(state.canMakeMove(i))\n {\n moves[i] = i; //can play column i\n }\n else\n {\n moves[i] = -1; //mark move as invalid.\n }\n }\n\n return moves;\n }", "title": "" }, { "docid": "a3a988bb2da7577b7ea4f0d8bc643242", "score": "0.6066196", "text": "@Override\r\n\tpublic int move(Scanner scanner) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tint cell;\r\n\t\t\r\n\t\tdo {\r\n\t\t\tcell = (int)(Math.random()*10);\r\n\t\t} while (!validateMove(cell));\r\n\t\t\r\n\t\treturn cell;\r\n\t}", "title": "" }, { "docid": "5e024ea8893561f6a5df0f538ff0ca8d", "score": "0.6065701", "text": "@Override\n public void update()\n {\n int randomPiece = random.nextInt( Assets.pieces.length );\n player = Assets.pieces[ randomPiece ];\n\n // set random rotation\n int randomRoation = random.nextInt( player.getCoordCount() );\n for( int i = 0; i < randomRoation; i++ )\n {\n player.rotateLeft();\n }\n\n // try to spawn at random position\n boolean gameOver = !generateSpawnPosition();\n\n if( gameOver )\n currentState = loosingState;\n else\n currentState = fallingState;\n }", "title": "" }, { "docid": "0532b170c0598e2aa531be88e7b3011d", "score": "0.6061759", "text": "public abstract SkeletonInterpolator randomWalk();", "title": "" }, { "docid": "90bb8286212899f811f234686785fcf0", "score": "0.60590875", "text": "@Override\r\n\tpublic void swim() {\r\n\t\tdouble move = Math.random() * MOVEMENT_PER_SWIM * 2 - MOVEMENT_PER_SWIM;\r\n\t\tplaceCrab(this.x + move, this.y);\r\n\t}", "title": "" }, { "docid": "017fb6ea1adcd7065e542cdf981a52d1", "score": "0.6054801", "text": "public void takeStep() {\r\n\t\tint randNum = generator.nextInt(NUM_DIRECTIONS);\r\n\t\tswitch (randNum) {\r\n\t\t\tcase EAST: this.curLoc = this.curLoc.translate(this.theStepSize, 0); break;\r\n\t\t\tcase NORTH: this.curLoc = this.curLoc.translate(0, this.theStepSize); break;\r\n\t\t\tcase WEST: this.curLoc = this.curLoc.translate(-this.theStepSize, 0); break;\r\n\t\t\tcase SOUTH: this.curLoc = this.curLoc.translate(0, -this.theStepSize); break;\r\n\t\t} \t\r\n }", "title": "" }, { "docid": "95ad3d7a91b8b9f860f8ad932960a754", "score": "0.604617", "text": "public void geraAgente(){\n int x,y; \n do{\n y = rand.nextInt(n);\n x = rand.nextInt(n);\n }while(!isLivre(x, y) || !temSaida(x, y));\n agente.setX(x);\n agente.setY(y);\n System.out.println(\"Agente x \"+x+\" y \"+y);\n \n }", "title": "" }, { "docid": "2398a3d5d6d2d00f840bb0e998dfbc60", "score": "0.604501", "text": "private ArrayList<Integer> generateTwoOptTour(ArrayList<Integer> route){\r\n\t\tRandom generator = new Random(); \r\n\t\tint i = generator.nextInt(route.size());\r\n\t\tint u = generator.nextInt(route.size());\r\n\t\t\r\n\t\twhile(i == u){\r\n\t\t\tu = generator.nextInt(route.size());\r\n\t\t}\r\n\t\t\r\n\t\tCollections.swap(route, i, u);\r\n\t\treturn route;\r\n\t}", "title": "" }, { "docid": "8d43089c343d5973df39f832ca223f86", "score": "0.6044135", "text": "public void buildRandomSquare() {\n\n HashMap<String, Position> map = squarePoints();\n int y1 = map.get(\"p1\").y;\n int x1 = map.get(\"p1\").x;\n int y2 = map.get(\"p2\").y;\n int x2 = map.get(\"p2\").x;\n int y3 = map.get(\"p3\").y;\n int x3 = map.get(\"p3\").x;\n int y4 = map.get(\"p4\").y;\n int x4 = map.get(\"p4\").x;\n\n for (int i = y1; i < y2; i++) {\n world[x1][i] = Tileset.WALL;\n }\n for (int j = x2; j < x3; j++) {\n world[j][y2] = Tileset.WALL;\n }\n for (int k = y3; k > y4; k--) {\n world[x4][k] = Tileset.WALL;\n }\n\n for (int l = x4; l > x1; l--) {\n world[l][y4] = Tileset.WALL;\n }\n unconnected.add(Integer.toString(numOfSq));\n layFloor(new Position(x1, y1), new Position(x3, y3));\n\n }", "title": "" }, { "docid": "c20359bb166b43a17b64896390af6fcd", "score": "0.6033536", "text": "@Override\r\n\tpublic Move generateMove(Cell player_cell, Memory memory, Set<Cell> nearby_cells, Set<Pherome> nearby_pheromes) {\n\t\tif(memory instanceof DummyMemory||memory instanceof ExplorerMemory){\r\n\t\t\t//System.out.println(\"The cell was not defender last round. Decide the direction.\");\r\n\t\t\t\r\n\t\t\t//Choose a good move\r\n\t\t\tPoint dir=decideNextDirection(player_cell,nearby_cells,nearby_pheromes);\r\n\t\t\tint circleMem=translateDirToMem(dir);\r\n\t\t\t\r\n\t\t\t//Initialize the memory again with this direction\r\n\t\t\tDefenderMemory dm=DefenderMemory.getNewObject();\r\n\t\t\tdm.initialize(circleMem);\r\n\t\t\tMemory nextMem = generateNextMoveMemory(dm);\r\n\t\t\t\r\n\t\t\t//Go to the direction\r\n\t\t\tPoint nextStep=generateNextDirection(player_cell,memory,nearby_cells,nearby_pheromes);\r\n\t\t\t\r\n\t\t\treturn new Move(dir,nextMem.getByte());\r\n\t\t}\r\n\t\t//If we were circling last round, keep circling this round\r\n\t\telse if(memory instanceof DefenderMemory){\r\n\t\t\tPoint nextStep=generateNextDirection(player_cell,memory,nearby_cells,nearby_pheromes);\r\n\t\t\tMemory nextMem = generateNextMoveMemory(memory);\r\n\t\t\t\r\n\t\t\treturn new Move(nextStep,nextMem.getByte());\r\n\t\t}else{\r\n\t\t\t//System.out.println(\"Error: Unmanipulable memory in RangerMemory \"+memory.getByte());\r\n\t\t\treturn new Move(new Point(0,0),new DummyMemory().getByte());\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "a8c175239454497307bc4f6c834abac2", "score": "0.60325944", "text": "public Vector2D getRandomDiagonalMovement() {\n return diagonalMovements[random.nextInt(diagonalMovements.length)];\n\n }", "title": "" }, { "docid": "3c96146866c3cb38fa974792a0d73a7a", "score": "0.60214776", "text": "public Board twin() {\n\t\tint length = blocks.length;\r\n\t\tint[] copy = blocks.clone();\r\n\t\t// System.arraycopy(blocks, 0, copy, 0, length*length);\r\n\t\tint randomI1 = StdRandom.uniform(length);\r\n\t\tint randomI2 = StdRandom.uniform(length);\r\n\t\twhile (copy[randomI1] == 0) {\r\n\t\t\trandomI1 = StdRandom.uniform(length);\r\n\t\t}\r\n\t\twhile (copy[randomI2] == 0\r\n\t\t\t\t|| randomI1 == randomI2) {\r\n\t\t\trandomI2 = StdRandom.uniform(length);\r\n\t\t}\r\n\t\tswap(copy, randomI1, randomI2);\r\n\t\treturn new Board(copy);\r\n\t}", "title": "" }, { "docid": "c7556aef03ef46055951c6c03f7da46d", "score": "0.6016675", "text": "public void roll() {\n \t\tbyte dice1 = (byte)((Math.random()*6)+1);\n \t\tbyte dice2 = (byte)((Math.random()*6)+1);\n \t movegen(dice1, dice2);\n \t if(dice1!=dice2)\n \t \tmove((byte)(dice1+dice2),dice1,dice2);\n \t else \n \t \tmove((byte)(dice1*4),dice1,dice2);\n \t}", "title": "" }, { "docid": "07c3c9f4e11efe3acc8b9a401ca9cab7", "score": "0.6002881", "text": "public Tile[][] generateRandomMap() {\n populate();\n\n Point lastPoint = new Point(1 + (int) (Math.random()*7 + 1), 0);\n ArrayList<Point> possibleTiles = new ArrayList<Point>();\n Point holder = null;\n Point secHolder = null;\n int tilesAdded = 0;\n do {\n RiverTile river;\n river = new RiverTile();\n tiles[lastPoint.y][lastPoint.x] = river;\n tilesAdded++;\n possibleTiles.clear();\n for (Point surr: getSurroundings(lastPoint)) {\n if (isValid(tiles, surr)) {\n possibleTiles.add(surr);\n }\n }\n if (possibleTiles.size() == 0) {\n break;\n }\n\n if (holder != null) {\n secHolder = new Point(holder.x, holder.y);\n }\n\n //last tile\n holder = new Point(lastPoint.x, lastPoint.y);\n\n //newer tile\n lastPoint = possibleTiles.get((int)(Math.random() * possibleTiles.size()));\n\n String image = getRiverImage(secHolder, holder, lastPoint);\n river.setRiverType(image);\n\n System.out.println(tiles[holder.y][holder.x].getImage());\n\n } while (lastPoint.getY() < 4 || tilesAdded <= 5 || tilesAdded >= 10);\n tiles[2][4] = new TownTile();\n return tiles;\n }", "title": "" }, { "docid": "223719acf3aef3ba92119e30f8166758", "score": "0.5999848", "text": "public abstract long getRandom(int x, int y);", "title": "" }, { "docid": "379da1eb5c539279da12c95c0503157d", "score": "0.59972304", "text": "private static void getRandomPieceSource()\n\t{\n\t\tRandom randomPieceSource = new Random();\n\t\trandomSource = computerPieces.get(randomPieceSource.nextInt(computerPieces.size()));\n\t}", "title": "" }, { "docid": "b3e6a4c7ab215212e933e3f352fceee7", "score": "0.59889656", "text": "protected void placeAllShips(){\n int randCell; //declare random cell as an integer\n SecureRandom dir = new SecureRandom(); //random number generator\n shipSizeSum = 0; //initial sum of sizes is zero\n for(int m = 0; m < 6; m++){ //make the following 6 times, therefore 6 ships on the grid\n direction = dir.nextInt(2); //get a random direction, either 0 or 1\n SHIP_LENGTH = 2 + rnd.nextInt(3); //get a random ships size from 2 to 4\n shipSizeSum = shipSizeSum + SHIP_LENGTH;// calculate sum of grid cells containing a ship\n do { //go through the loop at least once\n randCell = rnd.nextInt(49); //choose a cell between 0 and 49\n }while(!checkOverlap(randCell, direction, SHIP_LENGTH)); //make sure there is no overlapping\n\n //if the random direction is right\n if(direction == DIRECTION_RIGHT){\n for(int i = randCell; i < randCell+SHIP_LENGTH; i++){\n grid[i] = SHIP; //place a ship directly next to each other as many times as the ship length is\n }\n }\n\n //if the direction is down\n else if (direction == DIRECTION_DOWN){\n for(int i = randCell; i < randCell+(10*(SHIP_LENGTH-1))+SHIP_LENGTH; i+=10){\n grid[i] = SHIP; //place a ship every 10 cells (since we have 10 cells per row) for as long as the ship length is\n }\n }\n }\n }", "title": "" }, { "docid": "ff2c73ed416ea2dc81da5542a9911f5d", "score": "0.5980997", "text": "private int[] randomPos() {\n\t\tint[] pin= {randomizer.nextInt(height),randomizer.nextInt(width)};\n\t\treturn pin;\n\t}", "title": "" }, { "docid": "d42085e7c8cf309db176f534ad96e7a0", "score": "0.597985", "text": "public void gamePlay(){\n a1 = getRandoma();\n b1 = getRandomb();\n }", "title": "" }, { "docid": "406a68518dc06bf3b2633b5e2768bb16", "score": "0.5975616", "text": "public void generatePlayers() {\n Random random = new Random();\n\n var playerOne = new Player(\"Player 1\");\n var playerTwo = new Player(\"Player 2\");\n\n this.setplayerOne(playerOne);\n this.setplayerTwo(playerTwo);\n\n if (random.nextBoolean()) {\n this.currentPlayer = this.playerOne;\n } else {\n this.currentPlayer = this.playerTwo;\n }\n }", "title": "" }, { "docid": "5ae542a6021e7fd8fac559b5500ca5e5", "score": "0.59749717", "text": "private Sprite generateRandomSprite(){{\n\n int i = random.nextInt(100);\n if (i < 8){\n return new Sprite(27);\n }\n else {\n return new Sprite(26);\n }}\n }", "title": "" }, { "docid": "57f975925c8a78e742762d780e47565d", "score": "0.5974936", "text": "public void doRandomWalk() {\n // intialise the random number generator:\n Random randGenerator = new Random();\n\n Vector tempX = new Vector(dimension); // temporary position vector for the random walk\n\n // INITIALISE THE STARTING POSITION\n if (startStrategy == START_POSITION_XMIN) {\n for (int i = 0; i < dimension; i++)\n tempX.setReal(i, xMin);\n }\n else if (startStrategy == START_POSITION_RANDOM) {\n // assign tempX a random value within the bounds of the problem (starting position):\n for (int i = 0; i < dimension; i++)\n tempX.setReal(i, randGenerator.nextDouble() * (xMax - xMin) + xMin);\n }\n else if (startStrategy == START_POSITION_SMALL) {\n double xRange = xMax - xMin;\n double smallRange = percSmall * xRange;\n for (int i = 0; i < dimension; i++)\n tempX.setReal(i, randGenerator.nextDouble() * smallRange + xMin);\n }\n else if (startStrategy == START_POSITION_SPECIFIED) {\n // use the walkSpecifier object to determine where to start:\n\n // for every dimension, generate a random number in the starting zone hypervolume:\n for (int i = 0; i < dimension; i++) {\n // generate a random offset within 50% of the range:\n double offset = randGenerator.nextDouble() * ((xMax - xMin) * 0.5);\n if (walkSpecifier.isSet(i))\n tempX.setReal(i, xMax - offset);\n else\n tempX.setReal(i, xMin + offset);\n }\n // generate a random dimension to move the starting position to the edge of the search space:\n int randDim = (int) Math.floor(randGenerator.nextDouble() * dimension);\n if (walkSpecifier.isSet(randDim)) // this means that this dimension should be at maximum\n tempX.setReal(randDim, xMax);\n else\n tempX.setReal(randDim, xMin);\n }\n\n // DO THE WALK:\n int count = 0; // for counting the number of steps taken\n double smallRandomChange, newValue = 0;\n while (count < numPoints) {\n\n if (walkType == WALKTYPE_RANDOM_MANHATTAN) {\n // save the previous point:\n for (int i = 0; i < dimension; i++) {\n points[count].setReal(i, tempX.getReal(i));\n }\n // generate a random dimension within the dimension of the problem:\n int randDim = (int) Math.floor(randGenerator.nextDouble() * dimension);\n int inc = 1;\n // if(count%2 == 0) {\n if (walkSpecifier.isSet(randDim))\n inc = -1;\n else\n inc = 1;\n newValue = tempX.getReal(randDim) + (inc * stepSize); // decrease or increase by stepSize in the random dimension\n if ((newValue > xMax) || (newValue < xMin)) { // outside the bounds of the problem\n newValue = tempX.getReal(randDim) - (inc * stepSize);\n walkSpecifier.flipBit(randDim); // change the direction\t\t \n }\n // }\n /* else {\n\t\tint randBit = (int)Math.floor(randGenerator.nextDouble()*2);\n\t\tif (randBit == 0) inc = 1;\n\t\telse inc = -1;\n\t\tnewValue = tempX.getReal(randDim) + (inc * stepSize);\n\t\tif ((newValue > xMax) || (newValue < xMin)) \n\t\t newValue = tempX.getReal(randDim) - (inc * stepSize);\n\t } */\n tempX.setReal(randDim, newValue); // change tempX to new value\n }\n\n else if (walkType == WALKTYPE_RANDOM_PROGRESSIVE) {\n for (int i = 0; i < dimension; i++) {\n // save the previous component:\n points[count].setReal(i, tempX.getReal(i));\n\n // for all steps: progress in set direction\n smallRandomChange = (randGenerator.nextDouble() * stepSize); // a positive value\n if (walkSpecifier.isSet(i))\n smallRandomChange = -smallRandomChange;\n newValue = tempX.getReal(i) + smallRandomChange;\n if (newValue < xMin) { // out of bounds -- too small:\n // calculate by how much it goes over the boundary:\n double diff = xMin - newValue;\n newValue = xMin + diff; // bounce back from the boundary\n walkSpecifier.flipBit(i); // change direction bias for that dimension\n }\n else if (newValue > xMax) { // out of bounds -- too big:\n double diff = newValue - xMax;\n newValue = xMax - diff; // bounce back from the boundary\n walkSpecifier.flipBit(i); // change direction bias for that dimension\n }\n // previous strategy: change direction in both cases (too big or too small):\n // newValue = tempX.getReal(i) - smallRandomChange;\n // walkSpecifier.flipBit(i); // change the direction\n tempX.setReal(i, newValue);\n }\n }\n\n else { // WALKTYPE_RANDOM_*\n for (int i = 0; i < dimension; i++) { // for every part of the vector\n points[count].setReal(i, tempX.getReal(i)); // save the last position\n\n if (walkType == WALKTYPE_RANDOM) {\n boolean outsideBounds = true; // assume out of bounds to start\n while (outsideBounds) { // while the new value is outside the bounds \t\t\t\n // generate a small random step in either direction\n smallRandomChange = (randGenerator.nextDouble() * stepSize * 2) - stepSize;\n newValue = tempX.getReal(i) + smallRandomChange; // change tempXi by small random amount\n if ((newValue >= xMin) && (newValue <= xMax)) { // check if new value would be in bounds\n outsideBounds = false;\n tempX.setReal(i, newValue); // update tempX with the step\n } // end of if\t\t \n } // end of while outside bounds\n }\n else { // WALKTYPE_RANDOM_INCREASING or WALKTYPE_RANDOM_INCREASING_NOWRAP \n smallRandomChange = (randGenerator.nextDouble() * stepSize); // a positive value\n newValue = tempX.getReal(i) + smallRandomChange; // change tempXi by small positive amount\n if ((newValue > xMax) || (newValue < xMin)) { // outside the bounds\n if (walkType == WALKTYPE_RANDOM_INCREASING_NOWRAP) {\n // save the rest of the previous position:\n for (int j = i + 1; j < dimension; j++)\n points[count].setReal(j, tempX.getReal(j));\n stopWalk(count); // stop the walk at the current number of steps\n return;\n }\n else {\n newValue = xMin; // wrap to minimum value\n }\n }\n tempX.setReal(i, newValue); // change tempXi to new value\n }\n } // end of for each part of the vector\n }\n count++;\n }\n }", "title": "" }, { "docid": "8a5cfd488124c3825093e5baf089a0db", "score": "0.59746504", "text": "private TwoTuple getFirstMove() {\n\t\tint stX, stY;\n\t\tstX = (int) (Math.random() * this.colDimension) + 1;\n\t\tstY = (int) (Math.random() * this.rowDimension) + 1;\n\t\treturn new TwoTuple(stX, stY);\n\t}", "title": "" }, { "docid": "c71b5ee728e44b9eb8da5ace9c0be479", "score": "0.5967686", "text": "public static void soldierRandom() throws GameActionException {\n int action = (rc.getRobot().getID()*rand.nextInt(1001) + 500)%1001;\n // construct PASTR\n if (action < 4) {\n Soldier.constructPastr();\n }\n // attack nearby cunts\n else if (action < 600) {\n //Attacks.attackRandom();\n Attacks.interceptAndAttack();\n }\n // move in a random direction\n else if (action < 700) {\n Soldier.randomMove();\n }\n // suicide bomb enemy PASTRs\n else if (action < 700) {\n Soldier.suicideBomb();\n }\n // move away from the friendly HQ\n else if (action < (800)) {\n Soldier.moveAwayFromHQ();\n }\n //Sneak towards the enemy\n else {\n Soldier.sneakTowardEnemyHQ();\n }\n }", "title": "" }, { "docid": "0d769604faef086ec1c81165912a50ff", "score": "0.59662414", "text": "int random(int roof){\n return (rand.nextInt(roof)); // Uses random class and rood to return randomized number\n }", "title": "" }, { "docid": "8b03d9faaa5d042d29c3114506564bdd", "score": "0.5964866", "text": "public String randomAction(){\n\t\tif(generator.nextDouble() < AI_MOVE_PROBABILITY)\n\t\t\treturn \"move\";\n\t\telse\n\t\t\treturn \"shoot\";\n\t}", "title": "" }, { "docid": "7a3b2225ce8c603ed6dadc3d1b9fd8e2", "score": "0.59618425", "text": "public void faceRandomDirection() {\n turn(Greenfoot.getRandomNumber(360));\n }", "title": "" }, { "docid": "6e18fd18c5d0790ac6cb6550cca8c191", "score": "0.5955642", "text": "public boolean makeMove(JumbleMove move)\n {\n\tint a = move.getMoveA();\n\tint b = move.getMoveB();\n\t\n\tif(isPossibleMove(move))\n\t{\n\t String[] random = StringManipulator.stringToArray(m_state);\n\t \n\t String hold = random[a];\n\t random[a] = random[b];\n\t random[b] = hold;\n\t \n\t m_state = StringManipulator.arrayToString(random);\n\t \n\t return true;\n\t}\n\telse\n\t return false;\n }", "title": "" }, { "docid": "079da5bc4535d86033d2f295b6e5c9de", "score": "0.59532803", "text": "void generate();", "title": "" } ]
741c7da3044b3bb9100548992d3e8f8f
Create an JsonConsumer from a path
[ { "docid": "e1b3ae7d2f945e12d9c4079818163f48", "score": "0.8514753", "text": "public static JsonConsumer newConsumer(Path path) throws Exception {\n return JsonStreamSpec.with(path).consumer();\n }", "title": "" } ]
[ { "docid": "c96913915bc178fae77a7a7bac50e089", "score": "0.8605594", "text": "public static JsonConsumer newConsumer(String path) throws Exception {\n return JsonStreamSpec.with(path).consumer();\n }", "title": "" }, { "docid": "6fcd6155d31fbbb4dfcb3c4641dccb1f", "score": "0.5602896", "text": "public static JsonConsumer newConsumerAndClose(InputStream inputStream) throws Exception {\n return JsonStreamSpec.with(inputStream).closeOnFinish().consumer();\n }", "title": "" }, { "docid": "c0c4b70a2ff82033565097bed155e1c3", "score": "0.54441684", "text": "public static JsonStream stream(String path) throws Exception {\n return JsonStreamSpec.with(path).stream();\n }", "title": "" }, { "docid": "cabe3324029acce2537079cd17ed69d9", "score": "0.5366503", "text": "public static JsonStream stream(Path path) throws Exception {\n return JsonStreamSpec.with(path).stream();\n }", "title": "" }, { "docid": "1789108e2e13c8fd7b62406f5cc9cfbc", "score": "0.52780175", "text": "public static JsonConsumer newConsumerAndClose(JsonParser xmlStreamReader) throws Exception {\n return JsonStreamSpec.with(xmlStreamReader).closeOnFinish().consumer();\n }", "title": "" }, { "docid": "2a19b0c0dc19a3eb101963b81f4f37e8", "score": "0.51260215", "text": "public static void main(String[] args) throws JsonProcessingException {\n Consumer consumer = new Consumer();\n\n }", "title": "" }, { "docid": "cbcae58cbd73186e8bf0ff8b830ad48d", "score": "0.50747323", "text": "protected abstract RemoteFileConsumer<T> buildConsumer(Processor processor);", "title": "" }, { "docid": "ed7e53eb10114b32a66a4c254dc9ba2c", "score": "0.47944266", "text": "@Test\n public void testConsumerRoute() throws Exception {\n RouteBuilder simpleRoute = new RouteBuilder() {\n @Override\n public void configure() {\n from(\"direct:getFile\")\n .pollEnrich(\"file://src/main/resources/inputs/?include=input.*\\\\.txt&noop=true&idempotent=true&initialDelay=0\")\n .convertBodyTo(String.class);\n }\n };\n\n CamelContext camel = new DefaultCamelContext();\n camel.disableJMX();\n camel.setStreamCaching(true);\n camel.addRoutes(simpleRoute);\n camel.start();\n\n String result = camel.createFluentProducerTemplate().to(\"direct:getFile\").request(String.class);\n assertEquals(\"Hello World\\n\", result);\n\n camel.stop();\n }", "title": "" }, { "docid": "fa08a51caa9c8ac9eb4a6ae3adc0433c", "score": "0.47468257", "text": "public static JSONObject getJsonFromFile(String path) {\n JSONObject json = new JSONObject();\n\n try {\n String s = new String(Files.readAllBytes(Paths.get(JsonDeserializer.class.getResource(path).toURI())));\n json = new JSONObject(s);\n } catch (URISyntaxException | IOException e) {\n e.printStackTrace();\n }\n\n return json;\n }", "title": "" }, { "docid": "51d62b0421e89e43145f8cbdd31290b6", "score": "0.4651697", "text": "JsonReader() {\n scopes = new int[32];\n pathNames = new String[32];\n pathIndices = new int[32];\n }", "title": "" }, { "docid": "4cbc8910241f70759826c72cb8b921cc", "score": "0.46379888", "text": "public CamelRemoteFileBindingModel setConsumer(CamelRemoteFileConsumerBindingModel consumer);", "title": "" }, { "docid": "3c9533fbdabd780c7206809be906b271", "score": "0.46328765", "text": "@Override\n public Consumer createConsumer(Processor processor) throws Exception {\n InputStream is = getResourceAsInputStream();\n String text = IOHelper.loadText(is);\n\n // split each line\n Stream<String> stream = Arrays.stream(text.split(\"\\n\"));\n\n // sort goals scored on minutes\n stream = stream.sorted((a, b) -> goalTime(a).compareTo(goalTime(b)));\n\n // store goals in a list\n List<String> goals = stream.collect(Collectors.toList());\n\n // create consumer with the goals\n return new GoalConsumer(this, processor, goals);\n }", "title": "" }, { "docid": "0d018d900bc2ba86facb6ad60055ec56", "score": "0.46162918", "text": "Consumer getFileConsumer()\n {\n return builderFactory.getComponentBuilder().fileConsumer()\n .setCronExpression(cronExpression)\n .setScheduledJobGroupName(scheduledGroupName)\n .setScheduledJobName(scheduledName)\n .setFilenames(sourceFilenames)\n .setLogMatchedFilenames(true)\n .setConfiguredResourceId(fileConsumerConfiguredResourceId)\n .build();\n }", "title": "" }, { "docid": "9b5bea070dac6565d789295c5601f94e", "score": "0.45708606", "text": "void consume(AbstractConsumerManager consumerManager);", "title": "" }, { "docid": "825b1a040294e28bd247e6e3711cc098", "score": "0.45640013", "text": "private JacksonJsonProvider createJsonProvider() {\n\t\tfinal JacksonJsonProvider jsonProvider = new JacksonJsonProvider();\n\t\tjsonProvider.setMapper(new ObjectMapper());\n\t\treturn jsonProvider;\n\t}", "title": "" }, { "docid": "e3c21560aee92a3fbccaeaff6e176b73", "score": "0.44860306", "text": "public Api getApi(String path);", "title": "" }, { "docid": "874741e6598296cfce3b20edbe3c256e", "score": "0.4485891", "text": "public interface JsonRecipe {\n void write(JsonGenerator generator) throws IOException;\n}", "title": "" }, { "docid": "bded3a2b88396696d409d7dd91e4fc2f", "score": "0.4468971", "text": "public void addConsumer(StringConsumer sc) {\n\t\t\n\t}", "title": "" }, { "docid": "028c7b92384f58bc9f3b14a69b7ce867", "score": "0.4457344", "text": "public void createResource(String path);", "title": "" }, { "docid": "4135bb5e8c7e18c9665015d1674940f9", "score": "0.44510487", "text": "private DocumentContext getJsonStringFromFile(String filePath) {\n String json = null;\n if (filePath != null && !filePath.isEmpty()) {\n // Relative path or /server/ means it's a classpath resource\n if (!filePath.startsWith(\"/\") || filePath.startsWith(\"/server/\")) {\n String path = filePath.startsWith(\"/server/\") ? filePath.substring(\"/server/\".length()) : filePath;\n LOGGER.debug(\"Looking for classpath resource : \" + path);\n JsonNode node = getJson(path);\n if (node != null) {\n json = node.toString();\n LOGGER.debug(\"Class path json : \" + json);\n }\n } else {\n // absolute path\n LOGGER.debug(\"Looking for file: \" + filePath);\n try {\n json = new String(Files.readAllBytes(Paths.get(filePath)));\n } catch (Exception e) {\n LOGGER.debug(\"Unexpected exception reading JSON string from file: \" + e);\n }\n }\n }\n if (json == null) {\n return JsonPath.parse(\"{}\"); //parse an empty object and set that for the context if the file cannot be loaded for some reason\n }\n return JsonPath.parse(json);\n }", "title": "" }, { "docid": "497058f887b5b3ad757ee772059edd39", "score": "0.4394805", "text": "public void loadFromJson(String alias, String path, String schema) throws IOException, ParseException {\n\n override(alias, String.format(\n \"%s = LOAD '%s' using JsonLoader('%s');\",\n alias,\n path,\n schema\n // TODO debug why it doesn't work\n // sb.toString()\n ));\n }", "title": "" }, { "docid": "e2570b33af1ccebb28a5c3f679815605", "score": "0.43755084", "text": "private Consumer<Long, String> createConsumer() {\n final Properties props = getProperties();\n final Consumer<Long, String> consumer = new KafkaConsumer<>(props);\n\n String topicName = this.connectionBean.getEndpoint().getAddress().split(\"/\")[1];\n consumer.subscribe(Collections.singletonList(topicName));\n return consumer;\n }", "title": "" }, { "docid": "2e1493fb0aca147b0424494b3437bd59", "score": "0.43695945", "text": "void resolver_init(String path);", "title": "" }, { "docid": "376ef331bf9feb1a44950a760cf43863", "score": "0.4368315", "text": "@Override\n public SystemConsumer getConsumer(String systemName, Config config, MetricsRegistry registry) {\n if (useCachedConsumer && mockConsumer != null) {\n return mockConsumer;\n }\n\n String jobName = config.get(\"job.name\");\n String jobId = config.get(\"job.id\");\n if (jobName == null) {\n throw new ConfigException(\"Must define job.name.\");\n }\n if (jobId == null) {\n jobId = \"1\";\n }\n String streamName = CoordinatorStreamUtil.getCoordinatorStreamName(jobName, jobId);\n SystemStreamPartition systemStreamPartition = new SystemStreamPartition(systemName, streamName, new Partition(0));\n mockConsumer = new MockCoordinatorStreamWrappedConsumer(systemStreamPartition, config);\n mockConsumer.register(systemStreamPartition, \"0\");\n return mockConsumer;\n }", "title": "" }, { "docid": "d0a24f2d888c3c08ce4e3fd5654aa8d1", "score": "0.43479154", "text": "public TwitterStreamFactory(String configTreePath) {\n this(configTreePath, null);\n }", "title": "" }, { "docid": "56453fb1ddafd73940d68ba642d9fa88", "score": "0.43440112", "text": "@GET\n @Produces(MediaType.APPLICATION_JSON)\n @Path(\"/{id}\")\n public ConsumerType getConsumerType(@PathParam(\"id\") String id) {\n ConsumerType toReturn = consumerTypeCurator.find(id);\n\n if (toReturn != null) {\n return toReturn;\n }\n\n throw new NotFoundException(\n i18n.tr(\"ConsumerType with id '\" + id + \"' could not be found.\"));\n }", "title": "" }, { "docid": "be1e745a99d94059cf0e46f5e9bf6ccc", "score": "0.43118382", "text": "public interface UnderFileSystemFactory {\n\n /**\n * Gets whether this factory supports the given path and thus whether calling the\n * {@link #create(String, Object)} can succeed for this path\n *\n * @param path\n * File path\n * @param tachyonConf\n * Tachyon configuration\n * @return True if the path is supported, false otherwise\n */\n public boolean supportsPath(String path, TachyonConf tachyonConf);\n\n /**\n * Creates a client for accessing the given path\n *\n * @param path\n * File path\n * @param tachyonConf\n * Tachyon configuration\n * @param conf\n * Optional configuration object for the UFS, may be null\n * @return Client\n * @throws IllegalArgumentException\n * Thrown if this factory does not support clients for the given path or if the\n * configuration provided is insufficient to create a client\n */\n public UnderFileSystem create(String path, TachyonConf tachyonConf, Object conf);\n}", "title": "" }, { "docid": "dac67b0b49f956a60ae9325d37a45a4b", "score": "0.4306105", "text": "public ClassReader(String path) {\n\t\tcleanPath = PathWorker.getCleanPath(path);\n\t\tclassName = PathWorker.getFileWithoutExt(path);\n\t}", "title": "" }, { "docid": "f33a28765c282618df2e613cb6a8d2b0", "score": "0.4298659", "text": "UriFromPath createUriFromPath();", "title": "" }, { "docid": "2d9f0f61fd8b1a96a32d3590a19a917a", "score": "0.42985564", "text": "@ResponseStatus(value = HttpStatus.OK)\n\t@RequestMapping(value = \"{customerGuid}/consumer/{consumerGuid}\", produces = {\"application/json\"}, method = RequestMethod.GET)\n\tpublic Consumer getConsumer(\n\t\t\t@PathVariable(value = \"customerGuid\") final String customerGuid,\n\t\t\t@PathVariable(value = \"consumerGuid\") final String consumerGuid)\n\t{\n\tLOG.info(\"Entering method getConsumer\");\n\t\n\t// check if incoming customer and consumer guid are valid or not\n\tisValidGuid(customerGuid, \"Customer\");\n\tisValidGuid(consumerGuid, \"Consumer\");\n\t\n\tOptional<ConsumerDTO> lookupResult = consumerCassandraRepo.findById(consumerGuid);\n\t\n\tif(!lookupResult.isPresent()) {\n\t\tLOG.error(\"Consumer not found for customer guid {} and consumer guid {}\", customerGuid, consumerGuid);\n\t\tthrow new ResourceNotFoundException(\"Consumer doesn't exist\");\n\t}\n\t\n\tConsumerDTO consumerDtoResponse = lookupResult.get();\n\t\n\tConsumer consumerResponse = consumerMapper.dtoToConsumer(consumerDtoResponse);\n\t\n\tLOG.info(\"Exiting method getConsumer\");\n\n\treturn consumerResponse;\n\t}", "title": "" }, { "docid": "5be58535c514b2e7da06e8a0c59b43d0", "score": "0.42874578", "text": "public JsonReader(String source) {\r\n this.source = source;\r\n }", "title": "" }, { "docid": "271793b5efec6ce3aae2c2df508d2344", "score": "0.42786697", "text": "public static JSONObject getJSONFromFile(String path) {\n\t\tString jsonString = getFileContents(path);\n\t\treturn new JSONObject(jsonString);\n\t}", "title": "" }, { "docid": "86d7e365db8b044d00a7b74d63f0bc66", "score": "0.42747366", "text": "JsonObjectReader createJsonObjectReader(Reader reader, long initialPosition, int maxObjectLen, Mode mode, Class<?> objectClass) throws IOException;", "title": "" }, { "docid": "a9074c0e89c53643d7cab95d1df7ed97", "score": "0.42711365", "text": "void consume(AbstractConsumerManager consumerManager, ITraceContext trace);", "title": "" }, { "docid": "37c6e7efb37b3e9038ece85efbb32e84", "score": "0.42512733", "text": "private Consumer() {\n }", "title": "" }, { "docid": "e5ab918d80b0a64aa2b4cdccd121a508", "score": "0.42480856", "text": "void handle(Builder<? extends InputStream> builder, Resource config) throws IOException;", "title": "" }, { "docid": "874d670c7c94a15dee42a9220e33ca53", "score": "0.42479023", "text": "@Override\n\tString buildRefreshCommand(IPath path) throws JsonGenerationException, JsonMappingException, IOException,\n\t\t\tURISyntaxException {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "e544a12f82868777ef44aebf464a7c11", "score": "0.4234852", "text": "@GetMapping(value = {\"/consumeByTime\"})\n public List<String> consumer2ByTime(@RequestParam(\"count\") Integer count,\n @RequestParam(\"startTime\") @DateTimeFormat(iso = ISO.DATE_TIME) ZonedDateTime startTime) {\n\n if (count == null) {\n count = CONSUMER_1_DEFAULT_MESSAGE_FETCH_COUNT;\n }\n\n if (startTime == null) {\n /* get the current time and subtract some the default hour value */\n startTime = ZonedDateTime.now().minusHours(DEFAULT_ZONE_TIME_OFFSET);\n }\n\n try {\n\n /* create a JetStream instance */\n JetStream js = connection.jetStream();\n\n /* configure the consumer to use <i>DeliverPolicy.ByStartTime</i>.*/\n ConsumerConfiguration consumerConfig = ConsumerConfiguration.builder()\n .durable(CONSUME_BY_TIME)\n .deliverPolicy(DeliverPolicy.ByStartTime)\n .startTime(startTime)\n .replayPolicy(ReplayPolicy.Instant)\n .build();\n\n /* create the pull options */\n PullSubscribeOptions pullOptions = PullSubscribeOptions.builder()\n .configuration(consumerConfig)\n .build();\n\n /* create the subscription */\n JetStreamSubscription subscription = js.subscribe(CONSUMER_SUBJECT_1, pullOptions);\n\n /* retrieve <i>count</i> message. */\n List<Message> messages = subscription.fetch(count, Duration.ofSeconds(SUBSCRIBER_FETCH_TIMEOUT_IN_SECONDS));\n\n /* return a list of formatted messages. */\n return formatMessages(messages);\n\n } catch (IOException | JetStreamApiException ex) {\n Logger.getLogger(RESTController.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n return null;\n }", "title": "" }, { "docid": "5bafcd26411464ab0cd7e8368c4156ad", "score": "0.42313275", "text": "public JsonReader(String source) {\n this.source = source;\n }", "title": "" }, { "docid": "5bafcd26411464ab0cd7e8368c4156ad", "score": "0.42313275", "text": "public JsonReader(String source) {\n this.source = source;\n }", "title": "" }, { "docid": "5bafcd26411464ab0cd7e8368c4156ad", "score": "0.42313275", "text": "public JsonReader(String source) {\n this.source = source;\n }", "title": "" }, { "docid": "5bafcd26411464ab0cd7e8368c4156ad", "score": "0.42313275", "text": "public JsonReader(String source) {\n this.source = source;\n }", "title": "" }, { "docid": "059ad6a967e1cf103a0c43723cae5022", "score": "0.42298228", "text": "@ConstructorProperties({\"scheme\", \"stringPath\", \"sinkMode\"})\n public Hfs( Scheme<Configuration, RecordReader, OutputCollector, ?, ?> scheme, String stringPath, SinkMode sinkMode )\n {\n super( scheme, sinkMode );\n setStringPath( stringPath );\n }", "title": "" }, { "docid": "6f34419d20eb80989efe3c64b2391d42", "score": "0.42283273", "text": "@Bean\r\n\tpublic ConsumerFactory<String, User> userConsumerFactory() {\r\n\t\tMap<String, Object> config = new HashMap<String, Object>();\r\n\r\n\t\tconfig.put(ConsumerConfig.BOOTSTRAP_SERVERS_CONFIG, \"127.0.0.1:9092\");\r\n\t\tconfig.put(ConsumerConfig.GROUP_ID_CONFIG, \"group_json\");\r\n\t\tconfig.put(ConsumerConfig.KEY_DESERIALIZER_CLASS_CONFIG, StringDeserializer.class);\r\n\t\tconfig.put(ConsumerConfig.VALUE_DESERIALIZER_CLASS_CONFIG, JsonDeserializer.class);\r\n\t\treturn new DefaultKafkaConsumerFactory<String, User>(config, new StringDeserializer(), new JsonDeserializer<User>(User.class));\r\n\t}", "title": "" }, { "docid": "63bf4fb8cd82bacd99a7f294617346ce", "score": "0.42271593", "text": "public T Parse(String path) throws IOException;", "title": "" }, { "docid": "31231d3566faa1bf4ce66339630241fd", "score": "0.4223445", "text": "@ConstructorProperties({\"scheme\", \"stringPath\"})\n public Hfs( Scheme<Configuration, RecordReader, OutputCollector, ?, ?> scheme, String stringPath )\n {\n super( scheme );\n setStringPath( stringPath );\n }", "title": "" }, { "docid": "3cc2f64387f7d62dfdc34593748dbb56", "score": "0.42205244", "text": "static public ContentHandleFactory newFactory() {\n return new ContentHandleFactory() {\n @Override\n public Class<?>[] getHandledClasses() {\n return new Class<?>[]{ JsonParser.class };\n }\n @Override\n public boolean isHandled(Class<?> type) {\n return JsonParser.class.isAssignableFrom(type);\n }\n @Override\n public <C> ContentHandle<C> newHandle(Class<C> type) {\n @SuppressWarnings(\"unchecked\")\n ContentHandle<C> handle = isHandled(type) ?\n (ContentHandle<C>) new JacksonParserHandle() : null;\n return handle;\n }\n };\n }", "title": "" }, { "docid": "672f8e8b3b36622a2b9e74ff36c3a7c5", "score": "0.42023748", "text": "@Path(\"/configurations\")\npublic interface ConfigurationWebApi {\n\n @GET\n @Path(\"{path:.*}\")\n @Produces(MediaType.APPLICATION_JSON)\n String read(@PathParam(\"path\") String path);\n\n @POST\n @Path(\"{path:.*}\")\n @Consumes(MediaType.APPLICATION_JSON)\n void write(@PathParam(\"path\") String path, String data);\n\n @PUT\n @Path(\"{path:.*}\")\n @Consumes(MediaType.APPLICATION_JSON)\n void overwrite(@PathParam(\"path\") String path, String data);\n\n @DELETE\n @Path(\"{path:.*}\")\n void delete(@PathParam(\"path\") String path);\n}", "title": "" }, { "docid": "bec70a60d84e8ce386d8bc7a0db30db2", "score": "0.41958597", "text": "public static Json queryMetaJson(String path) throws IOException {\n\t\treturn invokeWithFallbacks((service, arg) -> Json.read(Utils.readString(new URL(service.meta + arg))), path);\n\t}", "title": "" }, { "docid": "fd74966dbadb639879d9620def0f1e89", "score": "0.4192363", "text": "public void parseFunction(Path path) {\n\t\t\t\t\n\t\tJSONParser jsonParser = new JSONParser();\n\n\t\ttry (BufferedReader reader = Files.newBufferedReader(path, Charset.forName(\"UTF-8\"))) {\n\t\t\t\n\t\t\tJSONObject singleSongObject = (JSONObject) jsonParser.parse(reader);\n\n\t\t\t// save as a single song object\n\t\t\tSong song = new Song(singleSongObject);\n\n\t\t\t// invoke in threadSafeMusicLibrary and invoke the inherited addSong method by calling super.addSong() from super class - musicLibrary to add song\t\t\t\n\t\t\tthreadSafeML.addSong(song);\n\t\t\t\n\t\t} \n\t\tcatch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t} \n\t\tcatch (ParseException e) {\n\n\t\t\tSystem.out.println(e);\n\t\t}\n\n\t}", "title": "" }, { "docid": "0aac1f68800e8d1493e871401d7eda53", "score": "0.4187114", "text": "public synchronized void asObject(Path outpath) throws IOException, InterruptedException {\n\t\tFiles.createFile(outpath);\n\t\tnew IndexJSONWriter().asObject(this, outpath);\n\t}", "title": "" }, { "docid": "435e10352c0c3a2cadb1081643b01d00", "score": "0.4185477", "text": "public ReadableFile create(Path path) {\n return new ReadableFileImpl(path);\n }", "title": "" }, { "docid": "7ccbf8ce794993236bd4b8facd27f791", "score": "0.41809475", "text": "public FileStream getFile( final String _path ) ;", "title": "" }, { "docid": "71311f9b22d39c4842601d75911f3c35", "score": "0.41769528", "text": "public JsonParser map(final String path, final Class target) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "a1de1c6ca379a5a79c6e6c90941255b8", "score": "0.41766956", "text": "public UnderFileSystem create(String path, TachyonConf tachyonConf, Object conf);", "title": "" }, { "docid": "ca60b66d888d6f0579a5a3372b890b6d", "score": "0.41693562", "text": "@Override\n public void onReceiveRequest(ClientRequest req) {\n mProcessor.readPath(req);\n }", "title": "" }, { "docid": "4e64a513da2613ad560851d4d3e4c278", "score": "0.4160137", "text": "public interface IPodsAsyncPathHandler extends IPodserviceEntityHandler\n{\n /**\n * get /pods\n * No summary given.\n * \n * @param _consumer A consumer into which responses may be passed.\n * @param cursor No summary given.\n * @param limit No summary given.\n * @throws JapiException If the method cannot be called\n */\n void handleGet(\n @Nonnull IConsumer<PodPage> _consumer,\n @Nullable Cursor cursor,\n @Nullable CursorLimit limit\n\t\n ) throws JapiException;\n \n}", "title": "" }, { "docid": "826e589a4e8e94930002bd5cf114194c", "score": "0.4149347", "text": "public void init() {\n if (this.segments == null) {\n if (\"*\".equals(this.path)) {\n this.segments = new Segement[]{WildCardSegement.instance};\n } else {\n this.segments = new JSONPathParser(this.path).explain();\n }\n }\n }", "title": "" }, { "docid": "106f858fc3859bdeb44fa8cdc0170333", "score": "0.41420442", "text": "@Override\n\tpublic abstract T getResourceByPath(String path);", "title": "" }, { "docid": "f6ac1b0a7bfe5bffe464040531fdb784", "score": "0.41418427", "text": "public ResourceStreamInfo(String contentType, ServletContext context,\r\n String path) {\r\n this.contentType = contentType;\r\n this.context = context;\r\n this.path = path;\r\n }", "title": "" }, { "docid": "62916a61bca27312748795fde28ef8ee", "score": "0.41397694", "text": "@Test\n public void testWriteMultipleJSONDocsFromFactory() throws KeyManagementException, NoSuchAlgorithmException, Exception {\n String docId[] = { \"/a.json\", \"/b.json\", \"/c.json\" };\n String json1 = new String(\"{\\\"animal\\\":\\\"dog\\\", \\\"says\\\":\\\"woof\\\"}\");\n String json2 = new String(\"{\\\"animal\\\":\\\"cat\\\", \\\"says\\\":\\\"meow\\\"}\");\n String json3 = new String(\"{\\\"animal\\\":\\\"rat\\\", \\\"says\\\":\\\"keek\\\"}\");\n\n JsonFactory f = new JsonFactory();\n\n JSONDocumentManager docMgr = client.newJSONDocumentManager();\n docMgr.setMetadataCategories(Metadata.ALL);\n DocumentWriteSet writeset = docMgr.newWriteSet();\n\n // Create a content Factory from JacksonDatabindHandle that will handle\n // writes.\n ContentHandleFactory ch = JacksonParserHandle.newFactory();\n\n // Instantiate a handle.\n JacksonParserHandle jacksonParserHandle1 = (JacksonParserHandle) ch.newHandle(JsonParser.class);\n JacksonParserHandle jacksonParserHandle2 = (JacksonParserHandle) ch.newHandle(JsonParser.class);\n JacksonParserHandle jacksonParserHandle3 = (JacksonParserHandle) ch.newHandle(JsonParser.class);\n\n jacksonParserHandle1.set(f.createParser(json1));\n jacksonParserHandle2.set(f.createParser(json2));\n jacksonParserHandle3.set(f.createParser(json3));\n\n writeset.add(docId[0], jacksonParserHandle1);\n writeset.add(docId[1], jacksonParserHandle2);\n writeset.add(docId[2], jacksonParserHandle3);\n\n docMgr.write(writeset);\n\n // Using JacksonHandle to read back from database.\n JacksonHandle jacksonhandle = new JacksonHandle();\n docMgr.read(docId[0], jacksonhandle);\n JSONAssert.assertEquals(json1, jacksonhandle.toString(), true);\n\n docMgr.read(docId[1], jacksonhandle);\n JSONAssert.assertEquals(json2, jacksonhandle.toString(), true);\n\n docMgr.read(docId[2], jacksonhandle);\n JSONAssert.assertEquals(json3, jacksonhandle.toString(), true);\n // Close handles.\n jacksonParserHandle1.close();\n jacksonParserHandle2.close();\n jacksonParserHandle3.close();\n }", "title": "" }, { "docid": "2ad2ea2c7684b30d5e2b0f4f26d9e7c5", "score": "0.41365927", "text": "public HttpClientRequestActionBuilder get(String path) {\n return request(HttpMethod.GET, path);\n }", "title": "" }, { "docid": "c6cd6152f4b7b9286d65af68c24a5953", "score": "0.4136016", "text": "public JsonProperty addPath(String path) {\n\t\tthis.paths.add(new JsonPath(path, JsonPath.PathType.STRING));\n\t\treturn this;\n\t}", "title": "" }, { "docid": "99084f594412671d3ee80e8379bb90a7", "score": "0.41303924", "text": "@Override\n\tpublic SwiftFileSystem newFileSystem(URI uri, Map<String, ?> env) throws IOException {\n\t\tif (cache.containsKey(uri)) throw new FileSystemAlreadyExistsException();\n\t\t\n\t\tSwiftUri swiftUri = new SwiftUri(uri);\n\t\tif (!swiftUri.hasVersion() || !swiftUri.hasTenant()) {\n\t\t\tthrow new IllegalArgumentException(\"URI path needs both a version and a tenant\");\n\t\t}\n\t\tif (swiftUri.hasContainer()) {\n\t\t\tthrow new IllegalArgumentException(\"URI path should only have a version and tenant.\");\n\t\t}\n\t\tif (!swiftUri.getVersion().equals(\"v1\")) throw new IllegalArgumentException(\"This provider only supports version 1\");\n\t\t\n\t\tAccount account;\n\t\tif (env.get(ACCOUNT) != null) {\n\t\t\taccount = (Account) env.get(ACCOUNT);\n\t\t} else {\n\t\t\tAccountFactory accountFactory = new AccountFactory();\n\t\t\t\n\t\t\taccountFactory.setTenantName(swiftUri.getTenant());\n\t\t\taccountFactory.setUsername(uri.getUserInfo());\n\t\t\taccountFactory.setPassword((String) env.get(PASSWORD));\n\t\t\taccountFactory.setAuthUrl((String) env.get(AUTH_URL));\n\t\t\taccountFactory.setSocketTimeout((Integer) env.get(SOCKET_TIMEOUT));\n\t\t\taccountFactory.setPreferredRegion((String) env.get(PREFERRED_REGION));\n\t\t\taccountFactory.setHashPassword((String) env.get(HASH_PASSWORD));\n\t\t\taccountFactory.setAuthenticationMethod(convert((AuthenticationMethod) env.get(AUTHENTICATION_METHOD)));\n\t\t\taccountFactory.setMock((Boolean) env.get(MOCK));\n\t\t\t\n\t\t\taccount = accountFactory.createAccount();\n\t\t}\n\t\t\n\t\tSwiftFileSystem fileSystem = new SwiftFileSystem(this, uri, account);\n\t\tcache.put(uri, fileSystem);\n\t\t\n\t\treturn fileSystem;\n\t}", "title": "" }, { "docid": "959e78d0840d04c5453b935f244a7410", "score": "0.41241312", "text": "public Api addApi(String path);", "title": "" }, { "docid": "ce2391d217aae8f7cd6015615a757df4", "score": "0.412074", "text": "default KafkaConsumer<K, V> createConsumer() {\n return createConsumer(null);\n }", "title": "" }, { "docid": "d4415fed1dc48b02b409d47ef75cd091", "score": "0.41193667", "text": "@Path(\"/codes_of_conduct\")\npublic interface CodesResource {\n /**\n *\n */\n @Path(\"/{key}\")\n @GET\n @Produces(\"application/json\")\n Response codes_of_conduct_get_conduct_code(@PathParam(\"key\") String key);\n\n /**\n *\n */\n @GET\n @Produces(\"application/json\")\n Response codes_of_conduct_get_all_codes_of_conduct();\n}", "title": "" }, { "docid": "e812d0dc55fc1dc42d04d9fb60181991", "score": "0.4117185", "text": "private static <T> T readObj(Class<T> clz, String path) {\n T obj = null;\n try {\n FileInputStream fis = new FileInputStream(path);\n ObjectInputStream ois = new ObjectInputStream(fis);\n obj = (T) ois.readObject();\n } catch (Exception e) {\n e.printStackTrace();\n return null;\n }\n return obj;\n }", "title": "" }, { "docid": "96a53ae961ad313b1b00c84897598c72", "score": "0.4104437", "text": "T messageHandler(Handler<JsonMessage> handler);", "title": "" }, { "docid": "d6f072d3bcb9b551552622831dc8f950", "score": "0.41027266", "text": "ConsumerContext getConsumerContext();", "title": "" }, { "docid": "5f907ca3389d4a9a8f4df26030fb4677", "score": "0.41004822", "text": "ReaderProvider read(URI source) throws IOException;", "title": "" }, { "docid": "be36005907438b96d0e525ee9ce333b0", "score": "0.4097442", "text": "@PUT\r\n @Consumes(\"application/json\")\r\n public void putJson(String content) {\r\n }", "title": "" }, { "docid": "98bb510d94c719fbc620e71f9da8974d", "score": "0.40968266", "text": "@PUT\n @Consumes(\"application/json\")\n public void putJson(String content) {\n }", "title": "" }, { "docid": "98bb510d94c719fbc620e71f9da8974d", "score": "0.40968266", "text": "@PUT\n @Consumes(\"application/json\")\n public void putJson(String content) {\n }", "title": "" }, { "docid": "98bb510d94c719fbc620e71f9da8974d", "score": "0.40968266", "text": "@PUT\n @Consumes(\"application/json\")\n public void putJson(String content) {\n }", "title": "" }, { "docid": "98bb510d94c719fbc620e71f9da8974d", "score": "0.40968266", "text": "@PUT\n @Consumes(\"application/json\")\n public void putJson(String content) {\n }", "title": "" }, { "docid": "c4b4c94b6017275de4d4336217fd4573", "score": "0.40858695", "text": "public JsonPathExpression.Builder jsonpath() {\n return new JsonPathExpression.Builder();\n }", "title": "" }, { "docid": "f5f3939ffed05f2754d79d3421af6051", "score": "0.40755507", "text": "@Test\n public void testJsonFileHandlerRead() {\n }", "title": "" }, { "docid": "066c93578f4404b79c2feb753d4aec8d", "score": "0.4067146", "text": "@Test\n public void fromJson() throws IOException {\n\n }", "title": "" }, { "docid": "f9ad764d0c96e637f6b37b214e727233", "score": "0.40670472", "text": "@Path(\"/\")\npublic interface CAOrderService\n{\n\n\n /**\n * \n * CA create order call.\n * \n * @param headers\n * the headers\n * @param in\n * the data\n * @param delay\n * delay for which the request will wait before being transmitted.\n * @return a response.\n * @throws InterruptedException\n * if the thread sleeps for too long.\n */\n @Path(\"orders\")\n @PUT\n @Consumes(\"application/json;charset=UTF-8\")\n Response createOrder(@Context final HttpHeaders headers, final byte[] in, @DefaultValue(\"0\") @QueryParam(\"delay\") int delay)\n throws InterruptedException;\n\n\n\n\n /**\n * CA order error.\n * \n * @param code\n * If integer param occur, then should return Status code equals param.\n * @return Should return Error Status Code .Method for throwing server error with appropriate status code.\n * @throws Exception\n * on error\n */\n @Path(\"/{a:orders}/{code}\")\n @PUT\n @Consumes(\"application/json;charset=UTF-8\")\n Response createOrderError(@PathParam(\"code\") int code) throws Exception;\n\n}", "title": "" }, { "docid": "48e1fd83aab6674b0126acfa3e522285", "score": "0.40619174", "text": "public abstract MessageConsumer getConsumer(Destination d, String selector) throws JMSException;", "title": "" }, { "docid": "8261a5f6ae60c7e28f3f3ba35b3adcb6", "score": "0.40434596", "text": "public TwitterStreamFactory(String configTreePath, StatusListener listener) {\n this(ConfigurationContext.getInstance(configTreePath), listener);\n }", "title": "" }, { "docid": "f42163d0419967900ff7b28cbf45c7a1", "score": "0.4039814", "text": "public User(final String path) throws IOException, ParseException {\n this.jsonPath = path;\n final JSONParser jsonparser = new JSONParser();\n filereader = new FileReader(jsonPath);\n jsonObject = (JSONObject) jsonparser.parse(filereader);\n\n this.email = this.jsonObject.get(\"email\").toString();\n this.password = this.jsonObject.get(\"password\").toString();\n }", "title": "" }, { "docid": "24bab614bc8fdcf94fb2edab8edfba0e", "score": "0.40327075", "text": "@Start\n \tpublic void init() {\n \t\tif (this.consumer == null) {\n \t\t\tthis.consumer = this.getConsumerFactory().newConsumer(this.getBaseServiceUri(), this.getFormatType(), this.username, this.password, this.getConsumerVersion());\n \t\t}\n \t}", "title": "" }, { "docid": "f0caeeb3c79069a4d4de95355dfdeab2", "score": "0.40319008", "text": "JsonPathExpression(String propertyName, String path, Op operator, Object value) {\n super(propertyName);\n this.path = path;\n this.operator = operator;\n this.value = value;\n this.upperValue = null;\n }", "title": "" }, { "docid": "3a1dce87a86dbff425c1be1d089874c5", "score": "0.40267032", "text": "public Service(String name, String path) {\n this.name = name;\n this.path = path;\n this.api = UUID.randomUUID().toString();\n }", "title": "" }, { "docid": "5005ba9c34eedfa3cd72dd165ca50b66", "score": "0.4009974", "text": "public GsonStorage(String path) throws DukeFatalException {\n File dataDir = new File(\"data\");\n File reportDir = new File(\"data/reports\");\n\n if (!dataDir.exists()) {\n dataDir.mkdir();\n }\n if (!reportDir.exists()) {\n reportDir.mkdir();\n }\n filePath = path;\n jsonFile = new File(filePath);\n if (!jsonFile.exists()) {\n try {\n if (!jsonFile.createNewFile()) {\n throw new IOException();\n }\n } catch (IOException e) {\n throw new DukeFatalException(\"Unable to setup data file, try checking your permissions?\");\n }\n }\n }", "title": "" }, { "docid": "d2522d18260f5c6d2e16a1bfba53919c", "score": "0.40056533", "text": "public StringConsumer(final String name, Type type) {\n super(name);\n this.type = type;\n }", "title": "" }, { "docid": "03972d79b11aacfc272f14a4884d709c", "score": "0.39928484", "text": "public abstract void read(JsonReader jsonReader, Object obj) throws IOException, IllegalAccessException;", "title": "" }, { "docid": "7921e74c80d10b7eee06eeecf008dc7c", "score": "0.39923906", "text": "public FastJsonObjectProvider(JSONObject object) {\n this.object = object;\n }", "title": "" }, { "docid": "c9761c770c905f16bc68e3ab6ca287d4", "score": "0.39918414", "text": "public IO(String path) {\r\n\t\tthis.pathfile = path;\r\n\t}", "title": "" }, { "docid": "c978a377a0046352647aa6d15c4e180e", "score": "0.39893243", "text": "@Override\n\tpublic File fileReader(String path) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "4f14aa344715cd4c8511b620439e0f8b", "score": "0.39871135", "text": "void setConverterProvider(JsonConverterProvider converterProdiver);", "title": "" }, { "docid": "4994aff6e3f4e30135f10d3b4ab4ef0d", "score": "0.3985671", "text": "public InputStream getStream(String path);", "title": "" }, { "docid": "9bf7b6961f7b41daf0e813d1eb62015a", "score": "0.39855492", "text": "public T createDataSource(final JsonNode json);", "title": "" }, { "docid": "d690cc383d5ae42e716b37d69bf59ced", "score": "0.39839077", "text": "@Bean\n\tpublic ConsumerFactory<String, PropertyRequest> consumerFactory() {\n\t\treturn new DefaultKafkaConsumerFactory<>(consumerConfig(), new StringDeserializer(),\n\t\t\t\tnew JsonDeserializer<>(PropertyRequest.class));\n\t}", "title": "" }, { "docid": "ec2a67668af21ba0c4bd451af493081c", "score": "0.39815477", "text": "public abstract MessageConsumer getConsumer(Destination d) throws JMSException;", "title": "" }, { "docid": "ebb5ccd7a1a7f53c36909e897a7d5017", "score": "0.39767691", "text": "public interface TrackClient {\n @GET(\"/{path}\")\n Response trackAdProgress(@Path(\"path\") String path);\n}", "title": "" }, { "docid": "ac80595adf77738241b9034af8723895", "score": "0.3974836", "text": "public CarfDetailProviderImpl(String json){\n super();\n this.json = new String[]{json};\n }", "title": "" }, { "docid": "de93881f5a53e130ae8940e05bd28b31", "score": "0.39747265", "text": "public ConsumerRequest() {\n }", "title": "" } ]
1d3f798f34a85829293372349c4ce375
/ Unable to fully structure code Enabled aggressive block sorting Lifted jumps to return sites
[ { "docid": "64a97fbd511bd5919b08f34bc6918be3", "score": "0.0", "text": "@Override\n protected boolean showOrClearStorageErrorPopup(StorageController.StorageState var1) {\n var2_2 = -1;\n var3_3 = R.string.cam_strings_error_memory_title_txt;\n if (this.isCurrentStorageExternal()) {\n switch (.$SwitchMap$com$sonyericsson$cameracommon$mediasaving$StorageController$StorageState[this.getCurrentStorageState().ordinal()]) {\n case 1: {\n this.closeDialog(true);\n ** break;\n }\n case 2: {\n var2_2 = R.string.cam_strings_error_internal_sd_full_txt;\n }\nlbl10: // 3 sources:\n default: {\n return this.showStoragePopup(var2_2, var3_3, true);\n }\n case 3: \n case 4: \n }\n var2_2 = R.string.cam_strings_error_memory_unavailable_txt;\n return this.showStoragePopup(var2_2, var3_3, true);\n }\n switch (.$SwitchMap$com$sonyericsson$cameracommon$mediasaving$StorageController$StorageState[this.getCurrentStorageState().ordinal()]) {\n default: {\n return this.showStoragePopup(var2_2, var3_3, true);\n }\n case 1: {\n this.closeDialog(true);\n return this.showStoragePopup(var2_2, var3_3, true);\n }\n case 2: {\n var2_2 = R.string.cam_strings_error_internal_sd_full_txt;\n return this.showStoragePopup(var2_2, var3_3, true);\n }\n case 3: \n case 4: \n }\n var2_2 = R.string.cam_strings_error_memory_ims_unavailable_txt;\n return this.showStoragePopup(var2_2, var3_3, true);\n }", "title": "" } ]
[ { "docid": "ea97cf060879cffc1b7bef111f282d29", "score": "0.6016002", "text": "final void fallbackSortImpl(int nblock) {\n final int[] ftab = new int[257];\n int H, i, j, k, lo, hi, cc, cc1;\n int nNotDone;\n int nBhtab;\n final int[] eclass = getEclass();\n\n for (i = 0; i < nblock; i++) {\n eclass[i] = 0;\n }\n /*--\n LBZ2: Initial 1-char radix sort to generate\n initial fmap and initial BH bits.\n --*/\n for (i = 0; i < nblock; i++) {\n ftab[data.block[i] & 0xff]++;\n }\n for (i = 1; i < 257; i++) {\n ftab[i] += ftab[i - 1];\n }\n\n for (i = 0; i < nblock; i++) {\n j = data.block[i] & 0xff;\n k = ftab[j] - 1;\n ftab[j] = k;\n data.fmap[k] = i;\n }\n\n nBhtab = 64 + nblock;\n final BitSet bhtab = new BitSet(nBhtab);\n for (i = 0; i < 256; i++) {\n bhtab.set(ftab[i]);\n }\n\n /*--\n LBZ2: Inductively refine the buckets. Kind-of an\n \"exponential radix sort\" (!), inspired by the\n Manber-Myers suffix array construction algorithm.\n --*/\n\n /*-- LBZ2: set sentinel bits for block-end detection --*/\n for (i = 0; i < 32; i++) {\n bhtab.set(nblock + 2 * i);\n bhtab.clear(nblock + 2 * i + 1);\n }\n\n /*-- LBZ2: the log(N) loop --*/\n H = 1;\n while (true) {\n\n j = 0;\n for (i = 0; i < nblock; i++) {\n if (bhtab.get(i)) {\n j = i;\n }\n k = data.fmap[i] - H;\n if (k < 0) {\n k += nblock;\n }\n eclass[k] = j;\n }\n\n nNotDone = 0;\n hi = -1;\n while (true) {\n\n /*-- LBZ2: find the next non-singleton bucket --*/\n k = hi + 1;\n k = bhtab.nextClearBit(k);\n lo = k - 1;\n if (lo >= nblock) {\n break;\n }\n k = bhtab.nextSetBit(k + 1);\n hi = k - 1;\n if (hi >= nblock) {\n break;\n }\n\n /*-- LBZ2: now [lo, hi] bracket current bucket --*/\n if (hi > lo) {\n nNotDone += hi - lo + 1;\n fallbackQSort3(eclass, lo, hi);\n\n /*-- LBZ2: scan bucket and generate header bits-- */\n cc = -1;\n for (i = lo; i <= hi; i++) {\n cc1 = eclass[data.fmap[i]];\n if (cc != cc1) {\n bhtab.set(i);\n cc = cc1;\n }\n }\n }\n }\n\n H *= 2;\n if (H > nblock || nNotDone == 0) {\n break;\n }\n }\n }", "title": "" }, { "docid": "7319ceb9d04e6561df45960edae22b5f", "score": "0.5820456", "text": "public n a(q var1_1, I var2_2, am var3_3, am var4_4, gv var5_5) {\n block11 : {\n var32_6 = fj.z;\n var6_7 = var5_5.a();\n var7_8 = var5_5.b();\n var9_9 = new n(new t(0.0, 0.0), var1_1);\n var9_9.a(6.283185307179586 - this.d);\n var10_10 = ae.a(var2_2, var3_3, var4_4, 0.0);\n if (var10_10.h() >= 2 && (var10_10.h() != 2 || t.a(var10_10.c(), var10_10.d()) >= 1.0E-4)) ** GOTO lbl17\n if (var10_10.h() >= 2) ** GOTO lbl-1000\n var11_11 = var9_9.h();\n var9_9.e(var3_3.getX() + var11_11.a * 0.5, var3_3.getY() + var11_11.b * 0.5);\n if (var32_6) lbl-1000: // 2 sources:\n {\n var11_12 = var10_10.c();\n var9_9.e(var11_12.a, var11_12.b);\n }\n if (this.d() == false) return var9_9;\n ae.b(var9_9);\n return var9_9;\nlbl17: // 1 sources:\n if (var6_7 < 0) {\n var11_13 = Math.max(0, var10_10.h() - 1 + var6_7);\n if (!var32_6) break block11;\n }\n var11_14 = Math.min(var10_10.h() - 2, var6_7);\n }\n if ((var12_15 = var10_10.a(var11_14)) == null) {\n var13_16 = var9_9.h();\n var9_9.e(var3_3.getX() + var13_16.a * 0.5, var3_3.getY() + var13_16.b * 0.5);\n if (this.d() == false) return var9_9;\n ae.b(var9_9);\n return var9_9;\n }\n var13_17 = var12_15.c();\n var14_18 = var12_15.d();\n if (var12_15.g() != 0.0) ** GOTO lbl39\n var15_19 = var3_3.getX() + var3_3.getWidth() * 0.5 + var2_2.getSourcePoint().a - (var4_4.getX() + var4_4.getWidth() * 0.5 + var2_2.getTargetPoint().a);\n var17_20 = var3_3.getY() + var3_3.getHeight() * 0.5 + var2_2.getSourcePoint().b - (var4_4.getY() + var4_4.getHeight() * 0.5 + var2_2.getTargetPoint().b);\n if (var15_19 != 0.0 || var17_20 != 0.0) ** GOTO lbl-1000\n var14_18 = new t(var13_17.a + 1.0E-6, var13_17.b);\n if (var32_6) lbl-1000: // 2 sources:\n {\n var19_22 = Math.sqrt(var15_19 * var15_19 + var17_20 * var17_20);\n var14_18 = new t(var13_17.a + 1.0E-6 * var15_19 / var19_22, var13_17.b + 1.0E-6 * var17_20 / var19_22);\n }\n var12_15 = new m(var13_17, var14_18);\nlbl39: // 2 sources:\n if (this.b) {\n var9_9.a(ik.c(z.d(var12_15.i(), ik.g) - this.d));\n }\n var15_19 = Math.abs(var5_5.c());\n var17_21 = new n(var9_9);\n this.a(var17_21, var12_15, var13_17, var15_19);\n if (var11_14 == 0 && this.a(var3_3, var17_21)) {\n this.b(var17_21, var12_15, var3_3, var15_19);\n }\n var18_25 = new n(var9_9);\n this.a(var18_25, var12_15, var14_18, var15_19);\n if (var11_14 >= var10_10.h() - 2 && this.a(var4_4, var18_25)) {\n this.a(var18_25, var12_15, var4_4, var15_19);\n }\n if (t.a(var17_21.a(), var18_25.a()) < 1.0E-4) {\n var19_23 = var12_15.i();\n var19_23.c();\n var18_25.d(var19_23.a(), var19_23.b());\n }\n if (0.0 <= var7_8 && var7_8 <= 1.0) ** GOTO lbl-1000\n var20_26 = var18_25.b() - var17_21.b();\n var24_28 = Math.sqrt(var20_26 * var20_26 + (var22_27 = var18_25.c() - var17_21.c()) * var22_27);\n v0 = var26_29 = var24_28 != 0.0 ? var7_8 / var24_28 : 0.0;\n if (var7_8 >= 0.0) ** GOTO lbl-1000\n var28_30 = var17_21.b() + var26_29 * var20_26;\n var30_31 = var17_21.c() + var26_29 * var22_27;\n if (var32_6) lbl-1000: // 2 sources:\n {\n var28_30 = var18_25.b() + var26_29 * var20_26;\n var30_31 = var18_25.c() + var26_29 * var22_27;\n }\n var19_24 = new t(var28_30, var30_31);\n if (var32_6) lbl-1000: // 2 sources:\n {\n var19_24 = new t(var17_21.b() * (1.0 - var7_8) + var18_25.b() * var7_8, var17_21.c() * (1.0 - var7_8) + var18_25.c() * var7_8);\n }\n var9_9.a(var19_24);\n if (this.d() == false) return var9_9;\n ae.b(var9_9);\n return var9_9;\n }", "title": "" }, { "docid": "6b5bf96536773da83480aa54f2f96436", "score": "0.5770869", "text": "protected void func_180433_a(double p_180433_1_, boolean p_180433_3_, Block p_180433_4_, BlockPos p_180433_5_) {\n/* 537 */ if (p_180433_3_) {\n/* */ \n/* 539 */ if (this.fallDistance > 3.0F)\n/* */ {\n/* 541 */ fall(this.fallDistance, 1.0F);\n/* */ \n/* 543 */ if (!this.worldObj.isRemote && !this.isDead) {\n/* */ \n/* 545 */ setDead();\n/* */ \n/* */ int var6;\n/* 548 */ for (var6 = 0; var6 < 3; var6++)\n/* */ {\n/* 550 */ dropItemWithOffset(Item.getItemFromBlock(Blocks.planks), 1, 0.0F);\n/* */ }\n/* */ \n/* 553 */ for (var6 = 0; var6 < 2; var6++)\n/* */ {\n/* 555 */ dropItemWithOffset(Items.stick, 1, 0.0F);\n/* */ }\n/* */ } \n/* */ \n/* 559 */ this.fallDistance = 0.0F;\n/* */ }\n/* */ \n/* 562 */ } else if (this.worldObj.getBlockState((new BlockPos(this)).offsetDown()).getBlock().getMaterial() != Material.water && p_180433_1_ < 0.0D) {\n/* */ \n/* 564 */ this.fallDistance = (float)(this.fallDistance - p_180433_1_);\n/* */ } \n/* */ }", "title": "" }, { "docid": "5ba1d9c9474200bbfaddf61cbfedfce5", "score": "0.5733453", "text": "private void d(bu var1_1, q var2_2) {\n block26 : {\n block25 : {\n block24 : {\n block23 : {\n var10_3 = fj.z;\n var3_4 = null;\n var4_5 = cm.a(var1_1, var2_2);\n var5_6 = this.a(var4_5, var2_2);\n var6_7 = this.a(var1_1, var2_2);\n if ((var5_6 || var6_7) && this.c() && var1_1.C() != null && (var7_8 = var1_1.C().n(var2_2)) != null) {\n if (this.h.add(var7_8)) {\n var1_1.a(new y.c.y((q)var7_8).a());\n }\n if ((var8_10 = var1_1.t((q)var7_8).getAutoBoundsFeature()) != null && var8_10.isAutoBoundsEnabled()) {\n var8_10.setAutoBoundsEnabled(false);\n var3_4 = var8_10;\n }\n }\n if (var5_6) {\n if (this.h.add(var2_2)) {\n var1_1.a(new y.c.y(var2_2).a());\n }\n if (var2_2.a() > 0) {\n var1_1.a(var2_2.j());\n }\n }\n if (!(var4_5 instanceof y.h.b.a)) ** GOTO lbl56\n var7_8 = ((y.h.b.a)var4_5).l();\n var8_11 = var7_8.k();\n while (var8_11-- > 1) {\n this.b(var2_2, var7_8.b(var8_11));\n if (!var10_3) {\n if (!var10_3) continue;\n }\n ** GOTO lbl-1000\n }\n if (var7_8.k() <= 1) ** GOTO lbl-1000\n this.b(var2_2, var7_8.b(0));\n if (var10_3) lbl-1000: // 3 sources:\n {\n var8_12 = var7_8.b(0);\n var9_14 = var8_12.k();\n while (var9_14-- > 0) {\n this.b(var2_2, var8_12.b(var9_14));\n if (!var10_3) {\n if (!var10_3) continue;\n }\n break block23;\n }\n if (this.a(var2_2, var8_12) && var8_12.k() > 0) {\n this.c(var2_2, var8_12);\n }\n }\n }\n var8_10 = var7_8.n();\n while (var8_10-- > true) {\n this.b(var2_2, var7_8.c((int)var8_10));\n if (!var10_3) {\n if (!var10_3) continue;\n }\n ** GOTO lbl-1000\n }\n if (var7_8.n() <= 1) ** GOTO lbl-1000\n this.b(var2_2, var7_8.c(0));\n if (var10_3) lbl-1000: // 3 sources:\n {\n var8_13 = var7_8.c(0);\n var9_14 = var8_13.n();\n while (var9_14-- > 0) {\n this.b(var2_2, var8_13.c(var9_14));\n if (!var10_3) {\n if (!var10_3) continue;\n }\n break block24;\n }\n if (this.a(var2_2, var8_13) && var8_13.n() > 0) {\n this.c(var2_2, var8_13);\n }\n }\n }\n var7_9 = var4_5.portCount();\n while (var7_9-- > 0) {\n var8_10 = var4_5.getPort(var7_9);\n if (!this.a(var2_2, (eU)var8_10)) continue;\n this.a(var4_5, (eU)var8_10, var7_9);\n if (!var10_3) {\n if (!var10_3) continue;\n }\n break block25;\n }\n var7_9 = var4_5.labelCount();\n }\n while (var7_9-- > 0) {\n var8_10 = var4_5.getLabel(var7_9);\n if (!this.a(var2_2, (eR)var8_10)) continue;\n this.a(var4_5, (eR)var8_10, var7_9);\n if (!var10_3) {\n if (!var10_3) continue;\n }\n break block26;\n }\n if (var6_7) {\n this.c(var1_1, var2_2);\n }\n }\n if (var3_4 == null) return;\n var3_4.setAutoBoundsEnabled(true);\n }\n\n /*\n * Exception decompiling\n */\n private void e(bu var1_1, q var2_2) {\n // This method has failed to decompile. When submitting a bug report, please provide this stack trace, and (if you hold appropriate legal rights) the relevant class file.\n // org.benf.cfr.reader.util.ConfusedCFRException: Statement already marked as first in another block\n // org.benf.cfr.reader.bytecode.analysis.opgraph.Op03SimpleStatement.markFirstStatementInBlock(Op03SimpleStatement.java:420)\n // org.benf.cfr.reader.bytecode.analysis.opgraph.op3rewriters.Misc.markWholeBlock(Misc.java:219)\n // org.benf.cfr.reader.bytecode.analysis.opgraph.op3rewriters.ConditionalRewriter.considerAsSimpleIf(ConditionalRewriter.java:619)\n // org.benf.cfr.reader.bytecode.analysis.opgraph.op3rewriters.ConditionalRewriter.identifyNonjumpingConditionals(ConditionalRewriter.java:45)\n // org.benf.cfr.reader.bytecode.CodeAnalyser.getAnalysisInner(CodeAnalyser.java:681)\n // org.benf.cfr.reader.bytecode.CodeAnalyser.getAnalysisOrWrapFail(CodeAnalyser.java:220)\n // org.benf.cfr.reader.bytecode.CodeAnalyser.getAnalysis(CodeAnalyser.java:165)\n // org.benf.cfr.reader.entities.attributes.AttributeCode.analyse(AttributeCode.java:91)\n // org.benf.cfr.reader.entities.Method.analyse(Method.java:354)\n // org.benf.cfr.reader.entities.ClassFile.analyseMid(ClassFile.java:751)\n // org.benf.cfr.reader.entities.ClassFile.analyseTop(ClassFile.java:683)\n // org.benf.cfr.reader.Main.doJar(Main.java:129)\n // org.benf.cfr.reader.Main.main(Main.java:181)\n // the.bytecode.club.bytecodeviewer.decompilers.CFRDecompiler.decompileToZip(CFRDecompiler.java:245)\n // the.bytecode.club.bytecodeviewer.gui.MainViewerGUI$18$1$3.run(MainViewerGUI.java:1107)\n throw new IllegalStateException(\"Decompilation failed\");\n }\n\n private void f(bu bu2, q q2) {\n this.g = null;\n this.f = null;\n this.e = null;\n this.d = false;\n }\n\n @Override\n public void actionPerformed(ActionEvent actionEvent) {\n ch ch2 = this.a(actionEvent);\n if (ch2 == null) return;\n this.a(ch2);\n ch2.getGraph2D().T();\n }\n\n /*\n * WARNING - Removed try catching itself - possible behaviour change.\n * Unable to fully structure code\n * Enabled unnecessary exception pruning\n */\n public void a(ch var1_1) {\n var7_2 = fj.z;\n var2_3 = var1_1.getGraph2D();\n var2_3.r();\n try {\n block7 : {\n var3_4 = var2_3.p();\n while (var3_4.f()) {\n this.b(var2_3, var3_4.a());\n var3_4.g();\n if (!var7_2) {\n if (!var7_2) continue;\n }\n break block7;\n }\n this.h = new HashSet<E>();\n }\n if ((var3_4 = var2_3.C()) != null) ** GOTO lbl21\n var4_5 = var2_3.o();\n while (var4_5.f()) {\n this.b(var2_3, var4_5.e());\n var4_5.g();\n if (var7_2 != false) return;\n if (!var7_2) continue;\nlbl21: // 2 sources:\n var4_5 = new ArrayList<E>(var2_3.f());\n var3_4.a(var3_4.e(var2_3), new cp(this, (ArrayList)var4_5));\n var5_6 = var4_5.iterator();\n while (var5_6.hasNext()) {\n this.b(var2_3, (q)var5_6.next());\n if (var7_2 != false) return;\n if (!var7_2) continue;\n }\n break block4;\n }\n this.h = null;\n return;\n }\n finally {\n var2_3.s();\n }\n }\n\n protected void b(bu bu2, d d2) {\n boolean bl2;\n int n2;\n aB aB2;\n block5 : {\n int n3;\n bl2 = fj.z;\n aB2 = bu2.i(d2);\n if (this.a(aB2, d2)) {\n bu2.a(new y.c.f(d2).a());\n aB2 = bu2.i(d2);\n }\n y y2 = aB2.bends();\n while (y2.f()) {\n n3 = (int)this.a(d2, y2.a()) ? 1 : 0;\n if (!bl2) {\n if (n3 != 0) {\n this.a(aB2, y2.a());\n }\n y2.g();\n if (!bl2) continue;\n }\n break block5;\n }\n n3 = n2 = aB2.labelCount();\n }\n while (n2-- > 0) {\n aA aA2 = aB2.getLabel(n2);\n if (!this.a(d2, aA2)) continue;\n this.a(aB2, aA2, n2);\n if (bl2) return;\n if (!bl2) continue;\n }\n if (!this.a(bu2, d2)) return;\n this.c(bu2, d2);\n }\n\n protected ch a(ActionEvent actionEvent) {\n return cm.a(actionEvent, this.a);\n }\n\n boolean a(aB aB2, d d2) {\n boolean bl2;\n int n2;\n block5 : {\n bl2 = fj.z;\n y y2 = aB2.bends();\n while (y2.f()) {\n n2 = (int)this.a(d2, y2.a()) ? 1 : 0;\n if (!bl2) {\n if (n2 != 0) {\n return true;\n }\n y2.g();\n if (!bl2) continue;\n }\n break block5;\n }\n n2 = aB2.labelCount();\n }\n if (n2 <= 0) return false;\n int n3 = 0;\n do {\n if (n3 >= aB2.labelCount()) return false;\n boolean bl3 = this.a(d2, aB2.getLabel(n3));\n if (bl2) return bl3;\n if (bl3) {\n return true;\n }\n ++n3;\n } while (!bl2);\n return false;\n }\n\n boolean a(fj fj2, q q2) {\n boolean bl2;\n boolean bl3;\n Object object;\n int n2;\n block14 : {\n bl3 = fj.z;\n if (fj2 instanceof y.h.b.a) {\n Object object2;\n ArrayList arrayList;\n block13 : {\n boolean bl4;\n object = ((y.h.b.a)fj2).l();\n arrayList = new ArrayList();\n arrayList.addAll(object.l());\n while (!arrayList.isEmpty()) {\n object2 = (c)arrayList.remove(arrayList.size() - 1);\n bl4 = this.a(q2, (c)object2);\n if (!bl3) {\n if (bl4) {\n return true;\n }\n arrayList.addAll(object2.l());\n if (!bl3) continue;\n }\n break block13;\n }\n arrayList.clear();\n bl4 = arrayList.addAll(object.o());\n }\n while (!arrayList.isEmpty()) {\n object2 = (f)arrayList.remove(arrayList.size() - 1);\n n2 = (int)this.a(q2, (f)object2) ? 1 : 0;\n if (!bl3) {\n if (n2 != 0) {\n return true;\n }\n arrayList.addAll(object2.o());\n if (!bl3) continue;\n }\n break block14;\n }\n }\n n2 = fj2.portCount();\n }\n if (n2 > 0) {\n object = fj2.ports();\n while (object.hasNext()) {\n if (!this.a(q2, (eU)object.next())) continue;\n bl2 = true;\n if (!bl3) {\n return bl2;\n }\n break;\n }\n } else {\n bl2 = fj2.labelCount();\n }\n if (bl2 <= false) return false;\n int n3 = 0;\n do {\n if (n3 >= fj2.labelCount()) return false;\n boolean bl5 = this.a(q2, fj2.getLabel(n3));\n if (bl3) return bl5;\n if (bl5) {\n return true;\n }\n ++n3;\n } while (!bl3);\n return false;\n }\n\n boolean b(q q2, c c2) {\n boolean bl2 = fj.z;\n boolean bl3 = false;\n int n2 = c2.k();\n while (n2-- > 0) {\n bl3 |= this.b(q2, c2.b(n2));\n if (bl2) return bl3;\n if (!bl2) continue;\n }\n if (!this.a(q2, c2)) return bl3;\n this.c(q2, c2);\n return true;\n }\n\n boolean b(q q2, f f2) {\n boolean bl2 = fj.z;\n boolean bl3 = false;\n int n2 = f2.n();\n while (n2-- > 0) {\n bl3 |= this.b(q2, f2.c(n2));\n if (bl2) return bl3;\n if (!bl2) continue;\n }\n if (!this.a(q2, f2)) return bl3;\n this.c(q2, f2);\n return true;\n }\n\n protected void c(bu bu2, d d2) {\n bu2.a(d2);\n }\n\n protected void a(aB aB2, aA aA2, int n2) {\n aB2.removeLabel(aA2);\n }\n\n protected void a(aB aB2, x x2) {\n aB2.removeBend(x2);\n }\n\n protected void c(bu bu2, q q2) {\n bu2.a(q2);\n }\n\n protected void a(fj fj2, eR eR2, int n2) {\n fj2.removeLabel(eR2);\n }\n\n protected void a(fj fj2, eU eU2, int n2) {\n fj2.removePort(n2);\n }\n\n protected void c(q q2, c c2) {\n c2.c();\n }\n\n protected void c(q q2, f f2) {\n f2.c();\n }\n}", "title": "" }, { "docid": "cbf101e1f6086bf8b43dbbe7548256d8", "score": "0.5671651", "text": "private boolean mainSimpleSort(final int lo, final int hi, final int d, final int lastShadow) {\n final int bigN = hi - lo + 1;\n\n if (bigN < 2)\n return firstAttempt && (workDone > workLimit);\n\n int hp = 0;\n while (INCS[hp] < bigN) {\n hp++;\n }\n\n final int lastPlus1 = lastShadow + 1;\n final boolean firstAttemptShadow = firstAttempt;\n final int workLimitShadow = workLimit;\n int workDoneShadow = workDone;\n\n // Following block contains unrolled code which could be shortened by\n // coding it in additional loops.\n\n HP:\n while (--hp >= 0) {\n final int h = INCS[hp];\n final int mj = lo + h - 1;\n\n for (int i = lo + h; i <= hi; ) {\n // copy\n for (int k = 3; (i <= hi) && (--k >= 0); i++) {\n final int v = data.fmap[i];\n final int vd = v + d;\n int j = i;\n\n // for (int a;\n // (j > mj) && mainGtU((a = fmap[j - h]) + d, vd,\n // block, quadrant, lastShadow);\n // j -= h) {\n // fmap[j] = a;\n // }\n //\n // unrolled version:\n\n // start inline mainGTU\n boolean onceRunned = false;\n int a = 0;\n\n HAMMER:\n while (true) {\n if (onceRunned) {\n data.fmap[j] = a;\n if ((j -= h) <= mj) { //NOSONAR\n break HAMMER;\n }\n } else {\n onceRunned = true;\n }\n\n a = data.fmap[j - h];\n int i1 = a + d;\n int i2 = vd;\n\n // following could be done in a loop, but\n // unrolled it for performance:\n if (data.block[i1 + 1] == data.block[i2 + 1]) {\n if (data.block[i1 + 2] == data.block[i2 + 2]) {\n if (data.block[i1 + 3] == data.block[i2 + 3]) {\n if (data.block[i1 + 4] == data.block[i2 + 4]) {\n if (data.block[i1 + 5] == data.block[i2 + 5]) {\n if (data.block[i1 += 6] == data.block[i2 += 6]) { //NOSONAR\n int x = lastShadow;\n X:\n while (x > 0) {\n x -= 4;\n\n if (data.block[i1 + 1] == data.block[i2 + 1]) {\n if (this.data.sfmap[i1] == this.data.sfmap[i2]) {\n if (data.block[i1 + 2] == data.block[i2 + 2]) {\n if (this.data.sfmap[i1 + 1] == this.data.sfmap[i2 + 1]) {\n if (data.block[i1 + 3] == data.block[i2 + 3]) {\n if (this.data.sfmap[i1 + 2] == this.data.sfmap[i2 + 2]) {\n if (data.block[i1 + 4] == data.block[i2 + 4]) {\n if (this.data.sfmap[i1 + 3] == this.data.sfmap[i2 + 3]) {\n if ((i1 += 4) >= lastPlus1) { //NOSONAR\n i1 -= lastPlus1;\n }\n if ((i2 += 4) >= lastPlus1) { //NOSONAR\n i2 -= lastPlus1;\n }\n workDoneShadow++;\n continue X;\n } else if (this.data.sfmap[i1 + 3] > this.data.sfmap[i2 + 3]) {\n continue HAMMER;\n } else {\n break HAMMER;\n }\n } else if ((data.block[i1 + 4] & 0xff) > (data.block[i2 + 4] & 0xff)) {\n continue HAMMER;\n } else {\n break HAMMER;\n }\n } else if (this.data.sfmap[i1 + 2] > this.data.sfmap[i2 + 2]) {\n continue HAMMER;\n } else {\n break HAMMER;\n }\n } else if ((data.block[i1 + 3] & 0xff) > (data.block[i2 + 3] & 0xff)) {\n continue HAMMER;\n } else {\n break HAMMER;\n }\n } else if (this.data.sfmap[i1 + 1] > this.data.sfmap[i2 + 1]) {\n continue HAMMER;\n } else {\n break HAMMER;\n }\n } else if ((data.block[i1 + 2] & 0xff) > (data.block[i2 + 2] & 0xff)) {\n continue HAMMER;\n } else {\n break HAMMER;\n }\n } else if (this.data.sfmap[i1] > this.data.sfmap[i2]) {\n continue HAMMER;\n } else {\n break HAMMER;\n }\n } else if ((data.block[i1 + 1] & 0xff) > (data.block[i2 + 1] & 0xff)) {\n continue HAMMER;\n } else {\n break HAMMER;\n }\n\n }\n break HAMMER;\n } // while x > 0\n if ((data.block[i1] & 0xff) > (data.block[i2] & 0xff)) {\n continue HAMMER;\n }\n break HAMMER;\n } else if ((data.block[i1 + 5] & 0xff) > (data.block[i2 + 5] & 0xff)) {\n continue HAMMER;\n } else {\n break HAMMER;\n }\n } else if ((data.block[i1 + 4] & 0xff) > (data.block[i2 + 4] & 0xff)) {\n continue HAMMER;\n } else {\n break HAMMER;\n }\n } else if ((data.block[i1 + 3] & 0xff) > (data.block[i2 + 3] & 0xff)) {\n continue HAMMER;\n } else {\n break HAMMER;\n }\n } else if ((data.block[i1 + 2] & 0xff) > (data.block[i2 + 2] & 0xff)) {\n continue HAMMER;\n } else {\n break HAMMER;\n }\n } else if ((data.block[i1 + 1] & 0xff) > (data.block[i2 + 1] & 0xff)) {\n continue HAMMER;\n } else {\n break HAMMER;\n }\n\n } // HAMMER\n // end inline mainGTU\n\n data.fmap[j] = v;\n }\n\n if (firstAttemptShadow && (i <= hi)\n && (workDoneShadow > workLimitShadow)) {\n break HP;\n }\n }\n }\n\n workDone = workDoneShadow;\n return firstAttemptShadow && (workDoneShadow > workLimitShadow);\n }", "title": "" }, { "docid": "638a4a24c566dbee2f8f1022b55b4bd7", "score": "0.5615852", "text": "public void func_149749_a(World world, int x, int y, int z, Block bl, int md)\n/* */ {\n/* 210 */ if (!world.field_72995_K) {\n/* 211 */ if (md != 0)\n/* */ {\n/* 213 */ for (int a = -1; a <= 1; a++) {\n/* 214 */ for (int b = -1; b <= 1; b++)\n/* 215 */ for (int c = -1; c <= 1; c++)\n/* 216 */ if ((world.func_147439_a(x + a, y + b, z + c) == this) && (world.func_72805_g(x + a, y + b, z + c) == 0)) {\n/* 217 */ TileAlchemyFurnaceAdvanced tile = (TileAlchemyFurnaceAdvanced)world.func_147438_o(x + a, y + b, z + c);\n/* 218 */ if (tile != null) {\n/* 219 */ tile.destroy = true;\n/* 220 */ return;\n/* */ }\n/* */ }\n/* */ }\n/* */ } else {\n/* 225 */ for (int a = -1; a <= 1; a++) {\n/* 226 */ for (int b = 0; b <= 1; b++) {\n/* 227 */ for (int c = -1; c <= 1; c++) {\n/* 228 */ if (((a != 0) || (b != 0) || (c != 0)) && (world.func_147439_a(x + a, y + b, z + c) == this)) {\n/* 229 */ int m = world.func_72805_g(x + a, y + b, z + c);\n/* 230 */ world.func_147465_d(x + a, y + b, z + c, Block.func_149634_a(func_149650_a(m, world.field_73012_v, 0)), func_149692_a(m), 3);\n/* */ }\n/* */ }\n/* */ }\n/* */ }\n/* */ }\n/* */ }\n/* */ }", "title": "" }, { "docid": "76e0147de9a9e4b5204c777a813afe1d", "score": "0.5570214", "text": "public static void spaceOptimizedLCS(){\n\n }", "title": "" }, { "docid": "73c0440bde8fdd28342e57b4a67c9be7", "score": "0.5554023", "text": "private Integer blocksToMoveEnhancedHeuristic(BoardState state) {\n\n\t\tif (isGoalState(state)) {\n\t\t\treturn 0;\n\t\t}\n\n\t\tBlock block = state.getBlocks().get(0);\n\t\tSet<Integer> blocks = new HashSet<Integer>();\n\n\t\t/* Set of blocks that obstruct a certain block */\n\t\tMap<Integer, Set<Integer>> map = new HashMap<Integer, Set<Integer>>();\n\n\t\t/* Amount of obstructions produced by a certain block */\n\t\tList<TopObstruction> obstructionsCount = new ArrayList<TopObstruction>();\n\n\t\tfor (int j = block.getHead().getJ() + 1; j < board[0].length; j++) {\n\t\t\tif (state.getBoard()[block.getHead().getI()][j] != 0) {\n\t\t\t\tint id = state.getBoard()[block.getHead().getI()][j];\n\t\t\t\tblocks.add(id);\n\t\t\t\tSet<Integer> blockingBlocks = state.blockingBlocks(id);\n\t\t\t\tSet<Integer> ignore = new HashSet<Integer>();\n\n\t\t\t\tif (!blockingBlocks.isEmpty()) {\n\t\t\t\t\tmap.put(id, blockingBlocks);\n\t\t\t\t}\n\n\t\t\t\tfor (TopObstruction t : obstructionsCount) {\n\t\t\t\t\tif (blockingBlocks.contains(t.id)) {\n\t\t\t\t\t\tt.increaseCount();\n\t\t\t\t\t}\n\t\t\t\t\tignore.add(t.id);\n\t\t\t\t}\n\n\t\t\t\tfor (Integer i : blockingBlocks) {\n\t\t\t\t\tif (!ignore.contains(i)) {\n\t\t\t\t\t\tobstructionsCount.add(new TopObstruction(i));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tCollections.sort(obstructionsCount);\n\n\t\twhile (!map.isEmpty() && !obstructionsCount.isEmpty()) {\n\t\t\tTopObstruction t = obstructionsCount.remove(0);\n\n\t\t\tIterator<Map.Entry<Integer, Set<Integer>>> iterator = map\n\t\t\t\t\t.entrySet().iterator();\n\t\t\twhile (iterator.hasNext()) {\n\t\t\t\tEntry<Integer, Set<Integer>> next = iterator.next();\n\t\t\t\tif (next.getValue().contains(t.id)) {\n\t\t\t\t\titerator.remove();\n\t\t\t\t\tblocks.add(t.id);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn blocks.size() + 1;\n\n\t}", "title": "" }, { "docid": "562f77bb8d34b165cd4498630b3d7057", "score": "0.5527271", "text": "public int getOrder()\r\n/* 30: */ {\r\n/* 31:133 */ return 5;\r\n/* 32: */ }", "title": "" }, { "docid": "93892bd4ebc6ca197bf55daf501ac684", "score": "0.55205774", "text": "@Override\r\n protected void sort() {\r\n //WRITECODE\r\n }", "title": "" }, { "docid": "bbc962804a7ba3765b2bfcc92f41619c", "score": "0.5518686", "text": "private static long preSortSteps() {\n \tclearSwapCounter();\n \tSortObject.resetCompares();\n \treturn System.currentTimeMillis();\n }", "title": "" }, { "docid": "0f49c1bac2fdfd08e317dc373b767186", "score": "0.5498088", "text": "public boolean a(World paramaqu, Random paramRandom, bjb parambjb)\r\n/* 33: */ {\r\n/* 34:1107 */ if (a(paramaqu, parambjb)) {\r\n/* 35:1108 */ return false;\r\n/* 36: */ }\r\n/* 37:1112 */ a(paramaqu, parambjb, 0, 0, 0, 8, 4, 10, true, paramRandom, blr.c());\r\n/* 38: */ \r\n/* 39:1114 */ a(paramaqu, paramRandom, parambjb, this.d, 1, 1, 0);\r\n/* 40: */ \r\n/* 41:1116 */ a(paramaqu, parambjb, 1, 1, 10, 3, 3, 10, BlockList.air.instance(), BlockList.air.instance(), false);\r\n/* 42: */ \r\n/* 43: */ \r\n/* 44:1119 */ a(paramaqu, parambjb, 4, 1, 1, 4, 3, 1, false, paramRandom, blr.c());\r\n/* 45:1120 */ a(paramaqu, parambjb, 4, 1, 3, 4, 3, 3, false, paramRandom, blr.c());\r\n/* 46:1121 */ a(paramaqu, parambjb, 4, 1, 7, 4, 3, 7, false, paramRandom, blr.c());\r\n/* 47:1122 */ a(paramaqu, parambjb, 4, 1, 9, 4, 3, 9, false, paramRandom, blr.c());\r\n/* 48: */ \r\n/* 49: */ \r\n/* 50:1125 */ a(paramaqu, parambjb, 4, 1, 4, 4, 3, 6, BlockList.ironBars.instance(), BlockList.ironBars.instance(), false);\r\n/* 51:1126 */ a(paramaqu, parambjb, 5, 1, 5, 7, 3, 5, BlockList.ironBars.instance(), BlockList.ironBars.instance(), false);\r\n/* 52: */ \r\n/* 53: */ \r\n/* 54:1129 */ a(paramaqu, BlockList.ironBars.instance(), 4, 3, 2, parambjb);\r\n/* 55:1130 */ a(paramaqu, BlockList.ironBars.instance(), 4, 3, 8, parambjb);\r\n/* 56:1131 */ a(paramaqu, BlockList.ironDoor.instance(a(BlockList.ironDoor, 3)), 4, 1, 2, parambjb);\r\n/* 57:1132 */ a(paramaqu, BlockList.ironDoor.instance(a(BlockList.ironDoor, 3) + 8), 4, 2, 2, parambjb);\r\n/* 58:1133 */ a(paramaqu, BlockList.ironDoor.instance(a(BlockList.ironDoor, 3)), 4, 1, 8, parambjb);\r\n/* 59:1134 */ a(paramaqu, BlockList.ironDoor.instance(a(BlockList.ironDoor, 3) + 8), 4, 2, 8, parambjb);\r\n/* 60: */ \r\n/* 61:1136 */ return true;\r\n/* 62: */ }", "title": "" }, { "docid": "dc99d0a487d745641cd4abfd0aa19db2", "score": "0.547032", "text": "public int mo1325d(int r5) {\n /*\n r4 = this;\n int[] r0 = r4.f887a\n r1 = -1\n if (r0 != 0) goto L_0x0006\n return r1\n L_0x0006:\n int r0 = r0.length\n if (r5 < r0) goto L_0x000a\n return r1\n L_0x000a:\n java.util.List<androidx.recyclerview.widget.StaggeredGridLayoutManager$d$a> r0 = r4.f888b\n if (r0 != 0) goto L_0x0010\n L_0x000e:\n r0 = r1\n goto L_0x0046\n L_0x0010:\n androidx.recyclerview.widget.StaggeredGridLayoutManager$d$a r0 = r4.mo1324c(r5)\n if (r0 == 0) goto L_0x001b\n java.util.List<androidx.recyclerview.widget.StaggeredGridLayoutManager$d$a> r2 = r4.f888b\n r2.remove(r0)\n L_0x001b:\n java.util.List<androidx.recyclerview.widget.StaggeredGridLayoutManager$d$a> r0 = r4.f888b\n int r0 = r0.size()\n r2 = 0\n L_0x0022:\n if (r2 >= r0) goto L_0x0034\n java.util.List<androidx.recyclerview.widget.StaggeredGridLayoutManager$d$a> r3 = r4.f888b\n java.lang.Object r3 = r3.get(r2)\n androidx.recyclerview.widget.StaggeredGridLayoutManager$d$a r3 = (androidx.recyclerview.widget.StaggeredGridLayoutManager.C0143d.C0144a) r3\n int r3 = r3.f889e\n if (r3 < r5) goto L_0x0031\n goto L_0x0035\n L_0x0031:\n int r2 = r2 + 1\n goto L_0x0022\n L_0x0034:\n r2 = r1\n L_0x0035:\n if (r2 == r1) goto L_0x000e\n java.util.List<androidx.recyclerview.widget.StaggeredGridLayoutManager$d$a> r0 = r4.f888b\n java.lang.Object r0 = r0.get(r2)\n androidx.recyclerview.widget.StaggeredGridLayoutManager$d$a r0 = (androidx.recyclerview.widget.StaggeredGridLayoutManager.C0143d.C0144a) r0\n java.util.List<androidx.recyclerview.widget.StaggeredGridLayoutManager$d$a> r3 = r4.f888b\n r3.remove(r2)\n int r0 = r0.f889e\n L_0x0046:\n if (r0 != r1) goto L_0x0052\n int[] r0 = r4.f887a\n int r2 = r0.length\n java.util.Arrays.fill(r0, r5, r2, r1)\n int[] r5 = r4.f887a\n int r5 = r5.length\n return r5\n L_0x0052:\n int[] r2 = r4.f887a\n int r0 = r0 + 1\n java.util.Arrays.fill(r2, r5, r0, r1)\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: androidx.recyclerview.widget.StaggeredGridLayoutManager.C0143d.mo1325d(int):int\");\n }", "title": "" }, { "docid": "aa7ce5d12625c11b0fdd7175f98793c7", "score": "0.54469955", "text": "private void sort0(){\n\t\tint n = a.length;\n\t\tfor(int i = 1; i < n; i++ ){\n\t\t\tfor(int j = i ; j > 0 && less(a[j], a[j-1]); j--){\n\t\t\t\texch(j,j-1);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "baa501be4fa299f4110823a2f6ee4fd8", "score": "0.5421204", "text": "public void visitEnd() {\n/* 101 */ Collections.sort(this.tryCatchBlocks, new Comparator<TryCatchBlockNode>()\n/* */ {\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ public int compare(TryCatchBlockNode tryCatchBlockNode1, TryCatchBlockNode tryCatchBlockNode2)\n/* */ {\n/* 109 */ return blockLength(tryCatchBlockNode1) - blockLength(tryCatchBlockNode2);\n/* */ }\n/* */ \n/* */ private int blockLength(TryCatchBlockNode tryCatchBlockNode) {\n/* 113 */ int startIndex = TryCatchBlockSorter.this.instructions.indexOf((AbstractInsnNode)tryCatchBlockNode.start);\n/* 114 */ int endIndex = TryCatchBlockSorter.this.instructions.indexOf((AbstractInsnNode)tryCatchBlockNode.end);\n/* 115 */ return endIndex - startIndex;\n/* */ }\n/* */ });\n/* */ \n/* 119 */ for (int i = 0; i < this.tryCatchBlocks.size(); i++) {\n/* 120 */ ((TryCatchBlockNode)this.tryCatchBlocks.get(i)).updateIndex(i);\n/* */ }\n/* 122 */ if (this.mv != null)\n/* 123 */ accept(this.mv); \n/* */ }", "title": "" }, { "docid": "9087d0f31d5c38a93895a718fdf89230", "score": "0.54189724", "text": "public abstract void preorder();", "title": "" }, { "docid": "7436a6016fb195abf5d5ccf94430ddd3", "score": "0.54156685", "text": "private Integer blocksToMoveHeuristic(BoardState state) {\n\t\tBlock block = state.getBlocks().get(0);\n\t\tSet<Integer> blocks = new HashSet<Integer>();\n\n\t\tif (isGoalState(state)) {\n\t\t\treturn 0;\n\t\t}\n\n\t\tfor (int j = block.getHead().getJ() + 1; j < board[0].length; j++) {\n\t\t\tif (state.getBoard()[block.getHead().getI()][j] != 0) {\n\t\t\t\tblocks.add(state.getBoard()[block.getHead().getI()][j]);\n\t\t\t}\n\t\t}\n\n\t\treturn blocks.size() + 1;\n\n\t}", "title": "" }, { "docid": "e12eea4310082a0b622f7213e34fd885", "score": "0.54025155", "text": "int checkBlockLine(int[] p_76496_1_, int[] p_76496_2_)\n {\n int[] aint2 = new int[] {0, 0, 0};\n byte b0 = 0;\n byte b1;\n\n for (b1 = 0; b0 < 3; ++b0)\n {\n aint2[b0] = p_76496_2_[b0] - p_76496_1_[b0];\n\n if (Math.abs(aint2[b0]) > Math.abs(aint2[b1]))\n {\n b1 = b0;\n }\n }\n\n if (aint2[b1] == 0)\n {\n return -1;\n }\n else\n {\n byte b2 = otherCoordPairs[b1];\n byte b3 = otherCoordPairs[b1 + 3];\n byte b4;\n\n if (aint2[b1] > 0)\n {\n b4 = 1;\n }\n else\n {\n b4 = -1;\n }\n\n double d0 = (double)aint2[b2] / (double)aint2[b1];\n double d1 = (double)aint2[b3] / (double)aint2[b1];\n int[] aint3 = new int[] {0, 0, 0};\n int i = 0;\n int j;\n\n for (j = aint2[b1] + b4; i != j; i += b4)\n {\n aint3[b1] = p_76496_1_[b1] + i;\n aint3[b2] = MathHelper.floor_double((double)p_76496_1_[b2] + (double)i * d0);\n aint3[b3] = MathHelper.floor_double((double)p_76496_1_[b3] + (double)i * d1);\n Block block = this.worldObj.getBlock(aint3[0], aint3[1], aint3[2]);\n\n if (!this.isReplaceable(worldObj, aint3[0], aint3[1], aint3[2]))\n {\n break;\n }\n }\n\n return i == j ? -1 : Math.abs(i);\n }\n }", "title": "" }, { "docid": "f71aa008e611d2242efdbfe4f57ecfa7", "score": "0.5386017", "text": "private List<Block> search(List<Location> seen, Location loc0, Location loc, boolean leaves, boolean outlinedTree)\r\n\t{\r\n\t\tList<Block> result = new ArrayList<>();\r\n\t\t//search directions vary based on the mode\r\n\t\t\r\n\t\tfor(int mode = outlinedTree ? 1 : 0; mode < (leaves ? 2 : 1); mode++)\r\n\t\t{\t\r\n\t\t\tUnitRelativePosition[] relativeLocs;\r\n\t\t\tif(mode == 1)\r\n\t\t\t\trelativeLocs = SEARCH_LEAVES;\r\n\t\t\telse\r\n\t\t\t\trelativeLocs = SEARCH_LOGS;\r\n\t\t\t\r\n\t\t\tfor(int i=0; i<relativeLocs.length; i++)\r\n\t\t\t{\r\n\t\t\t\tLocation neighbor = UnitRelativePosition.apply(relativeLocs[i], loc);\r\n\t\t\t\tint x = neighbor.getBlockX(), y = neighbor.getBlockY(), z = neighbor.getBlockZ();\r\n\t\t\t\tBlock b = neighbor.getWorld().getBlockAt(x, y, z);\r\n\t\t\t\t\r\n\t\t\t\t//check to make sure block hasn't already been processed\r\n\t\t\t\tif(seen.contains(neighbor))\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t\r\n\t\t\t\tif(mode == 0 && !leaves && isLeaves(b)) \r\n\t\t\t\t\t++leavesCount;\r\n\t\t\t\t\r\n\t\t\t\tif(mode == 0 && !isLog(b) || mode == 1 && !(isLeaves(b) || isLog(b)))\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t\r\n\t\t\t\t//another anti-griefing heuristic\r\n\t\t\t\tint dist = -1;\r\n\t\t\t\tif((Boolean)Setting.USE_HEURISTICS.getValue())\r\n\t\t\t\t{\r\n\t\t\t\t\tdist = MathUtil.distSquared(loc0.getBlockX(), loc0.getBlockZ(), x, z);\r\n\t\t\t\t\t//prevent huge capture\r\n\t\t\t\t\tif(dist >= 100)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((Boolean)Setting.DEBUG.getValue())\r\n\t\t\t\t\t\t\tTreeFeller.log(Level.INFO, \"Limit reached at x = \"+x+\",z = \"+z);\r\n\t\t\t\t\t\tcontinue; \t\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif((Boolean) Setting.DEBUG.getValue())\r\n\t\t\t\t\tTreeFeller.log(Level.INFO, \"Processing \"+neighbor+\":\"+b.getType()+\" in mode \"+mode);\r\n\t\t\t\tseen.add(neighbor);\r\n\t\t\t\t\r\n\t\t\t\tif(mode == 1)\r\n\t\t\t\t{\r\n\t\t\t\t\t//the purpose of this code block is to define a region around the tree that is currently being felled\r\n\t\t\t\t\t//this region should not contain any other trees so that the leaves of the other trees are not affected \r\n\t\t\t\t\tif(region != null && !region.contains(x, z))\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\tif(dist == -1)\r\n\t\t\t\t\t\tdist = MathUtil.distSquared(loc0.getBlockX(), loc0.getBlockZ(), x, z);\r\n\t\t\t\t\t\r\n\t\t\t\t\t//this heuristic prevents the algorithm from classifying the base of the tree as the stump of another tree\r\n\t\t\t\t\t//note that this greedy behavior may not always work\r\n\t\t\t\t\tif(isStump(b, true))\r\n\t\t\t\t\t\t\t//&& (!(Boolean)Setting.USE_HEURISTICS.getValue() || dist > 2))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((Boolean)Setting.DEBUG.getValue())\r\n\t\t\t\t\t\t\tTreeFeller.log(Level.INFO, \"Found other tree at \"+neighbor.getX()+\" \"+neighbor.getY()+\" \"+neighbor.getZ());\r\n\t\t\t\t\t\tList<Location> seenOther = new ArrayList<>(100);\r\n\t\t\t\t\t\tList<Block> otherTree = search(seenOther, neighbor, neighbor, false, false);\r\n\t\t\t\t\t\tint closestDist = Integer.MAX_VALUE;\r\n\t\t\t\t\t\tLocation closest = null;\r\n\t\t\t\t\t\tfor(int j=otherTree.size()-1; j>=0; j--)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tBlock treeBlock = otherTree.get(j);\r\n\t\t\t\t\t\t\tLocation tl = treeBlock.getLocation();\r\n\t\t\t\t\t\t\tint logDist = MathUtil.distSquared(tl.getBlockX(), tl.getBlockZ(), loc0.getBlockX(), loc0.getBlockZ());\r\n\t\t\t\t\t\t\tif(logDist < closestDist)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tclosest = tl;\r\n\t\t\t\t\t\t\t\tclosestDist = logDist;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(closest == null && (Boolean)Setting.DEBUG.getValue())\r\n\t\t\t\t\t\t\tTreeFeller.log(Level.WARNING, \"closest = null\");\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(region == null \r\n\t\t\t\t\t\t\t\t|| closest != null && closestDist <= region.getRadiusSquared())\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tUnitRelativePosition relPos = UnitRelativePosition.getRelativePosition(closest, loc0);\r\n\t\t\t\t\t\t\tLocation offset = UnitRelativePosition.apply(relPos, closest);\r\n\t\t\t\t\t\t\tint ox = offset.getBlockX(), oz = offset.getBlockZ();\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t//check to see if this makes the region smaller\r\n\t\t\t\t\t\t\tint candidateDist = MathUtil.distSquared(loc0.getBlockX(), loc0.getBlockZ(), ox, oz);\r\n\t\t\t\t\t\t\tif(region == null)\r\n\t\t\t\t\t\t\t\tregion = new Region(loc0.getBlockX(), loc0.getBlockZ(), candidateDist);\r\n\t\t\t\t\t\t\telse if(candidateDist < region.getRadiusSquared())\r\n\t\t\t\t\t\t\t\tregion.setRadiusSquared(candidateDist);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif((Boolean)Setting.DEBUG.getValue())\r\n\t\t\t\t\t\t\tTreeFeller.log(Level.INFO, \"Region set to \"+region);\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//TreeFeller.log(Level.INFO, \"Recurring on \"+b.getLocation());\r\n\t\t\t\tresult.add(b);\r\n\t\t\t\t\r\n\t\t\t\tList<Block> sub = search(seen, loc0, neighbor, leaves, mode == 1);\r\n\t\t\t\t\r\n\t\t\t\tfor(int j=0; j<sub.size(); j++)\r\n\t\t\t\t{\r\n\t\t\t\t\tBlock near = sub.get(j);\r\n\t\t\t\t\tif(!result.contains(near))\r\n\t\t\t\t\t\tresult.add(near);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//for use with heuristic\r\n\t\t\t\tif(isLeaves(b))\r\n\t\t\t\t\t++leavesCount;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "title": "" }, { "docid": "1643f3f49ba0254753ba16e69b0564ba", "score": "0.5377016", "text": "public void boooo006F006F006Fooo(SecurityPositions var1_1) {\n block28 : {\n if (this.bkk006Bk006Bk006Bk006Bk() == false) return;\n var2_2 = (yhhhyy.yyhhyy)this.bnnnnn006E006E006En;\n var3_3 = hhyhyy.bppp00700070p00700070p;\n var4_4 = var3_3 * (var3_3 + hhyhyy.b0070pp00700070p00700070p);\n var5_5 = hhyhyy.class.getMethod(uxxxxx.bb00620062bb0062b0062b0062(\"Wc#\\\"'6\\u001f\\u001e#2\\u001b\\u001a\\u001f.V\\u0016\\u0015\\u001a)\\u0012\\u0011\\u0016%MLK\", '\\u000b', '\\u0003'), new Class[0]);\n var6_6 = new Object[]{};\n try {\n var8_7 = var5_5.invoke(null, var6_6);\n }\n catch (InvocationTargetException var7_37) {\n throw var7_37.getCause();\n }\n switch (var4_4 % (Integer)var8_7) {\n default: {\n var40_8 = hhyhyy.class.getMethod(uxxxxx.bb00620062bb0062b0062b0062(\"\\u000b\\u0019\\u001a[\\\\ct_`gx#del}hip\\u0002,-.\", '(', '\\u0002'), new Class[0]);\n var41_9 = new Object[]{};\n var43_10 = var40_8.invoke(null, var41_9);\n hhyhyy.bppp00700070p00700070p = (Integer)var43_10;\n var44_11 = hhyhyy.class.getMethod(uxxxxx.bbbb0062b0062b0062b0062(\"\\u0019'(ijq\\u0003mnu\\u00071rsz\\fvw~\\u0010:;<\", '\\u00e5', '0', '\\u0002'), new Class[0]);\n var45_12 = new Object[]{};\n var47_13 = var44_11.invoke(null, var45_12);\n hhyhyy.b00700070p00700070p00700070p = (Integer)var47_13;\n }\n case 0: \n }\n if (var2_2.isActivityFinishing()) {\n return;\n }\n var9_18 = new ehhhhe();\n var10_19 = hhyhyy.class.getMethod(uxxxxx.bbbb0062b0062b0062b0062(\",xw|\\ftsx\\bpot\\u0004lkp(gfkzcbgv\\u001f\\u001e\\u001d\", '{', '\\u00c4', '\\u0001'), new Class[]{SecurityPositions.class});\n var11_20 = new Object[]{var1_1};\n try {\n var13_21 = var10_19.invoke(this, var11_20);\n var14_22 = (Boolean)var13_21;\n if ((hhyhyy.bppp00700070p00700070p + hhyhyy.b0070pp00700070p00700070p) * hhyhyy.bppp00700070p00700070p % hhyhyy.bp0070p00700070p00700070p == hhyhyy.b00700070p00700070p00700070p) break block28;\n hhyhyy.bppp00700070p00700070p = 25;\n var36_23 = hhyhyy.class.getMethod(uxxxxx.bb00620062bb0062b0062b0062(\"?KJ\\n\\t\\u000e\\u001d\\u0006\\u0005\\n\\u0019A\\u0001\\u0005\\u0014|{\\u0001\\u0010876\", 'Q', '\\u0004'), new Class[0]);\n }\n catch (InvocationTargetException var12_43) {\n throw var12_43.getCause();\n }\n var37_24 = new Object[]{};\n try {\n var39_25 = var36_23.invoke(null, var37_24);\n hhyhyy.b00700070p00700070p00700070p = (Integer)var39_25;\n }\n catch (InvocationTargetException var38_35) {\n throw var38_35.getCause();\n }\n }\n if (!var14_22) {\n ((yhhhyy.yyhhyy)this.bnnnnn006E006E006En).displayNoTransactionsLabel();\n return;\n }\n var15_26 = var1_1.getSecurityPositions();\n var16_27 = var15_26.iterator();\n ** GOTO lbl54\n catch (InvocationTargetException var42_45) {\n throw var42_45.getCause();\n }\n catch (InvocationTargetException var46_46) {\n throw var46_46.getCause();\n }\nlbl54: // 3 sources:\n while (var16_27.hasNext()) {\n var28_28 = var16_27.next();\n if (var28_28.getSecurity().getCategories() != null && var9_18.boo006Fo006F006F006F006F006Fo(var28_28.getSecurity().getCategories().getAssetClass())) continue;\n var29_29 = var28_28.getSecurity().getCategories();\n var30_30 = uxxxxx.bb00620062bb0062b0062b0062(\"\\u0007\\u001b\\u001a\\u0019\\u0018ONTSKJPO\\u000fFEKJBAGF\\u0006\", '\\u00f2', '\\u0005');\n var31_31 = new Class[]{String.class, Character.TYPE, Character.TYPE};\n var32_32 = ppphhp.class.getMethod(var30_30, var31_31);\n var33_33 = new Object[]{\"IJML\", Character.valueOf(']'), Character.valueOf('\\u0000')};\n try {\n var35_34 = var32_32.invoke(null, var33_33);\n }\n catch (InvocationTargetException var34_36) {\n throw var34_36.getCause();\n }\n var29_29.setAssetClass((String)var35_34);\n }\n Collections.sort(var15_26, new /* Unavailable Anonymous Inner Class!! */);\n Collections.sort(var15_26, new /* Unavailable Anonymous Inner Class!! */);\n ((yhhhyy.yyhhyy)this.bnnnnn006E006E006En).displayTransactions(var1_1);\n var17_38 = hhyhyy.bppp00700070p00700070p;\n switch (var17_38 * (var17_38 + hhyhyy.b0070pp00700070p00700070p) % hhyhyy.bp0070p00700070p00700070p) {\n default: {\n var24_39 = hhyhyy.class.getMethod(uxxxxx.bbbb0062b0062b0062b0062(\"!-,kjo~gfkz#bafu^]bq\\u001a\\u0019\\u0018\", 'c', '\\\"', '\\u0001'), new Class[0]);\n var25_40 = new Object[]{};\n var27_41 = var24_39.invoke(null, var25_40);\n hhyhyy.bppp00700070p00700070p = (Integer)var27_41;\n hhyhyy.b00700070p00700070p00700070p = 55;\n }\n case 0: \n }\n {\n do {\n null.length();\n } while (true);\n }\n catch (InvocationTargetException var26_42) {\n throw var26_42.getCause();\n }\n }\n}", "title": "" }, { "docid": "11f403194da2d73a8f0cef9f9622aab9", "score": "0.53678375", "text": "void generateTrunk()\n {\n int i = this.basePos[0];\n int j = this.basePos[1];\n int k = this.basePos[1] + this.height;\n int l = this.basePos[2];\n int[] aint = new int[] {i, j, l};\n int[] aint1 = new int[] {i, k, l};\n this.func_150530_a(aint, aint1, RidiculousBlocks.treeLogs);\n\n if (this.trunkSize == 2)\n {\n ++aint[0];\n ++aint1[0];\n this.func_150530_a(aint, aint1, RidiculousBlocks.treeLogs);\n ++aint[2];\n ++aint1[2];\n this.func_150530_a(aint, aint1, RidiculousBlocks.treeLogs);\n aint[0] += -1;\n aint1[0] += -1;\n this.func_150530_a(aint, aint1, RidiculousBlocks.treeLogs);\n }\n }", "title": "" }, { "docid": "1b2541a181934cec92b0cb7be5d46c36", "score": "0.5337504", "text": "static void two_opt_first(ArrayList<Integer> tour) {\n\t\tboolean gotoExchange = false;\n\t\n\t\tint c1, c2; /* cities considered for an exchange */\n\t\tint s_c1, s_c2; /* successor cities of c1 and c2 */\n\t\tint p_c1, p_c2; /* predecessor cities of c1 and c2 */\n\t\tint pos_c1, pos_c2; /* positions of cities c1, c2 */\n\t\tint i, j, h, l;\n\t\tint help;\n\t\tboolean improvement_flag;\n\t\tint countImprovement;\n\t\tint h1 = 0, h2 = 0, h3 = 0, h4 = 0;\n\t\tdouble radius; /* radius of nn-search */\n\t\tdouble gain = 0.0;\n\t\tint[] random_vector;\n\t\tHashMap<Integer, Integer> pos; /* positions of cities in tour */\n\t\tHashMap<Integer, Boolean> dlb; /* contains don't look bits */\n\t\t\n\t\tpos = new HashMap<Integer, Integer>(tour.size() - 1);\n\t\tdlb = new HashMap<Integer, Boolean>(tour.size() - 1);\n\t\tfor (i = 0; i < tour.size() - 1; i++) {\n\t\t pos.put(tour.get(i), i);\n\t\t dlb.put(tour.get(i), false);\n\t\t}\n\t\n\t\timprovement_flag = true;\n\t\tcountImprovement = 0;\n\t\trandom_vector = generate_random_permutation(tour);\n\t\n\t\twhile (improvement_flag) {\n\t\t\tif (countImprovement > 50) {\n\t\t\t\t//System.out.println(\"Exiting from loop..\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t improvement_flag = false;\n\t\n\t\t for (l = 0; l < tour.size() - 1; l++) {\n\t\t\t\tc1 = random_vector[l];\n\t\t\t\tif (dlb_flag && dlb.get(c1))\n\t\t\t\t continue;\n\t\t\t\tpos_c1 = pos.get(c1);\n\t\t\t\ts_c1 = tour.get(pos_c1 + 1);\n\t\t\t\tradius = MTsp.instance.distance[c1 + 1][s_c1 + 1];\n\t\t\n\t\t\t\t/* First search for c1's nearest neighbours, use successor of c1 */\n\t\t\t\tfor (h = 0; h < nn_ls; h++) {\n\t\t\t\t c2 = MTsp.instance.nn_list_all[c1 + 1][h]; /* exchange partner, determine its position */\n\t\t\t\t //make sure that c2 is in the same subtour with c1; if it isn't choose another element\n\t\t\t\t if (pos.get(c2 - 1) == null) {\n\t\t\t\t \tcontinue;\n\t\t\t\t }\n\t\t\t\t if (radius > MTsp.instance.distance[c1 + 1][c2]) {\n\t\t\t\t\t\ts_c2 = tour.get(pos.get(c2 - 1) + 1);\n\t\t\t\t\t\tgain = -radius + MTsp.instance.distance[c1 + 1][c2] + MTsp.instance.distance[s_c1 + 1][s_c2 + 1]\n\t\t\t\t\t\t\t- MTsp.instance.distance[c2][s_c2 + 1];\n\t\t\t\t\t\tif (gain < 0) {\n\t\t\t\t\t\t h1 = c1;\n\t\t\t\t\t\t h2 = s_c1;\n\t\t\t\t\t\t h3 = c2 - 1;\n\t\t\t\t\t\t h4 = s_c2;\n\t\t\t\t\t\t gotoExchange = true;\n\t\t\t\t\t\t break;\n\t\t\t\t\t\t}\n\t\t\t\t } else\n\t\t\t\t \tbreak;\n\t\t\t\t}\n\t\t\n\t\t\t\tif (gotoExchange) {\n\t\t\t\t /* Search one for next c1's h-nearest neighbours, use predecessor c1 */\n\t\t\t\t if (pos_c1 > 0)\n\t\t\t\t \tp_c1 = tour.get(pos_c1 - 1);\n\t\t\t\t else\n\t\t\t\t \tp_c1 = tour.get(tour.size() - 2);\n\t\t\t\t radius = MTsp.instance.distance[p_c1 + 1][c1 + 1];\n\t\t\t\t for (h = 0; h < nn_ls; h++) {\n\t\t\t\t\t\tc2 = MTsp.instance.nn_list_all[c1 + 1][h]; /* exchange partner, determine its position */\n\t\t\t\t\t\t//make sure that c2 is in the same subtour with c1; if it isn't choose another element\n\t\t\t\t\t if (pos.get(c2 - 1) == null) {\n\t\t\t\t\t \tcontinue;\n\t\t\t\t\t }\n\t\t\t\t\t\tif (radius > MTsp.instance.distance[c1 + 1][c2]) {\n\t\t\t\t\t\t pos_c2 = pos.get(c2 - 1);\n\t\t\t\t\t\t if (pos_c2 > 0)\n\t\t\t\t\t\t \tp_c2 = tour.get(pos_c2 - 1);\n\t\t\t\t\t\t else\n\t\t\t\t\t\t \tp_c2 = tour.get(tour.size() - 2);\n\t\t\t\t\t\t if (p_c2 == c1)\n\t\t\t\t\t\t \tcontinue;\n\t\t\t\t\t\t if (p_c1 == (c2 - 1))\n\t\t\t\t\t\t \tcontinue;\n\t\t\t\t\t\t gain = -radius + MTsp.instance.distance[c1 + 1][c2] + MTsp.instance.distance[p_c1 + 1][p_c2 + 1]\n\t\t\t\t\t\t\t - MTsp.instance.distance[p_c2 + 1][c2];\n\t\t\t\t\t\t if (gain < 0) {\n\t\t\t\t\t\t\t\th1 = p_c1;\n\t\t\t\t\t\t\t\th2 = c1;\n\t\t\t\t\t\t\t\th3 = p_c2;\n\t\t\t\t\t\t\t\th4 = c2 - 1;\n\t\t\t\t\t\t\t\tgotoExchange = true;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t }\n\t\t\t\t\t\t} else\n\t\t\t\t\t\t break;\n\t\t\t\t }\n\t\t\t\t}\n\t\t\n\t\t\t\tif (!gotoExchange) {\n\t\t\t\t /* No exchange */\n\t\t\t\t dlb.put(c1, true);\n\t\t\t\t continue;\n\t\t\t\t}\n\t\t\n\t\t\t\tif (gotoExchange) {\n\t\t\t\t gotoExchange = false;\n\t\t\t\t improvement_flag = true;\n\t\t\t\t countImprovement++;\n\t\t\t\t //System.out.println(\"countImprovement=\" + countImprovement);\n\t\t\t\t dlb.put(h1, false);\n\t\t\t\t dlb.put(h2, false);\n\t\t\t\t dlb.put(h3, false);\n\t\t\t\t dlb.put(h4, false);\n\t\t\t\t /* Now perform move */\n\t\t\t\t if (pos.get(h3) < pos.get(h1)) {\n\t\t\t\t\t\thelp = h1;\n\t\t\t\t\t\th1 = h3;\n\t\t\t\t\t\th3 = help;\n\t\t\t\t\t\thelp = h2;\n\t\t\t\t\t\th2 = h4;\n\t\t\t\t\t\th4 = help;\n\t\t\t\t }\n\t\t\t\t if (pos.get(h3) - pos.get(h2) < (tour.size() - 1) / 2 + 1) {\n\t\t\t\t\t\t/* reverse inner part from pos[h2] to pos[h3] */\n\t\t\t\t\t\ti = pos.get(h2);\n\t\t\t\t\t\tj = pos.get(h3);\n\t\t\t\t\t\t//System.out.println(\"i=\" + i + \" j=\" + j);\n\t\t\t\t\t\tif (i >= j) {\n\t\t\t\t\t\t\t//System.out.println(\"Got here..\");\n\t\t\t\t\t\t\t//countImprovement--;\n\t\t\t\t\t\t}\n\t\t\t\t\t\twhile (i < j) {\n\t\t\t\t\t\t c1 = tour.get(i);\n\t\t\t\t\t\t c2 = tour.get(j);\n\t\t\t\t\t\t tour.set(i, c2);\n\t\t\t\t\t\t tour.set(j, c1);\n\t\t\t\t\t\t pos.put(c1, j);\n\t\t\t\t\t\t pos.put(c2, i);\n\t\t\t\t\t\t i++;\n\t\t\t\t\t\t j--;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//System.out.println(\"Improvement applied->case 1..\");\n\t\t\t\t } else {\n\t\t\t\t\t\t/* reverse outer part from pos[h4] to pos[h1] */\n\t\t\t\t\t\ti = pos.get(h1);\n\t\t\t\t\t\tj = pos.get(h4);\n\t\t\t\t\t\tif (j > i)\n\t\t\t\t\t\t help = tour.size() - (j - i);\n\t\t\t\t\t\telse\n\t\t\t\t\t\t help = (i - j) + 1;\n\t\t\t\t\t\thelp = help / 2;\n\t\t\t\t\t\tfor (h = 0; h < help; h++) {\n\t\t\t\t\t\t c1 = tour.get(i);\n\t\t\t\t\t\t c2 = tour.get(j);\n\t\t\t\t\t\t tour.set(i, c2);\n\t\t\t\t\t\t tour.set(j, c1);\n\t\t\t\t\t\t pos.put(c1, j);\n\t\t\t\t\t\t pos.put(c2, i);\n\t\t\t\t\t\t i--;\n\t\t\t\t\t\t j++;\n\t\t\t\t\t\t if (i < 0)\n\t\t\t\t\t\t \ti = tour.size() - 2;\n\t\t\t\t\t\t if (j >= tour.size() - 1)\n\t\t\t\t\t\t \tj = 0;\n\t\t\t\t\t\t}\n\t\t\t\t\t\ttour.set(tour.size() - 1, tour.get(0));\n\t\t\t\t\t\t//System.out.println(\"Improvement applied->case 2..\");\n\t\t\t\t }\n\t\t\t\t} else {\n\t\t\t\t dlb.put(c1, true);\n\t\t\t\t}\n\t\n\t\t }\n\t\t}\n\n }", "title": "" }, { "docid": "ae7cccbc2e14c4365876a81e3c3f2e77", "score": "0.53374946", "text": "private void insertionSort(){\n\t\tfor (int e=1; e<numBots;e++){\r\n\t\t\t//int e=2;\r\n\t\t\t\r\n\t\t\tfor (int d=e-1;d>-1;d--){\r\n\t\t\t\tif(bots.get(d+1).getNumBeeps()<bots.get(d).getNumBeeps()){\r\n\t\t\t\t\tswapBots(bots.get(d+1),bots.get(d));\r\n\t\t\t\t\tSortableRobot temp=bots.get(d+1);\r\n\t\t\t\t\tbots.set(d+1, bots.get(d));\r\n\t\t\t\t\tbots.set(d, temp);\r\n\t\t\t\t\t//counter++;\r\n\t\t\t\t\t\r\n\t\t\t\t\t//slide em over\r\n\t\t\t\t\tshowMeTheBeeps(e);\r\n\t\t\t\tdontShowMeTheBeeps(e);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\telse{\r\n\t\t\t\t\t//insert\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "78383104b3875c1b101002582aaf536d", "score": "0.53171015", "text": "final int findSortIndex(MarkData paramMarkData) {\n/* 530 */ int i = 0;\n/* 531 */ int j = this.marks.size() - 1;\n/* 532 */ int k = 0;\n/* */ \n/* 534 */ if (j == -1) {\n/* 535 */ return 0;\n/* */ }\n/* */ \n/* */ \n/* 539 */ MarkData markData = this.marks.elementAt(j);\n/* 540 */ int m = compare(paramMarkData, markData);\n/* 541 */ if (m > 0) {\n/* 542 */ return j + 1;\n/* */ }\n/* 544 */ while (i <= j) {\n/* 545 */ k = i + (j - i) / 2;\n/* 546 */ MarkData markData1 = this.marks.elementAt(k);\n/* 547 */ m = compare(paramMarkData, markData1);\n/* */ \n/* 549 */ if (m == 0)\n/* */ {\n/* 551 */ return k; } \n/* 552 */ if (m < 0) {\n/* 553 */ j = k - 1; continue;\n/* */ } \n/* 555 */ i = k + 1;\n/* */ } \n/* */ \n/* */ \n/* */ \n/* 560 */ return (m < 0) ? k : (k + 1);\n/* */ }", "title": "" }, { "docid": "2540e7124e8a748c98f9766d025f7255", "score": "0.5313515", "text": "void sortSquidL(Squid[] a, int many) {\n for (int m = many; m > 1; m--) {\n int k = 0;\n for (int j = 1; j<m; j++) {\n if (a[j].legs > a[k].legs) k = j;\n }\n swapSquid(a, m-1, k);\n }\n}", "title": "" }, { "docid": "04c56aaf2cf4ad99407e19d0f48ac25a", "score": "0.53018624", "text": "void preOrder();", "title": "" }, { "docid": "91ed777fb8ae57e4c70b328df3bc70e5", "score": "0.5292525", "text": "public void func_70299_a(int par1, ItemStack par2ItemStack)\n/* */ {\n/* 131 */ this.furnaceItemStacks[par1] = par2ItemStack;\n/* */ \n/* 133 */ if ((par2ItemStack != null) && (par2ItemStack.field_77994_a > func_70297_j_()))\n/* */ {\n/* 135 */ par2ItemStack.field_77994_a = func_70297_j_();\n/* */ }\n/* */ }", "title": "" }, { "docid": "e317a71f3a9909ad50735e0adde56f73", "score": "0.52908826", "text": "public T put(long var1_1, T var3_2) {\n block4 : {\n var4_3 = (int)(var1_1 & (long)this.mask);\n var5_4 = this.table[var4_3];\n do {\n if (var5_4 == null) {\n this.table[var4_3] = new Entry(var1_1, var3_2, this.table[var4_3]);\n var7_5 = this.size;\n this.size = var7_5 + 1;\n if (var7_5 < this.threshold) return null;\n break block4;\n }\n if (var5_4.key == var1_1) break;\n var5_4 = var5_4.next;\n } while (true);\n var6_14 = var5_4.value;\n var5_4.value = var3_2;\n return var6_14;\n }\n var8_6 = 2 * this.capacity;\n var9_7 = new Entry[var8_6];\n var10_8 = this.table;\n var11_9 = var8_6 - 1;\n var12_10 = 0;\n do {\n ** if (var12_10 >= var10_8.length) goto lbl26\nlbl24: // 1 sources:\n ** if ((var13_11 = var10_8[var12_10]) == null) goto lbl38\nlbl25: // 1 sources:\n ** GOTO lbl31\nlbl26: // 1 sources:\n this.table = var9_7;\n this.capacity = var8_6;\n this.threshold = (int)((float)var8_6 * this.loadFactor);\n this.mask = -1 + this.capacity;\n return null;\nlbl31: // 1 sources:\n var10_8[var12_10] = null;\n do {\n var14_12 = var13_11.next;\n var15_13 = (int)(var13_11.key & (long)var11_9);\n var13_11.next = var9_7[var15_13];\n var9_7[var15_13] = var13_11;\n } while ((var13_11 = var14_12) != null);\nlbl38: // 2 sources:\n ++var12_10;\n } while (true);\n }", "title": "" }, { "docid": "d0a50609234726f2b3ce92605a7feb30", "score": "0.52826387", "text": "public ur b(qx player, int i)\r\n/* 44: */ {\r\n/* 45:36 */ ur itemstack = null;\r\n/* 46:37 */ sr slot = (sr)this.c.get(i);\r\n/* 47:38 */ if ((slot != null) && (slot.d()))\r\n/* 48: */ {\r\n/* 49:39 */ ur itemstack1 = slot.c();\r\n/* 50:40 */ itemstack = itemstack1.l();\r\n/* 51:41 */ if (i < 9)\r\n/* 52: */ {\r\n/* 53:42 */ if (!a(itemstack1, 9, 45, true)) {\r\n/* 54:43 */ return null;\r\n/* 55: */ }\r\n/* 56: */ }\r\n/* 57:45 */ else if (!a(itemstack1, 0, 9, false)) {\r\n/* 58:46 */ return null;\r\n/* 59: */ }\r\n/* 60:48 */ if (itemstack1.a == 0) {\r\n/* 61:49 */ slot.c(null);\r\n/* 62: */ } else {\r\n/* 63:51 */ slot.e();\r\n/* 64: */ }\r\n/* 65:53 */ if (itemstack1.a != itemstack.a) {\r\n/* 66:54 */ slot.a(player, itemstack1);\r\n/* 67: */ } else {\r\n/* 68:56 */ return null;\r\n/* 69: */ }\r\n/* 70: */ }\r\n/* 71:59 */ return itemstack;\r\n/* 72: */ }", "title": "" }, { "docid": "e4c2b3c82568f5ee1fb8827db67f3328", "score": "0.52759075", "text": "private void fallbackSort(int last) {\n data.block[0] = data.block[last + 1];\n fallbackSortImpl(last + 1);\n\n for (int i = 0; i < last + 1; i++)\n --data.fmap[i];\n\n for (int i = 0; i < last + 1; i++) {\n if (data.fmap[i] != -1)\n continue;\n\n data.fmap[i] = last;\n break;\n }\n }", "title": "" }, { "docid": "b1df26d5a5f510a4119b1945411f2ed9", "score": "0.52703583", "text": "private void lruAlgorithm() {\n int pointer = -1;\n LinkedList<Integer> lstPageRepl = new LinkedList<>();\n for (int i = 0; i < pageAccess.length; i++) {\n if(i != 0)\n lruCopyHistory(i-1, i);\n\n if(lstPageRepl.contains(pageAccess[i])) {\n lstPageRepl.remove(lstPageRepl.indexOf(pageAccess[i]));\n lstPageRepl.addFirst(pageAccess[i]);\n allLinkedListsHistory.add(new LinkedList<>(lstPageRepl));\n continue;\n }\n\n if(lstPageRepl.size() < amountPageFrames) {\n pointer++;\n }\n else {\n int toReplace = lstPageRepl.getLast();\n Integer[] actualArrayHistory = IntStream.of( pageReplacementHistory[i] ).boxed().toArray( Integer[]::new );\n pointer = Arrays.asList(actualArrayHistory).indexOf(toReplace);\n lstPageRepl.removeLast();\n }\n lstPageRepl.addFirst(pageAccess[i]);\n pageReplacementHistory[i][pointer] = pageAccess[i];\n allLinkedListsHistory.add(new LinkedList<>(lstPageRepl));\n }\n }", "title": "" }, { "docid": "5dd708353f4783c2f04cf6e7568fde3d", "score": "0.52651733", "text": "public ur b(qx player, int i)\r\n/* 45: */ {\r\n/* 46:35 */ ur itemstack = null;\r\n/* 47:36 */ sr slot = (sr)this.c.get(i);\r\n/* 48:37 */ if ((slot != null) && (slot.d()))\r\n/* 49: */ {\r\n/* 50:38 */ ur itemstack1 = slot.c();\r\n/* 51:39 */ itemstack = itemstack1.l();\r\n/* 52:40 */ if (i < 9)\r\n/* 53: */ {\r\n/* 54:41 */ if (!a(itemstack1, 9, 45, true)) {\r\n/* 55:42 */ return null;\r\n/* 56: */ }\r\n/* 57: */ }\r\n/* 58:44 */ else if (!a(itemstack1, 0, 9, false)) {\r\n/* 59:45 */ return null;\r\n/* 60: */ }\r\n/* 61:47 */ if (itemstack1.a == 0) {\r\n/* 62:48 */ slot.c(null);\r\n/* 63: */ } else {\r\n/* 64:50 */ slot.e();\r\n/* 65: */ }\r\n/* 66:52 */ if (itemstack1.a != itemstack.a) {\r\n/* 67:53 */ slot.a(player, itemstack1);\r\n/* 68: */ } else {\r\n/* 69:55 */ return null;\r\n/* 70: */ }\r\n/* 71: */ }\r\n/* 72:58 */ return itemstack;\r\n/* 73: */ }", "title": "" }, { "docid": "64eab175a3f3aea96033eade29b5da80", "score": "0.52643365", "text": "public ABObject computeFinalBlocks2() {\n ArrayList<ABObject> allBlocks = getAllBlocks();\n if(pigs != null)\n allBlocks.addAll(pigs);\n ArrayList<ABObject> piggies = new ArrayList<ABObject>();\n if(pigs != null)\n piggies.addAll(pigs);\n\n Point total_com = getCenterOfMass(allBlocks);\n Point pigs_com = getCenterOfMass(piggies);\n System.out.println(\"Totol COM \" + total_com);\n System.out.println(\"Pig COM \" + pigs_com);\n\n System.out.println(\"Distance Pig COM and Total Com \" + (distance(pigs_com, total_com)));\n if(distance(pigs_com, total_com) < 70 || true)\n {\n ABObject top_target = topToppleTarget(total_com);\n ABObject bottom_target = bottomSlideTarget(total_com);\n System.out.println(\"top_tagert X: \" + ((top_target)));\n System.out.println(\"bootom_tagert X: \" + ((bottom_target)));\n\n if(top_target!=null)\n return top_target;\n else if(bottom_target!=null)\n return bottom_target;\n }\n return null;\n }", "title": "" }, { "docid": "d16759d2069d172d01891d7ad7f81427", "score": "0.52624166", "text": "public void sort() {\n\t\tfor(int i = 0; i < rij.length-1; i++){\n\t\t\tint min = i;\n\t\t\tfor(int j = i+1; j <rij.length; j++){\n\t\t\t\tinCreaseCompares();\n\t\t\t\tif(isLess(j, min)){\n\t\t\t\t\tmin = j;\n\t\t\t\t}\n\t\t\t}\n\t\t\tswitchPlace(i, min);\n\t\t}\n\t\t\t\n\t}", "title": "" }, { "docid": "5785027cfb00faed9f0d7e9ba1f4c158", "score": "0.5253613", "text": "void hoareQuickSortTailCall(int arr[], int l, int h){\n Begin:\n if(l<h){\n int p = hoarePartition(arr, l , h);\n hoareQuickSortTailCall(arr,l,p);\n l = p + 1;\n //goto Begin;\n }\n }", "title": "" }, { "docid": "07c8f6a2827b0c5514c554039c0a0cf1", "score": "0.5251624", "text": "private void deepEnterSequence_main_Movement_Move_Composite_Init_SpeedUp_MaxSpeed_Red_Green_CheckSpeed_SpeedUpUntilLimit_AccelerateUnderYellow_Yellow_inner_region() {\n\t\tswitch (historyVector[0]) {\n\t\tcase main_Movement_Move_Composite_Init_SpeedUp_MaxSpeed_Red_Green_CheckSpeed_SpeedUpUntilLimit_AccelerateUnderYellow_Yellow_inner_region_Init:\n\t\t\tenterSequence_main_Movement_Move_Composite_Init_SpeedUp_MaxSpeed_Red_Green_CheckSpeed_SpeedUpUntilLimit_AccelerateUnderYellow_Yellow_inner_region_Init_default();\n\t\t\tbreak;\n\t\tcase main_Movement_Move_Composite_Init_SpeedUp_MaxSpeed_Red_Green_CheckSpeed_SpeedUpUntilLimit_AccelerateUnderYellow_Yellow_inner_region_SpeedUp:\n\t\t\tenterSequence_main_Movement_Move_Composite_Init_SpeedUp_MaxSpeed_Red_Green_CheckSpeed_SpeedUpUntilLimit_AccelerateUnderYellow_Yellow_inner_region_SpeedUp_default();\n\t\t\tbreak;\n\t\tcase main_Movement_Move_Composite_Init_SpeedUp_MaxSpeed_Red_Green_CheckSpeed_SpeedUpUntilLimit_AccelerateUnderYellow_Yellow_inner_region_MaxSpeed:\n\t\t\tenterSequence_main_Movement_Move_Composite_Init_SpeedUp_MaxSpeed_Red_Green_CheckSpeed_SpeedUpUntilLimit_AccelerateUnderYellow_Yellow_inner_region_MaxSpeed_default();\n\t\t\tbreak;\n\t\tcase main_Movement_Move_Composite_Init_SpeedUp_MaxSpeed_Red_Green_CheckSpeed_SpeedUpUntilLimit_AccelerateUnderYellow_Yellow_inner_region_Red:\n\t\t\tenterSequence_main_Movement_Move_Composite_Init_SpeedUp_MaxSpeed_Red_Green_CheckSpeed_SpeedUpUntilLimit_AccelerateUnderYellow_Yellow_inner_region_Red_default();\n\t\t\tbreak;\n\t\tcase main_Movement_Move_Composite_Init_SpeedUp_MaxSpeed_Red_Green_CheckSpeed_SpeedUpUntilLimit_AccelerateUnderYellow_Yellow_inner_region_Green:\n\t\t\tenterSequence_main_Movement_Move_Composite_Init_SpeedUp_MaxSpeed_Red_Green_CheckSpeed_SpeedUpUntilLimit_AccelerateUnderYellow_Yellow_inner_region_Green_default();\n\t\t\tbreak;\n\t\tcase main_Movement_Move_Composite_Init_SpeedUp_MaxSpeed_Red_Green_CheckSpeed_SpeedUpUntilLimit_AccelerateUnderYellow_Yellow_inner_region_CheckSpeed:\n\t\t\tenterSequence_main_Movement_Move_Composite_Init_SpeedUp_MaxSpeed_Red_Green_CheckSpeed_SpeedUpUntilLimit_AccelerateUnderYellow_Yellow_inner_region_CheckSpeed_default();\n\t\t\tbreak;\n\t\tcase main_Movement_Move_Composite_Init_SpeedUp_MaxSpeed_Red_Green_CheckSpeed_SpeedUpUntilLimit_AccelerateUnderYellow_Yellow_inner_region_Accelerate:\n\t\t\tenterSequence_main_Movement_Move_Composite_Init_SpeedUp_MaxSpeed_Red_Green_CheckSpeed_SpeedUpUntilLimit_AccelerateUnderYellow_Yellow_inner_region_Accelerate_default();\n\t\t\tbreak;\n\t\tcase main_Movement_Move_Composite_Init_SpeedUp_MaxSpeed_Red_Green_CheckSpeed_SpeedUpUntilLimit_AccelerateUnderYellow_Yellow_inner_region_AccelerateUnderYellow:\n\t\t\tenterSequence_main_Movement_Move_Composite_Init_SpeedUp_MaxSpeed_Red_Green_CheckSpeed_SpeedUpUntilLimit_AccelerateUnderYellow_Yellow_inner_region_AccelerateUnderYellow_default();\n\t\t\tbreak;\n\t\tcase main_Movement_Move_Composite_Init_SpeedUp_MaxSpeed_Red_Green_CheckSpeed_SpeedUpUntilLimit_AccelerateUnderYellow_Yellow_inner_region_Yellow:\n\t\t\tenterSequence_main_Movement_Move_Composite_Init_SpeedUp_MaxSpeed_Red_Green_CheckSpeed_SpeedUpUntilLimit_AccelerateUnderYellow_Yellow_inner_region_Yellow_default();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t}", "title": "" }, { "docid": "1cfcc80cd17381209cba426a516fe1ed", "score": "0.5232333", "text": "private void func_175923_a(World worldIn, BlockPos p_175923_2_, int p_175923_3_) {\n/* 240 */ func_175905_a(worldIn, p_175923_2_, Blocks.vine, p_175923_3_);\n/* 241 */ int var4 = 4;\n/* */ \n/* 243 */ for (p_175923_2_ = p_175923_2_.offsetDown(); worldIn.getBlockState(p_175923_2_).getBlock().getMaterial() == Material.air && var4 > 0; var4--) {\n/* */ \n/* 245 */ func_175905_a(worldIn, p_175923_2_, Blocks.vine, p_175923_3_);\n/* 246 */ p_175923_2_ = p_175923_2_.offsetDown();\n/* */ } \n/* */ }", "title": "" }, { "docid": "bbd349e6e54e8dc2974e9cc799af55e9", "score": "0.52301526", "text": "public void func_145845_h()\n/* */ {\n/* 322 */ boolean flag = this.furnaceBurnTime > 0;\n/* 323 */ boolean flag1 = false;\n/* 324 */ this.count += 1;\n/* 325 */ if (this.furnaceBurnTime > 0)\n/* */ {\n/* 327 */ this.furnaceBurnTime -= 1;\n/* */ }\n/* */ \n/* 330 */ if (!this.field_145850_b.field_72995_K)\n/* */ {\n/* 332 */ if (this.bellows < 0) { getBellows();\n/* */ }\n/* 334 */ if ((this.count % (this.speedBoost ? 20 : 40) == 0) && (this.aspects.size() > 0)) {\n/* 335 */ AspectList exlude = new AspectList();\n/* 336 */ int deep = 0;\n/* 337 */ TileEntity tile = null;\n/* 338 */ while (deep < 5) {\n/* 339 */ deep++;\n/* 340 */ tile = this.field_145850_b.func_147438_o(this.field_145851_c, this.field_145848_d + deep, this.field_145849_e);\n/* 341 */ if (!(tile instanceof TileAlembic)) break;\n/* 342 */ TileAlembic alembic = (TileAlembic)tile;\n/* 343 */ if ((alembic.aspect != null) && (alembic.amount < alembic.maxAmount) && (this.aspects.getAmount(alembic.aspect) > 0)) {\n/* 344 */ takeFromContainer(alembic.aspect, 1);\n/* 345 */ alembic.addToContainer(alembic.aspect, 1);\n/* 346 */ exlude.merge(alembic.aspect, 1);\n/* 347 */ this.field_145850_b.func_147471_g(this.field_145851_c, this.field_145848_d, this.field_145849_e);\n/* 348 */ this.field_145850_b.func_147471_g(this.field_145851_c, this.field_145848_d + deep, this.field_145849_e);\n/* */ }\n/* 350 */ tile = null;\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* 356 */ deep = 0;\n/* 357 */ while (deep < 5) {\n/* 358 */ deep++;\n/* 359 */ tile = this.field_145850_b.func_147438_o(this.field_145851_c, this.field_145848_d + deep, this.field_145849_e);\n/* 360 */ if (!(tile instanceof TileAlembic)) break;\n/* 361 */ TileAlembic alembic = (TileAlembic)tile;\n/* 362 */ if ((alembic.aspect == null) || (alembic.amount == 0)) {\n/* 363 */ Aspect as = null;\n/* 364 */ if (alembic.aspectFilter == null) {\n/* 365 */ as = takeRandomAspect(exlude);\n/* */ }\n/* 367 */ else if (takeFromContainer(alembic.aspectFilter, 1)) {\n/* 368 */ as = alembic.aspectFilter;\n/* */ }\n/* */ \n/* 371 */ if (as != null) {\n/* 372 */ alembic.addToContainer(as, 1);\n/* 373 */ this.field_145850_b.func_147471_g(this.field_145851_c, this.field_145848_d, this.field_145849_e);\n/* 374 */ this.field_145850_b.func_147471_g(this.field_145851_c, this.field_145848_d + deep, this.field_145849_e);\n/* 375 */ break;\n/* */ }\n/* */ }\n/* */ }\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 385 */ if ((this.furnaceBurnTime == 0) && (canSmelt()))\n/* */ {\n/* 387 */ this.currentItemBurnTime = (this.furnaceBurnTime = TileEntityFurnace.func_145952_a(this.furnaceItemStacks[1]));\n/* */ \n/* 389 */ if (this.furnaceBurnTime > 0)\n/* */ {\n/* 391 */ flag1 = true;\n/* 392 */ this.speedBoost = false;\n/* */ \n/* 394 */ if (this.furnaceItemStacks[1] != null)\n/* */ {\n/* 396 */ if (this.furnaceItemStacks[1].func_77969_a(new ItemStack(thaumcraft.common.config.ConfigItems.itemResource, 1, 0))) {\n/* 397 */ this.speedBoost = true;\n/* */ }\n/* 399 */ this.furnaceItemStacks[1].field_77994_a -= 1;\n/* */ \n/* 401 */ if (this.furnaceItemStacks[1].field_77994_a == 0)\n/* */ {\n/* 403 */ this.furnaceItemStacks[1] = this.furnaceItemStacks[1].func_77973_b().getContainerItem(this.furnaceItemStacks[1]);\n/* */ }\n/* */ }\n/* */ }\n/* */ }\n/* */ \n/* 409 */ if ((isBurning()) && (canSmelt()))\n/* */ {\n/* 411 */ this.furnaceCookTime += 1;\n/* */ \n/* 413 */ if (this.furnaceCookTime >= this.smeltTime)\n/* */ {\n/* 415 */ this.furnaceCookTime = 0;\n/* 416 */ smeltItem();\n/* 417 */ flag1 = true;\n/* */ }\n/* */ }\n/* */ else\n/* */ {\n/* 422 */ this.furnaceCookTime = 0;\n/* */ }\n/* */ \n/* 425 */ if (flag != this.furnaceBurnTime > 0)\n/* */ {\n/* 427 */ flag1 = true;\n/* 428 */ this.field_145850_b.func_147471_g(this.field_145851_c, this.field_145848_d, this.field_145849_e);\n/* */ }\n/* */ }\n/* */ \n/* 432 */ if (flag1)\n/* */ {\n/* 434 */ func_70296_d();\n/* */ }\n/* */ }", "title": "" }, { "docid": "3e7d8fc5ee34c3a50a78f092d63bf0a8", "score": "0.52026606", "text": "@Override\n\t\tpublic Bloc[] genererBlocs() {\n\t\t\treturn null;\n\t\t}", "title": "" }, { "docid": "3e7d8fc5ee34c3a50a78f092d63bf0a8", "score": "0.52026606", "text": "@Override\n\t\tpublic Bloc[] genererBlocs() {\n\t\t\treturn null;\n\t\t}", "title": "" }, { "docid": "3e7d8fc5ee34c3a50a78f092d63bf0a8", "score": "0.52026606", "text": "@Override\n\t\tpublic Bloc[] genererBlocs() {\n\t\t\treturn null;\n\t\t}", "title": "" }, { "docid": "3e7d8fc5ee34c3a50a78f092d63bf0a8", "score": "0.52026606", "text": "@Override\n\t\tpublic Bloc[] genererBlocs() {\n\t\t\treturn null;\n\t\t}", "title": "" }, { "docid": "3e7d8fc5ee34c3a50a78f092d63bf0a8", "score": "0.52026606", "text": "@Override\n\t\tpublic Bloc[] genererBlocs() {\n\t\t\treturn null;\n\t\t}", "title": "" }, { "docid": "3e7d8fc5ee34c3a50a78f092d63bf0a8", "score": "0.52026606", "text": "@Override\n\t\tpublic Bloc[] genererBlocs() {\n\t\t\treturn null;\n\t\t}", "title": "" }, { "docid": "3e7d8fc5ee34c3a50a78f092d63bf0a8", "score": "0.52026606", "text": "@Override\n\t\tpublic Bloc[] genererBlocs() {\n\t\t\treturn null;\n\t\t}", "title": "" }, { "docid": "4514e5bebadc26519ebd188070fa0dc0", "score": "0.51974565", "text": "public void breadthFirstExplore() {\n for (ArrayList<Node> nodeArray : nodeGrid) {\n for (Node node : nodeArray) {\n node.parent = null;\n }\n }\n PriorityQueue<Node> frontierQueue = new PriorityQueue<Node>(1, new Comparator<Node>() {\n public int compare(Node a, Node b) {\n int distA = 0;\n int distB = 0;\n /*\n if (Ant.this.ants.getFoodTiles().size() > 0) {\n Tile closestFood = Ant.this.distanceSort(Ant.this.ants.getFoodTiles()).peek();\n distA = Ant.this.ants.getDistance(a.position, closestFood);\n distB = Ant.this.ants.getDistance(b.position, closestFood);\n } else if (Ant.this.closestUnseen != null) {\n distA = Ant.this.ants.getDistance(a.position, Ant.this.closestUnseen);\n distB = Ant.this.ants.getDistance(b.position, Ant.this.closestUnseen);\n }\n */\n return (distA + a.length()) - (distB + b.length());\n }\n });\n frontierQueue.add(nodeGrid.get(this.position.getRow()).get(this.position.getCol()));\n HashSet<Node> frontierSet = new HashSet<Node>(frontierQueue);\n HashSet<Node> exploredSet = new HashSet<Node>();\n List<Aim> directions = new ArrayList<Aim>(EnumSet.allOf(Aim.class));\n\n while (frontierQueue.size() > 0) {\n Node path = frontierQueue.poll();\n frontierSet.remove(path);\n exploredSet.add(path);\n\n if (!seen.contains(path.position)) { \n setGoal(path.retracePath());\n exploring = true;\n return;\n }\n\n for (Aim direction : directions) {\n Tile neighborTile = ants.getTile(path.position, direction);\n Node neighbor = nodeGrid.get(neighborTile.getRow()).get(neighborTile.getCol());\n if (neighbor.walkable) {\n if (!frontierSet.contains(neighbor) && !exploredSet.contains(neighbor)) {\n neighbor.parent = path;\n frontierQueue.add(neighbor);\n frontierSet.add(neighbor);\n }\n }\n }\n }\n }", "title": "" }, { "docid": "ce13daa00eff173d3955e92746a02978", "score": "0.5187312", "text": "public static void main(String args[]){\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n List l = new List();\n int blocks[] = new int[0];\n try {\n String inp[] = br.readLine().split(\" \");\n for(String s : inp){\n int d = Integer.parseInt(s);\n if(d != -1){\n l.append(d);\n }\n }\n int k = Integer.parseInt(br.readLine());\n inp = br.readLine().split(\" \");\n blocks = new int[k];\n for(int i = 0; i < k; i++){\n blocks[i] = Integer.parseInt(inp[i]);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n List ans = reverseBlocks(l.head,blocks);\n printList(ans);\n// for(int i=0;i<5;i++){\n// try {\n// l.append(Integer.parseInt(br.readLine()));\n// } catch (IOException e) {\n// e.printStackTrace();\n// }\n// }\n// printList(l);\n// l.insertBefore(1,6);\n// printList(l);\n }", "title": "" }, { "docid": "a9a558cf37f3bc896d904c2abd138e4a", "score": "0.51795244", "text": "void executeSort() {\n\t\tinsertionSort();\n//\t\tquickSort(list_, 0, 499);\n\n\t}", "title": "" }, { "docid": "d360adbb4631e0887c48786f2b3c909a", "score": "0.51668936", "text": "private static int[] effInsertionSort(int[] arr) {\n\t\tint temp1 = 0;\n\t\tfor(int i = 1; i < arr.length; i++) {\n\t\t int j = i - 1;\n\t\t\tint temp = arr[i];\n\t\t\tint insertionPoint = getBinarySearch(arr, 0, j, temp);\n\t\t System.out.println(\"INSER\"+insertionPoint);\n\t\t\twhile(insertionPoint <j) {\n\t\t\t\tarr[j+1] = arr[j];\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tSystem.out.println(Arrays.toString(arr));\n\t\t\tint temp3 = arr[insertionPoint];\n\t\t\tarr[insertionPoint] = temp;\n\t\t\tarr[j+1] = temp3;\n\t\t\t\n\t\t\t\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "6315b272b7451d32084111039b2449df", "score": "0.51585394", "text": "void breakDown();", "title": "" }, { "docid": "14a77aae02006a00059f3c91bf6a31b6", "score": "0.51527745", "text": "public ItemStack func_70298_a(int par1, int par2)\n/* */ {\n/* 78 */ if (this.furnaceItemStacks[par1] != null)\n/* */ {\n/* */ \n/* */ \n/* 82 */ if (this.furnaceItemStacks[par1].field_77994_a <= par2)\n/* */ {\n/* 84 */ ItemStack itemstack = this.furnaceItemStacks[par1];\n/* 85 */ this.furnaceItemStacks[par1] = null;\n/* 86 */ return itemstack;\n/* */ }\n/* */ \n/* */ \n/* 90 */ ItemStack itemstack = this.furnaceItemStacks[par1].func_77979_a(par2);\n/* */ \n/* 92 */ if (this.furnaceItemStacks[par1].field_77994_a == 0)\n/* */ {\n/* 94 */ this.furnaceItemStacks[par1] = null;\n/* */ }\n/* */ \n/* 97 */ return itemstack;\n/* */ }\n/* */ \n/* */ \n/* */ \n/* 102 */ return null;\n/* */ }", "title": "" }, { "docid": "10baf22885fc62dc818963fd36417656", "score": "0.5152544", "text": "protected boolean b(GeneratorAccess var0, Random var1, BlockPosition var2, IBlockData var3) {\n/* 33 */ BlockPosition var4 = var2.up();\n/* 34 */ IBlockData var5 = var0.getType(var2);\n/* */ \n/* 36 */ if ((!var5.a(Blocks.WATER) && !var5.a(TagsBlock.CORALS)) || !var0.getType(var4).a(Blocks.WATER)) {\n/* 37 */ return false;\n/* */ }\n/* */ \n/* 40 */ var0.setTypeAndData(var2, var3, 3);\n/* 41 */ if (var1.nextFloat() < 0.25F) {\n/* 42 */ var0.setTypeAndData(var4, ((Block)TagsBlock.CORALS.a(var1)).getBlockData(), 2);\n/* 43 */ } else if (var1.nextFloat() < 0.05F) {\n/* 44 */ var0.setTypeAndData(var4, Blocks.SEA_PICKLE.getBlockData().set(BlockSeaPickle.a, Integer.valueOf(var1.nextInt(4) + 1)), 2);\n/* */ } \n/* */ \n/* 47 */ for (EnumDirection var7 : EnumDirection.EnumDirectionLimit.HORIZONTAL) {\n/* 48 */ if (var1.nextFloat() < 0.2F) {\n/* 49 */ BlockPosition var8 = var2.shift(var7);\n/* 50 */ if (var0.getType(var8).a(Blocks.WATER)) {\n/* 51 */ IBlockData var9 = ((Block)TagsBlock.WALL_CORALS.a(var1)).getBlockData().set(BlockCoralFanWallAbstract.a, var7);\n/* 52 */ var0.setTypeAndData(var8, var9, 2);\n/* */ } \n/* */ } \n/* */ } \n/* */ \n/* 57 */ return true;\n/* */ }", "title": "" }, { "docid": "1a885f08db22c4719921b9fcbd564402", "score": "0.5149295", "text": "int findReorderingEntry(String name)\n/* */ {\n/* 2325 */ for (int tokenIndex = 0; tokenIndex < ReorderingTokensArray.length; tokenIndex++) {\n/* 2326 */ if (name.equalsIgnoreCase(ReorderingTokensArray[tokenIndex])) {\n/* 2327 */ return tokenIndex + 4096;\n/* */ }\n/* */ }\n/* 2330 */ return -1;\n/* */ }", "title": "" }, { "docid": "0a50911934a96b8c80dc46f8547a1efa", "score": "0.51470566", "text": "@Override\n public int compareTo(Block block) \n {\n if(this.baseAddress < block.getBaseAddress())\n {\n return -1;\n }//end if\n else if(this.baseAddress == block.getBaseAddress())\n {\n return 0;\n }//end if\n else\n {\n return 1;\n }//end else\n }", "title": "" }, { "docid": "460be79a52eef2123bed925aba76fa04", "score": "0.5146088", "text": "private static void trainSort(Stack<Integer> inputTrack, Stack<Integer> sideTrack, Stack<Integer> exitTrack){\n\n\t\t\n\t\twhile(!inputTrack.isEmpty()){\n\t\t\tint x = 0;\n\n\t\t\tif(exitTrack.isEmpty()){\n\t\t\t\tx = inputTrack.pop();\n\t\t\t\tSystem.out.println(\"\\nMove \"+x +\" from input to exit\");\n\t\t\t\texitTrack.push(x);\t\n\n\t\t\t}else if(inputTrack.peek() >= exitTrack.peek() && sideTrack.isEmpty() ){\n\t\t\t\tx = inputTrack.pop();\n\t\t\t\tSystem.out.println(\"\\nMove \"+x +\" from input to exit\");\n\t\t\t\texitTrack.push(x);\t\n\n\t\t\t}else if(inputTrack.peek() >= exitTrack.peek() && !sideTrack.isEmpty()){\n\t\t\t\tif(inputTrack.peek() >= sideTrack.peek()){\n\t\t\t\t\tx = sideTrack.pop();\n\t\t\t\t\tSystem.out.println(\"\\nMove \"+x +\" from siding to exit\");\n\t\t\t\t\texitTrack.push(x);\n\t\t\t\t}else{\n\t\t\t\t\tx=inputTrack.pop();\n\t\t\t\t\tSystem.out.println(\"\\nMove \"+x +\" from input to exit\");\n\t\t\t\t\texitTrack.push(x);\t\n\t\t\t\t}\n\n\t\t\t}else if(inputTrack.peek() < exitTrack.peek() && !sideTrack.isEmpty()){\n\t\t\t\tif(inputTrack.peek() < sideTrack.peek()){\n\t\t\t\t\tx= exitTrack.pop();\n\t\t\t\t\tSystem.out.println(\"\\nMove \"+x +\" from exit to siding\");\n\t\t\t\t\tsideTrack.push(x);\n\t\t\t\t}\n\n\t\t\t}\n\t\t\telse if(inputTrack.peek() < exitTrack.peek() && sideTrack.isEmpty()){\n\t\t\t\tx= exitTrack.pop();\n\t\t\t\tSystem.out.println(\"\\nMove \"+x +\" from exit to siding\");\n\t\t\t\tsideTrack.push(x);\n\t\t\t}\n\n\n\t\t}\n\t\tsortSideTrack(sideTrack,exitTrack);\n\n\t\t\n\n\t}", "title": "" }, { "docid": "496e8fcf00a291c14f9e3b7265c93a83", "score": "0.5143301", "text": "protected TryCatchBlockSorter(int api, MethodVisitor methodVisitor, int access, String name, String descriptor, String signature, String[] exceptions) {\n/* 94 */ super(api, access, name, descriptor, signature, exceptions);\n/* 95 */ this.mv = methodVisitor;\n/* */ }", "title": "" }, { "docid": "8c2a42519cad6d33751ecd48620f54b7", "score": "0.51308614", "text": "private void phase2() throws LinkerException {\n\t\tfor(String symbol : this.tableE.getSymbolAddress().keySet()) {\n\t\t\tShort addressValue = this.tableP.getAddress(symbol);\n\t\t\tif(addressValue == null)\n\t\t\t\tthrow new LinkerException(\"The symbol \" + symbol + \" wasn't found!\");\n\t\t\t\n\t\t\tthis.textBuffer.relocate(this.tableE.getAddress(symbol), addressValue);\n\t\t}\t\n\t\t\n\t\t// Proccess each R entry\n\t\tfor(Short addr : this.tableR.getAddressAddressModule().keySet()) {\n\t\t\tthis.textBuffer.relocate(addr, this.tableR.getAddressAddressModule().get(addr));\n\t\t}\t\n\t}", "title": "" }, { "docid": "f9589436343fcbc9ea7eee29ce424800", "score": "0.5128142", "text": "private ArrayList<Integer> findStable(int block){\n\t\t//TBD\n\t\t// we know current support value Lsupport Rsupport\n\t\t// check the board.\n\t\tArrayList<Integer> que = new ArrayList<Integer>();\n\t\tfor (int i = -15;i <= 15; ++i){\n\t\t\tif(Board[i+15] == 0){\n\t\t\t\tif ((Lsupport - block*(i+3))*(Rsupport - block*(i+1)) <= 0){\n\t\t\t\t\t// no tipping\n\t\t\t\t\t// put i into\n\t\t\t\t\tque.add(i);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn que;\n\t\t\n\t}", "title": "" }, { "docid": "2a3d27b01ea769e740296a3c9c5a1925", "score": "0.5127093", "text": "public boolean method_6351(ahb var1, Random var2, int var3, int var4, int var5) {\r\n byte var7 = 3;\r\n String[] var6 = class_752.method_4253();\r\n int var8 = var2.nextInt(2) + 2;\r\n int var9 = var2.nextInt(2) + 2;\r\n int var10 = 0;\r\n int var11 = var3 - var8 - 1;\r\n\r\n int var12;\r\n int var13;\r\n int var10000;\r\n int var10001;\r\n label385:\r\n while(true) {\r\n var10000 = var11;\r\n\r\n label382:\r\n while(var10000 <= var3 + var8 + 1) {\r\n var10000 = var4 - 1;\r\n if(var6 == null) {\r\n break label385;\r\n }\r\n\r\n var12 = var10000;\r\n\r\n label379:\r\n do {\r\n var10000 = var12;\r\n var10001 = var4 + var7 + 1;\r\n\r\n label376:\r\n while(true) {\r\n if(var10000 > var10001) {\r\n break label379;\r\n }\r\n\r\n var10000 = var5 - var9 - 1;\r\n if(var6 == null) {\r\n continue label382;\r\n }\r\n\r\n var13 = var10000;\r\n\r\n while(true) {\r\n if(var13 > var5 + var9 + 1) {\r\n break label376;\r\n }\r\n\r\n awt var14 = var1.getBlock(var11, var12, var13).method_2424();\r\n var10000 = var12;\r\n var10001 = var4 - 1;\r\n if(var6 == null) {\r\n break;\r\n }\r\n\r\n if(var6 != null) {\r\n label333: {\r\n if(var12 == var10001) {\r\n var10000 = var14.method_5063();\r\n if(var6 == null) {\r\n break label333;\r\n }\r\n\r\n if(var10000 == 0) {\r\n return false;\r\n }\r\n }\r\n\r\n var10000 = var12;\r\n }\r\n\r\n var10001 = var4 + var7 + 1;\r\n }\r\n\r\n if(var6 != null) {\r\n label341: {\r\n if(var10000 == var10001) {\r\n var10000 = var14.method_5063();\r\n if(var6 == null) {\r\n break label341;\r\n }\r\n\r\n if(var10000 == 0) {\r\n return false;\r\n }\r\n }\r\n\r\n var10000 = var11;\r\n }\r\n\r\n var10001 = var3 - var8 - 1;\r\n }\r\n\r\n label394: {\r\n label395: {\r\n if(var6 != null) {\r\n label396: {\r\n if(var10000 != var10001) {\r\n var10000 = var11;\r\n var10001 = var3 + var8 + 1;\r\n if(var6 == null) {\r\n break label396;\r\n }\r\n\r\n if(var11 != var10001) {\r\n var10000 = var13;\r\n var10001 = var5 - var9 - 1;\r\n if(var6 == null) {\r\n break label396;\r\n }\r\n\r\n if(var13 != var10001) {\r\n var10000 = var13;\r\n var10001 = var5 + var9 + 1;\r\n if(var6 == null) {\r\n break label396;\r\n }\r\n\r\n if(var13 != var10001) {\r\n break label394;\r\n }\r\n }\r\n }\r\n }\r\n\r\n var10000 = var12;\r\n if(var6 == null) {\r\n break label395;\r\n }\r\n\r\n var10001 = var4;\r\n }\r\n }\r\n\r\n if(var10000 != var10001) {\r\n break label394;\r\n }\r\n\r\n var10000 = var1.method_34(var11, var12, var13);\r\n }\r\n\r\n if(var6 != null) {\r\n if(var10000 == 0) {\r\n break label394;\r\n }\r\n\r\n var10000 = var1.method_34(var11, var12 + 1, var13);\r\n }\r\n\r\n if(var10000 != 0) {\r\n ++var10;\r\n }\r\n }\r\n\r\n ++var13;\r\n if(var6 == null) {\r\n break label376;\r\n }\r\n }\r\n }\r\n\r\n ++var12;\r\n } while(var6 != null);\r\n\r\n ++var11;\r\n if(var6 != null) {\r\n continue label385;\r\n }\r\n break;\r\n }\r\n\r\n var10000 = var10;\r\n break;\r\n }\r\n\r\n if(var6 != null) {\r\n if(var10000 >= 1) {\r\n label421: {\r\n var10000 = var10;\r\n byte var21 = 5;\r\n if(var6 != null) {\r\n if(var10 > 5) {\r\n break label421;\r\n }\r\n\r\n var10000 = var3 - var8;\r\n var21 = 1;\r\n }\r\n\r\n var11 = var10000 - var21;\r\n\r\n label298:\r\n while(true) {\r\n var10000 = var11;\r\n\r\n label295:\r\n while(var10000 <= var3 + var8 + 1) {\r\n var10000 = var4 + var7;\r\n if(var6 == null) {\r\n break label298;\r\n }\r\n\r\n var12 = var10000;\r\n\r\n label292:\r\n do {\r\n var10000 = var12;\r\n var10001 = var4 - 1;\r\n\r\n label289:\r\n while(true) {\r\n if(var10000 < var10001) {\r\n break label292;\r\n }\r\n\r\n var10000 = var5 - var9 - 1;\r\n if(var6 == null) {\r\n continue label295;\r\n }\r\n\r\n var13 = var10000;\r\n\r\n while(true) {\r\n if(var13 > var5 + var9 + 1) {\r\n break label289;\r\n }\r\n\r\n label283: {\r\n label403: {\r\n var10000 = var11;\r\n if(var6 != null) {\r\n label404: {\r\n var10001 = var3 - var8 - 1;\r\n if(var6 == null) {\r\n break;\r\n }\r\n\r\n if(var11 != var10001) {\r\n var10000 = var12;\r\n if(var6 == null) {\r\n break label404;\r\n }\r\n\r\n if(var12 != var4 - 1) {\r\n var10000 = var13;\r\n if(var6 == null) {\r\n break label404;\r\n }\r\n\r\n if(var13 != var5 - var9 - 1) {\r\n var10000 = var11;\r\n if(var6 == null) {\r\n break label404;\r\n }\r\n\r\n if(var11 != var3 + var8 + 1) {\r\n var10000 = var12;\r\n if(var6 == null) {\r\n break label404;\r\n }\r\n\r\n if(var12 != var4 + var7 + 1) {\r\n if(var6 == null) {\r\n break label283;\r\n }\r\n\r\n if(var13 != var5 + var9 + 1) {\r\n break label403;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n\r\n var10000 = var12;\r\n }\r\n }\r\n\r\n if(var6 != null) {\r\n label257: {\r\n if(var10000 >= 0) {\r\n var10000 = var1.getBlock(var11, var12 - 1, var13).method_2424().method_5063();\r\n if(var6 == null) {\r\n break label257;\r\n }\r\n\r\n if(var10000 == 0) {\r\n var1.method_2056(var11, var12, var13);\r\n if(var6 != null) {\r\n break label283;\r\n }\r\n }\r\n }\r\n\r\n var10000 = var1.getBlock(var11, var12, var13).method_2424().method_5063();\r\n }\r\n }\r\n\r\n if(var6 != null) {\r\n if(var10000 == 0) {\r\n break label283;\r\n }\r\n\r\n var10000 = var12;\r\n }\r\n\r\n if(var6 != null) {\r\n label249: {\r\n if(var10000 == var4 - 1) {\r\n var10000 = var2.nextInt(4);\r\n if(var6 == null) {\r\n break label249;\r\n }\r\n\r\n if(var10000 != 0) {\r\n var1.method_2054(var11, var12, var13, class_1192.field_6075, 0, 2);\r\n if(var6 != null) {\r\n break label283;\r\n }\r\n }\r\n }\r\n\r\n var1.method_2054(var11, var12, var13, class_1192.field_6029, 0, 2);\r\n }\r\n }\r\n\r\n if(var6 != null) {\r\n break label283;\r\n }\r\n }\r\n\r\n var1.method_2056(var11, var12, var13);\r\n }\r\n\r\n ++var13;\r\n if(var6 == null) {\r\n break label289;\r\n }\r\n }\r\n }\r\n\r\n --var12;\r\n } while(var6 != null);\r\n\r\n ++var11;\r\n if(var6 != null) {\r\n continue label298;\r\n }\r\n break;\r\n }\r\n\r\n var10000 = 0;\r\n break;\r\n }\r\n\r\n var11 = var10000;\r\n\r\n label215:\r\n while(true) {\r\n var10000 = var11;\r\n\r\n label212:\r\n while(var10000 < 2) {\r\n if(var6 == null) {\r\n break label215;\r\n }\r\n\r\n var12 = 0;\r\n\r\n while(true) {\r\n if(var12 < 3) {\r\n label407: {\r\n var13 = var3 + var2.nextInt(var8 * 2 + 1) - var8;\r\n int var15 = var5 + var2.nextInt(var9 * 2 + 1) - var9;\r\n var10000 = var1.method_34(var13, var4, var15);\r\n if(var6 == null) {\r\n continue label212;\r\n }\r\n\r\n label414: {\r\n if(var6 != null) {\r\n if(var10000 == 0) {\r\n break label414;\r\n }\r\n\r\n var10000 = 0;\r\n }\r\n\r\n int var16 = var10000;\r\n var10000 = var1.getBlock(var13 - 1, var4, var15).method_2424().method_5063();\r\n if(var6 != null) {\r\n if(var10000 != 0) {\r\n ++var16;\r\n }\r\n\r\n var10000 = var1.getBlock(var13 + 1, var4, var15).method_2424().method_5063();\r\n }\r\n\r\n if(var6 != null) {\r\n if(var10000 != 0) {\r\n ++var16;\r\n }\r\n\r\n var10000 = var1.getBlock(var13, var4, var15 - 1).method_2424().method_5063();\r\n }\r\n\r\n if(var6 != null) {\r\n if(var10000 != 0) {\r\n ++var16;\r\n }\r\n\r\n var10000 = var1.getBlock(var13, var4, var15 + 1).method_2424().method_5063();\r\n }\r\n\r\n if(var6 != null) {\r\n if(var10000 != 0) {\r\n ++var16;\r\n }\r\n\r\n var10000 = var16;\r\n }\r\n\r\n if(var6 != null) {\r\n if(var10000 != 1) {\r\n break label414;\r\n }\r\n\r\n var1.method_2054(var13, var4, var15, class_1192.field_6081, 0, 2);\r\n }\r\n\r\n class_1652[] var17 = class_1652.method_9098(field_6017, new class_1652[]{class_1010.field_5259.getBlock06(var2)});\r\n class_594 var18 = (class_594)var1.method_31(var13, var4, var15);\r\n if(var6 == null) {\r\n break;\r\n }\r\n\r\n if(var18 == null) {\r\n break label407;\r\n }\r\n\r\n class_1652.method_9096(var2, var17, var18, 8);\r\n if(var6 != null) {\r\n break label407;\r\n }\r\n }\r\n\r\n ++var12;\r\n if(var6 != null) {\r\n continue;\r\n }\r\n }\r\n }\r\n\r\n ++var11;\r\n break;\r\n }\r\n\r\n if(var6 != null) {\r\n continue label215;\r\n }\r\n break;\r\n }\r\n\r\n var1.method_2054(var3, var4, var5, class_1192.field_6079, 0, 2);\r\n break;\r\n }\r\n\r\n label166: {\r\n class_584 var20 = (class_584)var1.method_31(var3, var4, var5);\r\n class_584 var23 = var20;\r\n if(var6 != null) {\r\n if(var20 == null) {\r\n break label166;\r\n }\r\n\r\n var23 = var20;\r\n }\r\n\r\n var23.method_3123().method_5672(this.method_6404(var2));\r\n if(var6 != null) {\r\n return true;\r\n }\r\n }\r\n\r\n PrintStream var24 = System.err;\r\n StringBuilder var22 = new StringBuilder();\r\n String[] var19 = field_6018;\r\n var24.println(var22.append(\"Failed to fetch mob spawner entity at (\").append(var3).append(\", \").append(var4).append(\", \").append(var5).append(\")\").toString());\r\n return true;\r\n }\r\n }\r\n\r\n var10000 = 0;\r\n }\r\n\r\n return (boolean)var10000;\r\n }", "title": "" }, { "docid": "e8e493885b692f7605eb127ea61957bf", "score": "0.51266927", "text": "public void tileTick()\r\n/* 43: */ {\r\n/* 44: 56 */ int co = this.Count;\r\n/* 45: 57 */ if (TileLogicStorage.this.Deadmap > 0)\r\n/* 46: */ {\r\n/* 47: 58 */ if (TileLogicStorage.this.Active)\r\n/* 48: */ {\r\n/* 49: 58 */ this.Count -= this.Dec;TileLogicStorage.this.Active = false;\r\n/* 50: */ }\r\n/* 51: 59 */ if (TileLogicStorage.this.Disabled)\r\n/* 52: */ {\r\n/* 53: 59 */ this.Count += this.Inc;TileLogicStorage.this.Disabled = false;\r\n/* 54: */ }\r\n/* 55: */ }\r\n/* 56: */ else\r\n/* 57: */ {\r\n/* 58: 61 */ if (TileLogicStorage.this.Active)\r\n/* 59: */ {\r\n/* 60: 61 */ this.Count += this.Inc;TileLogicStorage.this.Active = false;\r\n/* 61: */ }\r\n/* 62: 62 */ if (TileLogicStorage.this.Disabled)\r\n/* 63: */ {\r\n/* 64: 62 */ this.Count -= this.Dec;TileLogicStorage.this.Disabled = false;\r\n/* 65: */ }\r\n/* 66: */ }\r\n/* 67: 64 */ if (this.Count < 0) {\r\n/* 68: 64 */ this.Count = 0;\r\n/* 69: */ }\r\n/* 70: 65 */ if (this.Count > this.CountMax) {\r\n/* 71: 65 */ this.Count = this.CountMax;\r\n/* 72: */ }\r\n/* 73: 66 */ if (co != this.Count)\r\n/* 74: */ {\r\n/* 75: 67 */ TileLogicStorage.this.updateBlockChange();\r\n/* 76: 68 */ TileLogicStorage.this.playSound(\"random.click\", 0.3F, 0.5F, false);\r\n/* 77: */ }\r\n/* 78: 70 */ updatePowerState();\r\n/* 79: */ }", "title": "" }, { "docid": "7b69549ae670c1b1fcb006f4e8af958c", "score": "0.5116518", "text": "protected boolean func_175806_a(World worldIn, StructureBoundingBox p_175806_2_, Random p_175806_3_, int p_175806_4_, int p_175806_5_, int p_175806_6_, int p_175806_7_, List p_175806_8_, int p_175806_9_) {\n/* 791 */ BlockPos var10 = new BlockPos(getXWithOffset(p_175806_4_, p_175806_6_), getYWithOffset(p_175806_5_), getZWithOffset(p_175806_4_, p_175806_6_));\n/* */ \n/* 793 */ if (p_175806_2_.func_175898_b((Vec3i)var10) && worldIn.getBlockState(var10).getBlock() != Blocks.dispenser) {\n/* */ \n/* 795 */ worldIn.setBlockState(var10, Blocks.dispenser.getStateFromMeta(getMetadataWithOffset(Blocks.dispenser, p_175806_7_)), 2);\n/* 796 */ TileEntity var11 = worldIn.getTileEntity(var10);\n/* */ \n/* 798 */ if (var11 instanceof TileEntityDispenser)\n/* */ {\n/* 800 */ WeightedRandomChestContent.func_177631_a(p_175806_3_, p_175806_8_, (TileEntityDispenser)var11, p_175806_9_);\n/* */ }\n/* */ \n/* 803 */ return true;\n/* */ } \n/* */ \n/* */ \n/* 807 */ return false;\n/* */ }", "title": "" }, { "docid": "be03c617a4da1158cf39d58ec084ffd8", "score": "0.51158047", "text": "private void d(X var1_1) {\n block7 : {\n block8 : {\n var8_2 = a.f;\n var2_3 = new D();\n var3_4 = var1_1.o();\n while (var3_4.f()) {\n var4_5 = var3_4.e();\n var2_3.add(new j(var4_5, var1_1.s((q)var4_5), 0));\n var3_4.g();\n if (var8_2 == 0) {\n if (var8_2 == 0) continue;\n }\n break block7;\n }\n var3_4 = var1_1.p();\n while (var3_4.f()) {\n block9 : {\n var4_5 = var3_4.a();\n v0 = var1_1;\n if (var8_2 != 0) break block8;\n var5_6 = v0.l((d)var4_5).a();\n var6_7 = (t)var5_6.d();\n var5_6.g();\n while (var5_6.f()) {\n var7_8 = (t)var5_6.d();\n var2_3.add(new j(var4_5, new m((t)var6_7, var7_8), 1));\n var6_7 = var7_8;\n var5_6.g();\n if (var8_2 == 0) {\n if (var8_2 == 0) continue;\n }\n break block9;\n }\n var3_4.g();\n }\n if (var8_2 == 0) continue;\n }\n v0 = this.i;\n }\n var3_4 = v0.o();\n }\n while (var3_4.f()) {\n var4_5 = (Q)this.n.b(var3_4.e());\n var5_6 = var4_5.e();\n if (var8_2 != 0) return;\n if (!(var5_6 instanceof C)) ** GOTO lbl42\n var6_7 = var1_1.a((C)var5_6);\n var2_3.add(new j(var6_7, (Q)var4_5, 2));\n if (var8_2 == 0) ** GOTO lbl47\nlbl42: // 2 sources:\n if (!(var5_6 instanceof aj)) ** GOTO lbl-1000\n var6_7 = var1_1.a((aj)var5_6);\n var2_3.add(new j(var6_7, (Q)var4_5, 2));\n if (var8_2 != 0) lbl-1000: // 2 sources:\n {\n var2_3.add(new j((Object)null, (Q)var4_5, 2));\n }\nlbl47: // 4 sources:\n var3_4.g();\n if (var8_2 == 0) continue;\n }\n f.a(var2_3, new l(this));\n }", "title": "" }, { "docid": "83c0575633dc0558e639cfc9dc10d902", "score": "0.51136833", "text": "public final void mo54117b(com.p280ss.android.socialbase.downloader.p906d.C20198c r3) {\n /*\n r2 = this;\n if (r3 != 0) goto L_0x0003\n return\n L_0x0003:\n java.lang.Class<com.ss.android.socialbase.downloader.d.d> r0 = com.p280ss.android.socialbase.downloader.p906d.C20202d.class\n monitor-enter(r0)\n r1 = 524288(0x80000, float:7.34684E-40)\n boolean r1 = com.p280ss.android.socialbase.downloader.utils.C20356b.m67535a(r1) // Catch:{ Throwable -> 0x0028 }\n if (r1 == 0) goto L_0x001c\n android.util.SparseArray<com.ss.android.socialbase.downloader.d.c> r1 = r2.f54690a // Catch:{ Throwable -> 0x0028 }\n int r3 = r1.indexOfValue(r3) // Catch:{ Throwable -> 0x0028 }\n if (r3 < 0) goto L_0x0028\n android.util.SparseArray<com.ss.android.socialbase.downloader.d.c> r1 = r2.f54690a // Catch:{ Throwable -> 0x0028 }\n r1.removeAt(r3) // Catch:{ Throwable -> 0x0028 }\n goto L_0x0028\n L_0x001c:\n android.util.SparseArray<com.ss.android.socialbase.downloader.d.c> r1 = r2.f54690a // Catch:{ Throwable -> 0x0028 }\n int r3 = r3.mo54106d() // Catch:{ Throwable -> 0x0028 }\n r1.remove(r3) // Catch:{ Throwable -> 0x0028 }\n goto L_0x0028\n L_0x0026:\n r3 = move-exception\n goto L_0x002a\n L_0x0028:\n monitor-exit(r0) // Catch:{ all -> 0x0026 }\n return\n L_0x002a:\n monitor-exit(r0) // Catch:{ all -> 0x0026 }\n throw r3\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.p280ss.android.socialbase.downloader.p906d.C20202d.mo54117b(com.ss.android.socialbase.downloader.d.c):void\");\n }", "title": "" }, { "docid": "a2cdffa14f495899fac6350ae6c8fb18", "score": "0.51093554", "text": "public int[] method_6679(int var1, int var2, int var3, int var4) {\r\n int[] var6 = this.field_6573.method_6679(var1 - 1, var2 - 1, var3 + 2, var4 + 2);\r\n int[] var7 = this.field_6579.method_6679(var1 - 1, var2 - 1, var3 + 2, var4 + 2);\r\n String[] var10000 = class_752.method_4253();\r\n int[] var8 = class_1323.method_6956(var3 * var4);\r\n String[] var5 = var10000;\r\n int var9 = 0;\r\n\r\n do {\r\n int var20 = var9;\r\n\r\n label345:\r\n while(true) {\r\n if(var20 >= var4) {\r\n return var8;\r\n }\r\n\r\n int var10 = 0;\r\n\r\n while(true) {\r\n if(var10 >= var3) {\r\n break label345;\r\n }\r\n\r\n this.method_6677((long)(var10 + var1), (long)(var9 + var2));\r\n int var11 = var6[var10 + 1 + (var9 + 1) * (var3 + 2)];\r\n int var12 = var7[var10 + 1 + (var9 + 1) * (var3 + 2)];\r\n var20 = (var12 - 2) % 29;\r\n if(var5 == null) {\r\n break;\r\n }\r\n\r\n if(var5 != null) {\r\n var20 = var20 == 0?1:0;\r\n }\r\n\r\n int var13 = var20;\r\n var20 = var11;\r\n if(var5 != null) {\r\n if(var11 > 255) {\r\n field_6578.debug(\"old! \" + var11);\r\n }\r\n\r\n var20 = var11;\r\n }\r\n\r\n label355: {\r\n if(var5 != null) {\r\n label335: {\r\n if(var20 != 0) {\r\n var20 = var12;\r\n if(var5 == null) {\r\n break label335;\r\n }\r\n\r\n if(var12 >= 2) {\r\n var20 = (var12 - 2) % 29;\r\n if(var5 == null) {\r\n break label335;\r\n }\r\n\r\n if(var20 == 1) {\r\n var20 = var11;\r\n if(var5 == null) {\r\n break label335;\r\n }\r\n\r\n if(var11 < 128) {\r\n if(class_985.method_5725(var11 + 128) != null) {\r\n var8[var10 + var9 * var3] = var11 + 128;\r\n if(var5 != null) {\r\n break label355;\r\n }\r\n }\r\n\r\n var8[var10 + var9 * var3] = var11;\r\n if(var5 != null) {\r\n break label355;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n\r\n var20 = this.method_6678(3);\r\n }\r\n }\r\n\r\n label356: {\r\n if(var5 != null) {\r\n label315: {\r\n if(var20 != 0) {\r\n var20 = var13;\r\n if(var5 == null) {\r\n break label315;\r\n }\r\n\r\n if(var13 == 0) {\r\n break label356;\r\n }\r\n }\r\n\r\n var20 = var11;\r\n }\r\n }\r\n\r\n int var14;\r\n int var15;\r\n int var10001;\r\n label304: {\r\n label357: {\r\n var14 = var20;\r\n var20 = var11;\r\n var10001 = class_985.field_4990.field_5050;\r\n if(var5 != null) {\r\n if(var11 == class_985.field_4990.field_5050) {\r\n var14 = class_985.field_5005.field_5050;\r\n if(var5 != null) {\r\n break label357;\r\n }\r\n }\r\n\r\n var20 = var11;\r\n var10001 = class_985.field_4992.field_5050;\r\n }\r\n\r\n if(var5 != null) {\r\n if(var20 == var10001) {\r\n var14 = class_985.field_5006.field_5050;\r\n if(var5 != null) {\r\n break label357;\r\n }\r\n }\r\n\r\n var20 = var11;\r\n var10001 = class_985.field_5015.field_5050;\r\n }\r\n\r\n if(var5 != null) {\r\n if(var20 == var10001) {\r\n var14 = class_985.field_5016.field_5050;\r\n if(var5 != null) {\r\n break label357;\r\n }\r\n }\r\n\r\n var20 = var11;\r\n var10001 = class_985.field_5017.field_5050;\r\n }\r\n\r\n if(var5 != null) {\r\n if(var20 == var10001) {\r\n var14 = class_985.field_4989.field_5050;\r\n if(var5 != null) {\r\n break label357;\r\n }\r\n }\r\n\r\n var20 = var11;\r\n var10001 = class_985.field_4993.field_5050;\r\n }\r\n\r\n if(var5 != null) {\r\n if(var20 == var10001) {\r\n var14 = class_985.field_5007.field_5050;\r\n if(var5 != null) {\r\n break label357;\r\n }\r\n }\r\n\r\n var20 = var11;\r\n var10001 = class_985.field_5020.field_5050;\r\n }\r\n\r\n if(var5 != null) {\r\n if(var20 == var10001) {\r\n var14 = class_985.field_5021.field_5050;\r\n if(var5 != null) {\r\n break label357;\r\n }\r\n }\r\n\r\n var20 = var11;\r\n var10001 = class_985.field_5018.field_5050;\r\n }\r\n\r\n if(var5 != null) {\r\n if(var20 == var10001) {\r\n var14 = class_985.field_5019.field_5050;\r\n if(var5 != null) {\r\n break label357;\r\n }\r\n }\r\n\r\n var20 = var11;\r\n var10001 = class_985.field_4989.field_5050;\r\n }\r\n\r\n if(var5 != null) {\r\n if(var20 == var10001) {\r\n var20 = this.method_6678(3);\r\n if(var5 != null) {\r\n if(var20 == 0) {\r\n var14 = class_985.field_5006.field_5050;\r\n if(var5 != null) {\r\n break label357;\r\n }\r\n }\r\n\r\n var20 = class_985.field_4992.field_5050;\r\n }\r\n\r\n var14 = var20;\r\n if(var5 != null) {\r\n break label357;\r\n }\r\n }\r\n\r\n var20 = var11;\r\n var10001 = class_985.field_5000.field_5050;\r\n }\r\n\r\n if(var5 != null) {\r\n if(var20 == var10001) {\r\n var14 = class_985.field_5001.field_5050;\r\n if(var5 != null) {\r\n break label357;\r\n }\r\n }\r\n\r\n var20 = var11;\r\n var10001 = class_985.field_5009.field_5050;\r\n }\r\n\r\n if(var5 != null) {\r\n if(var20 == var10001) {\r\n var14 = class_985.field_5010.field_5050;\r\n if(var5 != null) {\r\n break label357;\r\n }\r\n }\r\n\r\n var20 = var11;\r\n var10001 = class_985.field_4988.field_5050;\r\n }\r\n\r\n if(var5 != null) {\r\n if(var20 == var10001) {\r\n var14 = class_985.field_5012.field_5050;\r\n if(var5 != null) {\r\n break label357;\r\n }\r\n }\r\n\r\n var20 = var11;\r\n var10001 = class_985.field_4991.field_5050;\r\n }\r\n\r\n if(var5 != null) {\r\n if(var20 == var10001) {\r\n var14 = class_985.field_5022.field_5050;\r\n if(var5 != null) {\r\n break label357;\r\n }\r\n }\r\n\r\n var20 = var11;\r\n var10001 = class_985.field_5023.field_5050;\r\n }\r\n\r\n if(var5 != null) {\r\n if(var20 == var10001) {\r\n var14 = class_985.field_5024.field_5050;\r\n if(var5 != null) {\r\n break label357;\r\n }\r\n }\r\n\r\n var20 = var11;\r\n var10001 = class_985.field_5026.field_5050;\r\n }\r\n\r\n var20 = method_6680(var20, var10001);\r\n if(var5 != null) {\r\n if(var20 != 0) {\r\n var14 = class_985.field_5025.field_5050;\r\n if(var5 != null) {\r\n break label357;\r\n }\r\n }\r\n\r\n var20 = var11;\r\n }\r\n\r\n if(var5 == null) {\r\n break label304;\r\n }\r\n\r\n if(var20 == class_985.field_5012.field_5050) {\r\n var20 = this.method_6678(3);\r\n if(var5 == null) {\r\n break label304;\r\n }\r\n\r\n if(var20 == 0) {\r\n label207: {\r\n var15 = this.method_6678(2);\r\n var20 = var15;\r\n if(var5 != null) {\r\n if(var15 == 0) {\r\n var14 = class_985.field_4989.field_5050;\r\n if(var5 != null) {\r\n break label207;\r\n }\r\n }\r\n\r\n var20 = class_985.field_4992.field_5050;\r\n }\r\n\r\n var14 = var20;\r\n }\r\n }\r\n }\r\n }\r\n\r\n var20 = var13;\r\n }\r\n\r\n label358: {\r\n label359: {\r\n label360: {\r\n if(var5 != null) {\r\n if(var20 != 0) {\r\n var20 = var14;\r\n var10001 = var11;\r\n if(var5 == null) {\r\n break label360;\r\n }\r\n\r\n if(var14 != var11) {\r\n label184: {\r\n var20 = var14 + 128;\r\n if(var5 != null) {\r\n if(class_985.method_5725(var20) != null) {\r\n var14 += 128;\r\n if(var5 != null) {\r\n break label184;\r\n }\r\n }\r\n\r\n var20 = var11;\r\n }\r\n\r\n var14 = var20;\r\n }\r\n }\r\n }\r\n\r\n var20 = var14;\r\n }\r\n\r\n if(var5 == null) {\r\n break label359;\r\n }\r\n\r\n var10001 = var11;\r\n }\r\n\r\n if(var20 == var10001) {\r\n var8[var10 + var9 * var3] = var11;\r\n if(var5 != null) {\r\n break label358;\r\n }\r\n }\r\n\r\n var20 = var6[var10 + 1 + (var9 + 1 - 1) * (var3 + 2)];\r\n }\r\n\r\n var15 = var20;\r\n int var16 = var6[var10 + 1 + 1 + (var9 + 1) * (var3 + 2)];\r\n int var17 = var6[var10 + 1 - 1 + (var9 + 1) * (var3 + 2)];\r\n int var18 = var6[var10 + 1 + (var9 + 1 + 1) * (var3 + 2)];\r\n int var19 = 0;\r\n var20 = method_6680(var15, var11);\r\n if(var5 != null) {\r\n if(var20 != 0) {\r\n ++var19;\r\n }\r\n\r\n var20 = method_6680(var16, var11);\r\n }\r\n\r\n if(var5 != null) {\r\n if(var20 != 0) {\r\n ++var19;\r\n }\r\n\r\n var20 = method_6680(var17, var11);\r\n }\r\n\r\n if(var5 != null) {\r\n if(var20 != 0) {\r\n ++var19;\r\n }\r\n\r\n var20 = method_6680(var18, var11);\r\n }\r\n\r\n if(var5 != null) {\r\n if(var20 != 0) {\r\n ++var19;\r\n }\r\n\r\n var20 = var19;\r\n }\r\n\r\n if(var20 >= 3) {\r\n var8[var10 + var9 * var3] = var14;\r\n if(var5 != null) {\r\n break label358;\r\n }\r\n }\r\n\r\n var8[var10 + var9 * var3] = var11;\r\n }\r\n\r\n if(var5 != null) {\r\n break label355;\r\n }\r\n }\r\n\r\n var8[var10 + var9 * var3] = var11;\r\n }\r\n\r\n ++var10;\r\n if(var5 == null) {\r\n break label345;\r\n }\r\n }\r\n }\r\n\r\n ++var9;\r\n } while(var5 != null);\r\n\r\n return var8;\r\n }", "title": "" }, { "docid": "659ba5f5a1d6324593e8f2eea1aaa0f2", "score": "0.51053005", "text": "public void test423129b() {\n this.runNegativeTest(new String[] { \"X.java\", \"import java.util.ArrayList;\\n\" + \"import java.util.Arrays;\\n\" + \"import java.util.Collections;\\n\" + \"import java.util.Comparator;\\n\" + \"public class X {\\n\" + \" int compareTo(X x) { return 0; }\\n\" + \"\tvoid foo() {\\n\" + \"\t\tCollections.sort(new ArrayList<X>(Arrays.asList(new X(), new X(), new X())),\\n\" + \"\t\t\t\t(X o1, X o2) -> o1.compareTo(o2)); //[2]\\n\" + \"\t}\\n\" + \"\t}\\n\" + \"}\\n\" }, \"----------\\n\" + \"1. ERROR in X.java (at line 12)\\n\" + \"\t}\\n\" + \"\t^\\n\" + \"Syntax error on token \\\"}\\\", delete this token\\n\" + \"----------\\n\", true);\n }", "title": "" }, { "docid": "355dba0a4ab53dfe47662664156440f7", "score": "0.5089408", "text": "public JJITInstruction run(KFrame frame) throws Exception {\n KReference this_ref = ((KReference)frame.getLocal(0));\n // *********[45] ALOAD(0)\n frame.push(this_ref);\n // *********[46] ALOAD(0)\n // **REMOVED Substitution** s0_ref = this_ref;\n // *********[47] GETFIELD(jnt.Bench.Bench,ascending,Z)\n // **REMOVED Substitution** s0 = c_ascending.getInstanceValue(this_ref);\n // *********[48] IFEQ(57)\n // **REMOVED Substitution** index = c_ascending.getInstanceValue(this_ref).intValue();\n // **REMOVED Substitution** jump = c_ascending.getInstanceValue(this_ref).intValue() == 0;\n return ((c_ascending.getInstanceValue(this_ref).intValue() == 0)?(c_label):(c_next));\n }", "title": "" }, { "docid": "19223c8b989f18ae469643bcfa18a3b6", "score": "0.5081068", "text": "private static List<Integer>[] getStartingDeterminisation() {\n\t\tList<Integer>[] returnValue = new ArrayList[MAX_STATE];\n\t\tint ac = 0;\n\t\t//\t\tList<Integer> local = null;\n\t\tint[] local = null;\n\t\tint cp = 0;\n\t\tfor (int i = 0; i < states.length; i++) {\n\t\t\tif (states[i][0] == 1 && isnotIn(returnValue, ac, i)) {\n\t\t\t\tlocal = new int[MAX_STATE];\n\t\t\t\tcp = 0;\n\t\t\t\tlocal[cp++] = i;\n\t\t\t\tfor (int j = 0; j < cp; j++) {\n\t\t\t\t\tfor (int k = 0; k < MAX_STATE; k++) {\n\t\t\t\t\t\tif (epsilons[local[j]][k] == -1) {\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t} else if (isnotIn(local, cp, epsilons[local[j]][k])) {\n\t\t\t\t\t\t\tlocal[cp++] = epsilons[local[j]][k];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturnValue[ac++] = tabToList(local, cp);\n\t\t\t}\n\n\t\t}\n\t\treturn returnValue;\n\t}", "title": "" }, { "docid": "c4bda1b57bfff434d05745b150e1ecf1", "score": "0.50795823", "text": "private final void f() {\n /*\n r14 = this;\n r11 = 0;\n r12 = 1;\n r13 = 0;\n r0 = r14.i;\n if (r0 == 0) goto L_0x00ec;\n L_0x0007:\n r0 = r14.c;\n if (r0 == 0) goto L_0x00ec;\n L_0x000b:\n r0 = r14.c;\n r1 = 32;\n r0 = r0.c(r1);\n if (r0 != 0) goto L_0x0023;\n L_0x0015:\n r0 = r14.e;\n if (r0 == 0) goto L_0x00ed;\n L_0x0019:\n r0 = r14.e;\n r0 = r0.p;\n r2 = 1;\n r0 = (r0 > r2 ? 1 : (r0 == r2 ? 0 : -1));\n if (r0 != 0) goto L_0x00ed;\n L_0x0023:\n r10 = r12;\n L_0x0024:\n r0 = r14.i;\n r0 = (defpackage.azq) r0;\n r1 = r14.c;\n r1 = r1.c();\n r2 = r14.c;\n r2 = r2.k();\n r3 = r14.c;\n r3 = r3.i;\n r4 = r14.c;\n r4 = r4.f();\n r5 = r14.l();\n r6 = r14.c;\n r6 = r6.b;\n r6 = r6.getDetails();\n r6 = r6.getStatusHints();\n if (r6 == 0) goto L_0x00f0;\n L_0x0050:\n r7 = r6.getIcon();\n if (r7 == 0) goto L_0x00f0;\n L_0x0056:\n r6 = r6.getIcon();\n r7 = r14.g;\n r6 = r6.loadDrawable(r7);\n if (r6 == 0) goto L_0x00f0;\n L_0x0062:\n r7 = r14.m();\n if (r7 == 0) goto L_0x00f3;\n L_0x0068:\n r7 = r14.c;\n r7 = r7.h();\n r7 = r7.getGatewayAddress();\n r7 = defpackage.azo.a(r7);\n L_0x0076:\n r8 = r14.c;\n r9 = 8;\n r8 = r8.c(r9);\n r9 = r14.c;\n r9 = r9.c(r12);\n r0.a(r1, r2, r3, r4, r5, r6, r7, r8, r9, r10);\n r14.g();\n r0 = r14.c;\n r1 = 4;\n r1 = r0.c(r1);\n r0 = r14.c;\n r0 = r0.h;\n if (r0 != 0) goto L_0x0099;\n L_0x0097:\n if (r1 == 0) goto L_0x00f7;\n L_0x0099:\n r0 = r14.c;\n r0 = r0.i();\n if (r0 == 0) goto L_0x00f5;\n L_0x00a1:\n r2 = defpackage.bcj.b();\n r2 = r2.n();\n r0 = defpackage.buf.a(r2, r0);\n if (r0 == 0) goto L_0x00f5;\n L_0x00af:\n r0 = r0.getSubscriptionAddress();\n r0 = defpackage.azo.a(r0);\n L_0x00b7:\n r2 = defpackage.bcj.b();\n r2 = r2.n();\n r3 = defpackage.bcj.b();\n r3 = r3.z;\n r4 = r14.c;\n r4 = r4.i();\n r2 = defpackage.buf.a(r2, r3, r4);\n if (r1 != 0) goto L_0x0112;\n L_0x00d1:\n r2 = android.telephony.PhoneNumberUtils.compare(r0, r2);\n if (r2 == 0) goto L_0x0112;\n L_0x00d7:\n r0 = \"Numbers are the same (and callback number is not being forced to show); not showing the callback number\";\n defpackage.bdf.a(r14, r0);\n L_0x00dc:\n r0 = r14.i;\n r0 = (defpackage.azq) r0;\n r2 = r14.c;\n r2 = r2.h;\n if (r2 != 0) goto L_0x00e8;\n L_0x00e6:\n if (r1 == 0) goto L_0x00e9;\n L_0x00e8:\n r11 = r12;\n L_0x00e9:\n r0.a(r13, r11);\n L_0x00ec:\n return;\n L_0x00ed:\n r10 = r11;\n goto L_0x0024;\n L_0x00f0:\n r6 = r13;\n goto L_0x0062;\n L_0x00f3:\n r7 = r13;\n goto L_0x0076;\n L_0x00f5:\n r0 = r13;\n goto L_0x00b7;\n L_0x00f7:\n r0 = r14.c;\n r0 = r0.b;\n r0 = r0.getDetails();\n r0 = r0.getStatusHints();\n if (r0 == 0) goto L_0x0114;\n L_0x0105:\n r0 = r0.getExtras();\n if (r0 == 0) goto L_0x0114;\n L_0x010b:\n r2 = \"android.telecom.extra.CALL_BACK_NUMBER\";\n r0 = r0.getString(r2);\n goto L_0x00b7;\n L_0x0112:\n r13 = r0;\n goto L_0x00dc;\n L_0x0114:\n r0 = r13;\n goto L_0x00b7;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: azo.f():void\");\n }", "title": "" }, { "docid": "12d25cf67e5dcc0d11d5760ca676ae27", "score": "0.50780344", "text": "public static d a(r var0) {\n var1_1 = false;\n var2_2 = -1;\n var3_3 = -1;\n var4_4 = false;\n var5_5 = false;\n var6_6 = false;\n var7_7 = -1;\n var8_8 = -1;\n var9_9 = false;\n var10_10 = false;\n var11_11 = true;\n var12_12 = var0.a();\n var13_13 = 0;\n var14_14 = null;\n var15_15 = false;\n do {\n if (var13_13 >= var12_12) ** GOTO lbl33\n var17_16 = var0.a(var13_13);\n var18_18 = var0.b(var13_13);\n if (!var17_16.equalsIgnoreCase(\"Cache-Control\")) ** GOTO lbl26\n if (var14_14 != null) {\n var11_11 = false;\n } else {\n var14_14 = var18_18;\n }\n ** GOTO lbl28\nlbl26: // 1 sources:\n if (!var17_16.equalsIgnoreCase(\"Pragma\")) ** GOTO lbl31\n var11_11 = false;\nlbl28: // 3 sources:\n var19_17 = var15_15;\n var20_20 = 0;\n ** GOTO lbl38\nlbl31: // 1 sources:\n var19_17 = var15_15;\n ** GOTO lbl90\nlbl33: // 1 sources:\n if (!var11_11) {\n var16_29 = null;\n return new d(var15_15, var1_1, var2_2, var3_3, var4_4, var5_5, var6_6, var7_7, var8_8, var9_9, var10_10, var16_29);\n }\n var16_29 = var14_14;\n return new d(var15_15, var1_1, var2_2, var3_3, var4_4, var5_5, var6_6, var7_7, var8_8, var9_9, var10_10, var16_29);\nlbl38: // 13 sources:\n while (var20_20 < var18_18.length()) {\n var21_19 = c.a(var18_18, var20_20, \"=,;\");\n var22_22 = var18_18.substring(var20_20, var21_19).trim();\n if (var21_19 == var18_18.length() || var18_18.charAt(var21_19) == ',' || var18_18.charAt(var21_19) == ';') {\n var20_20 = var21_19 + 1;\n var23_21 = null;\n } else {\n var24_24 = c.a(var18_18, var21_19 + 1);\n if (var24_24 < var18_18.length() && var18_18.charAt(var24_24) == '\\\"') {\n var27_25 = var24_24 + 1;\n var28_28 = c.a(var18_18, var27_25, \"\\\"\");\n var29_27 = var18_18.substring(var27_25, var28_28);\n var20_20 = var28_28 + 1;\n var23_21 = var29_27;\n } else {\n var25_23 = c.a(var18_18, var24_24, \",;\");\n var26_26 = var18_18.substring(var24_24, var25_23).trim();\n var20_20 = var25_23;\n var23_21 = var26_26;\n }\n }\n if (\"no-cache\".equalsIgnoreCase(var22_22)) {\n var19_17 = true;\n continue;\n }\n if (\"no-store\".equalsIgnoreCase(var22_22)) {\n var1_1 = true;\n continue;\n }\n if (\"max-age\".equalsIgnoreCase(var22_22)) {\n var2_2 = c.b(var23_21, -1);\n continue;\n }\n if (\"s-maxage\".equalsIgnoreCase(var22_22)) {\n var3_3 = c.b(var23_21, -1);\n continue;\n }\n if (\"private\".equalsIgnoreCase(var22_22)) {\n var4_4 = true;\n continue;\n }\n if (\"public\".equalsIgnoreCase(var22_22)) {\n var5_5 = true;\n continue;\n }\n if (\"must-revalidate\".equalsIgnoreCase(var22_22)) {\n var6_6 = true;\n continue;\n }\n if (\"max-stale\".equalsIgnoreCase(var22_22)) {\n var7_7 = c.b(var23_21, Integer.MAX_VALUE);\n continue;\n }\n if (\"min-fresh\".equalsIgnoreCase(var22_22)) {\n var8_8 = c.b(var23_21, -1);\n continue;\n }\n if (\"only-if-cached\".equalsIgnoreCase(var22_22)) {\n var9_9 = true;\n continue;\n }\n if (!\"no-transform\".equalsIgnoreCase(var22_22)) continue;\n var10_10 = true;\n }\nlbl90: // 2 sources:\n ++var13_13;\n var15_15 = var19_17;\n } while (true);\n }", "title": "" }, { "docid": "1c8589be45b75399a766b8f4661000e1", "score": "0.50772345", "text": "public void sort() {\n\n\t}", "title": "" }, { "docid": "842f3954c520b20b559427a98bd54d11", "score": "0.5076949", "text": "@SuppressWarnings(\"UnnecessaryReturnStatement\")\r\n public void backtracking(){ \r\n if(orderedVars.isEmpty()) {\r\n makeSolution();\r\n return;\r\n }\r\n \r\n CSPVariable cspVar;\r\n cspVar = orderedVars.poll();\r\n \r\n cspVar.storage.stream().filter((var) -> (consistent(var, cspVar))).forEachOrdered((var) -> {\r\n if(cspVar.Row){ \r\n rowSolution[tempX++] = new Line(var,cspVar.position,cspVar.Row);\r\n backtracking();\r\n rowSolution[--tempX] = null;\r\n } else{\r\n colSolution[tempY++] = new Line(var,cspVar.position,cspVar.Row);\r\n backtracking();\r\n colSolution[--tempY] = null;\r\n }\r\n });\r\n \r\n orderedVars.add(cspVar);\r\n }", "title": "" }, { "docid": "95b34d53c614d0fb183983f5d3719f38", "score": "0.5071713", "text": "public List<Integer> rGreaterL() { //List<Integer> vertices, int length, int range\n //List<Integer> distances = new ArrayList<Integer>();\n for (int i = 0; i < vertices.size(); i++) {\n distances.add(0);\n }\n // get all the gaps & all the overlaps\n // order them in such a way that they are ordered. ie, include start and\n // end of each\n List<List<Integer>> gaps = getGaps();\n\n for (int i = 0; i < gaps.size(); i++) { // removed -1\n int costLeft = 0;\n int costRight = 0;\n int c = 0;\n if (gaps.get(i).get(2) > 0) {\n if (i > 0) {\n // check left for overlaps\n if (gaps.get(i - 1).get(2) < 0) {\n // calculate cost of left - for now set cost to 1\n costLeft = 1;\n } else {\n // if its another gap, ignore it. or set it to infinite\n costLeft = 1000;\n }\n } // make sure i-1 doesn't cause a NPE\n\n if (i + 1 < gaps.size()) {\n if (gaps.get(i + 1).get(2) < 0) {\n // calculate cost of right. - for now set cost to 1\n costRight = 1;\n } else {\n // if its another gap, ignore it. or set it to infinite\n costRight = 1000;\n }\n }\n if(i == 0){\n int vertexShifted = gaps.get(0).get(1);\n // shift it left by gap distance.\n distances.set(vertexShifted, -gaps.get(0).get(2));\n int newVertixLoc = vertices.get(0)-gaps.get(0).get(2);\n //update the next gap.\n int diff = vertices.get(1)-newVertixLoc;\n if(diff == 0){\n gaps.get(1).set(2, -(2*range));\n }\n else if(diff > (2*range)){\n //gap\n int d = diff - (2*range);\n gaps.get(1).set(2,d);\n }\n else if(diff < (2*range)){\n //overlap\n int ov = (2*range) - diff;\n gaps.get(1).set(2,ov);\n }else if(diff == (2*range)){\n //exactly where they should be\n gaps.get(1).set(2,0);\n }\n }\n else if (costLeft <= costRight) { // right shift is done - ONLY if its not the first vertex\n if (Math.abs(gaps.get(i - 1).get(2)) < gaps.get(i).get(2)) {\n c = Math.abs(gaps.get(i - 1).get(2)); // size of left overlap\n } else {\n c = gaps.get(i).get(2); // size of current gap\n }\n gaps.get(i).set(2, gaps.get(i).get(2) - c);\n gaps.get(i - 1).set(2, Math.abs(gaps.get(i - 1).get(2)) - c);\n int vertixShifted = gaps.get(i - 1).get(1); /*at this point, vertix shifted points to the index, not the actual vertex */\n distances.set(vertixShifted, distances.get(vertixShifted)+c);\n // add c to the values in array d of sensors between\n }\n else if(i == gaps.size()-1){\n if(gaps.get(i-1).get(2) < 0){\n int movementRoom = Math.abs(gaps.get(i-1).get(2));\n // to avoid the nasty edge case of movementRoom putting vertex above length\n if(movementRoom >= gaps.get(i).get(2)){\n movementRoom = gaps.get(i).get(2);\n }\n // what if movement room puts it above length? then you start crying.\n gaps.get(i-1).set(2, gaps.get(i-1).get(2)+movementRoom);\n gaps.get(i).set(2, movementRoom);\n System.out.println(\"Vertex: \" + gaps.get(i).get(0) + \" Length is: \" + length + \" Distances size: \" + distances.size() + \" What is i? \" + i);\n distances.set(gaps.get(i).get(0), distances.get(gaps.get(i).get(0))+movementRoom);\n }\n }\n else { // left shift is done\n if (Math.abs(gaps.get(i + 1).get(2)) < Math.abs(gaps.get(i).get(2))) {\n c = Math.abs(gaps.get(i + 1).get(2));\n } else {\n c = gaps.get(i).get(2);\n }\n gaps.get(i).set(2, gaps.get(i).get(2) - c);\n gaps.get(i + 1).set(2, Math.abs(gaps.get(i + 1).get(2)) - c);\n int vertixShifted = gaps.get(i + 1).get(0); /*add this to array of d. Negative */\n // vertixShifted is now an index, not the vertex itself.\n\t\t\t\t\t/* This tells where a vertix should move */\n distances.set(vertixShifted, distances.get(vertixShifted)-c);\n }\n } // if not first vertix\n\n }// for\n\n return distances;\n }", "title": "" }, { "docid": "8d109f9b2d776e57c596db6a9d7f82b0", "score": "0.5070586", "text": "private void sortToppings(){\n }", "title": "" }, { "docid": "4d9e9f45b06f671ba748f5fa6d4d26ee", "score": "0.5066124", "text": "private void inPlaceSort(int beginIndex, int endIndex, PSTPoint s) {\n\tSort.heapSort(tree,baseZeroIndex(beginIndex),baseZeroIndex(endIndex));\n }", "title": "" }, { "docid": "26419b5d2557f08fb63333a2af92fb48", "score": "0.506078", "text": "public int getBlockZ() {\n/* 217 */ return locToBlock(this.z);\n/* */ }", "title": "" }, { "docid": "e1d39f58fdd9eafe9760459cf457e8b1", "score": "0.5055323", "text": "void DW(com.aide.ui.scm.a.b.b r13) {\n /*\n r12 = this;\n r0 = -1;\n r7 = 0;\n r8 = r12.v5;\n r9 = r13.v5;\n r10 = r12.j6;\n r6 = r0;\n r1 = r7;\n r3 = r7;\n L_0x000b:\n if (r3 >= r10) goto L_0x0022;\n L_0x000d:\n r2 = r3 + 1;\n r2 = r8[r2];\n if (r2 != 0) goto L_0x0022;\n L_0x0013:\n r2 = r1;\n L_0x0014:\n r1 = r2 + 1;\n r2 = r2 + 1;\n r2 = r9[r2];\n if (r2 == 0) goto L_0x001f;\n L_0x001c:\n r0 = r1;\n r2 = r1;\n goto L_0x0014;\n L_0x001f:\n r3 = r3 + 1;\n goto L_0x000b;\n L_0x0022:\n if (r3 != r10) goto L_0x0025;\n L_0x0024:\n return;\n L_0x0025:\n r2 = r3;\n r4 = r1;\n r5 = r3;\n L_0x0028:\n if (r5 >= r10) goto L_0x0034;\n L_0x002a:\n r3 = r5 + 1;\n r3 = r8[r3];\n if (r3 == 0) goto L_0x0034;\n L_0x0030:\n r3 = r5 + 1;\n r5 = r3;\n goto L_0x0028;\n L_0x0034:\n if (r5 == r10) goto L_0x0064;\n L_0x0036:\n r3 = r12.VH;\n r3 = r3[r2];\n r11 = r12.VH;\n r11 = r11[r5];\n if (r3 != r11) goto L_0x0064;\n L_0x0040:\n r3 = r4 + 1;\n r3 = r9[r3];\n if (r3 != 0) goto L_0x0064;\n L_0x0046:\n if (r5 == r10) goto L_0x0064;\n L_0x0048:\n if (r6 < 0) goto L_0x004c;\n L_0x004a:\n if (r2 == r6) goto L_0x0064;\n L_0x004c:\n if (r0 < 0) goto L_0x0050;\n L_0x004e:\n if (r1 == r0) goto L_0x0064;\n L_0x0050:\n r3 = r5 + 1;\n r3 = r5 + 1;\n r11 = 1;\n r8[r3] = r11;\n r3 = r2 + 1;\n r2 = r2 + 1;\n r8[r2] = r7;\n r5 = r5 + 1;\n r2 = r4 + 1;\n r4 = r2;\n r2 = r3;\n goto L_0x0028;\n L_0x0064:\n r0 = r4;\n r6 = r5;\n r1 = r4;\n r3 = r5;\n goto L_0x000b;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.aide.ui.scm.a.b.b.DW(com.aide.ui.scm.a$b$b):void\");\n }", "title": "" }, { "docid": "9dfa4378083cc9eabedd1661991a8297", "score": "0.5052783", "text": "private final void a() {\n /*\n r6 = this;\n int r0 = r6.f83764c\n r1 = 0\n if (r0 >= 0) goto L_0x000b\n r6.f83762a = r1\n r0 = 0\n r6.f83765d = r0\n return\n L_0x000b:\n kotlin.text.d r0 = r6.f83767f\n int r0 = r0.f83760c\n r2 = -1\n r3 = 1\n if (r0 <= 0) goto L_0x0020\n int r0 = r6.f83766e\n int r0 = r0 + r3\n r6.f83766e = r0\n int r0 = r6.f83766e\n kotlin.text.d r4 = r6.f83767f\n int r4 = r4.f83760c\n if (r0 >= r4) goto L_0x002c\n L_0x0020:\n int r0 = r6.f83764c\n kotlin.text.d r4 = r6.f83767f\n java.lang.CharSequence r4 = r4.f83758a\n int r4 = r4.length()\n if (r0 <= r4) goto L_0x0040\n L_0x002c:\n int r0 = r6.f83763b\n kotlin.ranges.IntRange r1 = new kotlin.ranges.IntRange\n kotlin.text.d r4 = r6.f83767f\n java.lang.CharSequence r4 = r4.f83758a\n int r4 = kotlin.text.StringsKt.getLastIndex(r4)\n r1.<init>(r0, r4)\n r6.f83765d = r1\n r6.f83764c = r2\n goto L_0x0091\n L_0x0040:\n kotlin.text.d r0 = r6.f83767f\n kotlin.jvm.functions.Function2<java.lang.CharSequence, java.lang.Integer, kotlin.Pair<java.lang.Integer, java.lang.Integer>> r0 = r0.f83761d\n kotlin.text.d r4 = r6.f83767f\n java.lang.CharSequence r4 = r4.f83758a\n int r5 = r6.f83764c\n java.lang.Integer r5 = java.lang.Integer.valueOf(r5)\n java.lang.Object r0 = r0.invoke(r4, r5)\n kotlin.Pair r0 = (kotlin.Pair) r0\n if (r0 != 0) goto L_0x006a\n int r0 = r6.f83763b\n kotlin.ranges.IntRange r1 = new kotlin.ranges.IntRange\n kotlin.text.d r4 = r6.f83767f\n java.lang.CharSequence r4 = r4.f83758a\n int r4 = kotlin.text.StringsKt.getLastIndex(r4)\n r1.<init>(r0, r4)\n r6.f83765d = r1\n r6.f83764c = r2\n goto L_0x0091\n L_0x006a:\n java.lang.Object r2 = r0.component1()\n java.lang.Number r2 = (java.lang.Number) r2\n int r2 = r2.intValue()\n java.lang.Object r0 = r0.component2()\n java.lang.Number r0 = (java.lang.Number) r0\n int r0 = r0.intValue()\n int r4 = r6.f83763b\n kotlin.ranges.IntRange r4 = kotlin.ranges.RangesKt.until((int) r4, (int) r2)\n r6.f83765d = r4\n int r2 = r2 + r0\n r6.f83763b = r2\n int r2 = r6.f83763b\n if (r0 != 0) goto L_0x008e\n r1 = 1\n L_0x008e:\n int r2 = r2 + r1\n r6.f83764c = r2\n L_0x0091:\n r6.f83762a = r3\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: kotlin.text.d.a.a():void\");\n }", "title": "" }, { "docid": "4292197eb34f9a6ca30d81eade0272b0", "score": "0.5044995", "text": "private void stepCursor() {\n predpred = pred;\n pred = curr;\n curr = curr.next;\n if (listOrder == ListOrder.BubbleUp) {\n // swap curr and curr.next if the latter has a larger key\n DataNode next = curr.next;\n if (curr.key < next.key) {\n swapNeighboringNodes(pred);\n curr = next;\n }\n }\n }", "title": "" }, { "docid": "3e7b64dde9d3c17807eecbb9850f0175", "score": "0.5043057", "text": "public float getPlacedBlockOffsetZ() {\n/* 110 */ return this.facingZ;\n/* */ }", "title": "" }, { "docid": "32186ec69d155a774e0419cd63256f74", "score": "0.5043034", "text": "public void mo1342b() {\n int i = 0;\n View view = (View) this.f903a.get(0);\n C0142c b = mo1341b(view);\n this.f904b = StaggeredGridLayoutManager.this.f871u.mo6362d(view);\n if (b.f886f) {\n C0144a c = StaggeredGridLayoutManager.this.f857E.mo1324c(b.mo1248a());\n if (c != null && c.f890f == -1) {\n int i2 = this.f904b;\n int i3 = this.f907e;\n int[] iArr = c.f891g;\n if (iArr != null) {\n i = iArr[i3];\n }\n this.f904b = i2 - i;\n }\n }\n }", "title": "" }, { "docid": "f994fc974d7ef6ce93307d868e63017f", "score": "0.5042866", "text": "int[] hungarianMethod(int w[][]) {\r\n\t final int n = w.length, m = w[0].length, PHI = -1, NOL = -2,\r\n\t INF = 1<<30;\r\n\t boolean[] x[] = new boolean[n][m], ss = new boolean[n], st = new boolean[m];\r\n\t int[] u = new int[n], v = new int[m], p = new int[m], ls = new int[n], lt = new int[m], a = new int[n];\r\n\t int f = 0;\r\n\r\n\t for (int i = 0; i < n; i++)\r\n\t for (int j = 0; j < m; j++)\r\n\t f = Math.max(f, w[i][j]);\r\n\r\n\t Arrays.fill(u, f);\r\n\t Arrays.fill(p, INF);\r\n\t Arrays.fill(lt, NOL);\r\n\t Arrays.fill(ls, PHI);\r\n\t Arrays.fill(a, -1);\r\n\r\n\t while (true) {\r\n\t f = -1;\r\n\t for (int i = 0; i < n && f == -1; i++)\r\n\t if (ls[i] != NOL && !ss[i])\r\n\t f = i;\r\n\r\n\t if (f != -1) {\r\n\t ss[f] = true;\r\n\t for (int j = 0; j < m; j++)\r\n\t if (!x[f][j] && u[f] + v[j] - w[f][j] < p[j]) {\r\n\t lt[j] = f;\r\n\t p[j] = u[f] + v[j] - w[f][j];\r\n\t }\r\n\t } else {\r\n\t for (int i = 0; i < m && f == -1; i++)\r\n\t if (lt[i] != NOL && !st[i] && p[i] == 0)\r\n\t f = i;\r\n\r\n\t if (f == -1) {\r\n\t int d1 = INF, d2 = INF, d;\r\n\t for (int i : u)\r\n\t d1 = Math.min(d1, i);\r\n\r\n\t for (int i : p)\r\n\t if (i > 0)\r\n\t d2 = Math.min(d2, i);\r\n\r\n\t d = Math.min(d1, d2);\r\n\r\n\t for (int i = 0; i < n; i++)\r\n\t if (ls[i] != NOL)\r\n\t u[i] -= d;\r\n\r\n\t for (int i = 0; i < m; i++) {\r\n\t if (p[i] == 0)\r\n\t v[i] += d;\r\n\t if (p[i] > 0 && lt[i] != NOL)\r\n\t p[i] -= d;\r\n\t }\r\n\r\n\t if (d2 >= d1)\r\n\t break;\r\n\t } else {\r\n\t st[f] = true;\r\n\t int s = -1;\r\n\r\n\t for (int i = 0; i < n && s == -1; i++)\r\n\t if (x[i][f])\r\n\t s = i;\r\n\r\n\t if (s == -1) {\r\n\t for (int l, r; ; f = r) {\r\n\t r = f;\r\n\t l = lt[r];\r\n\r\n\t if (r >= 0 && l >= 0)\r\n\t x[l][r] = !x[l][r];\r\n\t else\r\n\t break;\r\n\r\n\t r = ls[l];\r\n\t if (r >= 0 && l >= 0)\r\n\t x[l][r] = !x[l][r];\r\n\t else\r\n\t break;\r\n\t }\r\n\r\n\t Arrays.fill(p, INF);\r\n\t Arrays.fill(lt, NOL);\r\n\t Arrays.fill(ls, NOL);\r\n\t Arrays.fill(ss, false);\r\n\t Arrays.fill(st, false);\r\n\r\n\t for (int i = 0; i < n; i++) {\r\n\t boolean ex = true;\r\n\t for (int j = 0; j < m && ex; j++)\r\n\t ex = !x[i][j];\r\n\t if (ex)\r\n\t ls[i] = PHI;\r\n\t }\r\n\t } else\r\n\t ls[s] = f;\r\n\t }\r\n\t }\r\n\t }\r\n\r\n\t for (int i = 0; i < n; i++)\r\n\t for (int j = 0; j < m; j++)\r\n\t if (x[i][j])\r\n\t a[j] = i;\r\n\t return a;\r\n\t}", "title": "" }, { "docid": "055d5ba7ead04bc21bc1b1ce9cc38368", "score": "0.5040194", "text": "@Override\r\n\tpublic void updateTick(World par1World, int par2, int par3, int par4, Random par5Random)\r\n\t{\r\n\t\tif (!par1World.isRemote)\r\n\t\t{\r\n\t\t\tint l = par1World.getBlockMetadata(par2, par3, par4);\r\n\r\n\t\t\tif ((l & 8) != 0 && (l & 4) == 0)\r\n\t\t\t{\r\n\t\t\t\tbyte b0 = 4;\r\n\t\t\t\tint i1 = b0 + 1;\r\n\t\t\t\tbyte b1 = 32;\r\n\t\t\t\tint j1 = b1 * b1;\r\n\t\t\t\tint k1 = b1 / 2;\r\n\r\n\t\t\t\tif (this.adjacentTreeBlocks == null)\r\n\t\t\t\t{\r\n\t\t\t\t\tthis.adjacentTreeBlocks = new int[b1 * b1 * b1];\r\n\t\t\t\t}\r\n\r\n\t\t\t\tint l1;\r\n\r\n\t\t\t\tif (par1World.checkChunksExist(par2 - i1, par3 - i1, par4 - i1, par2 + i1, par3 + i1, par4 + i1))\r\n\t\t\t\t{\r\n\t\t\t\t\tint i2;\r\n\t\t\t\t\tint j2;\r\n\t\t\t\t\tint k2;\r\n\r\n\t\t\t\t\tfor (l1 = -b0; l1 <= b0; ++l1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tfor (i2 = -b0; i2 <= b0; ++i2)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tfor (j2 = -b0; j2 <= b0; ++j2)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tk2 = par1World.getBlockId(par2 + l1, par3 + i2, par4 + j2);\r\n\r\n\t\t\t\t\t\t\t\tBlock block = Block.blocksList[k2];\r\n\r\n\t\t\t\t\t\t\t\tif (block != null && block.canSustainLeaves(par1World, par2 + l1, par3 + i2, par4 + j2))\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tthis.adjacentTreeBlocks[(l1 + k1) * j1 + (i2 + k1) * b1 + j2 + k1] = 0;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse if (block != null && block.isLeaves(par1World, par2 + l1, par3 + i2, par4 + j2))\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tthis.adjacentTreeBlocks[(l1 + k1) * j1 + (i2 + k1) * b1 + j2 + k1] = -2;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tthis.adjacentTreeBlocks[(l1 + k1) * j1 + (i2 + k1) * b1 + j2 + k1] = -1;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tfor (l1 = 1; l1 <= 4; ++l1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tfor (i2 = -b0; i2 <= b0; ++i2)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tfor (j2 = -b0; j2 <= b0; ++j2)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tfor (k2 = -b0; k2 <= b0; ++k2)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tif (this.adjacentTreeBlocks[(i2 + k1) * j1 + (j2 + k1) * b1 + k2 + k1] == l1 - 1)\r\n\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\tif (this.adjacentTreeBlocks[(i2 + k1 - 1) * j1 + (j2 + k1) * b1 + k2 + k1] == -2)\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tthis.adjacentTreeBlocks[(i2 + k1 - 1) * j1 + (j2 + k1) * b1 + k2 + k1] = l1;\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\t\tif (this.adjacentTreeBlocks[(i2 + k1 + 1) * j1 + (j2 + k1) * b1 + k2 + k1] == -2)\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tthis.adjacentTreeBlocks[(i2 + k1 + 1) * j1 + (j2 + k1) * b1 + k2 + k1] = l1;\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\t\tif (this.adjacentTreeBlocks[(i2 + k1) * j1 + (j2 + k1 - 1) * b1 + k2 + k1] == -2)\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tthis.adjacentTreeBlocks[(i2 + k1) * j1 + (j2 + k1 - 1) * b1 + k2 + k1] = l1;\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\t\tif (this.adjacentTreeBlocks[(i2 + k1) * j1 + (j2 + k1 + 1) * b1 + k2 + k1] == -2)\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tthis.adjacentTreeBlocks[(i2 + k1) * j1 + (j2 + k1 + 1) * b1 + k2 + k1] = l1;\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\t\tif (this.adjacentTreeBlocks[(i2 + k1) * j1 + (j2 + k1) * b1 + (k2 + k1 - 1)] == -2)\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tthis.adjacentTreeBlocks[(i2 + k1) * j1 + (j2 + k1) * b1 + (k2 + k1 - 1)] = l1;\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\t\tif (this.adjacentTreeBlocks[(i2 + k1) * j1 + (j2 + k1) * b1 + k2 + k1 + 1] == -2)\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tthis.adjacentTreeBlocks[(i2 + k1) * j1 + (j2 + k1) * b1 + k2 + k1 + 1] = l1;\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tl1 = this.adjacentTreeBlocks[k1 * j1 + k1 * b1 + k1];\r\n\r\n\t\t\t\tif (l1 >= 0)\r\n\t\t\t\t{\r\n\t\t\t\t\tpar1World.setBlockMetadataWithNotify(par2, par3, par4, l & -9, 4);\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tthis.removeLeaves(par1World, par2, par3, par4);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "9bf453c56939811816f63476e51f50fa", "score": "0.5038486", "text": "public int compare(TryCatchBlockNode tryCatchBlockNode1, TryCatchBlockNode tryCatchBlockNode2)\n/* */ {\n/* 109 */ return blockLength(tryCatchBlockNode1) - blockLength(tryCatchBlockNode2);\n/* */ }", "title": "" }, { "docid": "98f320264e7468fa4738cd1a44e04419", "score": "0.5038158", "text": "public static void main(String[] args) {\n\t\t l = new Linkedlist(1);\r\n\t\tl.next =new Linkedlist(2);\r\n\t\tl.next.next =new Linkedlist(3);\r\n\t\tl.next.next.next =new Linkedlist(4);\r\n\t\tl.next.next.next.next =new Linkedlist(5);\r\n\t\tl.next.next.next.next.next =new Linkedlist(6);\r\n\t\tl.next.next.next.next.next.next =new Linkedlist(7);\r\n\t\tl.next.next.next.next.next.next.next =new Linkedlist(8);\r\n\t\tl.next.next.next.next.next.next.next.next =new Linkedlist(9);\r\n\t\tl.next.next.next.next.next.next.next.next.next =new Linkedlist(10);\r\n\t\tl.next.next.next.next.next.next.next.next.next.next=null;\r\n\t\tLinkedlist temp = l;\r\n\t\t \r\n\t\tint count =0;\r\n\t\twhile(temp!=null){\r\n\t\t\ttemp=temp.next ;\r\n\t\t\tcount++;\r\n\t\t}\r\n\t\t\r\n\t\tBuildBStfromDLL n = BuildBSt(count);\r\n\t\t\r\nprintlevelorder(n);\r\n\t}", "title": "" }, { "docid": "7106d13e69cd6a7a0392837f113d470a", "score": "0.5037112", "text": "@Override\n protected long doProblemSpecificStuff() {\n\n permutations = new ArrayList<Long>(MILLION);\n populatePermutations();\n Collections.sort(permutations); // A pain, but nothing compared to the O(n^10) we just went through\n\n return permutations.get(MILLION - 1); // Fencepost (AKA off-by-one)\n }", "title": "" }, { "docid": "8dde31cf3330f769c60296098ebabd45", "score": "0.50369686", "text": "public void sortLights() {}", "title": "" }, { "docid": "cff076f2c4dede96ab9080eccb3126fb", "score": "0.5029037", "text": "private void comparator() {\n\t\t// your code starts here\n\t\tint currentPoint = 0;\n\t\t//get points of contestant with given ID\n\t\tfor(int i=1;i<5;i++) {\n\t\t\tswitch(i) {\n\t\t\tcase 1:\n\t\t\t\tcurrentPoint = totalPointOfKUArchitect1;\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tcurrentPoint = totalPointOfKUArchitect2;\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\tcurrentPoint = totalPointOfKUArchitect3;\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\tcurrentPoint = totalPointOfKUArchitect4;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t // compare current contestant's point with each three points which are in first 3 list.\n\t\t\tif(currentPoint>=firstPoint) {\n\t\t\t\tthirdPoint = secondPoint;\n\t\t\t\tthirdID = secondID;\n\t\t\t\tsecondPoint = firstPoint;\n\t\t\t\tsecondID = firstID;\n\t\t\t\tfirstID = i;\n\t\t\t\tfirstPoint = currentPoint;\n\t\t\t}\n\t\t\telse if(currentPoint>=secondPoint){\n\t\t\t\t\tthirdPoint = secondPoint;\n\t\t\t\t\tthirdID = secondID;\n\t\t\t\t\tsecondPoint = currentPoint;\n\t\t\t\t\tsecondID = i;\n\t\t\t}\n\t\t\telse if(currentPoint>=thirdPoint) {\n\t\t\t\tthirdPoint = currentPoint;\n\t\t\t\tthirdID = i;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\tprintln();\n\t\tprintln(\"KUArchitect#\"+firstID+ \" becomes #1 with \"+ firstPoint+\" points.\");\n\t\tprintln(\"KUArchitect#\"+secondID+ \" becomes #2 with \" + secondPoint+\" points.\");\n\t\tprintln(\"KUArchitect#\"+thirdID+ \" becomes #3 with \"+ thirdPoint+\" points.\");\n\t\t}", "title": "" }, { "docid": "512e29325e6417e25070401158ad6a54", "score": "0.50287735", "text": "final int compare(MarkData paramMarkData1, MarkData paramMarkData2) {\n/* 494 */ if (paramMarkData1.index < paramMarkData2.index)\n/* 495 */ return -1; \n/* 496 */ if (paramMarkData1.index > paramMarkData2.index) {\n/* 497 */ return 1;\n/* */ }\n/* 499 */ return 0;\n/* */ }", "title": "" }, { "docid": "7400a032cf725a51aa122bf0a529dfb8", "score": "0.5024756", "text": "public boolean a(ur ist, qx player, yc world, int x, int y, int z, int side, float xp, float yp, float zp)\r\n/* 22: */ {\r\n/* 23:25 */ int bid = world.a(x, y, z);\r\n/* 24:26 */ int blockID = g();\r\n/* 25:28 */ if (bid == amq.aV.cm) {\r\n/* 26:29 */ side = 1;\r\n/* 27:30 */ } else if ((bid != amq.bx.cm) && (bid != amq.aa.cm) && (bid != amq.ab.cm)) {\r\n/* 28:33 */ switch (side)\r\n/* 29: */ {\r\n/* 30: */ case 0: \r\n/* 31:34 */ y--; break;\r\n/* 32: */ case 1: \r\n/* 33:35 */ y++; break;\r\n/* 34: */ case 2: \r\n/* 35:36 */ z--; break;\r\n/* 36: */ case 3: \r\n/* 37:37 */ z++; break;\r\n/* 38: */ case 4: \r\n/* 39:38 */ x--; break;\r\n/* 40: */ default: \r\n/* 41:39 */ x++;\r\n/* 42: */ }\r\n/* 43: */ }\r\n/* 44:42 */ if (ist.a == 0) {\r\n/* 45:42 */ return false;\r\n/* 46: */ }\r\n/* 47:43 */ if (!player.a(x, y, z, side, ist)) {\r\n/* 48:43 */ return false;\r\n/* 49: */ }\r\n/* 50:45 */ if (y >= world.O() - 1) {\r\n/* 51:45 */ return false;\r\n/* 52: */ }\r\n/* 53:47 */ if (!world.a(blockID, x, y, z, false, side, player)) {\r\n/* 54:48 */ return false;\r\n/* 55: */ }\r\n/* 56:50 */ amq bl = amq.p[blockID];\r\n/* 57:52 */ if (world.d(x, y, z, blockID, a(ist.j())))\r\n/* 58: */ {\r\n/* 59:54 */ if (world.a(x, y, z) == blockID)\r\n/* 60: */ {\r\n/* 61:55 */ BlockExtended bex = (BlockExtended)amq.p[blockID];\r\n/* 62:56 */ bex.onBlockPlacedUseful(world, x, y, z, side, player, ist);\r\n/* 63: */ }\r\n/* 64:58 */ world.a(x + 0.5F, y + 0.5F, z + 0.5F, bl.cz.e(), (bl.cz.c() + 1.0F) / 2.0F, bl.cz.d() * 0.8F);\r\n/* 65: */ \r\n/* 66: */ \r\n/* 67: */ \r\n/* 68: */ \r\n/* 69: */ \r\n/* 70:64 */ ist.a -= 1;\r\n/* 71: */ }\r\n/* 72:66 */ return true;\r\n/* 73: */ }", "title": "" }, { "docid": "21334864605942e1c830d180c29fb316", "score": "0.502207", "text": "public void Sort() {\n\t}", "title": "" }, { "docid": "188e78172b07e09da7df0c549d713b21", "score": "0.50184786", "text": "int main() {\n\tint[][] c;\n\tint[] ans;\n\tint[] visit, pre, f;\n\tint[] i, j, open, closed;\n\tint k, start, ending;\n\tint flag;\n\tint i1;\n\t\n\tc = new int[][110];\n\tfor (i1 = 0; i1 < 110; i1 = i1 + 1) {\n\t\tc[i1] = new int[110];\n\t\tfillIntArray(c[i1], 0);\n\t}\n\t\n\tans = new int[1];\n\tans[0] = 0;\n\tvisit = new int[110];\n\tfillIntArray(visit, 0);\n\tpre = new int[110];\n\tfillIntArray(pre, 0);\n\tf = new int[110];\n\tfillIntArray(f, 0);\n\ti = new int[1];\n\ti[0] = 0;\n\tj = new int[1];\n\tj[0] = 0;\n\topen = new int[1];\n\t\n\topen[0] = 0;\n\tclosed = new int[1];\n\tclosed[0] = 0;\n\tk = 0;\n\tstart = 99;\n\tending = 100;\n\tflag = 0;\n\t\n\tbuild(c, i, j, start, ending);\n while (find(open, closed, i, j, ending, visit, f, start, pre, flag, c)>0) {\n\t improve(i, j, ans, pre, c, ending);\n\t}\n printInt(ans[0]); \t/* ans[0] is 49 */\n}", "title": "" }, { "docid": "30a43207b2612ffc32828e23c3600f82", "score": "0.5015507", "text": "public static void balanceHeaps()\n {\n // add your code here\n }", "title": "" }, { "docid": "21bd3d1bea2ac9a5c94c6c5404915ede", "score": "0.49845523", "text": "public void sortForDisplacement( )\n {\n sort(Vehicle::compareDisplacement);\n }", "title": "" }, { "docid": "ace10fc8e26403dc824a54f9e8d86484", "score": "0.49815", "text": "private static void jumpSearch()\r\n\t \r\n\t {\r\n\t\t \r\n\t\t int jump=(int)Math.sqrt(size);\r\n\t\t int previous=0;\r\n\t\t \r\n\t\t for (int i = 0; i < ar.length; i+=jump) \r\n\t\t {\r\n\t\t\t if(ar[i]>key)\r\n\t\t\t {\r\n\t\t\t\t break;\r\n\t\t\t }\r\n\t\t\t previous=i;\r\n\t\t\t\r\n\t\t}\r\n\t\t \r\n\t\t //Calling linear-search\r\n\t\tlinearSearch(previous);\r\n\t\t \r\n\t }", "title": "" }, { "docid": "e9b4313ac2dc5b9f096ab9a283c27ce2", "score": "0.4969222", "text": "public void reArrange() {\n return;\n }", "title": "" }, { "docid": "3e1ea5b77e52e9892be3e5f12dc04751", "score": "0.49684858", "text": "public int[] func_94128_d(int par1)\n/* */ {\n/* 536 */ return par1 == 1 ? slots_top : par1 == 0 ? slots_bottom : slots_sides;\n/* */ }", "title": "" }, { "docid": "1be9c298f7a96351089e9dfe4eea5222", "score": "0.49665838", "text": "@Override\n\tpublic void onPostBlockPlaced(World p_149714_1_, int p_149714_2_, int p_149714_3_, int p_149714_4_, int p_149714_5_) {\n\t}", "title": "" }, { "docid": "5835454347ecd8759cab3d40ad87decb", "score": "0.4955757", "text": "public final void mo56977b() {\n /*\n r5 = this;\n com.ss.android.ugc.aweme.common.a r0 = r5.f67571b\n if (r0 == 0) goto L_0x0087\n com.ss.android.ugc.aweme.common.e r0 = r5.f67572c\n if (r0 != 0) goto L_0x000a\n goto L_0x0087\n L_0x000a:\n com.ss.android.ugc.aweme.common.a r0 = r5.f67571b\n java.lang.String r1 = \"mModel\"\n kotlin.jvm.internal.C7573i.m23582a(r0, r1)\n com.ss.android.ugc.aweme.discover.model.DiscoveryV4DetailListModel r0 = (com.p280ss.android.ugc.aweme.discover.model.DiscoveryV4DetailListModel) r0\n int r0 = r0.mListQueryType\n r1 = 1\n if (r0 == r1) goto L_0x0049\n r2 = 4\n if (r0 == r2) goto L_0x001c\n goto L_0x0048\n L_0x001c:\n r5.m88092e()\n com.ss.android.ugc.aweme.common.e r0 = r5.f67572c\n com.ss.android.ugc.aweme.common.e.c r0 = (com.p280ss.android.ugc.aweme.common.p1144e.C25675c) r0\n java.util.List<com.ss.android.ugc.aweme.feed.model.Aweme> r2 = r5.f70767d\n com.ss.android.ugc.aweme.common.a r3 = r5.f67571b\n java.lang.String r4 = \"mModel\"\n kotlin.jvm.internal.C7573i.m23582a(r3, r4)\n com.ss.android.ugc.aweme.discover.model.DiscoveryV4DetailListModel r3 = (com.p280ss.android.ugc.aweme.discover.model.DiscoveryV4DetailListModel) r3\n boolean r3 = r3.isHasMore()\n if (r3 == 0) goto L_0x0044\n com.ss.android.ugc.aweme.common.a r3 = r5.f67571b\n java.lang.String r4 = \"mModel\"\n kotlin.jvm.internal.C7573i.m23582a(r3, r4)\n com.ss.android.ugc.aweme.discover.model.DiscoveryV4DetailListModel r3 = (com.p280ss.android.ugc.aweme.discover.model.DiscoveryV4DetailListModel) r3\n boolean r3 = r3.isNewDataEmpty()\n if (r3 != 0) goto L_0x0044\n goto L_0x0045\n L_0x0044:\n r1 = 0\n L_0x0045:\n r0.mo59108b(r2, r1)\n L_0x0048:\n return\n L_0x0049:\n java.util.List<com.ss.android.ugc.aweme.feed.model.Aweme> r0 = r5.f70767d\n int r0 = r0.size()\n if (r0 <= 0) goto L_0x0056\n java.util.List<com.ss.android.ugc.aweme.feed.model.Aweme> r0 = r5.f70767d\n r0.clear()\n L_0x0056:\n com.ss.android.ugc.aweme.common.a r0 = r5.f67571b\n java.lang.String r1 = \"mModel\"\n kotlin.jvm.internal.C7573i.m23582a(r0, r1)\n com.ss.android.ugc.aweme.discover.model.DiscoveryV4DetailListModel r0 = (com.p280ss.android.ugc.aweme.discover.model.DiscoveryV4DetailListModel) r0\n boolean r0 = r0.isDataEmpty()\n if (r0 == 0) goto L_0x006d\n com.ss.android.ugc.aweme.common.e r0 = r5.f67572c\n com.ss.android.ugc.aweme.common.e.c r0 = (com.p280ss.android.ugc.aweme.common.p1144e.C25675c) r0\n r0.ae_()\n return\n L_0x006d:\n r5.m88092e()\n com.ss.android.ugc.aweme.common.e r0 = r5.f67572c\n com.ss.android.ugc.aweme.common.e.c r0 = (com.p280ss.android.ugc.aweme.common.p1144e.C25675c) r0\n java.util.List<com.ss.android.ugc.aweme.feed.model.Aweme> r1 = r5.f70767d\n com.ss.android.ugc.aweme.common.a r2 = r5.f67571b\n java.lang.String r3 = \"mModel\"\n kotlin.jvm.internal.C7573i.m23582a(r2, r3)\n com.ss.android.ugc.aweme.discover.model.DiscoveryV4DetailListModel r2 = (com.p280ss.android.ugc.aweme.discover.model.DiscoveryV4DetailListModel) r2\n boolean r2 = r2.isHasMore()\n r0.mo59099a(r1, r2)\n return\n L_0x0087:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.p280ss.android.ugc.aweme.discover.presenter.C26814a.mo56977b():void\");\n }", "title": "" }, { "docid": "07f21f531b9bf3db7350b5a80a922ed9", "score": "0.49538642", "text": "public static void main(String[] args)\n {\n PrintWriter pen = new PrintWriter(System.out, true);\n \n //Test reverse array builder\n Integer[] test = SorterAnalyzer.reverseIntArrBuilder.build(20);\n pen.println(\"reverse array\");\n pen.println(Arrays.toString(test));\n \n // test merge method\n Integer[] a1 = { 8, 9, 10, 13 };\n Integer[] a2 = { -2 };\n Integer[] results = new Integer[5];\n \n Utils.merge(StandardIntegerComparator.COMPARATOR, a1, 0, 4, a2, 0, 1,\n results, 0, 5);\n pen.println(\"merged array:\");\n pen.println(Arrays.toString(results));\n \n // test quick sorter\n Integer[] sortme = { 10, 9, 8, 13, -2 };\n NewQuicksorter<Integer> sorter = new NewQuicksorter<Integer>();\n sorter.qsort(sortme, StandardIntegerComparator.COMPARATOR, 0, 5);\n pen.println(\"sorted by NewQuicksorter\");\n pen.println(Arrays.toString(sortme));\n \n // test in line swap insertion sorter\n Integer[] sortmea = { 10, 9, 8, 13, -2 };\n InsertionSorterInlineSwap<Integer> sortera = new InsertionSorterInlineSwap<Integer>();\n sortera.sorti(sortmea, SorterAnalyzer.standardIntComparator);\n pen.println(\"sorted by InsertionSorterInlineSwap\");\n pen.println(Arrays.toString(sortmea));\n \n // test shift insertion sorter\n Integer[] sortmeb = { 10, 9, 8, 13, -2 };\n InsertionSorterShift<Integer> sorterb = new InsertionSorterShift<Integer>();\n sorterb.sorti(sortmeb, SorterAnalyzer.standardIntComparator);\n pen.println(\"sorted by InsertionSorterShift\");\n pen.println(Arrays.toString(sortmeb));\n \n // test mergesorterB (scratch array)\n Integer[] sortmec = { 10, 9, 8, 13, -2 };\n MergeSorterB<Integer> sorterc = new MergeSorterB<Integer>();\n sorterc.sorti(sortmec, SorterAnalyzer.standardIntComparator);\n pen.println(\"sorted by MergeSorterB\");\n pen.println(Arrays.toString(sortmec));\n \n //test iterativemergesorter\n Integer[] sortmed = { 10, 9, 8, 13, -2 };\n IterativeMergeSorter<Integer> sorterd = new IterativeMergeSorter<Integer>();\n sorterd.sorti(sortmed, SorterAnalyzer.standardIntComparator);\n pen.println(\"sorted by IterativeMergeSorter\");\n pen.println(Arrays.toString(sortmed));\n \n // test integerQuicksort\n int[] sortmee = { 3, 7, 8, 12, 0, -45, -5, 7, 10, 13 };\n IntegerQuicksort.qsort(sortmee, 0, sortmee.length);\n pen.println(\"sorted by IntegerQuicksort\");\n pen.println(Arrays.toString(sortmee));\n\n }", "title": "" }, { "docid": "bb7dabe37eda30da4908c2f9b0023c03", "score": "0.49511975", "text": "public float getPlacedBlockOffsetY() {\n/* 102 */ return this.facingY;\n/* */ }", "title": "" }, { "docid": "7aac2051a720dff92d77194363a0fcbd", "score": "0.49486914", "text": "public final void b() {\n /*\n r8 = this;\n java.lang.ref.WeakReference<a.j.h> r0 = r8.c\n java.lang.Object r0 = r0.get()\n a.j.h r0 = (a.j.h) r0\n if (r0 == 0) goto L_0x0141\n L_0x000a:\n a.c.a.b.a<a.j.g, a.j.i$a> r1 = r8.f409a\n int r2 = r1.e\n r3 = 1\n r4 = 0\n if (r2 != 0) goto L_0x0013\n goto L_0x002f\n L_0x0013:\n a.c.a.b.b$c<K, V> r1 = r1.f203b\n java.lang.Object r1 = r1.getValue()\n a.j.i$a r1 = (a.j.i.a) r1\n a.j.e$b r1 = r1.f411a\n a.c.a.b.a<a.j.g, a.j.i$a> r2 = r8.f409a\n a.c.a.b.b$c<K, V> r2 = r2.c\n java.lang.Object r2 = r2.getValue()\n a.j.i$a r2 = (a.j.i.a) r2\n a.j.e$b r2 = r2.f411a\n if (r1 != r2) goto L_0x0031\n a.j.e$b r1 = r8.f410b\n if (r1 != r2) goto L_0x0031\n L_0x002f:\n r1 = r3\n goto L_0x0032\n L_0x0031:\n r1 = r4\n L_0x0032:\n r8.f = r4\n if (r1 != 0) goto L_0x0140\n a.j.e$b r1 = r8.f410b\n a.c.a.b.a<a.j.g, a.j.i$a> r2 = r8.f409a\n a.c.a.b.b$c<K, V> r2 = r2.f203b\n java.lang.Object r2 = r2.getValue()\n a.j.i$a r2 = (a.j.i.a) r2\n a.j.e$b r2 = r2.f411a\n int r1 = r1.compareTo(r2)\n if (r1 >= 0) goto L_0x00dc\n a.c.a.b.a<a.j.g, a.j.i$a> r1 = r8.f409a\n a.c.a.b.b$b r2 = new a.c.a.b.b$b\n a.c.a.b.b$c<K, V> r5 = r1.c\n a.c.a.b.b$c<K, V> r6 = r1.f203b\n r2.<init>(r5, r6)\n java.util.WeakHashMap<a.c.a.b.b$f<K, V>, java.lang.Boolean> r1 = r1.d\n java.lang.Boolean r4 = java.lang.Boolean.valueOf(r4)\n r1.put(r2, r4)\n L_0x005e:\n boolean r1 = r2.hasNext()\n if (r1 == 0) goto L_0x00dc\n boolean r1 = r8.f\n if (r1 != 0) goto L_0x00dc\n java.lang.Object r1 = r2.next()\n java.util.Map$Entry r1 = (java.util.Map.Entry) r1\n java.lang.Object r4 = r1.getValue()\n a.j.i$a r4 = (a.j.i.a) r4\n L_0x0074:\n a.j.e$b r5 = r4.f411a\n a.j.e$b r6 = r8.f410b\n int r5 = r5.compareTo(r6)\n if (r5 <= 0) goto L_0x005e\n boolean r5 = r8.f\n if (r5 != 0) goto L_0x005e\n a.c.a.b.a<a.j.g, a.j.i$a> r5 = r8.f409a\n java.lang.Object r6 = r1.getKey()\n boolean r5 = r5.contains(r6)\n if (r5 == 0) goto L_0x005e\n a.j.e$b r5 = r4.f411a\n int r6 = r5.ordinal()\n if (r6 == 0) goto L_0x00d6\n if (r6 == r3) goto L_0x00d0\n r7 = 2\n if (r6 == r7) goto L_0x00be\n r7 = 3\n if (r6 == r7) goto L_0x00bb\n r7 = 4\n if (r6 != r7) goto L_0x00a4\n a.j.e$a r5 = a.j.e.a.ON_PAUSE\n goto L_0x00c0\n L_0x00a4:\n java.lang.IllegalArgumentException r0 = new java.lang.IllegalArgumentException\n java.lang.StringBuilder r1 = new java.lang.StringBuilder\n r1.<init>()\n java.lang.String r2 = \"Unexpected state value \"\n r1.append(r2)\n r1.append(r5)\n java.lang.String r1 = r1.toString()\n r0.<init>(r1)\n throw r0\n L_0x00bb:\n a.j.e$a r5 = a.j.e.a.ON_STOP\n goto L_0x00c0\n L_0x00be:\n a.j.e$a r5 = a.j.e.a.ON_DESTROY\n L_0x00c0:\n a.j.e$b r6 = b((a.j.e.a) r5)\n java.util.ArrayList<a.j.e$b> r7 = r8.g\n r7.add(r6)\n r4.a(r0, r5)\n r8.a()\n goto L_0x0074\n L_0x00d0:\n java.lang.IllegalArgumentException r0 = new java.lang.IllegalArgumentException\n r0.<init>()\n throw r0\n L_0x00d6:\n java.lang.IllegalArgumentException r0 = new java.lang.IllegalArgumentException\n r0.<init>()\n throw r0\n L_0x00dc:\n a.c.a.b.a<a.j.g, a.j.i$a> r1 = r8.f409a\n a.c.a.b.b$c<K, V> r1 = r1.c\n boolean r2 = r8.f\n if (r2 != 0) goto L_0x000a\n if (r1 == 0) goto L_0x000a\n a.j.e$b r2 = r8.f410b\n java.lang.Object r1 = r1.getValue()\n a.j.i$a r1 = (a.j.i.a) r1\n a.j.e$b r1 = r1.f411a\n int r1 = r2.compareTo(r1)\n if (r1 <= 0) goto L_0x000a\n a.c.a.b.a<a.j.g, a.j.i$a> r1 = r8.f409a\n a.c.a.b.b$d r1 = r1.a()\n L_0x00fc:\n boolean r2 = r1.hasNext()\n if (r2 == 0) goto L_0x000a\n boolean r2 = r8.f\n if (r2 != 0) goto L_0x000a\n java.lang.Object r2 = r1.next()\n java.util.Map$Entry r2 = (java.util.Map.Entry) r2\n java.lang.Object r3 = r2.getValue()\n a.j.i$a r3 = (a.j.i.a) r3\n L_0x0112:\n a.j.e$b r4 = r3.f411a\n a.j.e$b r5 = r8.f410b\n int r4 = r4.compareTo(r5)\n if (r4 >= 0) goto L_0x00fc\n boolean r4 = r8.f\n if (r4 != 0) goto L_0x00fc\n a.c.a.b.a<a.j.g, a.j.i$a> r4 = r8.f409a\n java.lang.Object r5 = r2.getKey()\n boolean r4 = r4.contains(r5)\n if (r4 == 0) goto L_0x00fc\n a.j.e$b r4 = r3.f411a\n java.util.ArrayList<a.j.e$b> r5 = r8.g\n r5.add(r4)\n a.j.e$b r4 = r3.f411a\n a.j.e$a r4 = b((a.j.e.b) r4)\n r3.a(r0, r4)\n r8.a()\n goto L_0x0112\n L_0x0140:\n return\n L_0x0141:\n java.lang.IllegalStateException r0 = new java.lang.IllegalStateException\n java.lang.String r1 = \"LifecycleOwner of this LifecycleRegistry is alreadygarbage collected. It is too late to change lifecycle state.\"\n r0.<init>(r1)\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: a.j.i.b():void\");\n }", "title": "" } ]
69f094f2069386013cd1c96fd2616e86
Entry Timestamp of creation
[ { "docid": "01638420705026a0c75f2bcccdbf4bc7", "score": "0.7397749", "text": "@ApiModelProperty(value = \"Entry ** Timestamp of creation\")\n public DateTime getCreationDate() {\n return creationDate;\n }", "title": "" } ]
[ { "docid": "f917e23d926b190d7382e827f971c976", "score": "0.80404353", "text": "Instant getCreationTimestamp();", "title": "" }, { "docid": "206b43d431c23dffcf9e1d79bbe002e5", "score": "0.80307364", "text": "java.lang.String getCreationTimestamp();", "title": "" }, { "docid": "aceded415cd944acbd244f412d3b0419", "score": "0.78889596", "text": "public long getCreateTimeStamp();", "title": "" }, { "docid": "06ad0bcc7f1787a0306d68af469fa99d", "score": "0.78200257", "text": "public Timestamp getCreate_timestamp() {\n\t\treturn create_timestamp;\n\t}", "title": "" }, { "docid": "0bd4710811ef8484f5a2b35d6f579fec", "score": "0.7749137", "text": "public Date getCreateTimestamp() {\r\n return createTimestamp;\r\n }", "title": "" }, { "docid": "d3937e50bb04f541bd201d162e69ea0d", "score": "0.7688097", "text": "public Long getCreationTimestamp() {\r\n return getCreationTimestampProperty().getValue();\r\n }", "title": "" }, { "docid": "aec58714462d072546194bfa789fc829", "score": "0.7612549", "text": "public Timestamp getCreated();", "title": "" }, { "docid": "aec58714462d072546194bfa789fc829", "score": "0.7612549", "text": "public Timestamp getCreated();", "title": "" }, { "docid": "aec58714462d072546194bfa789fc829", "score": "0.7612549", "text": "public Timestamp getCreated();", "title": "" }, { "docid": "aec58714462d072546194bfa789fc829", "score": "0.7612549", "text": "public Timestamp getCreated();", "title": "" }, { "docid": "aec58714462d072546194bfa789fc829", "score": "0.7612549", "text": "public Timestamp getCreated();", "title": "" }, { "docid": "aec58714462d072546194bfa789fc829", "score": "0.7612549", "text": "public Timestamp getCreated();", "title": "" }, { "docid": "aec58714462d072546194bfa789fc829", "score": "0.7612549", "text": "public Timestamp getCreated();", "title": "" }, { "docid": "aec58714462d072546194bfa789fc829", "score": "0.7612549", "text": "public Timestamp getCreated();", "title": "" }, { "docid": "aec58714462d072546194bfa789fc829", "score": "0.7612549", "text": "public Timestamp getCreated();", "title": "" }, { "docid": "aec58714462d072546194bfa789fc829", "score": "0.7612549", "text": "public Timestamp getCreated();", "title": "" }, { "docid": "1db8b9e443ba70072680b63f06c0e135", "score": "0.75963384", "text": "public Timestamp getCreation() {\n return this.creation;\n }", "title": "" }, { "docid": "31e7f9289786e72e7e7958355edd2250", "score": "0.7570882", "text": "public Timestamp getCreationTime() {\n\t\treturn creationTime;\n\t}", "title": "" }, { "docid": "848e67926dfecf99d102cdcbf8d5c389", "score": "0.7526512", "text": "public String createNewTimestamp() {\n\t\treturn DATE_NEW;\n\t}", "title": "" }, { "docid": "3287668556719888e9ceb0e98a444362", "score": "0.75252956", "text": "public Date getCreatedTimestamp() {\r\n\t\treturn createdTimestamp;\r\n\t}", "title": "" }, { "docid": "f2d32584cd20d22d41443e6165537375", "score": "0.7455898", "text": "public long getCreationTime() { return creationTime; }", "title": "" }, { "docid": "7597a79db92c59c63f977a2dd93c317b", "score": "0.74442697", "text": "public Date getCreateTimeStamp() {\n return createTimeStamp;\n }", "title": "" }, { "docid": "d5a94dfa5716d9f2bacb5b90a9f900e8", "score": "0.7439271", "text": "public long getCreatedTimestamp() {\n return createdTimestampInMs;\n }", "title": "" }, { "docid": "1407fff15e3894821687fbcecf12c2aa", "score": "0.74139684", "text": "public Timestamp getCreationDate() {\r\n return (Timestamp) getAttributeInternal(CREATIONDATE);\r\n }", "title": "" }, { "docid": "1407fff15e3894821687fbcecf12c2aa", "score": "0.74139684", "text": "public Timestamp getCreationDate() {\r\n return (Timestamp) getAttributeInternal(CREATIONDATE);\r\n }", "title": "" }, { "docid": "1a3253d0f569dbfeab8903934e4f443d", "score": "0.7400836", "text": "public Date getCreationTime() {\n return getDate(\"creation_time\");\n }", "title": "" }, { "docid": "67e70883b3e50e637daf6a700b037179", "score": "0.7400428", "text": "public Timestamp getCreationDate() {\n return (Timestamp) getAttributeInternal(CREATIONDATE);\n }", "title": "" }, { "docid": "bc6caac42606c0fafda9523a0565d7cd", "score": "0.73709744", "text": "com.google.protobuf.ByteString getCreationTimestampBytes();", "title": "" }, { "docid": "2f5219e49c2236f3be9027ab86312bbd", "score": "0.7346743", "text": "OffsetDateTime creationTime();", "title": "" }, { "docid": "ddd5aa4f1bb8ab0cd9e55f682553adb8", "score": "0.7310029", "text": "@java.lang.Override\n public long getCreationTimestampMs() {\n return creationTimestampMs_;\n }", "title": "" }, { "docid": "6fe9b42d9630f1f17687132d6f0abbcf", "score": "0.7301789", "text": "long createdAt();", "title": "" }, { "docid": "56825ad4f8c26a1e218e1e1db5dc205a", "score": "0.72968787", "text": "com.google.protobuf.Timestamp getCreated();", "title": "" }, { "docid": "88d1775d9fa1221a64ce2a7f3bb2a8f5", "score": "0.7291634", "text": "com.google.protobuf.Timestamp getCreatedAt();", "title": "" }, { "docid": "88d1775d9fa1221a64ce2a7f3bb2a8f5", "score": "0.7291634", "text": "com.google.protobuf.Timestamp getCreatedAt();", "title": "" }, { "docid": "88d1775d9fa1221a64ce2a7f3bb2a8f5", "score": "0.7291634", "text": "com.google.protobuf.Timestamp getCreatedAt();", "title": "" }, { "docid": "f2f65d96f30fa44e4fec35e2b515c493", "score": "0.72690487", "text": "public Timestamp getCreatedDate();", "title": "" }, { "docid": "591677c9b951d9bec2ea8fd1286ac2bf", "score": "0.72627425", "text": "Instant getCreated();", "title": "" }, { "docid": "418a2cab9e665f130468c0e34859f869", "score": "0.7258129", "text": "public Timestamp getCreateTimestamp() {\n return createTimestamp != null ? createTimestamp : getUpdateTimestamp();\n }", "title": "" }, { "docid": "b473f5a4ec27ecbdf91c9c121eefde12", "score": "0.72367585", "text": "@java.lang.Override\n public long getCreationTimestampMs() {\n return creationTimestampMs_;\n }", "title": "" }, { "docid": "c99651e8089269848ee15b7ee3352054", "score": "0.72264314", "text": "public java.util.Calendar getCreationTimestamp() {\r\n return creationTimestamp;\r\n }", "title": "" }, { "docid": "7bfcba3b26e7a48b3cf029f0a2493707", "score": "0.7221879", "text": "long getCreationTime();", "title": "" }, { "docid": "6e51e1bf93c4e9980e855b2f6303f2c3", "score": "0.72107375", "text": "long getCreatedOn();", "title": "" }, { "docid": "789f926541fd79d7c767cb88ca705340", "score": "0.7157292", "text": "public long getCreationTime() {\n return creationTime;\n }", "title": "" }, { "docid": "4491a83eb8c473a6fec9f4807c5df1ac", "score": "0.71369445", "text": "public java.util.Date getCreatedTimestamp() {\n return this.createdTimestamp;\n }", "title": "" }, { "docid": "8843bbcde923a83c970db5537c163206", "score": "0.7133233", "text": "public int getCreatedTime() {\n return createdTime_;\n }", "title": "" }, { "docid": "0a656a6ab59e40d1731e985ab4bc1898", "score": "0.71325254", "text": "@java.lang.Override\n public com.google.protobuf.Timestamp getCreatedAt() {\n return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_;\n }", "title": "" }, { "docid": "b4d519d5a4d65b961941bd4a324c0c55", "score": "0.7115261", "text": "public int getCreatedTime() {\n return createdTime_;\n }", "title": "" }, { "docid": "3b112f7126f9c94a5d5cd92f9847065d", "score": "0.70950735", "text": "HomeTimeStamp createHomeTimeStamp();", "title": "" }, { "docid": "235f883e048812d4feb077cdbfcea432", "score": "0.70921123", "text": "public OffsetDateTime creationTime() {\n return this.creationTime;\n }", "title": "" }, { "docid": "235f883e048812d4feb077cdbfcea432", "score": "0.70921123", "text": "public OffsetDateTime creationTime() {\n return this.creationTime;\n }", "title": "" }, { "docid": "235f883e048812d4feb077cdbfcea432", "score": "0.70921123", "text": "public OffsetDateTime creationTime() {\n return this.creationTime;\n }", "title": "" }, { "docid": "182e12007e18ecfd2b63b0e77fae7f61", "score": "0.70918095", "text": "Instant getCreatedAt();", "title": "" }, { "docid": "b1b09435643a8e787c247f951d576c53", "score": "0.70911175", "text": "@Override\r\n public long getCreationTime() {\n return 0;\r\n }", "title": "" }, { "docid": "e9942813547c9f5e3e9cf4a3e572a0a8", "score": "0.7089141", "text": "public Timestamp getCreatedAt() {\n return (Timestamp) get(5);\n }", "title": "" }, { "docid": "57f0ec553e4f5aa3d0f931ea481206d8", "score": "0.7088474", "text": "public com.google.protobuf.Timestamp getCreated() {\n return created_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : created_;\n }", "title": "" }, { "docid": "5d687031a0a702b8e6fbdffa749a14a0", "score": "0.70665836", "text": "public int getCreatedTime() {\n return createdTime_;\n }", "title": "" }, { "docid": "a3f197dd5d8d1b0fb14d1b70d77d0701", "score": "0.7062293", "text": "public Timestamp getCreateTime() {\n return createTime;\n }", "title": "" }, { "docid": "a3f197dd5d8d1b0fb14d1b70d77d0701", "score": "0.7062293", "text": "public Timestamp getCreateTime() {\n return createTime;\n }", "title": "" }, { "docid": "a3f197dd5d8d1b0fb14d1b70d77d0701", "score": "0.7062293", "text": "public Timestamp getCreateTime() {\n return createTime;\n }", "title": "" }, { "docid": "9c2df3cf5650282d35cc891053de7241", "score": "0.70607215", "text": "public int getTimeCreated() {\n return timeCreated_;\n }", "title": "" }, { "docid": "3c4b6fec4cfebdc55fc4eaafbc5af486", "score": "0.7029391", "text": "int getTimeCreated();", "title": "" }, { "docid": "3c4b6fec4cfebdc55fc4eaafbc5af486", "score": "0.7029391", "text": "int getTimeCreated();", "title": "" }, { "docid": "3c4b6fec4cfebdc55fc4eaafbc5af486", "score": "0.7029391", "text": "int getTimeCreated();", "title": "" }, { "docid": "c643629df0a20681ecccdbd2a7b69d80", "score": "0.7022405", "text": "public int getTimeCreated() {\n return timeCreated_;\n }", "title": "" }, { "docid": "c643629df0a20681ecccdbd2a7b69d80", "score": "0.7022405", "text": "public int getTimeCreated() {\n return timeCreated_;\n }", "title": "" }, { "docid": "f5ca8a1981377a5c54ad161884bae0f6", "score": "0.70180815", "text": "public Timestamp getCreatedDate() {\r\n return (Timestamp) getAttributeInternal(CREATEDDATE);\r\n }", "title": "" }, { "docid": "f5ca8a1981377a5c54ad161884bae0f6", "score": "0.70180815", "text": "public Timestamp getCreatedDate() {\r\n return (Timestamp) getAttributeInternal(CREATEDDATE);\r\n }", "title": "" }, { "docid": "cc50ae547bb80bd5cc1836bb6d26fedd", "score": "0.7013376", "text": "public long getTimeCreated(){\r\n\t\treturn time;\r\n\t}", "title": "" }, { "docid": "22ace64a946220b3b6b75066bb21020e", "score": "0.701084", "text": "public Date getTimeCreate() {\n return timeCreate;\n }", "title": "" }, { "docid": "8fa4bd3f417cb2ec1010b2c48a8e000e", "score": "0.70035505", "text": "DateTime getDateCreated();", "title": "" }, { "docid": "5ab46f6ff6bf8474c1da251446e037e8", "score": "0.69988", "text": "String getDateCreation();", "title": "" }, { "docid": "0b6bdb019b32dfcdef2984c21f4072ee", "score": "0.6998447", "text": "int getCreatedTime();", "title": "" }, { "docid": "9717f24895846dbbb705e6dd6403af8e", "score": "0.69949913", "text": "long getCreationTimeMillis();", "title": "" }, { "docid": "df0467c2a8c89ed6c1d89ac6215906cf", "score": "0.69925433", "text": "@Override\n\tpublic long getCreationTime() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "75d6873fdac1cddd30dfb763b47a04d3", "score": "0.6990426", "text": "public Timestamp getCreatedDate() {\n return (Timestamp) getAttributeInternal(CREATEDDATE);\n }", "title": "" }, { "docid": "75d6873fdac1cddd30dfb763b47a04d3", "score": "0.6990426", "text": "public Timestamp getCreatedDate() {\n return (Timestamp) getAttributeInternal(CREATEDDATE);\n }", "title": "" }, { "docid": "101d66643f22c0c1f84a86bc45ce7d5b", "score": "0.6983484", "text": "public com.google.protobuf.Timestamp getCreated() {\n if (createdBuilder_ == null) {\n return created_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : created_;\n } else {\n return createdBuilder_.getMessage();\n }\n }", "title": "" }, { "docid": "9ac10455cf1d5e80a81868cc482f80f0", "score": "0.69827735", "text": "public String getCreationDateTime() {\n return creationDateTime;\n }", "title": "" }, { "docid": "66b605284e58dfab8951d3a900dd53ca", "score": "0.6981312", "text": "public long getCreationTime()\n {\n return m_createTime;\n }", "title": "" }, { "docid": "9b12e012f8c2b5ba5b4285d112af3efa", "score": "0.6974301", "text": "public long getCreateTime() {\n return createTime_;\n }", "title": "" }, { "docid": "9b12e012f8c2b5ba5b4285d112af3efa", "score": "0.6974301", "text": "public long getCreateTime() {\n return createTime_;\n }", "title": "" }, { "docid": "1f4b58e7ed48d777b8652441c80cf8bf", "score": "0.69663286", "text": "public int getCreatedTime() {\n return instance.getCreatedTime();\n }", "title": "" }, { "docid": "aba36bb7902311667470c0d7cdefe664", "score": "0.69661385", "text": "DateTime getCreated();", "title": "" }, { "docid": "e5f3af9f4055d2ad3bfbdca9007b153f", "score": "0.6957936", "text": "public int getTimeCreated() {\n return timeCreated_;\n }", "title": "" }, { "docid": "e5f3af9f4055d2ad3bfbdca9007b153f", "score": "0.6957936", "text": "public int getTimeCreated() {\n return timeCreated_;\n }", "title": "" }, { "docid": "e5f3af9f4055d2ad3bfbdca9007b153f", "score": "0.6957936", "text": "public int getTimeCreated() {\n return timeCreated_;\n }", "title": "" }, { "docid": "81697244f58cf480f56ce37d2b6ccc9d", "score": "0.6950714", "text": "public com.google.protobuf.Timestamp getCreatedAt() {\n return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_;\n }", "title": "" }, { "docid": "4be07b1df65bfc01f5e7e7a96ddef1ad", "score": "0.69401526", "text": "public Date getTimeStamp() {return new Timestamp(System.currentTimeMillis());\n}", "title": "" }, { "docid": "51285b8e3d1055fe29f97ce2431dba47", "score": "0.69264674", "text": "public Date getCreatedTime() {\r\n return createdTime;\r\n }", "title": "" }, { "docid": "81776ab086524674cab5dd91d62d7a73", "score": "0.69258446", "text": "public String getTimestamp();", "title": "" }, { "docid": "99f3f34fb93e49c438a85fcb683b95fe", "score": "0.69246227", "text": "public Long getCreatedTime() {\n return createdTime;\n }", "title": "" }, { "docid": "453a5f3fc5ea3cfe9d6d0aaa6c89d637", "score": "0.6915976", "text": "public Time getCreationTime(){\r\n return localCreationTime;\r\n }", "title": "" }, { "docid": "eb970644bc0c12fb13b1da3f002d4962", "score": "0.69150203", "text": "public Date gethCreatetime() {\n return hCreatetime;\n }", "title": "" }, { "docid": "826282d54297abadd6c68c1bc700beef", "score": "0.69143224", "text": "public long getCreateTime() {\n return createTime_;\n }", "title": "" }, { "docid": "826282d54297abadd6c68c1bc700beef", "score": "0.69143224", "text": "public long getCreateTime() {\n return createTime_;\n }", "title": "" }, { "docid": "121f5736c09879d1847e1c4b5b0cf51a", "score": "0.69141686", "text": "public Date getCreatedTime(){\n\t\treturn this.createdTime;\n\t}", "title": "" }, { "docid": "ae63bf9547a591ec8966f1c69d9aaa71", "score": "0.6910283", "text": "private final static String createSnapshotTimestamp() {\n \n \t\treturn new SimpleDateFormat(\"yyyyMMddHHmmss\").format(Calendar.getInstance(TimeZone.getTimeZone(\"UTC\"))\n \t\t\t\t.getTime());\n \t}", "title": "" }, { "docid": "ad52caa2f0b94c43ff8db4cbd4413812", "score": "0.6904935", "text": "public Date getCreatedTime() {\n return createdTime;\n }", "title": "" }, { "docid": "ad52caa2f0b94c43ff8db4cbd4413812", "score": "0.6904935", "text": "public Date getCreatedTime() {\n return createdTime;\n }", "title": "" }, { "docid": "ad52caa2f0b94c43ff8db4cbd4413812", "score": "0.6904935", "text": "public Date getCreatedTime() {\n return createdTime;\n }", "title": "" } ]
065539927a169b3febd9ec7accc4df77
Acessa o banco para obter uma lista de qualquer entidade que implemente a interface Persitivel.
[ { "docid": "3b42f8c7d2ee58192054af65124e84ed", "score": "0.0", "text": "@SuppressWarnings(\"unchecked\")\n\tpublic static List<? extends Persistivel> listarPersistiveis(\n\t\t\tClass<? extends Persistivel> classe) {\n\n\t\tSession s = Configuracao.openNewSession();\n\n\t\tList<? extends Persistivel> lista = s.createCriteria(classe).list();\n\n\t\ts.close();\n\n\t\treturn lista;\n\n\t}", "title": "" } ]
[ { "docid": "c518cd6f36027304bc84453e59894c8b", "score": "0.6886485", "text": "@TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED)\r\n\tpublic List<Especializacion> listar() {\r\n\t\tQuery q = em.createNamedQuery(Especializacion.LISTAR_ESPECIALIZACIONES);\r\n\t\tList<Especializacion> lista = q.getResultList();\r\n\t\treturn lista;\r\n\t}", "title": "" }, { "docid": "536efb169e3ddb7aa8e3271ff0b1adb3", "score": "0.66789293", "text": "@Override\n public List<Parqueadero> GetAll() {\n EntityManager em = Persistence.createEntityManagerFactory(\"Proyecto_ParkingLojaPU\").createEntityManager();\n //return em.createQuery(\"SELECT * FROM Cuenta \", Cuenta.class).getResultList();\n TypedQuery<Parqueadero> query = em.createNamedQuery(\"Parqueadero.findAll\", Parqueadero.class);\n //List<Cuenta> results = query.getResultList();\n return query.getResultList();\n }", "title": "" }, { "docid": "00e719cb4478ff8d5b64a45f9507e60f", "score": "0.6635458", "text": "@Override\r\n public List<BeanControle> lista(EntityManager em) {\r\n return em.createQuery(\"SELECT o FROM BeanControle o\").getResultList();\r\n }", "title": "" }, { "docid": "0ac3a4d458ef3c58ad677dd6356dbf52", "score": "0.6632971", "text": "@SuppressWarnings(\"unchecked\")\r\n@Override\r\npublic List<Contato> listar() {\n\tEntityManager em = Conexao.getEntityManager();\r\n\t\r\n\t Query q = em.createQuery(\"select a from Tipo_contato a \");\r\n\t\r\n\t return q.getResultList();\r\n\r\n}", "title": "" }, { "docid": "a7544f835778d9c5cec11b203f2e57a8", "score": "0.6606085", "text": "@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic List<Tipo_empresa> listar() {\n\t\t\r\n\t\tEntityManager em = Conexao.getEntityManager();\r\n\r\n\t\tQuery q = em.createQuery(\"select a from Tipo_empresa a \");\r\n\t\t\r\n\t\treturn q.getResultList();\r\n\t\t\r\n\t}", "title": "" }, { "docid": "894d02b1c554e6bec3980be68bb500ff", "score": "0.6521811", "text": "@Override\r\n\tpublic List<Especialidad> listarEspecilidad() {\n\t\treturn (List<Especialidad>) dao.findAll();\r\n\t}", "title": "" }, { "docid": "c42b6184f00cbd653855948730a417d1", "score": "0.6500493", "text": "@Override\n\tpublic List<Empresa> ListarEmpresa() {\n\t\treturn (List<Empresa>) reposi.findAll();\n\t}", "title": "" }, { "docid": "e72a6ad44f9b089234139827eeb26c9e", "score": "0.647719", "text": "@Override\r\n\tpublic List<Participante> listar() {\n\t\tString sql=\"select * from participante\";\r\n\t\tparticipantes = new ArrayList<Participante>();\r\n\t\t\r\n\t\ttry {\t\t\t\r\n\t\t\t\r\n\t\t\tResultSet res=cn.query(sql);\r\n\t\t\twhile (res.next()) {\r\n\t\t\t\tParticipante c = new Participante();\r\n\t\t\t\tc.setId(res.getInt(1));\r\n\t\t\t\tc.setNombre(res.getString(2));\r\n\t\t\t\tc.setEmail(res.getString(3));\r\n\t\t\t\tc.setTelefono(res.getString(4));\r\n\t\t\t\tc.setEstado(res.getString(5));\r\n\t\t\t\tparticipantes.add(c);\r\n\t\t\t}\r\n\t\t\tres.close();\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\tSystem.out.println(\"Error: Clase ClienteDaoImple, método obtener\");\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn participantes;\r\n\t}", "title": "" }, { "docid": "245f541255d3d686cf862f0264a0e3fc", "score": "0.64616364", "text": "public List<PedidoEntrega> listaPedidosEntrega();", "title": "" }, { "docid": "3c73845fd9949c2402c084251412e70b", "score": "0.6444516", "text": "@SuppressWarnings(\"unchecked\")\r\n\t@Transactional\r\n\tpublic List<Pessoa> listaPessoas() {\r\n\t\tQuery consulta = em.createQuery(\"select P from Pessoa P\");\r\n\t\treturn consulta.getResultList();\r\n\r\n\t}", "title": "" }, { "docid": "aa3669fa787800b9622d3199100f5eaa", "score": "0.6381307", "text": "@Override\n\tpublic List<Distrito> buscarDistritos() {\n\t\tQuery query = getCurrentSession().createQuery(\"select d from Distrito d join fetch d.provincia p order by d.designacao asc \");\n\t\treturn query.list();\n\t}", "title": "" }, { "docid": "c4e4725803b9a6c69d4b37312eb4d97e", "score": "0.6374671", "text": "List<PedidoItem> findAll();", "title": "" }, { "docid": "fd5fb34fa76a5bc8b83c5c317344e7a4", "score": "0.63741845", "text": "public List<Entrenador> selectAllEntrenadores(){\r\n \r\n List<Entrenador> entrenadores = new ArrayList();\r\n Query query = db.query(); //Creamos la query\r\n query.constrain(Entrenador.class); //Indicamos la clase del objeto a consultar\r\n //Obtenemos todos los que cumplan la condición de ser de la clase Entrenador\r\n ObjectSet resultado = query.execute(); \r\n \r\n while(resultado.hasNext()){\r\n Entrenador e = (Entrenador) resultado.next();\r\n entrenadores.add(e);\r\n }\r\n \r\n return entrenadores;\r\n \r\n }", "title": "" }, { "docid": "144b9c6cffd3ba45150b883aad7bee25", "score": "0.63539034", "text": "public List<TipoHabitacionEntity> findAll() {\n Query todos = em.createQuery(\"select e from TipoHabitacionEntity e\");\n return todos.getResultList();\n }", "title": "" }, { "docid": "a6de50c671f8c379b93b419020f836bb", "score": "0.63453084", "text": "List<Adherent> voirAdherent()\r\n {\r\n JpaUtil.creerEntityManager();\r\n try {\r\n return new AdherentDao().findAll();\r\n } catch (Throwable ex) {\r\n return null;\r\n }\r\n }", "title": "" }, { "docid": "563d5eaf02694a1686d170e3982d2b8a", "score": "0.6344666", "text": "@Override\r\n\tpublic List<CompetenciaBO> listarCompetencias() {\n\t\treturn listadosService.listarCompetencias();\r\n\t}", "title": "" }, { "docid": "1fe450961fa2938aa7592bf074e6e851", "score": "0.6307339", "text": "@Override\n /**\n Ejecuta el metodo, crea query nombrado, pasa por el jpa, va a la base de datos y retorna los objetos solicitados para almacenarlos en una lista\n */\n public List<Cuenta> recuperarCuentas() {\n List<Cuenta> cnt = new ArrayList<Cuenta>();\n Query sql = em.createNamedQuery(\"Cuenta.findAll\");\n return cnt;\n }", "title": "" }, { "docid": "559f3fcd8a4388e9eb5b39a8f82911a6", "score": "0.6307085", "text": "@SuppressWarnings(\"unchecked\")\n\tpublic List<Pessoa> listar() {\n\t\tQuery query = entityManager\n\t\t\t\t.createQuery(\"SELECT p FROM Pessoa p ORDER BY p.idPessoa \");\n\n\t\treturn query.getResultList();\n\t}", "title": "" }, { "docid": "8c9db007bdafad87ee5b0499d27948cc", "score": "0.6268076", "text": "@Override\r\n\tpublic List<Activite> ListActivite() {\n\t\treturn activiteRepository.findAll();\r\n\t}", "title": "" }, { "docid": "acc0e26e982bbcd0031d73d180a6e03c", "score": "0.626485", "text": "@SuppressWarnings(\"unchecked\")\n\tpublic List<T> listar() {\n\n\t\tEntityManager em = factory.createEntityManager();\n\t\tEntityTransaction t = em.getTransaction();\n\t\tList<T> list = null;\n\n\t\ttry {\n\n\t\t\tt.begin();\n\t\t\tlist = (List<T>) em.createQuery(\n\t\t\t\t\t\"from \" + classe.getSimpleName()).getResultList();\n\t\t\tt.commit();\n\n\t\t} catch (Exception e) {\n\n\t\t\tif (debugInfo) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tif (t.isActive()) t.rollback();\n\n\t\t} finally {\n\n\t\t\tem.close();\n\t\t}\n\n\t\treturn list;\n\t}", "title": "" }, { "docid": "40e9f22b06053bc37d2f4291bf2ce139", "score": "0.6257188", "text": "public List<CarritoEntity> findAll(){\n LOGGER.info(\"Consultando todos los CarritoEntity\");\n TypedQuery query = em.createQuery(\"select u from CarritoEntity u\", CarritoEntity.class);\n return query.getResultList(); \n }", "title": "" }, { "docid": "4cb9eb745c7523606d42564caee66f58", "score": "0.625432", "text": "@Override\n\tpublic List<Tipo> listar() {\n\t\treturn repo.findAll();\n\t}", "title": "" }, { "docid": "7436dd7af72904061f73cb7e8e003796", "score": "0.62473154", "text": "@Override\n public List<Vendedor> findAll() {\n \n PreparedStatement st = null;\n ResultSet rs = null;\n \n try{\n \n st = conn.prepareStatement(\n \"select vendedor.*, departamento.nome as DepNome \"\n +\"from vendedor inner join departamento \"\n +\"on vendedor.departamentoId = departamento.Id \"\n +\"group by nome \" \n );\n \n rs = st.executeQuery();\n \n \n /*O NOSSO OBJETIVO A PARTIR DE AGORA É TER MAIS DE UM VENDEDOR APONTANDO PARA O MESMO DEPARTAMENTO.\n \n Um vendedor pode estar associado a um ou mais departamentos*/\n \n \n /* A solução comentada abaixo é incorreta pois para cada vendedor (cada linha do ResultSet) eu estaria criando um novo departamento\n \n List<Vendedor> list = new ArrayList();\n \n while(rs.next()){\n \n Departamento dep = instanciandoDepartamento (rs);\n Vendedor obj = instanciandoVendedor (rs, dep);\n list.add(obj);\n }\n return list\n \n */\n \n List<Vendedor> list = new ArrayList<>(); /*Um vendedor pode estar associando a mais de um departamento. Por este motivo, o obj\n vendedor terá que ser uma lista. */\n \n Map<Integer, Departamento> map = new HashMap<>();/*Criamos um Map vazio com o objetivo abaixo de guardar todo departamento que instaciarmos*/\n \n while(rs.next()){ /*next() move para o proximo e retorna null se estiver vazio. Neste caso, o rs pode receber mais de um registro, por isso, \n ao contrato do que foi feito no metodo acima \"Vendedor findById\" onde só é retornado no maximo um registro, ao invez de um if, nós usamos um while para percorrer todos os registros retornados*/\n \n Departamento dep = map.get(rs.getInt(\"departamentoId\")); /*Toda vez que passar pelo while, estamos testando se o departamento já existe.\n Fazemos isso buscando no departamento (rs) o id que foi buscado na consulta acima. Se não existir, o map vai retornar nulo pra variavel dep*/\n \n if(dep == null){ /*Só vamos instanciar o departamento se o dep for nulo. Pois quer dizer que ele não existe ainda*/\n \n dep = instanciandoDepartamento(rs); /*Instanciando meu departamento a partir do ResultSet (rs)*/\n \n map.put(rs.getInt(\"departamentoId\"), dep);/*Estamos salvando o departamento dentro do map para que da proxima vez, o if não retorne null pois já existe*/\n /*Lembrando que o primeiro valor do mep entre parentese corresponde a chave e o segundo ao valor. Neste caso, dep é o departamento que vou salvar*/\n }\n \n Vendedor obj = instanciandoVendedor(rs, dep); /*Instanciando o vendedor apontando para o meu departamento (dep)*/\n \n list.add(obj);\n \n }\n \n return list;\n \n }\n catch(SQLException e){\n \n throw new DbException(e.getMessage());\n \n }\n finally {\n \n DB.closeStatement(st);\n DB.closeResulSet(rs);\n \n }\n \n }", "title": "" }, { "docid": "8422977b85d9fb7540a061fb58e50df5", "score": "0.6216388", "text": "@Override\n// @Transactional(readOnly = true) //Envuelve el metodo en una transaccion\n public List<Cliente> findAll() {\n return entityManager.createQuery(\"from Cliente\").getResultList();\n }", "title": "" }, { "docid": "fb50859dfa8f68656941922f49367df8", "score": "0.6203083", "text": "@SuppressWarnings({ \"rawtypes\", \"unchecked\" })\n\t@Override\n\tpublic List getAllHabitantes() {\n\t\tList list = new ArrayList();\n\t\trepository.findAll().forEach(e -> list.add(e));\n\t\treturn list;\n\t}", "title": "" }, { "docid": "7dd3c5bba15d7291b63fe56364cc55e6", "score": "0.6185296", "text": "@Override\n public List<Parcel> getAllEntities() {\n List<Parcel> parcelList = new ArrayList<>();\n try (Connection connection = DBConnectionUtility.getDBConnection()) {\n Statement statement = connection.createStatement();\n // returns list of parcels sorted by creation time DESCENDING by default\n ResultSet resultSet = statement.executeQuery(\"SELECT * FROM parcels ORDER BY timeCreated DESC\");\n while (resultSet.next()) {\n Parcel parcel = new Parcel();\n parcel.setId(resultSet.getString(\"parcelId\"));\n parcel.setSenderName(resultSet.getString(\"senderName\"));\n parcel.setRecipientName(resultSet.getString(\"recipientName\"));\n parcel.setStartCity(resultSet.getString(\"startCity\"));\n parcel.setEndCity(resultSet.getString(\"endCity\"));\n parcel.setWeight(resultSet.getDouble(\"weight\"));\n parcel.setStatus(resultSet.getString(\"status\"));\n parcel.setTimeCreated(resultSet.getString(\"timeCreated\"));\n parcel.setTimeUpdated(resultSet.getString(\"timeUpdated\"));\n parcelList.add(parcel);\n }\n } catch (SQLException throwables) {\n daoError(\"SQLException was caught. Stacktrace is available in console\");\n throwables.printStackTrace();\n }\n return parcelList;\n }", "title": "" }, { "docid": "9c8a2e69ec9220919469f0dc75c7aa54", "score": "0.6172098", "text": "public List<? extends AEntity> findAll();", "title": "" }, { "docid": "c0670610dba977d5b96b5dd9686d8ec9", "score": "0.61545414", "text": "public Responsibilities[] findAll() throws ResponsibilitiesDaoException;", "title": "" }, { "docid": "bcea9ce1a0a13709d23881808a8effaa", "score": "0.61509085", "text": "@Override\r\n\tpublic List<Produit> getAllProduit() {\n\t\tString req=\"select p from Produit p\";\r\n\t\t\r\n\t\t// Creation d'une requete\r\n\t\tQuery query=em.createQuery(req);\r\n\t\t\r\n\t\t// Recuperation des résultats de la requete\r\n\t\tList<Produit> listeProduit=query.getResultList();\r\n\t\t\r\n\t\t// Si il y a au moins un produit dans la base de données\r\n\t\tif (listeProduit.size()!=0){\r\n\t\t\t\r\n\t\t\treturn listeProduit;\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\t\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "355e16d00a263811b826ecb2d4071272", "score": "0.6147507", "text": "public List<Paciente> findAllPacientes();", "title": "" }, { "docid": "4b8642690cb296e94fae0029da03e58b", "score": "0.6146307", "text": "public List<PuntoVenta> listar() {\n return elementoDAO.findAll();\n }", "title": "" }, { "docid": "a65599ce994a62d409c79ecad9da1a6b", "score": "0.6141979", "text": "public List<Pedido_TO> consultarPedidosDiaEntrega() {\r\n List<Pedido_TO> pedidosDia = new ArrayList<>();\r\n PedidoDao pedidoDao = new PedidoDao();\r\n pedidosDia = pedidoDao.consultarPedidosDiaEntrega();\r\n return pedidosDia;\r\n }", "title": "" }, { "docid": "c208b05bca20aa366e8df5207cdca6b3", "score": "0.614098", "text": "public List<ReservaEntity> getReservas()\n {\n LOGGER.log(Level.INFO, \"Inicia proceso de consultar todas las reservas\");\n List<ReservaEntity> reservas = persistencia.findAll();\n LOGGER.log(Level.INFO, \"Termina el de consultar todas las reservas\");\n return reservas;\n }", "title": "" }, { "docid": "171a69c4c3de8c92b5e3006a6062fbfa", "score": "0.6134062", "text": "@Override\n\tpublic List<Encomienda> listar() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "45f205c3cc59719298e19a40918e70de", "score": "0.61317295", "text": "public List<T> findAll() {\n\t\tCriteriaQuery<T> cq = getEntityManager().getCriteriaBuilder().createQuery(classeEntite);\n\t\tcq.select(cq.from(classeEntite));\n\t\tVector<T> v = (Vector<T>) getEntityManager().createQuery(cq).getResultList();\n\t\tif (v!=null)\n\t\t\treturn new ArrayList<T>(v);\n\t\treturn null;\n\t}", "title": "" }, { "docid": "ed7553244aa3763daf8a47f331814260", "score": "0.6121308", "text": "List<Prueba> findAll();", "title": "" }, { "docid": "bac97179de5ba8df40b97fa5bcbda4e7", "score": "0.61162424", "text": "@Override\r\n public List<T> findAll() {\r\n logger.log(Level.INFO, \"Consultando todas los {0}s\", entityClass.getSimpleName());\r\n TypedQuery query = manager.createQuery(\"select u from \" + entityClass.getName() + \" u\", entityClass);\r\n return query.getResultList();\r\n }", "title": "" }, { "docid": "72d172cd0ee0eb834dba269c9f422a75", "score": "0.6116101", "text": "public List<Pedido_TO> consultarPedidosEnplantaSegunCliente() {\r\n List<Pedido_TO> pedidosEntrega = new ArrayList<>();\r\n PedidoDao pedidoDao = new PedidoDao();\r\n pedidosEntrega = pedidoDao.consultarPedidosEnPlantaSegunCliente(Sesion.obtenerSesion());\r\n return pedidosEntrega;\r\n }", "title": "" }, { "docid": "5df4e7f23b56e2be45be19502a7b2b2a", "score": "0.610764", "text": "public List<Equipo> getEquipos();", "title": "" }, { "docid": "293ec088aa2269b85124cd81a0eda009", "score": "0.60951567", "text": "@Override\n\tpublic List<Cajero> listar() {\n\t\treturn cajeroRepository.findAll();\n\t}", "title": "" }, { "docid": "2cc7077f8c465d3bbb075b5b9254b170", "score": "0.60688645", "text": "public List<PedidoDespacho> listaPedidosDespacho();", "title": "" }, { "docid": "b800743c9ebdd681d457e70f5cb78505", "score": "0.60669196", "text": "public List listar() {\r\n List lista = null;\r\n try {\r\n VehInmovilizacionDao dao = new VehInmovilizacionDao();\r\n conn = conexion.conectar();\r\n lista = dao.loadAll(conn);\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n } finally {\r\n conexion.cerrarCx();\r\n }\r\n return lista;\r\n }", "title": "" }, { "docid": "0c33d1a1a8745da125f4fc26ef6b9ebb", "score": "0.6065911", "text": "public List<T> getAll() throws PersistException;", "title": "" }, { "docid": "0c33d1a1a8745da125f4fc26ef6b9ebb", "score": "0.6065911", "text": "public List<T> getAll() throws PersistException;", "title": "" }, { "docid": "ce67ee5629224bbb89e3fefb5d9e84e7", "score": "0.60654265", "text": "@Override\n @Transactional\n public List<DoctorspecializationEntity> getSpecializations(){\n return em.createNativeQuery(\"SELECT * from doctorspecialization \", DoctorspecializationEntity.class).getResultList();\n }", "title": "" }, { "docid": "1dc0031eb3c63b2b1a6da274478a3e51", "score": "0.60645735", "text": "public List<Dispositivo> getDispositivos() throws MyDaoExeption;", "title": "" }, { "docid": "0e588dd7bcf5edd06ce2bc682b46371d", "score": "0.6061818", "text": "@Override\r\n\tpublic List<Paciente> readAll(){\n\t\treturn pacienteRepository.findAll();\r\n\t}", "title": "" }, { "docid": "d1c7b4242a7d8592a39a3687303fc8cc", "score": "0.6051102", "text": "@Override\n\tpublic List<Concurso> listaConcurso() {\n\t\t\treturn repositorio.findAll();\n\t}", "title": "" }, { "docid": "60c016195ef883012af6894cacbebb9f", "score": "0.60481846", "text": "public List<Proceso> findAll();", "title": "" }, { "docid": "2b3135a3d91fc876783e346f782672bd", "score": "0.6048038", "text": "public List<T> getPersonProvider(){\n Query query = getEntityManager().createQuery(\"SELECT e FROM Person e WHERE e.kind = 2\");\n return query.getResultList();\n }", "title": "" }, { "docid": "5538c2ac859281c1f436ff0793819cb7", "score": "0.6045046", "text": "public List<T> getPersonClients(){\n Query query = getEntityManager().createQuery(\"SELECT e FROM Person e WHERE e.kind = 1\");\n return query.getResultList();\n }", "title": "" }, { "docid": "f456ed2700f45ccc8d733dfe7b902aff", "score": "0.60428023", "text": "public List<Persona> findAllPersonas();", "title": "" }, { "docid": "68636aafc692d44d5cc3f64a90485249", "score": "0.6041989", "text": "public List<BeanListado> findByBecasextra(int convocatoria){\n List<BeanListado> listaSolicitudesActividades = new ArrayList<>();\n try(Connection con = ConnectionMySQL.getConnection()){\n try(\n PreparedStatement pstm = con.prepareStatement(\"select * from solicitudes_especificas where id_convocatoria=3;\")){\n ResultSet rs= pstm.executeQuery();\n while(rs.next()){\n BeanListado listado = new BeanListado();\n listado.setId_solicitud(rs.getInt(\"id_solicitud\"));\n listado.setFechaSolicitud(rs.getString(\"fecha_solicitud\"));\n listado.setEstado(rs.getString(\"estado\"));\n listado.setComentario(rs.getString(\"comentario\"));\n listado.setVerdicto(rs.getString(\"veredicto\"));\n listado.setPorcentaje(rs.getInt(\"porcentaje\"));\n listado.setMatriculaSolicitud(rs.getString(\"matricula\"));\n listado.setConvocatoria(rs.getInt(\"id_convocatoria\"));\n listado.setComite(rs.getInt(\"id_comite\"));\n listado.setNombre(rs.getString(\"nombre\"));\n listaSolicitudesActividades.add(listado);\n }\n }\n } catch (SQLException throwables) {\n throwables.printStackTrace();\n }\n return listaSolicitudesActividades;\n }", "title": "" }, { "docid": "e0788f154c4bb7414a2ba4861f069e33", "score": "0.6040154", "text": "public List<Dispositivo> listarDiposnibles() throws MyDaoExeption;", "title": "" }, { "docid": "b7d4add43a5bb03297276085b6954121", "score": "0.60400134", "text": "@Override\r\n\tpublic Collection<Servicio> listar() throws DAOExcepcion {\n\t\treturn ServicioDAO.listar();\r\n\t}", "title": "" }, { "docid": "807f6a3fd8c03edf2926e68cc42a790a", "score": "0.6036741", "text": "public List<InvestigacionEntity> findAll() {\r\n TypedQuery query = em.createQuery(\"select u from InvestigacionEntity u\", InvestigacionEntity.class);\r\n return query.getResultList();\r\n }", "title": "" }, { "docid": "5431e476ab5280f111880d11cf8349ed", "score": "0.6031469", "text": "public List<PruebaVO> findAll(){\n\n\t\t\n\t\tCriteria criteria = getSessionFactory().getCurrentSession().createCriteria(PruebaVO.class);\n\t\tList listado = criteria.list();\n//\t\ttx.commit();\n\t\treturn listado;\n\n\t\t\n//\t\treturn getHibernateTemplate().find(\"from PruebaVO\");\n \n\t}", "title": "" }, { "docid": "a4cf09a80bf03404c9682405ad643876", "score": "0.6025016", "text": "public List getCarterasAsignadasProceso();", "title": "" }, { "docid": "2adf5f9377e40fe3afb3df3766ea5df3", "score": "0.6024402", "text": "@Override\n public List listActores() {\n List a = em.createNamedQuery(\"Actor.findAll\").getResultList();\n return a;\n }", "title": "" }, { "docid": "67f374646b9db190552df4f8d2ec8cf5", "score": "0.6018349", "text": "public List<LaboratorioEntity> getLaboratorios(){\r\n return persistence.findAll();\r\n \r\n }", "title": "" }, { "docid": "c6804d4df7e6bf66df938de9f8e01569", "score": "0.6006461", "text": "private void llenarListas(){\n //Se crea una conexion a la base de datos \n EntityManager em = EManagerFactory.getEntityManagerFactory().createEntityManager();\n em.getTransaction().begin();\n //Se consultan todos los productos y paquetes\n Query productos = em.createQuery(\"SELECT p FROM Productos p\");\n Query paquetes = em.createQuery(\"SELECT pa FROM Paquetes pa\");\n ListaProductos= (List<Productos>) productos.getResultList();\n ListaPaquetes = (List<Paquetes>) paquetes.getResultList();\n em.close(); \n }", "title": "" }, { "docid": "411230b5a12c15febc711575a0f13836", "score": "0.59928215", "text": "public List<T> findAllList()\n\t{\n\t\ttry\n\t\t{\n\t\t\tmanager = getEntityManager();\n\t\t\tQuery query = manager.createQuery(\"from \"+ aClass.getSimpleName());\n\t\t\tList<T> entities =query.getResultList();\n\t\t\treturn entities;\n\t\t}catch(Exception erro)\n\t\t{\n\t\t\tSystem.out.println(erro.getMessage());\n\t\t\treturn null;\n\t\t}\n\t}", "title": "" }, { "docid": "b8911494f889f9406211dd1710168772", "score": "0.5986943", "text": "@Override\r\n\tpublic List<Cliente> listar() {\n\t\treturn clienteRepository.findAll();\r\n\t}", "title": "" }, { "docid": "3ffd33ba999dcb277a81504f6ce0a3f0", "score": "0.5986613", "text": "@SuppressWarnings(\"unchecked\") // gera usso pq ele nao sabe q tipo ele vai\n\t\t\t\t\t\t\t\t\t// retornar\n\tpublic List<T> findAll() {\n\t\tEntityManager manager = getEntityManager();// chama o metodo de cima\n\t\t\t\t\t\t\t\t\t\t\t\t\t// passa o objeto ja criando\n\t\t\t\t\t\t\t\t\t\t\t\t\t// do tipo entyttimanager\n\t\tmanager.getTransaction().begin();// inicia a transa├žao\n\t\tQuery query = manager.createQuery(\"from \" + aClass.getSimpleName());\n\t\t// precisa de uma query como paramento\n\t\tList<T> entities = query.getResultList();// recupera os resultandos\n\t\t// retorno da lista\n\t\tmanager.getTransaction().commit();// vamos commint a transa├žao\n\t\tmanager.close();// encerra e libera da memoria\n\t\treturn entities;\n\t}", "title": "" }, { "docid": "01b2b1a4e3453d14fe60e4d8ffd0672b", "score": "0.5974038", "text": "@Override\n\tpublic List<Utilisateur> getAllUtilisateur() {\n\t\tSystem.out.println(\"getAllUtilisateur\");\n\t\tSession session = HibernateUtil.getSession();\n\t\tsession.beginTransaction();\t\n\t\tList<Utilisateur> u = session.createQuery(\"from utilisateur\").list();\n\t\t\n\t\treturn u;\n\t}", "title": "" }, { "docid": "d552e90d60f71f98d17805977915ec15", "score": "0.5972259", "text": "@Override\n\tpublic ArrayList<Boletim> listar() throws Exception {\n\t\tconn = super.getConnection();\n\t\tArrayList<Boletim> al = new ArrayList<Boletim>();\n\t\tBoletim boletim = new Boletim();\n\t\t\n\t\ttry {\n\t\t\tString sql = \"SELECT * FROM aluno_turma\";\n\t\t\tconn.setAutoCommit(false);\n\t\t\tPreparedStatement ps = conn.prepareStatement(sql);\n\t\t\tResultSet rs = ps.executeQuery();\n\t\t\n\t\t\t\twhile (rs.next())\n\t\t\t\t{\n\t\t\t\t\tboletim = getByNome(rs.getInt(\"aluno_codigo\"), rs.getInt(\"turma_codigo\"));\n\t\t\t\t\tal.add(boletim);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\n\t\t\tcatch (Exception ex)\n\t\t\t{\n\t\t\t\tthrow new Exception (\"- Erro ao listar boletins\\n\" + ex.getMessage());\n\t\t\t}\n\t\t\n\t\t\treturn al;\n\t}", "title": "" }, { "docid": "cba11c59395e0631351a34793f6df561", "score": "0.5970268", "text": "@Override\n public List<TipoAsignacion> buscarTipoAsignacionHabilitado()\n throws DataAccessException {\n\n DetachedCriteria criteria = DetachedCriteria.forClass(TipoAsignacion.class);\n criteria.add(Restrictions.eq(\"habilitado\", true));\n\n return this.daoGeneralImpl.find(criteria);\n }", "title": "" }, { "docid": "b326ac4baa513cd6bb953c3edfbd66fe", "score": "0.59635806", "text": "@Override\r\n\tpublic List<BeanActividad> listar(BeanEmpleado beanEmpleado,SqlSession sqlSession) {\n\r\n\t\tList<BeanActividad> lista = new ArrayList<BeanActividad>();\r\n\t\t\r\n\t\t\ttry {\r\n\t\t\t\tif(sqlSession!=null){\r\n\t\t\t\t\tlista = sqlSession.selectList(\"com.pe.ibm.access.MapperActividad.listar\",beanEmpleado);\r\n\t\t\t\t}else{\r\n\t\t\t\t\tSystem.err.println(\"no hay conexi�n\");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}catch (Exception e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t\tsqlSession.rollback();\r\n\t\t\t}\r\n\t\t\r\n\t\treturn lista;\r\n\t}", "title": "" }, { "docid": "e2f8b217859b946595a73c43ffba80eb", "score": "0.5956796", "text": "@Override\n \t\tpublic List<Entity> getListOfEnteties() {\n \t\t\treturn entities;\n \t\t}", "title": "" }, { "docid": "d1726f6150c70c2f335b4fb32a82d58c", "score": "0.59533036", "text": "<T> List<T> find(DetachedCriteria criteria) throws DataAccessException;", "title": "" }, { "docid": "e28527f003cf9127050c68a4dff47b88", "score": "0.59277034", "text": "public List<Account> findAll()throws SQLException;", "title": "" }, { "docid": "0f04e9688174c77cee89e4d275d27f3b", "score": "0.59272325", "text": "List<Object[]> obterPessoaSemBensVinculados() throws BancoobException;", "title": "" }, { "docid": "b0c04bade61fdaa41a0fc90b14f0f161", "score": "0.592203", "text": "@Override\n\tpublic List<Personagem> instanciarLista() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "f93c313244eaedcc685b21c794b2099e", "score": "0.5916026", "text": "public List<Salas> listar(){\n return salaDAO.findSalasEntities();\n }", "title": "" }, { "docid": "338eeb2af0877036296a4035ab27d741", "score": "0.5914004", "text": "List<Livro> findAll();", "title": "" }, { "docid": "d26a4a42b5b0d084e0a9be19094497d9", "score": "0.5912898", "text": "private void consultarNiveis() {\n\t\tniveis = new ArrayList<Nivel>();\n\n\t\tNivel nivelAdm = new Nivel(1, \"Administrador\");\n\t\tNivel nivelNormal = new Nivel(2, \"Normal\");\n\n\t\tniveis.add(nivelAdm);\n\t\tniveis.add(nivelNormal);\n\t}", "title": "" }, { "docid": "885c665eaa238fa9a6e180edf3de21b2", "score": "0.59081954", "text": "@Override\r\n\tpublic List<Departamento> getDepartamento() {\n\t\t\t\tString sql = \"SELECT * FROM Departamento\";\r\n\t\t\t\tQuery query = em.createNativeQuery(sql);\r\n\t\t\t\t@SuppressWarnings(\"unchecked\")\r\n\t\t\t\tList<Departamento> res3 = query.getResultList();\r\n\t\t\t\treturn res3;\r\n\t}", "title": "" }, { "docid": "c29684df453f1e4c1e4f8d9ccf5a85ed", "score": "0.59030914", "text": "public List<Orcamento> listar() throws SQLException {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "da6afa76b11756e956ac0ddff0f445cf", "score": "0.58991116", "text": "public List<ItemDTO> getItens() throws EmpresaException;", "title": "" }, { "docid": "1d1f7504b4a00c8f817acc41815b2544", "score": "0.5898519", "text": "public List<Inventario> getInventario(){\n return inventario;\n }", "title": "" }, { "docid": "422bf18a6b6a2c61eaf226c2a7ea4b35", "score": "0.58983034", "text": "@Override\r\n\t@Transactional\r\n\tpublic List<interfazDAO_Cliente> searchAll() {\r\n\t\tSession currentSession = entityManager.unwrap(Session.class);\r\n\t\t\r\n\t\t/* Importamos la opcion del metodo */\r\n\t\tcurrentSession.save(newCliente);\r\n\t\t\r\n\t\t/* Cerramos la session */\r\n\t\tcurrentSession.close();\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "43387c083387ad5e0b73563566c89693", "score": "0.5898112", "text": "public List<Produit> getAll();", "title": "" }, { "docid": "d6f8f2cc3bc1d796092f45fe308f4c6d", "score": "0.5897289", "text": "public List<Iva> findAll() {\n try {\n List<Iva> ivas = new ArrayList<>();\n Connection conn = GestionSql.openConnection();\n PreparedStatement query = conn.prepareStatement(SELECT_ALL);\n ResultSet rs = query.executeQuery();\n while (rs.next()) {\n ivas.add(bind(rs));\n }\n GestionSql.closeConnection(conn);\n return ivas;\n } catch (SQLException ex) {\n Logger.getLogger(ServiceIva.class.getName()).log(Level.SEVERE, null,\n ex);\n }\n return null;\n }", "title": "" }, { "docid": "55a6bbc64b47aa6dacd2bd2533f42ca6", "score": "0.58893394", "text": "@Override\r\n\tpublic List<TipoEstado> listar() throws Exception {\r\n\t\tQuery q = em.createNamedQuery(TipoEstado.FIND_ALL);\r\n\t\treturn q.getResultList();\r\n\t}", "title": "" }, { "docid": "f9a1d715d345234ab675a1b2fe0498cd", "score": "0.5887734", "text": "List<Produto> findAll();", "title": "" }, { "docid": "02776173cf7a0fef5013f916290e3feb", "score": "0.5884652", "text": "@Override\n\tpublic List<Dispositivo> listarDispositivos() throws NeuroLabDaoException {\n\t\tSession session = null;\n\t\tList<Dispositivo> dispositivos = null;\n\n\t\ttry {\n\t\t\tsession = sessionFactory.openSession();\n\t\t\tCriteria criteria = session.createCriteria(Dispositivo.class);\n\t\t\tdispositivos = criteria.list();\n\t\t} catch (HibernateException e) {\n\t\t\tthrow new NeuroLabDaoException(e);\n\t\t}\n\t\t/*\n\t\t * TODO: Analizar el cierre de la sesion: finally { if(session != null){\n\t\t * session.close(); } }\n\t\t */\n\t\treturn dispositivos;\n\t}", "title": "" }, { "docid": "75b0336a64f80dc473f7e8167a514eb4", "score": "0.5881606", "text": "@Override\r\n public List<EncarregadoEducacao> listEncEdu() {\r\n PreparedStatement st = null;\r\n ResultSet rs = null;\r\n try {\r\n st = conn.prepareStatement(\r\n \"SELECT * FROM encarregado_educacao\");\r\n rs = st.executeQuery();\r\n\r\n List<EncarregadoEducacao> list = new ArrayList<>();\r\n\r\n while (rs.next()) {\r\n EncarregadoEducacao enc = instantiateEncarregadoEducacao2(rs);\r\n list.add(enc);\r\n }\r\n return list;\r\n } catch (SQLException e) {\r\n throw new DbException(e.getMessage());\r\n } finally {\r\n DB.closeStatement(st);\r\n DB.closeResultSet(rs);\r\n }\r\n }", "title": "" }, { "docid": "af179cce672b1514f85d8413317a1056", "score": "0.5879521", "text": "public ArrayList<Empleado> listadoEmpleados() throws PersistenciaException {\n String sql = \"SELECT * FROM Empleado\";\n return convertir(sql);\n }", "title": "" }, { "docid": "49adee90a5804cacac0941ad2fdb8c46", "score": "0.5879249", "text": "public List<BeanListado> findByBecasDiscapacidad(int convocatoria){\n List<BeanListado> listaSolicitudesDiscapacidades= new ArrayList<>();\n try(Connection con = ConnectionMySQL.getConnection()){\n try(\n PreparedStatement pstm = con.prepareStatement(\"select * from solicitudes_especificas where id_convocatoria=5;\")){\n ResultSet rs= pstm.executeQuery();\n while(rs.next()){\n BeanListado listado = new BeanListado();\n listado.setId_solicitud(rs.getInt(\"id_solicitud\"));\n listado.setFechaSolicitud(rs.getString(\"fecha_solicitud\"));\n listado.setEstado(rs.getString(\"estado\"));\n listado.setComentario(rs.getString(\"comentario\"));\n listado.setVerdicto(rs.getString(\"veredicto\"));\n listado.setPorcentaje(rs.getInt(\"porcentaje\"));\n listado.setMatriculaSolicitud(rs.getString(\"matricula\"));\n listado.setConvocatoria(rs.getInt(\"id_convocatoria\"));\n listado.setComite(rs.getInt(\"id_comite\"));\n listado.setNombre(rs.getString(\"nombre\"));\n listaSolicitudesDiscapacidades.add(listado);\n }\n }\n } catch (SQLException throwables) {\n throwables.printStackTrace();\n }\n return listaSolicitudesDiscapacidades;\n }", "title": "" }, { "docid": "9f94eaad2e96dbed2e6637cc1d1fc6d4", "score": "0.5876811", "text": "public void listEntity() {\r\n\r\n\t}", "title": "" }, { "docid": "2375e567ab5823c0796ad59a38c456a6", "score": "0.58753794", "text": "public List<BeanListado> findByBecasAdmin(int convocatoria){\n List<BeanListado>listaSolicitudesAdmin= new ArrayList<>();\n try(Connection con = ConnectionMySQL.getConnection()){\n try(\n PreparedStatement pstm = con.prepareStatement(\"select * from solicitudes_especificas where id_convocatoria=4;\")){\n ResultSet rs= pstm.executeQuery();\n while(rs.next()){\n BeanListado listado = new BeanListado();\n listado.setId_solicitud(rs.getInt(\"id_solicitud\"));\n listado.setFechaSolicitud(rs.getString(\"fecha_solicitud\"));\n listado.setEstado(rs.getString(\"estado\"));\n listado.setComentario(rs.getString(\"comentario\"));\n listado.setVerdicto(rs.getString(\"veredicto\"));\n listado.setPorcentaje(rs.getInt(\"porcentaje\"));\n listado.setMatriculaSolicitud(rs.getString(\"matricula\"));\n listado.setConvocatoria(rs.getInt(\"id_convocatoria\"));\n listado.setComite(rs.getInt(\"id_comite\"));\n listado.setNombre(rs.getString(\"nombre\"));\n listaSolicitudesAdmin.add(listado);\n }\n }\n } catch (SQLException throwables) {\n throwables.printStackTrace();\n }\n return listaSolicitudesAdmin;\n }", "title": "" }, { "docid": "daecb81a249d31d16c112b5d1625f014", "score": "0.58736205", "text": "public List<Personas> getPersonas() {\r\n personas = personasEJB.listarTodos();\r\n return personas;\r\n }", "title": "" }, { "docid": "a78f24119a8eafaf7dd7304fda344cce", "score": "0.5872017", "text": "@SuppressWarnings(\"unchecked\")\r\n\t\t@Override\r\n\t\tpublic List<Inspeccion> readAllInspecciones_Establ(Establecimiento establecimiento) {\r\n\t\t\tSession session = SessionFactoryService.get().openSession();\r\n\t\t\tsession.beginTransaction();\r\n\t\t\tQuery q = session.createQuery(\"select i from Inspeccion i where i.establecimiento_inspeccion = :establecimiento order by i.fecha_insp desc\");\r\n\t\t\tq.setParameter(\"establecimiento\", establecimiento);\r\n\t\t\tList<Inspeccion> inspecciones = q.getResultList();\r\n\t\t\tsession.getTransaction().commit();\r\n\t\t\tsession.close();\r\n\t\t\treturn inspecciones;\r\n\t\t}", "title": "" }, { "docid": "0639de419db00cc9293be2829932cc97", "score": "0.5870789", "text": "@Override\r\n\tpublic List<Personne> findAll() {\n\t\treturn dao.findAll();\r\n\t}", "title": "" }, { "docid": "d5112bcfce4ba21d70dfbfb02ea088ee", "score": "0.58706075", "text": "@Override\r\n\tpublic List<Usuario> getAll() {\n\t\tList<Usuario> listF = new ArrayList<Usuario>();\r\n SessionFactory factory= FabricaSessionFactory.getFactory();\r\n Session session = factory.getCurrentSession(); \r\n session.beginTransaction();\r\n @SuppressWarnings(\"unchecked\")\r\n List<Usuario> list = session.createCriteria(Usuario.class).list();\r\n session.getTransaction().commit();\r\n for(Usuario o : list) {\r\n listF.add((Usuario)o);\r\n }\r\n return listF;\r\n\t}", "title": "" }, { "docid": "4ef9289b6dc9254a20c67eb493c49b77", "score": "0.586592", "text": "@SuppressWarnings(\"unchecked\")\n\t@Override\n\tpublic List<Computerliteracys> getAllComputerliteracys() {\n\t\ttry {\n\t\t\t\n\t\t\t\n\t\t\t return em.createNamedQuery(\"Computerliteracys.findAll\").getResultList();\n\t\t}\n\t\tcatch (Throwable th){\n\t\t\t throw new MyProfilException(th,13);\n\t\t\t }\n\t}", "title": "" }, { "docid": "81fce878cefff3416436c419c9ec7c76", "score": "0.5863473", "text": "public List<Asteroide> consultar() throws MyException;", "title": "" }, { "docid": "8939423195162e248e2bcc8a5b8f13bb", "score": "0.58624315", "text": "<T> List<T> loadAll(Class<T> claseEntidad) throws DataAccessException;", "title": "" }, { "docid": "4f4471cb321ba6c662601878349960d6", "score": "0.5861946", "text": "public List<Utilisateur> getAll() throws BLLexception;", "title": "" }, { "docid": "39b6e8a07de6186e7c4fa444bfeab842", "score": "0.58590806", "text": "public List<Esperienza> all() {\n // Dammi tutti \n return em.createQuery(\"select e FROM Esperienza e ORDER BY e.nome \", Esperienza.class)\n .getResultList();\n }", "title": "" }, { "docid": "0b7c8e67cceae3c8377348c3afe23ea7", "score": "0.5858392", "text": "public List<Persona> mostrarInternados(){\n return personasInternadas;\n }", "title": "" } ]
b444bac06186aa153c1cf277c75150e3
Metodo que adiciona o voo na lista.
[ { "docid": "2a0c422d4312a181526991d53a041046", "score": "0.63713145", "text": "public void addVoo() {\n\t\tboolean isOver = false; //arrumar\n\t\twhile(!isOver){\n\t\t\ttry{\n\t\t\t\tscanner = new Scanner(System.in);\n\t\t\t\tout.println(\"Digite o codigo do voo:\");\n\t\t\t\tint codVoo = scanner.nextInt();\n\t\t\t\tscanner = new Scanner(System.in);\n\t\t\t\tout.println(\"Digite a origem do voo:\");\n\t\t\t\tString origem = scanner.nextLine();\n\t\t\t\tout.println(\"Digite o destino do voo:\");\n\t\t\t\tString destino = scanner.nextLine();\n\t\t\t\tout.println(\"Digite o horario do voo:\");\n\t\t\t\tString horario = scanner.nextLine();\n\t\t\t\tout.println(\"Digite o codigo do aviao:\");\n\t\t\t\tint codigo = scanner.nextInt();\n\t\t\t\tthis.aviao = retornaAviao(codigo);\n\n\t\t\t\tif(verificaString(origem) && verificaString(destino) && \n\t\t\t\t\t\taviaoExiste(codigo) && this.aviao != null) {\n\t\t\t\t\tthis.voo = new Voo(codVoo, this.aviao, origem, destino, horario);\n\t\t\t\t\t//this.voo.setIdVoo(increaseId++);\n\t\t\t\t\tlistaVoo.add(this.voo);\t\n\t\t\t\t\tout.println(\"Voo adicionado. Codigo do voo: \"+this.voo.getCodVoo()+\". De: \"+this.voo.getDestino()+\". Para: \"+this.voo.getOrigem()+\". As: \"+this.voo.getHorario()+\"h.\");\n\t\t\t\t\tisOver = true;\n\t\t\t\t} else {\n\t\t\t\t\tout.println(\"Voo invalido, tente novamente.\");\n\t\t\t\t}\n\t\t\t}catch(Exception e){\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "title": "" } ]
[ { "docid": "2baa4fb5f3e885112dd70917b90b0cdb", "score": "0.6758085", "text": "public void add(Nodo nuevo){\r\n //PRIMERO VERIFICAR SI LA LISTA ESTÁ VACÍA\r\n if(isEmpty()){\r\n inicio = nuevo;\r\n fin = nuevo;\r\n }else{\r\n /*Nodo temp = inicio;\r\n while(temp.getSiguiente() != null){\r\n temp = temp.getSiguiente();\r\n }temp.setSiguiente(nuevo);*/\r\n fin.setSiguiente(nuevo);\r\n fin = nuevo;\r\n }\r\n }", "title": "" }, { "docid": "1ab671e55ee9139d91c221cbb5704e4e", "score": "0.6756018", "text": "public void add (Nodo nuevo){\n //PRIMERO VERIFICAR SI LA LISTA ESTA VACIA\n if (isEmpty()) {\n inicio = nuevo;\n fin = nuevo;\n }else{\n /*Nodo temp = inicio;\n while(temp.getSiguiente() != null){\n temp = temp.getSiguiente();\n }\n temp.setSiguiente(nuevo);*/\n fin.setSiguiente(nuevo);\n fin = nuevo;\n }\n }", "title": "" }, { "docid": "0abaeed8968f9f5d2aefde67fae865b5", "score": "0.6693391", "text": "public void agregarVenta(Venta v) {\n this.getListaVentas().add(v);\n this.setCantVentas(this.getCantVentas() + 1);\n ArrayList<NodoArticulo> articulos = v.getArticulos();\n for (int i = 0; i < articulos.size(); i++) {\n int pos = 0;\n while (!(this.getListaArticulosVendidos().get(pos).articulo.getNombre().equals(articulos.get(i).getArticulo().getNombre()))) {\n pos++;\n }\n NodoArticulo nodo = this.getListaArticulosVendidos().get(pos);\n nodo.setCantVendidas(nodo.getCantVendidas() + v.getArticulos().get(i).getCantVendidas());\n nodo.setCantDonados(nodo.getCantDonados() - v.getArticulos().get(i).getCantVendidas());\n if (nodo.getCantDonados() < 0) {\n nodo.setCantDonados(0);\n }\n int posEnvase = 0;\n while (!(this.getListaEnvasesReutilizables().get(posEnvase).envase.getTipo().equals(articulos.get(i).getArticulo().getEnvaseElegido().getTipo()))) {\n posEnvase++;\n }\n NodoEnvase nodoEnvase = this.getListaEnvasesReutilizables().get(posEnvase);\n nodoEnvase.setCantVendidas(nodoEnvase.getCantVendidas() + v.getArticulos().get(i).getCantVendidas());\n if (this.getListaArticulosMasVendidos().isEmpty()) {\n this.getListaArticulosMasVendidos().add(nodo);\n }\n else {\n if (!this.getListaArticulosMasVendidos().contains(nodo) && this.getListaArticulosMasVendidos().get(0).cantVendidas == nodo.cantVendidas) {\n this.getListaArticulosMasVendidos().add(nodo);\n } else {\n if (this.getListaArticulosMasVendidos().contains(nodo)) {\n this.getListaArticulosMasVendidos().clear();\n this.getListaArticulosMasVendidos().add(nodo);\n } else {\n if (this.getListaArticulosMasVendidos().get(0).cantVendidas < nodo.cantVendidas) {\n this.getListaArticulosMasVendidos().clear();\n this.getListaArticulosMasVendidos().add(nodo);\n }\n\n }\n }\n\n }\n }\n }", "title": "" }, { "docid": "29e7ea24ad9772b0b214ad359d62956f", "score": "0.65205526", "text": "@Override\n\tpublic void add(Vuelo dato) {\n\t\t\n\t}", "title": "" }, { "docid": "81f8beccd46b5bdcf76e395026ed3e04", "score": "0.6461956", "text": "private RepositorioVoos(){\r\n\t\tthis.listaVoos = new ArrayList<Voo>();\r\n\t}", "title": "" }, { "docid": "e1b3aa5892ef28238d9470b234482493", "score": "0.6440194", "text": "public void anhadeValor(Valor v) { // CC +1, CCog +0\n\t\tvalores.add(v);\n\t}", "title": "" }, { "docid": "86e4229a3c9ccdfdbc96a8032e608de9", "score": "0.6439509", "text": "public void agregarVertice(Vertice v) {\n for (Vertice vertice : adyacencias) {\n if (Vertice.obtenerID(vertice) == Vertice.obtenerID(v)){\n return;\n }\n }\n adyacencias.add(v);\n }", "title": "" }, { "docid": "bb26a764df9b9d75658f43262fb90743", "score": "0.6427097", "text": "public void addObj(Oggetto a)\t{contenuto.add(a);}", "title": "" }, { "docid": "40081a729e61915ed1591baf80619fc2", "score": "0.6374128", "text": "public void addvalor(T valor) {\n\t\tlista.add(valor);\n\t}", "title": "" }, { "docid": "c346cf99e87c3ce05f5e00479c7e9ab5", "score": "0.63409567", "text": "public void addListVehicule(Object vvehicule) {\n\t\t\n\t\t\t\n\t}", "title": "" }, { "docid": "faeb27b39fc35bd116f9ee4a0e083f9c", "score": "0.63197285", "text": "public static void inserir(Reserva reserva){\n lerXml();\n \n if(lista.size() == 0){//se s lista estiver vazia\n reserva.setCodigo(1); \n }else{//se alista tem objetos\n //pegar o ultimo codigo\n int ultimaPosicao = lista.size()-1;\n Reserva ultimaReserva = lista.get(ultimaPosicao);\n //somar+1 no carrinho adicionado\n reserva.setCodigo(ultimaReserva.getCodigo()+1);\n }\n lista.add(reserva);\n salvarXml();\n }", "title": "" }, { "docid": "f140491d252aacca943052fcdaa9ba24", "score": "0.6307623", "text": "public void criarLista(Object elemento) {\n\t\tif (this.inicio == null) {\n\t\t\tinicio = new NoDuplamenteEncadeado();\n\t\t\tfim = inicio;\n\t\t\tNoDuplamenteEncadeado novoNo = new NoDuplamenteEncadeado();\n\t\t\tnovoNo.setElemento(elemento);\n\t\t\tnovoNo.setProx(null);\n\t\t\tnovoNo.setAnt(null);\n\t\t\tfim.setProx(novoNo);\n\t\t\tinicio = fim = novoNo;\n\t\t\tquantidade++;\n\n\t\t} else {\n\t\t\t// caso a lista ja exista será chamado o metodo\n\t\t\tinserirNoFim(elemento);\n\t\t}\n\t}", "title": "" }, { "docid": "3a5cb268a1e7f4bf7255d6eb74390b33", "score": "0.6279475", "text": "public void add(AgentXVarbind ob)\n {\n myList.add(ob);\n }", "title": "" }, { "docid": "ce53ff31509879fd33de6e8c3cbebd3d", "score": "0.6261153", "text": "public void addVictima(Victima v) {\n\t\tif (this.nombres == null) {\n\t\t\tnombres = new ArrayList<String>();\n\t\t\tthis.numMineros = 0;\n\t\t}\n\n\t\tthis.nombres.add(v.getName());\n\t\tthis.numMineros++;\n\t}", "title": "" }, { "docid": "e848450c5a7a9c76554d51f34d957b40", "score": "0.6247652", "text": "public void addPosible(Vertice posible){\n\t\tthis.posibles.add(posible);\t\t\n\t}", "title": "" }, { "docid": "572e9a83c6ebdca9c6f6b839522a46c8", "score": "0.6194049", "text": "public void add(int index, AgentXVarbind ob) \n {\n myList.add(index, ob);\n }", "title": "" }, { "docid": "e567d68ac714b1ec430e6fe7a935dc8c", "score": "0.61707836", "text": "public static void Lista(){\r\n if(tab.get(indice).type.equals(\"id\")){\r\n if (!VerificaExistencia(tab.get(indice).id, escopo)) {\r\n pilhaVar.push(new Variaveis(tab.get(indice).id, \"\", escopo));\r\n }\r\n if(tab.get(indice).type.equals(\"id\")){\r\n indice++;\r\n Lista2();\r\n }else{\r\n System.out.println(\"Erro na linha \"+ tab.get(indice).linha + \" \" + tab.get(indice).id + \" esperado \"+ \"id\");\r\n\r\n }\r\n }\r\n }", "title": "" }, { "docid": "19aba8857f4e5c9cc6190a0c3b120d9c", "score": "0.61707026", "text": "public void agregarPredecesor(Vertice v) {\n predecesores.add(v);\n }", "title": "" }, { "docid": "37901b8e8b7d3e9183c077bf5ad589fb", "score": "0.6141391", "text": "public void insereFim(int v) {\n NoListaCircula novo = new NoListaCircula();\n novo.setInfo(v);\n if (prim == null) {\n prim = novo;\n novo.setProx(novo);\n } else {\n NoListaCircula aux = prim;\n while (aux.getProx() != prim) {\n aux = aux.getProx();\n }\n aux.setProx(novo);\n novo.setProx(prim);\n }\n }", "title": "" }, { "docid": "27cca6f0234c44b6fa96ecb41f41f11e", "score": "0.61298966", "text": "private void adicionaItemMontadoPedido(){\n\t\t\n\t}", "title": "" }, { "docid": "29001bb34b3901892300a1a4c5925a2e", "score": "0.61193776", "text": "protected void vincularPessoa(Pessoa pessoa)\n\t{\n\t\tthis.pessoas.add(pessoa);\n\t}", "title": "" }, { "docid": "69fd4ee962f110408c632de1b06b258f", "score": "0.61106455", "text": "private void GenerarVehiculos() {\n\n Archivo archilec = new Archivo();\n ListaVehiculos = archilec.leer();\n\n /*\n ListaVehiculos.add(new Vehiculos(\"Damian\", \"laf105\", \"auto\", \"05/07/2020\"));\n ListaVehiculos.add(new Vehiculos(\"Carlos\", \"pts005\", \"camioneta\", fecha()));\n ListaVehiculos.add(new Vehiculos(\"Leonel\", \"lpm111\", \"auto\", fecha()));\n ListaVehiculos.add(new Vehiculos(\"Roberto\", \"ppp222\", \"auto\", fecha()));\n ListaVehiculos.add(new Vehiculos(\"Miriam\", \"spl066\", \"moto\", fecha()));\n */\n }", "title": "" }, { "docid": "74f8528c599c72f63cd97f770183356c", "score": "0.6094968", "text": "public void addVare(Vare vare){\n Vare tmpVare = new Vare();\n menukort.add(vare);\n }", "title": "" }, { "docid": "ee0e2973b25ff8d24b3e488a7c65f7d4", "score": "0.6093496", "text": "public void agregar(ListaEstudiantes Lista){\n NodoEstudiante[] VectorLista = Lista.PasarArbol();\n for (int i = 0; i <VectorLista.length; i++){\n NodoArbol Nodo = new NodoArbol(VectorLista[i]);\n if (inicio == null){\n inicio = Nodo;\n } else {\n NodoArbol auxiliar = inicio;\n AgregarNodo(Nodo, auxiliar);\n }\n }\n \n }", "title": "" }, { "docid": "46d9064013a1662563af32841a1955fd", "score": "0.6031922", "text": "public void agregarCerveza(Cerveza cerveza) {\n if (listacerveza.size() == 0){\n listacerveza.add(cerveza);\n }else{\n boolean estaOnoesta = false;\n for (int i = 0; i < listacerveza.size(); i++){\n if (listacerveza.get(i).getNombre().equals(cerveza.getNombre())){\n estaOnoesta = true;\n }\n }\n if (!estaOnoesta){\n listacerveza.add(cerveza);\n }else{\n System.out.println(\"La birra ya existia\");\n }\n }\n }", "title": "" }, { "docid": "ac9aa3049d91b6f92ac1f39679b2eddf", "score": "0.6003807", "text": "void anadir(T elemento) {\n\t\tcola.add(elemento);\n\t}", "title": "" }, { "docid": "d316dc1351dc53759b1a9c040d719645", "score": "0.59736145", "text": "public void add(Nodo nuevo){\n if(isEmpty()){\n inicio=nuevo;\n fin=nuevo;\n }else{\n fin.setSiguiente(nuevo);//Hacia adelante\n nuevo.setPrevio(fin);//Hacia atras\n fin=nuevo;\n }\n }", "title": "" }, { "docid": "c40db5f6a7e23d6d9a6ca3ba4579389c", "score": "0.59380317", "text": "public void agregarNodo(Nodo nNodo){\n if (nIni == null) {//LISTA VACIA\n nIni = nNodo;\n nFin = nNodo;\n }else{\n nFin.setnSig(nNodo);//Que apunte al final\n nNodo.setnPrev(nFin);//que el que era antes fin ahora es el previo apubnte al ultimo\n nFin = nNodo; //el nfin es igual al nodo que pusimos\n }\n }", "title": "" }, { "docid": "f34d334052bc8fbf32d5cc1fc98773e1", "score": "0.59327877", "text": "private void llenar_Opciones(){\n\t\tOpciones.add(new Admin_crear_jugador()); \t\t\t\t\t// opcion (1) crear jugador\n\t\tOpciones.add(new Admin_Crear_JugadaCompleja());\t\t\t\t// opcion (2) crear jugada compleja\n\t\tOpciones.add(new Admin_ConsultarEstadis());\t\t\t\t\t// opcion (3) consultar estadisticas\n\t\tOpciones.add(new Admin_Consultar_ListaJugadores());\t\t\t// opcion (4) consultar lista jugadores\n\t\tOpciones.add(new Admin_ConsultarInfo());\t\t\t\t\t// opcion (5) consultar info jugadores\n\t\tOpciones.add(new Admin_ConsultarListaJugadasDeUnJugador());\t// opcion (6) consultar info jugada especifica\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "94dfb198879f4903694e1a22d3d10703", "score": "0.59234524", "text": "public void addListaUsuario_Sincroniza(Usuario item);", "title": "" }, { "docid": "95909c232c24bcec2032cefd3e2a8c24", "score": "0.59100395", "text": "public void setListaVoto(List<Voto> listaVoto) {\n\t\tthis.listaVoto = listaVoto;\n\t}", "title": "" }, { "docid": "b653a305aa6afa767c42c9006cd30631", "score": "0.5872432", "text": "public static void addPiz(){\n list.add(margherita);\n list.add(pepperoni);\n list.add(hawaiian);\n list.add(veggie);\n list.add(tonno);\n list.add(bbq);\n list.add(cheeses);\n list.add(funghi);\n list.add(mediterranea);\n list.add(spinaci);\n }", "title": "" }, { "docid": "1076b1176fca6d7359a42cb825f94e68", "score": "0.58717895", "text": "public void addChild(No v, Object o) {\n No novo = new No(v, o);\n v.addChild(novo);\n tamanho++;\n }", "title": "" }, { "docid": "e55b30cab674cf7a9195a500655898b5", "score": "0.58264023", "text": "public void adicionar(Paciente pac) {\n\t\tif (estaVazia()) {\n\t\t\tNoLista novo = new NoLista(pac);\n\t\t\tthis.primeiro = novo;\n\t\t\tthis.ultimo = novo;\n\t\t} else {\n\t\t\tint cont = 0;\n\t\t\tfor (NoLista aux = this.primeiro; aux != null; aux = aux.getProximo()) {\n\t\t\t\tint comp = pac.getNome().compareToIgnoreCase(aux.getPaciente().getNome());\n\t\t\t\tif (cont == 0) {\n\t\t\t\t\tif (comp < 0) {\n\t\t\t\t\t\tNoLista novo = new NoLista(aux.getAnterior(), pac, aux);\n\t\t\t\t\t\tif (aux.getAnterior() != null) {\n\t\t\t\t\t\t\taux.getAnterior().setProximo(novo);\n\t\t\t\t\t\t}\n\t\t\t\t\t\taux.setAnterior(novo);\n\t\t\t\t\t\tif (this.primeiro.equals(aux)) {\n\t\t\t\t\t\t\tthis.primeiro = novo;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcont++;\n\t\t\t\t\t} else if (comp > 0) {\n\n\t\t\t\t\t}\n\t\t\t\t\t// se forem iguais adiciona antes igual\n\t\t\t\t\telse {\n\t\t\t\t\t\tNoLista novo = new NoLista(aux.getAnterior(), pac, aux);\n\t\t\t\t\t\tthis.primeiro = novo;\n\t\t\t\t\t\tcont++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "294a901d12c396f0924d9587c38b22e1", "score": "0.58187664", "text": "public void addPUnitarios(EntregaVentanillaMasiva param){\r\n if (localPUnitarios == null){\r\n localPUnitarios = new EntregaVentanillaMasiva[]{};\r\n }\r\n\r\n \r\n //update the setting tracker\r\n localPUnitariosTracker = true;\r\n \r\n\r\n java.util.List list =\r\n org.apache.axis2.databinding.utils.ConverterUtil.toList(localPUnitarios);\r\n list.add(param);\r\n this.localPUnitarios =\r\n (EntregaVentanillaMasiva[])list.toArray(\r\n new EntregaVentanillaMasiva[list.size()]);\r\n\r\n }", "title": "" }, { "docid": "ec464abb31f7eeb3c8a5e4291cd68ec5", "score": "0.5815691", "text": "public void llenarTipoVista(){\r\n String vec[] = {\"Salon\", \"Profesor\"};\r\n List vista = new ArrayList();\r\n for(int i = 0; i < vec.length; i++){\r\n SelectItem si = new SelectItem();\r\n si.setValue(i+\"\");\r\n si.setLabel(vec[i]);\r\n vista.add(si);\r\n }\r\n sessionGestionarHorario.setListaTipoVista(vista);\r\n }", "title": "" }, { "docid": "f1c917e30c272483de5ce7fd95a3dacc", "score": "0.5812484", "text": "public void agregarObj(ComparendoDatos objeto)\n\t{\t\n\t\tlista.agregarObj(objeto);\n\t}", "title": "" }, { "docid": "ee2ba414290216e4b858d8d15c1f2d37", "score": "0.5811046", "text": "public static void addReserva(String nomeConsumidor, Reserva reserva) {\n\t\tif (reservas.containsKey(nomeConsumidor)) {\n\t\t\tList<Reserva> lista = reservas.get(nomeConsumidor);\n\t\t\tlista.add(reserva);\n\t\t\treservas.replace(nomeConsumidor, lista);\n\t\t} \n\t\telse {\n\t\t\tList<Reserva> newList = new ArrayList<>();\n\t\t\tnewList.add(reserva);\n\t\t\treservas.put(nomeConsumidor, newList);\n\t\t\t\n\t\t}\n\t}", "title": "" }, { "docid": "f7bbdce6f72d11ae9e4a4b08579ce0e0", "score": "0.58073014", "text": "protected void chekAndAdd(List<String> lista, Token reconocido){\r\n\t\tif(reconocido==null)return;\r\n\t\tString lex=reconocido.getLex();\r\n\t\tfor(String id: lista)\r\n\t\t\tif(id.compareTo(lex)==0)contextual(\"Dulicated param \"+lex);\r\n\t\tlista.add(lex);\r\n\t\tif(ts.existeFun(lex))\r\n\t\t\twrng.add(new Warning(\"Dulicated symbol \"+lex, current));\r\n\t}", "title": "" }, { "docid": "bb9412fcfb99011f07628a2f8e255277", "score": "0.5803501", "text": "@Test\n public void testAdicionarNovaLista() {\n System.out.println(\"adicionarNovaLista\");\n List<AtribuicaoFAE> listaAtribuiçao = new ArrayList();\n ListaAtribuicoes instance = new ListaAtribuicoes();\n instance.adicionarNovaLista(listaAtribuiçao);\n \n }", "title": "" }, { "docid": "2c2e575f8e348268c4c11df3ce062ffe", "score": "0.579757", "text": "public void addListaProdutoCliente_ReferenteA(ProdutoCliente item);", "title": "" }, { "docid": "9cd141a372e3690894eeb1e8e51ec0d6", "score": "0.5767278", "text": "private void listarJogadores() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "title": "" }, { "docid": "04688d080e19ce8ff42505353e373e1d", "score": "0.5759289", "text": "public void addInventario(Item item){\n inventario.put(item.getItemNome(),item);\n }", "title": "" }, { "docid": "4b1d262db8d24a7f42f256a9cf03cab2", "score": "0.5754406", "text": "@Override\r\n\tpublic void inserir(Dependente depVO) throws Exception {\n\t\t\r\n\t}", "title": "" }, { "docid": "c104f40e39ded2cef51e41f7fc798ff6", "score": "0.57456845", "text": "public void add_guariti(ArrayList<Persona> pg){ guariti.addAll(pg); }", "title": "" }, { "docid": "de0f4529fd9a91494fc5c975140c49ed", "score": "0.573823", "text": "public void addCiclo(int tipo, int rafaga){\r\n getListaCiclos().add(new Ciclo(tipo, rafaga));\r\n if(tipo == 0){\r\n tIrrupcion += rafaga;\r\n }\r\n}", "title": "" }, { "docid": "4187fee894206eb2f17ea8222a2adfed", "score": "0.5737876", "text": "public static boolean atualizarVendas () {\n \n //PADRAO\n //Pega as vendas do banco\n \n //Formata as vendas no formato de Objeto\n \n //Compara com as vendas ja existentes na lista\n \n //Atualiza as vendas\n //TERMINA PADRAO\n \n List<PreVenda> lPV = DBControl.getPreVendasAbertas();\n \n ldv = new ListaDeVendas();\n \n for (PreVenda pv: lPV) {\n ldv.addItem(pv.getCodigo(), pv.getUsuario().getNome(), String.valueOf(pv.getValorFinal()));\n }\n \n /*\n //PARA FINS DE TESTE\n //Cria lista de venda de TESTE\n //@todo, deve buscar do banco da Gouveia a lista de pré-vendas\n if (!criou) {\n Vendas v1 = ldv.addItem(153234, \"Vendedor 1\", \"Lente x, Óculos x\");\n Vendas v2 = ldv.addItem(516854, \"Vendedora 2\", \"Relógio Technos, Óculos Mormaii, Len....\");\n\n\n //Teste cria lista de TESTE para venda de Itens\n ItensVendidos ivL = new ItensVendidos(v1);\n ivL.addItem(124, \"Lente x\", 5f, Printer.QNT_INTEIRO, 2f, 2, 10.50f, Printer.DESC_DINHEIRO, 1f);\n ivL.addItem(123, \"Óculos\", 5f, Printer.QNT_INTEIRO, 1f, 2, 50f, Printer.DESC_DINHEIRO, 0f);\n iv.add(ivL);\n \n //Teste cria lista de TESTE para venda de Itens\n ivL = new ItensVendidos(v2);\n ivL.addItem(124, \"Lente 2\", 5f, Printer.QNT_INTEIRO, 2f, 2, 10.50f, Printer.DESC_DINHEIRO, 1f);\n ivL.addItem(123, \"Óculos Da Xuxa\", 5f, Printer.QNT_INTEIRO, 1f, 2, 50f, Printer.DESC_DINHEIRO, 0f);\n iv.add(ivL);\n \n criou = true;\n }*/\n return true;\n }", "title": "" }, { "docid": "d63d8e929d2cdda54aa7c686a5135e18", "score": "0.5725474", "text": "public void setListaTipoPoliza(List<TipoPoliza> listaTipoPoliza)\r\n/* 301: */ {\r\n/* 302:501 */ this.listaTipoPoliza = listaTipoPoliza;\r\n/* 303: */ }", "title": "" }, { "docid": "3c6daf4c12042a5ec8d33b69e6cba95a", "score": "0.5719904", "text": "public void setVias(ArrayList<String> vias) {\n this.vias = vias;\n }", "title": "" }, { "docid": "a13cf5b290a18ad8c99fb3b221ba879f", "score": "0.5717915", "text": "public void adicionar(Item i) {\n\t\t\titens.add(i);\n\t\t}", "title": "" }, { "docid": "8cbb876df2c0ec17a02e2221b7897655", "score": "0.57152873", "text": "TraductorDesdeLista(){\r\n\t\t\r\n\t\tvertices = new Vector<Integer>(10,1);\r\n\t\tlist = new Vector<Vector<Integer> >(10,1);\r\n\t\t\r\n\t}", "title": "" }, { "docid": "7d8f179d622e54ec6227542da93da9fe", "score": "0.5696592", "text": "public BolsaDeEmpleo( )\n {\n aspirantes = new ArrayList( );\n\n }", "title": "" }, { "docid": "2a57dfe2eb17e97a1eac26fa912fccd9", "score": "0.5683427", "text": "public void setListaContratoPoliza(List<ContratoPoliza> listaContratoPoliza)\r\n/* 331: */ {\r\n/* 332:548 */ this.listaContratoPoliza = listaContratoPoliza;\r\n/* 333: */ }", "title": "" }, { "docid": "ec9c0d45ba613030e5d02bcfba34b943", "score": "0.5677383", "text": "public void inserir(Object obj) {\n getColecao().add(obj);\n }", "title": "" }, { "docid": "19a6aec03b14ea552963549b586e26ee", "score": "0.56746686", "text": "public void addPCajas(EntregaVentanillaMasiva param){\r\n if (localPCajas == null){\r\n localPCajas = new EntregaVentanillaMasiva[]{};\r\n }\r\n\r\n \r\n //update the setting tracker\r\n localPCajasTracker = true;\r\n \r\n\r\n java.util.List list =\r\n org.apache.axis2.databinding.utils.ConverterUtil.toList(localPCajas);\r\n list.add(param);\r\n this.localPCajas =\r\n (EntregaVentanillaMasiva[])list.toArray(\r\n new EntregaVentanillaMasiva[list.size()]);\r\n\r\n }", "title": "" }, { "docid": "552d1cf3bd5ebacd8e756da5b68b83bf", "score": "0.5668165", "text": "static public void adicionarApoio(){\n\t\t\r\n\t\tint id = gApoio.arrApoio.size();\r\n\t\tString tipo,morada;\r\n\t\tUtente u;\r\n\t\tint hora,IDutente;\r\n\t\t\r\n\t\tSystem.out.printf(\"\\n Adicione o tipo de apoio: \");\r\n\t\ttipo = sc.next();\r\n\t\tSystem.out.printf(\"\\n Adicione a morada para o apoio: \");\r\n\t\tmorada = sc.next();\r\n\t\tSystem.out.printf(\"\\n Adicione o id do utente para o apoio: \");\r\n\t\tIDutente = sc.nextInt();\r\n\t\tSystem.out.printf(\"\\n Adicione a hora: \");\r\n\t\thora = sc.nextInt();\r\n\t\t\r\n\t\tu = buscaUtente(IDutente);\r\n\t\tgApoio.addApoio(id, tipo, u, hora, morada);\r\n\t}", "title": "" }, { "docid": "41557794e52fd77e6d50211f1d21c8e7", "score": "0.56556195", "text": "public void adicionar(Lista<Vertice> vertices) {\r\n linhas = new Vector();\r\n for (int i = 1; i <= vertices.getNelementos(); i++) {\r\n \t\tVertice v = vertices.obterPosição(i); // System.out.println(); }\r\n /* Percorre a lista copiando os dados para a tabela */\r\n /* Cria uma linha da tabela */\r\n Vector<Object> linha = new Vector<Object>();\r\n linha.add(v.getId());\r\n linha.add(v.getRuaHorizontal());\r\n linha.add(v.getRuaVertical());\r\n linha.add(v.getPeso());\r\n /* Adiciona a linha a tabela */\r\n linhas.add(linha);\r\n }\r\n /* Atualiza a tabela */\r\n fireTableDataChanged();\r\n }", "title": "" }, { "docid": "dd0ab5e672911f0a7d20cb203a64448f", "score": "0.56549793", "text": "public void inserisci (Tamagotchi Inserire)\n\t{\n\t\tspecie.add(Inserire);\n\t}", "title": "" }, { "docid": "e211eec097e3f31932b8d245d0d53d95", "score": "0.5652642", "text": "public Voo retornaVoo(int codVoo) { \n\t\tfor(int i = 0; i < listaVoo.size(); i++) {\n\t\t\tif(codVoo == listaVoo.get(i).getCodVoo())\n\t\t\t\treturn listaVoo.get(i);\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "c02c6a0b587e979966d10208480d295f", "score": "0.5639508", "text": "private void insereAberto(Estado e, int modoDaBusca) {\r\n if(modoDaBusca==1) {\r\n aberto.add(e);\r\n }\r\n if(modoDaBusca==2) {\r\n aberto.add(0, e);\r\n }\r\n }", "title": "" }, { "docid": "1dd6cda7cd0d0e15c1837e0f2d22e8ce", "score": "0.56340855", "text": "private void init() {\n for (int i = 0; i < Constants.CANTIDAD_PROVINCIAS; i++) {\r\n ciudadesList.add(i);\r\n }\r\n }", "title": "" }, { "docid": "81f35ab2215e3920147856fead62d648", "score": "0.5621747", "text": "public void addContato() {\r\n\t\tnextItem++;\r\n\t\tClienteContatos clienteContatos = new ClienteContatos();\r\n\t\tclienteContatos.setCliente(clienteEdicao);\r\n\t\tclienteContatos.setIdContato(nextItem);\r\n\t\tlistaClienteContatos.add(clienteContatos);\r\n\t}", "title": "" }, { "docid": "9c146cdf72c7f4360453da6b0c45aed0", "score": "0.5616103", "text": "public void dodajOsebo(Oseba o) {\n\t\t\n\t\t// doda kozarec na seznam\n\t\tosebe.add(o);\t\n\t\t\n\t\t// pripravi vrstico za vnos v tabelo\n\t\tObject[] vrstica = new Object[] {o.getStarost(), o.getVisina(), o.getTeza(), o.getIme()};\n\t\t\n\t\t// doda vrednosti v tabelo\n\t\taddRow(vrstica);\n\t}", "title": "" }, { "docid": "21caca5960172d77e20033ed593ac3e8", "score": "0.5611939", "text": "public void add(Parler item) {\n\t\t\n\t}", "title": "" }, { "docid": "d7a0c1817b4ce0e8a041135a7d090395", "score": "0.5609096", "text": "public ListaEve(Lista lista) {\n /* rimanda al costruttore della superclasse */\n super(lista);\n\n /* regola le variabili di istanza coi parametri */\n this.setLista(lista);\n }", "title": "" }, { "docid": "b58715d84ba11bf9ba59832a9596f87f", "score": "0.5607744", "text": "@Override\n public IList crear(){\n DoublyLinkedCircularList lista = new DoublyLinkedCircularList();\n this.addInvaders(7, lista);\n return lista;\n\n }", "title": "" }, { "docid": "69f9cbb26b84f7702b9c09d6b31e04f9", "score": "0.5601333", "text": "public void addTodo(ToDo pTodo){\n todoList.add(pTodo);\n }", "title": "" }, { "docid": "9b52ff124eecd8995123233348f3c1c3", "score": "0.559759", "text": "public String salvarVoo() {\n\t\tthis.trechoSelecionado.addVoo(this.voo);\n\t\tlog.info(\"Salvando voo #0\", this.voo);\n\t\tthis.voo = new Voo();\n\t\treturn \"/paginas/voos.xhtml\";\n\t}", "title": "" }, { "docid": "2e4b4cc5841ea8f95d6a645b1633d2fd", "score": "0.55922645", "text": "private void pre (TNode<E> v,PositionList<Position<E>> l) {\n\t\tl.addLast(v);\n\t\tfor(TNode<E> nodo : v.getHijos()) {\n\t\t\tpre(nodo,l);\n\t\t}\n\n\t}", "title": "" }, { "docid": "eeefb8d1c35332836f192a76c40ca425", "score": "0.55874395", "text": "public void zza(zzbuv zzbuv) {\n this.zzcse.add(zzbuv);\n }", "title": "" }, { "docid": "61a19a3821b49eb450bbb93f31a12b6a", "score": "0.5584772", "text": "@Override\r\n\tpublic void createVehiculo() {\n\t\t\r\n\t}", "title": "" }, { "docid": "824eb462790936f817efb70d903010d2", "score": "0.55814266", "text": "private Vector<Vehiculo> iniciarlizarVehiculos(){\n\t\tVector<Vehiculo> vehiculos = new Vector<Vehiculo>();\n\t\tfor(int i=0;i<placas.length;i++){\n\t\t\tVehiculo v = new Vehiculo(placas[i],marcas[i],years[i]);\n\t\t\tvehiculos.add(v);\n\t\t}\n\t\treturn vehiculos;\n\t\t\n\t}", "title": "" }, { "docid": "a0153497d0159bf02f5b9853bfbb5808", "score": "0.5581351", "text": "public void inicializaVetores(){\n for (int cont = 0; cont < 1; cont++) {\n foiClicado[cont] = false;\n Log.i(\"Foi clicado Fragment1: \" + cont + \" |\", String.valueOf(foiClicado[cont]));\n Log.i(\"Checar Botoes: \", String.valueOf(checarTodosBotões()));\n }\n }", "title": "" }, { "docid": "14e65793f8c1b615d37d938b64e09e7d", "score": "0.5571633", "text": "private void listaAux(NodoAVL subRaiz, Lista retorno){\n //recorremos en preorden\n if(subRaiz != null){\n listaAux(subRaiz.getIzquierdo(), retorno);\n retorno.insertar(subRaiz.getElemento(), retorno.longitud() + 1);\n listaAux(subRaiz.getDerecho(), retorno);\n }\n }", "title": "" }, { "docid": "02b4e1db71602ffa624b38a8cff6de57", "score": "0.55716217", "text": "private void pos (TNode<E> v,PositionList<Position<E>> l) {\n\t\tl.addLast(v);\n\t\tfor(TNode<E> nodo : v.getHijos()) {\n\t\t\tpre(nodo,l);\n\t\t}\n\n\t}", "title": "" }, { "docid": "c8363122286646dd510f75368ffc964a", "score": "0.5556731", "text": "public void addVenda() {\n\t\tboolean isOver = false;\n\t\twhile(!isOver){\n\t\t\ttry{\n\t\t\t\tscanner = new Scanner(System.in);\n\t\t\t\tout.println(\"digite o rg do cliente:\");\n\t\t\t\tString rg = scanner.nextLine();\n\t\t\t\tthis.cliente = retornaCliente(rg);\n\t\t\t\tout.println(\"digite o id do voo:\");\n\t\t\t\tint idVoo = scanner.nextInt();\n\t\t\t\tthis.voo = retornaVoo(idVoo);\n\n\t\t\t\tif(retornaAviao(this.voo.getAviao().getCodigo()).getQtdAssentos() > 0) {\n\t\t\t\t\tretornaAviao(this.voo.getAviao().getCodigo())\n\t\t\t\t\t.setQtdAssentos(retornaAviao(this.voo.getAviao().getCodigo()).getQtdAssentos()-1);\n\n\t\t\t\t\tif(verificaString(rg) && this.voo != null && this.cliente != null) {\n\t\t\t\t\t\tthis.venda = new Venda(this.cliente, this.voo);\n\t\t\t\t\t\tlistaVenda.add(this.venda);\t\n\t\t\t\t\t\tout.println(\"venda efetuada!\");\n\t\t\t\t\t\tisOver = true;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tout.println(\"Venda invalida, tente novamente.\");\n\t\t\t\t\t}\n\t\t\t\t}else {\n\t\t\t\t\tout.println(\"O aviao nao possue mais assentos disponiveis.\");\n\t\t\t\t}\n\t\t\t}catch(Exception e){\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "6506d2d1a6e451126e30ed29ecf05731", "score": "0.55554444", "text": "public void addVehicle(vehicle v) {\r\n\t\t//Empty\r\n\t\tif (head == null){\r\n\t\t\thead = tail = new vehicleNode(v);\r\n\t\t\tsize++;\r\n\t\t}else{\r\n\t\t\tvehicleNode cur = head;\r\n\t\t\twhile(cur.next != null){\r\n\t\t\t\tcur = cur.next;\r\n\r\n\t\t\t}\r\n\t\t\tcur.next = \tnew vehicleNode(v);\r\n\t\t\tcur.next.prev = cur;\r\n\t\t\ttail = cur.next;\r\n\t\t\tsize++;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "6be30614ec83dc28dc51cdf6f31b66ef", "score": "0.5552349", "text": "public void addVenda(List<ProdutoBean> v, int codCli){\n try {\n PreparedStatement pstm = con.prepareStatement(\"INSERT INTO venda(valorTotal, codigoCli) VALUES( ?, ?)\");\n for (ProdutoBean produtoBean : v) { \n pstm.setDouble(1, produtoBean.getPreco());\n pstm.setInt(2, codCli);\n }\n \n pstm.execute();\n pstm.close();\n } catch (SQLException e) {\n System.out.println(\"Erro:\" + e.getMessage());\n } \n }", "title": "" }, { "docid": "7deacc9a34a53b80f0e41e96aaac8fad", "score": "0.5542053", "text": "@Override\n\tpublic void adicionarArma(Personagem p) {\n\t\t\n\t}", "title": "" }, { "docid": "df3cc9354da9a452959b538fb9424c72", "score": "0.5538363", "text": "public void definirVecinos (Nodo origen, Nodo destino){\n this.nodeList.get(nodeList.indexOf(origen)).getVecinos().add(destino);\n }", "title": "" }, { "docid": "f1154a7611de26793499011bc5ec785c", "score": "0.55363435", "text": "public void add_asintomatici(ArrayList<Persona> ps){ //TEST\n asintomatici.addAll(ps);\n }", "title": "" }, { "docid": "5d6df85dc6c9b0aecad370ff89cad551", "score": "0.5535208", "text": "@Override\n\tpublic void inserirSorvete(Sorvete sorvete) {\n\t\t\n\t}", "title": "" }, { "docid": "3c92425f633c86011ded35451c692627", "score": "0.5534595", "text": "public void enfileira(Object x){\n //Verifica se a lista está cheia;\n if((this.tras + 1) %this.item.length == this.frente){\n System.out.println(\"Lista cheia\");\n expandir(x);\n }\n //Caso não esteja\n else{\n //'tras' sempre será a próxima casa depois do ultimo elemento;\n this.item[this.tras] = x;\n //'tras' incrementado aqui, sendo modulado caso precise dar uma volta \n // na lista;\n this.tras = (this.tras + 1) % this.item.length;\n this.totalElementos ++;\n }\n \n }", "title": "" }, { "docid": "cbbfbaec39c4d9b199d96a6421c74db7", "score": "0.5532668", "text": "public void crearProducto()\r\n/* 94: */ {\r\n/* 95:125 */ this.producto = new Producto();\r\n/* 96:126 */ this.producto.setIdOrganizacion(AppUtil.getOrganizacion().getId());\r\n/* 97:127 */ this.producto.setIdSucursal(AppUtil.getSucursal().getId());\r\n/* 98:128 */ this.producto.setListaUnidadConversion(new ArrayList());\r\n/* 99: */ }", "title": "" }, { "docid": "3eb7cc6d94c80be7f8a05083a5b4af19", "score": "0.55316615", "text": "public void imprimirLista();", "title": "" }, { "docid": "e3e058b4a5621c242880ee640e6ae586", "score": "0.5528261", "text": "@Override\n public void OnCondividiLista(Lista lista) {\n\n }", "title": "" }, { "docid": "dc14d9c2dda01d48ed333d30648a3766", "score": "0.5523325", "text": "public void agregarElementoAlInicio(int dato){\n\t\tNodo nodoNuevo = new Nodo(dato);\n\n\n\n\t\tif (nodoInicio == null) {\n\t\t\tnodoFin = nodoInicio = nodoNuevo;\t\t\n\t\t}else {\n\t\t\tnodoNuevo.setEnlace(nodoInicio);\n\t\t\tnodoInicio = nodoNuevo;\n\t\t}\n\n\t}", "title": "" }, { "docid": "01cf268b35b40fda2b80b716b98afc97", "score": "0.5516624", "text": "public Listado(String incluido){\n this.incluido = incluido;\n }", "title": "" }, { "docid": "0f10001e81edcf3f7bb38e34848eedc7", "score": "0.5514612", "text": "public void add(IVResource v) {\n\n }", "title": "" }, { "docid": "4f0c0d2d91d87231fc13c1eb19ee8553", "score": "0.5514408", "text": "public void addNew(ArrayList<Object> objList);", "title": "" }, { "docid": "7fdaa12ff69c1c5fa8acc8846c7803c7", "score": "0.55131096", "text": "void add(Object o);", "title": "" }, { "docid": "efe3370913eb365c8db4b492268ae09e", "score": "0.5509589", "text": "public Ordre(){\n this.indhold = new ArrayList<Vare>();\n id = idCounter +1;\n idCounter++;\n }", "title": "" }, { "docid": "2ebd80ba28499cc1ee0b699debd919d7", "score": "0.55087805", "text": "public <T> void gravar(T ob) {\n\t\tif(path.length() != 0) {\n\t\t\tlistaGravar.addAll(this.ler());\n\t\t}\n\t\t\n\t\tlistaGravar.add(ob);\n\t\t\n\t\t\n\t\tFileOutputStream escrever ;\n\t\tObjectOutputStream persistir;\n\t\ttry {\n\t\t\tescrever = new FileOutputStream(path,false);\n\t\t\tpersistir = new ObjectOutputStream(escrever);\n\t\t\tpersistir.writeObject(listaGravar);\n\t\t\tpersistir.flush();\n\t\t\tpersistir.close();\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\t// TODO: handle exception\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "9f773284ee88ba6b2b0e216aaa764bf2", "score": "0.550837", "text": "@Override\n Object radd(Object ov) throws NoConversion {\n if (ov instanceof List && !(ov instanceof PyTuple)) {\n return PyList.concat((List<?>)ov, list);\n } else {\n return Py.NotImplemented;\n }\n }", "title": "" }, { "docid": "281a018077b407bd0f6f0c04693e2f0d", "score": "0.55062145", "text": "public void addSecundario(java.lang.String vSecundario)\r\n throws java.lang.IndexOutOfBoundsException\r\n {\r\n _secundarioList.addElement(vSecundario);\r\n }", "title": "" }, { "docid": "58c411b8d3bbe2fd6469b8b2b02713b0", "score": "0.5503127", "text": "public abstract Vaso prepararEnEsteVaso(Vaso nuevoVaso);", "title": "" }, { "docid": "63bac20bb536e9e35cac424d38e91b02", "score": "0.55022484", "text": "public void insere(long posicao, Palavra val){\n\t\tpalavras.put(posicao,val);\n\t}", "title": "" }, { "docid": "bbaf5aecc89ef63976c9ab617a2f5ff7", "score": "0.54970825", "text": "public void add(Object value) {\n\t\t\n\t}", "title": "" }, { "docid": "f23a7d26bc7cf46b9a9699aeff53b034", "score": "0.5494789", "text": "public void adicionarItemCesta(Produto produto) {\n\t\titens.add(produto);\n\t}", "title": "" }, { "docid": "fd8a94b36dcfb3f8973e5f18c35a894d", "score": "0.5494329", "text": "public void addAviso(int idAviso) {\n avisos.add(idAviso);\n }", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "c0da6cb877488df99aae3a1ffe74397f", "score": "0.0", "text": "public static void main(String[] args) {\n\t\tint[] arr= {72,6,57,88,60,42,83,73,48,85};\n\t\theapSort(arr);\n\t\tSystem.out.println(Arrays.toString(arr));\n\t}", "title": "" } ]
[ { "docid": "c4efc9f9911178a27ec9261384d5f141", "score": "0.66616714", "text": "public void mo12644zk() {\n }", "title": "" }, { "docid": "81758c2988d9979c7d4b3fd5b3cce0e5", "score": "0.6566483", "text": "@Override\r\n\tpublic void pular() {\n\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": "80d20df1cc75d8fa96c12c49a757fc43", "score": "0.65278774", "text": "@Override\n\tprotected void getExras() {\n\t\t\n\t}", "title": "" }, { "docid": "5d259e9a9ed31ac29902b25db191acd1", "score": "0.6491197", "text": "@Override\n\tpublic void bewegen() {\n\t\t\n\t}", "title": "" }, { "docid": "d0a79718ff9c5863618b11860674ac5e", "score": "0.64641994", "text": "@Override\n\tpublic void comer() {\n\n\t}", "title": "" }, { "docid": "5697bde38a38a77f3a0bd238fb737c11", "score": "0.6364729", "text": "@Override\n public int getDochody() {\n return 0;\n }", "title": "" }, { "docid": "777efb33041da4779c6ec15b9d85097c", "score": "0.63003165", "text": "@Override\r\n\tpublic void attaque() {\n\t\t\r\n\t}", "title": "" }, { "docid": "85b25c664df01fd0b02e103c9bbc8372", "score": "0.62679124", "text": "@Override\r\n\tpublic void arreter() {\n\r\n\t}", "title": "" }, { "docid": "df89b968807fade64158ed6c7401bc7a", "score": "0.6251392", "text": "@Override\r\n\tpublic void afficher() {\n\t\t\r\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": "27e4479db2c37a2e77fe796119b66d4b", "score": "0.61936283", "text": "@Override\r\n\t\t\tpublic void adelante() {\n\r\n\t\t\t}", "title": "" }, { "docid": "a56ce606ea5cc945279ea9725eed5272", "score": "0.6159551", "text": "@Override\n\tpublic void alearga() {\n\t\t\n\t}", "title": "" }, { "docid": "07779d53803dc6875c03bdee2e1afeb5", "score": "0.6132161", "text": "@Override\n public void ordenar() {\n }", "title": "" }, { "docid": "b9936bc3db0ac97ae50d7643a27379b4", "score": "0.61193323", "text": "@Override\n\tpublic void intercourse() {\n\n\t}", "title": "" }, { "docid": "35e5940d13f06d1f0d6a21cf2739c70a", "score": "0.61117256", "text": "public function() {}", "title": "" }, { "docid": "5c8e848472fb111129ff96ea7e3eea3d", "score": "0.6059389", "text": "@Override\n public void pintar() {\n \n }", "title": "" }, { "docid": "ae645a2585d37e320a8854cbd4c60db8", "score": "0.603307", "text": "@Override\n\tpublic void afficher() {\n\n\t}", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.6025444", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "829bb71476cb87bb452950e0e97007e6", "score": "0.6019835", "text": "@Override\n\tprotected void dataAcquisition() {\n\t\t\n\t}", "title": "" }, { "docid": "23a210590a86717974bed53b741032bf", "score": "0.598976", "text": "@Override\n\tpublic void emi() {\n\t\t\n\t}", "title": "" }, { "docid": "23a210590a86717974bed53b741032bf", "score": "0.598976", "text": "@Override\n\tpublic void emi() {\n\t\t\n\t}", "title": "" }, { "docid": "23a210590a86717974bed53b741032bf", "score": "0.598976", "text": "@Override\n\tpublic void emi() {\n\t\t\n\t}", "title": "" }, { "docid": "23a210590a86717974bed53b741032bf", "score": "0.598976", "text": "@Override\n\tpublic void emi() {\n\t\t\n\t}", "title": "" }, { "docid": "8d2080edd6605bcfb742d32fd1a0091e", "score": "0.59731764", "text": "@Override\n\tpublic void ilerle() {\n\n\t}", "title": "" }, { "docid": "ee0f5f270c3e0eea9f37c3d1e42b1161", "score": "0.5962932", "text": "public void mo12736g() {\n }", "title": "" }, { "docid": "2aee513697daff4bfe2636e5d0fa9a30", "score": "0.5960253", "text": "@Override\n\tpublic void bewegeNachUnten() {\n\n\t}", "title": "" }, { "docid": "ced4b47c7129b2184e6a77b2a8798fd1", "score": "0.5946297", "text": "@Override\n public void annuler() {\n\n }", "title": "" }, { "docid": "cb1c09afbbe0ad234f211aa36d586f4e", "score": "0.59103566", "text": "@Override\r\n\t\tprotected void update() {\n\t\t\t\r\n\t\t}", "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": "15c9cae08ae101b3a04f9ff3b519ae04", "score": "0.5882791", "text": "public void mo8316a() {\n }", "title": "" }, { "docid": "b7288a7694313b8a4d39355a49521e40", "score": "0.5882", "text": "@Override\r\n\tpublic void atras() {\n\t\tsuper.atras();\r\n\t}", "title": "" }, { "docid": "4077955e82cce22d988577ca0a7978fc", "score": "0.5878152", "text": "@Override\n\tpublic void dormir() {\n\n\t}", "title": "" }, { "docid": "833ba2f1d8822ebbb0dddd05020c0c08", "score": "0.58703625", "text": "@Override\n\tpublic void attaque() {\n\t}", "title": "" }, { "docid": "3e9c4de332bfb94422f785054fa63ada", "score": "0.58645976", "text": "@Override\r\n\tpublic void limpiar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "6b0e2e41d411b76c357d16b3eb3a159c", "score": "0.58598334", "text": "protected abstract void entschuldigen();", "title": "" }, { "docid": "4967494f628119c8d3a4740e09278944", "score": "0.5858707", "text": "@Override\r\n\tprotected void initData() {\n\r\n\t}", "title": "" }, { "docid": "8e75ffe6faa994ed57c6ffb8b56296fe", "score": "0.5852322", "text": "public void xiuproof() {\n\t\t\n\t}", "title": "" }, { "docid": "efaf1962840c7f5346e81dc22773c34b", "score": "0.5850078", "text": "@Override\n protected void init() {\n\n }", "title": "" }, { "docid": "39da14b1f6e1adac9c0b748811e78b68", "score": "0.58369607", "text": "public void mo12645zl() {\n }", "title": "" }, { "docid": "d87000313f7b5075ec45a2b0ee7df323", "score": "0.58221865", "text": "@Override\r\n\tprotected void location() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b7e98de900f4657495e91d5ff4bd6bd6", "score": "0.58140445", "text": "@Override\r\n\tpublic void init(){\r\n\t}", "title": "" }, { "docid": "4e86f604c407a96c75671f663064c24b", "score": "0.580598", "text": "public void mo8319b() {\n }", "title": "" }, { "docid": "cc32bfffe770f8a5c5cf88e6af231ff8", "score": "0.5799415", "text": "@Override\n\tpublic void one() {\n\t\t\n\t}", "title": "" }, { "docid": "b17089ec7f3b873adc1ebff906be9241", "score": "0.57941025", "text": "@Override\r\n\tpublic void carregar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "5783648f118108797828ca2085091ef9", "score": "0.57931334", "text": "@Override\n protected void initialize() {\n \n }", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5791594", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\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": "b429c7e890f65a814ea31e6014003667", "score": "0.5782731", "text": "@Override\n public int describeContents(){\n return 0;\n }", "title": "" }, { "docid": "680a0d25967a28e3b7a6643d55703105", "score": "0.57812274", "text": "public void contaaordem() {\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": "5e6804b1ba880a8cc8a98006ca4ba35b", "score": "0.576386", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57589173", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "b901583faeb614d4d67271470c31d36c", "score": "0.5750588", "text": "@Override\n\tpublic void sare() {\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": "92af0f4d75822a6723aebd9fcc92fafb", "score": "0.574232", "text": "@Override\n protected void initData() {\n \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": "94635a88abd93d3624c032aa22ccc337", "score": "0.5731695", "text": "@Override\n\t\t\tpublic void refresh() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "fa729e301b181004ac22fa6a16b19c1b", "score": "0.57202786", "text": "@Override\n public void init()\n {\n }", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5718783", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "0b812af084ac0cb033ab904c49294fed", "score": "0.5685316", "text": "public void mo25703a() {\n }", "title": "" }, { "docid": "9f7ae565c79188ee275e5778abe03250", "score": "0.5684768", "text": "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "title": "" }, { "docid": "dc4ad5d6a5fcdc294379036f367a401b", "score": "0.5684058", "text": "@Override\n public void frenar() {\n\n }", "title": "" }, { "docid": "c0f925eed1b58e6d19fd99e8a3e26d34", "score": "0.5677166", "text": "@Override\r\n public boolean sallittu() {\r\n return false;\r\n }", "title": "" }, { "docid": "322e19fcfb5cfbd6ffce194d7e04df05", "score": "0.5665703", "text": "@Override\n\t\t\tprotected void reInitial() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "fdeab6ca2d3dd91b347a8cc2f5c862c2", "score": "0.56656164", "text": "private static void generateNew() {\n\t\t\t\t\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": "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": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "18c7036dd108c40b7a27469d8b92687c", "score": "0.564357", "text": "@Override\n\tpublic void onLoadComplete() {\n\t\t\n\t}", "title": "" }, { "docid": "18c7036dd108c40b7a27469d8b92687c", "score": "0.564357", "text": "@Override\n\tpublic void onLoadComplete() {\n\t\t\n\t}", "title": "" }, { "docid": "d6d75432f50fcf22c3834bdfb660cd26", "score": "0.5641307", "text": "@Override\n public void use(){\n \n }", "title": "" }, { "docid": "9bcd15a2298e73719d7c7326027b093b", "score": "0.563811", "text": "@Override\n\tprotected void getData() {\n\n\t}", "title": "" }, { "docid": "c54df76b32c9ed90efddc6fd149a38c7", "score": "0.5628332", "text": "@Override\n protected void init() {\n }", "title": "" }, { "docid": "91e98bbf9cac4e38e126d6b5c2a2ecac", "score": "0.5624502", "text": "@Override\n\tprotected void setupData() {\n\n\t}", "title": "" }, { "docid": "e41e83e59c632c7e6180786a0238f944", "score": "0.5618833", "text": "@Override\r\n\tpublic void cry() {\n\t\t\r\n\t}", "title": "" }, { "docid": "290b69adc6f043c0f6d04c952f144b7d", "score": "0.56084245", "text": "@Override\n\tpublic void ImplementRule()\n\t{\n\n\t}", "title": "" }, { "docid": "b78de853138b4d1a9183420c6cd735cc", "score": "0.5607134", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "b78de853138b4d1a9183420c6cd735cc", "score": "0.5607134", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "9fa93751aa3acc716354baf4c9c4b1ff", "score": "0.5604908", "text": "@Override\n\tpublic void NoOftems() {\n\n\t}", "title": "" }, { "docid": "dce285146917b7d4be86c4f1ade0646e", "score": "0.5600153", "text": "@Override\r\n protected void onLoad() {}", "title": "" }, { "docid": "2698e2df29a24b9998ee11e61625c8a0", "score": "0.5599527", "text": "private void method() {\n\t\t\t}", "title": "" }, { "docid": "3767348a298bdbc42a516908dfac0022", "score": "0.5598486", "text": "public final void mo34050B() {\n }", "title": "" }, { "docid": "8436022dbd33301a64633011031cfa7b", "score": "0.55980015", "text": "protected void filtrarHoyDDPF() {\n\t\t\r\n\t}", "title": "" } ]
6e6ac07b696369918f7d9c32afd6263a
Write code here that turns the phrase above into concrete actions
[ { "docid": "59976ae1926c4d27901a169ecdc7e86e", "score": "0.0", "text": "@When(\"I call row 4 and column {float} data\")\n public void i_call_row_and_column_data(float num2) {\n }", "title": "" } ]
[ { "docid": "fb0cda63b6dd91e2109dfbe08043bfee", "score": "0.7189285", "text": "public void action(String text);", "title": "" }, { "docid": "b7107a4c04b84518c13594ed36ede91d", "score": "0.69798017", "text": "@Override\n\tpublic void action(String action) {\n\t\t\n\t}", "title": "" }, { "docid": "23fcb4754000d9d058795cbf9407da1f", "score": "0.64343286", "text": "public abstract String action();", "title": "" }, { "docid": "c777d63a0c8c1484a08a57ee84e8e672", "score": "0.63074696", "text": "@Override\n public void action() {\n }", "title": "" }, { "docid": "14ed8c7c1c7650d8055140f3b6483ba8", "score": "0.63061994", "text": "String performActions(String value){\n String result = value;\n //replace\n //TODO processing of ':'\n if(action.toUpperCase().startsWith(REPLACE_ACTION_LABEL)){\n String[] parts = action.split(PARAMETER_SPLITER);\n return result.replace(parts[1], parts[2]);\n }\n //trim\n if(action.toUpperCase().startsWith(TRIM_ACTION_LABEL)){\n return result.trim();\n }\n //uppercase\n if(action.toUpperCase().startsWith(UP_ACTION_LABEL)){\n return result.toUpperCase();\n }\n //lowercase\n if(action.toUpperCase().startsWith(LOW_ACTION_LABEL)){\n return result.toLowerCase();\n }\n //remove\n if(action.toUpperCase().startsWith(REMOVE_ACTION_LABEL)){\n String[] parts = action.split(PARAMETER_SPLITER);\n return result.replace(parts[1], \"\");\n }\n\n return result;\n }", "title": "" }, { "docid": "5e903de44155a9a5cfd28e421dee41a0", "score": "0.6303613", "text": "@Override\r\n\tpublic String perform() {\n\t\treturn \"milk and cheese\";\r\n\t}", "title": "" }, { "docid": "b651d02a7370937b9c4981f0c41986ee", "score": "0.62994814", "text": "@Override\n protected void action() {\n }", "title": "" }, { "docid": "1e267ed2878e8a6f03ee445999bd9f94", "score": "0.6132444", "text": "public void action(String truc) {\r\n System.out.println(\"***\" + truc + \"***\");\r\n }", "title": "" }, { "docid": "ca31fb3cc937e30ac435a114e2bd9592", "score": "0.60841995", "text": "public void doAction(int action) {\n // replace with your own code\n }", "title": "" }, { "docid": "ee8270e30e2ffa2596aebfaf011a8139", "score": "0.6035597", "text": "public abstract void action();", "title": "" }, { "docid": "8b0fe29416f955fc49b300c6c0e9db8c", "score": "0.6018119", "text": "public void action();", "title": "" }, { "docid": "06947707d6dc09cbe7eba9b70edfd4a6", "score": "0.6003438", "text": "public void doAction() {\r\n\t}", "title": "" }, { "docid": "c4519d24694b38927b49264c71ebbf71", "score": "0.5971681", "text": "protected abstract String printAction();", "title": "" }, { "docid": "d38b90f294e82fb820e2fef567c35d90", "score": "0.5934258", "text": "@Override\n public void execute(String actionName, String npcid) {\n\n }", "title": "" }, { "docid": "e49ef6df2788da130e84da9caa19ca01", "score": "0.59319097", "text": "void specialAction(){\n\t\tSpecialAction specialAction = new SpecialAction(currentPlayer,gameModel,this);\n\t\thandlers.get(currentPlayer).send(currentPlayer.displayLeader());\n\t\tString proceed;\n\t\tdo{\n\t\t\thandlers.get(currentPlayer).send(\"Which special action do you want to undertake?[discard/play/activate]\");\n\t\t\tString action = handlers.get(currentPlayer).receive();\n\t\t\tspecialAction.setActionType(action);\n\t\t\thandlers.get(currentPlayer).send(\"On which of your LeaderCard would you like to undertake this action?[enter LeaderCard name]\");\n\t\t\tString name = handlers.get(currentPlayer).receive();\n\t\t\tspecialAction.setLeaderName(name);\n\t\t\tthis.notifyObserver(specialAction);\n\t\t\thandlers.get(currentPlayer).send(\"Do you want to do another special action?[y/n]\");\n\t\t\tproceed = handlers.get(currentPlayer).receive();\n\t\t}while(!(\"n\").equalsIgnoreCase(proceed));\n\t}", "title": "" }, { "docid": "021bd63d6655850741795a82cee0b47b", "score": "0.59289086", "text": "public void act() \n {\n // Add your action code here.\n \n }", "title": "" }, { "docid": "2fe56536f747a271d21e26d3de76cd83", "score": "0.5926192", "text": "public void defineActions() {\n\n }", "title": "" }, { "docid": "d81621a89e65b83831673ea2a0b75af2", "score": "0.5918054", "text": "private String getActionDescription(KeywordAction action) {\n \t\tStringBuilder ret = new StringBuilder(\"\");\n \t\tswitch (action.getType()) {\n \t\t\tcase FORWARD:\n \t\t\t\tret.append(InternationalisationUtils.getI18NString(ACTION_FORWARD));\n \t\t\t\tret.append(\": \\\"\");\n \t\t\t\tret.append(KeywordAction.KeywordUtils.getForwardText(action, DEMO_SENDER, DEMO_SENDER.getPhoneNumber(), action.getKeyword().getKeyword() + DEMO_MESSAGE_TEXT_INCOMING));\n \t\t\t\tret.append(\"\\\" \");\n \t\t\t\tret.append(InternationalisationUtils.getI18NString(COMMON_TO_GROUP));\n \t\t\t\tret.append(\": \\\"\");\n \t\t\t\tret.append(action.getGroup().getName());\n \t\t\t\tret.append(\"\\\"\");\n \t\t\t\tbreak;\n \t\t\tcase JOIN:\n \t\t\t\tret.append(InternationalisationUtils.getI18NString(COMMON_JOIN));\n \t\t\t\tret.append(\": \");\n \t\t\t\tret.append(action.getGroup().getName());\n \t\t\t\tbreak;\n \t\t\tcase LEAVE:\n \t\t\t\tret.append(InternationalisationUtils.getI18NString(COMMON_LEAVE));\n \t\t\t\tret.append(\": \");\n \t\t\t\tret.append(action.getGroup().getName());\n \t\t\t\tbreak;\n \t\t\tcase REPLY:\n \t\t\t\tret.append(InternationalisationUtils.getI18NString(COMMON_REPLY));\n \t\t\t\tret.append(\": \");\n \t\t\t\tret.append(KeywordAction.KeywordUtils.getReplyText(action, DEMO_SENDER, DEMO_SENDER.getPhoneNumber(), DEMO_MESSAGE_TEXT_INCOMING, DEMO_MESSAGE_KEYWORD));\n \t\t\t\tbreak;\n \t\t\tcase EXTERNAL_CMD:\n \t\t\t\tif (action.getExternalCommandType() == KeywordAction.ExternalCommandType.HTTP_REQUEST) {\n \t\t\t\t\tret.append(InternationalisationUtils.getI18NString(COMMON_HTTP_REQUEST));\n \t\t\t\t} else {\n \t\t\t\t\tret.append(InternationalisationUtils.getI18NString(COMMON_EXTERNAL_COMMAND));\n \t\t\t\t}\n \t\t\t\tbreak;\n \t\t\tcase EMAIL:\n \t\t\t\tret.append(InternationalisationUtils.getI18NString(COMMON_E_MAIL));\n \t\t\t\tret.append(\": \");\n \t\t\t\tret.append(KeywordAction.KeywordUtils.getReplyText(action, DEMO_SENDER, DEMO_SENDER.getPhoneNumber(), action.getKeyword().getKeyword() + DEMO_MESSAGE_TEXT_INCOMING, DEMO_MESSAGE_KEYWORD));\n \t\t\t\tbreak;\n \t\t}\n \t\treturn ret.toString();\n \t}", "title": "" }, { "docid": "318cc43fa4c19926159b6146e5345905", "score": "0.5908791", "text": "@Override\n\tpublic void act() {\n\t\t\n\t}", "title": "" }, { "docid": "e30074ae6ec67c75cbc8707d97401751", "score": "0.5908554", "text": "public interface Action {\n public String move();\n\n public String talk();\n}", "title": "" }, { "docid": "eabe8ce386af9a041696d097ffbb7b16", "score": "0.5904305", "text": "public interface Action {\n\n public void execute(Map<String, Object> contextMap,String description);\n\n}", "title": "" }, { "docid": "004a62bda3e50e2aeebc1965248d8836", "score": "0.5889748", "text": "@Override\n\tpublic void action() {\n\t\tSystem.out.println(\"you hit I bark.....\");\n\t\t\n\t}", "title": "" }, { "docid": "4d911758cd6e7f368e21dfa58e008097", "score": "0.5880544", "text": "@Override\n\tpublic void act() {\n\t\tSystem.out.println(\"Where are you Romeo?\");\n\n\t}", "title": "" }, { "docid": "3619978c99286daf313ec83e2a4df110", "score": "0.5878825", "text": "public interface Action<T, R> extends Named, Described {\r\n\r\n String ACTION_TARGET = \"action\";\r\n\r\n DataNode<R> run(Context context, DataNode<? extends T> data, Meta actionMeta);\r\n\r\n}", "title": "" }, { "docid": "2556a3176f745116547f93cd1d9043f8", "score": "0.5876561", "text": "@Override\r\n\tpublic void act() {\n\t}", "title": "" }, { "docid": "0c5278cbd46671a170d03f48b1cb2241", "score": "0.58608574", "text": "public void act(){}", "title": "" }, { "docid": "1f6bfa377090a965c49bf8228cf4f130", "score": "0.5859691", "text": "public String performAction(String actionMessage){\n\n \tString delims = \"[ ]+\";\n\t\tString[] tokens = actionMessage.split(delims);\n\t\tString answer = \"\";\n\n\t\ttry{\n\n\t\t\tif(tokens[0].equals(\"addExchange\")){\n\t\t\t/*\n\t\t\t\tThis should create a new Exchange b, and \n\t\t\t\tadd it to the child list of Exchange a. \n\t\t\t\tIf node a has n children, b should be its\n\t\t\t\t(n + 1)th child. If there is no Exchange \n\t\t\t\twith identifier a, then throw an Exception.\n\t\t\t*/\n\t\t\t\tint a = Integer.parseInt(tokens[1]);\n\t\t\t\tint b = Integer.parseInt(tokens[2]);\n\n\t\t\t\tExchange X = findExchange(a); \n\t\t\t\tExchange Y = new Exchange(b);\n\t\t\t\tX.addChild(Y);\n\t\t\t}\n\n\t\t\telse if(tokens[0].equals(\"switchOnMobile\")){\n\t\t\t/*\t\n\t\t\t\tThis should switch ON the mobile phone a at\n\t\t\t\tExchange b. If the mobile did not exist earlier,\n\t\t\t\tcreate a new mobile phone with identifier a. \n\t\t\t\tIf there is no Exchange with an identifier b,\n\t\t\t\tthrow an exception \"Error- No exchange with \n\t\t\t\tidentifier b\".\n\t\t\t*/\n\t\t\t\tint a = Integer.parseInt(tokens[1]);\n\t\t\t\tint b = Integer.parseInt(tokens[2]);\n\n\t\t\t\tExchange containerExchange = findExchange(b);\n\t\t\t\tMobilePhone mobile = null;\n\t\t\t\tboolean flag = false;\n\t\t\t\t\n\t\t\t\ttry{\n\t\t\t\t\tmobile = root.searchPhone(a);\n\t\t\t\t}\n\t\t\t\tcatch(Exception e){\n\t\t\t\t\t//System.out.println(e.getMessage());\n\t\t\t\t\tmobile = new MobilePhone(a);\n\t\t\t\t}\n\n\t\t\t\tif (mobile.status()){\n\t\t\t\t\tthrow new MobilePhoneAlreadyOnException(\"Error- Mobile phone with identifier \"+a+\" is already on\");\n\t\t\t\t}\n\n\t\t\t\tswitchOn(mobile,containerExchange);\n\n\t\t\t}\n\n\t\t\telse if(tokens[0].equals(\"switchOffMobile\")){\n\t\t\t/*\t\n\t\t\t\tThis should switch OFF the mobile phone a. If\n\t\t\t\tthere is no mobile phone with identifier a, \n\t\t\t\tthen throw an Exception \"Error- No mobile \n\t\t\t\tphone with identifier a\".\n\t\t\t*/\n\t\t\t\tint a = Integer.parseInt(tokens[1]);\n\n\t\t\t\tMobilePhone mobile = root.searchPhone(a);\n\t\t switchOff(mobile);\n\t\t\t}\n\n\t\t\telse if(tokens[0].equals(\"queryNthChild\")){\n\t\t\t/*\n\t\t\t\tThis should print the identifier of the Exchange\n\t\t\t\twhich is the (b)th child of Exchange a. If b is \n\t\t\t\tinvalid number throw exception \"Error - No b \n\t\t\t\tchild of Exchange a\"\n\t\t\t*/\n\t\t\t\tint a = Integer.parseInt(tokens[1]);\n\t\t int b = Integer.parseInt(tokens[2]);\n\n\t\t Exchange targetExchange = findExchange(a);\n\t\t answer += actionMessage+\": \"+Integer.toString(targetExchange.child(b).getUniqueId());\n\t\t\t}\n\n\t\t\telse if(tokens[0].equals(\"queryMobilePhoneSet\")){\n\t\t\t/*\n\t\t\t\tThis should print the identifier of all the mobile\n\t\t\t\tphones which are part of the resident set of the \n\t\t\t\tExchange with identifier a.\n\t\t\t*/\n\t\t\t\tint a = Integer.parseInt(tokens[1]);\n\n\t\t Exchange targetExchange = findExchange(a);\n\t\t String requiredSet = targetExchange.residentSet().toString();\n\t\t answer += actionMessage+\": \"+ requiredSet;\t\t\n\t\t\t}\n\n\t\t\telse if(tokens[0].equals(\"queryFindPhone\")){\n\t\t\t/*\n\t\t\t\tThis should print the identifier of the exchange returned\n\t\t\t\tby the findPhone(MobilePhone m) method. Here, m represents\n\t\t\t\tthe mobile phone whose identifier is a.\n\t\t\t*/\n\t\t\t\tint a = Integer.parseInt(tokens[1]);\n\n\t\t\t\tMobilePhone m = root.searchPhone(a);\n\t\t\t\tExchange targetExchange = findPhone(m);\n\t\t\t\tString requiredExchangeId = targetExchange.toString();\n\t\t\t\tanswer += actionMessage+\": \"+ requiredExchangeId;\n\t\t\t}\n\n\t\t\telse if(tokens[0].equals(\"queryLowestRouter\")){\n\t\t\t/*\t\t\t\t\n\t\t\t\tThis should print the identifier of the exchange returned\n\t\t\t\tby the lowestRouter(Exchange e1, Exchange e2) method.\n\t\t\t\tHere, e1 and e2 represent exchanges with identifier a and b respectively.\n\t\t\t*/\n\t\t\t\tint a = Integer.parseInt(tokens[1]);\n\t\t\t\tint b = Integer.parseInt(tokens[2]);\n\n\t\t\t\tExchange e1 = findExchange(a);\n\t\t\t\tExchange e2 = findExchange(b);\n\t\t\t\tExchange targetExchange = lowestRouter(e1, e2);\n\t\t\t\tString requiredExchangeId = targetExchange.toString();\n\t\t\t\tanswer += actionMessage+\": \"+ requiredExchangeId;\n\t\t\t}\n\n\t\t\telse if(tokens[0].equals(\"queryFindCallPath\")){\n\t\t\t/*\n\t\t\t\tThis should print the list returned by the \n\t\t\t\trouteCall(MobilePhone m1, MobilePhone m2) method. \n\t\t\t\tHere, m1 and m2 represent mobile phones with identifier \n\t\t\t\ta and b respectively. Successive entries in the list \n\t\t\t\tshould be separated by a comma.\n\t\t\t*/\n\n\t\t\t\tint a = Integer.parseInt(tokens[1]);\n\t\t\t\tint b = Integer.parseInt(tokens[2]);\n\n\t\t\t\tMobilePhone m1 = root.searchPhone(a);\n MobilePhone m2 = root.searchPhone(b);\n String requiredLinkedList = routeCall(m1,m2).toString();\n answer += actionMessage+\": \"+ requiredLinkedList;\n\n\t\t\t}\n\n\t\t\telse if(tokens[0].equals(\"movePhone\")){\n\t\t\t/*\n\t\t\t\tThis action should set the level 0 area exchange of the\n\t\t\t\tmobile phone with identifier a to exchange with identifier b.\n\t\t\t\tThrow exception if mobile a is not available, or exchange b does not exist.\n\t\t\t*/\n\t\t\t\tint a = Integer.parseInt(tokens[1]);\n\t\t\t\tint b = Integer.parseInt(tokens[2]);\n\n\t\t\t\tMobilePhone m = root.searchPhone(a);\n\t\t\t\tExchange e = findExchange(b);\n\t\t\t\tmovePhone( m, e);\n\n\t\t\t}\t\t\t\n\n\t\t}\n\t\tcatch(Exception e){\n\t\t\tanswer +=actionMessage+\": \"+e;\n\t\t}\n\n\treturn answer;\n\n }", "title": "" }, { "docid": "2c0ac9604a70f3a32978571e2da3fd00", "score": "0.5845676", "text": "@Override\n\tpublic void action() {\n\t\tSystem.out.println(\"you beat I bite......\");\n\t\t\n\t}", "title": "" }, { "docid": "6fbadba941558d06d1cc3c6ca562c2bc", "score": "0.5812332", "text": "@Override\r\n\tpublic void gregariousAction() {\n\r\n\t}", "title": "" }, { "docid": "c4dab3e4cf3936c24edabb17e5fe63ba", "score": "0.5810739", "text": "public void commandAction(Command command, Displayable displayable) {//GEN-END:|7-commandAction|0|7-preCommandAction\n // write pre-action user code here\n if (displayable == about) {//GEN-BEGIN:|7-commandAction|1|439-preAction\n if (command == itemCommand27) {//GEN-END:|7-commandAction|1|439-preAction\n // write pre-action user code here\n switchToPreviousDisplayable();//GEN-LINE:|7-commandAction|2|439-postAction\n // write post-action user code here\n } else if (command == itemCommand28) {//GEN-LINE:|7-commandAction|3|442-preAction\n // write pre-action user code here\n//GEN-LINE:|7-commandAction|4|442-postAction\n // write post-action user code here\n }//GEN-BEGIN:|7-commandAction|5|155-preAction\n } else if (displayable == afirmacions4) {\n if (command == backCommand3) {//GEN-END:|7-commandAction|5|155-preAction\n // write pre-action user code here\n switchToPreviousDisplayable();//GEN-LINE:|7-commandAction|6|155-postAction\n // write post-action user code here\n } else if (command == itemCommand4) {//GEN-LINE:|7-commandAction|7|323-preAction\n // write pre-action user code here\n playChapter4();//GEN-LINE:|7-commandAction|8|323-postAction\n // write post-action user code here\n }//GEN-BEGIN:|7-commandAction|9|136-preAction\n } else if (displayable == alabast1) {\n if (command == backCommand) {//GEN-END:|7-commandAction|9|136-preAction\n // write pre-action user code here\n switchToPreviousDisplayable();//GEN-LINE:|7-commandAction|10|136-postAction\n // write post-action user code here\n } else if (command == itemCommand1) {//GEN-LINE:|7-commandAction|11|297-preAction\n // write pre-action user code here\n playChapter1();//GEN-LINE:|7-commandAction|12|297-postAction\n // write post-action user code here\n }//GEN-BEGIN:|7-commandAction|13|67-preAction\n } else if (displayable == alert) {\n if (command == cancelCommand) {//GEN-END:|7-commandAction|13|67-preAction\n // write pre-action user code here\n switchToPreviousDisplayable();//GEN-LINE:|7-commandAction|14|67-postAction\n // write post-action user code here\n } else if (command == okCommand) {//GEN-LINE:|7-commandAction|15|65-preAction\n // write pre-action user code here\n exitMIDlet();//GEN-LINE:|7-commandAction|16|65-postAction\n // write post-action user code here\n }//GEN-BEGIN:|7-commandAction|17|203-preAction\n } else if (displayable == aniversaris13) {\n if (command == backCommand11) {//GEN-END:|7-commandAction|17|203-preAction\n // write pre-action user code here\n switchToPreviousDisplayable();//GEN-LINE:|7-commandAction|18|203-postAction\n // write post-action user code here\n } else if (command == itemCommand13) {//GEN-LINE:|7-commandAction|19|377-preAction\n // write pre-action user code here\n playChapter13();//GEN-LINE:|7-commandAction|20|377-postAction\n // write post-action user code here\n }//GEN-BEGIN:|7-commandAction|21|217-preAction\n } else if (displayable == avisos15) {\n if (command == backCommand13) {//GEN-END:|7-commandAction|21|217-preAction\n // write pre-action user code here\n switchToPreviousDisplayable();//GEN-LINE:|7-commandAction|22|217-postAction\n // write post-action user code here\n }//GEN-BEGIN:|7-commandAction|23|183-preAction\n } else if (displayable == colors9) {\n if (command == backCommand8) {//GEN-END:|7-commandAction|23|183-preAction\n // write pre-action user code here\n switchToPreviousDisplayable();//GEN-LINE:|7-commandAction|24|183-postAction\n // write post-action user code here\n } else if (command == itemCommand9) {//GEN-LINE:|7-commandAction|25|350-preAction\n // write pre-action user code here\n playChapter9();//GEN-LINE:|7-commandAction|26|350-postAction\n // write post-action user code here\n }//GEN-BEGIN:|7-commandAction|27|255-preAction\n } else if (displayable == dias12) {\n if (command == backCommand19) {//GEN-END:|7-commandAction|27|255-preAction\n // write pre-action user code here\n switchToPreviousDisplayable();//GEN-LINE:|7-commandAction|28|255-postAction\n // write post-action user code here\n } else if (command == itemCommand12) {//GEN-LINE:|7-commandAction|29|370-preAction\n // write pre-action user code here\n playChapter12();//GEN-LINE:|7-commandAction|30|370-postAction\n // write post-action user code here\n }//GEN-BEGIN:|7-commandAction|31|165-preAction\n } else if (displayable == dubtes6) {\n if (command == backCommand5) {//GEN-END:|7-commandAction|31|165-preAction\n // write pre-action user code here\n switchToPreviousDisplayable();//GEN-LINE:|7-commandAction|32|165-postAction\n // write post-action user code here\n } else if (command == itemCommand6) {//GEN-LINE:|7-commandAction|33|335-preAction\n // write pre-action user code here\n playChapter6();//GEN-LINE:|7-commandAction|34|335-postAction\n // write post-action user code here\n }//GEN-BEGIN:|7-commandAction|35|171-preAction\n } else if (displayable == exclamacions7) {\n if (command == backCommand6) {//GEN-END:|7-commandAction|35|171-preAction\n // write pre-action user code here\n switchToPreviousDisplayable();//GEN-LINE:|7-commandAction|36|171-postAction\n // write post-action user code here\n } else if (command == itemCommand7) {//GEN-LINE:|7-commandAction|37|338-preAction\n // write pre-action user code here\n playChapter7();//GEN-LINE:|7-commandAction|38|338-postAction\n // write post-action user code here\n }//GEN-BEGIN:|7-commandAction|39|191-preAction\n } else if (displayable == expressions11) {\n if (command == backCommand9) {//GEN-END:|7-commandAction|39|191-preAction\n // write pre-action user code here\n switchToPreviousDisplayable();//GEN-LINE:|7-commandAction|40|191-postAction\n // write post-action user code here\n }//GEN-BEGIN:|7-commandAction|41|247-preAction\n } else if (displayable == familia20) {\n if (command == backCommand18) {//GEN-END:|7-commandAction|41|247-preAction\n // write pre-action user code here\n switchToPreviousDisplayable();//GEN-LINE:|7-commandAction|42|247-postAction\n // write post-action user code here\n } else if (command == itemCommand24) {//GEN-LINE:|7-commandAction|43|424-preAction\n // write pre-action user code here\n playChapter20();//GEN-LINE:|7-commandAction|44|424-postAction\n // write post-action user code here\n }//GEN-BEGIN:|7-commandAction|45|227-preAction\n } else if (displayable == feina17) {\n if (command == backCommand15) {//GEN-END:|7-commandAction|45|227-preAction\n // write pre-action user code here\n switchToPreviousDisplayable();//GEN-LINE:|7-commandAction|46|227-postAction\n // write post-action user code here\n } else if (command == itemCommand20) {//GEN-LINE:|7-commandAction|47|406-preAction\n // write pre-action user code here\n playChapter17();//GEN-LINE:|7-commandAction|48|406-postAction\n // write post-action user code here\n }//GEN-BEGIN:|7-commandAction|49|264-preAction\n } else if (displayable == festes21) {\n if (command == backCommand21) {//GEN-END:|7-commandAction|49|264-preAction\n // write pre-action user code here\n switchToPreviousDisplayable();//GEN-LINE:|7-commandAction|50|264-postAction\n // write post-action user code here\n } else if (command == itemCommand25) {//GEN-LINE:|7-commandAction|51|430-preAction\n // write pre-action user code here\n playChapter21();//GEN-LINE:|7-commandAction|52|430-postAction\n // write post-action user code here\n }//GEN-BEGIN:|7-commandAction|53|19-preAction\n } else if (displayable == form) {\n if (command == exitCommand) {//GEN-END:|7-commandAction|53|19-preAction\n // write pre-action user code here\n switchDisplayable(null, getAlert());//GEN-LINE:|7-commandAction|54|19-postAction\n // write post-action user code here\n }//GEN-BEGIN:|7-commandAction|55|235-preAction\n } else if (displayable == localitzacions18) {\n if (command == backCommand16) {//GEN-END:|7-commandAction|55|235-preAction\n // write pre-action user code here\n switchToPreviousDisplayable();//GEN-LINE:|7-commandAction|56|235-postAction\n // write post-action user code here\n } else if (command == itemCommand22) {//GEN-LINE:|7-commandAction|57|412-preAction\n // write pre-action user code here\n playChapter18();//GEN-LINE:|7-commandAction|58|412-postAction\n // write post-action user code here\n }//GEN-BEGIN:|7-commandAction|59|160-preAction\n } else if (displayable == negacions5) {\n if (command == backCommand4) {//GEN-END:|7-commandAction|59|160-preAction\n // write pre-action user code here\n switchToPreviousDisplayable();//GEN-LINE:|7-commandAction|60|160-postAction\n // write post-action user code here\n } else if (command == itemCommand5) {//GEN-LINE:|7-commandAction|61|329-preAction\n // write pre-action user code here\n playChapter5();//GEN-LINE:|7-commandAction|62|329-postAction\n // write post-action user code here\n }//GEN-BEGIN:|7-commandAction|63|259-preAction\n } else if (displayable == numerals10) {\n if (command == backCommand20) {//GEN-END:|7-commandAction|63|259-preAction\n // write pre-action user code here\n switchToPreviousDisplayable();//GEN-LINE:|7-commandAction|64|259-postAction\n // write post-action user code here\n } else if (command == itemCommand10) {//GEN-LINE:|7-commandAction|65|356-preAction\n // write pre-action user code here\n playChapter10();//GEN-LINE:|7-commandAction|66|356-postAction\n // write post-action user code here\n }//GEN-BEGIN:|7-commandAction|67|221-preAction\n } else if (displayable == oferta16) {\n if (command == backCommand14) {//GEN-END:|7-commandAction|67|221-preAction\n // write pre-action user code here\n switchToPreviousDisplayable();//GEN-LINE:|7-commandAction|68|221-postAction\n // write post-action user code here\n }//GEN-BEGIN:|7-commandAction|69|150-preAction\n } else if (displayable == preguntesusuals3) {\n if (command == backCommand2) {//GEN-END:|7-commandAction|69|150-preAction\n // write pre-action user code here\n switchToPreviousDisplayable();//GEN-LINE:|7-commandAction|70|150-postAction\n // write post-action user code here\n } else if (command == itemCommand3) {//GEN-LINE:|7-commandAction|71|315-preAction\n // write pre-action user code here\n playChapter3();//GEN-LINE:|7-commandAction|72|315-postAction\n // write post-action user code here\n }//GEN-BEGIN:|7-commandAction|73|178-preAction\n } else if (displayable == qualitats8) {\n if (command == backCommand7) {//GEN-END:|7-commandAction|73|178-preAction\n // write pre-action user code here\n switchToPreviousDisplayable();//GEN-LINE:|7-commandAction|74|178-postAction\n // write post-action user code here\n } else if (command == itemCommand8) {//GEN-LINE:|7-commandAction|75|344-preAction\n // write pre-action user code here\n playChapter8();//GEN-LINE:|7-commandAction|76|344-postAction\n // write post-action user code here\n }//GEN-BEGIN:|7-commandAction|77|142-preAction\n } else if (displayable == salutacions2) {\n if (command == backCommand1) {//GEN-END:|7-commandAction|77|142-preAction\n // write pre-action user code here\n switchToPreviousDisplayable();//GEN-LINE:|7-commandAction|78|142-postAction\n // write post-action user code here\n } else if (command == itemCommand2) {//GEN-LINE:|7-commandAction|79|308-preAction\n // write pre-action user code here\n playChapter2();//GEN-LINE:|7-commandAction|80|308-postAction\n // write post-action user code here\n }//GEN-BEGIN:|7-commandAction|81|24-preAction\n } else if (displayable == splashScreen) {\n if (command == SplashScreen.DISMISS_COMMAND) {//GEN-END:|7-commandAction|81|24-preAction\n // write pre-action user code here\n switchDisplayable(null, getForm());//GEN-LINE:|7-commandAction|82|24-postAction\n // write post-action user code here\n }//GEN-BEGIN:|7-commandAction|83|209-preAction\n } else if (displayable == temps14) {\n if (command == backCommand12) {//GEN-END:|7-commandAction|83|209-preAction\n // write pre-action user code here\n switchToPreviousDisplayable();//GEN-LINE:|7-commandAction|84|209-postAction\n // write post-action user code here\n } else if (command == itemCommand14) {//GEN-LINE:|7-commandAction|85|383-preAction\n // write pre-action user code here\n playChapter14();//GEN-LINE:|7-commandAction|86|383-postAction\n // write post-action user code here\n }//GEN-BEGIN:|7-commandAction|87|241-preAction\n } else if (displayable == transports19) {\n if (command == backCommand17) {//GEN-END:|7-commandAction|87|241-preAction\n // write pre-action user code here\n switchToPreviousDisplayable();//GEN-LINE:|7-commandAction|88|241-postAction\n // write post-action user code here\n } else if (command == itemCommand23) {//GEN-LINE:|7-commandAction|89|420-preAction\n // write pre-action user code here\n playChapter19();//GEN-LINE:|7-commandAction|90|420-postAction\n // write post-action user code here\n }//GEN-BEGIN:|7-commandAction|91|7-postCommandAction\n }//GEN-END:|7-commandAction|91|7-postCommandAction\n // write post-action user code here\n }", "title": "" }, { "docid": "d2624bae2ea4e41ace03435cc94139cc", "score": "0.5809669", "text": "@Override\n\t\tpublic void action() {\n\t\t\tSystem.out.println(\"Aqui é onde o verdadeiro programa vai!!!\");\n\t\t}", "title": "" }, { "docid": "e5de7e30c926aa1cdc5c33f4944473c8", "score": "0.5801492", "text": "void doAction();", "title": "" }, { "docid": "232efa1e26c4828e800054090cb7bc9d", "score": "0.57776195", "text": "private static String resolveAction(String action) {\n\t\treturn StringUtils.isNotBlank(action)?action:ESBEvent.ACTION_RETRIEVE;\n\t}", "title": "" }, { "docid": "57f73118c95048f40da59362a1fe4db7", "score": "0.5776342", "text": "public action_part action() {return _action;}", "title": "" }, { "docid": "481f9d9467746b5a39fffe495701b878", "score": "0.57752717", "text": "@Override\r\n\tpublic void actua() {\n\t\t\r\n\t}", "title": "" }, { "docid": "faed87e98db4227870d21284f8a01185", "score": "0.575642", "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: // $START ::= A 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 1: // A ::= menorQue compi mayorQue B menorQue barra compi mayorQue aceptacion \n {\n Object RESULT =null;\n\t\t\n Principal.archivoHTML.finalizarPagina();\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"A\",0, ((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 2: // A ::= menorQue compi mayorQue menorQue barra compi mayorQue aceptacion \n {\n Object RESULT =null;\n\t\t\n Principal.archivoHTML.finalizarPagina();\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"A\",0, ((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 3: // B ::= B C \n {\n Object RESULT =null;\n\n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"B\",1, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)), ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()), RESULT);\n }\n return CUP$Parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 4: // B ::= C \n {\n Object RESULT =null;\n\n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"B\",1, ((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 5: // C ::= menorQue cabecera mayorQue D menorQue barra cabecera mayorQue \n {\n Object RESULT =null;\n\t\t\n Principal.archivoHTML.finalizarHead();\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"C\",2, ((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 6: // C ::= menorQue cuerpo F I1 menorQue barra cuerpo mayorQue \n {\n Object RESULT =null;\n\t\t\n Principal.archivoHTML.finalizarBody();\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"C\",2, ((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 7: // C ::= menorQue cabecera mayorQue menorQue barra cabecera mayorQue \n {\n Object RESULT =null;\n\t\t\n Principal.archivoHTML.iniciarHead();\n Principal.archivoHTML.finalizarHead();\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"C\",2, ((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 8: // C ::= menorQue cuerpo F menorQue barra cuerpo mayorQue \n {\n Object RESULT =null;\n\t\t\n Principal.archivoHTML.finalizarBody();\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"C\",2, ((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 9: // D ::= D E \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t\n Principal.archivoHTML.escribirTitulo(a);\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"D\",3, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)), ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()), RESULT);\n }\n return CUP$Parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 10: // D ::= E \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t\n Principal.archivoHTML.iniciarHead();\n Principal.archivoHTML.escribirTitulo(a);\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"D\",3, ((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 11: // E ::= menorQue titulo textoEntreEtiquetas barra titulo mayorQue \n {\n String RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-3)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-3)).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-3)).value;\n\t\t\n RESULT = a;\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"E\",59, ((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 12: // E ::= menorQue titulo mayorQue menorQue barra titulo mayorQue \n {\n String RESULT =null;\n\t\t\n RESULT = \"\";\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"E\",59, ((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 13: // F ::= G mayorQue \n {\n Object RESULT =null;\n\t\t\n Principal.archivoHTML.cerrarEtiquetaInicialBody();\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"F\",4, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)), ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()), RESULT);\n }\n return CUP$Parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 14: // F ::= mayorQue \n {\n Object RESULT =null;\n\t\t\n Principal.archivoHTML.iniciarBody();\n Principal.archivoHTML.cerrarEtiquetaInicialBody();\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"F\",4, ((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 15: // G ::= G H \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t\n Principal.archivoHTML.agregarBGColor(a);\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"G\",5, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)), ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()), RESULT);\n }\n return CUP$Parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 16: // G ::= H \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t\n Principal.archivoHTML.iniciarBody();\n Principal.archivoHTML.agregarBGColor(a);\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"G\",5, ((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 17: // H ::= fondo igual textoEntreComillas \n {\n String RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t\n RESULT = a;\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"H\",60, ((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 18: // I ::= menorQue I2 I3 menorQue barra espacio \n {\n Object RESULT =null;\n\t\t\n Principal.archivoHTML.finalizarDiv(); \n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"I\",6, ((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 19: // I ::= menorQue I2 I3 barra espacio \n {\n Object RESULT =null;\n\t\t\n Principal.archivoHTML.finalizarDiv(); \n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"I\",6, ((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 20: // I ::= menorQue parrafo J barra parrafo \n {\n Object RESULT =null;\n\t\t\n Principal.archivoHTML.finalizarParrafo(); \n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"I\",6, ((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 21: // I ::= menorQue barra salto \n {\n Object RESULT =null;\n\t\t\n Principal.archivoHTML.agreagarSalto(\"<br>\");\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"I\",6, ((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 22: // I ::= menorQue textoA M barra textoA \n {\n Object RESULT =null;\n\t\t\n Principal.archivoHTML.finalizarH1(); \n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"I\",6, ((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 23: // I ::= menorQue textoB N barra textoB \n {\n Object RESULT =null;\n\t\t\n Principal.archivoHTML.finalizarH2(); \n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"I\",6, ((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 24: // I ::= menorQue O0 O mayorQue menorQue barra imagen \n {\n Object RESULT =null;\n\t\t\n verificarParametrosImagen();\n pathImagen = false;\n Principal.archivoHTML.finalizarImagen(); \n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"I\",6, ((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 25: // I ::= menorQue P0 P mayorQue menorQue barra boton \n {\n Object RESULT =null;\n\t\t\n verificarParametrosBoton();\n botonId = false;\n botonTexto = false;\n Principal.archivoHTML.finalizarBoton(); \n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"I\",6, ((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 26: // I ::= menorQue Q0 Q R0 R menorQue barra tabla \n {\n Object RESULT =null;\n\t\t\n Principal.archivoHTML.finalizarTabla(); \n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"I\",6, ((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 27: // I ::= menorQue inicioHS U interrogacion \n {\n Object RESULT =null;\n\n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"I\",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 28: // I1 ::= I1 I \n {\n Object RESULT =null;\n\n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"I1\",7, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)), ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()), RESULT);\n }\n return CUP$Parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 29: // I1 ::= I \n {\n Object RESULT =null;\n\n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"I1\",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 30: // I2 ::= espacio \n {\n Object RESULT =null;\n\t\t\n Principal.archivoHTML.iniciarDiv(); \n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"I2\",8, ((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 31: // I2 ::= espacio menorQue \n {\n Object RESULT =null;\n\t\t\n Principal.archivoHTML.iniciarDiv(); \n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"I2\",8, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)), ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()), RESULT);\n }\n return CUP$Parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 32: // I3 ::= I3 I4 \n {\n Object RESULT =null;\n\n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"I3\",9, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)), ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()), RESULT);\n }\n return CUP$Parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 33: // I3 ::= I4 \n {\n Object RESULT =null;\n\n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"I3\",9, ((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 34: // I4 ::= menorQue I2 I3 menorQue barra espacio \n {\n Object RESULT =null;\n\t\t\n Principal.archivoHTML.finalizarDiv(); \n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"I4\",10, ((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 35: // I4 ::= menorQue I2 I3 barra espacio \n {\n Object RESULT =null;\n\t\t\n Principal.archivoHTML.finalizarDiv(); \n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"I4\",10, ((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 36: // I4 ::= menorQue parrafo J barra parrafo \n {\n Object RESULT =null;\n\t\t\n Principal.archivoHTML.finalizarParrafo(); \n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"I4\",10, ((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 37: // I4 ::= menorQue barra salto \n {\n Object RESULT =null;\n\t\t\n Principal.archivoHTML.agreagarSalto(\"<br>\");\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"I4\",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 38: // I4 ::= menorQue textoA M barra textoA \n {\n Object RESULT =null;\n\t\t\n Principal.archivoHTML.finalizarH1(); \n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"I4\",10, ((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 39: // I4 ::= menorQue textoB N barra textoB \n {\n Object RESULT =null;\n\t\t\n Principal.archivoHTML.finalizarH2(); \n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"I4\",10, ((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 40: // I4 ::= menorQue O0 O mayorQue menorQue barra imagen \n {\n Object RESULT =null;\n\t\t\n verificarParametrosImagen();\n pathImagen = false;\n Principal.archivoHTML.finalizarImagen(); \n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"I4\",10, ((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 41: // I4 ::= menorQue P0 P mayorQue menorQue barra boton \n {\n Object RESULT =null;\n\t\t\n verificarParametrosBoton();\n botonId = false;\n botonTexto = false;\n Principal.archivoHTML.finalizarBoton(); \n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"I4\",10, ((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 42: // I4 ::= menorQue menorQue inicioHS U interrogacion \n {\n Object RESULT =null;\n\n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"I4\",10, ((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 43: // I4 ::= menorQue inicioHS U interrogacion \n {\n Object RESULT =null;\n\n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"I4\",10, ((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 44: // I4 ::= inicioHS U interrogacion \n {\n Object RESULT =null;\n\n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"I4\",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 45: // I4 ::= textoEntreEtiquetas \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t\n Principal.archivoHTML.agregarTextoEntreEtiquetas(a); \n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"I4\",10, ((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 46: // I4 ::= I2 I3 menorQue barra espacio \n {\n Object RESULT =null;\n\t\t\n Principal.archivoHTML.finalizarDiv(); \n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"I4\",10, ((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 47: // I4 ::= I2 I3 barra espacio \n {\n Object RESULT =null;\n\t\t\n Principal.archivoHTML.finalizarDiv(); \n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"I4\",10, ((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 48: // I4 ::= parrafo J barra parrafo \n {\n Object RESULT =null;\n\t\t\n Principal.archivoHTML.finalizarParrafo(); \n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"I4\",10, ((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 49: // I4 ::= barra salto \n {\n Object RESULT =null;\n\t\t\n Principal.archivoHTML.agreagarSalto(\"<br>\");\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"I4\",10, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)), ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()), RESULT);\n }\n return CUP$Parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 50: // I4 ::= textoA M barra textoA \n {\n Object RESULT =null;\n\t\t\n Principal.archivoHTML.finalizarH1(); \n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"I4\",10, ((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 51: // I4 ::= textoB N barra textoB \n {\n Object RESULT =null;\n\t\t\n Principal.archivoHTML.finalizarH2(); \n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"I4\",10, ((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 52: // I4 ::= O0 O mayorQue menorQue barra imagen \n {\n Object RESULT =null;\n\t\t\n verificarParametrosImagen();\n pathImagen = false;\n Principal.archivoHTML.finalizarImagen(); \n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"I4\",10, ((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 53: // I4 ::= P0 P mayorQue menorQue barra boton \n {\n Object RESULT =null;\n\t\t\n verificarParametrosBoton();\n botonId = false;\n botonTexto = false;\n Principal.archivoHTML.finalizarBoton(); \n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"I4\",10, ((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 54: // I4 ::= menorQue Q0 Q R0 R menorQue barra tabla \n {\n Object RESULT =null;\n\t\t\n Principal.archivoHTML.finalizarTabla(); \n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"I4\",10, ((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 55: // I4 ::= Q0 Q R0 R menorQue barra tabla \n {\n Object RESULT =null;\n\t\t\n Principal.archivoHTML.finalizarTabla(); \n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"I4\",10, ((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 56: // I4 ::= menorQue menorQue I2 I3 menorQue barra espacio \n {\n Object RESULT =null;\n\t\t\n Principal.archivoHTML.finalizarDiv(); \n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"I4\",10, ((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 57: // I4 ::= menorQue menorQue I2 I3 barra espacio \n {\n Object RESULT =null;\n\t\t\n Principal.archivoHTML.finalizarDiv(); \n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"I4\",10, ((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 58: // I4 ::= menorQue menorQue parrafo J barra parrafo \n {\n Object RESULT =null;\n\t\t\n Principal.archivoHTML.finalizarParrafo(); \n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"I4\",10, ((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 59: // I4 ::= menorQue menorQue barra salto \n {\n Object RESULT =null;\n\t\t\n Principal.archivoHTML.agreagarSalto(\"<br>\");\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"I4\",10, ((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 60: // I4 ::= menorQue menorQue textoA M barra textoA \n {\n Object RESULT =null;\n\t\t\n Principal.archivoHTML.finalizarH1(); \n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"I4\",10, ((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 61: // I4 ::= menorQue menorQue textoB N barra textoB \n {\n Object RESULT =null;\n\t\t\n Principal.archivoHTML.finalizarH2(); \n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"I4\",10, ((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 62: // I4 ::= menorQue menorQue O0 O mayorQue menorQue barra imagen \n {\n Object RESULT =null;\n\t\t\n verificarParametrosImagen();\n pathImagen = false;\n Principal.archivoHTML.finalizarImagen(); \n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"I4\",10, ((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 63: // I4 ::= menorQue menorQue P0 P mayorQue menorQue barra boton \n {\n Object RESULT =null;\n\t\t\n verificarParametrosBoton();\n botonId = false;\n botonTexto = false;\n Principal.archivoHTML.finalizarBoton(); \n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"I4\",10, ((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 64: // I4 ::= menorQue textoEntreEtiquetas \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t\n Principal.archivoHTML.agregarTextoEntreEtiquetas(a); \n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"I4\",10, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)), ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()), RESULT);\n }\n return CUP$Parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 65: // J ::= K textoEntreEtiquetas \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t\n Principal.archivoHTML.agregarTextoParrafo(a); \n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"J\",11, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)), ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()), RESULT);\n }\n return CUP$Parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 66: // J ::= textoEntreEtiquetas \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t\n Principal.archivoHTML.iniciarParrafo();\n Principal.archivoHTML.agregarTextoParrafo(a); \n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"J\",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 67: // J ::= mayorQue menorQue \n {\n Object RESULT =null;\n\t\t\n Principal.archivoHTML.iniciarParrafo();\n Principal.archivoHTML.agregarTextoParrafo(\"\"); \n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"J\",11, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)), ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()), RESULT);\n }\n return CUP$Parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 68: // J ::= barra salto \n {\n Object RESULT =null;\n\t\t\n Principal.archivoHTML.agreagarSalto(\"br\");\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"J\",11, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)), ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()), RESULT);\n }\n return CUP$Parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 69: // J ::= J textoEntreEtiquetas \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t\n Principal.archivoHTML.agregarTextoParrafo(a); \n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"J\",11, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)), ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()), RESULT);\n }\n return CUP$Parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 70: // J ::= J barra salto \n {\n Object RESULT =null;\n\t\t\n Principal.archivoHTML.agreagarSalto(\"br\");\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"J\",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 71: // K ::= K L \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t\n Principal.archivoHTML.agregarAlineacion(a);\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"K\",12, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)), ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()), RESULT);\n }\n return CUP$Parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 72: // K ::= L \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t\n Principal.archivoHTML.iniciarParrafo();\n Principal.archivoHTML.agregarAlineacion(a);\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"K\",12, ((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 73: // L ::= alineacion igual tipoAlineacion \n {\n String RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t\n RESULT = a;\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"L\",61, ((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 74: // M ::= textoEntreEtiquetas \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t\n Principal.archivoHTML.iniciarH1();\n Principal.archivoHTML.agregarTextoH1(a); \n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"M\",13, ((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 75: // M ::= mayorQue menorQue \n {\n Object RESULT =null;\n\t\t\n Principal.archivoHTML.iniciarH1();\n Principal.archivoHTML.agregarTextoH1(\"\"); \n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"M\",13, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)), ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()), RESULT);\n }\n return CUP$Parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 76: // N ::= textoEntreEtiquetas \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t\n Principal.archivoHTML.iniciarH2();\n Principal.archivoHTML.agregarTextoH2(a); \n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"N\",14, ((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 77: // N ::= mayorQue menorQue \n {\n Object RESULT =null;\n\t\t\n Principal.archivoHTML.iniciarH2();\n Principal.archivoHTML.agregarTextoH2(\"\"); \n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"N\",14, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)), ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()), RESULT);\n }\n return CUP$Parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 78: // O0 ::= imagen \n {\n Object RESULT =null;\n\t\t\n Principal.archivoHTML.iniciarImagen(); \n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"O0\",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 79: // O ::= O O1 \n {\n Object RESULT =null;\n\n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"O\",17, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)), ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()), RESULT);\n }\n return CUP$Parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 80: // O ::= O1 \n {\n Object RESULT =null;\n\n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"O\",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 81: // O1 ::= path igual textoEntreComillas \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t\n pathImagen = true;\n Principal.archivoHTML.agregarPathImagen(a);\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"O1\",16, ((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 82: // O1 ::= alto igual numero \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t\n Principal.archivoHTML.agregarAltoImagen(a);\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"O1\",16, ((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 83: // O1 ::= ancho igual numero \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t\n Principal.archivoHTML.agregarAnchoImagen(a);\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"O1\",16, ((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 84: // P0 ::= boton \n {\n Object RESULT =null;\n\t\t\n Principal.archivoHTML.iniciarBoton(); \n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"P0\",18, ((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 85: // P ::= P P1 \n {\n Object RESULT =null;\n\n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"P\",20, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)), ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()), RESULT);\n }\n return CUP$Parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 86: // P ::= P1 \n {\n Object RESULT =null;\n\n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"P\",20, ((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 87: // P1 ::= id igual textoEntreComillas \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t\n botonId = true;\n Principal.archivoHTML.agregarId(a); \n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"P1\",19, ((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 88: // P1 ::= texto igual textoEntreComillas \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t\n botonTexto = true;\n Principal.archivoHTML.agregarTexto(a); \n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"P1\",19, ((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 89: // Q0 ::= tabla \n {\n Object RESULT =null;\n\t\t\n Principal.archivoHTML.iniciarTabla();\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"Q0\",22, ((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 90: // Q ::= Q Q1 \n {\n Object RESULT =null;\n\n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"Q\",21, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)), ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()), RESULT);\n }\n return CUP$Parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 91: // Q ::= Q1 \n {\n Object RESULT =null;\n\n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"Q\",21, ((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 92: // Q1 ::= borde igual booleano \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t\n Principal.archivoHTML.agregarBorde(a);\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"Q1\",23, ((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 93: // R0 ::= mayorQue \n {\n Object RESULT =null;\n\t\t\n Principal.archivoHTML.cerrarEtiquetaTabla();\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"R0\",25, ((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 94: // R ::= R R1 \n {\n Object RESULT =null;\n\n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"R\",24, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)), ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()), RESULT);\n }\n return CUP$Parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 95: // R ::= R1 \n {\n Object RESULT =null;\n\n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"R\",24, ((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 96: // R1 ::= menorQue R2 mayorQue S menorQue barra fila mayorQue \n {\n Object RESULT =null;\n\t\t\n Principal.archivoHTML.finalizarFila(); \n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"R1\",26, ((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 97: // R2 ::= fila \n {\n Object RESULT =null;\n\t\t\n Principal.archivoHTML.iniciarFila();\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"R2\",27, ((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 98: // S ::= S S1 \n {\n Object RESULT =null;\n\n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"S\",28, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)), ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()), RESULT);\n }\n return CUP$Parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 99: // S ::= S1 \n {\n Object RESULT =null;\n\n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"S\",28, ((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 100: // S1 ::= menorQue T3 T barra columnaC \n {\n Object RESULT =null;\n\t\t\n Principal.archivoHTML.finalizarColumnaC();\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"S1\",29, ((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 101: // S1 ::= menorQue T0 T barra columna \n {\n Object RESULT =null;\n\t\t\n Principal.archivoHTML.finalizarColumna();\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"S1\",29, ((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 102: // S1 ::= menorQue T3 T menorQue barra columnaC \n {\n Object RESULT =null;\n\t\t\n Principal.archivoHTML.finalizarColumnaC();\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"S1\",29, ((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 103: // S1 ::= menorQue T0 T menorQue barra columna \n {\n Object RESULT =null;\n\t\t\n Principal.archivoHTML.finalizarColumna();\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"S1\",29, ((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 104: // T0 ::= columna \n {\n Object RESULT =null;\n\t\t\n Principal.archivoHTML.iniciarColumna();\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"T0\",31, ((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 105: // T3 ::= columnaC \n {\n Object RESULT =null;\n\t\t\n Principal.archivoHTML.iniciarColumnaC();\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"T3\",33, ((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 106: // T ::= T T1 \n {\n Object RESULT =null;\n\n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"T\",30, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)), ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()), RESULT);\n }\n return CUP$Parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 107: // T ::= T1 \n {\n Object RESULT =null;\n\n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"T\",30, ((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 108: // T1 ::= textoEntreEtiquetas \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t\n Principal.archivoHTML.agregarTextoEntreEtiquetas(a); \n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"T1\",32, ((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 109: // T1 ::= menorQue barra salto \n {\n Object RESULT =null;\n\t\t\n Principal.archivoHTML.agreagarSalto(\"<br>\");\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"T1\",32, ((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 110: // T1 ::= barra salto \n {\n Object RESULT =null;\n\t\t\n Principal.archivoHTML.agreagarSalto(\"<br>\");\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"T1\",32, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)), ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()), RESULT);\n }\n return CUP$Parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 111: // T1 ::= menorQue parrafo J barra parrafo \n {\n Object RESULT =null;\n\t\t\n Principal.archivoHTML.finalizarParrafo(); \n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"T1\",32, ((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 112: // T1 ::= parrafo J barra parrafo \n {\n Object RESULT =null;\n\t\t\n Principal.archivoHTML.finalizarParrafo(); \n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"T1\",32, ((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 113: // T1 ::= menorQue O0 O mayorQue menorQue barra imagen \n {\n Object RESULT =null;\n\t\t\n verificarParametrosImagen();\n pathImagen = false;\n Principal.archivoHTML.finalizarImagen(); \n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"T1\",32, ((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 114: // T1 ::= O0 O mayorQue menorQue barra imagen \n {\n Object RESULT =null;\n\t\t\n verificarParametrosImagen();\n pathImagen = false;\n Principal.archivoHTML.finalizarImagen(); \n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"T1\",32, ((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 115: // T1 ::= menorQue P0 P mayorQue menorQue barra boton \n {\n Object RESULT =null;\n\t\t\n verificarParametrosBoton();\n botonId = false;\n botonTexto = false;\n Principal.archivoHTML.finalizarBoton(); \n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"T1\",32, ((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 116: // T1 ::= P0 P mayorQue menorQue barra boton \n {\n Object RESULT =null;\n\t\t\n verificarParametrosBoton();\n botonId = false;\n botonTexto = false;\n Principal.archivoHTML.finalizarBoton(); \n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"T1\",32, ((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 117: // T1 ::= menorQue inicioHS U interrogacion \n {\n Object RESULT =null;\n\n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"T1\",32, ((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 118: // T1 ::= inicioHS U interrogacion \n {\n Object RESULT =null;\n\n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"T1\",32, ((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 119: // U ::= U U1 \n {\n Object RESULT =null;\n\n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"U\",34, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)), ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()), RESULT);\n }\n return CUP$Parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 120: // U ::= U1 \n {\n Object RESULT =null;\n\n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"U\",34, ((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 121: // U1 ::= dolar identificador igual V puntoYComa \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-3)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-3)).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-3)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).right;\n\t\tObject b = (Object)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-1)).value;\n\t\t\n agregarVariable(a,b);\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"U1\",35, ((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 122: // U1 ::= echo W puntoYComa \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-1)).value;\n\t\t\n Principal.txtConsola.append(a+\"\\n\");\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"U1\",35, ((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 123: // U1 ::= numeral identificador igual X puntoYComa \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-3)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-3)).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-3)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).right;\n\t\tInteger b = (Integer)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-1)).value;\n\t\t\n switch(b){\n case 1: \n Principal.structs.add(new Struct(\"parrafo\" ,a ,structParrafo));\n Principal.txtStructs.append(\"|\\t\" + a + \"\\t|\\tstruct\\t|\\tstructParrafo\\t|\\n\");\n break;\n case 2: \n Principal.structs.add(new Struct(\"textoA\" ,a ,structTextoA));\n Principal.txtStructs.append(\"|\\t\" + a + \"\\t|\\tstruct\\t|\\tstructTextoA\\t|\\n\");\n break;\n case 3: \n Principal.structs.add(new Struct(\"textoB\" ,a ,structTextoB));\n Principal.txtStructs.append(\"|\\t\" + a + \"\\t|\\tstruct\\t|\\tstructTextoB\\t|\\n\");\n break;\n case 4: \n Principal.structs.add(new Struct(\"imagen\" ,a ,structImagen));\n Principal.txtStructs.append(\"|\\t\" + a + \"\\t|\\tstruct\\t|\\tstructImagen\\t|\\n\");\n break;\n case 5: \n Principal.structs.add(new Struct(\"tabla\" ,a ,structTabla));\n Principal.txtStructs.append(\"|\\t\" + a + \"\\t|\\tstruct\\t|\\tstructTabla\\t|\\n\");\n break;\n case 6: \n Principal.structs.add(new Struct(\"boton\" ,a ,structBoton));\n Principal.txtStructs.append(\"|\\t\" + a + \"\\t|\\tstruct\\t|\\tstructTabla\\t|\\n\");\n break;\n }\n Principal.txtStructs.append(\"\\n\\n\");\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"U1\",35, ((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 124: // U1 ::= dolar identificador igual numeral U2 punto AH \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-5)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-5)).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-5)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tObject b = (Object)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t\n agregarVariable(a, b);\n identificadorStruct = \"\";\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"U1\",35, ((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 125: // U1 ::= numeral U2 punto AI \n {\n Object RESULT =null;\n\n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"U1\",35, ((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 126: // U1 ::= numeral U2 punto insertar parentesisAbre parentesisCierra puntoYComa \n {\n Object RESULT =null;\n\t\t\n Struct struct = Principal.retornarStruct(identificadorStruct);\n switch(struct.getTipo()){\n case \"parrafo\": ((StructParrafo)struct.getValor()).insertar();\n break;\n case \"textoA\": ((StructTextoA)struct.getValor()).insertar();\n break;\n case \"textoB\": ((StructTextoB)struct.getValor()).insertar();\n break;\n case \"imagen\": ((StructImagen)struct.getValor()).insertar();\n break;\n case \"tabla\": ((StructTabla)struct.getValor()).insertar();\n break;\n case \"boton\": ((StructBoton)struct.getValor()).insertar();\n break;\n default: Principal.errores.add(new Token(\"ESTRUCTURA INVALIDA\", \"ERROR SINTACTICO - FUNCION NO ENCONTRADA\", 0, 0));\n break;\n }\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"U1\",35, ((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 127: // U1 ::= AQ00 parentesisAbre AQ0 parentesisCierra llaveAbre AO1 llaveCierra \n {\n Object RESULT =null;\n\t\t\n contadorIf--;\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"U1\",35, ((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 128: // U1 ::= AQ00 parentesisAbre AQ0 parentesisCierra llaveAbre AO1 llaveCierra controlElse llaveAbre AO10 llaveCierra \n {\n Object RESULT =null;\n\t\t\n contadorIf--;\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"U1\",35, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-10)), ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()), RESULT);\n }\n return CUP$Parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 129: // U1 ::= U5 parentesisAbre AN parentesisCierra llaveAbre AO llaveCierra \n {\n Object RESULT =null;\n\t\t\n contadorRepetidor--;\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"U1\",35, ((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 130: // U5 ::= repetir \n {\n Object RESULT =null;\n\t\t\n repetidores = new ArrayList();\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"U5\",37, ((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 131: // U2 ::= identificador \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t\n identificadorStruct = a;\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"U2\",36, ((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 132: // V ::= textoEntreComillas \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t\n tipoDato = \"cadena\";\n RESULT = a;\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"V\",75, ((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 133: // V ::= V1 \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t\n if(a instanceof Double){\n tipoDato = \"decimal\";\n }else if(a instanceof Integer){\n tipoDato = \"entero\";\n }\n RESULT = a;\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"V\",75, ((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 134: // V ::= booleano \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t\n tipoDato = \"booleano\";\n RESULT = a;\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"V\",75, ((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 135: // V1 ::= V2 \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t\n RESULT = a;\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"V1\",76, ((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 136: // V2 ::= V2 mas V2 \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-2)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tObject b = (Object)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t\n try{\n if(a instanceof Double){\n if(b instanceof Integer)\n RESULT = (Double)a+(Integer)b;\n else if(b instanceof Double)\n RESULT = (Double)a+(Double)b;\n }else if(a instanceof Integer){ \n if(b instanceof Integer)\n RESULT = (Integer)a+(Integer)b;\n else if(b instanceof Double)\n RESULT = (Integer)a+(Double)b;\n } \n }catch(Exception ex){System.out.println(\"Error al realizar division\");}\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"V2\",77, ((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 137: // V2 ::= V2 menos V2 \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-2)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tObject b = (Object)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t\n try{\n if(a instanceof Double){\n if(b instanceof Integer)\n RESULT = (Double)a-(Integer)b;\n else if(b instanceof Double)\n RESULT = (Double)a-(Double)b;\n }else if(a instanceof Integer){ \n if(b instanceof Integer)\n RESULT = (Integer)a-(Integer)b;\n else if(b instanceof Double)\n RESULT = (Integer)a-(Double)b;\n } \n }catch(Exception ex){System.out.println(\"Error al realizar division\");}\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"V2\",77, ((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 138: // V2 ::= V2 multiplicacion V2 \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-2)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tObject b = (Object)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t\n try{\n if(a instanceof Double){\n if(b instanceof Integer)\n RESULT = (Double)a*(Integer)b;\n else if(b instanceof Double)\n RESULT = (Double)a*(Double)b;\n }else if(a instanceof Integer){ \n if(b instanceof Integer)\n RESULT = (Integer)a*(Integer)b;\n else if(b instanceof Double)\n RESULT = (Integer)a*(Double)b;\n } \n }catch(Exception ex){System.out.println(\"Error al realizar division\");}\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"V2\",77, ((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 139: // V2 ::= V2 division V2 \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-2)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tObject b = (Object)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t\n try{\n if(a instanceof Double){\n if(b instanceof Integer)\n RESULT = (Double)a/(Integer)b;\n else if(b instanceof Double)\n RESULT = (Double)a/(Double)b;\n }else if(a instanceof Integer){ \n if(b instanceof Integer)\n RESULT = (Integer)a/(Integer)b;\n else if(b instanceof Double)\n RESULT = (Integer)a/(Double)b;\n } \n }catch(Exception ex){System.out.println(\"Error al realizar division\");}\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"V2\",77, ((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 140: // V2 ::= parentesisAbre V2 parentesisCierra \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-1)).value;\n\t\t\n RESULT = a;\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"V2\",77, ((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 141: // V2 ::= entero \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t\n try{\n RESULT = Integer.parseInt(a);\n }catch(Exception ex){\n System.out.println(\"Error al detectar valor numerico en variable int\");\n RESULT = 0;\n }\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"V2\",77, ((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 142: // V2 ::= decimal \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t\n try{\n RESULT = Double.parseDouble(a);\n }catch(Exception ex){\n System.out.println(\"Error al detectar valor numerico en variable double\");\n RESULT = 0;\n }\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"V2\",77, ((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 143: // V2 ::= menos entero \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t\n try{\n RESULT = (Integer.parseInt(a)*-1);\n }catch(Exception ex){\n System.out.println(\"Error al detectar valor numerico en variable int\");\n RESULT = 0;\n }\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"V2\",77, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)), ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()), RESULT);\n }\n return CUP$Parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 144: // V2 ::= menos decimal \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t\n try{\n RESULT = (Double.parseDouble(a)*-1);\n }catch(Exception ex){\n System.out.println(\"Error al detectar valor numerico en variable double\");\n RESULT = 0;\n }\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"V2\",77, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)), ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()), RESULT);\n }\n return CUP$Parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 145: // W ::= W1 \n {\n String RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t\n RESULT = a;\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"W\",62, ((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 146: // W1 ::= W1 punto W1 \n {\n String RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-2)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tString b = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t\n RESULT = a + b;\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"W1\",63, ((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 147: // W1 ::= dolar identificador \n {\n String RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t\n RESULT = Principal.retornarValorCadenaVariable(a);\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"W1\",63, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)), ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()), RESULT);\n }\n return CUP$Parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 148: // W1 ::= textoEntreComillas \n {\n String RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t\n RESULT = a;\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"W1\",63, ((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 149: // X ::= X1 parentesisCierra \n {\n Integer RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).right;\n\t\tInteger a = (Integer)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-1)).value;\n\t\t\n RESULT = a;\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"X\",67, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)), ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()), RESULT);\n }\n return CUP$Parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 150: // X1 ::= X2 parentesisAbre Y \n {\n Integer RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).right;\n\t\tInteger a = (Integer)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-2)).value;\n\t\t\n RESULT = a;\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"X1\",68, ((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 151: // X1 ::= X3 parentesisAbre Z \n {\n Integer RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).right;\n\t\tInteger a = (Integer)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-2)).value;\n\t\t\n RESULT = a;\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"X1\",68, ((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 152: // X1 ::= X4 parentesisAbre AA \n {\n Integer RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).right;\n\t\tInteger a = (Integer)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-2)).value;\n\t\t\n RESULT = a;\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"X1\",68, ((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 153: // X1 ::= X5 parentesisAbre AB \n {\n Integer RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).right;\n\t\tInteger a = (Integer)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-2)).value;\n\t\t\n RESULT = a;\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"X1\",68, ((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 154: // X1 ::= X6 parentesisAbre AC \n {\n Integer RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).right;\n\t\tInteger a = (Integer)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-2)).value;\n\t\t\n RESULT = a;\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"X1\",68, ((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 155: // X1 ::= X7 parentesisAbre AD \n {\n Integer RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).right;\n\t\tInteger a = (Integer)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-2)).value;\n\t\t\n RESULT = a;\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"X1\",68, ((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 156: // X2 ::= crearParrafo \n {\n Integer RESULT =null;\n\t\t\n structParrafo = new StructParrafo();\n RESULT = 1;\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"X2\",69, ((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 157: // X3 ::= crearTextoA \n {\n Integer RESULT =null;\n\t\t\n structTextoA = new StructTextoA();\n RESULT = 2;\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"X3\",70, ((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 158: // X4 ::= crearTextoB \n {\n Integer RESULT =null;\n\t\t\n structTextoB = new StructTextoB();\n RESULT = 3;\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"X4\",71, ((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 159: // X5 ::= crearImagen \n {\n Integer RESULT =null;\n\t\t\n structImagen = new StructImagen();\n RESULT = 4;\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"X5\",72, ((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 160: // X6 ::= crearTabla \n {\n Integer RESULT =null;\n\t\t\n structTabla = new StructTabla();\n RESULT = 5;\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"X6\",73, ((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 161: // X7 ::= crearBoton \n {\n Integer RESULT =null;\n\t\t\n structBoton = new StructBoton();\n RESULT = 6;\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"X7\",74, ((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 162: // Y ::= textoEntreComillas coma tipoAlineacion \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-2)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tString b = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t\n structParrafo = new StructParrafo(a,b);\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"Y\",38, ((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 163: // Y ::= textoEntreComillas coma dolar identificador \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-3)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-3)).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-3)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tString b = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t \n if(verificarAlineacion(b))\n structParrafo = new StructParrafo(a,Principal.retornarValorCadenaVariable(b));\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"Y\",38, ((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 164: // Y ::= dolar identificador coma tipoAlineacion \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-2)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tString b = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t\n structParrafo = new StructParrafo(Principal.retornarValorCadenaVariable(a),b);\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"Y\",38, ((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 165: // Y ::= dolar identificador coma dolar identificador \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-3)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-3)).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-3)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tString b = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t\n if(verificarAlineacion(b))\n structParrafo = new StructParrafo(Principal.retornarValorCadenaVariable(a), Principal.retornarValorCadenaVariable(b));\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"Y\",38, ((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 166: // Y ::= textoEntreComillas \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t\n structParrafo.setContenido(a);\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"Y\",38, ((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 167: // Y ::= dolar identificador \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t\n structParrafo.setContenido(Principal.retornarValorCadenaVariable(a));\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"Y\",38, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)), ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()), RESULT);\n }\n return CUP$Parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 168: // Z ::= textoEntreComillas \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t\n structTextoA = new StructTextoA(a);\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"Z\",39, ((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 169: // Z ::= dolar identificador \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t\n structTextoA.setContenido(Principal.retornarValorCadenaVariable(a));\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"Z\",39, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)), ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()), RESULT);\n }\n return CUP$Parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 170: // AA ::= textoEntreComillas \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t\n structTextoB = new StructTextoB(a);\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"AA\",40, ((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 171: // AA ::= dolar identificador \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t\n structTextoB.setContenido(Principal.retornarValorCadenaVariable(a));\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"AA\",40, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)), ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()), RESULT);\n }\n return CUP$Parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 172: // AB ::= textoEntreComillas \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t\n structImagen = new StructImagen(a);\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"AB\",41, ((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 173: // AB ::= dolar identificador \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t \n structImagen = new StructImagen(Principal.retornarValorCadenaVariable(a));\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"AB\",41, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)), ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()), RESULT);\n }\n return CUP$Parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 174: // AB ::= textoEntreComillas coma dolar identificador \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-3)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-3)).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-3)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tString b = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t\n structImagen = new StructImagen(a, Principal.retornarValorCadenaVariable(b));\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"AB\",41, ((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 175: // AB ::= textoEntreComillas coma V1 \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-2)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tObject b = (Object)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t\n structImagen = new StructImagen(a, b.toString());\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"AB\",41, ((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 176: // AB ::= dolar identificador coma dolar identificador \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-3)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-3)).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-3)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tString b = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t \n structImagen = new StructImagen(Principal.retornarValorCadenaVariable(a), Principal.retornarValorCadenaVariable(b));\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"AB\",41, ((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 177: // AB ::= dolar identificador coma V1 \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-2)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tObject b = (Object)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t \n structImagen = new StructImagen(Principal.retornarValorCadenaVariable(a), b.toString());\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"AB\",41, ((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 178: // AB ::= textoEntreComillas coma dolar identificador coma dolar identificador \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-6)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-6)).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-6)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-3)).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-3)).right;\n\t\tString b = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-3)).value;\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\n structImagen = new StructImagen(a, Principal.retornarValorCadenaVariable(b), Principal.retornarValorCadenaVariable(c));\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"AB\",41, ((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 179: // AB ::= textoEntreComillas coma dolar identificador coma V1 \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-5)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-5)).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-5)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).right;\n\t\tString b = (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.peek()).left;\n\t\tint cright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tObject c = (Object)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t\n structImagen = new StructImagen(a, Principal.retornarValorCadenaVariable(b), c.toString());\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"AB\",41, ((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 180: // AB ::= textoEntreComillas coma V1 coma dolar identificador \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-5)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-5)).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-5)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-3)).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-3)).right;\n\t\tObject b = (Object)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-3)).value;\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\n structImagen = new StructImagen(a, b.toString(), Principal.retornarValorCadenaVariable(c));\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"AB\",41, ((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 181: // AB ::= textoEntreComillas coma V1 coma V1 \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-4)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-4)).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-4)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).right;\n\t\tObject b = (Object)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-2)).value;\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\tObject c = (Object)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t\n structImagen = new StructImagen(a, b.toString(), c.toString());\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"AB\",41, ((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 182: // AB ::= dolar identificador coma dolar identificador coma dolar identificador \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-6)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-6)).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-6)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-3)).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-3)).right;\n\t\tString b = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-3)).value;\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 \n structImagen = new StructImagen(Principal.retornarValorCadenaVariable(a), Principal.retornarValorCadenaVariable(b), Principal.retornarValorCadenaVariable(c));\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"AB\",41, ((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 183: // AB ::= dolar identificador coma dolar identificador coma V1 \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-5)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-5)).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-5)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).right;\n\t\tString b = (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.peek()).left;\n\t\tint cright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tObject c = (Object)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t \n structImagen = new StructImagen(Principal.retornarValorCadenaVariable(a), Principal.retornarValorCadenaVariable(b), c.toString());\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"AB\",41, ((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 184: // AB ::= dolar identificador coma V1 coma dolar identificador \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-5)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-5)).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-5)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-3)).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-3)).right;\n\t\tObject b = (Object)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-3)).value;\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 \n structImagen = new StructImagen(Principal.retornarValorCadenaVariable(a), b.toString(), Principal.retornarValorCadenaVariable(c));\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"AB\",41, ((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 185: // AB ::= dolar identificador coma V1 coma V1 \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-4)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-4)).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-4)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).right;\n\t\tObject b = (Object)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-2)).value;\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\tObject c = (Object)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t \n structImagen = new StructImagen(Principal.retornarValorCadenaVariable(a), b.toString(), c.toString());\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"AB\",41, ((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 186: // AC ::= AC coma AC \n {\n Object RESULT =null;\n\n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"AC\",42, ((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 187: // AC ::= AF AE corcheteCierra \n {\n Object RESULT =null;\n\t\t\n structTabla.agregarFila();\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"AC\",42, ((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 188: // AD ::= textoEntreComillas coma textoEntreComillas \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-2)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tString b = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t\n structBoton = new StructBoton(a,b);\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"AD\",43, ((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 189: // AD ::= textoEntreComillas coma dolar identificador \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-3)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-3)).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-3)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tString b = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t\n structBoton = new StructBoton(a, Principal.retornarValorCadenaVariable(b));\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"AD\",43, ((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 190: // AD ::= dolar identificador coma textoEntreComillas \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-2)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tString b = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t\n structBoton = new StructBoton(Principal.retornarValorCadenaVariable(a), b);\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"AD\",43, ((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 191: // AD ::= dolar identificador coma dolar identificador \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-3)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-3)).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-3)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tString b = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t\n structBoton = new StructBoton(Principal.retornarValorCadenaVariable(a), Principal.retornarValorCadenaVariable(b));\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"AD\",43, ((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 192: // AF ::= corcheteAbre \n {\n Object RESULT =null;\n\t\t\n structTabla.crearFila();\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"AF\",44, ((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 193: // AE ::= AE coma AE \n {\n Object RESULT =null;\n\n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"AE\",45, ((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 194: // AE ::= textoEntreComillas \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t\n structTabla.agregarElementoAFila(a);\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"AE\",45, ((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 195: // AE ::= dolar identificador \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t\n structTabla.agregarElementoAFila(Principal.retornarValorCadenaVariable(a));\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"AE\",45, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)), ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()), RESULT);\n }\n return CUP$Parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 196: // AE ::= booleano \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t\n structTabla.agregarElementoAFila(a);\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"AE\",45, ((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 197: // AE ::= V1 \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t\n structTabla.agregarElementoAFila(a.toString());\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"AE\",45, ((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 198: // AH ::= getContenido AM \n {\n Object RESULT =null;\n\t\t\n Struct struct = Principal.retornarStruct(identificadorStruct);\n switch(struct.getTipo()){\n case \"parrafo\": RESULT = ((StructParrafo)struct.getValor()).getContenido();\n break;\n case \"textoA\": RESULT = ((StructTextoA)struct.getValor()).getContenido();\n break;\n case \"textoB\": RESULT = ((StructTextoB)struct.getValor()).getContenido();\n break;\n default: Principal.errores.add(new Token(\"NO EXISTE FUNCION PARA ESTA ESTRUCTURA\", \"ERROR SINTACTICO - FUNCION NO ENCONTRADA\", 0, 0));\n break;\n }\n tipoDato = \"cadena\";\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"AH\",78, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)), ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()), RESULT);\n }\n return CUP$Parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 199: // AH ::= getAlineacion AM \n {\n Object RESULT =null;\n\t\t\n Struct struct = Principal.retornarStruct(identificadorStruct);\n switch(struct.getTipo()){\n case \"parrafo\": RESULT = ((StructParrafo)struct.getValor()).getAlineacion();\n break;\n default: Principal.errores.add(new Token(\"NO EXISTE FUNCION PARA ESTA ESTRUCTURA\", \"ERROR SINTACTICO - FUNCION NO ENCONTRADA\", 0, 0));\n break;\n }\n tipoDato = \"cadena\";\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"AH\",78, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)), ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()), RESULT);\n }\n return CUP$Parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 200: // AH ::= getPath AM \n {\n Object RESULT =null;\n\t\t\n Struct struct = Principal.retornarStruct(identificadorStruct);\n switch(struct.getTipo()){\n case \"imagen\": RESULT = ((StructImagen)struct.getValor()).getPath();\n break;\n default: Principal.errores.add(new Token(\"NO EXISTE FUNCION PARA ESTA ESTRUCTURA\", \"ERROR SINTACTICO - FUNCION NO ENCONTRADA\", 0, 0));\n break;\n }\n tipoDato = \"cadena\";\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"AH\",78, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)), ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()), RESULT);\n }\n return CUP$Parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 201: // AH ::= getAncho AM \n {\n Object RESULT =null;\n\t\t\n Struct struct = Principal.retornarStruct(identificadorStruct);\n switch(struct.getTipo()){\n case \"imagen\": RESULT = ((StructImagen)struct.getValor()).getAncho();\n break;\n default: Principal.errores.add(new Token(\"NO EXISTE FUNCION PARA ESTA ESTRUCTURA\", \"ERROR SINTACTICO - FUNCION NO ENCONTRADA\", 0, 0));\n break;\n }\n tipoDato = \"entero\";\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"AH\",78, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)), ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()), RESULT);\n }\n return CUP$Parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 202: // AH ::= getAlto AM \n {\n Object RESULT =null;\n\t\t\n Struct struct = Principal.retornarStruct(identificadorStruct);\n switch(struct.getTipo()){\n case \"imagen\": RESULT = ((StructImagen)struct.getValor()).getAlto();\n break;\n default: Principal.errores.add(new Token(\"NO EXISTE FUNCION PARA ESTA ESTRUCTURA\", \"ERROR SINTACTICO - FUNCION NO ENCONTRADA\", 0, 0));\n break;\n }\n tipoDato = \"entero\";\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"AH\",78, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)), ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()), RESULT);\n }\n return CUP$Parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 203: // AH ::= getTexto AM \n {\n Object RESULT =null;\n\t\t\n Struct struct = Principal.retornarStruct(identificadorStruct);\n switch(struct.getTipo()){\n case \"boton\": RESULT = ((StructBoton)struct.getValor()).getTexto();\n break;\n default: Principal.errores.add(new Token(\"NO EXISTE FUNCION PARA ESTA ESTRUCTURA\", \"ERROR SINTACTICO - FUNCION NO ENCONTRADA\", 0, 0));\n break;\n }\n tipoDato = \"cadena\";\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"AH\",78, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)), ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()), RESULT);\n }\n return CUP$Parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 204: // AI ::= setContenido parentesisAbre AJ parentesisCierra puntoYComa \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-2)).value;\n\t\t\n switch(Principal.retornarStruct(identificadorStruct).getTipo()){\n case \"parrafo\": \n StructParrafo strParrafo = (StructParrafo)(Principal.structs.get(Principal.indiceStruct(identificadorStruct)).getValor());\n strParrafo.setContenido(a);\n Principal.structs.set(Principal.indiceStruct(identificadorStruct), new Struct(\"parrafo\", identificadorStruct, strParrafo));\n identificadorStruct = \"\";\n break;\n case \"textoA\": \n StructTextoA strTextoA = (StructTextoA)(Principal.structs.get(Principal.indiceStruct(identificadorStruct)).getValor());\n strTextoA.setContenido(a);\n Principal.structs.set(Principal.indiceStruct(identificadorStruct), new Struct(\"textoA\", identificadorStruct, strTextoA));\n identificadorStruct = \"\";\n break;\n case \"textoB\": \n StructTextoB strTextoB = (StructTextoB)(Principal.structs.get(Principal.indiceStruct(identificadorStruct)).getValor());\n strTextoB.setContenido(a);\n Principal.structs.set(Principal.indiceStruct(identificadorStruct), new Struct(\"textoB\", identificadorStruct, strTextoB));\n identificadorStruct = \"\";\n break;\n default: Principal.errores.add(new Token(\"NO EXISTE FUNCION PARA ESTA ESTRUCTURA\", \"ERROR SINTACTICO - FUNCION NO ENCONTRADA\", 0, 0));\n break;\n }\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"AI\",46, ((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 205: // AI ::= setAlineacion parentesisAbre AJ parentesisCierra puntoYComa \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-2)).value;\n\t\t\n switch(Principal.retornarStruct(identificadorStruct).getTipo()){\n case \"parrafo\": \n StructParrafo strParrafo = (StructParrafo)(Principal.structs.get(Principal.indiceStruct(identificadorStruct)).getValor());\n strParrafo.setAlineacion(a);\n Principal.structs.set(Principal.indiceStruct(identificadorStruct), new Struct(\"parrafo\", identificadorStruct, strParrafo));\n identificadorStruct = \"\";\n break;\n default: Principal.errores.add(new Token(\"NO EXISTE FUNCION PARA ESTA ESTRUCTURA\", \"ERROR SINTACTICO - FUNCION NO ENCONTRADA\", 0, 0));\n break;\n }\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"AI\",46, ((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 206: // AI ::= setPath parentesisAbre AJ parentesisCierra puntoYComa \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-2)).value;\n\t\t\n switch(Principal.retornarStruct(identificadorStruct).getTipo()){\n case \"imagen\": \n StructImagen strImagen = (StructImagen)(Principal.structs.get(Principal.indiceStruct(identificadorStruct)).getValor());\n strImagen.setPath(a);\n Principal.structs.set(Principal.indiceStruct(identificadorStruct), new Struct(\"imagen\", identificadorStruct, strImagen));\n identificadorStruct = \"\";\n break;\n default: Principal.errores.add(new Token(\"NO EXISTE FUNCION PARA ESTA ESTRUCTURA\", \"ERROR SINTACTICO - FUNCION NO ENCONTRADA\", 0, 0));\n break;\n }\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"AI\",46, ((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 207: // AI ::= setAlto parentesisAbre AK parentesisCierra puntoYComa \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-2)).value;\n\t\t\n switch(Principal.retornarStruct(identificadorStruct).getTipo()){\n case \"imagen\": \n StructImagen strImagen = (StructImagen)(Principal.structs.get(Principal.indiceStruct(identificadorStruct)).getValor());\n strImagen.setAlto(a);\n Principal.structs.set(Principal.indiceStruct(identificadorStruct), new Struct(\"imagen\", identificadorStruct, strImagen));\n identificadorStruct = \"\";\n break;\n default: Principal.errores.add(new Token(\"NO EXISTE FUNCION PARA ESTA ESTRUCTURA\", \"ERROR SINTACTICO - FUNCION NO ENCONTRADA\", 0, 0));\n break;\n }\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"AI\",46, ((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 208: // AI ::= setAncho parentesisAbre AK parentesisCierra puntoYComa \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-2)).value;\n\t\t\n switch(Principal.retornarStruct(identificadorStruct).getTipo()){\n case \"imagen\": \n StructImagen strImagen = (StructImagen)(Principal.structs.get(Principal.indiceStruct(identificadorStruct)).getValor());\n strImagen.setAncho(a);\n Principal.structs.set(Principal.indiceStruct(identificadorStruct), new Struct(\"imagen\", identificadorStruct, strImagen));\n identificadorStruct = \"\";\n break;\n default: Principal.errores.add(new Token(\"NO EXISTE FUNCION PARA ESTA ESTRUCTURA\", \"ERROR SINTACTICO - FUNCION NO ENCONTRADA\", 0, 0));\n break;\n }\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"AI\",46, ((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 209: // AI ::= setBorde parentesisAbre AL parentesisCierra puntoYComa \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-2)).value;\n\t\t\n switch(Principal.retornarStruct(identificadorStruct).getTipo()){\n case \"tabla\": \n StructTabla strTabla = (StructTabla)(Principal.structs.get(Principal.indiceStruct(identificadorStruct)).getValor());\n strTabla.setBorde(a);\n Principal.structs.set(Principal.indiceStruct(identificadorStruct), new Struct(\"tabla\", identificadorStruct, strTabla));\n identificadorStruct = \"\";\n break;\n default: Principal.errores.add(new Token(\"NO EXISTE FUNCION PARA ESTA ESTRUCTURA\", \"ERROR SINTACTICO - FUNCION NO ENCONTRADA\", 0, 0));\n break;\n }\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"AI\",46, ((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 210: // AI ::= setTexto parentesisAbre AJ parentesisCierra puntoYComa \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-2)).value;\n\t\t\n switch(Principal.retornarStruct(identificadorStruct).getTipo()){\n case \"boton\": \n StructBoton strBoton = (StructBoton)(Principal.structs.get(Principal.indiceStruct(identificadorStruct)).getValor());\n strBoton.setTexto(a);\n Principal.structs.set(Principal.indiceStruct(identificadorStruct), new Struct(\"boton\", identificadorStruct, strBoton));\n identificadorStruct = \"\";\n break;\n default: Principal.errores.add(new Token(\"NO EXISTE FUNCION PARA ESTA ESTRUCTURA\", \"ERROR SINTACTICO - FUNCION NO ENCONTRADA\", 0, 0));\n break;\n }\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"AI\",46, ((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 211: // AI ::= clickBoton parentesisAbre AJ parentesisCierra puntoYComa \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-2)).value;\n\t\t\n switch(Principal.retornarStruct(identificadorStruct).getTipo()){\n case \"boton\": \n StructBoton strBoton = (StructBoton)(Principal.structs.get(Principal.indiceStruct(identificadorStruct)).getValor());\n strBoton.click(a);\n Principal.structs.set(Principal.indiceStruct(identificadorStruct), new Struct(\"boton\", identificadorStruct, strBoton));\n identificadorStruct = \"\";\n break;\n default: Principal.errores.add(new Token(\"NO EXISTE FUNCION PARA ESTA ESTRUCTURA\", \"ERROR SINTACTICO - FUNCION NO ENCONTRADA\", 0, 0));\n break;\n }\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"AI\",46, ((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 212: // AJ ::= textoEntreComillas \n {\n String RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t\n RESULT = a;\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"AJ\",64, ((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 213: // AJ ::= dolar identificador \n {\n String RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t\n RESULT = Principal.retornarValorCadenaVariable(a);\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"AJ\",64, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)), ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()), RESULT);\n }\n return CUP$Parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 214: // AJ ::= tipoAlineacion \n {\n String RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t\n RESULT = a;\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"AJ\",64, ((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 215: // AJ ::= numeral identificador punto AH1 \n {\n String RESULT =null;\n\n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"AJ\",64, ((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 216: // AK ::= dolar identificador \n {\n String RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t\n RESULT = Principal.retornarValorCadenaVariable(a);\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"AK\",65, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)), ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()), RESULT);\n }\n return CUP$Parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 217: // AK ::= V1 \n {\n String RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t\n RESULT = a.toString();\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"AK\",65, ((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 218: // AL ::= dolar identificador \n {\n String RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t\n RESULT = Principal.retornarValorCadenaVariable(a);\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"AL\",66, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)), ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()), RESULT);\n }\n return CUP$Parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 219: // AL ::= booleano \n {\n String RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t\n RESULT = a;\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"AL\",66, ((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 220: // AM ::= parentesisAbre parentesisCierra puntoYComa \n {\n Object RESULT =null;\n\n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"AM\",47, ((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 221: // AN ::= dolar identificador \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t\n contadorRepetidor++;\n repetidores.add(Integer.parseInt(Principal.retornarValorCadenaVariable(a)));\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"AN\",48, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)), ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()), RESULT);\n }\n return CUP$Parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 222: // AN ::= entero \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t\n contadorRepetidor++;\n repetidores.add(Integer.parseInt(a));\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"AN\",48, ((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 223: // AO ::= AO AP \n {\n Object RESULT =null;\n\n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"AO\",49, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)), ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()), RESULT);\n }\n return CUP$Parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 224: // AO ::= AP \n {\n Object RESULT =null;\n\n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"AO\",49, ((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 225: // AP ::= echo W puntoYComa \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-1)).value;\n\t\t\n if(contadorRepetidor > 0){\n for(int i = 0; i < repetidores.get(contadorRepetidor); i++)\n Principal.txtConsola.append(a+\"\\n\");\n }else{\n for(int i = 0; i < repetidores.get(0); i++)\n Principal.txtConsola.append(a+\"\\n\");\n }\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"AP\",51, ((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 226: // AP ::= numeral U2 punto insertar parentesisAbre parentesisCierra puntoYComa \n {\n Object RESULT =null;\n\t\t\n if(contadorRepetidor > 0){\n for(int i = 0; i < repetidores.get(contadorRepetidor); i++){\n Struct struct = Principal.retornarStruct(identificadorStruct);\n switch(struct.getTipo()){\n case \"parrafo\": ((StructParrafo)struct.getValor()).insertar();\n break;\n case \"textoA\": ((StructTextoA)struct.getValor()).insertar();\n break;\n case \"textoB\": ((StructTextoB)struct.getValor()).insertar();\n break;\n case \"imagen\": ((StructImagen)struct.getValor()).insertar();\n break;\n case \"tabla\": ((StructTabla)struct.getValor()).insertar();\n break;\n case \"boton\": ((StructBoton)struct.getValor()).insertar();\n break;\n default: Principal.errores.add(new Token(\"ESTRUCTURA INVALIDA\", \"ERROR SINTACTICO - FUNCION NO ENCONTRADA\", 0, 0));\n break;\n }\n }\n }else{\n for(int i = 0; i < repetidores.get(0); i++){\n Struct struct = Principal.retornarStruct(identificadorStruct);\n switch(struct.getTipo()){\n case \"parrafo\": ((StructParrafo)struct.getValor()).insertar();\n break;\n case \"textoA\": ((StructTextoA)struct.getValor()).insertar();\n break;\n case \"textoB\": ((StructTextoB)struct.getValor()).insertar();\n break;\n case \"imagen\": ((StructImagen)struct.getValor()).insertar();\n break;\n case \"tabla\": ((StructTabla)struct.getValor()).insertar();\n break;\n case \"boton\": ((StructBoton)struct.getValor()).insertar();\n break;\n default: Principal.errores.add(new Token(\"ESTRUCTURA INVALIDA\", \"ERROR SINTACTICO - FUNCION NO ENCONTRADA\", 0, 0));\n break;\n }\n }\n }\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"AP\",51, ((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 227: // AP ::= AQ00 parentesisAbre AQ0 parentesisCierra llaveAbre AO1 llaveCierra \n {\n Object RESULT =null;\n\t\t\n contadorIf--;\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"AP\",51, ((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 228: // AP ::= AQ00 parentesisAbre AQ0 parentesisCierra llaveAbre AO1 llaveCierra controlElse llaveAbre AO10 llaveCierra \n {\n Object RESULT =null;\n\t\t\n contadorIf--;\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"AP\",51, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-10)), ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()), RESULT);\n }\n return CUP$Parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 229: // AP ::= repetir parentesisAbre AN parentesisCierra llaveAbre AO llaveCierra \n {\n Object RESULT =null;\n\t\t\n contadorRepetidor--;\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"AP\",51, ((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 230: // AO1 ::= AO1 AP1 \n {\n Object RESULT =null;\n\n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"AO1\",50, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)), ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()), RESULT);\n }\n return CUP$Parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 231: // AO1 ::= AP1 \n {\n Object RESULT =null;\n\n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"AO1\",50, ((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 232: // AP1 ::= echo W puntoYComa \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-1)).value;\n\t\t\n if(contadorIf > 0){\n if(condicionales.get(contadorIf)){\n Principal.txtConsola.append(a+\"\\n\");\n }\n }else{\n if(condicionales.get(0)){\n Principal.txtConsola.append(a+\"\\n\");\n }\n }\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"AP1\",52, ((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 233: // AP1 ::= numeral U2 punto insertar parentesisAbre parentesisCierra puntoYComa \n {\n Object RESULT =null;\n\t\t\n if(contadorIf > 0){\n if(condicionales.get(contadorIf)){\n Struct struct = Principal.retornarStruct(identificadorStruct);\n switch(struct.getTipo()){\n case \"parrafo\": ((StructParrafo)struct.getValor()).insertar();\n break;\n case \"textoA\": ((StructTextoA)struct.getValor()).insertar();\n break;\n case \"textoB\": ((StructTextoB)struct.getValor()).insertar();\n break;\n case \"imagen\": ((StructImagen)struct.getValor()).insertar();\n break;\n case \"tabla\": ((StructTabla)struct.getValor()).insertar();\n break;\n case \"boton\": ((StructBoton)struct.getValor()).insertar();\n break;\n default: Principal.errores.add(new Token(\"ESTRUCTURA INVALIDA\", \"ERROR SINTACTICO - FUNCION NO ENCONTRADA\", 0, 0));\n break;\n }\n }\n }else{\n if(condicionales.get(0)){\n Struct struct = Principal.retornarStruct(identificadorStruct);\n switch(struct.getTipo()){\n case \"parrafo\": ((StructParrafo)struct.getValor()).insertar();\n break;\n case \"textoA\": ((StructTextoA)struct.getValor()).insertar();\n break;\n case \"textoB\": ((StructTextoB)struct.getValor()).insertar();\n break;\n case \"imagen\": ((StructImagen)struct.getValor()).insertar();\n break;\n case \"tabla\": ((StructTabla)struct.getValor()).insertar();\n break;\n case \"boton\": ((StructBoton)struct.getValor()).insertar();\n break;\n default: Principal.errores.add(new Token(\"ESTRUCTURA INVALIDA\", \"ERROR SINTACTICO - FUNCION NO ENCONTRADA\", 0, 0));\n break;\n }\n }\n }\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"AP1\",52, ((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 234: // AP1 ::= controlIf parentesisAbre AQ0 parentesisCierra llaveAbre AO1 llaveCierra \n {\n Object RESULT =null;\n\t\t\n contadorIf--;\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"AP1\",52, ((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 235: // AP1 ::= controlIf parentesisAbre AQ0 parentesisCierra llaveAbre AO1 llaveCierra controlElse llaveAbre AO10 llaveCierra \n {\n Object RESULT =null;\n\t\t\n contadorIf--;\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"AP1\",52, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-10)), ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()), RESULT);\n }\n return CUP$Parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 236: // AP1 ::= U5 parentesisAbre AN parentesisCierra llaveAbre AO llaveCierra \n {\n Object RESULT =null;\n\t\t\n contadorRepetidor--;\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"AP1\",52, ((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 237: // AO10 ::= AO10 AP10 \n {\n Object RESULT =null;\n\n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"AO10\",57, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)), ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()), RESULT);\n }\n return CUP$Parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 238: // AO10 ::= AP10 \n {\n Object RESULT =null;\n\n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"AO10\",57, ((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 239: // AP10 ::= echo W puntoYComa \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-1)).value;\n\t\t\n if(contadorIf > 0){\n if(!condicionales.get(contadorIf)){\n Principal.txtConsola.append(a+\"\\n\");\n }\n }else{\n if(condicionales.get(0)){\n Principal.txtConsola.append(a+\"\\n\");\n }\n }\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"AP10\",58, ((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 240: // AP10 ::= numeral U2 punto insertar parentesisAbre parentesisCierra puntoYComa \n {\n Object RESULT =null;\n\t\t\n if(contadorIf > 0){\n if(!condicionales.get(contadorIf)){\n Struct struct = Principal.retornarStruct(identificadorStruct);\n switch(struct.getTipo()){\n case \"parrafo\": ((StructParrafo)struct.getValor()).insertar();\n break;\n case \"textoA\": ((StructTextoA)struct.getValor()).insertar();\n break;\n case \"textoB\": ((StructTextoB)struct.getValor()).insertar();\n break;\n case \"imagen\": ((StructImagen)struct.getValor()).insertar();\n break;\n case \"tabla\": ((StructTabla)struct.getValor()).insertar();\n break;\n case \"boton\": ((StructBoton)struct.getValor()).insertar();\n break;\n default: Principal.errores.add(new Token(\"ESTRUCTURA INVALIDA\", \"ERROR SINTACTICO - FUNCION NO ENCONTRADA\", 0, 0));\n break;\n }\n }\n }else{\n if(condicionales.get(0)){\n Struct struct = Principal.retornarStruct(identificadorStruct);\n switch(struct.getTipo()){\n case \"parrafo\": ((StructParrafo)struct.getValor()).insertar();\n break;\n case \"textoA\": ((StructTextoA)struct.getValor()).insertar();\n break;\n case \"textoB\": ((StructTextoB)struct.getValor()).insertar();\n break;\n case \"imagen\": ((StructImagen)struct.getValor()).insertar();\n break;\n case \"tabla\": ((StructTabla)struct.getValor()).insertar();\n break;\n case \"boton\": ((StructBoton)struct.getValor()).insertar();\n break;\n default: Principal.errores.add(new Token(\"ESTRUCTURA INVALIDA\", \"ERROR SINTACTICO - FUNCION NO ENCONTRADA\", 0, 0));\n break;\n }\n }\n }\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"AP10\",58, ((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 241: // AP10 ::= controlIf parentesisAbre AQ0 parentesisCierra llaveAbre AO1 llaveCierra \n {\n Object RESULT =null;\n\t\t\n contadorIf--;\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"AP10\",58, ((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 242: // AP10 ::= controlIf parentesisAbre AQ0 parentesisCierra llaveAbre AO1 llaveCierra controlElse llaveAbre AO10 llaveCierra \n {\n Object RESULT =null;\n\t\t\n contadorIf--;\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"AP10\",58, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-10)), ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()), RESULT);\n }\n return CUP$Parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 243: // AP10 ::= U5 parentesisAbre AN parentesisCierra llaveAbre AO llaveCierra \n {\n Object RESULT =null;\n\t\t\n contadorRepetidor--;\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"AP10\",58, ((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 244: // AQ00 ::= controlIf \n {\n Object RESULT =null;\n\t\t\n condicionales = new ArrayList();\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"AQ00\",56, ((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 245: // AQ0 ::= AQ \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tBoolean a = (Boolean)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t\n contadorIf++;\n condicionales.add(a);\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"AQ0\",55, ((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 246: // AQ ::= AQ and AQ \n {\n Boolean RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).right;\n\t\tBoolean a = (Boolean)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-2)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tBoolean b = (Boolean)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t\n if(a && b)\n RESULT = true;\n else\n RESULT = false;\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"AQ\",80, ((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 247: // AQ ::= AQ or AQ \n {\n Boolean RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).right;\n\t\tBoolean a = (Boolean)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-2)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tBoolean b = (Boolean)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t\n if(a | b)\n RESULT = true;\n else\n RESULT = false;\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"AQ\",80, ((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 248: // AQ ::= not AQ \n {\n Boolean RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tBoolean a = (Boolean)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t\n if(!a)\n RESULT = true;\n else\n RESULT = false;\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"AQ\",80, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)), ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()), RESULT);\n }\n return CUP$Parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 249: // AQ ::= parentesisAbre AQ parentesisCierra \n {\n Boolean RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).right;\n\t\tBoolean a = (Boolean)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-1)).value;\n\t\t\n RESULT = a;\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"AQ\",80, ((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 250: // AQ ::= AR \n {\n Boolean RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tBoolean a = (Boolean)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t\n RESULT = a;\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"AQ\",80, ((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 251: // AR ::= AS menorQue AS \n {\n Boolean RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).right;\n\t\tDouble a = (Double)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-2)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tDouble b = (Double)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t\n if(a < b)\n RESULT = true;\n else\n RESULT = false;\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"AR\",79, ((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 252: // AR ::= AS mayorQue AS \n {\n Boolean RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).right;\n\t\tDouble a = (Double)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-2)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tDouble b = (Double)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t\n if(a > b)\n RESULT = true;\n else\n RESULT = false; \n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"AR\",79, ((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 253: // AR ::= AS menorIgual AS \n {\n Boolean RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).right;\n\t\tDouble a = (Double)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-2)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tDouble b = (Double)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t\n if(a <= b)\n RESULT = true;\n else\n RESULT = false;\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"AR\",79, ((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 254: // AR ::= AS mayorIgual AS \n {\n Boolean RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).right;\n\t\tDouble a = (Double)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-2)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tDouble b = (Double)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t\n if(a >= b)\n RESULT = true;\n else\n RESULT = false;\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"AR\",79, ((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 255: // AR ::= AS noIgual AS \n {\n Boolean RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).right;\n\t\tDouble a = (Double)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-2)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tDouble b = (Double)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t\n if(a != b)\n RESULT = true;\n else\n RESULT = false;\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"AR\",79, ((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 256: // AR ::= AS igualIgual AS \n {\n Boolean RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).right;\n\t\tDouble a = (Double)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-2)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tDouble b = (Double)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t\n if(a == b)\n RESULT = true;\n else\n RESULT = false;\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"AR\",79, ((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 257: // AR ::= AS \n {\n Boolean RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tDouble a = (Double)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t\n RESULT = (a > 0)? true : false;\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"AR\",79, ((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 258: // AS ::= dolar identificador \n {\n Double RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t\n Variable var = Principal.retornarVariable(a);\n switch(var.getTipo()){\n case \"entero\": RESULT = Double.parseDouble(var.getValor().toString());\n break;\n case \"decimal\": RESULT = Double.parseDouble(var.getValor().toString());\n break;\n case \"booleano\": RESULT = (Boolean.valueOf(var.getValor().toString())) ? 1.0 : 0;\n break;\n default: Principal.errores.add(new Token(\"TIPO DATO INVALIDO\", \"ERROR SINTACTICO - TIPO DATO NO ESPERADO\", 0, 0));\n break;\n }\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"AS\",81, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)), ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()), RESULT);\n }\n return CUP$Parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 259: // AS ::= booleano \n {\n Double RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t\n RESULT = (Boolean.valueOf(a)) ? 1.0 : 0;\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"AS\",81, ((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 260: // AS ::= V1 \n {\n Double RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t\n RESULT = Double.parseDouble(a.toString());\n \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"AS\",81, ((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 261: // AH1 ::= getContenido AH2 \n {\n Object RESULT =null;\n\n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"AH1\",53, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)), ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()), RESULT);\n }\n return CUP$Parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 262: // AH1 ::= getAlineacion AH2 \n {\n Object RESULT =null;\n\n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"AH1\",53, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)), ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()), RESULT);\n }\n return CUP$Parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 263: // AH1 ::= getPath AH2 \n {\n Object RESULT =null;\n\n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"AH1\",53, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)), ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()), RESULT);\n }\n return CUP$Parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 264: // AH1 ::= getAncho AH2 \n {\n Object RESULT =null;\n\n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"AH1\",53, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)), ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()), RESULT);\n }\n return CUP$Parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 265: // AH1 ::= getAlto AH2 \n {\n Object RESULT =null;\n\n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"AH1\",53, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)), ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()), RESULT);\n }\n return CUP$Parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 266: // AH1 ::= getTexto AH2 \n {\n Object RESULT =null;\n\n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"AH1\",53, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)), ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()), RESULT);\n }\n return CUP$Parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 267: // AH2 ::= parentesisAbre parentesisCierra \n {\n Object RESULT =null;\n\n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"AH2\",54, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)), ((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": "970102aace25a8057d5b4ed45489fe4e", "score": "0.57547826", "text": "private Action parseAction(String s) throws Exception {\n String actionString;\n \n if (s.contains(MixtapeAction.ADD_SONG.name())) {\n actionString = actionFormats.get(MixtapeAction.ADD_SONG).format(s); \n return getActionWith3Args(MixtapeAction.ADD_SONG, actionString);\n } else if (s.contains(MixtapeAction.ADD_PLAYLIST.name())) {\n actionString = actionFormats.get(MixtapeAction.ADD_PLAYLIST).format(s);\n return getActionWith3Args(MixtapeAction.ADD_PLAYLIST, actionString);\n } else if (s.contains(MixtapeAction.REMOVE_PLAYLIST.name())) {\n actionString = actionFormats.get(MixtapeAction.REMOVE_PLAYLIST).format(s);\n return getActionWith2Args(MixtapeAction.REMOVE_PLAYLIST, actionString);\n } else {\n throw new Exception(\"Unknown action \" + s);\n }\n }", "title": "" }, { "docid": "65ae852a862fdeb91b06d43ac97aae27", "score": "0.5751977", "text": "protected abstract void act();", "title": "" }, { "docid": "b27108768a1246664d04a821f911aef3", "score": "0.5743911", "text": "String getAction();", "title": "" }, { "docid": "b27108768a1246664d04a821f911aef3", "score": "0.5743911", "text": "String getAction();", "title": "" }, { "docid": "e25c950328c0a20ba9a25dd663f50a57", "score": "0.57216", "text": "@Override\n public void doAction() {\n System.out.println(\"a팀 출동\");\n\n\n }", "title": "" }, { "docid": "5288732e5c458db0bc584cee300720c4", "score": "0.572026", "text": "public abstract int makeActionDecision();", "title": "" }, { "docid": "6e8b77ad2a4c29b69cba1808b61e8b0b", "score": "0.57125384", "text": "public void act() \r\n {\r\n //\r\n }", "title": "" }, { "docid": "6e8b77ad2a4c29b69cba1808b61e8b0b", "score": "0.57125384", "text": "public void act() \r\n {\r\n //\r\n }", "title": "" }, { "docid": "84d425df5c6c8c1f4175018869575221", "score": "0.5711355", "text": "void action(TestAction testAction);", "title": "" }, { "docid": "5bcd0d28cc616cb335c0e50a3050ff82", "score": "0.5699606", "text": "public abstract String getActions();", "title": "" }, { "docid": "a5e8de171f6fe6914f6aa58954a999aa", "score": "0.5696217", "text": "public interface SpecialExplorerAction {\n\tpublic State applySpecialAction(State curState);\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": "74075277676286a8aef1990f7df503b6", "score": "0.5689904", "text": "public final java_cup.runtime.Symbol CUP$Analizador_lexicup$do_action_part00000000(\n int CUP$Analizador_lexicup$act_num,\n java_cup.runtime.lr_parser CUP$Analizador_lexicup$parser,\n java.util.Stack CUP$Analizador_lexicup$stack,\n int CUP$Analizador_lexicup$top)\n throws java.lang.Exception\n {\n /* Symbol object for return from actions */\n java_cup.runtime.Symbol CUP$Analizador_lexicup$result;\n\n /* select the action based on the action number */\n switch (CUP$Analizador_lexicup$act_num)\n {\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 0: // $START ::= prueba EOF \n {\n Object RESULT =null;\n\t\tint start_valleft = ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.elementAt(CUP$Analizador_lexicup$top-1)).left;\n\t\tint start_valright = ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.elementAt(CUP$Analizador_lexicup$top-1)).right;\n\t\tString start_val = (String)((java_cup.runtime.Symbol) CUP$Analizador_lexicup$stack.elementAt(CUP$Analizador_lexicup$top-1)).value;\n\t\tRESULT = start_val;\n CUP$Analizador_lexicup$result = parser.getSymbolFactory().newSymbol(\"$START\",0, ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.elementAt(CUP$Analizador_lexicup$top-1)), ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), RESULT);\n }\n /* ACCEPT */\n CUP$Analizador_lexicup$parser.done_parsing();\n return CUP$Analizador_lexicup$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 1: // prueba ::= E E \n {\n String RESULT =null;\n\n CUP$Analizador_lexicup$result = parser.getSymbolFactory().newSymbol(\"prueba\",1, ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.elementAt(CUP$Analizador_lexicup$top-1)), ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), RESULT);\n }\n return CUP$Analizador_lexicup$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 2: // prueba ::= prueba E \n {\n String RESULT =null;\n\n CUP$Analizador_lexicup$result = parser.getSymbolFactory().newSymbol(\"prueba\",1, ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.elementAt(CUP$Analizador_lexicup$top-1)), ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), RESULT);\n }\n return CUP$Analizador_lexicup$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 3: // E ::= PLUS \n {\n String RESULT =null;\n\n CUP$Analizador_lexicup$result = parser.getSymbolFactory().newSymbol(\"E\",0, ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), RESULT);\n }\n return CUP$Analizador_lexicup$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 4: // E ::= MINUS \n {\n String RESULT =null;\n\n CUP$Analizador_lexicup$result = parser.getSymbolFactory().newSymbol(\"E\",0, ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), RESULT);\n }\n return CUP$Analizador_lexicup$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 5: // E ::= MORE \n {\n String RESULT =null;\n\n CUP$Analizador_lexicup$result = parser.getSymbolFactory().newSymbol(\"E\",0, ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), RESULT);\n }\n return CUP$Analizador_lexicup$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 6: // E ::= DIV \n {\n String RESULT =null;\n\n CUP$Analizador_lexicup$result = parser.getSymbolFactory().newSymbol(\"E\",0, ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), RESULT);\n }\n return CUP$Analizador_lexicup$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 7: // E ::= COMMENT \n {\n String RESULT =null;\n\n CUP$Analizador_lexicup$result = parser.getSymbolFactory().newSymbol(\"E\",0, ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), RESULT);\n }\n return CUP$Analizador_lexicup$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 8: // E ::= PARA \n {\n String RESULT =null;\n\n CUP$Analizador_lexicup$result = parser.getSymbolFactory().newSymbol(\"E\",0, ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), RESULT);\n }\n return CUP$Analizador_lexicup$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 9: // E ::= PARC \n {\n String RESULT =null;\n\n CUP$Analizador_lexicup$result = parser.getSymbolFactory().newSymbol(\"E\",0, ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), RESULT);\n }\n return CUP$Analizador_lexicup$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 10: // E ::= EXCLA \n {\n String RESULT =null;\n\n CUP$Analizador_lexicup$result = parser.getSymbolFactory().newSymbol(\"E\",0, ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), RESULT);\n }\n return CUP$Analizador_lexicup$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 11: // E ::= QUOTE \n {\n String RESULT =null;\n\n CUP$Analizador_lexicup$result = parser.getSymbolFactory().newSymbol(\"E\",0, ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), RESULT);\n }\n return CUP$Analizador_lexicup$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 12: // E ::= NUMERAL \n {\n String RESULT =null;\n\n CUP$Analizador_lexicup$result = parser.getSymbolFactory().newSymbol(\"E\",0, ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), RESULT);\n }\n return CUP$Analizador_lexicup$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 13: // E ::= DOLAR \n {\n String RESULT =null;\n\n CUP$Analizador_lexicup$result = parser.getSymbolFactory().newSymbol(\"E\",0, ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), RESULT);\n }\n return CUP$Analizador_lexicup$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 14: // E ::= PERCENT \n {\n String RESULT =null;\n\n CUP$Analizador_lexicup$result = parser.getSymbolFactory().newSymbol(\"E\",0, ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), RESULT);\n }\n return CUP$Analizador_lexicup$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 15: // E ::= CAFE \n {\n String RESULT =null;\n\n CUP$Analizador_lexicup$result = parser.getSymbolFactory().newSymbol(\"E\",0, ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), RESULT);\n }\n return CUP$Analizador_lexicup$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 16: // E ::= SINGLEQUOTE \n {\n String RESULT =null;\n\n CUP$Analizador_lexicup$result = parser.getSymbolFactory().newSymbol(\"E\",0, ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), RESULT);\n }\n return CUP$Analizador_lexicup$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 17: // E ::= POINT \n {\n String RESULT =null;\n\n CUP$Analizador_lexicup$result = parser.getSymbolFactory().newSymbol(\"E\",0, ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), RESULT);\n }\n return CUP$Analizador_lexicup$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 18: // E ::= COMMA \n {\n String RESULT =null;\n\n CUP$Analizador_lexicup$result = parser.getSymbolFactory().newSymbol(\"E\",0, ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), RESULT);\n }\n return CUP$Analizador_lexicup$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 19: // E ::= DPOINT \n {\n String RESULT =null;\n\n CUP$Analizador_lexicup$result = parser.getSymbolFactory().newSymbol(\"E\",0, ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), RESULT);\n }\n return CUP$Analizador_lexicup$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 20: // E ::= PC \n {\n String RESULT =null;\n\n CUP$Analizador_lexicup$result = parser.getSymbolFactory().newSymbol(\"E\",0, ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), RESULT);\n }\n return CUP$Analizador_lexicup$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 21: // E ::= MINUS2 \n {\n String RESULT =null;\n\n CUP$Analizador_lexicup$result = parser.getSymbolFactory().newSymbol(\"E\",0, ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), RESULT);\n }\n return CUP$Analizador_lexicup$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 22: // E ::= EQUAL \n {\n String RESULT =null;\n\n CUP$Analizador_lexicup$result = parser.getSymbolFactory().newSymbol(\"E\",0, ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), RESULT);\n }\n return CUP$Analizador_lexicup$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 23: // E ::= MINUS3 \n {\n String RESULT =null;\n\n CUP$Analizador_lexicup$result = parser.getSymbolFactory().newSymbol(\"E\",0, ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), RESULT);\n }\n return CUP$Analizador_lexicup$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 24: // E ::= INTER \n {\n String RESULT =null;\n\n CUP$Analizador_lexicup$result = parser.getSymbolFactory().newSymbol(\"E\",0, ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), RESULT);\n }\n return CUP$Analizador_lexicup$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 25: // E ::= TILD \n {\n String RESULT =null;\n\n CUP$Analizador_lexicup$result = parser.getSymbolFactory().newSymbol(\"E\",0, ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), RESULT);\n }\n return CUP$Analizador_lexicup$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 26: // E ::= LLAV \n {\n String RESULT =null;\n\n CUP$Analizador_lexicup$result = parser.getSymbolFactory().newSymbol(\"E\",0, ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), RESULT);\n }\n return CUP$Analizador_lexicup$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 27: // E ::= LLAC \n {\n String RESULT =null;\n\n CUP$Analizador_lexicup$result = parser.getSymbolFactory().newSymbol(\"E\",0, ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), RESULT);\n }\n return CUP$Analizador_lexicup$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 28: // E ::= EQUALS \n {\n String RESULT =null;\n\n CUP$Analizador_lexicup$result = parser.getSymbolFactory().newSymbol(\"E\",0, ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), RESULT);\n }\n return CUP$Analizador_lexicup$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 29: // E ::= CORC \n {\n String RESULT =null;\n\n CUP$Analizador_lexicup$result = parser.getSymbolFactory().newSymbol(\"E\",0, ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), RESULT);\n }\n return CUP$Analizador_lexicup$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 30: // E ::= CORD \n {\n String RESULT =null;\n\n CUP$Analizador_lexicup$result = parser.getSymbolFactory().newSymbol(\"E\",0, ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), RESULT);\n }\n return CUP$Analizador_lexicup$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 31: // E ::= DIAGO \n {\n String RESULT =null;\n\n CUP$Analizador_lexicup$result = parser.getSymbolFactory().newSymbol(\"E\",0, ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), RESULT);\n }\n return CUP$Analizador_lexicup$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 32: // E ::= EXP \n {\n String RESULT =null;\n\n CUP$Analizador_lexicup$result = parser.getSymbolFactory().newSymbol(\"E\",0, ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), RESULT);\n }\n return CUP$Analizador_lexicup$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 33: // E ::= FLOOR \n {\n String RESULT =null;\n\n CUP$Analizador_lexicup$result = parser.getSymbolFactory().newSymbol(\"E\",0, ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), RESULT);\n }\n return CUP$Analizador_lexicup$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 34: // E ::= SPACE \n {\n String RESULT =null;\n\n CUP$Analizador_lexicup$result = parser.getSymbolFactory().newSymbol(\"E\",0, ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), RESULT);\n }\n return CUP$Analizador_lexicup$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 35: // E ::= BOOLEAN \n {\n String RESULT =null;\n\n CUP$Analizador_lexicup$result = parser.getSymbolFactory().newSymbol(\"E\",0, ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), RESULT);\n }\n return CUP$Analizador_lexicup$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 36: // E ::= BREAK \n {\n String RESULT =null;\n\n CUP$Analizador_lexicup$result = parser.getSymbolFactory().newSymbol(\"E\",0, ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), RESULT);\n }\n return CUP$Analizador_lexicup$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 37: // E ::= CALLOUT \n {\n String RESULT =null;\n\n CUP$Analizador_lexicup$result = parser.getSymbolFactory().newSymbol(\"E\",0, ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), RESULT);\n }\n return CUP$Analizador_lexicup$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 38: // E ::= CLASS \n {\n String RESULT =null;\n\n CUP$Analizador_lexicup$result = parser.getSymbolFactory().newSymbol(\"E\",0, ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), RESULT);\n }\n return CUP$Analizador_lexicup$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 39: // E ::= CONTINUE \n {\n String RESULT =null;\n\n CUP$Analizador_lexicup$result = parser.getSymbolFactory().newSymbol(\"E\",0, ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), RESULT);\n }\n return CUP$Analizador_lexicup$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 40: // E ::= ELSE \n {\n String RESULT =null;\n\n CUP$Analizador_lexicup$result = parser.getSymbolFactory().newSymbol(\"E\",0, ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), RESULT);\n }\n return CUP$Analizador_lexicup$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 41: // E ::= FALSE \n {\n String RESULT =null;\n\n CUP$Analizador_lexicup$result = parser.getSymbolFactory().newSymbol(\"E\",0, ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), RESULT);\n }\n return CUP$Analizador_lexicup$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 42: // E ::= FOR \n {\n String RESULT =null;\n\n CUP$Analizador_lexicup$result = parser.getSymbolFactory().newSymbol(\"E\",0, ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), RESULT);\n }\n return CUP$Analizador_lexicup$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 43: // E ::= IF \n {\n String RESULT =null;\n\n CUP$Analizador_lexicup$result = parser.getSymbolFactory().newSymbol(\"E\",0, ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), RESULT);\n }\n return CUP$Analizador_lexicup$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 44: // E ::= INT \n {\n String RESULT =null;\n\n CUP$Analizador_lexicup$result = parser.getSymbolFactory().newSymbol(\"E\",0, ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), RESULT);\n }\n return CUP$Analizador_lexicup$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 45: // E ::= RETURN \n {\n String RESULT =null;\n\n CUP$Analizador_lexicup$result = parser.getSymbolFactory().newSymbol(\"E\",0, ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), RESULT);\n }\n return CUP$Analizador_lexicup$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 46: // E ::= TRUE \n {\n String RESULT =null;\n\n CUP$Analizador_lexicup$result = parser.getSymbolFactory().newSymbol(\"E\",0, ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), RESULT);\n }\n return CUP$Analizador_lexicup$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 47: // E ::= VOID \n {\n String RESULT =null;\n\n CUP$Analizador_lexicup$result = parser.getSymbolFactory().newSymbol(\"E\",0, ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), RESULT);\n }\n return CUP$Analizador_lexicup$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 48: // E ::= NUM \n {\n String RESULT =null;\n\n CUP$Analizador_lexicup$result = parser.getSymbolFactory().newSymbol(\"E\",0, ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), RESULT);\n }\n return CUP$Analizador_lexicup$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 49: // E ::= ALPHA \n {\n String RESULT =null;\n\n CUP$Analizador_lexicup$result = parser.getSymbolFactory().newSymbol(\"E\",0, ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), RESULT);\n }\n return CUP$Analizador_lexicup$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 50: // E ::= PROGRAM \n {\n String RESULT =null;\n\n CUP$Analizador_lexicup$result = parser.getSymbolFactory().newSymbol(\"E\",0, ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), RESULT);\n }\n return CUP$Analizador_lexicup$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 51: // E ::= alpha_num \n {\n String RESULT =null;\n\n CUP$Analizador_lexicup$result = parser.getSymbolFactory().newSymbol(\"E\",0, ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), RESULT);\n }\n return CUP$Analizador_lexicup$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 52: // E ::= MAIN \n {\n String RESULT =null;\n\n CUP$Analizador_lexicup$result = parser.getSymbolFactory().newSymbol(\"E\",0, ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), RESULT);\n }\n return CUP$Analizador_lexicup$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 53: // E ::= HEX \n {\n String RESULT =null;\n\n CUP$Analizador_lexicup$result = parser.getSymbolFactory().newSymbol(\"E\",0, ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), ((java_cup.runtime.Symbol)CUP$Analizador_lexicup$stack.peek()), RESULT);\n }\n return CUP$Analizador_lexicup$result;\n\n /* . . . . . .*/\n default:\n throw new Exception(\n \"Invalid action number \"+CUP$Analizador_lexicup$act_num+\"found in internal parse table\");\n\n }\n }", "title": "" }, { "docid": "979a62cad70a73f9711389b255ce5bb3", "score": "0.5687731", "text": "String translateActionName(String name);", "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": "10a16c7746251422104cf407c3354faf", "score": "0.5684599", "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: // axiom ::= klassMain klassList \n {\n Axiom RESULT =null;\n\t\tLocation axleft = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).xleft;\n\t\tLocation axright = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).xright;\n\t\tKlassMain a = (KlassMain)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\tLocation zxleft = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.peek()).xleft;\n\t\tLocation zxright = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.peek()).xright;\n\t\tASTList<Klass> z = (ASTList<Klass>)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t RESULT = new Axiom(a, z);\n RESULT.addPosition(axleft, zxright); \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"axiom\",0, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 1: // $START ::= axiom EOF \n {\n Object RESULT =null;\n\t\tLocation start_valxleft = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).xleft;\n\t\tLocation start_valxright = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).xright;\n\t\tAxiom start_val = (Axiom)((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 2: // klassMain ::= CLASS ident LC PUBLIC STATIC VOID MAIN LP STRING LB RB ident RP LC stmt RC RC \n {\n KlassMain RESULT =null;\n\t\tLocation axleft = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-16)).xleft;\n\t\tLocation axright = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-16)).xright;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-16)).value;\n\t\tLocation idxleft = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-15)).xleft;\n\t\tLocation idxright = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-15)).xright;\n\t\tIdent id = (Ident)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-15)).value;\n\t\tLocation argxleft = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-5)).xleft;\n\t\tLocation argxright = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-5)).xright;\n\t\tIdent arg = (Ident)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-5)).value;\n\t\tLocation ixleft = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).xleft;\n\t\tLocation ixright = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).xright;\n\t\tStmt i = (Stmt)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\tLocation zxleft = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.peek()).xleft;\n\t\tLocation zxright = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.peek()).xright;\n\t\tObject z = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t RESULT = new KlassMain(id, arg, i);\n RESULT.addPosition(axleft, zxright); \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"klassMain\",1, ((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 3: // klass ::= CLASS ident parent LC klassBody RC \n {\n Klass RESULT =null;\n\t\tLocation axleft = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-5)).xleft;\n\t\tLocation axright = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-5)).xright;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-5)).value;\n\t\tLocation bxleft = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-4)).xleft;\n\t\tLocation bxright = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-4)).xright;\n\t\tIdent b = (Ident)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-4)).value;\n\t\tLocation cxleft = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-3)).xleft;\n\t\tLocation cxright = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-3)).xright;\n\t\tIdent c = (Ident)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-3)).value;\n\t\tLocation dxleft = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).xleft;\n\t\tLocation dxright = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).xright;\n\t\tVarOrMeth d = (VarOrMeth)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\tLocation zxleft = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.peek()).xleft;\n\t\tLocation zxright = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.peek()).xright;\n\t\tObject z = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t RESULT = new Klass(b, c, d.vars, d.methods);\n RESULT.addPosition(axleft, zxright); \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"klass\",2, ((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 4: // parent ::= \n {\n Ident RESULT =null;\n\t\t RESULT = new Ident(\"Object\"); \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parent\",3, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 5: // parent ::= EXTENDS ident \n {\n Ident RESULT =null;\n\t\tLocation axleft = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).xleft;\n\t\tLocation axright = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).xright;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\tLocation xxleft = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.peek()).xleft;\n\t\tLocation xxright = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.peek()).xright;\n\t\tIdent x = (Ident)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t RESULT = x;\n RESULT.addPosition(axleft, xxright); \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parent\",3, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 6: // method ::= PUBLIC type ident LP formalList RP LC methBody RETURN expr SEP RC \n {\n Method RESULT =null;\n\t\tLocation axleft = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-11)).xleft;\n\t\tLocation axright = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-11)).xright;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-11)).value;\n\t\tLocation bxleft = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-10)).xleft;\n\t\tLocation bxright = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-10)).xright;\n\t\tType b = (Type)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-10)).value;\n\t\tLocation cxleft = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-9)).xleft;\n\t\tLocation cxright = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-9)).xright;\n\t\tIdent c = (Ident)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-9)).value;\n\t\tLocation dxleft = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-7)).xleft;\n\t\tLocation dxright = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-7)).xright;\n\t\tASTList<Formal> d = (ASTList<Formal>)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-7)).value;\n\t\tLocation exleft = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-4)).xleft;\n\t\tLocation exright = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-4)).xright;\n\t\tVarOrStmt e = (VarOrStmt)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-4)).value;\n\t\tLocation fxleft = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).xleft;\n\t\tLocation fxright = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).xright;\n\t\tExpr f = (Expr)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\tLocation zxleft = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.peek()).xleft;\n\t\tLocation zxright = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.peek()).xright;\n\t\tObject z = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t RESULT = new Method(b, c, d, e.vars,e.stmts, f);\n RESULT.addPosition(axleft, zxright); \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"method\",4, ((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 7: // type ::= INT \n {\n Type RESULT =null;\n\t\tLocation axleft = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.peek()).xleft;\n\t\tLocation axright = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.peek()).xright;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t RESULT = new Type(TYPE.INT);\n RESULT.addPosition(axleft, axright); \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type\",5, ((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 8: // type ::= BOOLEAN \n {\n Type RESULT =null;\n\t\tLocation axleft = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.peek()).xleft;\n\t\tLocation axright = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.peek()).xright;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t RESULT = new Type(TYPE.BOOL);\n RESULT.addPosition(axleft, axright); \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type\",5, ((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 9: // type ::= IDENT \n {\n Type RESULT =null;\n\t\tLocation axleft = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.peek()).xleft;\n\t\tLocation axright = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.peek()).xright;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t RESULT = new Type(a);\n RESULT.addPosition(axleft, axright); \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type\",5, ((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 10: // ident ::= IDENT \n {\n Ident RESULT =null;\n\t\tLocation axleft = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.peek()).xleft;\n\t\tLocation axright = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.peek()).xright;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t RESULT = new Ident(a);\n RESULT.addPosition(axleft,axright); \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"ident\",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 11: // stmt ::= PRINTLN LP expr RP SEP \n {\n Stmt RESULT =null;\n\t\tLocation axleft = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-4)).xleft;\n\t\tLocation axright = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-4)).xright;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-4)).value;\n\t\tLocation bxleft = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).xleft;\n\t\tLocation bxright = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).xright;\n\t\tExpr b = (Expr)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\tLocation xxleft = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.peek()).xleft;\n\t\tLocation xxright = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.peek()).xright;\n\t\tObject x = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t RESULT = new StmtPrint(b);\n RESULT.addPosition(axleft, xxright); \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"stmt\",7, ((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 12: // stmt ::= ident ASSIGN expr SEP \n {\n Stmt RESULT =null;\n\t\tLocation axleft = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-3)).xleft;\n\t\tLocation axright = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-3)).xright;\n\t\tIdent a = (Ident)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-3)).value;\n\t\tLocation bxleft = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).xleft;\n\t\tLocation bxright = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).xright;\n\t\tExpr b = (Expr)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\tLocation xxleft = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.peek()).xleft;\n\t\tLocation xxright = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.peek()).xright;\n\t\tObject x = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t RESULT = new StmtAssign(a, b);\n RESULT.addPosition(axleft, xxright); \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"stmt\",7, ((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 13: // stmt ::= LC methBody RC \n {\n Stmt RESULT =null;\n\t\tLocation axleft = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).xleft;\n\t\tLocation axright = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).xright;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\tLocation bxleft = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).xleft;\n\t\tLocation bxright = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).xright;\n\t\tVarOrStmt b = (VarOrStmt)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\tLocation xxleft = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.peek()).xleft;\n\t\tLocation xxright = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.peek()).xright;\n\t\tObject x = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t RESULT = new StmtBlock(b.vars,b.stmts);\n RESULT.addPosition(axleft, xxright); \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"stmt\",7, ((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 14: // stmt ::= IF LP expr RP stmt ELSE stmt \n {\n Stmt RESULT =null;\n\t\tLocation axleft = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-6)).xleft;\n\t\tLocation axright = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-6)).xright;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-6)).value;\n\t\tLocation bxleft = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-4)).xleft;\n\t\tLocation bxright = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-4)).xright;\n\t\tExpr b = (Expr)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-4)).value;\n\t\tLocation cxleft = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).xleft;\n\t\tLocation cxright = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).xright;\n\t\tStmt c = (Stmt)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\tLocation xxleft = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.peek()).xleft;\n\t\tLocation xxright = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.peek()).xright;\n\t\tStmt x = (Stmt)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t RESULT = new StmtIf(b, c, x);\n RESULT.addPosition(axleft, xxright); \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"stmt\",7, ((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 15: // stmt ::= WHILE LP expr RP stmt \n {\n Stmt RESULT =null;\n\t\tLocation axleft = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-4)).xleft;\n\t\tLocation axright = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-4)).xright;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-4)).value;\n\t\tLocation bxleft = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).xleft;\n\t\tLocation bxright = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).xright;\n\t\tExpr b = (Expr)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\tLocation xxleft = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.peek()).xleft;\n\t\tLocation xxright = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.peek()).xright;\n\t\tStmt x = (Stmt)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t RESULT = new StmtWhile(b, x);\n RESULT.addPosition(axleft, xxright); \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"stmt\",7, ((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 16: // expr ::= LIT_INT \n {\n Expr RESULT =null;\n\t\tLocation axleft = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.peek()).xleft;\n\t\tLocation axright = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.peek()).xright;\n\t\tInteger a = (Integer)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t RESULT = new ExprLiteralInt(a);\n RESULT.addPosition(axleft, axright); \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expr\",8, ((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 17: // expr ::= LP expr RP \n {\n Expr RESULT =null;\n\t\tLocation axleft = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).xleft;\n\t\tLocation axright = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).xright;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\tLocation bxleft = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).xleft;\n\t\tLocation bxright = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).xright;\n\t\tExpr b = (Expr)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\tLocation xxleft = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.peek()).xleft;\n\t\tLocation xxright = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.peek()).xright;\n\t\tObject x = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t RESULT = b;\n RESULT.addPosition(axleft, xxright); \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expr\",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 18: // expr ::= expr AND expr \n {\n Expr RESULT =null;\n\t\tLocation axleft = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).xleft;\n\t\tLocation axright = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).xright;\n\t\tExpr a = (Expr)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\tLocation xxleft = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.peek()).xleft;\n\t\tLocation xxright = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.peek()).xright;\n\t\tExpr x = (Expr)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t RESULT = new ExprOpBin(a, OPER.AND, x);\n RESULT.addPosition(axleft, xxright); \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expr\",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 19: // expr ::= expr LESS expr \n {\n Expr RESULT =null;\n\t\tLocation axleft = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).xleft;\n\t\tLocation axright = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).xright;\n\t\tExpr a = (Expr)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\tLocation xxleft = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.peek()).xleft;\n\t\tLocation xxright = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.peek()).xright;\n\t\tExpr x = (Expr)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t RESULT = new ExprOpBin(a, OPER.LESS, x);\n RESULT.addPosition(axleft, xxright); \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expr\",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 20: // expr ::= expr PLUS expr \n {\n Expr RESULT =null;\n\t\tLocation axleft = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).xleft;\n\t\tLocation axright = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).xright;\n\t\tExpr a = (Expr)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\tLocation xxleft = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.peek()).xleft;\n\t\tLocation xxright = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.peek()).xright;\n\t\tExpr x = (Expr)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t RESULT = new ExprOpBin(a, OPER.PLUS, x);\n RESULT.addPosition(axleft, xxright); \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expr\",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 21: // expr ::= expr MINUS expr \n {\n Expr RESULT =null;\n\t\tLocation axleft = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).xleft;\n\t\tLocation axright = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).xright;\n\t\tExpr a = (Expr)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\tLocation xxleft = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.peek()).xleft;\n\t\tLocation xxright = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.peek()).xright;\n\t\tExpr x = (Expr)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t RESULT = new ExprOpBin(a, OPER.MINUS, x);\n RESULT.addPosition(axleft, xxright); \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expr\",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 22: // expr ::= expr TIMES expr \n {\n Expr RESULT =null;\n\t\tLocation axleft = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).xleft;\n\t\tLocation axright = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).xright;\n\t\tExpr a = (Expr)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\tLocation xxleft = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.peek()).xleft;\n\t\tLocation xxright = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.peek()).xright;\n\t\tExpr x = (Expr)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t RESULT = new ExprOpBin(a, OPER.TIMES, x);\n RESULT.addPosition(axleft, xxright); \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expr\",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 23: // expr ::= NOT expr \n {\n Expr RESULT =null;\n\t\tLocation axleft = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).xleft;\n\t\tLocation axright = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).xright;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\tLocation xxleft = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.peek()).xleft;\n\t\tLocation xxright = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.peek()).xright;\n\t\tExpr x = (Expr)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t RESULT = new ExprOpUn(OPER.NOT, x);\n RESULT.addPosition(axleft, xxright); \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expr\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 24: // expr ::= ident \n {\n Expr RESULT =null;\n\t\tLocation axleft = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.peek()).xleft;\n\t\tLocation axright = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.peek()).xright;\n\t\tIdent a = (Ident)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t RESULT = new ExprIdent(a);\n RESULT.addPosition(axleft, axright); \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expr\",8, ((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 25: // expr ::= THIS \n {\n Expr RESULT =null;\n\t\tLocation axleft = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.peek()).xleft;\n\t\tLocation axright = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.peek()).xright;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t RESULT = new ExprIdent(new Ident(\"this\"));\n RESULT.addPosition(axleft, axright); \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expr\",8, ((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 26: // expr ::= LIT_BOOL \n {\n Expr RESULT =null;\n\t\tLocation axleft = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.peek()).xleft;\n\t\tLocation axright = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.peek()).xright;\n\t\tBoolean a = (Boolean)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t RESULT = new ExprLiteralBool(a);\n RESULT.addPosition(axleft, axright); \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expr\",8, ((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 27: // expr ::= MINUS LIT_INT \n {\n Expr RESULT =null;\n\t\tLocation axleft = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.peek()).xleft;\n\t\tLocation axright = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.peek()).xright;\n\t\tInteger a = (Integer)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t RESULT = new ExprLiteralInt(- a);\n RESULT.addPosition(axleft, axright); \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expr\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 28: // expr ::= NEW ident LP RP \n {\n Expr RESULT =null;\n\t\tLocation axleft = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-3)).xleft;\n\t\tLocation axright = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-3)).xright;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-3)).value;\n\t\tLocation bxleft = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).xleft;\n\t\tLocation bxright = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).xright;\n\t\tIdent b = (Ident)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\tLocation xxleft = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.peek()).xleft;\n\t\tLocation xxright = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.peek()).xright;\n\t\tObject x = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t RESULT = new ExprNew(b);\n RESULT.addPosition(axleft, xxright); \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expr\",8, ((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 29: // expr ::= expr DOT ident LP argList RP \n {\n Expr RESULT =null;\n\t\tLocation axleft = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-5)).xleft;\n\t\tLocation axright = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-5)).xright;\n\t\tExpr a = (Expr)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-5)).value;\n\t\tLocation bxleft = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-3)).xleft;\n\t\tLocation bxright = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-3)).xright;\n\t\tIdent b = (Ident)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-3)).value;\n\t\tLocation cxleft = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).xleft;\n\t\tLocation cxright = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).xright;\n\t\tASTList<Expr> c = (ASTList<Expr>)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\tLocation xxleft = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.peek()).xleft;\n\t\tLocation xxright = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.peek()).xright;\n\t\tObject x = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t RESULT = new ExprCall(a, b, c);\n RESULT.addPosition(axleft, xxright); \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expr\",8, ((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 30: // klassList ::= \n {\n ASTList<Klass> RESULT =null;\n\t\t RESULT = new ASTList<>(); \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"klassList\",11, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 31: // klassList ::= klassList klass \n {\n ASTList<Klass> RESULT =null;\n\t\tLocation axleft = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).xleft;\n\t\tLocation axright = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).xright;\n\t\tASTList<Klass> a = (ASTList<Klass>)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\tLocation xxleft = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.peek()).xleft;\n\t\tLocation xxright = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.peek()).xright;\n\t\tKlass x = (Klass)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t RESULT = a; RESULT.add(x);\n RESULT.addPosition(axleft, xxright); \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"klassList\",11, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 32: // var ::= type ident SEP \n {\n Var RESULT =null;\n\t\tLocation axleft = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).xleft;\n\t\tLocation axright = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).xright;\n\t\tType a = (Type)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\tLocation bxleft = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).xleft;\n\t\tLocation bxright = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).xright;\n\t\tIdent b = (Ident)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\tLocation xxleft = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.peek()).xleft;\n\t\tLocation xxright = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.peek()).xright;\n\t\tObject x = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t RESULT = new Var(a, b);\n RESULT.addPosition(axleft, xxright); \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"var\",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 33: // klassBody ::= \n {\n VarOrMeth RESULT =null;\n\t\t RESULT = new VarOrMeth(); \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"klassBody\",16, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 34: // klassBody ::= klassBody var \n {\n VarOrMeth RESULT =null;\n\t\tLocation lxleft = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).xleft;\n\t\tLocation lxright = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).xright;\n\t\tVarOrMeth l = (VarOrMeth)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\tLocation vxleft = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.peek()).xleft;\n\t\tLocation vxright = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.peek()).xright;\n\t\tVar v = (Var)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t RESULT = l; RESULT.vars.add(v); \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"klassBody\",16, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 35: // klassBody ::= klassBody method \n {\n VarOrMeth RESULT =null;\n\t\tLocation lxleft = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).xleft;\n\t\tLocation lxright = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).xright;\n\t\tVarOrMeth l = (VarOrMeth)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\tLocation mxleft = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.peek()).xleft;\n\t\tLocation mxright = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.peek()).xright;\n\t\tMethod m = (Method)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t RESULT = l; RESULT.methods.add(m); \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"klassBody\",16, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 36: // methBody ::= \n {\n VarOrStmt RESULT =null;\n\t\t RESULT = new VarOrStmt(); \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"methBody\",17, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 37: // methBody ::= methBody var \n {\n VarOrStmt RESULT =null;\n\t\tLocation lxleft = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).xleft;\n\t\tLocation lxright = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).xright;\n\t\tVarOrStmt l = (VarOrStmt)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\tLocation vxleft = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.peek()).xleft;\n\t\tLocation vxright = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.peek()).xright;\n\t\tVar v = (Var)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t RESULT = l; RESULT.vars.add(v); \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"methBody\",17, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 38: // methBody ::= methBody stmt \n {\n VarOrStmt RESULT =null;\n\t\tLocation lxleft = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).xleft;\n\t\tLocation lxright = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).xright;\n\t\tVarOrStmt l = (VarOrStmt)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\tLocation ixleft = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.peek()).xleft;\n\t\tLocation ixright = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.peek()).xright;\n\t\tStmt i = (Stmt)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t RESULT = l; RESULT.stmts.add(i); \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"methBody\",17, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 39: // argList ::= \n {\n ASTList<Expr> RESULT =null;\n\t\t RESULT = new ASTList<>(); \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"argList\",14, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 40: // argList ::= argL1 \n {\n ASTList<Expr> RESULT =null;\n\t\tLocation axleft = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.peek()).xleft;\n\t\tLocation axright = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.peek()).xright;\n\t\tASTList<Expr> a = (ASTList<Expr>)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t RESULT = a;\n RESULT.addPosition(axleft, axright); \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"argList\",14, ((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 41: // argL1 ::= expr \n {\n ASTList<Expr> RESULT =null;\n\t\tLocation axleft = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.peek()).xleft;\n\t\tLocation axright = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.peek()).xright;\n\t\tExpr a = (Expr)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t RESULT = new ASTList<>(); RESULT.add(a);\n RESULT.addPosition(axleft, axright); \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"argL1\",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 42: // argL1 ::= argL1 COMMA expr \n {\n ASTList<Expr> RESULT =null;\n\t\tLocation axleft = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).xleft;\n\t\tLocation axright = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).xright;\n\t\tASTList<Expr> a = (ASTList<Expr>)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\tLocation xxleft = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.peek()).xleft;\n\t\tLocation xxright = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.peek()).xright;\n\t\tExpr x = (Expr)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t RESULT = a; RESULT.add(x);\n RESULT.addPosition(axleft, xxright); \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"argL1\",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 43: // formal ::= type ident \n {\n Formal RESULT =null;\n\t\tLocation axleft = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).xleft;\n\t\tLocation axright = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).xright;\n\t\tType a = (Type)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\tLocation xxleft = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.peek()).xleft;\n\t\tLocation xxright = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.peek()).xright;\n\t\tIdent x = (Ident)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t RESULT = new Formal(a, x);\n RESULT.addPosition(axleft, xxright); \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"formal\",9, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 44: // formalList ::= \n {\n ASTList<Formal> RESULT =null;\n\t\t RESULT = new ASTList<>(); \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"formalList\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 45: // formalList ::= formalL1 \n {\n ASTList<Formal> RESULT =null;\n\t\tLocation axleft = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.peek()).xleft;\n\t\tLocation axright = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.peek()).xright;\n\t\tASTList<Formal> a = (ASTList<Formal>)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t RESULT = a;\n RESULT.addPosition(axleft, axright); \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"formalList\",12, ((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 46: // formalL1 ::= formal \n {\n ASTList<Formal> RESULT =null;\n\t\tLocation axleft = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.peek()).xleft;\n\t\tLocation axright = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.peek()).xright;\n\t\tFormal a = (Formal)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t RESULT = new ASTList<>(); RESULT.add(a);\n RESULT.addPosition(axleft, axright); \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"formalL1\",13, ((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 47: // formalL1 ::= formalL1 COMMA formal \n {\n ASTList<Formal> RESULT =null;\n\t\tLocation axleft = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).xleft;\n\t\tLocation axright = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).xright;\n\t\tASTList<Formal> a = (ASTList<Formal>)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\tLocation xxleft = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.peek()).xleft;\n\t\tLocation xxright = ((java_cup.runtime.ComplexSymbolFactory.ComplexSymbol)CUP$parser$stack.peek()).xright;\n\t\tFormal x = (Formal)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t RESULT = a; RESULT.add(x);\n RESULT.addPosition(axleft, xxright); \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"formalL1\",13, ((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": "6552621dc87080ea109409403009e213", "score": "0.56724703", "text": "public interface Action {\n\t\n\tpublic void performAction( Trade trade );\n\n}", "title": "" }, { "docid": "6261fbb63d56097650c15ae8f1e42737", "score": "0.5671165", "text": "public void determineAction(){\n ai.selectAction();\n storedAction = ai.getAction();\n }", "title": "" }, { "docid": "594f66f9863dc7c859479da169f6b535", "score": "0.56696767", "text": "public void act()\n {\n \n }", "title": "" }, { "docid": "c84f35c29702cf4a96ea278558920ab1", "score": "0.5668793", "text": "java.lang.String getAction();", "title": "" }, { "docid": "df7927befe9e484b0b414b494c45bdc3", "score": "0.5665937", "text": "@Override\n\tpublic String action(int i) {\n\t\treturn \"actionOne\"+i;\n\t}", "title": "" }, { "docid": "df0b9372757056107ded14eff2fd2f05", "score": "0.56656456", "text": "public String doSomething(String action, String secondAction) {\n\t\treturn \"do \" + action + \" and do \" + secondAction;\n\t}", "title": "" }, { "docid": "375a6187c896073aa5df4a532714dcb9", "score": "0.56635445", "text": "@Override\r\n\tpublic void action(ActionInfo info) {\n\t\t\r\n\t}", "title": "" }, { "docid": "5d51a95b93e11792ec2546cdb8a8f37e", "score": "0.5662439", "text": "private void performAction(Action action) {\n completeAction(action);\n// if (action.subActions.isEmpty()) {\n// completeAction(action);\n// } else {\n// startSubQuest(action);\n// }\n }", "title": "" }, { "docid": "8ca7d7d69936a886c67cd793a2828522", "score": "0.5662163", "text": "public void doAction(String action,Map data)\r\n\t{\r\n\t\t// get action def\r\n\t\tPageMapping mapping = (PageMapping)pagemappings.get(action);\r\n\r\n\t\t// determine who wins the scoping battle\r\n\t\tAction winner = null;\r\n\t\tfor (int i=0; i < mapping.scopes.size(); i++)\r\n\t\t{\r\n\t\t\t// get next mapping\r\n\t\t\tAction actiondef = (Action)mapping.scopes.get(i);\r\n\t\t\t// check scopes to find \"dominant\" action mapping\r\n\t\t\tboolean match = actiondef.executeQualifier(data);\r\n\t\t\t// how do we do precedence/dominance? Last wins? Answer: First match, first win. (least computation/overhead)\r\n\t\t\tif (match) {\r\n\t\t\t\twinner = actiondef;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif (winner == null) { /*send error message*/ }\r\n\t\t\r\n\t\t\t\t\r\n\t}", "title": "" }, { "docid": "b9d4ae3da2eac85ab0d7a0b208ea35ff", "score": "0.56608456", "text": "public abstract Output act();", "title": "" }, { "docid": "cb2537f0764e7846d9eb6ea99c944552", "score": "0.56518376", "text": "private void execAction() {\n switch(this.curPosTrans) {\n case 'T':\n execTranslate();\n break;\n case 'R':\n execeRotation();\n break;\n case 'S':\n execScale();\n break;\n default:\n break;\n }\n }", "title": "" }, { "docid": "6d7a1f743705261b2ce64f515f145cd7", "score": "0.56477225", "text": "public final java_cup.runtime.Symbol CUP$parser$do_action_part00000000(\r\n int CUP$parser$act_num,\r\n java_cup.runtime.lr_parser CUP$parser$parser,\r\n java.util.Stack CUP$parser$stack,\r\n int CUP$parser$top)\r\n throws java.lang.Exception\r\n {\r\n /* Symbol object for return from actions */\r\n java_cup.runtime.Symbol CUP$parser$result;\r\n\r\n /* select the action based on the action number */\r\n switch (CUP$parser$act_num)\r\n {\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 0: // $START ::= Programa EOF \r\n {\r\n Object RESULT =null;\r\n\t\tint start_valleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left;\r\n\t\tint start_valright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).right;\r\n\t\tObject start_val = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\r\n\t\tRESULT = start_val;\r\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);\r\n }\r\n /* ACCEPT */\r\n CUP$parser$parser.done_parsing();\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 1: // Programa ::= Paqueteria UnaClase \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"Programa\",21, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 2: // Programa ::= Paqueteria Importacion UnaClase \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"Programa\",21, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 3: // Paqueteria ::= PAQUETE VARIABLE PaqueteriaRuta PUNTOYCOMA \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"Paqueteria\",11, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 4: // Paqueteria ::= PAQUETE VARIABLE PUNTOYCOMA \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"Paqueteria\",11, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 5: // PaqueteriaRuta ::= PUNTO VARIABLE \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"PaqueteriaRuta\",14, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 6: // PaqueteriaRuta ::= PUNTO VARIABLE PaqueteriaRuta \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"PaqueteriaRuta\",14, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 7: // Importacion ::= IMPORTAR VARIABLE PUNTOYCOMA \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"Importacion\",7, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 8: // Importacion ::= IMPORTAR VARIABLE Importacion2 PUNTOYCOMA \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"Importacion\",7, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 9: // Importacion2 ::= PUNTO VARIABLE \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"Importacion2\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 10: // Importacion2 ::= PUNTO VARIABLE Importacion2 \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"Importacion2\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 11: // UnaClase ::= PUBLICO CLASE VARIABLE ABRIR_LLAVE ClasePrincipal CERRAR_LLAVE \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"UnaClase\",15, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 12: // ClasePrincipal ::= PUBLICO ESTATICO HUECO PRINCIPAL ABRIR_PARENTESIS STRING CORCHETE_ABRE CORCHETE_CIERRA ARGUMENTO CERRAR_PARENTESIS ABRIR_LLAVE EstructuraClase CERRAR_LLAVE \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"ClasePrincipal\",22, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-12)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 13: // EstructuraClase ::= DarvalorVariable \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"EstructuraClase\",20, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 14: // EstructuraClase ::= DarvalorVariable EstructuraClase \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"EstructuraClase\",20, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 15: // EstructuraClase ::= Condicionif \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"EstructuraClase\",20, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 16: // EstructuraClase ::= Condicionif EstructuraClase \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"EstructuraClase\",20, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 17: // EstructuraClase ::= EstructuraMientras \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"EstructuraClase\",20, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 18: // EstructuraClase ::= EstructuraMientras EstructuraClase \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"EstructuraClase\",20, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 19: // EstructuraClase ::= HacerMientras \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"EstructuraClase\",20, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 20: // EstructuraClase ::= HacerMientras EstructuraClase \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"EstructuraClase\",20, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 21: // EstructuraClase ::= ElInterrumputor \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"EstructuraClase\",20, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 22: // EstructuraClase ::= ElInterrumputor EstructuraClase \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"EstructuraClase\",20, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 23: // EstructuraClase ::= OperacionAritmetica \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"EstructuraClase\",20, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 24: // EstructuraClase ::= OperacionAritmetica EstructuraClase \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"EstructuraClase\",20, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 25: // OperacionAritmetica ::= InicioVar Operaciones PUNTOYCOMA \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"OperacionAritmetica\",2, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 26: // OperacionAritmetica ::= VARIABLE IGUAL Operaciones PUNTOYCOMA \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"OperacionAritmetica\",2, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 27: // Operaciones ::= ABRIR_PARENTESIS Operaciones CERRAR_PARENTESIS \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"Operaciones\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 28: // Operaciones ::= ABRIR_PARENTESIS Operaciones CERRAR_PARENTESIS MasOperacion \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"Operaciones\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 29: // Operaciones ::= VARIABLE \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"Operaciones\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 30: // Operaciones ::= VARIABLE MasOperacion \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"Operaciones\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 31: // Operaciones ::= Valores1 MasOperacion \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"Operaciones\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 32: // MasOperacion ::= Signos Operaciones \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"MasOperacion\",29, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 33: // Signos ::= SUMA \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"Signos\",30, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 34: // Signos ::= RESTA \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"Signos\",30, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 35: // Signos ::= DIVISION \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"Signos\",30, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 36: // Signos ::= MULTIPLICACION \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"Signos\",30, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 37: // TipoVariable1 ::= ENTERO \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"TipoVariable1\",16, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 38: // TipoVariable1 ::= FLOTANTE \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"TipoVariable1\",16, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 39: // TipoVariable1 ::= DOBLE \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"TipoVariable1\",16, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 40: // TipoVariable2 ::= BOOLEANO STRING \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"TipoVariable2\",17, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 41: // Valores1 ::= VALORINT \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"Valores1\",18, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 42: // Valores1 ::= VALORFLOAT \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"Valores1\",18, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 43: // Valores1 ::= VALORDOBLE \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"Valores1\",18, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 44: // DarvalorVariable ::= PRIVADO DarvalorVariable2 \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"DarvalorVariable\",3, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 45: // DarvalorVariable ::= PUBLICO DarvalorVariable2 \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"DarvalorVariable\",3, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 46: // DarvalorVariable ::= PROTEGIDO DarvalorVariable2 \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"DarvalorVariable\",3, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 47: // DarvalorVariable ::= ESTATICO DarvalorVariable2 \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"DarvalorVariable\",3, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 48: // DarvalorVariable ::= DarvalorVariable2 \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"DarvalorVariable\",3, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 49: // DarvalorVariable2 ::= TipoVariable1 VARIABLE PUNTOYCOMA \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"DarvalorVariable2\",4, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 50: // DarvalorVariable2 ::= TipoVariable2 VARIABLE PUNTOYCOMA \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"DarvalorVariable2\",4, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 51: // DarvalorVariable2 ::= DarvalorVariable3 \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"DarvalorVariable2\",4, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 52: // DarvalorVariable2 ::= DarvalorVariable4 \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"DarvalorVariable2\",4, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 53: // InicioVar ::= TipoVariable1 VARIABLE IGUAL \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"InicioVar\",19, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 54: // DarvalorVariable3 ::= InicioVar Valores1 PUNTOYCOMA \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"DarvalorVariable3\",5, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 55: // DarvalorVariable4 ::= BOOLEANO VARIABLE IGUAL VALORBOOLEANO PUNTOYCOMA \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"DarvalorVariable4\",6, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 56: // DarvalorVariable4 ::= STRING VARIABLE IGUAL CADENA PUNTOYCOMA \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"DarvalorVariable4\",6, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 57: // Condicionif ::= SI ABRIR_PARENTESIS CentroCondicional CERRAR_PARENTESIS ABRIR_LLAVE EstructuraClase CERRAR_LLAVE \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"Condicionif\",0, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 58: // Condicionif ::= SI ABRIR_PARENTESIS CentroCondicional CERRAR_PARENTESIS ABRIR_LLAVE EstructuraClase CERRAR_LLAVE SINO ABRIR_LLAVE EstructuraClase CERRAR_LLAVE \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"Condicionif\",0, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-10)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 59: // EstructuraMientras ::= MIENTRAS ABRIR_PARENTESIS CentroCondicional CERRAR_PARENTESIS ABRIR_LLAVE EstructuraClase CERRAR_LLAVE \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"EstructuraMientras\",9, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 60: // HacerMientras ::= HACER ABRIR_LLAVE EstructuraClase CERRAR_LLAVE MIENTRAS ABRIR_PARENTESIS CentroCondicional CERRAR_PARENTESIS ABRIR_LLAVE EstructuraClase CERRAR_LLAVE \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"HacerMientras\",10, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-10)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 61: // CondicionFor ::= PARA ABRIR_PARENTESIS DarvalorVariable3 CentroCondicional PUNTOYCOMA SumaOResta CERRAR_PARENTESIS ABRIR_LLAVE EstructuraClase CERRAR_LLAVE \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"CondicionFor\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-9)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 62: // SumaOResta ::= VARIABLE SUMA SUMA \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"SumaOResta\",24, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 63: // SumaOResta ::= SUMA SUMA VARIABLE \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"SumaOResta\",24, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 64: // SumaOResta ::= RESTA RESTA VARIABLE \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"SumaOResta\",24, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 65: // SumaOResta ::= VARIABLE RESTA RESTA \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"SumaOResta\",24, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 66: // ElInterrumputor ::= INTERRUMPUTOR ABRIR_PARENTESIS TiposCasos CERRAR_PARENTESIS ABRIR_LLAVE Casos CERRAR_LLAVE \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"ElInterrumputor\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 67: // Casos ::= CASO TiposCasos DOSPUNTOS EstructuraClase ROMPER PUNTOYCOMA \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"Casos\",26, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 68: // Casos ::= DEFECTO DOSPUNTOS EstructuraClase ROMPER PUNTOYCOMA \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"Casos\",26, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 69: // Casos ::= CASO TiposCasos DOSPUNTOS EstructuraClase ROMPER PUNTOYCOMA Casos \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"Casos\",26, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 70: // Casos ::= DEFECTO DOSPUNTOS EstructuraClase ROMPER PUNTOYCOMA Casos \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"Casos\",26, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 71: // TiposCasos ::= VARIABLE \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"TiposCasos\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 72: // TiposCasos ::= CentroCondicional \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"TiposCasos\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 73: // TiposCasos ::= VALORINT \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"TiposCasos\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 74: // TiposCasos ::= VALORFLOAT \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"TiposCasos\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 75: // TiposCasos ::= VALORDOBLE \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"TiposCasos\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 76: // TiposCasos ::= CADENA \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"TiposCasos\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 77: // CentroCondicional ::= VERDADERO \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"CentroCondicional\",23, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 78: // CentroCondicional ::= FALSO \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"CentroCondicional\",23, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 79: // CentroCondicional ::= VALORBOOLEANO \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"CentroCondicional\",23, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 80: // CentroCondicional ::= NOT VERDADERO \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"CentroCondicional\",23, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 81: // CentroCondicional ::= NOT FALSO \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"CentroCondicional\",23, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 82: // CentroCondicional ::= NOT VALORBOOLEANO \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"CentroCondicional\",23, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 83: // CentroCondicional ::= VARIABLE Comparadores VARIABLE \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"CentroCondicional\",23, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 84: // CentroCondicional ::= VARIABLE Comparadores TipoValor \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"CentroCondicional\",23, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 85: // CentroCondicional ::= TipoValor Comparadores VARIABLE \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"CentroCondicional\",23, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 86: // CentroCondicional ::= TipoValor Comparadores TipoValor \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"CentroCondicional\",23, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 87: // CentroCondicional ::= VERDADERO MasCondicional \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"CentroCondicional\",23, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 88: // CentroCondicional ::= FALSO MasCondicional \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"CentroCondicional\",23, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 89: // CentroCondicional ::= VALORBOOLEANO MasCondicional \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"CentroCondicional\",23, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 90: // CentroCondicional ::= NOT VERDADERO MasCondicional \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"CentroCondicional\",23, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 91: // CentroCondicional ::= NOT FALSO MasCondicional \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"CentroCondicional\",23, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 92: // CentroCondicional ::= NOT VALORBOOLEANO MasCondicional \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"CentroCondicional\",23, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 93: // CentroCondicional ::= VARIABLE Comparadores VARIABLE MasCondicional \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"CentroCondicional\",23, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 94: // CentroCondicional ::= VARIABLE Comparadores TipoValor MasCondicional \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"CentroCondicional\",23, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 95: // CentroCondicional ::= TipoValor Comparadores VARIABLE MasCondicional \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"CentroCondicional\",23, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 96: // CentroCondicional ::= TipoValor Comparadores TipoValor MasCondicional \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"CentroCondicional\",23, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 97: // MasCondicional ::= AND CentroCondicional \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"MasCondicional\",31, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 98: // MasCondicional ::= OR CentroCondicional \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"MasCondicional\",31, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 99: // Comparadores ::= MAYORQUE \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"Comparadores\",13, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 100: // Comparadores ::= MENORQUE \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"Comparadores\",13, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 101: // Comparadores ::= MAYORIGUAL \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"Comparadores\",13, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 102: // Comparadores ::= MENORIGUAL \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"Comparadores\",13, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 103: // Comparadores ::= IGUALIGUAL \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"Comparadores\",13, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 104: // Comparadores ::= DISTINTO \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"Comparadores\",13, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 105: // TipoValor ::= Valores1 \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"TipoValor\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 106: // TipoValor ::= VALORBOOLEANO \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"TipoValor\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 107: // TipoValor ::= CADENA \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"TipoValor\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\r\n }\r\n return CUP$parser$result;\r\n\r\n /* . . . . . .*/\r\n default:\r\n throw new Exception(\r\n \"Invalid action number \"+CUP$parser$act_num+\"found in internal parse table\");\r\n\r\n }\r\n }", "title": "" }, { "docid": "ce52044f8e29567006b94ff8418731df", "score": "0.5646688", "text": "public final java_cup.runtime.Symbol CUP$parser$do_action(\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 33: // Anweisung ::= Variable ASGN Ausdruck \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"Anweisung\",7, ((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: // Anweisung ::= IDENT LPAREN Ausdruck COMMA Ausdruck RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"Anweisung\",7, ((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 31: // Anweisung ::= WHILE LPAREN Ausdruck RPAREN IDENT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"Anweisung\",7, ((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 30: // Anweisung ::= IF LPAREN Ausdruck RPAREN IDENT ELSE IDENT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"Anweisung\",7, ((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 29: // Anweisung ::= IF LPAREN Ausdruck RPAREN IDENT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"Anweisung\",7, ((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 28: // Anweisung ::= SEMIC \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"Anweisung\",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 27: // Ausdruck ::= NE Ausdruck \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"Ausdruck\",4, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 26: // Ausdruck ::= RBRACK Ausdruck \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"Ausdruck\",4, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 25: // Ausdruck ::= LBRACK Ausdruck \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"Ausdruck\",4, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 24: // Ausdruck ::= RPAREN Ausdruck \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"Ausdruck\",4, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 23: // Ausdruck ::= LPAREN Ausdruck \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"Ausdruck\",4, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 22: // Ausdruck ::= LT Ausdruck \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"Ausdruck\",4, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 21: // Ausdruck ::= LE Ausdruck \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"Ausdruck\",4, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 20: // Ausdruck ::= GT Ausdruck \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"Ausdruck\",4, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 19: // Ausdruck ::= GE Ausdruck \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"Ausdruck\",4, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 18: // Ausdruck ::= SLASH Ausdruck \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"Ausdruck\",4, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 17: // Ausdruck ::= STAR Ausdruck \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"Ausdruck\",4, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 16: // Ausdruck ::= MINUS Ausdruck \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"Ausdruck\",4, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 15: // Ausdruck ::= PLUS Ausdruck \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"Ausdruck\",4, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 14: // Ausdruck ::= Variable Ausdruck \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"Ausdruck\",4, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 13: // Variable ::= INTLIT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"Variable\",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 12: // Variable ::= IDENT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"Variable\",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 11: // main ::= PROC LPAREN RPAREN LCURL RCURL \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"main\",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 10: // TYP ::= TYPE IDENT EQ ARRAY LBRACK INTLIT RBRACK OF IDENT LBRACK INTLIT RBRACK OF IDENT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"TYP\",3, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-13)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 9: // TYP ::= TYPE IDENT EQ ARRAY LBRACK INTLIT RBRACK OF IDENT SEMIC \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"TYP\",3, ((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 8: // TYP ::= TYPE IDENT EQ IDENT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"TYP\",3, ((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 7: // Deklaration ::= VAR IDENT COLON IDENT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"Deklaration\",2, ((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 6: // Prozedur ::= REF IDENT COLON IDENT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"Prozedur\",1, ((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 5: // Prozedur ::= IDENT COLON IDENT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"Prozedur\",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 4: // Prozedur ::= PROC IDENT LPAREN IDENT RPAREN LCURL Deklaration IDENT RCURL \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"Prozedur\",1, ((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 3: // Prozedur ::= main \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"Prozedur\",1, ((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 2: // program ::= TYP program \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"program\",0, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 1: // program ::= Prozedur program \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"program\",0, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 0: // $START ::= program 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 default:\n throw new Exception(\n \"Invalid action number found in internal parse table\");\n\n }\n }", "title": "" }, { "docid": "3a89f1658a7da1faba550ca543940a28", "score": "0.56423795", "text": "public boolean action(Action act, Creature performer, Item target, short action, float counter) {\n/* 73 */ boolean done = true;\n/* 74 */ if (action == 1 && target.getTemplateId() == 1000) {\n/* */ \n/* */ \n/* */ \n/* 78 */ performer.getCommunicator().sendNormalServerMessage(\"This is the writ of ownership. It can be traded with another player to transfer ownership.\");\n/* */ \n/* */ \n/* */ }\n/* 82 */ else if (action != 17) {\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 91 */ done = super.action(act, performer, target, action, counter);\n/* 92 */ } return done;\n/* */ }", "title": "" }, { "docid": "ba339f6fa510c09432a29de38fd8ff6b", "score": "0.56340796", "text": "public final java_cup.runtime.Symbol CUP$ExampleParser$do_action(\n int CUP$ExampleParser$act_num,\n java_cup.runtime.lr_parser CUP$ExampleParser$parser,\n java.util.Stack CUP$ExampleParser$stack,\n int CUP$ExampleParser$top)\n throws java.lang.Exception\n {\n return CUP$ExampleParser$do_action_part00000000(\n CUP$ExampleParser$act_num,\n CUP$ExampleParser$parser,\n CUP$ExampleParser$stack,\n CUP$ExampleParser$top);\n }", "title": "" }, { "docid": "6354d70a4949f91b0636c10895e99d72", "score": "0.5626659", "text": "private void createActions() {\n\t}", "title": "" }, { "docid": "4bd963d78c88552bb2393d5e8c597907", "score": "0.5623799", "text": "public void act() \n {\n \n }", "title": "" }, { "docid": "32bad98278a05bd181f4ae7d80a98436", "score": "0.561685", "text": "ICommandObject doSpecialRoleAction(String action);", "title": "" }, { "docid": "820dad0eb98925d2a07afbe7819403aa", "score": "0.55937886", "text": "@Override\n\tpublic void action() {\n\t\tSystem.out.println(\"Normal Pac-Man!\");\n\t}", "title": "" }, { "docid": "1f61cfd4e0f970fbb091b079d9e31695", "score": "0.55916977", "text": "public void act() \r\n {\n }", "title": "" }, { "docid": "1f61cfd4e0f970fbb091b079d9e31695", "score": "0.55916977", "text": "public void act() \r\n {\n }", "title": "" }, { "docid": "2c7e62bcff63d5ae3f6e863a816c7e86", "score": "0.558626", "text": "List<Action> actions(Object s);", "title": "" }, { "docid": "8cf8ac57703316e862a97ef4e42286b6", "score": "0.5581082", "text": "@Override\n\tpublic void performActions() {\n\t\tattack();\n\t\tcastSpell();\n\t}", "title": "" }, { "docid": "1569311424b544f06055a61d4a9bea38", "score": "0.5573779", "text": "public abstract String decide(String term);", "title": "" }, { "docid": "978ab60ad68a6a2b629f2350fcb7b972", "score": "0.5573467", "text": "public abstract void act();", "title": "" }, { "docid": "0562abdbf1e11c116a094f23c3ed5c24", "score": "0.55710775", "text": "private void takeAction(InputSource source, char action) {\n record.append(action);\n // Create a new world.\n if (action == 'N') {\n long seed = inputSeed(source);\n record.append(seed);\n record.append('S'); //Set the stop sign of the seed\n Random random = new Random(seed);\n playerPos = WorldGenerator.createWorld(world, random);\n // If interacts with string, do not render.\n if (source.getClass().equals(KeyBoardInputSource.class)) {\n ter.renderFrame(world);\n }\n } else if (action == ':') { // Save and Quit.\n char nextAction = source.getNextKey();\n if (nextAction == 'Q') {\n record.deleteCharAt(record.length() - 1); // Remove ':' from record.\n save(record.toString()); // Save current world state to the file.\n saveFile();\n if (source.getClass().equals(KeyBoardInputSource.class)) {\n System.exit(0);\n }\n }\n } else if (action == 'L') { // Load saved world.\n record.deleteCharAt(record.length() - 1); // Remove 'L' from the record.\n String savedRecord = load();\n if (savedRecord.equals(\"\")) {\n noLoadFile();\n } else {\n world = playWithInputString(savedRecord); // Load saved world.\n if (source.getClass().equals(KeyBoardInputSource.class)) {\n ter.renderFrame(world);\n }\n }\n } else if (action == 'W') { // move avatar upward if there is no wall\n int x = playerPos.x;\n int y = playerPos.y + 1;\n if (world[x][y].equals(Tileset.FLOOR)) {\n updatePlayer(x, y);\n if (source.getClass().equals(KeyBoardInputSource.class)) {\n ter.renderFrame(world);\n }\n } else if (world[x][y].equals(Tileset.GRASS)) {\n heartCount(x, y);\n }\n } else if (action == 'S') { // move avatar downward if there is no wall\n int x = playerPos.x;\n int y = playerPos.y - 1;\n if (world[x][y].equals(Tileset.FLOOR)) {\n updatePlayer(x, y);\n if (source.getClass().equals(KeyBoardInputSource.class)) {\n ter.renderFrame(world);\n }\n } else if (world[x][y].equals(Tileset.GRASS)) {\n heartCount(x, y);\n }\n } else if (action == 'A') { // move avatar upward if there is no wall\n int x = playerPos.x - 1;\n int y = playerPos.y;\n if (world[x][y].equals(Tileset.FLOOR)) {\n updatePlayer(x, y);\n if (source.getClass().equals(KeyBoardInputSource.class)) {\n ter.renderFrame(world);\n }\n } else if (world[x][y].equals(Tileset.GRASS)) {\n heartCount(x, y);\n }\n } else if (action == 'D') { // move avatar upward if there is no wall\n int x = playerPos.x + 1;\n int y = playerPos.y;\n if (world[x][y].equals(Tileset.FLOOR)) {\n updatePlayer(x, y);\n if (source.getClass().equals(KeyBoardInputSource.class)) {\n ter.renderFrame(world);\n }\n } else if (world[x][y].equals(Tileset.GRASS)) {\n heartCount(x, y);\n }\n }\n }", "title": "" }, { "docid": "b5f414db19feccbd42d2c1fadd0721a6", "score": "0.5566476", "text": "public void commandAction(Command command, Item item) {//GEN-END:|17-itemCommandAction|0|17-preItemCommandAction\n // write pre-action user code here\n if (item == tableItem) {//GEN-BEGIN:|17-itemCommandAction|1|77-preAction\n if (command == itemCommand) {//GEN-END:|17-itemCommandAction|1|77-preAction\n // write pre-action user code here\n method();//GEN-LINE:|17-itemCommandAction|2|77-postAction\n // write post-action user code here\n }//GEN-BEGIN:|17-itemCommandAction|3|364-preAction\n } else if (item == tableItem11) {\n if (command == itemCommand11) {//GEN-END:|17-itemCommandAction|3|364-preAction\n // write pre-action user code here\n playChapter11();//GEN-LINE:|17-itemCommandAction|4|364-postAction\n // write post-action user code here\n }//GEN-BEGIN:|17-itemCommandAction|5|390-preAction\n } else if (item == tableItem15) {\n if (command == itemCommand16) {//GEN-END:|17-itemCommandAction|5|390-preAction\n // write pre-action user code here\n playChapter15();//GEN-LINE:|17-itemCommandAction|6|390-postAction\n // write post-action user code here\n }//GEN-BEGIN:|17-itemCommandAction|7|396-preAction\n } else if (item == tableItem16) {\n if (command == itemCommand17) {//GEN-END:|17-itemCommandAction|7|396-preAction\n // write pre-action user code here\n playChapter16();//GEN-LINE:|17-itemCommandAction|8|396-postAction\n // write post-action user code here\n }//GEN-BEGIN:|17-itemCommandAction|9|17-postItemCommandAction\n }//GEN-END:|17-itemCommandAction|9|17-postItemCommandAction\n // write post-action user code here\n }", "title": "" }, { "docid": "299f5d3d7a5b3b6970c8a2e24f8e32d4", "score": "0.55646616", "text": "public abstract void takeAction(A action);", "title": "" }, { "docid": "64dfe18877f8b101821d9a7dee5e1c7a", "score": "0.55578", "text": "void processAction(TagAction tagAction);", "title": "" }, { "docid": "48c38ea63fc90f01fba20733a8d2837a", "score": "0.5557405", "text": "public void act() \n { \n \n }", "title": "" }, { "docid": "fefcd32ac53bd04f0111d3c76762dffc", "score": "0.55545664", "text": "public static void main(String[] args) {\nif(args == null || args.length == 0) return;\n\tSystem.out.println(args[0]);\n\t\n\tAction action = getAction(args[0]);\n\taction.execute();\n\t}", "title": "" }, { "docid": "75a2dfb1dea490b9f8851345229de66a", "score": "0.5554453", "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: // $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 1: // S ::= TEXTO R_COMPI CIERRA_ETIQUETA inner TEXTO SLASH R_COMPI CIERRA_ETIQUETA \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-4)).value;\n\t\t\n bf.append(\"<html>\\n\");\n bf.append(a);\n bf.append(\"\\n</html>\");\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"S\",0, ((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 2: // inner ::= inner t_inner \n {\n String RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tString b = (String)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t\n RESULT = a + b;\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"inner\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 3: // inner ::= t_inner \n {\n String RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t\n RESULT = a;\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"inner\",1, ((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 4: // t_inner ::= TEXTO R_CABECERA CIERRA_ETIQUETA inner_cabecera TEXTO SLASH R_CABECERA CIERRA_ETIQUETA \n {\n String RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-7)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-7)).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-7)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)).right;\n\t\tString b = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-4)).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\tObject c = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-3)).value;\n\t\t\n RESULT = a + \"head>\\n\" + b + c + \"/head>\\n\";\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"t_inner\",2, ((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 5: // t_inner ::= TEXTO R_CABECERA CIERRA_ETIQUETA TEXTO SLASH R_CABECERA CIERRA_ETIQUETA \n {\n String RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-6)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)).right;\n\t\tObject b = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-3)).value;\n\t\t\n RESULT = a + \"head>\\n\" + b + \"/head>\\n\";\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"t_inner\",2, ((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 6: // t_inner ::= TEXTO R_CUERPO op_cuerpo CIERRA_ETIQUETA inner_cuerpo TEXTO SLASH R_CUERPO CIERRA_ETIQUETA \n {\n String RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-8)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-8)).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-8)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)).right;\n\t\tString b = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-6)).value;\n\t\tint cleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)).left;\n\t\tint cright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)).right;\n\t\tString c = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-4)).value;\n\t\tint dleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)).left;\n\t\tint dright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)).right;\n\t\tObject d = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-3)).value;\n\t\t\n if(b==null){\n RESULT = a + \"body>\\n\" + c + d + \"/body>\\n\";\n }\n else{\n RESULT = a + \"body \" + b + \">\\n\" + c + d + \"/body>\\n\";\n }\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"t_inner\",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 7: // t_inner ::= TEXTO R_CUERPO op_cuerpo CIERRA_ETIQUETA TEXTO SLASH R_CUERPO CIERRA_ETIQUETA \n {\n String RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-7)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-7)).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-7)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)).right;\n\t\tString b = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-5)).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\tObject c = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-3)).value;\n\t\t\n if(b==null){\n RESULT = a + \"body>\\n\" + c + \"/body>\\n\";\n }\n else{\n RESULT = a + \"body\" + b + \">\\n\" + c + \"/body>\\n\";\n }\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"t_inner\",2, ((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 8: // op_cuerpo ::= R_FONDO IGUAL CADENA \n {\n String RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t\n RESULT = \"bgcolor=\" + validaFondo(a.toString().replaceAll(\"\\\"\", \"\"));\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"op_cuerpo\",6, ((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 9: // op_cuerpo ::= \n {\n String RESULT =null;\n\t\t/*epsilon*/\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"op_cuerpo\",6, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 10: // inner_cabecera ::= TEXTO R_TITULO CIERRA_ETIQUETA TEXTO SLASH R_TITULO CIERRA_ETIQUETA \n {\n String RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-6)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)).right;\n\t\tObject b = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-3)).value;\n\t\t\n RESULT = a + \"title>\\n\" + b + \"/title>\\n\";\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"inner_cabecera\",3, ((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 11: // inner_cuerpo ::= inner_cuerpo tipo_cuerpo \n {\n String RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tString b = (String)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t\n RESULT = a + b;\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"inner_cuerpo\",4, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 12: // inner_cuerpo ::= tipo_cuerpo \n {\n String RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t\n RESULT = a;\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"inner_cuerpo\",4, ((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 13: // tipo_cuerpo ::= TEXTO R_PARRAFO op_parrafo CIERRA_ETIQUETA TEXTO SLASH R_PARRAFO CIERRA_ETIQUETA \n {\n String RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-7)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-7)).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-7)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)).right;\n\t\tString b = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-5)).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\tObject c = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-3)).value;\n\t\t\n if(b==null){\n RESULT = a + \"p>\\n\" + c + \"/p>\\n\";\n }\n else{\n RESULT = a + \"p \" + b + \">\\n\" + c + \"/p>\\n\";\n }\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"tipo_cuerpo\",5, ((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 14: // tipo_cuerpo ::= TEXTO SLASH R_SALTO CIERRA_ETIQUETA \n {\n String RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-3)).value;\n\t\t\n RESULT = a + \"br>\";\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"tipo_cuerpo\",5, ((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 15: // tipo_cuerpo ::= TEXTO R_TABLA op_tabla CIERRA_ETIQUETA lista_tabla TEXTO SLASH R_TABLA CIERRA_ETIQUETA \n {\n String RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-8)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-8)).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-8)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)).right;\n\t\tString b = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-6)).value;\n\t\tint cleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)).left;\n\t\tint cright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)).right;\n\t\tString c = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-4)).value;\n\t\tint dleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)).left;\n\t\tint dright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)).right;\n\t\tObject d = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-3)).value;\n\t\t\n RESULT = a + \"table \" + b + \">\\n\" + c + d + \"/table>\\n\";\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"tipo_cuerpo\",5, ((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 16: // tipo_cuerpo ::= TEXTO R_IMAGEN list_img CIERRA_ETIQUETA TEXTO SLASH R_IMAGEN CIERRA_ETIQUETA \n {\n String RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-7)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-7)).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-7)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)).right;\n\t\tString b = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-5)).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\tObject c = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-3)).value;\n\t\t\n RESULT = a + \"img \" + b + \">\\n\" + c + \"/img>\\n\";\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"tipo_cuerpo\",5, ((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 17: // tipo_cuerpo ::= TEXTO R_TEXTOA CIERRA_ETIQUETA TEXTO SLASH R_TEXTOA CIERRA_ETIQUETA \n {\n String RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-6)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)).right;\n\t\tObject b = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-3)).value;\n\t\t\n RESULT = a + \"h1>\\n\" + b + \"/h1>\\n\";\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"tipo_cuerpo\",5, ((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 18: // tipo_cuerpo ::= TEXTO R_TEXTOB CIERRA_ETIQUETA TEXTO SLASH R_TEXTOB CIERRA_ETIQUETA \n {\n String RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-6)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)).right;\n\t\tObject b = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-3)).value;\n\t\t\n RESULT = a + \"h3>\\n\" + b + \"/h3>\\n\";\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"tipo_cuerpo\",5, ((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 19: // tipo_cuerpo ::= TEXTO R_BOTON op_boton CIERRA_ETIQUETA TEXTO SLASH R_BOTON CIERRA_ETIQUETA \n {\n String RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-7)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-7)).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-7)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)).right;\n\t\tString b = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-5)).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\tObject c = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-3)).value;\n\t\t\n RESULT = a + \"input type=\\\"button\\\" \" + b + \">\\n\" + c.toString().replace(\"<\",\" \");\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"tipo_cuerpo\",5, ((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 20: // tipo_cuerpo ::= TEXTO R_ESPACIO CIERRA_ETIQUETA inner_cuerpo TEXTO SLASH R_ESPACIO CIERRA_ETIQUETA \n {\n String RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-7)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-7)).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-7)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)).right;\n\t\tString b = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-4)).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\tObject c = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-3)).value;\n\t\t\n RESULT = a + \"div>\\n\" + b + c + \"/div>\\n\";\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"tipo_cuerpo\",5, ((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 21: // tipo_cuerpo ::= ABRE_HS list_hs R_CIERRAHS \n {\n String RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\t\n if(a!=null)\n RESULT = a.toString();\n else\n RESULT = \"\";\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"tipo_cuerpo\",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 22: // op_parrafo ::= ID IGUAL CADENA \n {\n String RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tObject b = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t\n if(a.toString().equalsIgnoreCase(\"alineacion\")){\n String align = \"\";\n b = ((String)b).replaceAll(\"\\\"\",\"\");\n if(b.toString().equalsIgnoreCase(\"centrado\")){\n align = \"center\";\n }\n else if(b.toString().equalsIgnoreCase(\"justificado\")){\n align = \"justify\";\n }\n else if(b.toString().equalsIgnoreCase(\"derecha\")){\n align = \"right\";\n }\n else if(b.toString().equalsIgnoreCase(\"izquierda\")){\n align = \"left\";\n }\n RESULT = \"align=\\\"\" + align+\"\\\"\";\n }\n else{\n RESULT = \"\";\n }\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"op_parrafo\",7, ((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 23: // op_parrafo ::= \n {\n String RESULT =null;\n\t\t /*epsilon*/ \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"op_parrafo\",7, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 24: // op_boton ::= ID IGUAL CADENA ID IGUAL CADENA \n {\n String RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-5)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)).right;\n\t\tObject b = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-3)).value;\n\t\tint cleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left;\n\t\tint cright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).right;\n\t\tObject c = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\tint dleft = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint dright = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tObject d = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t\n String id=\"\";\n String value=\"\";\n if(a.toString().equalsIgnoreCase(\"id\")){\n id = b.toString();\n }\n else if(a.toString().equalsIgnoreCase(\"texto\")){\n value = d.toString();\n }\n if(c.toString().equalsIgnoreCase(\"id\")){\n id = d.toString();\n }\n else if(c.toString().equalsIgnoreCase(\"texto\")){\n value = d.toString();\n }\n RESULT = \"id =\" + id + \" value =\" + value;\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"op_boton\",8, ((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: // list_img ::= list_img op_imagen \n {\n String RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tString b = (String)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t\n RESULT = a + \" \" + b;\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"list_img\",10, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 26: // list_img ::= op_imagen \n {\n String RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t\n RESULT = a;\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"list_img\",10, ((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 27: // op_imagen ::= ID IGUAL CADENA \n {\n String RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tObject b = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t\n if(a.toString().equalsIgnoreCase(\"path\")){\n RESULT = \" src=\" + b;\n }\n else if(a.toString().equalsIgnoreCase(\"alto\")){\n RESULT = \" height=\" + b;\n }\n else if(a.toString().equalsIgnoreCase(\"ancho\")){\n RESULT = \" width=\" + b;\n }\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"op_imagen\",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 28: // op_imagen ::= ID IGUAL NUM \n {\n String RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tObject b = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t\n if(a.toString().equalsIgnoreCase(\"path\")){\n RESULT = \" src=\" + b;\n }\n else if(a.toString().equalsIgnoreCase(\"alto\")){\n RESULT = \" height=\" + b;\n }\n else if(a.toString().equalsIgnoreCase(\"ancho\")){\n RESULT = \" width=\" + b;\n }\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"op_imagen\",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 29: // op_tabla ::= ID IGUAL ID \n {\n String RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tObject b = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t\n if(a.toString().equalsIgnoreCase(\"borde\")){\n RESULT = \"border\" + \"=\" + b;\n }\n else RESULT = \"\";\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"op_tabla\",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 30: // op_tabla ::= ID IGUAL CADENA \n {\n String RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tObject b = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t\n if(a.toString().equalsIgnoreCase(\"borde\")){\n RESULT = \"border\" + \"=\" + b;\n }\n else RESULT = \"\";\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"op_tabla\",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 31: // op_tabla ::= \n {\n String RESULT =null;\n\t\t/*epsilon*/\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"op_tabla\",11, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 32: // lista_tabla ::= lista_tabla TEXTO R_FILA CIERRA_ETIQUETA lista_fila TEXTO SLASH R_FILA CIERRA_ETIQUETA \n {\n String RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-8)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-8)).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-8)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-7)).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-7)).right;\n\t\tObject b = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-7)).value;\n\t\tint cleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)).left;\n\t\tint cright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)).right;\n\t\tString c = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-4)).value;\n\t\tint dleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)).left;\n\t\tint dright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)).right;\n\t\tObject d = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-3)).value;\n\t\t\n RESULT = a + b + \"tr>\" + c + d + \"/tr>\\n\";\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"lista_tabla\",12, ((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 33: // lista_tabla ::= TEXTO R_FILA CIERRA_ETIQUETA lista_fila TEXTO SLASH R_FILA CIERRA_ETIQUETA \n {\n String RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-7)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-7)).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-7)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)).right;\n\t\tString b = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-4)).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\tObject c = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-3)).value;\n\t\t\n RESULT = a + \"tr>\"+ b + c + \"/tr>\\n\";\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"lista_tabla\",12, ((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 34: // lista_fila ::= lista_fila tipo_columna \n {\n String RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tString b = (String)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t\n RESULT = a + b;\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"lista_fila\",13, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 35: // lista_fila ::= tipo_columna \n {\n String RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t\n RESULT = a;\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"lista_fila\",13, ((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 36: // tipo_columna ::= TEXTO R_COLUMNAC CIERRA_ETIQUETA lista_columna TEXTO SLASH R_COLUMNAC CIERRA_ETIQUETA \n {\n String RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-7)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-7)).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-7)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)).right;\n\t\tString b = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-4)).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\tObject c = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-3)).value;\n\t\t\n RESULT = a + \"th>\" + b + c + \"/th>\\n\";\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"tipo_columna\",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 37: // tipo_columna ::= TEXTO R_COLUMNA CIERRA_ETIQUETA lista_columna TEXTO SLASH R_COLUMNA CIERRA_ETIQUETA \n {\n String RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-7)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-7)).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-7)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)).right;\n\t\tString b = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-4)).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\tObject c = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-3)).value;\n\t\t\n RESULT = a + \"th>\" + b + c + \"/th>\\n\";\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"tipo_columna\",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 38: // tipo_columna ::= TEXTO R_COLUMNA CIERRA_ETIQUETA TEXTO SLASH R_COLUMNA CIERRA_ETIQUETA \n {\n String RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-6)).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\tObject c = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-3)).value;\n\t\t\n RESULT = a + \"th>\" + c + \"/th>\\n\";\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"tipo_columna\",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 39: // tipo_columna ::= TEXTO R_COLUMNAC CIERRA_ETIQUETA TEXTO SLASH R_COLUMNAC CIERRA_ETIQUETA \n {\n String RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-6)).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\tObject c = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-3)).value;\n\t\t\n RESULT = a + \"th>\" + c + \"/th>\\n\";\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"tipo_columna\",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 40: // lista_columna ::= lista_columna op_columna \n {\n String RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tString b = (String)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t\n RESULT = a + \"\\n\" + b;\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"lista_columna\",16, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 41: // lista_columna ::= op_columna \n {\n String RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t\n RESULT = a + \"\\n\";\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"lista_columna\",16, ((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 42: // op_columna ::= TEXTO R_PARRAFO op_parrafo CIERRA_ETIQUETA TEXTO SLASH R_PARRAFO CIERRA_ETIQUETA \n {\n String RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-7)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-7)).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-7)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)).right;\n\t\tString b = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-5)).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\tObject c = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-3)).value;\n\t\t\n if(b==null){\n RESULT = a + \"p>\" + c + \"/p>\";\n }\n else{\n RESULT = a + \"p \" + b + \">\" + c + \"/p>\";\n }\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"op_columna\",15, ((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 43: // op_columna ::= TEXTO SLASH R_SALTO CIERRA_ETIQUETA \n {\n String RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-3)).value;\n\t\t\n RESULT = a + \"br>\";\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"op_columna\",15, ((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 44: // op_columna ::= TEXTO R_IMAGEN list_img CIERRA_ETIQUETA TEXTO SLASH R_IMAGEN CIERRA_ETIQUETA \n {\n String RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-7)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-7)).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-7)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)).right;\n\t\tString b = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-5)).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\tObject c = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-3)).value;\n\t\t\n RESULT = a + \"image \" + b + \">\" + c + \"/image>\";\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"op_columna\",15, ((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 45: // op_columna ::= TEXTO R_BOTON op_boton CIERRA_ETIQUETA TEXTO SLASH R_BOTON CIERRA_ETIQUETA \n {\n String RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-7)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-7)).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-7)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)).right;\n\t\tString b = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-5)).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\tObject c = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-3)).value;\n\t\t\n RESULT = a + \"input type=\\\"button\\\" \" + b + \">\" + c.toString().replace(\"<\",\" \");\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"op_columna\",15, ((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: // op_columna ::= ABRE_HS list_hs R_CIERRAHS \n {\n String RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\t\n RESULT = (String)a;\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"op_columna\",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 47: // list_hs ::= list_hs op_hs \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tObject b = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t\n RESULT = a;\n if(b!=null){\n if(b instanceof St_If){\n if(((St_If)b).isCondicion())\n RESULT = RESULT + ((St_If)b).ejecutar(txt_console);\n }\n else if(b instanceof St_While){\n StringBuilder temp = new StringBuilder();\n for(int i=0; i<((St_While)b).getRep();i++){\n temp.append(((St_While)b).ejecutar(txt_console));\n }\n RESULT = RESULT + temp.toString();\n }\n else if(b instanceof St_IfElse){\n if(((St_IfElse)b).isCond())\n RESULT = RESULT + ((St_IfElse)b).ejecutar(txt_console);\n else\n RESULT = RESULT + ((St_IfElse)b).ejecutar1(txt_console);\n }\n else{\n RESULT = RESULT + b.toString();\n }\n }\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"list_hs\",21, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 48: // list_hs ::= op_hs \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t\n RESULT = \"\";\n if(a!=null){\n if(a instanceof St_If){\n if(((St_If)a).isCondicion())\n RESULT = ((St_If)a).ejecutar(txt_console);\n }\n else if(a instanceof St_While){\n StringBuilder temp = new StringBuilder();\n for(int i=0; i<((St_While)a).getRep();i++){\n temp.append(((St_While)a).ejecutar(txt_console));\n }\n RESULT = temp.toString();\n }\n else if(a instanceof St_IfElse){\n if(((St_IfElse)a).isCond())\n RESULT = ((St_IfElse)a).ejecutar(txt_console);\n else\n RESULT = ((St_IfElse)a).ejecutar1(txt_console);\n }\n else{\n RESULT = a.toString();\n }\n }\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"list_hs\",21, ((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 49: // list_hsp ::= list_hsp op_hsp \n {\n ArrayList<statement.St> RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).right;\n\t\tArrayList<statement.St> a = (ArrayList<statement.St>)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tstatement.St b = (statement.St)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t\n RESULT = a;\n RESULT.add(b);\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"list_hsp\",23, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 50: // list_hsp ::= op_hsp \n {\n ArrayList<statement.St> RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tstatement.St a = (statement.St)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t\n RESULT = new ArrayList<statement.St>();\n RESULT.add(a);\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"list_hsp\",23, ((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 51: // op_hs ::= VAR1 VARIABLE IGUAL block_echo PUNTOYCOMA \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-3)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).right;\n\t\tObject b = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\t\n if(b instanceof Boolean){\n lista_variable.put(\"$\"+a.toString().toLowerCase(),new Pojos.Variable(\"$\"+a.toString(),\"Booleano\",aleft,aright,b));\n }\n else if(b instanceof String){\n lista_variable.put(\"$\"+a.toString().toLowerCase(),new Pojos.Variable(\"$\"+a.toString(),\"Cadena\",aleft,aright,b));\n }\n else if(b instanceof Integer){\n lista_variable.put(\"$\"+a.toString().toLowerCase(),new Pojos.Variable(\"$\"+a.toString(),\"Entero\",aleft,aright,b));\n }\n else if(b instanceof Float){\n lista_variable.put(\"$\"+a.toString().toLowerCase(),new Pojos.Variable(\"$\"+a.toString(),\"Decimal\",aleft,aright,b));\n }\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"op_hs\",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 52: // op_hs ::= block_if \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t\n RESULT = a;\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"op_hs\",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 53: // op_hs ::= R_ECHO block_echo PUNTOYCOMA \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\t\n txt_console.append(\"-> \" + a.toString()+\"\\n\");\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"op_hs\",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 case 54: // op_hs ::= block_repetir \n {\n Object RESULT =null;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tObject b = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t\n RESULT = b;\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"op_hs\",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 55: // op_hs ::= VAR2 VARIABLE IGUAL var_obj PUNTOYCOMA \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-3)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).right;\n\t\tObject b = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\t\n lista_variable.put(\"#\"+a.toString().toLowerCase(),new Pojos.Variable(\"#\"+a.toString().toLowerCase(),\"Object\",aleft,aright,b));\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"op_hs\",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 56: // op_hs ::= st_set \n {\n Object RESULT =null;\n\t\t\n\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"op_hs\",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 57: // op_hs ::= st_insert \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t\n RESULT = a.toString();\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"op_hs\",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 58: // op_hsp ::= VAR1 VARIABLE IGUAL block_echo PUNTOYCOMA \n {\n statement.St RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-3)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).right;\n\t\tObject b = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\t\n if(b instanceof Boolean){\n RESULT = new statement.Var(new Pojos.Variable(\"$\"+a.toString().toLowerCase(),\"Booleano\",aleft,aright,b));\n }\n else if(b instanceof String){\n RESULT = new statement.Var(new Pojos.Variable(\"$\"+a.toString().toLowerCase(),\"Cadena\",aleft,aright,b));\n }\n else if(b instanceof Integer){\n RESULT = new statement.Var(new Pojos.Variable(\"$\"+a.toString().toLowerCase(),\"Entero\",aleft,aright,b));\n }\n else if(b instanceof Float){\n RESULT = new statement.Var(new Pojos.Variable(\"$\"+a.toString().toLowerCase(),\"Decimal\",aleft,aright,b));\n }\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"op_hsp\",22, ((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 59: // op_hsp ::= block_if \n {\n statement.St RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t\n if(a instanceof statement.St_If){\n RESULT = (statement.St_If) a;\n }\n else if(a instanceof statement.St_IfElse){\n RESULT = (statement.St_IfElse) a;\n }\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"op_hsp\",22, ((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: // op_hsp ::= R_ECHO block_echo PUNTOYCOMA \n {\n statement.St RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\t\n RESULT = new statement.Echo(a.toString());\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"op_hsp\",22, ((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 61: // op_hsp ::= block_repetir \n {\n statement.St RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t\n RESULT = (statement.St_While) a;\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"op_hsp\",22, ((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 62: // op_hsp ::= VAR2 VARIABLE IGUAL var_obj PUNTOYCOMA \n {\n statement.St RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-3)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).right;\n\t\tObject b = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\t\n RESULT = new statement.Var(new Pojos.Variable(\"#\"+a.toString().toLowerCase(),\"Object\",aleft,aright,b));\n\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"op_hsp\",22, ((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 63: // op_hsp ::= st_insert \n {\n statement.St RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t\n RESULT = new statement.Insert(a.toString());\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"op_hsp\",22, ((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 64: // var_obj ::= R_CREARPARRAFO ABRE lst_parrafo CIERRA \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\t\n RESULT = a;\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"var_obj\",28, ((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: // var_obj ::= R_CREARTEXTOA ABRE cad_var CIERRA \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\t\n RESULT = new Pojos.TextoA(a.toString());\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"var_obj\",28, ((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 66: // var_obj ::= R_CREARTEXTOB ABRE cad_var CIERRA \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\t\n RESULT = new Pojos.TextoB(a.toString());\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"var_obj\",28, ((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 67: // var_obj ::= R_CREARIMAGEN ABRE lst_img CIERRA \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\t\n RESULT = a;\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"var_obj\",28, ((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 68: // var_obj ::= R_CREARTABLA ABRE lst_table CIERRA \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\t\n RESULT = a;\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"var_obj\",28, ((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 69: // var_obj ::= R_CREARBOTON ABRE lst_boton CIERRA \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\t\n RESULT = a;\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"var_obj\",28, ((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 70: // st_set ::= VAR2 VARIABLE CONCATENACION R_SETALTO ABRE expr_logica CIERRA PUNTOYCOMA \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-6)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).right;\n\t\tObject b = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\t\n Object o = lista_variable.get(\"#\"+a.toString().toLowerCase()).getValue();\n if(o instanceof Image){\n ((Image)o).setAlto(Integer.parseInt(b.toString()));\n }\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"st_set\",34, ((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 71: // st_set ::= VAR2 VARIABLE CONCATENACION R_SETPATH ABRE block_echo CIERRA PUNTOYCOMA \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-6)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).right;\n\t\tObject b = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\t\n Object o = lista_variable.get(\"#\"+a.toString().toLowerCase()).getValue();\n if(o instanceof Image){\n ((Image)o).setPath(b.toString());\n }\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"st_set\",34, ((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 72: // st_set ::= VAR2 VARIABLE CONCATENACION R_SETANCHO ABRE expr_logica CIERRA PUNTOYCOMA \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-6)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).right;\n\t\tObject b = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\t\n Object o = lista_variable.get(\"#\"+a.toString().toLowerCase()).getValue();\n if(o instanceof Image){\n if(b instanceof Float){\n float b1 = Float.parseFloat(b.toString());\n ((Image)o).setAncho((int)b1);\n }\n else{\n ((Image)o).setAncho(Integer.parseInt(b.toString()));\n }\n }\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"st_set\",34, ((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 73: // st_set ::= VAR2 VARIABLE CONCATENACION R_SETBORDE ABRE expr_logica CIERRA PUNTOYCOMA \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-6)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).right;\n\t\tObject b = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\t\n Object o = lista_variable.get(\"#\"+a.toString().toLowerCase()).getValue();\n if(o instanceof Tabla){\n ((Tabla)o).setBorde((boolean)b);\n }\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"st_set\",34, ((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 74: // st_set ::= VAR2 VARIABLE CONCATENACION R_SETTEXTO ABRE block_echo CIERRA PUNTOYCOMA \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-6)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).right;\n\t\tObject b = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\t\n Object o = lista_variable.get(\"#\"+a.toString().toLowerCase()).getValue();\n if(o instanceof Boton){\n ((Boton)o).setTexto(b.toString());\n }\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"st_set\",34, ((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 75: // st_set ::= VAR2 VARIABLE CONCATENACION R_SETCONTENIDO ABRE block_echo CIERRA PUNTOYCOMA \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-6)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).right;\n\t\tObject b = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\t\n Object o = lista_variable.get(\"#\"+a.toString().toLowerCase()).getValue();\n if(o instanceof Parrafo){\n ((Parrafo)o).setTexto(b.toString());\n }\n else if(o instanceof TextoA){\n ((TextoA)o).setTexto(b.toString());\n }\n else if(o instanceof TextoB){\n ((TextoB)o).setTexto(b.toString());\n }\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"st_set\",34, ((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 76: // st_set ::= VAR2 VARIABLE CONCATENACION R_SETALINEACION ABRE block_echo CIERRA PUNTOYCOMA \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-6)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).right;\n\t\tObject b = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\t\n Object o = lista_variable.get(\"#\"+a.toString().toLowerCase()).getValue();\n if(o instanceof Parrafo){\n ((Parrafo)o).setAlineacion(b.toString());\n }\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"st_set\",34, ((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 77: // st_insert ::= VAR2 VARIABLE CONCATENACION R_INSERTAR ABRE CIERRA PUNTOYCOMA \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-5)).value;\n\t\t\n Object o = lista_variable.get(\"#\"+a.toString().toLowerCase()).getValue();\n if(o instanceof Image){\n RESULT = ((Image)o).getHtml();\n }\n else if(o instanceof Boton){\n RESULT = ((Boton)o).getHtml();\n }\n else if(o instanceof Parrafo){\n RESULT = ((Parrafo)o).getHtml();\n }\n else if(o instanceof TextoA){\n RESULT = ((TextoA)o).getHtml();\n }\n else if(o instanceof TextoB){\n RESULT = ((TextoB)o).getHtml();\n }\n else if(o instanceof Tabla){\n RESULT = ((Tabla)o).getHtml();\n }\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"st_insert\",36, ((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 78: // st_insert ::= VAR2 VARIABLE CONCATENACION R_CLICKBOTON ABRE block_echo CIERRA PUNTOYCOMA \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-6)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).right;\n\t\tObject b = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\t\n Object o = lista_variable.get(\"#\"+a.toString().toLowerCase()).getValue();\n if(o instanceof Boton){\n String id = ((Boton)o).getId();\n RESULT = \"\\n<script> document.getElementById(\\\"\" + id + \"\\\").onclick = function(){alert(\\\"\" + b + \"\\\");};</script>\\n\";\n }\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"st_insert\",36, ((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 79: // st_get ::= VAR2 VARIABLE CONCATENACION R_GETALTO ABRE CIERRA \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-4)).value;\n\t\t\n Object o = lista_variable.get(\"#\"+a.toString().toLowerCase()).getValue();\n if(o instanceof Image){\n RESULT = ((Image)o).getAlto();\n }\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"st_get\",35, ((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 80: // st_get ::= VAR2 VARIABLE CONCATENACION R_GETPATH ABRE CIERRA \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-4)).value;\n\t\t\n Object o = lista_variable.get(\"#\"+a.toString().toLowerCase()).getValue();\n if(o instanceof Image){\n RESULT = ((Image)o).getPath();\n }\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"st_get\",35, ((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 81: // st_get ::= VAR2 VARIABLE CONCATENACION R_GETANCHO ABRE CIERRA \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-4)).value;\n\t\t\n Object o = lista_variable.get(\"#\"+a.toString().toLowerCase()).getValue();\n if(o instanceof Image){\n RESULT = ((Image)o).getAncho();\n }\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"st_get\",35, ((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 82: // st_get ::= VAR2 VARIABLE CONCATENACION R_GETTEXTO ABRE CIERRA \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-4)).value;\n\t\t\n Object o = lista_variable.get(\"#\"+a.toString().toLowerCase()).getValue();\n if(o instanceof Boton){\n RESULT = ((Boton)o).getTexto();\n }\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"st_get\",35, ((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 83: // st_get ::= VAR2 VARIABLE CONCATENACION R_GETCONTENIDO ABRE CIERRA \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-4)).value;\n\t\t\n Object o = lista_variable.get(\"#\"+a.toString().toLowerCase()).getValue();\n if(o instanceof Parrafo){\n RESULT = ((Parrafo)o).getTexto();\n }\n else if(o instanceof TextoA){\n RESULT = ((TextoA)o).getTexto();\n }\n else if(o instanceof TextoB){\n RESULT = ((TextoB)o).getTexto();\n }\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"st_get\",35, ((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 84: // st_get ::= VAR2 VARIABLE CONCATENACION R_GETALINEACION ABRE CIERRA \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-4)).value;\n\t\t\n Object o = lista_variable.get(\"#\"+a.toString().toLowerCase()).getValue();\n if(o instanceof Parrafo){\n RESULT = ((Parrafo)o).getAlineacion();\n }\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"st_get\",35, ((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 85: // cad_var ::= block_echo \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t\n RESULT = a.toString();\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"cad_var\",33, ((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 86: // lst_parrafo ::= cad_var \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t\n RESULT = new Pojos.Parrafo(a.toString());\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"lst_parrafo\",29, ((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 87: // lst_parrafo ::= cad_var COMA cad_var \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tObject b = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t\n RESULT = new Pojos.Parrafo(a.toString(),b.toString());\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"lst_parrafo\",29, ((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 88: // lst_img ::= cad_var \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t\n RESULT = new Pojos.Image(a.toString(),100,100);\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"lst_img\",30, ((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 89: // lst_img ::= cad_var COMA expr_logica \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tObject b = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t\n RESULT = new Pojos.Image(a.toString(),(int)b,100);\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"lst_img\",30, ((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 90: // lst_img ::= cad_var COMA expr_logica COMA expr_logica \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-4)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).right;\n\t\tObject b = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\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\tObject c = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t\n RESULT = new Pojos.Image(a.toString(),(int)b,(int)c);\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"lst_img\",30, ((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 91: // lst_boton ::= cad_var \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t\n RESULT = new Pojos.Boton(a.toString(),\"default\");\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"lst_boton\",32, ((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 92: // lst_boton ::= cad_var COMA cad_var \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tObject b = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t\n RESULT = new Pojos.Boton(a.toString(),b.toString());\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"lst_boton\",32, ((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 93: // lst_table ::= ls_row \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tArrayList<ArrayList<String>> a = (ArrayList<ArrayList<String>>)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t\n RESULT = new Pojos.Tabla(a);\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"lst_table\",31, ((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 94: // ls_row ::= ls_row COMA CORCHETEIZQUIERDA ls_col CORCHETEDERECHA \n {\n ArrayList<ArrayList<String>> RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)).right;\n\t\tArrayList<ArrayList<String>> a = (ArrayList<ArrayList<String>>)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-4)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).right;\n\t\tArrayList<String> b = (ArrayList<String>)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\t\n RESULT = a;\n RESULT.add(b);\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"ls_row\",38, ((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 95: // ls_row ::= CORCHETEIZQUIERDA ls_col CORCHETEDERECHA \n {\n ArrayList<ArrayList<String>> RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).right;\n\t\tArrayList<String> a = (ArrayList<String>)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\t\n RESULT = new ArrayList<>();\n RESULT.add(a);\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"ls_row\",38, ((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 96: // ls_col ::= ls_col COMA block_echo \n {\n ArrayList<String> RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).right;\n\t\tArrayList<String> a = (ArrayList<String>)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tObject b = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t\n RESULT = a;\n RESULT.add(b.toString());\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"ls_col\",37, ((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 97: // ls_col ::= block_echo \n {\n ArrayList<String> RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t\n RESULT = new ArrayList<>();\n RESULT.add(a.toString());\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"ls_col\",37, ((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 98: // block_echo ::= block_echo CONCATENACION e_echo \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tObject b = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t\n RESULT = a.toString() + \" \" + b.toString();\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"block_echo\",19, ((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 99: // block_echo ::= e_echo \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t\n RESULT = a;\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"block_echo\",19, ((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 100: // e_echo ::= expr_logica \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t\n RESULT = a;\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"e_echo\",24, ((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 101: // block_if ::= R_IF ABRE expr_logica CIERRA LLAVEIZQUIERDA list_hsp LLAVEDERECHA \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-4)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).right;\n\t\tArrayList<statement.St> b = (ArrayList<statement.St>)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\t\n RESULT = new statement.St_If((boolean)a,b);\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"block_if\",18, ((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 102: // block_if ::= R_IF ABRE expr_logica CIERRA LLAVEIZQUIERDA list_hsp LLAVEDERECHA R_ELSE LLAVEIZQUIERDA list_hsp LLAVEDERECHA \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-8)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-8)).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-8)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)).right;\n\t\tArrayList<statement.St> b = (ArrayList<statement.St>)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-5)).value;\n\t\tint cleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left;\n\t\tint cright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).right;\n\t\tArrayList<statement.St> c = (ArrayList<statement.St>)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\t\n RESULT = new statement.St_IfElse((boolean)a,b,c);\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"block_if\",18, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-10)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 103: // block_repetir ::= R_REPETIR ABRE expr_rep CIERRA LLAVEIZQUIERDA list_hsp LLAVEDERECHA \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-4)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).right;\n\t\tArrayList<statement.St> b = (ArrayList<statement.St>)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\t\n RESULT = new statement.St_While((Integer)a,b);\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"block_repetir\",20, ((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 104: // expr_rep ::= expr_rep MAS expr_rep \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tObject b = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t\n RESULT = (Integer) a + (Integer) b;\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expr_rep\",26, ((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 105: // expr_rep ::= expr_rep MENOS expr_rep \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tObject b = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t\n RESULT = (Integer) a - (Integer) b;\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expr_rep\",26, ((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 106: // expr_rep ::= expr_rep POR expr_rep \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tObject b = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t\n RESULT = (Integer) a * (Integer) b;\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expr_rep\",26, ((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 107: // expr_rep ::= expr_rep ENTRE expr_rep \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tObject b = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t\n RESULT = (Integer) a / (Integer) b;\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expr_rep\",26, ((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 108: // expr_rep ::= MENOS expr_rep \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t\n RESULT = -(Integer) a;\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expr_rep\",26, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 109: // expr_rep ::= ABRE expr_rep CIERRA \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\t\n RESULT = a;\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expr_rep\",26, ((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 110: // expr_rep ::= ENTERO \n {\n Object 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\tObject n = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t\n RESULT = Integer.parseInt(n.toString());\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expr_rep\",26, ((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 111: // expr_rep ::= VAR1 VARIABLE \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t\n /*************BUSCAR VARIABLE**********/\n Object o = lista_variable.get(\"$\"+a.toString().toLowerCase()).getValue();\n if(o instanceof Integer){\n RESULT = (Integer) o;\n }\n else{\n RESULT = 0;\n }\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expr_rep\",26, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 112: // expr_rep ::= st_get \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t\n RESULT = a;\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expr_rep\",26, ((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 113: // expr_logica ::= expr_logica AND expr_logica \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tObject b = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t\n RESULT = (boolean)a && (boolean)b;\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expr_logica\",27, ((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 114: // expr_logica ::= expr_logica OR expr_logica \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tObject b = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t\n RESULT = (boolean)a || (boolean)b;\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expr_logica\",27, ((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 115: // expr_logica ::= NOT expr_logica \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t\n RESULT = !(boolean)a;\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expr_logica\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 116: // expr_logica ::= expr \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t\n RESULT = a;\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expr_logica\",27, ((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 117: // expr ::= expr IGUAL_LOGICO expr \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tObject b = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t\n if(a instanceof String || b instanceof String){\n RESULT = a.toString().compareTo(b.toString()) == 0;\n }\n else if(a instanceof Integer && b instanceof Integer){\n RESULT = (Integer) a == (Integer) b;\n }\n else if(a instanceof Float || b instanceof Float){\n RESULT = Float.parseFloat(a.toString()) == Float.parseFloat(b.toString());\n }\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expr\",25, ((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 118: // expr ::= expr DESIGUAL expr \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tObject b = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t\n if(a instanceof String || b instanceof String){\n RESULT = a.toString().compareTo(b.toString()) != 0;\n }\n else if(a instanceof Integer && b instanceof Integer){\n RESULT = (Integer) a != (Integer) b;\n }\n else if(a instanceof Float || b instanceof Float){\n RESULT = Float.parseFloat(a.toString()) != Float.parseFloat(b.toString());\n }\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expr\",25, ((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 119: // expr ::= expr MAYOR expr \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tObject b = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t\n if(a instanceof String || b instanceof String){\n RESULT = a.toString().compareTo(b.toString()) > 0;\n }\n else if(a instanceof Integer && b instanceof Integer){\n RESULT = (Integer) a > (Integer) b;\n }\n else if(a instanceof Float || b instanceof Float){\n RESULT = Float.parseFloat(a.toString()) > Float.parseFloat(b.toString());\n }\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expr\",25, ((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 120: // expr ::= expr MAYOR_IGUAL expr \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tObject b = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t\n if(a instanceof String || b instanceof String){\n RESULT = a.toString().compareTo(b.toString()) >= 0;\n }\n else if(a instanceof Integer && b instanceof Integer){\n RESULT = (Integer) a >= (Integer) b;\n }\n else if(a instanceof Float || b instanceof Float){\n RESULT = Float.parseFloat(a.toString()) >= Float.parseFloat(b.toString());\n }\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expr\",25, ((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 121: // expr ::= expr MENOR expr \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tObject b = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t\n if(a instanceof String || b instanceof String){\n RESULT = a.toString().compareTo(b.toString()) < 0;\n }\n else if(a instanceof Integer && b instanceof Integer){\n RESULT = (Integer) a < (Integer) b;\n }\n else if(a instanceof Float || b instanceof Float){\n RESULT = Float.parseFloat(a.toString()) < Float.parseFloat(b.toString());\n }\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expr\",25, ((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 122: // expr ::= expr MENOR_IGUAL expr \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tObject b = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t\n if(a instanceof String || b instanceof String){\n RESULT = a.toString().compareTo(b.toString()) <= 0;\n }\n else if(a instanceof Integer && b instanceof Integer){\n RESULT = (Integer) a <= (Integer) b;\n }\n else if(a instanceof Float || b instanceof Float){\n RESULT = Float.parseFloat(a.toString()) <= Float.parseFloat(b.toString());\n }\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expr\",25, ((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 123: // expr ::= expr MAS expr \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tObject b = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t\n if(a instanceof Integer && b instanceof Integer){\n RESULT = (Integer) a + (Integer) b;\n }\n else{\n RESULT = Float.parseFloat(a.toString()) + Float.parseFloat(b.toString());\n }\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expr\",25, ((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 124: // expr ::= expr MENOS expr \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tObject b = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t\n if(a instanceof Integer && b instanceof Integer){\n RESULT = (Integer) a - (Integer) b;\n }\n else{\n RESULT = Float.parseFloat(a.toString()) - Float.parseFloat(b.toString());\n }\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expr\",25, ((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 125: // expr ::= expr POR expr \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tObject b = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t\n if(a instanceof Integer && b instanceof Integer){\n RESULT = (Integer) a * (Integer) b;\n }\n else{\n RESULT = Float.parseFloat(a.toString()) * Float.parseFloat(b.toString());\n }\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expr\",25, ((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 126: // expr ::= expr ENTRE expr \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tObject b = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t\n if(a instanceof Integer && b instanceof Integer){\n RESULT = (Integer) a / (Integer) b;\n }\n else{\n RESULT = Float.parseFloat(a.toString()) / Float.parseFloat(b.toString());\n }\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expr\",25, ((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 127: // expr ::= MENOS expr \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t\n if(a instanceof Integer){\n RESULT = -(Integer) a;\n }\n else{\n RESULT = -Float.parseFloat(a.toString());\n }\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expr\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 128: // expr ::= ENTERO \n {\n Object 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\tObject n = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t\n RESULT = Integer.parseInt(n.toString());\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expr\",25, ((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 129: // expr ::= DECIMAL \n {\n Object 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\tObject n = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t\n RESULT = Float.parseFloat(n.toString());\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expr\",25, ((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 130: // expr ::= VAR1 VARIABLE \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t\n /*************BUSCAR VARIABLE**********/\n Object o = lista_variable.get(\"$\"+a.toString().toLowerCase()).getValue();\n if(o instanceof Integer){\n RESULT = (Integer) o;\n }\n else if(o instanceof String){\n RESULT = (String) o;\n }\n else if(o instanceof Float){\n RESULT = (Float) o;\n }\n else if(o instanceof Boolean){\n RESULT = (Boolean) o;\n }\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expr\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 131: // expr ::= R_TRUE \n {\n Object RESULT =null;\n\t\t\n RESULT = true;\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expr\",25, ((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 132: // expr ::= R_FALSE \n {\n Object RESULT =null;\n\t\t\n RESULT = false;\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expr\",25, ((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 133: // expr ::= CADENA \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t\n RESULT = a.toString().replaceAll(\"\\\"\",\"\");\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expr\",25, ((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 134: // expr ::= st_get \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t\n RESULT = a;\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expr\",25, ((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 135: // expr ::= ABRE expr_logica CIERRA \n {\n Object RESULT =null;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).right;\n\t\tObject a = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\t\n RESULT = a;\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expr\",25, ((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": "1dc09ec926eda7686ba89729dd13d41e", "score": "0.5554344", "text": "public interface Action {\n /**\n * Execute action, possibly modifying game data.\n * @param gd Game data\n */\n void execute(GameData gd);\n}", "title": "" }, { "docid": "fe08ae13a754c8bb05a9737fc496468e", "score": "0.5546708", "text": "public void commandAction(Command arg0, Displayable arg1) {\n\t\t\r\n\t}", "title": "" }, { "docid": "31a41f27521a7b260bfd29c7e51ae538", "score": "0.55354095", "text": "private void doingScriptAction(int what, AutoJobAction action) {\n switch (what) {\n case ACTION_SHOW_DIALOG:\n actionShowDialog(action);\n break;\n case ACTION_SHOW_INPUT:\n actionShowInputDialog(action);\n break;\n case ACTION_SHOW_WARNING:\n break;\n case ACTION_SHOW_PROGRESS:\n actionShowProgressDialog(action);\n break;\n default:\n Log.d(TAG, \"Unknown request.\");\n break;\n }\n }", "title": "" }, { "docid": "9c0f855a0376ab5ef076e3c37fac3e53", "score": "0.553416", "text": "private void textAction() {\r\n\r\n\t\t// Ask to the user for the text\r\n\t\tString text = JOptionPane.showInputDialog(\r\n\t\t\t\tnull,\r\n\t\t\t\tAcideLanguageManager.getInstance().getLabels()\r\n\t\t\t\t\t\t.getString(\"s1009\"));\r\n\r\n\t\tif (text != null && !text.equals(\"null\")) {\r\n\r\n\t\t\t// Executes the command that corresponds\r\n\t\t\tAcideMainWindow.getInstance().getConsolePanel().executeCommand(\r\n\t\t\t\t\titem.getItemConfiguration().getCommand(), text);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "5a2fcff9872df2673b09ff1403c5deaf", "score": "0.55144984", "text": "int actions (){\n\t\treturn variables * 2;\n\t\t// these are method which calcuates/output values. \n\t\t// you might need certain calculations (or perform certain actions with a object of this type), and you make your methods for them here.\n\t\t// you could have multiple methods for each. \n\t}", "title": "" }, { "docid": "7083c27d1ebf192713179d57604fff71", "score": "0.5512317", "text": "public Vector convertStringToAction(String actionListDescription);", "title": "" }, { "docid": "9fcdc03de1e73b47185b9f1d3b837a44", "score": "0.55106467", "text": "public void setActionText(Action action, String text);", "title": "" }, { "docid": "2f538fa12fc99e6c24a2da9a81661c94", "score": "0.5510646", "text": "public void action(int a){\n\t\t\tif(a <= 0 && a <= 10 )\n\t\t\t\ta = 1;\n\t\t\tswitch(a){\n\t\t\tcase -1://statement for death.\n\t\t\t\tSystem.out.println(\"You were killed.\");\n\t\t\t\tisAlive = false;\n\t\t\t\tbreak;\n\t\t\tcase 1://stament if you have to fight.\n\t\t\t\tfight war = new fight();\n\t\t\t\tint b = war.battle(stuff.getBullets());\n\t\t\t\tif(b == -10)\n\t\t\t\t\tisAlive = false;\n\t\t\t\tstuff.gun(b);\n\t\t\t\tbreak;\n\t\t\tcase 11://cluse found.\n\t\t\t\tstuff.note();\n\t\t\t\tbreak;\n\t\t\tcase 12:\n\t\t\tdefault:// if no result happens you just end up traveling.\n\t\t\t\tSystem.out.println(\"You wonder though the forest.\");\n\t\t\t\t\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "2601d1aa13f873a6d679566509aa7f43", "score": "0.5510504", "text": "@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tSystem.out.println(\"\");\r\n\t\tString action = e.getActionCommand();\r\n\t\tif(action == \"play\"){\r\n\t\t\tSystem.out.println(\"play in the mud\");\r\n\t\t}else if(action == \"eat\"){\r\n\t\t\tSystem.out.println(\"eat like a pig\");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "32192c5b5db21fb091006ad5515f423b", "score": "0.55084324", "text": "public abstract String RunAction(int choice, PlayerClass player);", "title": "" }, { "docid": "24c70ec0d81a078cf48fb393dcac097b", "score": "0.5499558", "text": "public interface ExtractTextAction extends Service {\n\n\t/**\n\t * Effettua l'estrazione di un testo selezionato.\n\t * \n\t * @return <code>true</code> se l'inserimento &egrave; stato effettuato.\n\t */\n\tpublic boolean doExtractText();\n\n}", "title": "" }, { "docid": "186254778ee3144e31c1ccf730ddfe3d", "score": "0.5494482", "text": "public interface CommandPerformer {\n\n\tpublic List<Response> applyCommand(String commandName, Action originatingAction);\n\t\n}", "title": "" }, { "docid": "ebb3f54a32e3439541565125cb723958", "score": "0.5487454", "text": "@Override\n public String action(String word){\n return word.replaceFirst(String.valueOf(word.charAt(0)), \"*\");\n }", "title": "" } ]
18fdc0d5c7c7b22794e43597f1a7ee60
Function Description: Selects the value from Drop down Function parameters: String xpath Function Return Type: String Author: Puneeta Mishra, Date: 03March2015
[ { "docid": "48c546933766950707a7cfda00de36dd", "score": "0.55412394", "text": "public String Select_DD(By by, String Value){\n\t\tSelect s1= new Select(driver.findElement(by));\n\t\ts1.selectByVisibleText(Value);\n\t\treturn Value+ \"is selected in drop down\";\n\t}", "title": "" } ]
[ { "docid": "d4ca8441b3d40cfee695005f8060ac4f", "score": "0.6738174", "text": "public void select_DropDown(String element, String xpath, String selectText) {\r\n goToSleep(2000);\r\n driver.findElement(By.xpath(element)).click();\r\n if (driver.findElements(By.xpath(xpath)).size() > 0) {\r\n List<WebElement> DropDownValueContainer;\r\n DropDownValueContainer = driver.findElements(By.xpath(xpath));\r\n\r\n for (WebElement option : DropDownValueContainer) {\r\n if (option.getText().equals(selectText)) {\r\n option.click();\r\n break;\r\n }\r\n }\r\n }\r\n\r\n }", "title": "" }, { "docid": "8b75f0df5dc5f8f3f7c50b69016c2ba3", "score": "0.6642463", "text": "public String getSelectedDropDownText(String Object , String variableName){\n\t\t\t\n\t\t\t Select dropdown = null;\n\t\t\t String ObjectId = getObjectid(Object);\n\t\t\t try {\n\t\t\t\tif(Object.contains(\"NAME=\")){\n\t\t\t\t\t \n\t\t\t\t\tdropdown = new Select(driver.findElement(By.name(ObjectId)));\n\t\t\t\t\tString SelectedDropDownText = dropdown.getFirstSelectedOption().getText();\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"[ Method = getSelectedDropDownText ] \" + \" [ getSelectedDropDownText = true ] \" + \" [ \" + variableName + \" = \" + SelectedDropDownText + \" ] \" + \" [ Object = \" + Object + \" ] \");\n\t\t\t\t\t//TestLog.log(LogStatus.PASS, \" [ Method = getSelectedDropDownText ] \" + \" [ getSelectedDropDownText = true ] \" + \" [ \" + variableName + \" = \" + SelectedDropDownText + \" ] \" + \" [ Object = \" + Object + \" ] \");\n\t\t\t return SelectedDropDownText;\n\t\t\t\t\t\t \n\t\t\t\t\t }else if(Object.contains(\"ID=\")){\n\t\t\t\t\t\t \n\t\t\t\t\t\t dropdown = new Select(driver.findElement(By.id(ObjectId)));\n\t\t\t\t\t\t String SelectedDropDownText = dropdown.getFirstSelectedOption().getText();\n\t\t\t\t\t\t System.out.println(\"[ Method = getSelectedDropDownText ] \" + \" [ getSelectedDropDownText = true ] \" + \" [ \" + variableName + \" = \" + SelectedDropDownText + \" ] \" + \" [ Object = \" + Object + \" ] \");\n\t\t\t\t\t\t //TestLog.log(LogStatus.PASS, \" [ Method = getSelectedDropDownText ] \" + \" [ getSelectedDropDownText = true ] \" + \" [ \" + variableName + \" = \" + SelectedDropDownText + \" ] \" + \" [ Object = \" + Object + \" ] \");\n\t\t\t\t\t return SelectedDropDownText;\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t \n\t\t\t\t\t }else if(Object.contains(\"\")){\n\t\t\t\t\t\t \n\t\t\t\t\t\t dropdown = new Select(driver.findElement(By.xpath(ObjectId)));\n\t\t\t\t\t\t String SelectedDropDownText = dropdown.getFirstSelectedOption().getText();\n\t\t\t\t\t\t System.out.println(\"[ Method = getSelectedDropDownText ] \" + \" [ getSelectedDropDownText = true ] \" + \" [ \" + variableName + \" = \" + SelectedDropDownText + \" ] \" + \" [ Object = \" + Object + \" ] \");\n\t\t\t\t\t\t //TestLog.log(LogStatus.PASS, \" [ Method = getSelectedDropDownText ] \" + \" [ getSelectedDropDownText = true ] \" + \" [ \" + variableName + \" = \" + SelectedDropDownText + \" ] \" + \" [ Object = \" + Object + \" ] \");\n\t\t\t\t\t\t return SelectedDropDownText;\n\t\t\t\t\t\t\t \n\t\t\t\t\t }\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"[ Method = getSelectedDropDownText ] \" + \" [ getSelectedDropDownText = false ] \" + \" [ \" + variableName + \" = \" + null + \" ] \" + \" [ Object = \" + Object + \" ] \");\n\t\t\t\t//TestLog.log(LogStatus.FAIL, \" [ Method = getSelectedDropDownText ] \" + \" [ getSelectedDropDownText = false ] \" + \" [ \" + variableName + \" = \" + null + \" ] \" + \" [ Object = \" + Object + \" ] \");\n\t\t\t\te.printStackTrace();\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\t \n\t\t\t return null;\n\t\t\t \n\t\t\t \n\t\t }", "title": "" }, { "docid": "77db566b890d4a373f473bf1da2143d9", "score": "0.6613036", "text": "public static String SelectOptionFromList() {return \"//a//span[text()='GB0009698001']\";}", "title": "" }, { "docid": "d9200357f9248fc1059a9a7e1b04c8f2", "score": "0.6539601", "text": "private void clickDropDownAndSelectValue(int dropDownLocation,\r\n\t\t\tString PopUpId, String DropDownXpath, String selectionValue) {\r\n\t\ttry {\r\n\t\t\tWebDriverWait pageLoaded = new WebDriverWait(driver, 30);\r\n\t\t\t// Find the down arrow element for the drop downs in the page.\r\n\t\t\tWebElement webElement = getDesiredDropDown(dropDownLocation);\r\n\r\n\t\t\tActions builder = new Actions(driver);\r\n\t\t\tbuilder.moveToElement(webElement).perform();\r\n\t\t\tpageLoaded.until(ExpectedConditions.visibilityOfAllElementsLocatedBy(By.className(ON_MOUSE_OVER_DROPDOWN_BUTTON_CLASSNAME)));\r\n\t\t\tWebElement subLink = driver.findElement(By.className(ON_MOUSE_OVER_DROPDOWN_BUTTON_CLASSNAME));\r\n\t\t\tbuilder.moveToElement(subLink).perform();\r\n\t\t\tlogger.debug(\"About to click the drop down arrow\");\r\n\t\t\tbuilder.click().perform();\r\n\t\t\tpageLoaded.until(ExpectedConditions.visibilityOfAllElementsLocatedBy(By.id(PopUpId)));\r\n\t\t\tlogger.debug(\"POP UP BOX OPENED\");\r\n\t\t\tsubLink = driver.findElement(By.id(PopUpId));\r\n\t\t\tbuilder.moveToElement(subLink).build().perform();\r\n\t\t\tList<WebElement> drpListItems = driver.findElements(By.xpath(DropDownXpath));\r\n\t\t\tlogger.debug(\"Number of menu items: \" + drpListItems.size());\r\n\t\t\tfor (WebElement temp : drpListItems) {\r\n\t\t\t\tlogger.debug(\"The text value of element: \" + temp.getText());\r\n\t\t\t\tif (temp.getText().trim().equals(selectionValue)) {\r\n\t\t\t\t\ttemp.click();\r\n\t\t\t\t\tlogger.debug(\"CLICKED THE CHOICE\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tlogger.debug(\"SEARCHING FOR SEARCH BUTTON....\");\r\n\t\t\tpageLoaded.until(ExpectedConditions.presenceOfElementLocated(By.id(SEARCH_BUTTON_ID)));\r\n\t\t\tlogger.debug(\"FOUND THE SEARCH BUTTON IN UI#3\");\r\n\t\t} catch (TimeoutException e) {\r\n\t\t\tlogger.debug(\"TIME OUT IN UI3\");\r\n\t\t\tfinal Writer result = new StringWriter();\r\n\t\t\tfinal PrintWriter printWriter = new PrintWriter(result);\r\n\t\t\te.printStackTrace(printWriter);\r\n\t\t\tlogger.debug(result.toString());\r\n\t\t} catch (UnexpectedTagNameException e) {\r\n\t\t\tlogger.debug(\"NOT A SELECT TAG\");\r\n\t\t\tfinal Writer result = new StringWriter();\r\n\t\t\tfinal PrintWriter printWriter = new PrintWriter(result);\r\n\t\t\te.printStackTrace(printWriter);\r\n\t\t\tlogger.debug(result.toString());\r\n\t\t} catch (Exception e) {\r\n\t\t\tfinal Writer result = new StringWriter();\r\n\t\t\tfinal PrintWriter printWriter = new PrintWriter(result);\r\n\t\t\te.printStackTrace(printWriter);\r\n\t\t\tlogger.debug(result.toString());\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "4089d50b3510a4b221144030f3f29fce", "score": "0.6293527", "text": "public static void slectDropDownValueWithoutSelect(WebDriver driver, String value,String xpath,String option){\n\t\tList<WebElement> dropList = driver.findElements(By.xpath(xpath+option));\n\t\tint listSize = dropList.size();\n\t\tSystem.out.println(\"total option size is \"+listSize);\n\t\t\n\t\tfor(int i=0;i<listSize;i++){\n\t\t\tString text = dropList.get(i).getText();\n\t\t\t//System.out.println(text);\n\t\t\t\tif(text.equals(value)){\n\t\t\t\t\tdropList.get(i).click();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\n\t\t\t}\n\t\t\t\tSystem.out.println(text);\n\t\n\t\t}\n\t\tSystem.out.println(\"============\");\n\t}", "title": "" }, { "docid": "36b7c87cd28d326ec50575daa24655d8", "score": "0.6282187", "text": "public static void main(String[] args) {\nSystem.setProperty(\"webdriver.chrome.driver\", \"./software/chromedriver.exe\");\r\nWebDriver driver = new ChromeDriver();\r\ndriver.get(\"https://www.facebook.com/\");\r\nWebElement ele = driver.findElement(By.id(\"year\"));\r\nSelect s= new Select(ele);\r\ns.selectByVisibleText(\"1990\");\r\n\r\n\r\n\r\n\t}", "title": "" }, { "docid": "05b5b148504d80deac4471990d1909f8", "score": "0.6271586", "text": "public boolean selectRegistrationTypeLst(String strRegistrationTypeEle ){\r\n\t\tboolean blnResult = false;\r\n\t\ttry{\r\n\t\t\tString strRegistrationTypeDrop_XPATH=strToclickComm_XPATH.replace(\"yyy\", testData.get(\"strRegistrationTypeDrop\"));\r\n\t\t\tnew WebDriverWait(driver, lplCoreConstents.HIGH).until(ExpectedConditions.visibilityOfElementLocated((By.xpath(strRegistrationTypeDrop_XPATH))));\r\n\t\t\tblnResult =common.selectDropDownBox(strRegistrationTypeDrop_XPATH, strRegistrationTypeEle,\"\");\t\r\n\t\t\tcommon.waitforProcessing();\r\n\t\t\thomePage.waitForPageLoading(homePage.lplCoreConstents.LOW);\r\n\t\t}\r\n\t\tcatch(Exception ex){\r\n\t\t\tstrError = strError+ex.getMessage();\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t\treturn blnResult;\r\n\t}", "title": "" }, { "docid": "d544922196518540bdfe9810406ab1dc", "score": "0.6264095", "text": "public String getDropDownText(String Object , String variableName){\n\t\t\t\t\n\t\t\t\n\t\t\t String ObjectId = getObjectid(Object);\n\t\t\t try {\n\t\t\t\tif(Object.contains(\"NAME=\")){\n\t\t\t\t\t \n\t\t\t\t String\tDropDownText = driver.findElement(By.name(ObjectId)).getText();\n\t\t\t\t\tSystem.out.println(\" [ Method = getDropDownText ] \" + \" [ getDropDownText = true ] \" + \" [ \" + variableName + \" = \" + DropDownText + \" ] \" + \" [ Object = \" + Object + \" ] \");\n\t\t\t\t //TestLog.log(LogStatus.PASS, \" [ Method = getDropDownText ] \" + \" [ getDropDownText = true ] \" + \" [ \" + variableName + \" = \" + DropDownText + \" ] \" + \" [ Object = \" + Object + \" ] \");\n\t\t\t return DropDownText;\n\t\t\t\t\t\t \n\t\t\t\t\t }else if(Object.contains(\"ID=\")){\n\t\t\t\t\t\t \n\t\t\t\t\t\t String\tDropDownText = driver.findElement(By.id(ObjectId)).getText();\n\t\t\t\t\t\t System.out.println(\" [ Method = getDropDownText ] \" + \" [ getDropDownText = true ] \" + \" [ \" + variableName + \" = \" + DropDownText + \" ] \" + \" [ Object = \" + Object + \" ] \");\n\t\t\t\t\t\t //TestLog.log(LogStatus.PASS, \" [ Method = getDropDownText ] \" + \" [ getDropDownText = true ] \" + \" [ \" + variableName + \" = \" + DropDownText + \" ] \" + \" [ Object = \" + Object + \" ] \");\n\t\t\t\t\t return DropDownText;\n\t\t\t\t\t\t \n\t\t\t\t\t\t \n\t\t\t\t\t }else if(Object.contains(\"\")){\n\t\t\t\t\t\t \n\t\t\t\t\t\t String\tDropDownText = driver.findElement(By.xpath(ObjectId)).getText();\n\t\t\t\t\t\t System.out.println(\" [ Method = getDropDownText ] \" + \" [ getDropDownText = true ] \" + \" [ \" + variableName + \" = \" + DropDownText + \" ] \" + \" [ Object = \" + Object + \" ] \");\n\t\t\t\t\t\t //TestLog.log(LogStatus.PASS, \" [ Method = getDropDownText ] \" + \" [ getDropDownText = true ] \" + \" [ \" + variableName + \" = \" + DropDownText + \" ] \" + \" [ Object = \" + Object + \" ] \");\n\t\t\t\t\t return DropDownText;\n\t\t\t\t\t\t \n\t\t\t\t\t\t\t \n\t\t\t\t\t }\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\tSystem.out.println(\" [ Method = getDropDownText ] \" + \" [ getDropDownText = false ] \" + \" [ \" + variableName + \" = \" + null + \" ] \" + \" [ Object = \" + Object + \" ] \");\n\t\t\t\t //TestLog.log(LogStatus.FAIL, \"[ Method = getDropDownText ] \" + \" [ getDropDownText = false ] \" + \" [ \" + variableName + \" = \" + null + \" ] \" + \" [ Object = \" + Object + \" ] \");\n\t\t\t \te.printStackTrace();\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\t \n\t\t\t System.out.println(\" [ Method = getDropDownText ] \" + \" [ getDropDownText = false ] \" + \" [ \" + variableName + \" = \" + null + \" ] \" + \" [ Object = \" + Object + \" ] \");\n\t\t\t //TestLog.log(LogStatus.FAIL, \" [ Method = getDropDownText ] \" + \" [ getDropDownText = false ] \" + \" [ \" + variableName + \" = \" + null + \" ] \" + \" [ Object = \" + Object + \" ] \");\n\t\t\t return null;\n\t\t\t \n\t\t\t \n\t\t }", "title": "" }, { "docid": "929f04c8b4dadb7371006dc8b2da0429", "score": "0.6252129", "text": "@Given(\"Select Gender as {string}\")\r\npublic void select_Gender_as(String gender) {\n driver.findElement(By.xpath(\"//span[contains(text(),'Female')]\")).click();\r\n}", "title": "" }, { "docid": "7fc04d9efe51e822079e555838162216", "score": "0.6230168", "text": "public static void regSelection(WebDriver driver, String inputData)\n\t{\n\t\tNavigate.get(driver, Directory.lls_reg_url);\n\t\t//Navigate.get(driver, \"https://copayqa.copays.org/portal-redesign#/?_k=900bxm\");\n\t\tWebElement selectportal= driver.findElement(By.xpath(OR.PORTAL_SELECTION));\t\t\t\n\t\tManipulation.selectByVisibletext(selectportal, inputData);\t\t\n\t\tManipulation.wait(driver, \"1\");\n\t}", "title": "" }, { "docid": "edcd98a39767a1f32c0f33cc706164c6", "score": "0.61757934", "text": "void selectDropDownOptionByValue(String logicalName, String value);", "title": "" }, { "docid": "fd608fc21915bf75f590b6d67959052d", "score": "0.6158748", "text": "public void select(String Object, String valueTobeSelected , String Selectby , String variableName){\n\t \n\t Select select = null ;\n\t String ObjectId = getObjectid(Object);\n\t \n\t if(Object.contains(\"NAME=\")){\n\t\t \n\t\t try {\n\t\t\tselect = new Select( driver.findElement(By.name(ObjectId)));\n\t\t\t \n\t\t\t if (Selectby.equalsIgnoreCase(\"byvisibletext\")){\n\t\t\t\t select.selectByVisibleText(valueTobeSelected);\n\t\t\t\t System.out.println(\" [ Method = select ] \" + \" [ Selected = true ] \" + \" [ \" + variableName + \" = \" + valueTobeSelected + \" ] \" + \" [Selected By Category = \" + Selectby + \" ] \" + \" [ Object = \" + Object + \" ] \");\n\t\t\t\t //TestLog.log(LogStatus.PASS, \" [ Method = select ] \" + \" [ Selected = true ] \" + \" [ \" + variableName + \" = \" + valueTobeSelected + \" ] \" + \" [ Selected By Category = \" + Selectby + \" ] \" + \" [ Object = \" + Object + \" ] \");\n\t\t\t\t \n\t\t\t } else if(Selectby.equalsIgnoreCase(\"byvalue\")){\n\t\t\t\t select.selectByValue(valueTobeSelected);\n\t\t\t\t System.out.println(\" [ Method = select ] \" + \" [ Selected = true ] \" + \" [ \" + variableName + \" = \" + valueTobeSelected + \" ] \" + \" [Selected By Category = \" + Selectby + \" ] \" + \" [ Object = \" + Object + \" ] \");\n\t\t\t\t //TestLog.log(LogStatus.PASS, \" [ Method = select ] \" + \" [ Selected = true ] \" + \" [ \" + variableName + \" = \" + valueTobeSelected + \" ] \" + \" [ Selected By Category = \" + Selectby + \" ] \" + \" [ Object = \" + Object + \" ] \");\n\t\t\t } else if(Selectby.equalsIgnoreCase(\"byindex\")){\n\t\t\t\t \n\t\t\t\t int Index = Integer.parseInt(valueTobeSelected);\n\t\t\t\t select.selectByIndex(Index);\n\t\t\t\t System.out.println(\" [ Method = select ] \" + \" [ Selected = true ] \" + \" [ \" + variableName + \" = \" + valueTobeSelected + \" ] \" + \" [Selected By Category = \" + Selectby + \" ] \" + \" [ Object = \" + Object + \" ] \");\n\t\t\t\t //TestLog.log(LogStatus.PASS, \" [ Method = select ] \" + \" [ Selected = true ] \" + \" [ \" + variableName + \" = \" + valueTobeSelected + \" ] \" + \" [ Selected By Category = \" + Selectby + \" ] \" + \" [ Object = \" + Object + \" ] \");\n\t\t\t }\n\t\t} catch (NumberFormatException e) {\n\t\t\t \n\t\t\t System.out.println(\"[ Method = select ] \" + \" [ Selected = false ] \" + \" [ \" + variableName + \" = \" + valueTobeSelected + \" ] \" + \" [ Selected By Category = \" + Selectby + \" ] \" + \" [ Object = \" + Object + \" ] \"); \n\t\t\t //TestLog.log(LogStatus.FAIL, \"[ Method = select ] \" + \" [ Selected = false ] \" + \" [ \" + variableName + \" = \" + valueTobeSelected + \" ] \" + \" [ Selected By Category = \" + Selectby + \" ] \" + \" [ Object = \" + Object + \" ] \");\n\t\t\t\n\t\t\t e.printStackTrace();\n\t\t}\n\t\t \n\t }else if(Object.contains(\"ID=\")){\n\t\t \n\t\t try {\n\t\t\tselect = new Select(driver.findElement(By.id(ObjectId)));\n\t\t\t\t \n\t\t\t if (Selectby.equalsIgnoreCase(\"byvisibletext\")){\n\t\t\t\t select.selectByVisibleText(valueTobeSelected);\n\t\t\t\t System.out.println(\" [ Method = select ] \" + \" [ Selected = true ] \" + \" [ \" + variableName + \" = \" + valueTobeSelected + \" ] \" + \" [Selected By Category = \" + Selectby + \" ] \" + \" [ Object = \" + Object + \" ] \");\n\t\t\t\t //TestLog.log(LogStatus.PASS, \" [ Method = select ] \" + \" [ Selected = true ] \" + \" [ \" + variableName + \" = \" + valueTobeSelected + \" ] \" + \" [ Selected By Category = \" + Selectby + \" ] \" + \" [ Object = \" + Object + \" ] \");\n\t\t\t } else if(Selectby.equalsIgnoreCase(\"byvalue\")){\n\t\t\t\t select.selectByValue(valueTobeSelected);\n\t\t\t\t System.out.println(\" [ Method = select ] \" + \" [ Selected = true ] \" + \" [ \" + variableName + \" = \" + valueTobeSelected + \" ] \" + \" [Selected By Category = \" + Selectby + \" ] \" + \" [ Object = \" + Object + \" ] \");\n\t\t\t\t //TestLog.log(LogStatus.PASS, \" [ Method = select ] \" + \" [ Selected = true ] \" + \" [ \" + variableName + \" = \" + valueTobeSelected + \" ] \" + \" [ Selected By Category = \" + Selectby + \" ] \" + \" [ Object = \" + Object + \" ] \");\n\t\t\t } else if(Selectby.equalsIgnoreCase(\"byindex\")){\n\t\t\t\t \n\t\t\t\t int Index = Integer.parseInt(valueTobeSelected);\n\t\t\t\t select.selectByIndex(Index);\n\t\t\t\t System.out.println(\" [ Method = select ] \" + \" [ Selected = true ] \" + \" [ \" + variableName + \" = \" + valueTobeSelected + \" ] \" + \" [Selected By Category = \" + Selectby + \" ] \" + \" [ Object = \" + Object + \" ] \");\n\t\t\t\t //TestLog.log(LogStatus.PASS, \" [ Method = select ] \" + \" [ Selected = true ] \" + \" [ \" + variableName + \" = \" + valueTobeSelected + \" ] \" + \" [ Selected By Category = \" + Selectby + \" ] \" + \" [ Object = \" + Object + \" ] \");\n\t\t\t }\n\t\t} catch (NumberFormatException e) {\n\t\t\t \n\t\t\tSystem.out.println(\"[ Method = select ] \" + \" [ Selected = false ] \" + \" [ \" + variableName + \" = \" + valueTobeSelected + \" ] \" + \" [ Selected By Category = \" + Selectby + \" ] \" + \" [ Object = \" + Object + \" ] \"); \n\t\t\t //TestLog.log(LogStatus.FAIL, \"[ Method = select ] \" + \" [ Selected = false ] \" + \" [ \" + variableName + \" = \" + valueTobeSelected + \" ] \" + \" [ Selected By Category = \" + Selectby + \" ] \" + \" [ Object = \" + Object + \" ] \");\n\t\t\t e.printStackTrace();\n\t\t}\n\t\t \n\t\t \n\t }else if(Object.contains(\"\")){\n\t\t \n\t\t try {\n\t\t\tselect = new Select(driver.findElement(By.xpath(ObjectId)));\n\t\t\t\t \n\t\t\t if (Selectby.equalsIgnoreCase(\"byvisibletext\")){\n\t\t\t\t \n\t\t\t\t select.selectByVisibleText(valueTobeSelected);\n\t\t\t\t System.out.println(\" [ Method = select ] \" + \" [ Selected = true ] \" + \" [ \" + variableName + \" = \" + valueTobeSelected + \" ] \" + \" [Selected By Category = \" + Selectby + \" ] \" + \" [ Object = \" + Object + \" ] \");\n\t\t\t\t //TestLog.log(LogStatus.PASS, \" [ Method = select ] \" + \" [ \" + variableName + \" = \" + valueTobeSelected + \" ] \" + \" [ Selected By Category = \" + Selectby + \" ] \" + \" [ Object = \" + Object + \" ] \");\n\t\t\t } else if(Selectby.equalsIgnoreCase(\"byvalue\")){\n\t\t\t\t select.selectByValue(valueTobeSelected);\n\t\t\t\t System.out.println(\" [ Method = select ] \" + \" [ Selected = true ] \" + \" [ \" + variableName + \" = \" + valueTobeSelected + \" ] \" + \" [Selected By Category = \" + Selectby + \" ] \" + \" [ Object = \" + Object + \" ] \");\n\t\t\t\t //TestLog.log(LogStatus.PASS, \" [ Method = select ] \" + \" [ Selected = true ] \" + \" [ \" + variableName + \" = \" + valueTobeSelected + \" ] \" + \" [ Selected By Category = \" + Selectby + \" ] \" + \" [ Object = \" + Object + \" ] \");\n\t\t\t } else if(Selectby.equalsIgnoreCase(\"byindex\")){\n\t\t\t\t \n\t\t\t\t int Index = Integer.parseInt(valueTobeSelected);\n\t\t\t\t select.selectByIndex(Index);\n\t\t\t\t System.out.println(\" [ Method = select ] \" + \" [ Selected = true ] \" + \" [ \" + variableName + \" = \" + valueTobeSelected + \" ] \" + \" [Selected By Category = \" + Selectby + \" ] \" + \" [ Object = \" + Object + \" ] \");\n\t\t\t\t //TestLog.log(LogStatus.PASS, \" [ Method = select ] \" + \" [ Selected = true ] \" + \" [ \" + variableName + \" = \" + valueTobeSelected + \" ] \" + \" [ Selected By Category = \" + Selectby + \" ] \" + \" [ Object = \" + Object + \" ] \");\n\t\t\t }\n\t\t} catch (NumberFormatException e) {\n\t\t\t \n\t\t\t System.out.println(\"[ Method = select ] \" + \" [ Selected = false ] \" + \" [ \" + variableName + \" = \" + valueTobeSelected + \" ] \" + \" [ Selected By Category = \" + Selectby + \" ] \" + \" [ Object = \" + Object + \" ] \"); \n\t\t\t //TestLog.log(LogStatus.FAIL, \"[ Method = select ] \" + \" [ Selected = false ] \" + \" [ \" + variableName + \" = \" + valueTobeSelected + \" ] \" + \" [ Selected By Category = \" + Selectby + \" ] \" + \" [ Object = \" + Object + \" ] \");\n\t\t\te.printStackTrace();\n\t\t}\n\t\t \n\t\t \n\t }\n }", "title": "" }, { "docid": "fa82cf0fb37cdeb7fe791562d2f41416", "score": "0.6140478", "text": "public static void SelectElementFromDropDown(WebElement wDropDownArrow, String sDropDownVisibleText){\n\tWebElement wTypeDropdown;\n\tString sXpath;\n\ttry{\n\tWebDriver driver = WebDriverUtil.getDriver();\n\tPageFactory.initElements(driver, FirewallPF);\n\t\n\t WebObjectUtil.clickElement(wDropDownArrow);\n\t sXpath = (String) FrameworkUtil.dictDynamicPagePactory.get(\"CUSTOM.WEBLIST.XPATH\");\n\t wTypeDropdown =WebObjectUtil.getActiveElementasWebElement(sXpath);\n\t WebObjectUtil.selectCustomWebList(wTypeDropdown, sDropDownVisibleText);\n\t}catch(Exception e){\n\t\tLoggerUtil.log_type_error(\"Exception occured\"+FrameworkUtil.sElementName);\n\t\tLoggerUtil.log_type_error(e.getMessage());\n\t}\n}", "title": "" }, { "docid": "c62acaed159e84a6c14667446a4506a5", "score": "0.61351657", "text": "public void selectDropDownUsingText(WebElement ele, String value) {\n Select dropDownByText = new Select(ele);\r\n dropDownByText.selectByVisibleText(value);\r\n takeSnap();\r\n\t}", "title": "" }, { "docid": "2f3b6464ac63c850c912f9cd87ebdca6", "score": "0.6130823", "text": "protected void selecteOption(String valueToSelect){\n }", "title": "" }, { "docid": "db134bba7675fed6f30602f56ce91dec", "score": "0.6058857", "text": "public static void main(String[] args) throws InterruptedException {\nSystem.setProperty(\"webdriver.chrome.driver\", \"D://DEVIBALA//chromedriver_win32//chromedriver.exe\");\r\nWebDriver driver=new ChromeDriver();\r\ndriver.get(\"http://www.leafground.com/pages/Dropdown.html\");\r\n\r\nThread.sleep(4000);\r\n\r\nWebElement dropdown1=driver.findElement(By.id(\"dropdown1\"));\r\n\r\nSelect firstdropdown=new Select(dropdown1);\r\nfirstdropdown.selectByValue(\"4\");\r\nThread.sleep(2000);\r\nfirstdropdown.selectByVisibleText(\"Selenium\");\r\nThread.sleep(2000);\r\nfirstdropdown.selectByIndex(0);\r\n\r\n\r\n\r\n\r\n\r\n\r\n\t}", "title": "" }, { "docid": "8a8f10e17958a3130cf2278d9b20cee9", "score": "0.60579085", "text": "public void selectDropDownUsingText(WebElement ele, String value) \r\n\t{\n\t\tSelect allDrop=new Select(ele);\r\n\t\tallDrop.selectByVisibleText(value);\r\n\t\tSystem.out.println(\"The Value \"+value+\" is selected in this\"+ele);\r\n\t\ttakeSnap();\r\n\t\t\r\n\t}", "title": "" }, { "docid": "1f044e147ac00b3acc14b7992558d09f", "score": "0.6056767", "text": "public static void selectFromDropDown() {\n\t\tSystem.out.println(\"Trying to select from dropdown.\");\n\t\t\n\t\t// wait to locate element and then send keys once found for each\n\n\t\twaitToLocate(\"//*[@id=\\'industry\\']\");\n\t\tSelect industry = new Select(driver.findElement(By.xpath(\"//*[@id=\\'industry\\']\")));\n\t\tindustry.selectByValue(\"Education\");\n\t\tSystem.out.println(\"Selection complete.\");\n\t\t\n\t\twaitToLocate(\"//*[@id=\\'country\\']\");\n\t\tSelect country = new Select(driver.findElement(By.xpath(\"//*[@id=\\'country\\']\")));\n\t\tcountry.selectByValue(\"US\");\n\t\tSystem.out.println(\"Selection complete.\");\n\n\t\t\n\t\tSystem.out.println(\"Succesfully selected values from dropdown.\" + \"\\n\\n\");\n\t}", "title": "" }, { "docid": "8dc5b5ad3982d9890954f086f9e12a5f", "score": "0.6013535", "text": "private static void openDropDown(String xpathDropDownProp){\n\t\tclickAnyButton(xpathDropDownProp);\n\t}", "title": "" }, { "docid": "04724e7ab08681280dc54c3bc620556c", "score": "0.6005672", "text": "public boolean selectClientTypeLst(String strClientTypeEle ){\r\n\t\tboolean blnResult = false;\r\n\t\ttry{\r\n\t\t\tString strClientTypeDrop_XPATH=strToclickComm_XPATH.replace(\"yyy\", testData.get(\"strClientTypeDrop\"));\r\n\t\t\tnew WebDriverWait(driver, lplCoreConstents.HIGH).until(ExpectedConditions.visibilityOfElementLocated((By.xpath(strClientTypeDrop_XPATH))));\r\n\t\t\tblnResult =common.selectDropDownBox(strClientTypeDrop_XPATH, strClientTypeEle,\"\");\t\r\n\t\t\thomePage.waitForPageLoading(homePage.lplCoreConstents.LOW);\r\n\t\t\t//Wait for the page to load\r\n\t\t\tLPLCoreSync.staticWait(homePage.lplCoreConstents.UNITINMILLISEC);\r\n\t\t}\r\n\t\tcatch(Exception ex){\r\n\t\t\tstrError = strError+ex.getMessage();\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t\treturn blnResult;\r\n\t}", "title": "" }, { "docid": "cae25ec6ca51c3c743613188818601e8", "score": "0.5990244", "text": "private void searchFlowPage(){\n WebElement originalLoc = wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//*[@id=\\\"outboundOption.originLocationName\\\"]\")));\n originalLoc.sendKeys(ORIGINAL_LOCATION_DEFAULT);\n // Wait until in dropdown will occurs link with text \"New York-Kennedy, US JFK\"\n wait.until(ExpectedConditions.textToBePresentInElement(By.xpath(\"//*[@id=\\\"drilldownItem1\\\"]\"),\"New York-Kennedy, US JFK\"));\n // Click on specified\n driver.findElement(By.xpath(\"//*[@id=\\\"drilldownItem1\\\"]\")).click();\n\n // Here we specify DESTINATION LOC\n driver.findElement(By.xpath(\"//*[@id=\\\"outboundOption.destinationLocationName\\\"]\")).sendKeys(DESTINATION_LOCATION_DEFAULT);\n wait.until(ExpectedConditions.textToBePresentInElement(By.xpath(\"//*[@id=\\\"drilldownItem1\\\"]\"),\"Las Vegas, US LAS\"));\n driver.findElement(By.xpath(\"//*[@id=\\\"drilldownItem1\\\"]\")).click();\n\n\n // Here we specify DATE OF DEPARTURE\n driver.findElement(By.xpath(\"//*[@id=\\\"departureDate1\\\"]\")).sendKeys(DEPARTURE_DATE_DEFAULT);\n\n // Here we specify DATE OF ARRIVAL\n driver.findElement(By.xpath(\"//*[@id=\\\"departureDate2\\\"]\")).sendKeys(ARRIVE_DATE_DEFAULT);\n\n Select cabinSelector = new Select(driver.findElement(By.id(\"cabinClass\")));\n cabinSelector.selectByVisibleText(CABIN_TYPE_DEFAULT);\n\n Select adultSelector = new Select(driver.findElement(By.id(\"guestTypes[0].amount\")));\n adultSelector.selectByVisibleText(ADULT_NUMBER_OF_PASSNGER_DEFAULT);\n\n Select kidsSelector = new Select(driver.findElement(By.id(\"guestTypes[1].amount\")));\n kidsSelector.selectByVisibleText(KIDS_NUMBER_OF_PASSNGER_DEFAULT);\n\n Select infantSelector = new Select(driver.findElement(By.id(\"guestTypes[2].amount\")));\n infantSelector.selectByVisibleText(INFANT_NUMBER_OF_PASSNGER_DEFAULT);\n\n Select umnrSelector = new Select(driver.findElement(By.id(\"guestTypes[3].amount\")));\n umnrSelector.selectByVisibleText(UMNR_NUMBER_OF_PASSNGER_DEFAULT);\n\n // Here we click on Search button\n driver.findElement(By.xpath(\"//*[@id=\\\"AirFlightSearchForm\\\"]/div[15]/table[1]/tbody/tr/td/a/span/span\")).click();\n }", "title": "" }, { "docid": "17923b7e7036b34b7bb94b3043d4defa", "score": "0.59892595", "text": "public static void selectAndVerifyDynamicDropDownDynamicXpath(String xpathDropDownProp, String xpathToDropDownElement){\n\t\topenDropDown(xpathDropDownProp);\n\t\tselectAndVerifyDropDownContentsSecondElementDirectXpath(xpathDropDownProp, xpathToDropDownElement);\n\t}", "title": "" }, { "docid": "432122a5ca9df3c99db58ec3ff96580f", "score": "0.59634674", "text": "public Element getSelectInput(String xpath) {\n\t\t// does this field have a vocabLayout??\n\t\tString normalizedXPath = RendererHelper.normalizeXPath(xpath);\n\t\tif (rhelper.hasVocabLayout(normalizedXPath)) {\n\t\t\tElement layoutSingleSelect = df.createElement(\"vl__vocabLayoutSingleSelect\").addAttribute(\"elementPath\",\n\t\t\t\t\t\"valueOf(\" + xpath + \")\");\n\t\t\treturn layoutSingleSelect;\n\t\t}\n\n\t\treturn super.getSelectInput(xpath);\n\t}", "title": "" }, { "docid": "0ba29a67551589f359b621d75968dfb0", "score": "0.59592384", "text": "@Execute\n public Value<String> action(\n @Idx(index = \"1\", type = SELECT, options = {\n @Idx.Option(index =\"1.1\", pkg = @Pkg(label = \"Get User Name\", value = \"GetUserName\")),\n @Idx.Option(index =\"1.2\", pkg = @Pkg(label = \"Get User Home Dir\", value = \"GetUserHome\")),\n @Idx.Option(index =\"1.3\", pkg = @Pkg(label = \"Get OS Name\", value = \"GetOSName\")),\n @Idx.Option(index =\"1.4\", pkg = @Pkg(label = \"Get OS Version\", value = \"GetOSVersion\")),\n @Idx.Option(index =\"1.5\", pkg = @Pkg(label = \"Get OS Architecture\", value = \"GetOSArch\")),\n @Idx.Option(index =\"1.6\", pkg = @Pkg(label = \"Get Current Working Dir\", value = \"GetWorkingDir\")),\n @Idx.Option(index =\"1.7\", pkg = @Pkg(label = \"Get User Downloads Dir\", value = \"GetDownloads\")),\n @Idx.Option(index =\"1.8\", pkg = @Pkg(label = \"Get Host Name\", value = \"GetHostName\")),\n @Idx.Option(index =\"1.9\", pkg = @Pkg(label = \"Get IP Address\", value = \"GetIPAddress\")),\n })\n @Pkg(label = \"Select Variable to Return\")\n String select) {\n\n //Internal validation, to disallow empty strings. No null check needed as we have NotEmpty on firstString.\n String result = \"\";\n switch (select){\n case \"GetUserName\":\n result = SharedFunctions.getUser();\n break;\n case \"GetUserHome\":\n result = SharedFunctions.getHome();\n break;\n case \"GetOSName\":\n result = SharedFunctions.getOperatingSystem();\n break;\n case \"GetOSVersion\":\n result = SharedFunctions.getOperatingSystemVersion();\n break;\n case \"GetOSArch\":\n result = SharedFunctions.getOperatingSystemArchitecture();\n break;\n case \"GetWorkingDir\":\n result = SharedFunctions.getCurrentWorkingDir();\n break;\n case \"GetDownloads\":\n result = SharedFunctions.getDownloads();\n break;\n case \"GetHostName\":\n result = SharedFunctions.getHostName();\n break;\n case \"GetIPAddress\":\n result = SharedFunctions.getIPAddress();\n break;\n }\n\n// throw new BotCommandException(MESSAGES.getString(\"emptyInputString\", \"sourceString\"));\n\n //Return StringValue.\n return new StringValue(result);\n }", "title": "" }, { "docid": "cc209a941596b22b4f90f7aafcd4dbac", "score": "0.59575915", "text": "public void selectDropDown() {\n\t\tWebElement list = driver.findElementById(\"Organisation_Id\");\r\n\t\tSelect dropdown = new Select(list); \r\n\t\tdropdown.selectByIndex(1);\r\n\t}", "title": "" }, { "docid": "a96a6e52dab8f65642f5845771d51ae1", "score": "0.59512424", "text": "public static WebElement dropdown_ShowEntries(WebDriver driver){\r\n\t\telement= CommonMethods.waitForElement(driver.findElement(By.xpath(\"html/body/div[1]/div[1]/div[2]/div[1]/div[1]/div/div[1]/div[1]/label/select\")), driver);\r\n\t\treturn element;\r\n\t}", "title": "" }, { "docid": "d52c51f69c9ea3f9fd476bad49ecfe09", "score": "0.59119153", "text": "public WebElement getActionDropdownOption(int option){\n// List<WebElement> elems = this.getDriver().findElements(By.cssSelector(actionDropdownOptionCss));\n List<WebElement> elems = actionDropdownOption;\n return elems.get(option);\n }", "title": "" }, { "docid": "0d9ed5be8ad132bfa1e7a455b2915f8f", "score": "0.590143", "text": "public void selectelementfromDropdown(WebElement element,String value)\n\t{\n\t\tSelect select = new Select(element);\n\t\tselect.selectByValue(value);\n\t}", "title": "" }, { "docid": "c995f0f18c56fc507a73bb3a104b64d2", "score": "0.58778566", "text": "public void dropdownopt(String opt, WebElement element, String selectmethod)\r\n\t{\n\t\tSelect slct= new Select(element);\r\n\t\t switch(selectmethod)\r\n\t\t {\r\n\t\t case \"ByValue\":\r\n\t\t List<WebElement> dropdown =slct.getOptions();\r\n\t\t\tString value=opt;\r\n\t\t\tfor(WebElement optdisp: dropdown)\r\n\t\t\t{\t\r\n\t\t\tif(value.equals(optdisp.getText()))\r\n\t\t\t\t{\r\n\t\t\t\tslct.selectByValue(optdisp.getText());\r\n\t\t\t\t//System.out.println(\"The day selected is \"+ optdisp.getText());\r\n\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t case \"ByVisibility\":\r\n\t\t\t slct.selectByVisibleText(opt);\r\n\t\t\t break;\r\n\t\t default:\r\n\t\t\t\tSystem.out.println(); \r\n\t\t }\r\n\t}", "title": "" }, { "docid": "b01189f2739a85581c3e57791cc3ea47", "score": "0.5876343", "text": "public void checkStockAndContinueToCheckoutAndEditQuantity(String changeTo)\n{\n\n driver.findElement(By.id(\"bb_atc_button\")).click();\n driver.findElement(By.id(\"a-autoid-0-announce\")).click();\n new Select(driver.findElement(By.id(\"a-autoid-2-announce\"))).selectByVisibleText(changeTo);\n driver.findElement(By.name(\"proceedToCheckout\")).click();\n}", "title": "" }, { "docid": "122226684eb9905f5aa55188ed750073", "score": "0.58737916", "text": "Object getSelectdValue();", "title": "" }, { "docid": "8759223e450309069fd35f5e18277a56", "score": "0.58735895", "text": "public void selectFieldValListItem(String strFieldName, String strSelectItem) throws InterruptedException {\n\t\tString methodID = \"selectFieldValListItem\";\n\t\t\n\t\tCommonNavigation commNav = PageFactory.initElements(driver, CommonNavigation.class);\n\t\t\n\t\t//initialize/setup common elements\n\t\tString pageTitle = \"\";\n\t\tString pickListID = \"\";\n\t\tWebElement lookupFld = null;\n\t\tWebElement lookupBtn = null;\n\t\tString hdrCancelBtnXPath = \".//*[@id='Mobile_SalesLogix_Views_MainToolbar_0']/button[3]\";\n\t\t\n\t\t//setup common elements based on field name to set\n\t\tswitch (strFieldName.toLowerCase()) {\n\t\tcase \"account type\": case \"type\":\n\t\t\tpageTitle = \"Account Type\";\n\t\t\tlookupFld = accountTypeLookupInputFld;\n\t\t\tlookupBtn = accountTypeLookupBtn;\n\t\t\tpickListID = \"pick_list_4\";\n\t\t\tbreak;\n\t\tcase \"account subtype\": case \"subtype\": case \"sub type\":\n\t\t\tpageTitle = \"Account Subtype\";\n\t\t\tlookupFld = subtypeLookupInputFld;\n\t\t\tlookupBtn = subtypeLookupBtn;\t\t\t\n\t\t\tpickListID = \"pick_list_0\";\n\t\t\tbreak;\n\t\tcase \"city\":\n\t\t\tpageTitle = \"City\";\n\t\t\tlookupFld = cityLookupInputFld;\n\t\t\tlookupBtn = cityLookupBtn;\t\t\t\n\t\t\tpickListID = \"pick_list_0\";\n\t\t\tbreak;\n\t\tcase \"country\":\n\t\t\tpageTitle = \"Country\";\n\t\t\tlookupFld = countryLookupInputFld;\n\t\t\tlookupBtn = countryLookupBtn;\t\t\t\n\t\t\tpickListID = \"pick_list_3\";\n\t\t\tbreak;\t\n\t\tcase \"cuisine\":\n\t\t\tpageTitle = \"Cuisine\";\n\t\t\tlookupFld = cuisineLookupInputFld;\n\t\t\tlookupBtn = cuisineLookupBtn;\t\t\t\n\t\t\tpickListID = \"pick_list_3\";\n\t\t\tbreak;\t\t\t\n\t\tcase \"description\":\n\t\t\tpageTitle = \"Description\";\n\t\t\tlookupFld = descriptionLookupInputFld;\n\t\t\tlookupBtn = descriptionLookupBtn;\t\t\t\n\t\t\tpickListID = \"pick_list_0\";\n\t\t\tbreak;\n\t\tcase \"industry\":\n\t\t\tpageTitle = \"Industry\";\n\t\t\tlookupFld = industryLookupInputFld;\n\t\t\tlookupBtn = industryLookupBtn;\t\t\t\n\t\t\tpickListID = \"pick_list_6\";\n\t\t\tbreak;\n\t\tcase \"lead source\":\n\t\t\tpageTitle = \"Lead Source\";\n\t\t\tlookupFld = leadSourceLookupInputFld;\n\t\t\tlookupBtn = leadSourceLookupBtn;\t\t\t\n\t\t\tpickListID = \"leadsource_list\";\n\t\t\tbreak;\n\t\tcase \"name prefix\": case \"prefix\":\n\t\t\tpageTitle = \"Name Prefix\";\n\t\t\tlookupFld = namePrefixLookupInputFld;\n\t\t\tlookupBtn = namePrefixLookupBtn;\t\t\t\n\t\t\tpickListID = \"pick_list_0\";\n\t\t\tbreak;\t\t\n\t\tcase \"name suffix\": case \"suffix\":\n\t\t\tpageTitle = \"Name Suffix\";\n\t\t\tlookupFld = nameSuffixLookupInputFld;\n\t\t\tlookupBtn = nameSuffixLookupBtn;\t\t\t\n\t\t\tpickListID = \"pick_list_1\";\n\t\t\tbreak;\t\t\t\n\t\tcase \"owner\":\n\t\t\tpageTitle = \"Owner\";\n\t\t\tlookupFld = ownerLookupInputFld;\n\t\t\tlookupBtn = ownerLookupBtn;\t\t\t\n\t\t\tpickListID = \"owner_list\";\n\t\t\tbreak;\t\t\t\n\t\tcase \"state\":\n\t\t\tpageTitle = \"State\";\n\t\t\tlookupFld = stateLookupInputFld;\n\t\t\tlookupBtn = stateLookupBtn;\t\t\t\n\t\t\tpickListID = \"pick_list_2\";\n\t\t\tbreak;\n\t\tcase \"status\":\n\t\t\tpageTitle = \"Account Status\";\n\t\t\tlookupFld = statusLookupInputFld;\n\t\t\tlookupBtn = statusLookupBtn;\t\t\t\n\t\t\tpickListID = \"pick_list_5\";\n\t\t\tbreak;\n\t\tcase \"title\":\n\t\t\tpageTitle = \"Title\";\n\t\t\tlookupFld = titleLookupInputFld;\n\t\t\tlookupBtn = titleLookupBtn;\t\t\t\n\t\t\tpickListID = \"pick_list_2\";\n\t\t\tbreak;\t\t\t\n\t\tcase \"user\": case \"users\": case \"acct mgr\":\n\t\t\tpageTitle = \"Users\";\n\t\t\tlookupFld = userLookupInputFld;\n\t\t\tlookupBtn = userLookupBtn;\t\t\t\n\t\t\tpickListID = \"user_list\";\n\t\t\tbreak;\t\t\t\n\t\t}\n\t\t\n\t\t//process the list item selection\n\t\tif (commNav.isPageDisplayed(pageTitle)) { \t\t\n\t\t\t//cancel selection for 'none'\n\t\t\tif (strSelectItem.toUpperCase().equals(\"NONE\")) {\n\t\t\t\tdriver.findElement(By.xpath(hdrCancelBtnXPath)).click();\n\t\t\t}\n\t\t\t//perform item search and selection\n\t\t\telse {\n\t\t\t\tlookupFld.click();\n\t\t\t\tlookupFld.sendKeys(strSelectItem);\n\t\t\t\tThread.sleep(100);\t\n\t\t\t\tlookupFld.sendKeys(Keys.ENTER);\n\t\t\t\tThread.sleep(3000);\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tif (pageTitle.toLowerCase().equals(\"users\")) {\n\t\t\t\t\t\t//commNav.clickListViewGridItem(By.xpath(\".//*[@id='\" + pickListID + \"']/descendant::*[text() = '\" + strSelectItem + \"']\"));\n\t\t\t\t\t\tcommNav.clickListViewGridItem(By.xpath(\".//*[@id='user_list']/ul/li/div[1]/h3\"));\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tcommNav.clickListViewGridItem(By.xpath(\"//li[1]/div/h3\"));\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(methodID + \": \" + strFieldName + \" - \" + strSelectItem + \" was selected.\");\n\t\t\t\t}\n\t\t\t\tcatch (Exception e){\n\t\t\t\t\tSystem.out.println(methodID + \":\" + e.toString());\n\t\t\t\t\tSystem.out.println(methodID + \": \" + strFieldName + \" - \" + strSelectItem + \" was NOT found; selection skipped.\");\n\t\t\t\t\tdriver.findElement(By.xpath(hdrCancelBtnXPath)).click();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tThread.sleep(1000);\n\t\t\tcommNav.waitForNotPage(pageTitle);\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(methodID + \": \" + strFieldName + \" list view was not displayed; selection step skipped.\");\n\t\t}\t\t\n\t}", "title": "" }, { "docid": "c7dabec614d75f2acdd1bc47fe9755ea", "score": "0.5826979", "text": "public static void main(String[] args) {\n \tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Users\\\\RAMYAMUPPARAJU\\\\Documents\\\\chromedriver.exe\");\n\t \n \t WebDriver driver = new ChromeDriver(); \n \n driver.get(\"https://www.training-support.net/selenium/selects\");\n \n System.out.println(\"The title of the page is : \"+ driver.getTitle());\n WebElement selectvalue=driver.findElement(By.id(\"single-select\"));\n \n Select dropdown=new Select(driver.findElement(By.id(\"single-select\")));\n \n dropdown.selectByVisibleText(\"Option 2\");\n System.out.println(\"Second dropdown value is : \"+selectvalue.getText());\n \n dropdown.selectByIndex(3);\n System.out.println(\"The third value is dropdown is : \"+selectvalue.getText());\n \n dropdown.selectByValue(\"4\");\n System.out.println(\"The fourth value in drop down is : \"+selectvalue.getText());\n \n List<WebElement> ValuesinDropdown=dropdown.getOptions();\n for(WebElement values :ValuesinDropdown) {\n \tSystem.out.println(\"All the optionsin the dropdown are : \"+values.getText());\n }\n driver.close();\n \n\t}", "title": "" }, { "docid": "c890bfdeca07a958dac721e48ca79f13", "score": "0.5792461", "text": "public static void select(String locator, String value) {\n\t\tif(locator.contains(\"_CSS\")) {\n\t\t\telement = driver.findElement(By.cssSelector(or.getProperty(locator)));\n\t\t\ttes.log(LogStatus.INFO, \"Selecting \"+value+\" In \"+locator);\n\t\t}\n\t\telse if(locator.contains(\"_XPATH\")) {\n\t\t\telement = driver.findElement(By.cssSelector(or.getProperty(locator)));\n\t\t\ttes.log(LogStatus.INFO, \"Selecting \"+value+\" In \"+locator);\n\t\t}\n\t\telse if(locator.contains(\"_ID\")) {\n\t\t\telement = driver.findElement(By.cssSelector(or.getProperty(locator)));\n\t\t\ttes.log(LogStatus.INFO, \"Selecting \"+value+\" In \"+locator);\n\t\t}\n\n\t\t\tSelect s = new Select(element);\n//\t\t\ts.selectByVisibleText(value);\n\t\t\tList<WebElement> web = s.getOptions();\n\t\t\tList<String> options = new ArrayList<String>();\n\t\t\tfor(WebElement w : web) {\n\t\t\t\tif(w.getText().equalsIgnoreCase(value)) {\n\t\t\t\t\ts.selectByVisibleText(value);\n\t\t\t\t}\n\t\t\t\toptions.add(w.getText()); //option is now String value of all the Options in Drop-down\n\t\t\t}\t\n\t}", "title": "" }, { "docid": "eef3a8c41ddb02f59e0477b7138bcb5a", "score": "0.5790619", "text": "public static void Gen_firstSelectedOption(String object, String data) \n\t\t{\n\t\t\ttry \n\t\t\t{ \n\t\t\t\tApp_Log.debug(\"Selecting First Text\");\n\t\t\t\twait=new WebDriverWait(driver,waitTime);\n\t\t\t\twait.until(ExpectedConditions.visibilityOf((driver.findElement(By.xpath(object)))));\n\t\t\t\tSelect ele=new Select(driver.findElement(By.xpath(object)));\n\t\t\t\tele.getFirstSelectedOption().getText().equals(data);\n\t\t\t\tTestRunner.test.log(Status.PASS, \"Successfully selected first option.\");\n\t\t\t} catch (Exception e) {\n\t\t\t\tTestRunner.App_Log.debug(\"Not able to selected first option from dropdown \" + \" Reason : \"+ e.getMessage());\n\t\t\t\tAssert.fail(\"Not able to selected first option from dropdown\"+ \" Reason : \"+ e.getMessage());\n\t\t\t}// End of Try_Catch statement\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t}", "title": "" }, { "docid": "ca0f329dc4a69d984f5e646dfd6431ab", "score": "0.5785773", "text": "public void selectVisibileTextById(String id, String value) \n\t{\n\t\t//try block has all the possible conditions\n\t\ttry {\n\t\t\tWebElement dropdown1=driver.findElementById(id);\n\t\t\tSelect db1=new Select(dropdown1);\n\t\t\tdb1.selectByVisibleText(value);\n\t\t\tSystem.out.println(\"The dropdown is selected with value \"+value);\n\t\t} \n\t\t//in case of element not found this catch block will be executed\n\t\tcatch (NoSuchElementException e) \n\t\t{\n\t\t\tSystem.out.println(\"Element not found : \" + value);\n\n\t\t}\n\t\t//in case of web browser closed or crashed the below catch will be executed\n\t\tcatch (WebDriverException e) \n\t\t{\n\t\t\tSystem.out.println(\"Browser closed\");\n\t\t}\n\t\t//Executes even when the above steps gets success or failed\n\t\tfinally {\n\t\t\ttakeSnap();\n\t\t}\n\t}", "title": "" }, { "docid": "55a7e7fa9c58e30121dab5e662355e01", "score": "0.5785686", "text": "public String getTextFromDropdown(By locator) {\n WebElement element = wd.findElement(locator);\n Select dropDown = new Select(element);\n String selectedText = dropDown.getFirstSelectedOption().getText();\n return selectedText;\n }", "title": "" }, { "docid": "5a5f012bcc88e7685eba3b3ce7d1b858", "score": "0.57809705", "text": "@Then(\"^select value form dropdown \\\"([^\\\"]*)\\\" by \\\"([^\\\"]*)\\\"$\")\n\t\tpublic void select_value_form_dropdown_by(String arg1, String arg2) throws Throwable {\n\t\t cl.StoreDropdown(arg1, arg2);\n\t\t}", "title": "" }, { "docid": "c3d659ecc26b7f05eb23025b292f6004", "score": "0.5776866", "text": "public void toSelectDropdownList(String type, String value, String input) {\n\t\tif (type.equalsIgnoreCase(\"id\")) {\n\t\t\tselect = new Select(driver.findElement(By.id(value)));\n\t\t\tselect.selectByVisibleText(input);\n\t\t} else if (type.equalsIgnoreCase(\"name\")) {\n\t\t\tselect = new Select(driver.findElement(By.name(value)));\n\t\t\tselect.selectByVisibleText(input);\n\t\t} else if (type.equalsIgnoreCase(\"xpath\")) {\n\t\t\tselect = new Select(driver.findElement(By.xpath(value)));\n\t\t\tselect.selectByVisibleText(input);\n\t\t}\n\t}", "title": "" }, { "docid": "84f21fe26c28a95eebd820ee8bb15d46", "score": "0.5775725", "text": "private static void selectAndVerifyDropDownContentsSecondElementDirectXpath(String xpathDropDownProp, String xpathToDropDownElement){\n\t\tWebElement dropDownElementToSelect = dr.findElement(By.xpath(xpathToDropDownElement));\n\t\tString dropDownElementToSelectValue = dropDownElementToSelect.getText();\n\t\twhile(true) {\n\t\t\ta\n\t\t\t\t\t.moveToElement(dropDownElementToSelect)\n\t\t\t\t\t.click()\n\t\t\t\t\t.build()\n\t\t\t\t\t.perform();\n\t\t\tString currentDropDownValue = returnDropDownValue(xpathDropDownProp);\n\t\t\tif (currentDropDownValue.contains(dropDownElementToSelectValue)){\n\t\t\t\tSystem.out.println(\"Desired value is selected, breaking loop\");\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Selected the wrong value! Trying again.\");\n\t\t\t\topenDropDown(xpathDropDownProp);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "66eb9898a5542bd51d630bc075b84a56", "score": "0.5774348", "text": "public interface SearchResultsPageLocators {\n\n String resultsSortingDropDown = \".//button[@class='ms-choice']/span[contains(text(),'Featured')]\";\n String resutsSoftingDropDownPriceLow = \".//div[@class='sort']/select[@name='search-order-by']//following-sibling::div[@class='ms-parent']/div[1]/ul/li[contains(text(),'Price (low)')]\";\n String resutsSoftingDropDownPriceHigh = \".//div[@class='sort']/select[@name='search-order-by']//following-sibling::div[@class='ms-parent']/div[1]/ul/li[contains(text(),'Price (high)')]\";\n\n String getPricesOfAllListings = \"//span[@class=\\\"val\\\"]\";\n String getNamesOfAllListings = \".//*[@class='property-content']/h2/a\";\n}", "title": "" }, { "docid": "c4b21804f5c754c7b235f1573f900c23", "score": "0.57494354", "text": "public void selectLocationCode(String strValue) {\n\t\tWebElement dropdown = driver.findElement(By.xpath(\"//*[text()='Location Code']/../div/div/select\"));\n\t\tSync.waitForObject(driver, \"Wait for Location Code Select\", dropdown);\n\t\tButton.click(\"Wait for Location Code Select\", dropdown);\n\t\tSelect roundVATPostingGroupDown = new Select(dropdown);\n\t\troundVATPostingGroupDown.selectByVisibleText(strValue);\n\t}", "title": "" }, { "docid": "defd447c7afcb5c297292101766c4ddc", "score": "0.5733421", "text": "public String test() {\n \n List<SelectItem> ainList = new ArrayList<SelectItem>();\n SelectItem selectObj = new SelectItem();\n \n selectObj.setValue(\"2004001009\");\n ainList.add(selectObj);\n \n ADFUtils.setPageFlowValue(\"ainList\", ainList);\n return \"main\";\n }", "title": "" }, { "docid": "e9b714414762e5dbdd3dcce6cda89f11", "score": "0.57317734", "text": "public boolean selectProgramTypeLst(String strProgramTypeEle ){\r\n\t\tboolean blnResult = false;\r\n\t\ttry{\r\n\t\t\tString strProgramTypeDrop_XPATH=strToclickComm_XPATH.replace(\"yyy\", testData.get(\"strProgramTypeDrop\"));\r\n\t\t\tnew WebDriverWait(driver, lplCoreConstents.HIGH).until(ExpectedConditions.visibilityOfElementLocated((By.xpath(strProgramTypeDrop_XPATH))));\r\n\t\t\tblnResult =common.selectDropDownBox(strProgramTypeDrop_XPATH, strProgramTypeEle,\"\");\r\n\t\t\t//Wait for the page to load\r\n\t\t\tLPLCoreSync.staticWait(homePage.lplCoreConstents.UNITINMILLISEC);\r\n\t\t\tnew WebDriverWait(driver, lplCoreConstents.HIGH).until(ExpectedConditions.visibilityOfElementLocated((By.xpath(strProgramTypeDrop_XPATH))));\r\n\t\t}\r\n\t\tcatch(Exception ex){\r\n\t\t\tstrError = strError+ex.getMessage();\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t\treturn blnResult;\r\n\t}", "title": "" }, { "docid": "58118849245501d6aebe2a502aa6aa5b", "score": "0.57266325", "text": "public void byValue(String value) { se.selectByValue(value); }", "title": "" }, { "docid": "b33edccf73001b1a96e846ee780285b0", "score": "0.5724745", "text": "@Test(enabled = true)\n\tpublic void TC_ShortCustomerDropdown3() throws Exception {\n\t\tdriver.get(\"https://demos.telerik.com/kendo-ui/dropdownlist/index\");\n\t\tdriver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\n\t\tdriver.manage().window().maximize();\n\t\t//String colour = \"Orange\";\n\n\t\tselectItemCustomerDropdown(\"//span[@aria-labelledby='color_label']\", \"//ul[@id='color_listbox']/li\", \"Orange\");\n\t\tAssert.assertTrue(driver.findElement(By.xpath(\"//div[@id='cap-view']//span[@class='k-widget k-dropdown k-header']//span[contains(text(),'Orange')]\")).isDisplayed());\t\t\n\t\t\n\t}", "title": "" }, { "docid": "486325020661774c2b0055adf635a438", "score": "0.572467", "text": "public void clickOnChangeDropDown(String text){\r\n\t\tMcsElement.getElementByXpath(driver,\"//div[contains(@class,'helpdesk')]//button[text()='\"+text+\"']\").click();\r\n\r\n\t}", "title": "" }, { "docid": "4d398f0719541b076e4523d17537d3e1", "score": "0.5720453", "text": "public void selectArticle75Decision (String strArticle75Decision)\r\n\t{\r\n\t\tWebDriverWait wait = new WebDriverWait (driver, GlobalWaitTime.getIntWaitTime ());\r\n\t\twait.until (ExpectedConditions.textToBePresentInElement (orClaimMOJActions.ddlArticle75Decision, strArticle75Decision));\r\n\t\torClaimMOJActions.ddlArticle75Decision.click ();\r\n\t\torClaimMOJActions.ddlArticle75Decision.sendKeys (strArticle75Decision);\r\n\t\torClaimMOJActions.ddlArticle75Decision.click ();\r\n\r\n\t}", "title": "" }, { "docid": "3ee6641214d4e4a5a9d88ccf511c90d5", "score": "0.5703819", "text": "public void selectLocalPlantSalesUOMValueDropDown(String strValue) throws InterruptedException {\n\t\tSync.waitForSeconds(Constants.WAIT_5);\n\t\tSync.waitForSeconds(Constants.WAIT_5);\n\t\tif (Button.verifyObject(dropdownPlantSalesUOMValue)) {\n\t\t\tSync.waitForObject(driver, \"Wait for Sales UOM Select\", dropdownPlantSalesUOMValue);\n\t\t\tSync.waitForSeconds(Constants.WAIT_5);\n\t\t\tSync.waitForSeconds(Constants.WAIT_5);\n\t\t\tButton.click(\"Click on Sales UOM Select\", dropdownPlantSalesUOMValue);\n\t\t\tSelect salesUOMDropDownSelect = new Select(dropdownPlantSalesUOMValue);\n\t\t\tsalesUOMDropDownSelect.selectByVisibleText(strValue);\n\n\t\t} else {\n\t\t\tSync.waitForSeconds(Constants.WAIT_5);\n\t\t\tSync.waitForSeconds(Constants.WAIT_5);\n\t\t\tButton.click(\"Click on Sales UOM Select\", dropdownPlantSalesUOMValue);\n\t\t\tSelect salesUOMDropDownSelect = new Select(dropdownPlantSalesUOMValue);\n\t\t\tsalesUOMDropDownSelect.selectByVisibleText(strValue);\n\t\t}\n\t}", "title": "" }, { "docid": "da6a6ebac579240d13265c0fb0a0bd39", "score": "0.5699565", "text": "void selectDropDownOptionByText(String logicalName, String visibleText);", "title": "" }, { "docid": "51c473ad975d00f8b95fd6f060f1504a", "score": "0.5689308", "text": "public void selectItemBCA(){\n driver.findElement(itemInBCA).click();\n }", "title": "" }, { "docid": "c22bb07c7dcede9cff1baced349c0e8d", "score": "0.56825405", "text": "@Test\n\tpublic void set() throws InterruptedException\n\t{\n\t\tWebDriver driver = new FirefoxDriver();\n\n\t\t// Put an Implicit wait, \n\t\tdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n\n\t\t// Launch the URL\n\t\tdriver.get(\"http://www.toolsqa.com/automation-practice-form\");\n\n\t\t// Step 3: Select 'Continents' Drop down ( Use Id to identify the element )\n\t\t// Find Select element of \"Single selection\" using ID locator.\n\t\tWebElement ele=driver.findElement(By.id(\"continents\"));\n\t\tSelect sel = new Select(ele);\n\n\t\t// Step 4:) Select option 'Europe' (Use selectByIndex)\n\t\tsel.selectByVisibleText(\"South America\");\n\t\t\n\t\t List<WebElement> list = sel.getOptions();\n\n\t\t for(int i=0;i<list.size();i++){\n\t\t if(list.get(i).getText().equals(sel.getFirstSelectedOption().getText())){\n\t\t System.out.println(\"The index of the selected option is: \"+i);\n\t\t break;\n\t\t }\n\t\t }\n\t\t \n\t\t ArrayList<String> tabs = new ArrayList<String> (driver.getWindowHandles());\t\n\t\t driver.switchTo().window(tabs.get(0));\n\t\t \n\t\t /*String ele1=\"//*[@id='sample']\";\n\t\t Actions builder = new Actions(driver);\n\t\t builder.keyDown(Keys.CONTROL).click(ele).release().perform(); */\n\t\t// Using sleep command so that changes can be noticed\n\t\tThread.sleep(2000);\n\n\t\t// Step 5: Select option 'Africa' now (Use selectByVisibleText)\n\t\tsel.selectByIndex(2);\n\t\tThread.sleep(2000);\n\n\t\t// Step 6: Print all the options for the selected drop down and select one option of your choice\n\t\t// Get the size of the Select element\n\t\tList<WebElement> oSize = sel.getOptions();\n\t\tint iListSize = oSize.size();\n\n\t\t// Setting up the loop to print all the options\n\t\tfor(int i1 =0; i1 < iListSize ; i1++){\n\t\t\t// Storing the value of the option\n\t\t\tString sValue = sel.getOptions().get(i1).getText();\n\t\t\t\n\t\t\t// Printing the stored value\n\t\t\tSystem.out.println(sValue);\n\t\t\t// Putting a check on each option that if any of the option is equal to 'Africa\" then select it \n\t\t\tif(sValue.equals(\"Africa\")){\n\t\t\t\tsel.selectByIndex(i1);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\t \n\t\t\n\t}", "title": "" }, { "docid": "8270e1f20745988b83f60de6f357108e", "score": "0.5680775", "text": "void selectDropDownOption(String logicalName, String option, String selectionType);", "title": "" }, { "docid": "be152ba0e90032a077d5c6c0ffdd3c34", "score": "0.5680757", "text": "public static void selectbyvalue(WebElement element,String value){\n\t\t\tSelect select=new Select(element);\n\t\t\tselect.selectByValue(value);\n\t\t}", "title": "" }, { "docid": "1412b47dadb91239a40a728d828efa36", "score": "0.5677592", "text": "public void selectByValue(WebElement dropDownWebElement, String value) {\n LogUtil.debug(\"[DEBUG] Selecting the drop-down based on the value: '\"+value+\"', on the WebElement: \"+dropDownWebElement);\n Select select = new Select(dropDownWebElement);\n select.selectByValue(value);\n }", "title": "" }, { "docid": "bed4e8ad1b4d704eabe5d1a8d14424ee", "score": "0.56761026", "text": "@Test\n public void dropDownTest() {\n WebElement selectElement = driver.findElement(By.id(\"dropdown\"));\n //Select class'inda obje olusturup, selectelementi pass edelim\n Select options = new Select(driver.findElement(By.id(\"dropdown\")));\n //Artik olusturulan objecti dropdown'a ulasmak icin kullanabiliriz.\n String firstOption = options.getFirstSelectedOption().getText();\n //getFirstSelectedOption() =>dropdown'daki default value'yu return eder.\n System.out.println(firstOption);\n\n //Dropdownd'da element belirlemenin 3 yolu var:\n // 1)index'le ==> selectByIndex(\"\");\n // 2)value ile ==> selectByValue(\"\");\n // 3)Visible text ile ==> selectByVisibleText(\"\");\n\n //1.Index kullanarak Seçenek 1’i (Option 1) seçin ve yazdırın\n //===========SELECT BY INDEX=========\n options.selectByIndex(1);\n\n\n //2.Value kullanarak Seçenek 2'yi (Option 2) seçin ve yazdırın\n options.selectByValue(\"2\");\n\n //3.Visible Text(Görünen metin) kullanarak Seçenek 1’i (Option 1) seçin ve yazdırın\n options.selectByVisibleText(\"Option 1\");\n\n //4.Tüm dropdown değerleri(value) yazdırın\n List<WebElement> allOptions = options.getOptions();\n\n for(WebElement element : allOptions) {\n System.out.println(element.getText());\n }\n\n //5. Dropdown’un boyutunu bulun, Dropdown’da 4 öğe varsa konsolda True , degilse False yazdırın.\n int size = allOptions.size();\n\n //1. YOL\n //if(size==4) {\n // System.out.println(\"TRUE\");\n //} else {\n // System.out.println(\"FALSE\");\n //}\n\n //2.YOL\n //assertion kullanarak\n Assert.assertFalse(size == 4);\n\n\n\n System.out.println((size==4 ) ? true : false);\n\n }", "title": "" }, { "docid": "2b3c4e085feffd05843f0e4171228b1b", "score": "0.5675541", "text": "public void selectLocalPlantPurchaseUOMValueDropDown(String strValue) throws InterruptedException {\n\t\tSync.waitForSeconds(Constants.WAIT_5);\n\t\tif (Button.verifyObject(dropdownPlantPurchaseUOMValue)) {\n\t\t\tSync.waitForSeconds(Constants.WAIT_5);\n\t\t\tSync.waitForSeconds(Constants.WAIT_5);\n\t\t\tSync.waitForObject(driver, \"Wait for Purchase UOM Select\", dropdownPlantPurchaseUOMValue);\n\t\t\tSync.waitForSeconds(Constants.WAIT_5);\n\t\t\tButton.click(\"Click on Purchase UOM Select\", dropdownPlantPurchaseUOMValue);\n\t\t\tSelect purchUOMDropDownSelect = new Select(dropdownPlantPurchaseUOMValue);\n\t\t\tpurchUOMDropDownSelect.selectByVisibleText(strValue);\n\n\t\t} else {\n\t\t\tSync.waitForSeconds(Constants.WAIT_5);\n\t\t\tSync.waitForSeconds(Constants.WAIT_5);\n\t\t\tButton.click(\"Click on Purchase UOM Select\", dropdownPlantPurchaseUOMValue);\n\t\t\tSelect purchUOMDropDownSelect = new Select(dropdownPlantPurchaseUOMValue);\n\t\t\tpurchUOMDropDownSelect.selectByVisibleText(strValue);\n\t\t}\n\t}", "title": "" }, { "docid": "e21ce15c75167d1149f9adc74fab44cf", "score": "0.56647867", "text": "@Test(enabled = false)\n\tpublic void TC_ShortCustomerDropdown2() throws Exception {\n\t\tdriver.get(\"https://material.angular.io/components/select/examples\");\n\t\tdriver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\n\t\tdriver.manage().window().maximize();\n\n\t\tselectItemCustomerDropdown(\"//mat-select[@placeholder='State']\", \"//mat-option/span\", \"Washington\");\n\t\tAssert.assertTrue(driver.findElement(By.xpath(\"//mat-select[@placeholder='State']//span[text()='Washington']\")).isDisplayed());\t\t\n\t\t\n\t}", "title": "" }, { "docid": "cfa41234a81d05e8b49c0156ded6ed80", "score": "0.5645291", "text": "public static void main(String[] args) {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Program Files\\\\chromedriver.exe\");\n\t\tWebDriver driver = new ChromeDriver();\n\t\tdriver.get(\"https://rahulshettyacademy.com/dropdownsPractise/\");\n//\t\tdriver.findElement(By.id(\"ctl00_mainContent_ddl_originStation1_CTXT\")).click();\n//\t\tdriver.findElement(By.xpath(\"//a[@value='DEL']\")).click();\n//\t\ttry {\n//\t\t\tThread.sleep(2000);\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//driver.findElement(By.id(\"ctl00_mainContent_ddl_destinationStation1_CTXT\")).click();\n//\t\tdriver.findElement(By.xpath(\"(//a[@value='TIR'])[2]\")).click();\n//\t\t\n\n\t\t// not using index\n//\t\tdriver.findElement(By.id(\"ctl00_mainContent_ddl_originStation1_CTXT\")).click();\n//\t\tdriver.findElement(By.xpath(\"//div[@id='glsctl00_mainContent_ddl_originStation1_CTNR'] //a[@value='JAI']\")).click();\n//\t\ttry {\n//\t\t\tThread.sleep(2000);\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//driver.findElement(By.id(\"ctl00_mainContent_ddl_destinationStation1_CTXT\")).click();\n//\t\tdriver.findElement(By.xpath(\"//div[@id='ctl00_mainContent_ddl_destinationStation1_CTNR'] //a[@value='BOM']\")).click();\n//\t\t\n\n\t\t// using css\n//\t\tdriver.findElement(By.id(\"ctl00_mainContent_ddl_originStation1_CTXT\")).click();\n//\t\tdriver.findElement(By.cssSelector(\"div[id='glsctl00_mainContent_ddl_originStation1_CTNR'] a[value='JAI']\")).click();\n//\t\ttry {\n//\t\t\tThread.sleep(2000);\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//driver.findElement(By.id(\"ctl00_mainContent_ddl_destinationStation1_CTXT\")).click();\n//\t\tdriver.findElement(By.cssSelector(\"div[id='ctl00_mainContent_ddl_destinationStation1_CTNR'] a[value='BOM']\")).click();\n\n\t\t// auto-suggestion-dropbox\n\t\tdriver.findElement(By.id(\"autosuggest\")).sendKeys(\"ind\");\n\t\ttry {\n\t\t\tThread.sleep(2000);\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\tList<WebElement> options = driver.findElements(By.cssSelector(\"li[class = 'ui-menu-item'] a\"));\n\n\t\tfor (WebElement option : options) {\n\t\t\toption.getText();\n\t\t\tif (option.getText().equalsIgnoreCase(\"India\")) {\n\t\t\t\toption.click();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "c0d3900d5bc61a2a78f815be96308d76", "score": "0.5644901", "text": "void selectOptionByValue(String option, String logicalName);", "title": "" }, { "docid": "8d7447c77f32fe3b7f45837204192b26", "score": "0.55989665", "text": "public XPath getSelect()\n {\n return m_selectPattern;\n }", "title": "" }, { "docid": "ee074f40500d49e45baeb5e12fa8a7d5", "score": "0.55942297", "text": "private static void selectExpirationDDLValue(WebDriver driver, int index) {\n clickButton(driver, By.xpath(EXPAND_EXPIRE_DATE_DDL_LOCATOR));\n List<WebElement> findDropDownValue = driver.findElements(By.xpath(EXPIRE_DATE_DDL_LOCATOR));\n findDropDownValue.get(index).click();\n }", "title": "" }, { "docid": "b39a5efe61dcd931732f074accb2e92b", "score": "0.5583032", "text": "public static void HandleAnyDropdown(WebElement element,String TemplateTypeSelect) throws Exception{\n Select StateInGenerateEWBDropDown = new Select(element);\n StateInGenerateEWBDropDown.selectByVisibleText(TemplateTypeSelect);\n Log.info(\"Dropdown is selected\");\n }", "title": "" }, { "docid": "7da4a0637b25d10c61bcf07ff18c7c72", "score": "0.5568792", "text": "public void slectelementfromDropdown(WebElement element, String text) \n\t{\n\t\tSelect select = new Select(element);\n\t\tselect.selectByVisibleText(text);\n\t}", "title": "" }, { "docid": "2d7c392752b999a04850a865d90213f8", "score": "0.55653626", "text": "@Test\n\tpublic void TC053_searchLeadByFax() throws Throwable {\n\t\t\n\t\tWebDriver driver;\n\t\t\n\t\tPropertyFileUtility pLib=new PropertyFileUtility();\n\t\tString URL =pLib.readDataFromPropertyFile(\"url\");\n\t\tString BROWSER = pLib.readDataFromPropertyFile(\"browser\");\t\n\t\tString USERNAME = pLib.readDataFromPropertyFile(\"username\");\n\t\tString PASSWORD = pLib.readDataFromPropertyFile(\"password\");\t\t\n\t\tif(BROWSER.equals(\"chrome\")) {\n\t\t\tdriver=new ChromeDriver();\n\t\t} else if(BROWSER.equals(\"firefox\")) {\n\t\t\tdriver= new FirefoxDriver();\n\t\t} else {\n\t\t\tdriver = new InternetExplorerDriver();\n\t\t}\n\t\t\n\t\tdriver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\n\t\tdriver.get(URL);\n\t\tdriver.manage().window().maximize();\n\t\tdriver.findElement(By.name(\"user_name\")).sendKeys(USERNAME);\n\t\tdriver.findElement(By.name(\"user_password\")).sendKeys(PASSWORD);\n\t\tdriver.findElement(By.id(\"submitButton\")).click();\n\t\tdriver.findElement(By.linkText(\"Leads\")).click();\n\t\tdriver.findElement(By.linkText(\"Go to Advanced Search\")).click();\n\t\t\n\t\tWebElement ele = driver.findElement(By.className(\"detailedViewTextBox\"));\n\t Select s= new Select(ele);\n\t s.selectByValue(\"vtiger_leadaddress:fax:fax:Leads_Fax:V\");\n\t \n\t WebElement secbox=driver.findElement(By.xpath(\"//select[@class='repBox']\"));\n\t Select s1=new Select(secbox);\n\t s1.selectByVisibleText(\"not equal to\");\n\t \n\t driver.findElement(By.xpath(\"//form[@name='advSearch']//input[@class='crmbutton small create']\")).click();\n\t\n\t driver.close();\n\t\n \n}", "title": "" }, { "docid": "961d5e09ac530aa90b1988c9d436312c", "score": "0.55479866", "text": "public static void selectValueFromDropDown(By locator, String value) throws Exception {\n\n\t\tSelect select = new Select(getWebElement(locator));\n\t\tselect.selectByVisibleText(value);\n\n\t}", "title": "" }, { "docid": "386bde215f0576fc2fcd227d2d0bd911", "score": "0.55406547", "text": "@And(\"I set value (.*?) in dropdown (.*?)$\")\n public void selectOptionDropdownByValue(String option, String element) throws Exception {\n functions.selectOptionDropdownByValue(element, option);\n }", "title": "" }, { "docid": "e36cc1a065122993bee9824b2c946402", "score": "0.5531871", "text": "public String autoSelectFromDropdown(String locator) {\n this.elementBy = initElementByLocator(locator);\n elementToBeEnable(this.elementBy);\n WebElement selectElement = driver.findElement(this.elementBy);\n Select select = new Select(selectElement);\n waitForOptions(locator);\n\n int value;\n Random random = new Random();\n List<WebElement> allOptions = select.getOptions();\n\n if (allOptions.get(0).getText().toLowerCase().contains(\"none\")) {\n value = 1 + random.nextInt(allOptions.size() - 1);\n } else {\n value = random.nextInt(allOptions.size() - 1);\n }\n\n select.selectByIndex(value);\n return allOptions.get(value).getText();\n }", "title": "" }, { "docid": "101110417704e50b51425eb636cf466e", "score": "0.55223817", "text": "public String GetSelectedValue_DD(By by){\n\t\tSelect s1= new Select(driver.findElement(by));\n\t\ts1.getFirstSelectedOption();\n\t\treturn \"Element is displayed\";\n\t}", "title": "" }, { "docid": "0f37a8867ad052dcce3605ae037a192b", "score": "0.55147636", "text": "public void selectElement(WebElement webElement, String selectByVisibleTextValue) {\n\n\t\ttry {\n\t\t\tSelect select = new Select(webElement);\n\t\t\tselect.selectByVisibleText(selectByVisibleTextValue);\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "8c9a975236118bdcf5203d5b1387fcc5", "score": "0.5510831", "text": "public void setProfileSelection(String option){\n profileSelection.click();\n List<WebElement> optionList = profileListOptions;\n\n for (int i=0 ;i<optionList.size();i++){\n System.out.println(optionList.get(i).getText());\n if (optionList.get(i).getText().contains(option)){\n optionList.get(i).click();\n break;\n }\n }\n\n }", "title": "" }, { "docid": "0638084b3d51c026403bf4b32c1cac79", "score": "0.55096436", "text": "public static void main(String[] args) {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"./drivers/chromedriver.exe\");\r\n\r\n\t\t\r\n\t\tChromeDriver driver=new ChromeDriver();\r\n\t\t\r\n\t\tdriver.manage().window().maximize();\r\n\t\t\r\n\t\tdriver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\r\n\t\t\r\n\t\tdriver.get(\"https://www.irctc.co.in/eticketing/userSignUp.jsf\");\r\n\t\t\r\n\t\tWebElement dropDown=driver.findElementById(\"userRegistrationForm:countries\");\r\n\t\t\r\n\t\tSelect country = new Select(dropDown);\r\n\t\t\r\n\t\tString text=driver.findElementByXPath(\"//select[@id='userRegistrationForm:countries']/option[contains(text(),'E')][3]\").getText();\r\n\t\t\r\n\t\tcountry.selectByVisibleText(text);\r\n\t\t\r\n\t\t\r\n\r\n\t}", "title": "" }, { "docid": "282c2bfff5eea158b1a41e42e66fd832", "score": "0.5509637", "text": "@Override\n protected String select(List<String> list,\n Integer field,\n DataAccessoryComparisonValues comparisonValue,\n Object... value) {\n return TEST_ELEMENT;\n }", "title": "" }, { "docid": "21e5572e9e55f23465e5d50810177ebb", "score": "0.5487965", "text": "String getXPath();", "title": "" }, { "docid": "19c27b4c5dc90833cc8015e7cbdd8df4", "score": "0.5487476", "text": "public void clickDropDownAndSelectMilkChocolate() {\n waitAndClick(typeOfChoclateDropDown);\n driver.findElement(By.xpath(\"//option[text()='Milk Chocolate']\")).click();\n\n }", "title": "" }, { "docid": "f70739b10f12eba739ab1f68dea2f08e", "score": "0.5487267", "text": "@Test(enabled = false)\n\tpublic void TC_ShortCustomerDropdown4() throws Exception {\n\t\tdriver.get(\"https://mikerodham.github.io/vue-dropdowns/\");\n\t\tdriver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\n\t\tdriver.manage().window().maximize();\n\t\t//String colour = \"Orange\";\n\n\t\tselectItemCustomerDropdown(\"//li[@class='dropdown-toggle']\", \"//ul[@class='dropdown-menu']/li\", \"Third Option\");\n\t\tAssert.assertTrue(driver.findElement(By.xpath(\"//li[contains(text(),'Third Option')]\")).isDisplayed());\t\t\n\t\t\n\t}", "title": "" }, { "docid": "55ceabba962fdd5fd73d5ac4ca3d84c4", "score": "0.54781145", "text": "public String getValue() {\n List<WebElement> options = findElements(bySelectOption);\n for (WebElement option : options) {\n WebElement checkedItem;\n checkedItem = option.findElement(By.tagName(\"input\"));\n String checked = checkedItem.getAttribute(\"checked\");\n if (checked != null\n && checkedItem.getAttribute(\"checked\").equals(\"true\")) {\n return option.findElement(By.tagName(\"label\")).getText();\n }\n }\n return null;\n }", "title": "" }, { "docid": "2b5a5e96d82a91e49d0351bc2e1b9f4b", "score": "0.54776263", "text": "public void selectLocalPlantInventoryUOMValueDropDown(String strValue) throws InterruptedException {\n\t\tSync.waitForSeconds(Constants.WAIT_5);\n\t\tSync.waitForSeconds(Constants.WAIT_5);\n\t\tif (Button.verifyObject(dropdownPlantInventoryUOMValue)) {\n\t\t\tSync.waitForObject(driver, \"Wait for Sales UOM Select\", dropdownPlantInventoryUOMValue);\n\t\t\tSync.waitForSeconds(Constants.WAIT_5);\n\t\t\tSync.waitForSeconds(Constants.WAIT_5);\n\t\t\tButton.click(\"Click on Sales UOM Select\", dropdownPlantInventoryUOMValue);\n\t\t\tSelect inventoryUOMDropDownSelect = new Select(dropdownPlantInventoryUOMValue);\n\t\t\tinventoryUOMDropDownSelect.selectByVisibleText(strValue);\n\n\t\t} else {\n\t\t\tSync.waitForSeconds(Constants.WAIT_5);\n\t\t\tSync.waitForSeconds(Constants.WAIT_5);\n\t\t\tButton.click(\"Click on Sales UOM Select\", dropdownPlantInventoryUOMValue);\n\t\t\tSelect inventoryUOMDropDownSelect = new Select(dropdownPlantInventoryUOMValue);\n\t\t\tinventoryUOMDropDownSelect.selectByVisibleText(strValue);\n\t\t}\n\n\t}", "title": "" }, { "docid": "5b63c0cd8c18e126dae1d2d377a801ef", "score": "0.5471959", "text": "public void selectOptionFromDropDownByText(By locator, String text) {\n Select values = new Select(wd.findElement(locator));\n values.selectByVisibleText(text);\n wd.manage().timeouts().implicitlyWait(500, TimeUnit.MILLISECONDS);\n }", "title": "" }, { "docid": "ef7ef56de8c01b9acdcecb8779949c1d", "score": "0.54678637", "text": "public String toGetElementText(String type, String value) {\n\t\tif (type.toLowerCase().equals(\"id\")) {\n\t\t\telement = driver.findElement(By.id(value));\n\t\t} else if (type.toLowerCase().equals(\"name\")) {\n\t\t\telement = driver.findElement(By.name(value));\n\t\t} else if ((type.toLowerCase().equals(\"classname\")) || (type.toLowerCase().equals(\"class\"))) {\n\t\t\telement = driver.findElement(By.className(value));\n\t\t} else if ((type.toLowerCase().equals(\"tagname\")) || (type.toLowerCase().equals(\"tag\"))) {\n\t\t\telement = driver.findElement(By.tagName(value));\n\t\t} else if ((type.toLowerCase().equals(\"linktext\")) || (type.toLowerCase().equals(\"link\"))) {\n\t\t\telement = driver.findElement(By.linkText(value));\n\t\t} else if (type.toLowerCase().equals(\"partiallinktext\")) {\n\t\t\telement = driver.findElement(By.partialLinkText(value));\n\t\t} else if ((type.toLowerCase().equals(\"cssselector\")) || (type.toLowerCase().equals(\"css\"))) {\n\t\t\telement = driver.findElement(By.cssSelector(value));\n\t\t} else if (type.toLowerCase().equals(\"xpath\")) {\n\t\t\telement = driver.findElement(By.xpath(value));\n\t\t}\n\t\treturn element.getAttribute(\"value\");\n\t}", "title": "" }, { "docid": "83123ee075df621b2ba6afdeda8864ae", "score": "0.5464562", "text": "public boolean createNewItem1(){\n\t\r\n\t\r\n Date date = new Date();\r\n\tString datetime= new SimpleDateFormat(\"ddMMMyy_hhmm\").format(date);\r\n\tString itemname= \"item\"+datetime;\r\n\tSystem.out.println(itemname);\r\n\t//Click on link of new organization on home page\r\n\tstep=\"Click on link of new organization on home page\";\r\n\txpth=\".//*[@class='ng-binding ng-scope' and .='New item']\";\r\n\tActions1 ac=new Actions1(driver);\r\n\tif(ac.click(driver, xpth, step)){System.out.println(\"Clicked on link of New Item on home page\");}\r\n\telse{System.out.println(\"ERROR:\"+step+\"*********************************************************************WebElement is not present\");\r\n\treturn false;}\r\n\twaiting.pleaseWait(9);\r\n\t\t\r\n\t//Click on type drop down arrow\r\n\tstep=\"Click on type drop down arrow\";\r\n\t//xpth=\".//span[@class='k-icon k-i-arrow-s' and .='select']\";\r\n\txpth= \"(.//*[@class='k-icon k-i-arrow-s'])[1]\";\r\n\tif(ac.click(driver, xpth, step)){System.out.println(\"Clicked on type drop down arrow\");}\r\n\telse{System.out.println(\"ERROR:\"+step+\"*********************************************************************WebElement is not present\");\r\n\treturn false;}\r\n\twaiting.pleaseWait(3);\r\n\t\r\n\t//Click to select option\r\n\tstep=\"Click to select option\";\r\n\t//xpth=\".//*[@class='k-item ng-scope k-state-selected k-state-focused' and .='Contract Item']\";\r\n\txpth=\".//li[ .='Contract Item']\";\r\n\tif(ac.click(driver, xpth, step)){System.out.println(\"Clicked to select option\");}\r\n\telse{System.out.println(\"ERROR:\"+step+\"*********************************************************************WebElement is not present\");\r\n\treturn false;}\r\n\twaiting.pleaseWait(9);\r\n\r\n\t//provide code\r\n\tstep=\"provide name\";\r\n\txpth=\".//input[@name='Code']\";\r\n\tinp=itemname;\r\n\tif(ac.input(driver, xpth, inp, step)){System.out.println(\"code provided\");}\r\n\telse{System.out.println(\"ERROR:\"+step+\"*********************************************************************WebElement is not present\");\r\n\treturn false;}\r\n\twaiting.pleaseWait(2);\r\n\t\r\n\t//provide name\r\n\tstep=\"provide name\";\r\n\txpth=\".//input[@name='Name']\";\r\n\tinp=itemname;\r\n\tif(ac.input(driver, xpth, inp, step)){System.out.println(\"name provided\");}\r\n\telse{System.out.println(\"ERROR:\"+step+\"*********************************************************************WebElement is not present\");\r\n\treturn false;}\r\n\twaiting.pleaseWait(2);\r\n\r\n\t\r\n\t//Click to save\r\n\tstep=\"Click to save\";\r\n\txpth=\".//button[@data-ng-click='vm.saveChanges()']\";\r\n\tif(ac.enabled(driver, xpth, step)){\r\n\t\tac.click(driver, xpth, step);\r\n\t\tSystem.out.println(\"Clicked to save\");}\r\n\telse{System.out.println(\"ERROR:\"+step+\"*********************************************************************WebElement is not present\");\r\n\treturn false;}\r\n\twaiting.pleaseWait(9);\r\n\r\n\t//validate the name on another page after save\r\n\tstep=\"validate the name on another page after save\";\r\n\txpth=\".//span[@class='spa-title ng-binding']\";\r\n\tString val = ac.getText(driver, xpth, step);\r\n\t//String val = driver.findElement(By.xpath(\".//span[@class='spa-title ng-binding']\")).getText();\r\n\tSystem.out.println(val);\r\n\t\r\n\t\r\n\tif(new String(itemname).equals(val)){System.out.println(\"name of the Item is validated\");\r\n\tSystem.out.println(\"The new is created and name is validated\");\r\n\treturn true;}\r\n\telse{System.out.println(\"Names do not match\");\r\n\tSystem.out.println(\"Although created but name did not validated\");\r\n\treturn false;}\r\n\t\r\n\t\r\n}", "title": "" }, { "docid": "ace7ff776c86bd3005a4be1f0346185d", "score": "0.546251", "text": "void selectDropDownOptionByIndex(String logicalName, String index);", "title": "" }, { "docid": "50b1ea0fb189e63c1ccb9b735e711667", "score": "0.5458862", "text": "@When(\"Select Claim type from the dropdown field\")\r\n\tpublic void My_medicare_claims_positive_positive_tc_003() throws Exception {\r\n\t\ttry {\r\n\t\t\tclick(\"claims_claim_type\");\r\n\t\t\ttext = td_reader(\"claims_type\");\r\n\t\t\tdrop_down(OR_reader(\"claims_claim_type_dropdown\"),text);\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\ttakeScreenShot(\"My_medicare_claims_positive_positive_tc_003\");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "49fd85a17138499708b6e2f38e6915e5", "score": "0.54464954", "text": "@Test(enabled = false)\n\tpublic void TC_ShortCustomerDropdown() throws Exception {\n\t\tdriver.get(\"http://jqueryui.com/resources/demos/selectmenu/default.html\");\n\t\tdriver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\n\t\tdriver.manage().window().maximize();\n\n\t\tselectItemCustomerDropdown(\"//span[@id='number-button']\", \"//ul[@id='number-menu']//li[@class='ui-menu-item']/div\", \"10\");\n\t\tAssert.assertTrue(driver.findElement(By.xpath(\"//span[@id='number-button']/span[@class='ui-selectmenu-text' and text()='10']\")).isDisplayed());\t\t\n\t\t\n\t}", "title": "" }, { "docid": "80eea32563112dde373d3f65a05b8240", "score": "0.54322696", "text": "public void selectFrequencyByValue(String text)\n\t{\n\t\ttry{\n\t\t\telementhandler.selectByValue(PropertiesRepository.getString(\"com.trgr.maf.\"+BaseTest.productUnderTest +\".save_and_schedule_search_frequency\"), text);\n\t\t}\n\t\tcatch(Exception e){\n\t\t\textentLogger.log(LogStatus.INFO, \"Error in : selectFrequencyByValue <br>\"+displayErrorMessage(e));\n\t\t}\n\t}", "title": "" }, { "docid": "9b53d80dc61480a72b9cbed65751a5a2", "score": "0.54299384", "text": "@Test\n\tpublic void EJCS2() {\n\t\tString strjquery = \"combobox[name='ccExpireMonth']\";\n\t\tSelectComboBoxValuefromExtJS(strjquery, \"July\", driver);\n\t}", "title": "" }, { "docid": "cd2c07bca82f24715310385f248de52c", "score": "0.54247546", "text": "public String getTextByXpath(String xpathVal){\r\n\t\tString bReturn = \"\";\r\n\t\ttry{\r\n\t\t\treturn driver.findElement(By.xpath(xpathVal)).getText();\r\n\t\t} catch (Exception e) {\r\n\t\t\treportStep(\"The element with xpath: \"+xpathVal+\" could not be found.\", \"FAIL\");\r\n\t\t}\r\n\t\treturn bReturn; \r\n\t}", "title": "" }, { "docid": "384d1b818915c317529aebe9b7edcb72", "score": "0.54239315", "text": "public static void dropdown(WebElement element, String text) {\r\n\t\tSelect s = new Select(element);\r\n\t\ts.selectByVisibleText(text);;\r\n\t\t\r\n\t}", "title": "" }, { "docid": "1999d647392e19f61aba65b4069a5d7f", "score": "0.5422886", "text": "public boolean selectInstitutioBranchLst(String strInstitutioBranchEle ){\r\n\t\tboolean blnResult = false;\r\n\t\ttry{\r\n\t\t\tString strInstitutionBranchDrop_XPATH=strToclickComm_XPATH.replace(\"yyy\", testData.get(\"strInstitutionBranchDrop\"));\r\n\t\t\tblnResult =common.selectDropDownBox(strInstitutionBranchDrop_XPATH, strInstitutioBranchEle,\"\");\r\n\t\t\thomePage.waitForPageLoading(homePage.lplCoreConstents.LOW);\r\n\t\t}\r\n\t\tcatch(Exception ex){\r\n\t\t\tstrError = strError+ex.getMessage();\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t\treturn blnResult;\r\n\t}", "title": "" }, { "docid": "28254edb7a912777afdc7e17239af01c", "score": "0.54225415", "text": "public void selectLocalPlantProductionUOMValueDropDown(String strValue) throws InterruptedException {\n\t\tSync.waitForSeconds(Constants.WAIT_5);\n\t\tif (Button.verifyObject(dropdownPlantProductionUOMValue)) {\n\t\t\tSync.waitForSeconds(Constants.WAIT_5);\n\t\t\tSync.waitForSeconds(Constants.WAIT_5);\n\t\t\tSync.waitForObject(driver, \"Wait for Production UOM Select\", dropdownPlantProductionUOMValue);\n\t\t\tSync.waitForSeconds(Constants.WAIT_5);\n\t\t\tButton.click(\"Click on Production UOM Select\", dropdownPlantProductionUOMValue);\n\t\t\tSelect prodUOMDropDownSelect = new Select(dropdownPlantProductionUOMValue);\n\t\t\tprodUOMDropDownSelect.selectByVisibleText(strValue);\n\n\t\t} else {\n\t\t\tSync.waitForSeconds(Constants.WAIT_5);\n\t\t\tSync.waitForSeconds(Constants.WAIT_5);\n\t\t\tButton.click(\"Click on Production UOM Select\", dropdownPlantProductionUOMValue);\n\t\t\tSelect prodUOMDropDownSelect = new Select(dropdownPlantProductionUOMValue);\n\t\t\tprodUOMDropDownSelect.selectByVisibleText(strValue);\n\t\t}\n\t}", "title": "" }, { "docid": "da3d78fafc407307dea3d0a97d85cb8c", "score": "0.5419622", "text": "public String getSelectedTextFromDropdown(WebElement element) {\n\t\tString getSelectedTextValue=null;\n\t\ttry {\n\n\t\t\tSelect select = new Select(element);\n\t\t\tgetSelectedTextValue = select.getFirstSelectedOption().getText();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn getSelectedTextValue;\n\t}", "title": "" }, { "docid": "d72c20e2d76e0a6be881f938db4a3426", "score": "0.54138243", "text": "public static void main(String[] args) {\r\n\t\t\r\nSystem.setProperty(\"webdriver.chrome.driver\",\"./drivers/chromedriver.exe\");\r\n\r\nChromeDriver driver = new ChromeDriver();\r\n\r\ndriver.manage().window().maximize();\r\n\r\ndriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\r\n\r\ndriver.get(\"http://leafground.com/pages/Dropdown.html\");\r\n\r\nWebElement down1= driver.findElementByXPath(\"//select[@id='dropdown1']\");\r\n\r\nSelect drop1 = new Select(down1);\r\n\r\nList<WebElement> alloptions = drop1.getOptions();\r\n\r\nint lastoption = alloptions.size()-1;\r\nint i=0;\r\n\r\nfor (WebElement eachop : alloptions) {\r\n\r\n\r\n\tif (i==lastoption) {\r\n\t\teachop.click();\r\n\t}\r\n\ti++;\r\n\r\n\t}\r\n\r\n\t}", "title": "" }, { "docid": "3304e59736cd2f5bae14b4868d6a112f", "score": "0.54087347", "text": "public static void main(String[] args) {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\123\\\\chromedriver.exe\");\n\t\tWebDriver driver = new ChromeDriver();\n\t\tdriver.get(\"https://spicejet.com\");\n\n\t\tdriver.findElement(By.xpath(\"//div[@id='divpaxinfo']\")).click();\n\n\t\tWebElement staticdropDown = driver.findElement(By.id(\"ctl00_mainContent_ddl_Adult\"));\n\t\tSelect dropdown = new Select(staticdropDown);\n\n\t\tdropdown.selectByIndex(3);\n\t\t// System.out.println(dropdown.getFirstSelectedOption().getText());\n\n\t\tWebElement child_dropDown = driver.findElement(By.id(\"ctl00_mainContent_ddl_Child\"));\n\t\tSelect dropdown1 = new Select(child_dropDown);\n\t\tdropdown1.selectByValue(\"2\");\n\t\t// System.out.println(dropdown.getFirstSelectedOption().getText());\n\n\t\tSystem.out.println(driver.findElement(By.xpath(\"//div[@id='divpaxinfo']\")).getText());\n\n\t\tWebElement curency_dropDown = driver.findElement(By.id(\"ctl00_mainContent_DropDownListCurrency\"));\n\t\tSelect dropdown11 = new Select(curency_dropDown);\n\t\tdropdown11.selectByVisibleText(\"BDT\");\n\t\tAssert.assertEquals(dropdown11.getFirstSelectedOption().getText(), \"BDT\");\n\t\t// System.out.println(dropdown11.getFirstSelectedOption().getText());\n\n\t\tAssert.assertFalse(driver.findElement(By.cssSelector(\"input[id*='friendsandfamily']\")).isSelected());\n\t\tSystem.out.println(driver.findElement(By.cssSelector(\"input[id*='friendsandfamily']\")).isSelected());\n\t\tdriver.findElement(By.cssSelector(\"input[id*='friendsandfamily']\")).click();\n\n\t\tAssert.assertTrue(driver.findElement(By.cssSelector(\"input[id*='friendsandfamily']\")).isSelected());\n\t\tSystem.out.println(driver.findElement(By.cssSelector(\"input[id*='friendsandfamily']\")).isSelected());\n\n\t\tSystem.out.println(driver.findElements(By.cssSelector(\"input[type='checkbox']\")).size());\n\n\t\t// validate ui element enabled or disable\n\t\t// System.out.println(driver.findElement(By.name(\"ctl00$mainContent$txt_Todate\")).isEnabled());\n\t\t// System.out.println(driver.findElement(By.id(\"Div1\")).getAttribute(\"style\"));\n\t\tdriver.findElement(By.id(\"ctl00_mainContent_rbtnl_Trip_0\")).click();\n\t\tSystem.out.println(driver.findElement(By.id(\"Div1\")).getAttribute(\"style\"));\n\t\tif (driver.findElement(By.id(\"Div1\")).getAttribute(\"style\").contains(\"0.5\"))\n\n\t\t{\n\t\t\tSystem.out.println(\"its disabled\");\n\t\t\tAssert.assertTrue(true);\n\t\t}\n\n\t\telse\n\n\t\t{\n\t\t\tAssert.assertTrue(false);\n\t\t}\n\n\t}", "title": "" }, { "docid": "da128d977a0e6fe4e678b3096660a80a", "score": "0.540483", "text": "public void selectValuesFromDropDown(String DropDownText) {\n for (WebElement we : typeOFChoclateDropDownValues) {\n if (we.getText().equalsIgnoreCase(DropDownText)) {\n waitAndClick(we);\n break;\n }\n }\n }", "title": "" }, { "docid": "c8c4d755ce102fc8b81ff496e9e56477", "score": "0.5396185", "text": "@FXML\n void selectTfzParam(ActionEvent event) {\n \tString str = dropDownTfz.getValue();\n \tzugGewMin = (double) tfzN_G.get(str);\n \t//System.out.println(zugGewMin);\n \tklass = (String) tfzN_K.get(str);\n \tdropDownTfzKat.setValue(klass);\n }", "title": "" }, { "docid": "5e4d4666d18d8071ccb7fca53e8b3083", "score": "0.53923833", "text": "void changeSelected(String selectNode, ServletRequest request);", "title": "" }, { "docid": "bd18688ee803a5216206297795e9c9c0", "score": "0.53889525", "text": "public WebElement bettingTypeDropDown() {\n //WebElement element = driver.findElements(By.cssSelector(\"#mystery-bet svg\")).get(1);\n //js.executeScript(\"arguments[0].scrollIntoView();\", element);\n //js.executeScript(\"scroll(250,300)\");// temp solution to make the element visible on screen\n /*\n - clicking on only available bets is slightly tricky (specially given the element structure organised in the dom and highly dynamic nature of elements)\n - this can be approached in multiple ways.\n - for demo, i have just scrolled till the element ... this can be implemented more elegantly\n - i am basically scrolling till the last but 2nd row of the grid to make my desired elements visible\n */\n List<WebElement> elements= driver.findElements(By.cssSelector(\"div[class^=RaceCardList_gridRow]\"));\n element = elements.get(elements.size() - 2);\n js.executeScript(\"arguments[0].scrollIntoView(true);\", element);\n return driver.findElements(By.cssSelector(\"#mystery-bet svg\")).get(1);\n }", "title": "" }, { "docid": "7701fc654811004c28aae9ad2083b6a7", "score": "0.5388723", "text": "protected SelectElement getSelectElement()\n {\n return getElement().cast();\n }", "title": "" }, { "docid": "d1f12ed9442bb851aa3c183f2f28069b", "score": "0.5388548", "text": "public boolean selectMinorCustodialStateLst(String strCustodialStateEle ){\r\n\t\tboolean blnResult = false;\r\n\t\ttry{\r\n\t\t\tString strCustodialStateDrop_XPATH=strToclickComm_XPATH.replace(\"yyy\", testData.get(\"strCustodialState\"));\r\n\t\t\tblnResult =common.selectDropDownBox(strCustodialStateDrop_XPATH, strCustodialStateEle,\"\");\t\r\n\t\t\thomePage.waitForPageLoading(homePage.lplCoreConstents.LOW);\r\n\t\t}\r\n\t\tcatch(Exception ex){\r\n\t\t\tstrError = strError+ex.getMessage();\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t\treturn blnResult;\r\n\t}", "title": "" }, { "docid": "8ac084d321d8f90e0024763cc6f0849d", "score": "0.53872055", "text": "public static void SelectTextByValue(String objname, String value) {\r\n\t\ttry {\r\n\t\t\tSelect select = new Select(driver.findElement(map\r\n\t\t\t\t\t.getLocator(objname)));\r\n\t\t\treportInfo(\"dropdown '\" + objname + \"' is selected\");\r\n\r\n\t\t\tselect.selectByValue(value);\r\n\t\t\treportInfo(\"text '\" + value + \"' is selected from the dropdown '\"\r\n\t\t\t\t\t+ objname + \"'\");\r\n\t\t} catch (Exception e) {\r\n\t\t\treportFail(\"'\" + objname + \"' is not present or text '\" + value\r\n\t\t\t\t\t+ \"' is not selected\");\r\n\t\t\tAssert.fail(\"'\" + objname + \"' is not present or text '\" + value\r\n\t\t\t\t\t+ \"' is not selected\");\r\n\t\t}\r\n\r\n\t}", "title": "" } ]